import{jsx as r}from"react/jsx-runtime";import"@styled/tokens";import{forwardRef as f}from"react";import{Flex as u,Box as x}from"@styled/jsx";import{cx as e}from"@styled/css";import"../feedback/callout.js";import{LoadingSpinner as C}from"../feedback/loading-spinner.js";import"../feedback/progress-bar.js";import"../primitives/button.js";import"../primitives/checkbox.js";import"../primitives/dropdown-selector.js";import"../primitives/popover.js";import"../primitives/radio.js";import"../primitives/segmented-control.js";import"../primitives/switch.js";import"../primitives/text.js";import"../primitives/portal.js";import"../../hooks/useToast.js";import"../../recipes/toast.js";import"../feedback/tooltip.js";import{card as N}from"../../recipes/card.js";const c=f(({children:i,className:t,id:m,asButton:o,stack:l,onClick:d,validating:p,...s},a)=>{const n=N({asButton:o,validating:p,...s});return l||o?r(u,{id:m,className:e(n,t),flexDirection:"column",role:o?"button":"none",onClick:o?d:void 0,ref:a,children:p?r(C,{neutral:!0}):i}):r(x,{id:m,className:e(n,t),ref:a,children:i})});c.displayName="Card";export{c as Card};
//# sourceMappingURL=card.js.map
