@gryt/ui 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AlertDialog/AlertDialog.d.ts +14 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +13 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +10 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +40 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +17 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.d.ts +41 -14
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Form/Form.d.ts +20 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Meter/Meter.d.ts +26 -0
- package/dist/components/Meter/Meter.d.ts.map +1 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +27 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
- package/dist/components/NumberField/NumberField.d.ts +16 -0
- package/dist/components/NumberField/NumberField.d.ts.map +1 -0
- package/dist/components/OtpField/OtpField.d.ts +16 -0
- package/dist/components/OtpField/OtpField.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +16 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/PreviewCard/PreviewCard.d.ts +13 -0
- package/dist/components/PreviewCard/PreviewCard.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +13 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +20 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +23 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toggle/Toggle.d.ts +17 -0
- package/dist/components/Toggle/Toggle.d.ts.map +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +12 -0
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/components/utils/styles.d.ts +1 -0
- package/dist/components/utils/styles.d.ts.map +1 -1
- package/dist/components/utils/useMediaQuery.d.ts +14 -0
- package/dist/components/utils/useMediaQuery.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1618 -504
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +19 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),m=require("@base-ui/react/tooltip"),$=require("@base-ui/react/button"),c=require("react"),W=require("clsx"),X=require("tailwind-merge"),R=require("@base-ui/react/field"),h=require("@phosphor-icons/react"),P=require("@base-ui/react/avatar"),M=require("@base-ui/react/checkbox"),q=require("@base-ui/react/radio"),_=require("@base-ui/react/radio-group"),z=require("@base-ui/react/switch"),j=require("@base-ui/react/slider"),f=require("@base-ui/react/select"),J=require("@base-ui/react/separator"),C=require("@base-ui/react/progress"),l=require("@base-ui/react/dialog"),p=require("@base-ui/react/menu"),N=require("@base-ui/react/tabs"),k=require("@base-ui/react/accordion"),D={color:{bg:"#111318",surface:"#1a1d24",surfaceRaised:"#1e2028",surfaceHover:"#334155",border:"#2b303d",text:"#e0e0e6",muted:"#888888",accent:"#968FF8",accentLight:"#b4afff",secondary:"#7dd3fc",secondaryLight:"#bae6fd",success:"#4ade80",danger:"#f87171",dangerLight:"#fca5a5",warning:"#fbbf24",onAccent:"#141126",onSecondary:"#07131c",onDanger:"#250b0b"},radius:{sm:8,md:12,lg:20,xl:28,full:999}};function L(n={}){const e={...D.color,...n.color},t={...D.radius,...n.radius};return{"--gryt-bg":e.bg,"--gryt-surface":e.surface,"--gryt-surface-raised":e.surfaceRaised,"--gryt-surface-hover":e.surfaceHover,"--gryt-border":e.border,"--gryt-text":e.text,"--gryt-muted":e.muted,"--gryt-accent":e.accent,"--gryt-accent-light":e.accentLight,"--gryt-secondary":e.secondary,"--gryt-secondary-light":e.secondaryLight,"--gryt-success":e.success,"--gryt-danger":e.danger,"--gryt-danger-light":e.dangerLight,"--gryt-warning":e.warning,"--gryt-on-accent":e.onAccent,"--gryt-on-secondary":e.onSecondary,"--gryt-on-danger":e.onDanger,"--color-gryt-bg":e.bg,"--color-gryt-surface":e.surface,"--color-gryt-surface-raised":e.surfaceRaised,"--color-gryt-surface-hover":e.surfaceHover,"--color-gryt-border":e.border,"--color-gryt-text":e.text,"--color-gryt-muted":e.muted,"--color-gryt-accent":e.accent,"--color-gryt-accent-light":e.accentLight,"--color-gryt-secondary":e.secondary,"--color-gryt-secondary-light":e.secondaryLight,"--color-gryt-success":e.success,"--color-gryt-danger":e.danger,"--color-gryt-danger-light":e.dangerLight,"--color-gryt-warning":e.warning,"--color-gryt-on-accent":e.onAccent,"--color-gryt-on-secondary":e.onSecondary,"--color-gryt-on-danger":e.onDanger,"--gryt-radius-sm":`${t.sm}px`,"--gryt-radius-md":`${t.md}px`,"--gryt-radius-lg":`${t.lg}px`,"--gryt-radius-xl":`${t.xl}px`,"--gryt-radius-full":`${t.full}px`}}function K(n){return Object.keys(n).some(e=>e.startsWith("--"))}function Q({children:n,className:e,theme:t,tooltipDelay:a=400}){const s=t&&K(t)?t:L(t??{});return r.jsx("div",{className:e,style:s,children:r.jsx(m.Tooltip.Provider,{delay:a,children:n})})}function o(...n){return X.twMerge(W.clsx(n))}const Y={primary:"bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",secondary:"bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",neutral:"bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",danger:"bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",ghost:"bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"},Z={xsmall:"min-h-8 px-3 text-xs",small:"min-h-9 px-4 text-sm",medium:"min-h-10 px-5 text-sm",large:"min-h-12 px-6 text-base"},F=c.forwardRef(function({children:e,className:t,endIcon:a,size:s="medium",startIcon:d,tone:i="primary",...u},g){return r.jsxs($.Button,{ref:g,className:o("gryt-button","inline-flex items-center justify-center gap-2 border-0 shadow-none","rounded-(--gryt-radius-full) font-semibold whitespace-nowrap select-none","transition-[scale,background-color,color]","duration-(--gryt-dur-spring) ease-spring","motion-safe:hover:not-data-disabled:scale-[1.03]","motion-safe:active:not-data-disabled:scale-[0.96]","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light","data-disabled:cursor-not-allowed data-disabled:opacity-50",Z[s],Y[i],t),...u,children:[d,e,a]})}),b="focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",G="rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",I=["transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","data-starting-style:scale-[0.98] data-starting-style:opacity-0","data-ending-style:scale-[0.98] data-ending-style:opacity-0"].join(" "),S="data-disabled:cursor-not-allowed data-disabled:opacity-50",ee={primary:"data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",secondary:"data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",neutral:"data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",danger:"data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",success:"data-checked:bg-gryt-success data-checked:text-gryt-on-accent",warning:"data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"},H={primary:"bg-gryt-accent",secondary:"bg-gryt-secondary",neutral:"bg-gryt-surface-hover",danger:"bg-gryt-danger",success:"bg-gryt-success",warning:"bg-gryt-warning"},te={primary:"data-checked:border-gryt-accent",secondary:"data-checked:border-gryt-secondary",neutral:"data-checked:border-gryt-muted",danger:"data-checked:border-gryt-danger",success:"data-checked:border-gryt-success",warning:"data-checked:border-gryt-warning"},re={primary:"data-checked:bg-gryt-accent",secondary:"data-checked:bg-gryt-secondary",neutral:"data-checked:bg-gryt-surface-hover",danger:"data-checked:bg-gryt-danger",success:"data-checked:bg-gryt-success",warning:"data-checked:bg-gryt-warning"},ae={primary:"text-gryt-accent hover:not-data-disabled:bg-gryt-accent/10",secondary:"text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary/10",neutral:"text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",danger:"text-gryt-danger hover:not-data-disabled:bg-gryt-danger/10",ghost:"text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"},ne={xsmall:"h-8 w-8",small:"h-9 w-9",medium:"h-10 w-10",large:"h-12 w-12"},oe=c.forwardRef(function({className:e,size:t="medium",tone:a="neutral",...s},d){return r.jsx($.Button,{ref:d,className:o("gryt-icon-button","inline-flex shrink-0 items-center justify-center border-0 bg-transparent p-0","rounded-(--gryt-radius-full) select-none","transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring","motion-safe:hover:not-data-disabled:scale-[1.06]","motion-safe:active:not-data-disabled:scale-[0.94]",b,S,ne[t],ae[a],e),...s})}),se=c.forwardRef(function({className:e,elevated:t=!1,...a},s){return r.jsx("div",{ref:s,className:o("gryt-surface rounded-(--gryt-radius-lg) border border-gryt-border p-4 text-gryt-text",t?"bg-gryt-surface-raised":"bg-gryt-surface",e),...a})}),ce=c.forwardRef(function({children:e,className:t,from:a="assistant",...s},d){return r.jsx("div",{ref:d,className:o("gryt-message-bubble",a==="user"&&"ml-auto bg-gryt-accent text-gryt-on-accent",a==="assistant"&&"mr-auto border border-gryt-border bg-gryt-surface text-gryt-text",a==="system"&&"mx-auto border border-dashed border-gryt-border bg-transparent text-gryt-muted",t),...s,children:e})}),de={small:"min-h-9 px-3 py-1.5 text-sm",medium:"min-h-11 px-4 py-2.5 text-sm"},ie=c.forwardRef(function({className:e,error:t=!1,fieldClassName:a,helperText:s,label:d,minRows:i=3,multiline:u=!1,size:g="medium",...x},w){const v=r.jsx(R.Field.Control,{ref:w,render:u?r.jsx("textarea",{rows:i}):void 0,className:o("gryt-text-field-control w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised","text-gryt-text outline-none placeholder:text-gryt-muted","transition-colors duration-150","hover:border-gryt-accent-light focus:border-gryt-accent","disabled:cursor-not-allowed disabled:opacity-60",u&&"resize-y leading-6",t?"border-gryt-danger":"border-gryt-border",de[g],e),...x});return r.jsxs(R.Field.Root,{className:o("gryt-text-field flex w-full flex-col gap-1.5",a),children:[d?r.jsx(R.Field.Label,{className:"text-xs font-medium text-gryt-muted",children:d}):null,v,s?r.jsx(R.Field.Description,{className:o("text-xs",t?"text-gryt-danger":"text-gryt-muted"),children:s}):null]})}),le=c.forwardRef(function({className:e,disabled:t=!1,maxRows:a=8,minRows:s=1,onSubmit:d,placeholder:i="Message Gryt",submitLabel:u="Send",...g},x){const w=c.useRef(null),v=c.useCallback(()=>{const y=w.current;if(!y)return;const T=window.getComputedStyle(y),B=parseFloat(T.lineHeight)||24,A=parseFloat(T.paddingTop)+parseFloat(T.paddingBottom);y.style.height="auto",y.style.height=`${Math.min(Math.max(y.scrollHeight,B*s+A),B*a+A)}px`},[a,s]);c.useLayoutEffect(v,[v,g.value]);function E(y){if(!d){y.preventDefault();return}d(y)}return r.jsxs("form",{className:o("gryt-composer",e),onSubmit:E,children:[r.jsx("textarea",{ref:y=>{w.current=y,typeof x=="function"?x(y):x&&(x.current=y)},rows:s,disabled:t,placeholder:i,onInput:v,className:"gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",...g}),r.jsx(F,{type:"submit",disabled:t,size:"small",endIcon:r.jsx(h.PaperPlaneTilt,{size:14,weight:"fill"}),children:u})]})}),ge={small:"h-8 w-8 text-xs",medium:"h-10 w-10 text-sm",large:"h-12 w-12 text-base"},O=c.forwardRef(function({alt:e,children:t,className:a,fallback:s,size:d="medium",src:i,...u},g){return r.jsxs(P.Avatar.Root,{ref:g,className:o("gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none","rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",ge[d],a),...u,children:[i?r.jsx(P.Avatar.Image,{src:i,alt:e,className:"h-full w-full object-cover"}):null,r.jsx(P.Avatar.Fallback,{className:"flex h-full w-full items-center justify-center",children:s??t})]})}),ue=c.forwardRef(function({active:e=!1,avatar:t,className:a,subtitle:s,title:d,...i},u){return r.jsxs("button",{ref:u,type:"button",className:o("gryt-conversation-item",e?"bg-gryt-accent text-gryt-on-accent":"text-gryt-text hover:bg-white/5",a),...i,children:[t??r.jsx(O,{size:"small",className:o(e?"bg-gryt-on-accent text-gryt-accent ring-transparent":"bg-gryt-surface-raised text-gryt-text"),children:d.slice(0,1).toUpperCase()}),r.jsxs("span",{className:"min-w-0 flex-1",children:[r.jsx("span",{className:"block truncate text-sm font-semibold",children:d}),s?r.jsx("span",{className:o("block truncate text-xs",e?"text-gryt-on-accent/70":"text-gryt-muted"),children:s}):null]})]})}),ye=c.forwardRef(function({badgeContent:e,children:t,className:a,max:s=99,showZero:d=!1,...i},u){const g=typeof e=="number"?e:null,x=g!==null&&g===0&&!d,w=g!==null&&g>s?`${s}+`:e;return r.jsxs("span",{ref:u,className:o("gryt-badge relative inline-flex",a),...i,children:[t,e!==void 0&&!x?r.jsx("span",{className:o("gryt-badge-dot absolute -top-1 -right-1 z-10 inline-flex items-center justify-center","min-w-5 rounded-(--gryt-radius-full) px-1.5 py-0.5","bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent","ring-2 ring-gryt-bg"),children:w}):null]})}),fe={neutral:"border-gryt-border bg-gryt-surface-raised text-gryt-text",primary:"border-gryt-accent/40 bg-gryt-accent/12 text-gryt-accent",secondary:"border-gryt-secondary/40 bg-gryt-secondary/12 text-gryt-secondary",success:"border-gryt-success/40 bg-gryt-success/12 text-gryt-success",warning:"border-gryt-warning/40 bg-gryt-warning/12 text-gryt-warning",danger:"border-gryt-danger/40 bg-gryt-danger/12 text-gryt-danger"},be=c.forwardRef(function({children:e,className:t,icon:a,label:s,onDelete:d,tone:i="neutral",...u},g){return r.jsxs("span",{ref:g,className:o("gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",fe[i],t),...u,children:[a,s??e,d?r.jsx("button",{type:"button","aria-label":"Remove",onClick:d,className:o("-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-(--gryt-radius-full)","opacity-70 transition-opacity hover:opacity-100",b),children:r.jsx(h.X,{size:10,weight:"bold","aria-hidden":"true"})}):null]})}),xe=c.forwardRef(function({className:e,tone:t="primary",...a},s){return r.jsx(M.Checkbox.Root,{ref:s,className:o("gryt-checkbox flex h-5 w-5 shrink-0 items-center justify-center","rounded-(--gryt-radius-sm) border border-gryt-border bg-gryt-surface-raised","transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring","data-checked:border-transparent","hover:not-data-disabled:border-gryt-accent-light","motion-safe:hover:not-data-disabled:scale-[1.08]","motion-safe:active:not-data-disabled:scale-[0.92]",b,S,ee[t],e),...a,children:r.jsx(M.Checkbox.Indicator,{keepMounted:!0,className:o("flex origin-center","transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring","data-unchecked:scale-0 data-unchecked:opacity-0","motion-reduce:transition-none"),children:r.jsx(h.Check,{size:12,weight:"bold"})})})}),me=c.forwardRef(function({className:e,tone:t="primary",...a},s){return r.jsx(q.Radio.Root,{ref:s,className:o("gryt-radio flex h-5 w-5 shrink-0 items-center justify-center","rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised","transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring","hover:not-data-disabled:border-gryt-accent-light","motion-safe:hover:not-data-disabled:scale-[1.08]","motion-safe:active:not-data-disabled:scale-[0.92]",b,S,te[t],e),...a,children:r.jsx(q.Radio.Indicator,{keepMounted:!0,className:o("h-2.5 w-2.5 origin-center rounded-(--gryt-radius-full)","transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring","data-unchecked:scale-0 data-unchecked:opacity-0","motion-reduce:transition-none",H[t])})})}),pe=c.forwardRef(function({className:e,...t},a){return r.jsx(_.RadioGroup,{ref:a,className:o("gryt-radio-group flex flex-col gap-2",e),...t})}),he=c.forwardRef(function({className:e,tone:t="primary",...a},s){return r.jsx(z.Switch.Root,{ref:s,className:o("gryt-switch relative inline-flex h-6 w-10 shrink-0 items-center","rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised p-0.5","transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring","data-checked:border-transparent","hover:not-data-disabled:border-gryt-accent-light","motion-safe:hover:not-data-disabled:scale-[1.05]","motion-safe:active:not-data-disabled:scale-[0.95]",b,S,re[t],e),...a,children:r.jsx(z.Switch.Thumb,{className:o("h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text","transition-transform duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","data-checked:translate-x-4 data-checked:bg-gryt-bg")})})});function we({className:n,tone:e="primary","aria-label":t,...a}){return r.jsx(j.Slider.Root,{className:o("gryt-slider w-full",n),...a,children:r.jsx(j.Slider.Control,{className:"flex w-full touch-none items-center py-2 select-none",children:r.jsxs(j.Slider.Track,{className:"h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none",children:[r.jsx(j.Slider.Indicator,{className:o("h-full rounded-(--gryt-radius-full) select-none",H[e])}),r.jsx(j.Slider.Thumb,{"aria-label":t,className:o("h-4 w-4 rounded-(--gryt-radius-full) bg-gryt-text select-none","transition-transform duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","motion-safe:hover:scale-[1.12] motion-safe:active:scale-[0.94]",b)})]})})})}const ve={small:"min-h-9 px-3 text-sm",medium:"min-h-11 px-4 text-sm"};function je({className:n,label:e,options:t=[],placeholder:a="Select",size:s="medium",...d}){return r.jsxs(f.Select.Root,{items:t,...d,children:[r.jsxs("div",{className:o("gryt-select flex w-full flex-col gap-1.5",n),children:[e?r.jsx(f.Select.Label,{className:"text-xs font-medium text-gryt-muted",children:e}):null,r.jsxs(f.Select.Trigger,{className:o("flex w-full items-center justify-between gap-2","rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface-raised","text-gryt-text select-none","transition-colors duration-150 hover:border-gryt-accent-light","data-disabled:cursor-not-allowed data-disabled:opacity-60",b,ve[s]),children:[r.jsx(f.Select.Value,{placeholder:a}),r.jsx(f.Select.Icon,{className:"shrink-0 text-gryt-muted",children:r.jsx(h.CaretUpDown,{size:16})})]})]}),r.jsx(f.Select.Portal,{children:r.jsx(f.Select.Positioner,{sideOffset:6,className:"outline-none",children:r.jsx(f.Select.Popup,{className:o("min-w-(--anchor-width) p-1",G,I),children:r.jsx(f.Select.List,{children:t.map(i=>r.jsxs(f.Select.Item,{value:i.value,disabled:i.disabled,className:o("flex cursor-default items-center justify-between gap-2","rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text","outline-none select-none data-highlighted:bg-gryt-surface-raised","data-disabled:cursor-not-allowed data-disabled:opacity-50"),children:[r.jsx(f.Select.ItemText,{children:i.label}),r.jsx(f.Select.ItemIndicator,{className:"text-gryt-accent",children:r.jsx(h.Check,{size:14,weight:"bold"})})]},String(i.value)))})})})})]})}function ke({children:n,className:e,side:t="top",sideOffset:a=8,title:s}){return r.jsxs(m.Tooltip.Root,{children:[r.jsx(m.Tooltip.Trigger,{render:n}),r.jsx(m.Tooltip.Portal,{children:r.jsx(m.Tooltip.Positioner,{side:t,sideOffset:a,children:r.jsx(m.Tooltip.Popup,{className:o("gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised","px-2.5 py-1.5 text-xs text-gryt-text",I,e),children:s})})})]})}const Ne=m.Tooltip.Provider,Re=c.forwardRef(function({className:e,orientation:t="horizontal",...a},s){return r.jsx(J.Separator,{ref:s,orientation:t,className:o("gryt-divider bg-gryt-border",t==="vertical"?"h-full w-px":"h-px w-full",e),...a})}),Se=c.forwardRef(function({className:e,...t},a){return r.jsx("div",{ref:a,className:o("gryt-card rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",e),...t})});function Te({children:n,className:e,subheader:t,title:a,...s}){return r.jsxs("div",{className:o("gryt-card-header flex flex-col gap-1 p-4",e),...s,children:[a?r.jsx("span",{className:"text-base font-semibold text-gryt-text",children:a}):null,t?r.jsx("span",{className:"text-sm text-gryt-muted",children:t}):null,n]})}function Pe({className:n,...e}){return r.jsx("div",{className:o("gryt-card-content px-4 pb-4 text-sm text-gryt-muted",n),...e})}function Ce({className:n,...e}){return r.jsx("div",{className:o("gryt-card-actions flex items-center gap-2 px-4 pb-4",n),...e})}const De={info:"border-gryt-secondary/40 bg-gryt-secondary/10 text-gryt-secondary",success:"border-gryt-success/40 bg-gryt-success/10 text-gryt-success",warning:"border-gryt-warning/40 bg-gryt-warning/10 text-gryt-warning",error:"border-gryt-danger/40 bg-gryt-danger/10 text-gryt-danger"},Ie=c.forwardRef(function({className:e,severity:t="info",...a},s){return r.jsx("div",{ref:s,role:"alert",className:o("gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",De[t],e),...a})});function Be({className:n,value:e=null,...t}){return r.jsx(C.Progress.Root,{value:e,className:o("gryt-progress w-full",n),...t,children:r.jsx(C.Progress.Track,{className:"h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised",children:r.jsx(C.Progress.Indicator,{className:"h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none"})})})}function Ae({className:n,size:e=24,"aria-label":t="Loading"}){return r.jsx(h.CircleNotch,{role:"status","aria-label":t,size:e,weight:"bold",className:o("gryt-spinner text-gryt-accent motion-safe:animate-spin",n)})}const Me={text:"h-4 rounded-(--gryt-radius-sm)",rounded:"rounded-(--gryt-radius-lg)",circular:"rounded-(--gryt-radius-full)",rectangular:"rounded-none"};function qe({className:n,height:e,style:t,variant:a="text",width:s,...d}){const i={width:s,height:e,...t};return r.jsx("div",{"aria-hidden":"true",className:o("gryt-skeleton bg-gryt-surface-raised motion-safe:animate-pulse",Me[a],n),style:i,...d})}const U="transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",ze=c.forwardRef(function({className:e,...t},a){return r.jsx(l.Dialog.Backdrop,{ref:a,className:o("gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60","backdrop-blur-(--gryt-backdrop-blur)",U,"data-starting-style:opacity-0 data-ending-style:opacity-0",e),...t})}),$e=c.forwardRef(function({className:e,...t},a){return r.jsx(l.Dialog.Popup,{ref:a,className:o("gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2","flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4","rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",U,"data-starting-style:scale-[0.98] data-starting-style:opacity-0","data-ending-style:scale-[0.98] data-ending-style:opacity-0",e),...t})}),Le=c.forwardRef(function({className:e,...t},a){return r.jsx(l.Dialog.Title,{ref:a,className:o("gryt-dialog-title text-base font-semibold text-gryt-text",e),...t})}),Fe=c.forwardRef(function({className:e,...t},a){return r.jsx(l.Dialog.Description,{ref:a,className:o("gryt-dialog-description text-sm text-gryt-muted",e),...t})}),Ge=c.forwardRef(function({className:e,...t},a){return r.jsx("div",{ref:a,className:o("gryt-dialog-footer flex justify-end gap-3",e),...t})}),He={Root:l.Dialog.Root,Trigger:l.Dialog.Trigger,Portal:l.Dialog.Portal,Close:l.Dialog.Close,Backdrop:ze,Popup:$e,Title:Le,Description:Fe,Footer:Ge},Oe={left:"inset-y-0 -left-(--gryt-drawer-bleed) h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))] border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))] data-starting-style:-translate-x-full data-ending-style:-translate-x-full",right:"inset-y-0 -right-(--gryt-drawer-bleed) h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))] border-l py-5 pl-5 pr-[calc(1.25rem+var(--gryt-drawer-bleed))] data-starting-style:translate-x-full data-ending-style:translate-x-full",top:"inset-x-0 -top-(--gryt-drawer-bleed) h-auto max-h-[calc(85vh+var(--gryt-drawer-bleed))] w-full border-b px-5 pb-5 pt-[calc(1.25rem+var(--gryt-drawer-bleed))] data-starting-style:-translate-y-full data-ending-style:-translate-y-full",bottom:"inset-x-0 -bottom-(--gryt-drawer-bleed) h-auto max-h-[calc(85vh+var(--gryt-drawer-bleed))] w-full border-t px-5 pt-5 pb-[calc(1.25rem+var(--gryt-drawer-bleed))] data-starting-style:translate-y-full data-ending-style:translate-y-full"},Ue=c.forwardRef(function({className:e,side:t="right",...a},s){return r.jsx(l.Dialog.Popup,{ref:s,className:o("gryt-drawer fixed z-50 flex flex-col gap-4 border-gryt-border bg-gryt-surface text-gryt-text","transition-transform duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none",Oe[t],e),...a})}),Ve=c.forwardRef(function({className:e,...t},a){return r.jsx(l.Dialog.Backdrop,{ref:a,className:o("gryt-drawer-backdrop fixed inset-0 min-h-dvh bg-black/60","backdrop-blur-(--gryt-backdrop-blur)","transition-opacity duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none","data-starting-style:opacity-0 data-ending-style:opacity-0",e),...t})}),Ee={Root:l.Dialog.Root,Trigger:l.Dialog.Trigger,Portal:l.Dialog.Portal,Close:l.Dialog.Close,Title:l.Dialog.Title,Description:l.Dialog.Description,Backdrop:Ve,Popup:Ue},We=c.forwardRef(function({className:e,sideOffset:t=8,...a},s){return r.jsx(p.Menu.Positioner,{ref:s,sideOffset:t,className:o("gryt-menu-positioner outline-none",e),...a})}),Xe=c.forwardRef(function({className:e,...t},a){return r.jsx(p.Menu.Popup,{ref:a,className:o("gryt-menu min-w-44 p-1 outline-none",G,I,e),...t})}),_e=c.forwardRef(function({className:e,...t},a){return r.jsx(p.Menu.Item,{ref:a,className:o("gryt-menu-item flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)","px-3 py-2 text-sm text-gryt-text outline-none select-none","data-highlighted:bg-gryt-surface-raised","data-disabled:cursor-not-allowed data-disabled:opacity-50",e),...t})}),Je=c.forwardRef(function({className:e,...t},a){return r.jsx(p.Menu.Separator,{ref:a,className:o("gryt-menu-separator my-1 h-px bg-gryt-border",e),...t})}),Ke={Root:p.Menu.Root,Trigger:p.Menu.Trigger,Portal:p.Menu.Portal,Positioner:We,Popup:Xe,Item:_e,Separator:Je},Qe=c.forwardRef(function({className:e,...t},a){return r.jsx(N.Tabs.Root,{ref:a,className:o("gryt-tabs",e),...t})}),Ye=c.forwardRef(function({className:e,...t},a){return r.jsx(N.Tabs.List,{ref:a,className:o("gryt-tabs-list relative inline-flex items-center gap-1 rounded-(--gryt-radius-full) bg-gryt-surface-raised p-1",e),...t})}),V=c.forwardRef(function({className:e,...t},a){return r.jsx(N.Tabs.Tab,{ref:a,className:o("gryt-tab inline-flex min-h-8 items-center justify-center whitespace-nowrap","rounded-(--gryt-radius-full) border-0 bg-transparent px-4 py-1.5","text-sm font-medium text-gryt-muted select-none","relative z-10 transition-colors duration-150 hover:text-gryt-text","data-active:text-gryt-on-accent",b,e),...t})}),Ze=c.forwardRef(function({className:e,...t},a){return r.jsx(N.Tabs.Indicator,{ref:a,renderBeforeHydration:!0,className:o("gryt-tabs-indicator absolute top-1 left-0 z-0 h-[calc(100%-0.5rem)]","w-(--active-tab-width) translate-x-(--active-tab-left)","rounded-(--gryt-radius-full) bg-gryt-accent","transition-[translate,width] duration-(--gryt-dur-spring) ease-spring","motion-reduce:transition-none",e),...t})}),et=c.forwardRef(function({className:e,...t},a){return r.jsx(N.Tabs.Panel,{ref:a,className:o("gryt-tabs-panel pt-3 text-sm text-gryt-text",e),...t})}),tt=Object.assign(Qe,{List:Ye,Tab:V,Panel:et,Indicator:Ze}),rt=c.forwardRef(function({className:e,...t},a){return r.jsx(k.Accordion.Root,{ref:a,className:o("gryt-accordion flex w-full flex-col gap-2 rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface p-2",e),...t})}),at=c.forwardRef(function({className:e,...t},a){return r.jsx(k.Accordion.Item,{ref:a,className:o("gryt-accordion-item",e),...t})}),nt=c.forwardRef(function({children:e,className:t,expandIcon:a,...s},d){return r.jsx(k.Accordion.Header,{className:"gryt-accordion-header m-0",children:r.jsxs(k.Accordion.Trigger,{ref:d,className:o("gryt-accordion-trigger flex w-full items-center justify-between gap-3","rounded-(--gryt-radius-lg) border-0 bg-transparent px-3 py-2.5","text-left text-sm font-medium text-gryt-text select-none","transition-colors duration-150 hover:bg-gryt-surface-raised",b,t),...s,children:[e,a===void 0?r.jsx(h.CaretDown,{size:16,className:"shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"}):a]})})}),ot=c.forwardRef(function({children:e,className:t,...a},s){return r.jsx(k.Accordion.Panel,{ref:s,className:o("gryt-accordion-panel overflow-hidden text-sm text-gryt-muted","h-[var(--accordion-panel-height)] transition-[height] duration-(--gryt-dur-spring-soft) ease-spring","data-starting-style:h-0 data-ending-style:h-0","motion-reduce:transition-none",t),...a,children:r.jsx("div",{className:"px-3 pt-1 pb-3",children:e})})}),st=Object.assign(rt,{Item:at,Trigger:nt,Panel:ot});exports.Accordion=st;exports.Alert=Ie;exports.Avatar=O;exports.Badge=ye;exports.Button=F;exports.Card=Se;exports.CardActions=Ce;exports.CardContent=Pe;exports.CardHeader=Te;exports.Checkbox=xe;exports.Chip=be;exports.Composer=le;exports.ConversationItem=ue;exports.Dialog=He;exports.Divider=Re;exports.Drawer=Ee;exports.GrytProvider=Q;exports.IconButton=oe;exports.Menu=Ke;exports.MessageBubble=ce;exports.Progress=Be;exports.Radio=me;exports.RadioGroup=pe;exports.Select=je;exports.Skeleton=qe;exports.Slider=we;exports.Spinner=Ae;exports.Surface=se;exports.Switch=he;exports.Tab=V;exports.Tabs=tt;exports.TextField=ie;exports.Tooltip=ke;exports.TooltipProvider=Ne;exports.cn=o;exports.createGrytTheme=L;exports.grytTokens=D;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),M=require("@base-ui/react/tooltip"),ae=require("@base-ui/react/button"),s=require("react"),fe=require("clsx"),me=require("tailwind-merge"),V=require("@base-ui/react/field"),v=require("@phosphor-icons/react"),H=require("@base-ui/react/avatar"),K=require("@base-ui/react/checkbox"),Z=require("@base-ui/react/radio"),be=require("@base-ui/react/radio-group"),ee=require("@base-ui/react/switch"),G=require("@base-ui/react/slider"),b=require("@base-ui/react/select"),xe=require("@base-ui/react/separator"),X=require("@base-ui/react/progress"),C=require("@base-ui/react/dialog"),w=require("@base-ui/react/drawer"),D=require("@base-ui/react/menu"),z=require("@base-ui/react/tabs"),B=require("@base-ui/react/accordion"),P=require("@base-ui/react/context-menu"),N=require("@base-ui/react/popover"),R=require("@base-ui/react/toast"),F=require("@base-ui/react/scroll-area"),he=require("@base-ui/react/toggle"),we=require("@base-ui/react/toggle-group"),q=require("@base-ui/react/meter"),T=require("@base-ui/react/alert-dialog"),p=require("@base-ui/react/autocomplete"),d=require("@base-ui/react/combobox"),ve=require("@base-ui/react/checkbox-group"),Q=require("@base-ui/react/collapsible"),je=require("@base-ui/react/form"),ne=require("@base-ui/react/fieldset"),Ne=require("@base-ui/react/menubar"),x=require("@base-ui/react/navigation-menu"),A=require("@base-ui/react/number-field"),te=require("@base-ui/react/otp-field"),I=require("@base-ui/react/preview-card"),$=require("@base-ui/react/toolbar"),Y={color:{bg:"#111318",surface:"#1a1d24",surfaceRaised:"#1e2028",surfaceHover:"#334155",border:"#2b303d",text:"#e0e0e6",muted:"#888888",accent:"#968FF8",accentLight:"#b4afff",secondary:"#7dd3fc",secondaryLight:"#bae6fd",success:"#4ade80",danger:"#f87171",dangerLight:"#fca5a5",warning:"#fbbf24",onAccent:"#141126",onSecondary:"#07131c",onDanger:"#250b0b"},radius:{sm:8,md:12,lg:20,xl:28,full:999}};function se(a={}){const e={...Y.color,...a.color},t={...Y.radius,...a.radius};return{"--gryt-bg":e.bg,"--gryt-surface":e.surface,"--gryt-surface-raised":e.surfaceRaised,"--gryt-surface-hover":e.surfaceHover,"--gryt-border":e.border,"--gryt-text":e.text,"--gryt-muted":e.muted,"--gryt-accent":e.accent,"--gryt-accent-light":e.accentLight,"--gryt-secondary":e.secondary,"--gryt-secondary-light":e.secondaryLight,"--gryt-success":e.success,"--gryt-danger":e.danger,"--gryt-danger-light":e.dangerLight,"--gryt-warning":e.warning,"--gryt-on-accent":e.onAccent,"--gryt-on-secondary":e.onSecondary,"--gryt-on-danger":e.onDanger,"--color-gryt-bg":e.bg,"--color-gryt-surface":e.surface,"--color-gryt-surface-raised":e.surfaceRaised,"--color-gryt-surface-hover":e.surfaceHover,"--color-gryt-border":e.border,"--color-gryt-text":e.text,"--color-gryt-muted":e.muted,"--color-gryt-accent":e.accent,"--color-gryt-accent-light":e.accentLight,"--color-gryt-secondary":e.secondary,"--color-gryt-secondary-light":e.secondaryLight,"--color-gryt-success":e.success,"--color-gryt-danger":e.danger,"--color-gryt-danger-light":e.dangerLight,"--color-gryt-warning":e.warning,"--color-gryt-on-accent":e.onAccent,"--color-gryt-on-secondary":e.onSecondary,"--color-gryt-on-danger":e.onDanger,"--gryt-radius-sm":`${t.sm}px`,"--gryt-radius-md":`${t.md}px`,"--gryt-radius-lg":`${t.lg}px`,"--gryt-radius-xl":`${t.xl}px`,"--gryt-radius-full":`${t.full}px`}}function Re(a){return Object.keys(a).some(e=>e.startsWith("--"))}function Pe({children:a,className:e,theme:t,tooltipDelay:r=400}){const i=t&&Re(t)?t:se(t??{});return o.jsx("div",{className:e,style:i,children:o.jsx(M.Tooltip.Provider,{delay:r,children:a})})}function n(...a){return me.twMerge(fe.clsx(a))}const Ce={primary:"bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",secondary:"bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",neutral:"bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",danger:"bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",ghost:"bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"},Te={xsmall:"min-h-8 px-3 text-xs",small:"min-h-9 px-4 text-sm",medium:"min-h-10 px-5 text-sm",large:"min-h-12 px-6 text-base"},ie=s.forwardRef(function({children:e,className:t,endIcon:r,size:i="medium",startIcon:c,tone:l="primary",...y},u){return o.jsxs(ae.Button,{ref:u,className:n("gryt-button","inline-flex items-center justify-center gap-2 border-0 shadow-none","rounded-(--gryt-radius-full) font-semibold whitespace-nowrap select-none","transition-[scale,background-color,color]","duration-(--gryt-dur-spring) ease-spring","motion-safe:hover:not-data-disabled:scale-[1.03]","motion-safe:active:not-data-disabled:scale-[0.96]","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light","data-disabled:cursor-not-allowed data-disabled:opacity-50",Te[i],Ce[l],t),...y,children:[c,e,r]})}),f="focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",ke="has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light",k="rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",S=["transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","data-starting-style:scale-[0.98] data-starting-style:opacity-0","data-ending-style:scale-[0.98] data-ending-style:opacity-0"].join(" "),L="data-disabled:cursor-not-allowed data-disabled:opacity-50",Se={primary:"data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",secondary:"data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",neutral:"data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",danger:"data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",success:"data-checked:bg-gryt-success data-checked:text-gryt-on-accent",warning:"data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"},ce={primary:"bg-gryt-accent",secondary:"bg-gryt-secondary",neutral:"bg-gryt-surface-hover",danger:"bg-gryt-danger",success:"bg-gryt-success",warning:"bg-gryt-warning"},Ae={primary:"data-checked:border-gryt-accent",secondary:"data-checked:border-gryt-secondary",neutral:"data-checked:border-gryt-muted",danger:"data-checked:border-gryt-danger",success:"data-checked:border-gryt-success",warning:"data-checked:border-gryt-warning"},Me={primary:"data-checked:bg-gryt-accent",secondary:"data-checked:bg-gryt-secondary",neutral:"data-checked:bg-gryt-surface-hover",danger:"data-checked:bg-gryt-danger",success:"data-checked:bg-gryt-success",warning:"data-checked:bg-gryt-warning"},De={primary:"text-gryt-accent hover:not-data-disabled:bg-gryt-accent/10",secondary:"text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary/10",neutral:"text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",danger:"text-gryt-danger hover:not-data-disabled:bg-gryt-danger/10",ghost:"text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"},Ie={xsmall:"h-8 w-8",small:"h-9 w-9",medium:"h-10 w-10",large:"h-12 w-12"},$e=s.forwardRef(function({className:e,size:t="medium",tone:r="neutral",...i},c){return o.jsx(ae.Button,{ref:c,className:n("gryt-icon-button","inline-flex shrink-0 items-center justify-center border-0 bg-transparent p-0","rounded-(--gryt-radius-full) select-none","transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring","motion-safe:hover:not-data-disabled:scale-[1.06]","motion-safe:active:not-data-disabled:scale-[0.94]",f,L,Ie[t],De[r],e),...i})}),Fe=s.forwardRef(function({className:e,elevated:t=!1,...r},i){return o.jsx("div",{ref:i,className:n("gryt-surface rounded-(--gryt-radius-lg) border border-gryt-border p-4 text-gryt-text",t?"bg-gryt-surface-raised":"bg-gryt-surface",e),...r})}),Le=s.forwardRef(function({children:e,className:t,from:r="assistant",...i},c){return o.jsx("div",{ref:c,className:n("gryt-message-bubble",r==="user"&&"ml-auto bg-gryt-accent text-gryt-on-accent",r==="assistant"&&"mr-auto border border-gryt-border bg-gryt-surface text-gryt-text",r==="system"&&"mx-auto border border-dashed border-gryt-border bg-transparent text-gryt-muted",t),...i,children:e})}),Ge={small:"min-h-9 px-3 py-1.5 text-sm",medium:"min-h-11 px-4 py-2.5 text-sm"},qe=s.forwardRef(function({className:e,error:t=!1,fieldClassName:r,helperText:i,label:c,minRows:l=3,multiline:y=!1,size:u="medium",...h},g){const j=o.jsx(V.Field.Control,{ref:g,render:y?o.jsx("textarea",{rows:l}):void 0,className:n("gryt-text-field-control w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised","text-gryt-text outline-none placeholder:text-gryt-muted","transition-colors duration-150","hover:border-gryt-accent-light focus:border-gryt-accent","disabled:cursor-not-allowed disabled:opacity-60",y&&"resize-y leading-6",t?"border-gryt-danger":"border-gryt-border",Ge[u],e),...h});return o.jsxs(V.Field.Root,{className:n("gryt-text-field flex w-full flex-col gap-1.5",r),children:[c?o.jsx(V.Field.Label,{className:"text-xs font-medium text-gryt-muted",children:c}):null,j,i?o.jsx(V.Field.Description,{className:n("text-xs",t?"text-gryt-danger":"text-gryt-muted"),children:i}):null]})}),Be=s.forwardRef(function({className:e,disabled:t=!1,maxRows:r=8,minRows:i=1,onSubmit:c,placeholder:l="Message Gryt",submitLabel:y="Send",...u},h){const g=s.useRef(null),j=s.useCallback(()=>{const m=g.current;if(!m)return;const _=window.getComputedStyle(m),W=parseFloat(_.lineHeight)||24,J=parseFloat(_.paddingTop)+parseFloat(_.paddingBottom);m.style.height="auto",m.style.height=`${Math.min(Math.max(m.scrollHeight,W*i+J),W*r+J)}px`},[r,i]);s.useLayoutEffect(j,[j,u.value]);function U(m){if(!c){m.preventDefault();return}c(m)}return o.jsxs("form",{className:n("gryt-composer",e),onSubmit:U,children:[o.jsx("textarea",{ref:m=>{g.current=m,typeof h=="function"?h(m):h&&(h.current=m)},rows:i,disabled:t,placeholder:l,onInput:j,className:"gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",...u}),o.jsx(ie,{type:"submit",disabled:t,size:"small",endIcon:o.jsx(v.PaperPlaneTilt,{size:14,weight:"fill"}),children:y})]})}),ze={small:"h-8 w-8 text-xs",medium:"h-10 w-10 text-sm",large:"h-12 w-12 text-base"},le=s.forwardRef(function({alt:e,children:t,className:r,fallback:i,size:c="medium",src:l,...y},u){return o.jsxs(H.Avatar.Root,{ref:u,className:n("gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none","rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",ze[c],r),...y,children:[l?o.jsx(H.Avatar.Image,{src:l,alt:e,className:"h-full w-full object-cover"}):null,o.jsx(H.Avatar.Fallback,{className:"flex h-full w-full items-center justify-center",children:i??t})]})}),Ve=s.forwardRef(function({active:e=!1,avatar:t,className:r,subtitle:i,title:c,...l},y){return o.jsxs("button",{ref:y,type:"button",className:n("gryt-conversation-item",e?"bg-gryt-accent text-gryt-on-accent":"text-gryt-text hover:bg-white/5",r),...l,children:[t??o.jsx(le,{size:"small",className:n(e?"bg-gryt-on-accent text-gryt-accent ring-transparent":"bg-gryt-surface-raised text-gryt-text"),children:c.slice(0,1).toUpperCase()}),o.jsxs("span",{className:"min-w-0 flex-1",children:[o.jsx("span",{className:"block truncate text-sm font-semibold",children:c}),i?o.jsx("span",{className:n("block truncate text-xs",e?"text-gryt-on-accent/70":"text-gryt-muted"),children:i}):null]})]})}),Ee=s.forwardRef(function({badgeContent:e,children:t,className:r,max:i=99,showZero:c=!1,...l},y){const u=typeof e=="number"?e:null,h=u!==null&&u===0&&!c,g=u!==null&&u>i?`${i}+`:e;return o.jsxs("span",{ref:y,className:n("gryt-badge relative inline-flex",r),...l,children:[t,e!==void 0&&!h?o.jsx("span",{className:n("gryt-badge-dot absolute -top-1 -right-1 z-10 inline-flex items-center justify-center","min-w-5 rounded-(--gryt-radius-full) px-1.5 py-0.5","bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent","ring-2 ring-gryt-bg"),children:g}):null]})}),Oe={neutral:"border-gryt-border bg-gryt-surface-raised text-gryt-text",primary:"border-gryt-accent/40 bg-gryt-accent/12 text-gryt-accent",secondary:"border-gryt-secondary/40 bg-gryt-secondary/12 text-gryt-secondary",success:"border-gryt-success/40 bg-gryt-success/12 text-gryt-success",warning:"border-gryt-warning/40 bg-gryt-warning/12 text-gryt-warning",danger:"border-gryt-danger/40 bg-gryt-danger/12 text-gryt-danger"},_e=s.forwardRef(function({children:e,className:t,icon:r,label:i,onDelete:c,tone:l="neutral",...y},u){return o.jsxs("span",{ref:u,className:n("gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",Oe[l],t),...y,children:[r,i??e,c?o.jsx("button",{type:"button","aria-label":"Remove",onClick:c,className:n("-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-(--gryt-radius-full)","opacity-70 transition-opacity hover:opacity-100",f),children:o.jsx(v.X,{size:10,weight:"bold","aria-hidden":"true"})}):null]})}),He=s.forwardRef(function({className:e,tone:t="primary",...r},i){return o.jsx(K.Checkbox.Root,{ref:i,className:n("gryt-checkbox flex h-5 w-5 shrink-0 items-center justify-center","rounded-(--gryt-radius-sm) border border-gryt-border bg-gryt-surface-raised","transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring","data-checked:border-transparent","hover:not-data-disabled:border-gryt-accent-light","motion-safe:hover:not-data-disabled:scale-[1.08]","motion-safe:active:not-data-disabled:scale-[0.92]",f,L,Se[t],e),...r,children:o.jsx(K.Checkbox.Indicator,{keepMounted:!0,className:n("flex origin-center","transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring","data-unchecked:scale-0 data-unchecked:opacity-0","motion-reduce:transition-none"),children:o.jsx(v.Check,{size:12,weight:"bold"})})})}),Xe=s.forwardRef(function({className:e,tone:t="primary",...r},i){return o.jsx(Z.Radio.Root,{ref:i,className:n("gryt-radio flex h-5 w-5 shrink-0 items-center justify-center","rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised","transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring","hover:not-data-disabled:border-gryt-accent-light","motion-safe:hover:not-data-disabled:scale-[1.08]","motion-safe:active:not-data-disabled:scale-[0.92]",f,L,Ae[t],e),...r,children:o.jsx(Z.Radio.Indicator,{keepMounted:!0,className:n("h-2.5 w-2.5 origin-center rounded-(--gryt-radius-full)","transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring","data-unchecked:scale-0 data-unchecked:opacity-0","motion-reduce:transition-none",ce[t])})})}),Ye=s.forwardRef(function({className:e,...t},r){return o.jsx(be.RadioGroup,{ref:r,className:n("gryt-radio-group flex flex-col gap-2",e),...t})}),Qe=s.forwardRef(function({className:e,tone:t="primary",...r},i){return o.jsx(ee.Switch.Root,{ref:i,className:n("gryt-switch relative inline-flex h-6 w-10 shrink-0 items-center","rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised p-0.5","transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring","data-checked:border-transparent","hover:not-data-disabled:border-gryt-accent-light","motion-safe:hover:not-data-disabled:scale-[1.05]","motion-safe:active:not-data-disabled:scale-[0.95]",f,L,Me[t],e),...r,children:o.jsx(ee.Switch.Thumb,{className:n("h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text","transition-transform duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","data-checked:translate-x-4 data-checked:bg-gryt-bg")})})}),re=3;function Ue({className:a,tone:e="primary","aria-label":t,...r}){const[i,c]=s.useState(!1),l=s.useRef(null);s.useEffect(()=>{if(!i&&l.current===null)return;const g=()=>{l.current=null,c(!1)};return window.addEventListener("pointerup",g),window.addEventListener("pointercancel",g),()=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g)}},[i]);function y(g){l.current={x:g.clientX,y:g.clientY}}function u(g){const j=l.current;if(j===null||i)return;(Math.abs(g.clientX-j.x)>re||Math.abs(g.clientY-j.y)>re)&&c(!0)}const h=i?"transition-none":"duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";return o.jsx(G.Slider.Root,{className:n("gryt-slider w-full",a),...r,children:o.jsx(G.Slider.Control,{className:"flex w-full touch-none items-center py-2 select-none",onPointerDown:y,onPointerMove:u,children:o.jsxs(G.Slider.Track,{className:"h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none",children:[o.jsx(G.Slider.Indicator,{className:n("h-full rounded-(--gryt-radius-full) select-none","transition-[width]",h,ce[e])}),o.jsx(G.Slider.Thumb,{"aria-label":t,className:n("group h-4 w-4 rounded-(--gryt-radius-full) select-none","transition-[inset-inline-start]",h,ke),children:o.jsx("span",{className:n("block h-full w-full rounded-(--gryt-radius-full) bg-gryt-text","transition-[scale] duration-(--gryt-dur-spring) ease-spring","motion-safe:group-hover:scale-[1.12] motion-safe:group-active:scale-[0.94]","motion-reduce:transition-none")})})]})})})}const We={small:"min-h-9 px-3 text-sm",medium:"min-h-11 px-4 text-sm"};function Je({className:a,label:e,options:t=[],placeholder:r="Select",size:i="medium",...c}){return o.jsxs(b.Select.Root,{items:t,...c,children:[o.jsxs("div",{className:n("gryt-select flex w-full flex-col gap-1.5",a),children:[e?o.jsx(b.Select.Label,{className:"text-xs font-medium text-gryt-muted",children:e}):null,o.jsxs(b.Select.Trigger,{className:n("flex w-full items-center justify-between gap-2","rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface-raised","text-gryt-text select-none","transition-colors duration-150 hover:border-gryt-accent-light","data-disabled:cursor-not-allowed data-disabled:opacity-60",f,We[i]),children:[o.jsx(b.Select.Value,{placeholder:r}),o.jsx(b.Select.Icon,{className:"shrink-0 text-gryt-muted",children:o.jsx(v.CaretUpDown,{size:16})})]})]}),o.jsx(b.Select.Portal,{children:o.jsx(b.Select.Positioner,{sideOffset:6,className:"outline-none",children:o.jsx(b.Select.Popup,{className:n("min-w-(--anchor-width) p-1",k,S),children:o.jsx(b.Select.List,{children:t.map(l=>o.jsxs(b.Select.Item,{value:l.value,disabled:l.disabled,className:n("flex cursor-default items-center justify-between gap-2","rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text","outline-none select-none data-highlighted:bg-gryt-surface-raised","data-disabled:cursor-not-allowed data-disabled:opacity-50"),children:[o.jsx(b.Select.ItemText,{children:l.label}),o.jsx(b.Select.ItemIndicator,{className:"text-gryt-accent",children:o.jsx(v.Check,{size:14,weight:"bold"})})]},String(l.value)))})})})})]})}function Ke({children:a,className:e,side:t="top",sideOffset:r=8,title:i}){return o.jsxs(M.Tooltip.Root,{children:[o.jsx(M.Tooltip.Trigger,{render:a}),o.jsx(M.Tooltip.Portal,{children:o.jsx(M.Tooltip.Positioner,{side:t,sideOffset:r,children:o.jsx(M.Tooltip.Popup,{className:n("gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised","px-2.5 py-1.5 text-xs text-gryt-text",S,e),children:i})})})]})}const Ze=M.Tooltip.Provider,et=s.forwardRef(function({className:e,orientation:t="horizontal",...r},i){return o.jsx(xe.Separator,{ref:i,orientation:t,className:n("gryt-divider bg-gryt-border",t==="vertical"?"h-full w-px":"h-px w-full",e),...r})}),tt=s.forwardRef(function({className:e,...t},r){return o.jsx("div",{ref:r,className:n("gryt-card rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",e),...t})});function rt({children:a,className:e,subheader:t,title:r,...i}){return o.jsxs("div",{className:n("gryt-card-header flex flex-col gap-1 p-4",e),...i,children:[r?o.jsx("span",{className:"text-base font-semibold text-gryt-text",children:r}):null,t?o.jsx("span",{className:"text-sm text-gryt-muted",children:t}):null,a]})}function ot({className:a,...e}){return o.jsx("div",{className:n("gryt-card-content px-4 pb-4 text-sm text-gryt-muted",a),...e})}function at({className:a,...e}){return o.jsx("div",{className:n("gryt-card-actions flex items-center gap-2 px-4 pb-4",a),...e})}const nt={info:"border-gryt-secondary/40 bg-gryt-secondary/10 text-gryt-secondary",success:"border-gryt-success/40 bg-gryt-success/10 text-gryt-success",warning:"border-gryt-warning/40 bg-gryt-warning/10 text-gryt-warning",error:"border-gryt-danger/40 bg-gryt-danger/10 text-gryt-danger"},st=s.forwardRef(function({className:e,severity:t="info",...r},i){return o.jsx("div",{ref:i,role:"alert",className:n("gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",nt[t],e),...r})});function it({className:a,value:e=null,...t}){return o.jsx(X.Progress.Root,{value:e,className:n("gryt-progress w-full",a),...t,children:o.jsx(X.Progress.Track,{className:"h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised",children:o.jsx(X.Progress.Indicator,{className:"h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none"})})})}function ct({className:a,size:e=24,"aria-label":t="Loading"}){return o.jsx(v.CircleNotch,{role:"status","aria-label":t,size:e,weight:"bold",className:n("gryt-spinner text-gryt-accent motion-safe:animate-spin",a)})}const lt={text:"h-4 rounded-(--gryt-radius-sm)",rounded:"rounded-(--gryt-radius-lg)",circular:"rounded-(--gryt-radius-full)",rectangular:"rounded-none"};function dt({className:a,height:e,style:t,variant:r="text",width:i,...c}){const l={width:i,height:e,...t};return o.jsx("div",{"aria-hidden":"true",className:n("gryt-skeleton bg-gryt-surface-raised motion-safe:animate-pulse",lt[r],a),style:l,...c})}const de="transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",ut=s.forwardRef(function({className:e,...t},r){return o.jsx(C.Dialog.Backdrop,{ref:r,className:n("gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60","backdrop-blur-(--gryt-backdrop-blur)",de,"data-starting-style:opacity-0 data-ending-style:opacity-0",e),...t})}),gt=s.forwardRef(function({className:e,...t},r){return o.jsx(C.Dialog.Popup,{ref:r,className:n("gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2","flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4","rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",de,"data-starting-style:scale-[0.98] data-starting-style:opacity-0","data-ending-style:scale-[0.98] data-ending-style:opacity-0",e),...t})}),yt=s.forwardRef(function({className:e,...t},r){return o.jsx(C.Dialog.Title,{ref:r,className:n("gryt-dialog-title text-base font-semibold text-gryt-text",e),...t})}),pt=s.forwardRef(function({className:e,...t},r){return o.jsx(C.Dialog.Description,{ref:r,className:n("gryt-dialog-description text-sm text-gryt-muted",e),...t})}),ft=s.forwardRef(function({className:e,...t},r){return o.jsx("div",{ref:r,className:n("gryt-dialog-footer flex justify-end gap-3",e),...t})}),mt={Root:C.Dialog.Root,Trigger:C.Dialog.Trigger,Portal:C.Dialog.Portal,Close:C.Dialog.Close,Backdrop:ut,Popup:gt,Title:yt,Description:pt,Footer:ft},bt=()=>()=>{};function ue(a){const e=s.useCallback(r=>{if(typeof window>"u"||!window.matchMedia)return bt();const i=window.matchMedia(a);return i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[a]),t=s.useCallback(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(a).matches,[a]);return s.useSyncExternalStore(e,t,()=>!1)}const xt={left:"left",right:"right",top:"up",bottom:"down"},O=s.createContext("right"),ht={left:"items-stretch justify-start",right:"items-stretch justify-end",top:"items-start justify-center",bottom:"items-end justify-center"},wt={left:"rounded-r-(--gryt-radius-xl)",right:"rounded-l-(--gryt-radius-xl)",top:"rounded-b-(--gryt-radius-xl)",bottom:"rounded-t-(--gryt-radius-xl)"},vt={left:["h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]","-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]","[transform:translateX(var(--drawer-swipe-movement-x))]","data-starting-style:[transform:translateX(calc(-100%+var(--gryt-drawer-bleed)))]","data-ending-style:[transform:translateX(calc(-100%+var(--gryt-drawer-bleed)))]"].join(" "),right:["h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]","-mr-(--gryt-drawer-bleed) border-l py-5 pl-5 pr-[calc(1.25rem+var(--gryt-drawer-bleed))]","[transform:translateX(var(--drawer-swipe-movement-x))]","data-starting-style:[transform:translateX(calc(100%-var(--gryt-drawer-bleed)))]","data-ending-style:[transform:translateX(calc(100%-var(--gryt-drawer-bleed)))]"].join(" "),top:["w-full max-h-[calc(85vh+var(--gryt-drawer-bleed))]","-mt-(--gryt-drawer-bleed) border-b px-5 pb-5 pt-[calc(1.25rem+var(--gryt-drawer-bleed))]","[transform:translateY(var(--drawer-swipe-movement-y))]","data-starting-style:[transform:translateY(calc(-100%+var(--gryt-drawer-bleed)))]","data-ending-style:[transform:translateY(calc(-100%+var(--gryt-drawer-bleed)))]"].join(" "),bottom:["w-full max-h-[calc(85vh+var(--gryt-drawer-bleed))]","-mb-(--gryt-drawer-bleed) border-t px-5 pt-5 pb-[calc(1.25rem+var(--gryt-drawer-bleed))]","[transform:translateY(var(--drawer-swipe-movement-y))]","data-starting-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]","data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"].join(" ")};function jt({side:a="right",sheetOnMobile:e=!0,children:t,...r}){const i=ue("(max-width: 767px)"),c=e&&i?"bottom":a;return o.jsx(O.Provider,{value:c,children:o.jsx(w.Drawer.Root,{swipeDirection:xt[c],...r,children:t})})}const Nt=s.forwardRef(function({className:e,...t},r){const i=s.useContext(O);return o.jsx(w.Drawer.Viewport,{ref:r,className:n("gryt-drawer-viewport fixed inset-0 z-50 flex",ht[i],e),...t})}),Rt=s.forwardRef(function({className:e,...t},r){const i=s.useContext(O);return o.jsx(w.Drawer.Popup,{ref:r,className:n("gryt-drawer flex flex-col gap-4 border-gryt-border bg-gryt-surface text-gryt-text","overflow-y-auto overscroll-contain outline-none","transition-transform duration-(--gryt-dur-spring-soft) ease-spring","data-swiping:duration-0 data-swiping:select-none","motion-reduce:transition-none",vt[i],wt[i],e),...t})}),Pt=s.forwardRef(function({className:e,...t},r){return o.jsx(w.Drawer.Backdrop,{ref:r,className:n("gryt-drawer-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60","backdrop-blur-(--gryt-backdrop-blur)","[opacity:calc(1-var(--drawer-swipe-progress,0))]","transition-opacity duration-(--gryt-dur-spring-soft) ease-spring","data-swiping:duration-0","data-starting-style:opacity-0 data-ending-style:opacity-0","motion-reduce:transition-none",e),...t})});function Ct({className:a}){const e=s.useContext(O);return e!=="bottom"&&e!=="top"?null:o.jsx("div",{"aria-hidden":!0,className:n("gryt-drawer-grabber mx-auto h-1.5 w-10 shrink-0 rounded-(--gryt-radius-full) bg-gryt-border",e==="top"&&"order-last",a)})}const Tt={Root:jt,Trigger:w.Drawer.Trigger,Portal:w.Drawer.Portal,Backdrop:Pt,Viewport:Nt,Popup:Rt,Content:w.Drawer.Content,Grabber:Ct,Close:w.Drawer.Close,Title:w.Drawer.Title,Description:w.Drawer.Description},kt=s.forwardRef(function({className:e,sideOffset:t=8,...r},i){return o.jsx(D.Menu.Positioner,{ref:i,sideOffset:t,className:n("gryt-menu-positioner outline-none",e),...r})}),St=s.forwardRef(function({className:e,...t},r){return o.jsx(D.Menu.Popup,{ref:r,className:n("gryt-menu min-w-44 p-1 outline-none",k,S,e),...t})}),At=s.forwardRef(function({className:e,...t},r){return o.jsx(D.Menu.Item,{ref:r,className:n("gryt-menu-item flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)","px-3 py-2 text-sm text-gryt-text outline-none select-none","data-highlighted:bg-gryt-surface-raised","data-disabled:cursor-not-allowed data-disabled:opacity-50",e),...t})}),Mt=s.forwardRef(function({className:e,...t},r){return o.jsx(D.Menu.Separator,{ref:r,className:n("gryt-menu-separator my-1 h-px bg-gryt-border",e),...t})}),E={Root:D.Menu.Root,Trigger:D.Menu.Trigger,Portal:D.Menu.Portal,Positioner:kt,Popup:St,Item:At,Separator:Mt},Dt=s.forwardRef(function({className:e,...t},r){return o.jsx(z.Tabs.Root,{ref:r,className:n("gryt-tabs","data-[orientation=vertical]:flex data-[orientation=vertical]:items-stretch",e),...t})}),It=s.forwardRef(function({className:e,...t},r){return o.jsx(z.Tabs.List,{ref:r,className:n("gryt-tabs-list relative inline-flex items-center gap-1 rounded-(--gryt-radius-full) bg-gryt-surface-raised p-1","data-[orientation=vertical]:flex data-[orientation=vertical]:shrink-0","data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch","data-[orientation=vertical]:rounded-(--gryt-radius-lg)",e),...t})}),ge=s.forwardRef(function({className:e,...t},r){return o.jsx(z.Tabs.Tab,{ref:r,className:n("gryt-tab inline-flex min-h-8 items-center justify-center whitespace-nowrap","rounded-(--gryt-radius-full) border-0 bg-transparent px-4 py-1.5","text-sm font-medium text-gryt-muted select-none","relative z-10 transition-colors duration-150 hover:text-gryt-text","data-active:text-gryt-on-accent","data-[orientation=vertical]:min-h-9 data-[orientation=vertical]:justify-start","data-[orientation=vertical]:gap-2.5 data-[orientation=vertical]:px-3","data-[orientation=vertical]:rounded-(--gryt-radius-md)",f,e),...t})}),$t=s.forwardRef(function({className:e,...t},r){return o.jsx(z.Tabs.Indicator,{ref:r,renderBeforeHydration:!0,className:n("gryt-tabs-indicator absolute top-1 left-0 z-0 h-[calc(100%-0.5rem)]","w-(--active-tab-width) translate-x-(--active-tab-left)","rounded-(--gryt-radius-full) bg-gryt-accent","transition-[translate,width] duration-(--gryt-dur-spring) ease-spring","motion-reduce:transition-none","[[data-orientation=vertical]_&]:top-0 [[data-orientation=vertical]_&]:left-1","[[data-orientation=vertical]_&]:h-(--active-tab-height)","[[data-orientation=vertical]_&]:w-[calc(100%-0.5rem)]","[[data-orientation=vertical]_&]:translate-x-0","[[data-orientation=vertical]_&]:translate-y-(--active-tab-top)","[[data-orientation=vertical]_&]:rounded-(--gryt-radius-md)","[[data-orientation=vertical]_&]:transition-[translate,height]",e),...t})}),Ft=s.forwardRef(function({className:e,...t},r){return o.jsx(z.Tabs.Panel,{ref:r,className:n("gryt-tabs-panel pt-3 text-sm text-gryt-text","data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:flex-1","data-[orientation=vertical]:pt-0 data-[orientation=vertical]:pl-4",e),...t})}),Lt=Object.assign(Dt,{List:It,Tab:ge,Panel:Ft,Indicator:$t}),Gt=s.forwardRef(function({className:e,...t},r){return o.jsx(B.Accordion.Root,{ref:r,className:n("gryt-accordion flex w-full flex-col gap-2 rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface p-2",e),...t})}),qt=s.forwardRef(function({className:e,...t},r){return o.jsx(B.Accordion.Item,{ref:r,className:n("gryt-accordion-item",e),...t})}),Bt=s.forwardRef(function({children:e,className:t,expandIcon:r,...i},c){return o.jsx(B.Accordion.Header,{className:"gryt-accordion-header m-0",children:o.jsxs(B.Accordion.Trigger,{ref:c,className:n("gryt-accordion-trigger flex w-full items-center justify-between gap-3","rounded-(--gryt-radius-lg) border-0 bg-transparent px-3 py-2.5","text-left text-sm font-medium text-gryt-text select-none","transition-colors duration-150 hover:bg-gryt-surface-raised",f,t),...i,children:[e,r===void 0?o.jsx(v.CaretDown,{size:16,className:"shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"}):r]})})}),zt=s.forwardRef(function({children:e,className:t,...r},i){return o.jsx(B.Accordion.Panel,{ref:i,className:n("gryt-accordion-panel overflow-hidden text-sm text-gryt-muted","h-[var(--accordion-panel-height)] transition-[height] duration-(--gryt-dur-spring-soft) ease-spring","data-starting-style:h-0 data-ending-style:h-0","motion-reduce:transition-none",t),...r,children:o.jsx("div",{className:"px-3 pt-1 pb-3",children:e})})}),Vt=Object.assign(Gt,{Item:qt,Trigger:Bt,Panel:zt}),Et=s.forwardRef(function({className:e,sideOffset:t=2,...r},i){return o.jsx(P.ContextMenu.Positioner,{ref:i,sideOffset:t,className:n("gryt-context-menu-positioner outline-none",e),...r})}),Ot={Root:P.ContextMenu.Root,Trigger:P.ContextMenu.Trigger,Portal:P.ContextMenu.Portal,Positioner:Et,Popup:E.Popup,Item:E.Item,Separator:E.Separator,Group:P.ContextMenu.Group,GroupLabel:P.ContextMenu.GroupLabel,SubmenuRoot:P.ContextMenu.SubmenuRoot,SubmenuTrigger:P.ContextMenu.SubmenuTrigger},_t=s.forwardRef(function({className:e,sideOffset:t=8,...r},i){return o.jsx(N.Popover.Positioner,{ref:i,sideOffset:t,className:n("gryt-popover-positioner outline-none",e),...r})}),Ht=s.forwardRef(function({className:e,...t},r){return o.jsx(N.Popover.Popup,{ref:r,className:n("gryt-popover max-w-[min(20rem,calc(100vw-2rem))] p-4 outline-none",k,S,e),...t})}),Xt=s.forwardRef(function({className:e,...t},r){return o.jsx(N.Popover.Title,{ref:r,className:n("gryt-popover-title text-sm font-semibold text-gryt-text",e),...t})}),Yt=s.forwardRef(function({className:e,...t},r){return o.jsx(N.Popover.Description,{ref:r,className:n("gryt-popover-description mt-1 text-sm leading-6 text-gryt-muted",e),...t})}),Qt={Root:N.Popover.Root,Trigger:N.Popover.Trigger,Portal:N.Popover.Portal,Positioner:_t,Popup:Ht,Title:Xt,Description:Yt,Close:N.Popover.Close,Arrow:N.Popover.Arrow},Ut=s.forwardRef(function({className:e,...t},r){return o.jsx(R.Toast.Viewport,{ref:r,className:n("gryt-toast-viewport fixed right-4 bottom-4 z-50 flex w-[min(22rem,calc(100vw-2rem))]","flex-col gap-2 outline-none",e),...t})}),Wt=s.forwardRef(function({className:e,...t},r){return o.jsx(R.Toast.Root,{ref:r,className:n("gryt-toast relative flex flex-col p-3 pr-9",k,"transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring","data-starting-style:translate-y-2 data-starting-style:opacity-0","data-ending-style:translate-y-2 data-ending-style:opacity-0","motion-reduce:transition-none",e),...t})}),Jt=s.forwardRef(function({className:e,...t},r){return o.jsx(R.Toast.Title,{ref:r,className:n("gryt-toast-title text-sm font-semibold text-gryt-text",e),...t})}),Kt=s.forwardRef(function({className:e,...t},r){return o.jsx(R.Toast.Description,{ref:r,className:n("gryt-toast-description mt-0.5 text-sm leading-6 text-gryt-muted",e),...t})}),Zt=s.forwardRef(function({className:e,children:t,...r},i){return o.jsx(R.Toast.Close,{ref:i,"aria-label":"Close",className:n("gryt-toast-close absolute top-2.5 right-2.5 inline-flex h-6 w-6 items-center justify-center","rounded-(--gryt-radius-full) border-0 bg-transparent text-gryt-muted","transition-colors hover:bg-white/8 hover:text-gryt-text motion-reduce:transition-none","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",e),...r,children:t??o.jsx(v.X,{size:14,weight:"bold"})})}),er=s.forwardRef(function({className:e,...t},r){return o.jsx(R.Toast.Action,{ref:r,className:n("gryt-toast-action mt-2 self-start rounded-(--gryt-radius-full) border-0","bg-gryt-accent px-3 py-1.5 text-sm font-medium text-gryt-on-accent","transition-[scale] duration-(--gryt-dur-spring) ease-spring","motion-safe:hover:scale-[1.04] motion-safe:active:scale-[0.96]","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",e),...t})}),tr={Provider:R.Toast.Provider,Portal:R.Toast.Portal,Viewport:Ut,Root:Wt,Title:Jt,Description:Kt,Close:Zt,Action:er},rr=R.Toast.useToastManager,or=s.forwardRef(function({className:e,...t},r){return o.jsx(F.ScrollArea.Root,{ref:r,className:n("gryt-scroll-area relative",e),...t})}),ar=s.forwardRef(function({className:e,...t},r){return o.jsx(F.ScrollArea.Viewport,{ref:r,className:n("gryt-scroll-area-viewport h-full w-full overscroll-contain","focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-gryt-accent-light",e),...t})}),nr=s.forwardRef(function({className:e,orientation:t,...r},i){return o.jsx(F.ScrollArea.Scrollbar,{ref:i,orientation:t,className:n("gryt-scroll-area-scrollbar flex touch-none p-0.5 select-none","opacity-0 transition-opacity duration-(--gryt-dur-fast)","data-hovering:opacity-100 data-scrolling:opacity-100","motion-reduce:transition-none",t==="horizontal"?"h-2 flex-col":"w-2",e),...r,children:o.jsx(F.ScrollArea.Thumb,{className:"flex-1 rounded-(--gryt-radius-full) bg-gryt-border transition-colors hover:bg-gryt-muted motion-reduce:transition-none"})})}),sr={Root:or,Viewport:ar,Scrollbar:nr,Content:F.ScrollArea.Content,Corner:F.ScrollArea.Corner},ir={primary:["text-gryt-muted hover:not-data-disabled:bg-white/8","data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent","data-pressed:hover:not-data-disabled:bg-gryt-accent"].join(" "),secondary:["text-gryt-muted hover:not-data-disabled:bg-white/8","data-pressed:bg-gryt-secondary data-pressed:text-gryt-on-secondary","data-pressed:hover:not-data-disabled:bg-gryt-secondary"].join(" "),neutral:["text-gryt-muted hover:not-data-disabled:bg-white/8","data-pressed:bg-gryt-surface-hover data-pressed:text-gryt-text"].join(" "),danger:["text-gryt-muted hover:not-data-disabled:bg-white/8","data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger","data-pressed:hover:not-data-disabled:bg-gryt-danger"].join(" ")},cr={xsmall:"h-8 min-w-8 px-2 text-xs",small:"h-9 min-w-9 px-2.5 text-sm",medium:"h-10 min-w-10 px-3 text-sm",large:"h-12 min-w-12 px-4 text-base"},lr=s.forwardRef(function({className:e,size:t="medium",tone:r="primary",...i},c){return o.jsx(he.Toggle,{ref:c,className:n("gryt-toggle","inline-flex shrink-0 items-center justify-center gap-2 border-0 bg-transparent","rounded-(--gryt-radius-full) font-medium select-none","transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring","motion-safe:hover:not-data-disabled:scale-[1.06]","motion-safe:active:not-data-disabled:scale-[0.94]",f,L,cr[t],ir[r],e),...i})}),dr=s.forwardRef(function({className:e,...t},r){return o.jsx(we.ToggleGroup,{ref:r,className:n("gryt-toggle-group inline-flex items-center gap-1","rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",e),...t})}),ur={primary:"bg-gryt-accent",success:"bg-gryt-success",warning:"bg-gryt-warning",danger:"bg-gryt-danger"};function gr({className:a,value:e,label:t,showValue:r=!1,tone:i="primary",...c}){return o.jsxs(q.Meter.Root,{value:e,className:n("gryt-meter flex w-full flex-col gap-1.5",a),...c,children:[(t||r)&&o.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[t?o.jsx(q.Meter.Label,{className:"text-sm text-gryt-muted",children:t}):o.jsx("span",{}),r&&o.jsx(q.Meter.Value,{className:"font-mono text-xs text-gryt-muted tabular-nums"})]}),o.jsx(q.Meter.Track,{className:"h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised",children:o.jsx(q.Meter.Indicator,{className:n("h-full rounded-(--gryt-radius-full)",ur[i])})})]})}const yr=s.forwardRef(function({className:e,...t},r){return o.jsx(T.AlertDialog.Popup,{ref:r,className:n("gryt-alert-dialog fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4","rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text","outline-none","transition-[opacity,scale] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","data-starting-style:scale-[0.98] data-starting-style:opacity-0","data-ending-style:scale-[0.98] data-ending-style:opacity-0",e),...t})}),pr=s.forwardRef(function({className:e,...t},r){return o.jsx(T.AlertDialog.Backdrop,{ref:r,className:n("gryt-alert-dialog-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60","backdrop-blur-(--gryt-backdrop-blur)","transition-opacity duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none","data-starting-style:opacity-0 data-ending-style:opacity-0",e),...t})}),fr=s.forwardRef(function({className:e,...t},r){return o.jsx(T.AlertDialog.Title,{ref:r,className:n("gryt-alert-dialog-title text-lg font-semibold text-gryt-text",e),...t})}),mr=s.forwardRef(function({className:e,...t},r){return o.jsx(T.AlertDialog.Description,{ref:r,className:n("gryt-alert-dialog-description text-sm leading-6 text-gryt-muted",e),...t})}),br={Root:T.AlertDialog.Root,Trigger:T.AlertDialog.Trigger,Portal:T.AlertDialog.Portal,Backdrop:pr,Popup:yr,Title:fr,Description:mr,Close:T.AlertDialog.Close},ye=["flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)","px-3 py-2 text-sm text-gryt-text outline-none select-none","data-highlighted:bg-gryt-surface-raised","data-selected:text-gryt-accent","data-disabled:cursor-not-allowed data-disabled:opacity-50"].join(" "),pe=["w-full rounded-(--gryt-radius-input) border border-gryt-border bg-gryt-surface-raised","px-3 py-2 text-sm text-gryt-text outline-none placeholder:text-gryt-muted",f].join(" "),xr=s.forwardRef(function({className:e,...t},r){return o.jsx(d.Combobox.Input,{ref:r,className:n("gryt-combobox-input",pe,e),...t})}),hr=s.forwardRef(function({className:e,sideOffset:t=6,...r},i){return o.jsx(d.Combobox.Positioner,{ref:i,sideOffset:t,className:n("gryt-combobox-positioner outline-none",e),...r})}),wr=s.forwardRef(function({className:e,...t},r){return o.jsx(d.Combobox.Popup,{ref:r,className:n("gryt-combobox max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",k,S,e),...t})}),vr=s.forwardRef(function({className:e,...t},r){return o.jsx(d.Combobox.Item,{ref:r,className:n("gryt-combobox-item",ye,e),...t})}),jr=s.forwardRef(function({className:e,...t},r){return o.jsx(d.Combobox.Empty,{ref:r,className:n("gryt-combobox-empty px-3 py-2 text-sm text-gryt-muted",e),...t})}),Nr={Root:d.Combobox.Root,Input:xr,InputGroup:d.Combobox.InputGroup,Trigger:d.Combobox.Trigger,Icon:d.Combobox.Icon,Clear:d.Combobox.Clear,Value:d.Combobox.Value,Chips:d.Combobox.Chips,Chip:d.Combobox.Chip,ChipRemove:d.Combobox.ChipRemove,Portal:d.Combobox.Portal,Positioner:hr,Popup:wr,List:d.Combobox.List,Item:vr,ItemIndicator:d.Combobox.ItemIndicator,Group:d.Combobox.Group,GroupLabel:d.Combobox.GroupLabel,Empty:jr,Separator:d.Combobox.Separator},Rr=s.forwardRef(function({className:e,...t},r){return o.jsx(p.Autocomplete.Input,{ref:r,className:n("gryt-autocomplete-input",pe,e),...t})}),Pr=s.forwardRef(function({className:e,sideOffset:t=6,...r},i){return o.jsx(p.Autocomplete.Positioner,{ref:i,sideOffset:t,className:n("gryt-autocomplete-positioner outline-none",e),...r})}),Cr=s.forwardRef(function({className:e,...t},r){return o.jsx(p.Autocomplete.Popup,{ref:r,className:n("gryt-autocomplete max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",k,S,e),...t})}),Tr=s.forwardRef(function({className:e,...t},r){return o.jsx(p.Autocomplete.Item,{ref:r,className:n("gryt-autocomplete-item",ye,e),...t})}),kr=s.forwardRef(function({className:e,...t},r){return o.jsx(p.Autocomplete.Empty,{ref:r,className:n("gryt-autocomplete-empty px-3 py-2 text-sm text-gryt-muted",e),...t})}),Sr={Root:p.Autocomplete.Root,Input:Rr,InputGroup:p.Autocomplete.InputGroup,Trigger:p.Autocomplete.Trigger,Icon:p.Autocomplete.Icon,Clear:p.Autocomplete.Clear,Value:p.Autocomplete.Value,Portal:p.Autocomplete.Portal,Positioner:Pr,Popup:Cr,List:p.Autocomplete.List,Item:Tr,Group:p.Autocomplete.Group,GroupLabel:p.Autocomplete.GroupLabel,Empty:kr,Separator:p.Autocomplete.Separator},Ar=s.forwardRef(function({className:e,...t},r){return o.jsx(ve.CheckboxGroup,{ref:r,className:n("gryt-checkbox-group flex flex-col gap-2",e),...t})}),Mr=s.forwardRef(function({className:e,...t},r){return o.jsx(Q.Collapsible.Trigger,{ref:r,className:n("gryt-collapsible-trigger flex w-full items-center justify-between gap-2","rounded-(--gryt-radius-md) border-0 bg-transparent px-2 py-2 text-left","text-sm font-medium text-gryt-text select-none","transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",f,e),...t})}),Dr=s.forwardRef(function({className:e,...t},r){return o.jsx(Q.Collapsible.Panel,{ref:r,className:n("gryt-collapsible-panel overflow-hidden","h-(--collapsible-panel-height) transition-[height] duration-(--gryt-dur-spring) ease-spring","data-starting-style:h-0 data-ending-style:h-0","motion-reduce:transition-none",e),...t})}),Ir={Root:Q.Collapsible.Root,Trigger:Mr,Panel:Dr},$r=s.forwardRef(function({className:e,...t},r){return o.jsx(je.Form,{ref:r,className:n("gryt-form flex flex-col gap-(--gryt-space-lg)",e),...t})}),Fr=s.forwardRef(function({className:e,...t},r){return o.jsx(ne.Fieldset.Root,{ref:r,className:n("gryt-fieldset flex min-w-0 flex-col gap-3 border-0 p-0",e),...t})}),Lr=s.forwardRef(function({className:e,...t},r){return o.jsx(ne.Fieldset.Legend,{ref:r,className:n("gryt-fieldset-legend text-sm font-semibold text-gryt-text",e),...t})}),Gr={Root:Fr,Legend:Lr},qr=s.forwardRef(function({className:e,...t},r){return o.jsx(Ne.Menubar,{ref:r,className:n("gryt-menubar flex items-center gap-1","rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface p-1",e),...t})}),Br=s.forwardRef(function({className:e,...t},r){return o.jsx(x.NavigationMenu.Trigger,{ref:r,className:n("gryt-navigation-menu-trigger flex items-center gap-1.5 rounded-(--gryt-radius-md)","border-0 bg-transparent px-3 py-2 text-sm font-medium text-gryt-text select-none","transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none","data-popup-open:bg-gryt-surface-raised",f,e),...t})}),zr=s.forwardRef(function({className:e,...t},r){return o.jsx(x.NavigationMenu.Popup,{ref:r,className:n("gryt-navigation-menu-popup outline-none",k,S,e),...t})}),Vr=s.forwardRef(function({className:e,...t},r){return o.jsx(x.NavigationMenu.Viewport,{ref:r,className:n("gryt-navigation-menu-viewport relative overflow-hidden",e),...t})}),Er=s.forwardRef(function({className:e,...t},r){return o.jsx(x.NavigationMenu.Link,{ref:r,className:n("gryt-navigation-menu-link block rounded-(--gryt-radius-md) px-3 py-2","text-sm text-gryt-text no-underline outline-none","transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",f,e),...t})}),Or={Root:x.NavigationMenu.Root,List:x.NavigationMenu.List,Item:x.NavigationMenu.Item,Trigger:Br,Content:x.NavigationMenu.Content,Portal:x.NavigationMenu.Portal,Positioner:x.NavigationMenu.Positioner,Viewport:Vr,Popup:zr,Link:Er,Icon:x.NavigationMenu.Icon,Arrow:x.NavigationMenu.Arrow},oe="flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50",_r=s.forwardRef(function({className:e,label:t,scrubbable:r=!1,...i},c){return o.jsxs(A.NumberField.Root,{ref:c,className:n("gryt-number-field flex flex-col gap-1.5",e),...i,children:[t&&(r?o.jsxs(A.NumberField.ScrubArea,{className:"cursor-ew-resize text-sm text-gryt-muted select-none",children:[t,o.jsx(A.NumberField.ScrubAreaCursor,{})]}):o.jsx("span",{className:"text-sm text-gryt-muted",children:t})),o.jsxs(A.NumberField.Group,{className:n("flex w-fit items-center overflow-hidden rounded-(--gryt-radius-full)","border border-gryt-border bg-gryt-surface-raised","focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-gryt-accent-light",L),children:[o.jsx(A.NumberField.Decrement,{"aria-label":"Decrease",className:n(oe,"rounded-l-(--gryt-radius-full)"),children:o.jsx(v.Minus,{size:14,weight:"bold"})}),o.jsx(A.NumberField.Input,{className:n("w-16 border-0 bg-transparent px-1 py-2 text-center","font-mono text-sm text-gryt-text tabular-nums outline-none",f)}),o.jsx(A.NumberField.Increment,{"aria-label":"Increase",className:n(oe,"rounded-r-(--gryt-radius-full)"),children:o.jsx(v.Plus,{size:14,weight:"bold"})})]})]})}),Hr=s.forwardRef(function({className:e,length:t=6,...r},i){return o.jsx(te.OTPField.Root,{ref:i,length:t,className:n("gryt-otp-field flex gap-2",e),...r,children:Array.from({length:t},(c,l)=>o.jsx(te.OTPField.Input,{className:n("gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center","border border-gryt-border bg-gryt-surface-raised","font-mono text-lg text-gryt-text tabular-nums outline-none","transition-colors duration-(--gryt-dur-fast) motion-reduce:transition-none","data-filled:border-gryt-accent",f)},l))})}),Xr=s.forwardRef(function({className:e,sideOffset:t=8,...r},i){return o.jsx(I.PreviewCard.Positioner,{ref:i,sideOffset:t,className:n("gryt-preview-card-positioner outline-none",e),...r})}),Yr=s.forwardRef(function({className:e,...t},r){return o.jsx(I.PreviewCard.Popup,{ref:r,className:n("gryt-preview-card w-64 max-w-[calc(100vw-2rem)] p-4 outline-none",k,S,e),...t})}),Qr={Root:I.PreviewCard.Root,Trigger:I.PreviewCard.Trigger,Portal:I.PreviewCard.Portal,Positioner:Xr,Popup:Yr,Arrow:I.PreviewCard.Arrow},Ur=s.forwardRef(function({className:e,...t},r){return o.jsx($.Toolbar.Root,{ref:r,className:n("gryt-toolbar flex items-center gap-1","rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",e),...t})}),Wr=s.forwardRef(function({className:e,...t},r){return o.jsx($.Toolbar.Separator,{ref:r,className:n("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border",e),...t})}),Jr={Root:Ur,Group:$.Toolbar.Group,Button:$.Toolbar.Button,Link:$.Toolbar.Link,Input:$.Toolbar.Input,Separator:Wr};exports.Accordion=Vt;exports.Alert=st;exports.AlertDialog=br;exports.Autocomplete=Sr;exports.Avatar=le;exports.Badge=Ee;exports.Button=ie;exports.Card=tt;exports.CardActions=at;exports.CardContent=ot;exports.CardHeader=rt;exports.Checkbox=He;exports.CheckboxGroup=Ar;exports.Chip=_e;exports.Collapsible=Ir;exports.Combobox=Nr;exports.Composer=Be;exports.ContextMenu=Ot;exports.ConversationItem=Ve;exports.Dialog=mt;exports.Divider=et;exports.Drawer=Tt;exports.Fieldset=Gr;exports.Form=$r;exports.GrytProvider=Pe;exports.IconButton=$e;exports.Menu=E;exports.Menubar=qr;exports.MessageBubble=Le;exports.Meter=gr;exports.NavigationMenu=Or;exports.NumberField=_r;exports.OtpField=Hr;exports.Popover=Qt;exports.PreviewCard=Qr;exports.Progress=it;exports.Radio=Xe;exports.RadioGroup=Ye;exports.ScrollArea=sr;exports.Select=Je;exports.Skeleton=dt;exports.Slider=Ue;exports.Spinner=ct;exports.Surface=Fe;exports.Switch=Qe;exports.Tab=ge;exports.Tabs=Lt;exports.TextField=qe;exports.Toast=tr;exports.Toggle=lr;exports.ToggleGroup=dr;exports.Toolbar=Jr;exports.Tooltip=Ke;exports.TooltipProvider=Ze;exports.cn=n;exports.createGrytTheme=se;exports.grytTokens=Y;exports.useMediaQuery=ue;exports.useToastManager=rr;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|