"use strict";var e=require("tslib"),r=require("react"),o=require("tailwind-merge"),t=require("../../../lib/constants.cjs"),l=require("../../../lib/colorClassNames.cjs"),s=require("../../../lib/shape.cjs"),a=require("../../../lib/spacing.cjs"),i=require("../../../lib/theme.cjs"),c=require("../../../lib/utils.cjs");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=n(r);const u=c.makeClassName("Card"),g=e=>{if(!e)return"";switch(e){case t.HorizontalPositions.Left:return s.border.lg.left;case t.VerticalPositions.Top:return s.border.lg.top;case t.HorizontalPositions.Right:return s.border.lg.right;case t.VerticalPositions.Bottom:return s.border.lg.bottom;default:return""}},b=d.default.forwardRef(((r,n)=>{const{decoration:b="",decorationColor:m=t.BaseColors.Blue,children:C,className:f}=r,h=e.__rest(r,["decoration","decorationColor","children","className"]);return d.default.createElement("div",Object.assign({ref:n,className:o.twMerge(u("root"),"relative w-full text-left ring-1",c.getColorClassNames("white").bgColor,s.boxShadow.md,l.colorClassNames[m][i.colorPalette.border].borderColor,c.getColorClassNames(i.DEFAULT_COLOR,i.colorPalette.lightRing).ringColor,g(b),a.spacing.threeXl.paddingAll,s.borderRadius.lg.all,f)},h),C)}));b.displayName="Card",module.exports=b;
