import{jsx as i}from"react/jsx-runtime";import{forwardRef as v}from"react";import{cn as d}from"../../lib/cn.js";import"../feedback/callout.js";import{LoadingSpinner as k}from"../feedback/loading-spinner.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"../feedback/tooltip.js";import{card as u}from"../../recipes/card.js";const l=v(({children:t,className:m,id:n,asButton:o,stack:c,onClick:s,validating:a,...f},e)=>{const p=u({asButton:o,validating:a,...f});return c||o?i("div",{id:n,className:d(p,"flex flex-col",m),role:o?"button":"none",tabIndex:o?0:void 0,onClick:o?s:void 0,onKeyDown:o?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.target.click())}:void 0,ref:e,children:a?i(k,{neutral:!0}):t}):i("div",{id:n,className:d(p,m),ref:e,children:t})});l.displayName="Card";export{l as Card};
//# sourceMappingURL=card.js.map
