"use strict";var i=require("react/jsx-runtime"),x=require("react"),l=require("../../lib/cn.js");require("../feedback/callout.js");var f=require("../feedback/loading-spinner.js");require("../primitives/button.js"),require("../primitives/checkbox.js"),require("../primitives/dropdown-selector.js"),require("../primitives/popover.js"),require("../primitives/radio.js"),require("../primitives/segmented-control.js"),require("../primitives/switch.js"),require("../primitives/text.js"),require("../primitives/portal.js"),require("../../hooks/useToast.js"),require("../feedback/tooltip.js");var k=require("../../recipes/card.js");const s=x.forwardRef(({children:a,className:n,id:u,asButton:e,stack:o,onClick:q,validating:t,...v},d)=>{const c=k.card({asButton:e,validating:t,...v});return o||e?i.jsx("div",{id:u,className:l.cn(c,"flex flex-col",n),role:e?"button":"none",tabIndex:e?0:void 0,onClick:e?q:void 0,onKeyDown:e?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.target.click())}:void 0,ref:d,children:t?i.jsx(f.LoadingSpinner,{neutral:!0}):a}):i.jsx("div",{id:u,className:l.cn(c,n),ref:d,children:a})});s.displayName="Card",exports.Card=s;
//# sourceMappingURL=card.js.map
