{"version":3,"sources":["../src/Card/Card.tsx"],"sourcesContent":["import * as React from 'react';\nimport { clsx } from 'clsx';\n\ntype PaddingVariant = 'none' | 'small' | 'medium' | 'large';\n\nexport interface CardProps extends React.HTMLAttributes<HTMLDivElement> {\n  /**\n   * The padding variant of the card\n   * @default 'large'\n   */\n  padding?: PaddingVariant;\n  /**\n   * The content of the card\n   */\n  children: React.ReactNode;\n}\n\n// Arbor Design System card styles\nconst cardStyles = {\n  base: {\n    backgroundColor: '#ffffff',\n    borderRadius: '8px',\n    border: '1px solid #efefef', // grey-100 - subtle border\n    fontFamily: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",\n  },\n  padding: {\n    none: {\n      padding: '0',\n    },\n    small: {\n      padding: '8px', // small spacing\n    },\n    medium: {\n      padding: '16px', // large spacing\n    },\n    large: {\n      padding: '24px', // xlarge spacing\n    },\n  },\n};\n\n/**\n * Card component - Arbor Design System\n *\n * A container component that provides consistent styling for content cards.\n * Uses subtle borders rather than shadows, following Arbor's minimal design approach.\n *\n * @example\n * ```tsx\n * <Card padding=\"large\">\n *   <h2>Card Title</h2>\n *   <p>Card content goes here</p>\n * </Card>\n * ```\n */\nexport const Card = React.forwardRef<HTMLDivElement, CardProps>(\n  ({ padding = 'large', className, style, children, ...props }, ref) => {\n    const paddingStyles = cardStyles.padding[padding];\n\n    const combinedStyle: React.CSSProperties = {\n      ...cardStyles.base,\n      ...paddingStyles,\n      ...style,\n    };\n\n    return (\n      <div\n        ref={ref}\n        className={clsx('arbor-card', className)}\n        style={combinedStyle}\n        {...props}\n      >\n        {children}\n      </div>\n    );\n  }\n);\n\nCard.displayName = 'Card';\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AAiEf;AAhDN,IAAM,aAAa;AAAA,EACjB,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,QAAQ;AAAA;AAAA,IACR,YAAY;AAAA,EACd;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,MACJ,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,MACN,SAAS;AAAA;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA;AAAA,IACX;AAAA,EACF;AACF;AAgBO,IAAM,OAAa;AAAA,EACxB,CAAC,EAAE,UAAU,SAAS,WAAW,OAAO,UAAU,GAAG,MAAM,GAAG,QAAQ;AACpE,UAAM,gBAAgB,WAAW,QAAQ,OAAO;AAEhD,UAAM,gBAAqC;AAAA,MACzC,GAAG,WAAW;AAAA,MACd,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,cAAc,SAAS;AAAA,QACvC,OAAO;AAAA,QACN,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,KAAK,cAAc;","names":[]}