@dito-uai/components 5.0.0-alpha2 → 5.0.0-alpha3

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/index.js CHANGED
@@ -1,1474 +1,23 @@
1
- import * as React4 from 'react';
2
- import React4__default, { forwardRef, useState, useEffect } from 'react';
1
+ import * as q from 'react';
2
+ import q__default, { forwardRef, useState, useEffect } from 'react';
3
3
  import { Slot } from '@radix-ui/react-slot';
4
4
  import { twMerge, extendTailwindMerge } from 'tailwind-merge';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import { clsx } from 'clsx';
7
- import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
8
- import * as RadixProgress from '@radix-ui/react-progress';
7
+ import * as U from '@radix-ui/react-toggle-group';
8
+ import * as ee from '@radix-ui/react-progress';
9
9
  import { Root as Root$2, Indicator } from '@radix-ui/react-progress';
10
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
11
- import { IconOutlineChevronDown, IconOutlineClose, IconOutlineLine, IconOutlineCheck, IconOutlineSearch, IconOutlineArrowUp, IconOutlineArrowDown, IconOutlineMinus } from '@dito-uai/icons';
10
+ import * as V from '@radix-ui/react-accordion';
11
+ import { IconOutlineChevronDown, IconOutlineArrowUp, IconOutlineArrowDown, IconOutlineMinus, IconOutlineClose, IconOutlineLine, IconOutlineCheck, IconOutlineSearch } from '@dito-uai/icons';
12
12
  import { Root, Trigger, Portal, Content, Item } from '@radix-ui/react-dropdown-menu';
13
13
  import { Root as Root$1 } from '@radix-ui/react-checkbox';
14
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
15
- import { Circle as Circle$1 } from 'lucide-react';
14
+ import * as S from '@radix-ui/react-radio-group';
15
+ import { Circle } from 'lucide-react';
16
16
 
17
- // src/ui/avatar.tsx
17
+ var lt=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,C=t=>!t||typeof t!="object"||Object.keys(t).length===0,At=(t,o)=>JSON.stringify(t)===JSON.stringify(o);function It(t,o){t.forEach(function(e){Array.isArray(e)?It(e,o):o.push(e);});}function ct(t){let o=[];return It(t,o),o}var pt=(...t)=>ct(t).filter(Boolean),dt=(t,o)=>{let e={},r=Object.keys(t),i=Object.keys(o);for(let a of r)if(i.includes(a)){let n=t[a],l=o[a];typeof n=="object"&&typeof l=="object"?e[a]=dt(n,l):Array.isArray(n)||Array.isArray(l)?e[a]=pt(l,n):e[a]=l+" "+n;}else e[a]=t[a];for(let a of i)r.includes(a)||(e[a]=o[a]);return e},ft=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();var Ae={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Lt=t=>t||void 0,F=(...t)=>Lt(ct(t).filter(Boolean).join(" ")),mt=null,I={},ut=!1,j=(...t)=>o=>o.twMerge?((!mt||ut)&&(ut=!1,mt=C(I)?twMerge:extendTailwindMerge({...I,extend:{theme:I.theme,classGroups:I.classGroups,conflictingClassGroupModifiers:I.conflictingClassGroupModifiers,conflictingClassGroups:I.conflictingClassGroups,...I.extend}})),Lt(mt(F(t)))):F(t),Mt=(t,o)=>{for(let e in o)t.hasOwnProperty(e)?t[e]=F(t[e],o[e]):t[e]=o[e];return t},f=(t,o)=>{let{extend:e=null,slots:r={},variants:i={},compoundVariants:a=[],compoundSlots:n=[],defaultVariants:l={}}=t,c={...Ae,...o},R=e!=null&&e.base?F(e.base,t==null?void 0:t.base):t==null?void 0:t.base,y=e!=null&&e.variants&&!C(e.variants)?dt(i,e.variants):i,L=e!=null&&e.defaultVariants&&!C(e.defaultVariants)?{...e.defaultVariants,...l}:l;!C(c.twMergeConfig)&&!At(c.twMergeConfig,I)&&(ut=!0,I=c.twMergeConfig);let E=C(e==null?void 0:e.slots),at=C(r)?{}:{base:F(t==null?void 0:t.base,E&&(e==null?void 0:e.base)),...r},O=E?at:Mt({...e==null?void 0:e.slots},C(at)?{base:t==null?void 0:t.base}:at),k=C(e==null?void 0:e.compoundVariants)?a:pt(e==null?void 0:e.compoundVariants,a),A=T=>{if(C(y)&&C(r)&&E)return j(R,T==null?void 0:T.class,T==null?void 0:T.className)(c);if(k&&!Array.isArray(k))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof k}`);if(n&&!Array.isArray(n))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof n}`);let he=(p,m,d=[],g)=>{let u=d;if(typeof m=="string")u=u.concat(ft(m).split(" ").map(h=>`${p}:${h}`));else if(Array.isArray(m))u=u.concat(m.reduce((h,w)=>h.concat(`${p}:${w}`),[]));else if(typeof m=="object"&&typeof g=="string"){for(let h in m)if(m.hasOwnProperty(h)&&h===g){let w=m[h];if(w&&typeof w=="string"){let P=ft(w);u[g]?u[g]=u[g].concat(P.split(" ").map(N=>`${p}:${N}`)):u[g]=P.split(" ").map(N=>`${p}:${N}`);}else Array.isArray(w)&&w.length>0&&(u[g]=w.reduce((P,N)=>P.concat(`${p}:${N}`),[]));}}return u},Rt=(p,m=y,d=null,g=null)=>{var u;let h=m[p];if(!h||C(h))return null;let w=(u=g==null?void 0:g[p])!=null?u:T==null?void 0:T[p];if(w===null)return null;let P=lt(w),N=Array.isArray(c.responsiveVariants)&&c.responsiveVariants.length>0||c.responsiveVariants===!0,B=L==null?void 0:L[p],H=[];if(typeof P=="object"&&N)for(let[st,Vt]of Object.entries(P)){let Ne=h[Vt];if(st==="initial"){B=Vt;continue}Array.isArray(c.responsiveVariants)&&!c.responsiveVariants.includes(st)||(H=he(st,Ne,H,d));}let Te=P!=null&&typeof P!="object"?P:lt(B),nt=h[Te||"false"];return typeof H=="object"&&typeof d=="string"&&H[d]?Mt(H,nt):H.length>0?(H.push(nt),H):nt},ye=()=>y?Object.keys(y).map(p=>Rt(p,y)):null,we=(p,m)=>{if(!y||typeof y!="object")return null;let d=new Array;for(let g in y){let u=Rt(g,y,p,m),h=p==="base"&&typeof u=="string"?u:u&&u[p];h&&(d[d.length]=h);}return d},Tt={};for(let p in T)T[p]!==void 0&&(Tt[p]=T[p]);let Nt=(p,m)=>{var d;let g=typeof(T==null?void 0:T[p])=="object"?{[p]:(d=T[p])==null?void 0:d.initial}:{};return {...L,...Tt,...g,...m}},Ct=(p=[],m)=>{let d=[];for(let{class:g,className:u,...h}of p){let w=!0;for(let[P,N]of Object.entries(h)){let B=Nt(P,m);if(Array.isArray(N)){if(!N.includes(B[P])){w=!1;break}}else if(B[P]!==N){w=!1;break}}w&&(g&&d.push(g),u&&d.push(u));}return d},Pe=p=>{let m=Ct(k,p);if(!Array.isArray(m))return m;let d={};for(let g of m)if(typeof g=="string"&&(d.base=j(d.base,g)(c)),typeof g=="object")for(let[u,h]of Object.entries(g))d[u]=j(d[u],h)(c);return d},Re=p=>{if(n.length<1)return null;let m={};for(let{slots:d=[],class:g,className:u,...h}of n){if(!C(h)){let w=!0;for(let P of Object.keys(h)){let N=Nt(P,p)[P];if(N===void 0||(Array.isArray(h[P])?!h[P].includes(N):h[P]!==N)){w=!1;break}}if(!w)continue}for(let w of d)m[w]=m[w]||[],m[w].push([g,u]);}return m};if(!C(r)||!E){let p={};if(typeof O=="object"&&!C(O))for(let m of Object.keys(O))p[m]=d=>{var g,u;return j(O[m],we(m,d),((g=Pe(d))!=null?g:[])[m],((u=Re(d))!=null?u:[])[m],d==null?void 0:d.class,d==null?void 0:d.className)(c)};return p}return j(R,ye(),Ct(k),T==null?void 0:T.class,T==null?void 0:T.className)(c)},xe=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return A.variantKeys=xe(),A.extend=e,A.base=R,A.slots=O,A.variants=y,A.defaultVariants=L,A.compoundSlots=n,A.compoundVariants=k,A};var Le=f({base:"flex items-center justify-center rounded-full",variants:{color:{default:"bg-neutral-100",indigo:"bg-indigo-600"},type:{icon:"[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500",capitals:"font-semibold text-neutral-500",image:"[&_img]:rounded-full"},size:{small:"size-4",medium:"size-5",large:"size-7"}},compoundVariants:[{size:"large",type:["capitals","icon"],className:"text-xl [&_svg]:size-5"},{size:"medium",type:["capitals","icon"],className:"text-lg [&_svg]:size-3"},{size:"small",type:["capitals","icon"],className:"text-base [&_svg]:size-2"},{color:"indigo",type:["capitals","icon"],className:"text-white [&_path]:fill-white [&_svg]:fill-white"}],defaultVariants:{color:"default"}}),Et=q__default.forwardRef(({className:t,color:o,type:e,size:r,children:i,asChild:a,...n},l)=>jsx(a?Slot:"div",{className:Le({color:o,type:e,size:r,className:t}),ref:l,...n,children:i}));Et.displayName="Avatar";var Ee=Et;function s(...t){return twMerge(clsx(t))}var _e=f({base:"",variants:{size:{H1:"text-3xl",H2:"text-2xl",H3:"text-xl",large:"text-lg",base:"text-base",small:"text-sm",overline:"text-xs uppercase"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold"}},defaultVariants:{size:"base",weight:"normal"}}),Ht=({className:t,size:o,weight:e,children:r,...i})=>jsx("span",{className:s(_e({size:o,weight:e,className:t})),...i,children:r});Ht.displayName="Text";var x=Ht;var Oe=f({base:"flex items-center justify-center rounded-full",variants:{contrast:{true:"",false:""},status:{info:"bg-notification-information-100 text-notification-information-600",attention:"bg-notification-warning-100 text-notification-warning-900",white:"text-notification-information-600 bg-white"},size:{small:"h-2",normal:"h-3"},type:{pill:"w-fit px-1",dot:""}},compoundVariants:[{status:"info",contrast:!0,class:"bg-notification-information-600 text-white"},{status:"attention",contrast:!0,class:"bg-notification-warning-600"},{type:"dot",size:"small",class:"w-2"},{type:"dot",size:"normal",class:"w-3"}],defaultVariants:{status:"info",size:"normal",type:"pill"}}),St=q__default.forwardRef(({className:t,status:o,size:e,type:r,contrast:i,children:a,asChild:n,...l},c)=>jsx(n?Slot:"span",{className:Oe({status:o,size:e,type:r,contrast:i,className:t}),ref:c,...l,children:jsx(x,{size:"overline",weight:"semibold",children:a})}));St.displayName="Badge";var Be=St;var We=f({variants:{appearance:{primary:{container:"bg-primary hover:bg-green-900 ",text:"text-white",icon:"fill-white [&_path]:fill-white"},secondary:{container:"border border-green-600 bg-white hover:bg-green-100 ",text:"text-green-600",icon:"fill-green-600 [&_path]:fill-green-600"},tertiary:{container:"border border-indigo-600 bg-white hover:bg-indigo-100 ",text:"text-indigo-600",icon:"fill-indigo-600 [&_path]:fill-indigo-600"},danger:{container:"border-notification-critical-600 hover:bg-notification-critical-600 group/danger border bg-white",text:"text-notification-critical-600 group-hover/danger:text-white",icon:"fill-notification-critical-600 [&_path]:fill-notification-critical-600 group-hover/danger:fill-white group-hover/danger:[&_path]:fill-white"},link:{container:"bg-white hover:bg-green-100 ",text:"text-green-600",icon:"fill-green-600 [&_path]:fill-green-600"},table:{container:"bg-white hover:bg-neutral-100 ",text:"text-neutral-400",icon:"fill-neutral-400 [&_path]:fill-neutral-400"}},size:{medium:{container:"h-5",icon:"text-base"},small:{container:"h-4",text:"mx-1 text-sm",icon:"group-data-[has-text=true]:ml-0"}},disabled:{true:{container:"pointer-events-none cursor-not-allowed border-neutral-200 bg-neutral-100",text:"text-neutral-300",icon:"fill-neutral-300 [&_path]:fill-neutral-300"},false:""}},slots:{container:"group inline-flex items-center justify-center rounded-md p-1 focus:outline-none focus:ring-0 data-[has-icon=true]:gap-1",icon:"size-3 group-data-[has-text=true]:ml-1",text:"mx-2 group-data-[has-icon=true]:ml-0"},defaultVariants:{appearance:"primary",size:"medium"}}),Dt=q__default.forwardRef(({className:t,appearance:o,size:e,disabled:r,children:i,asChild:a,icon:n,...l},c)=>{let R=a?Slot:"button",y=We({appearance:o,size:e,disabled:r,className:t});return jsxs(R,{"data-has-icon":!!n,"data-has-text":!!i,className:y.container(),ref:c,...l,children:[n&&jsx(n,{className:y.icon()}),i&&jsx(x,{size:"base",weight:"medium",className:y.text(),children:i})]})});Dt.displayName="Button";var $e=Dt;var Ze=f({base:"flex w-full border border-gray-200 bg-white p-2",variants:{variant:{default:"rounded-m",big:"rounded-x",small:"rounded-s"},direction:{col:"flex-col",row:"flex-row"},padding:{none:"p-0",small:"p-1",medium:"p-2",big:"p-3"}},defaultVariants:{variant:"default",direction:"col",padding:"none"}}),Gt=({className:t,variant:o,direction:e,padding:r,children:i,...a})=>jsx("div",{className:s(Ze({variant:o,direction:e,padding:r,className:t})),...a,children:i});Gt.displayName="Card";var qe=Gt;var Ue=f({variants:{variant:{default:"",light:"",green:"",red:""},size:{default:{container:"h-5"},small:{container:"h-4",text:"text-sm"}},disabled:{true:{container:"cursor-initial border-neutral-200 bg-neutral-100 text-neutral-300",icon:"[&_path]:fill-neutral-300 [&_svg]:fill-neutral-300"},false:{container:"border-neutral-200 text-neutral-500 hover:bg-neutral-100",icon:"[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500"}}},compoundVariants:[{disabled:!1,variant:"default",class:{container:"data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-600",text:"group-data-[state=on]:text-white",icon:"group-data-[state=on]:fill-white [&_path]:group-data-[state=on]:fill-white"}},{disabled:!1,variant:"light",class:{container:"data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-100",text:"group-data-[state=on]:text-indigo-600",icon:"group-data-[state=on]:fill-indigo-600 [&_path]:group-data-[state=on]:fill-indigo-600"}},{disabled:!1,variant:"green",class:{container:"data-[state=on]:border-notification-success-600 data-[state=on]:bg-notification-success-100",text:"group-data-[state=on]:text-notification-success-600",icon:"group-data-[state=on]:fill-notification-success-600 [&_path]:group-data-[state=on]:fill-notification-success-600"}},{disabled:!1,variant:"red",class:{container:"data-[state=on]:border-notification-critical-600 data-[state=on]:bg-notification-critical-100",text:"group-data-[state=on]:text-notification-critical-600",icon:"group-data-[state=on]:fill-notification-critical-600 [&_path]:group-data-[state=on]:fill-notification-critical-600"}}],slots:{container:"first:rounded-ss-m first:rounded-es-m last:rounded-se-m last:rounded-ee-m group flex items-center gap-1 border px-2 [&:nth-child(n+2)]:data-[state=off]:border-l-0",icon:"size-3",text:""},defaultVariants:{disabled:!1,variant:"default",size:"default"}}),kt=q__default.createContext({variant:"default",size:"default",disabled:!1}),Ot=q__default.forwardRef(({className:t,variant:o,children:e,size:r,disabled:i,...a},n)=>jsx(U.Root,{ref:n,className:s("flex items-center justify-center gap-0",t),...a,type:"single",children:jsx(kt.Provider,{value:{variant:o,size:r,disabled:i},children:e})}));Ot.displayName="ScopeGroup";var Bt=q__default.forwardRef(({className:t,variant:o,size:e,icon:r,text:i,disabled:a,...n},l)=>{let c=q__default.useContext(kt),R=Ue({variant:c.variant||o,size:c.size||e,disabled:c.disabled||a});return jsxs(U.Item,{ref:l,className:s(R.container(),t),disabled:a,...n,children:[r&&jsx(r,{className:R.icon()}),jsx(x,{size:"base",weight:"normal",className:R.text(),children:i})]})});Bt.displayName="ScopeItem";var Qe={Group:Ot,Item:Bt},Xe=Qe;var oo=({value:t,className:o,barBg:e,progressBg:r})=>{let i=`-translate-x-[(-${100-(t||0)}%])`;return jsx(Root$2,{className:s(o,e,"relative w-full overflow-hidden rounded-full "),value:t,children:jsx(Indicator,{className:s(o,"w-full flex-1 rounded-full",i,r)})})},Q=oo;var $=f({variants:{disabled:{true:{input:"cursor-not-allowed bg-neutral-100 text-neutral-400",prefixIcon:"fill-neutral-300 [&_path]:fill-neutral-300",suffixIcon:"fill-neutral-300 [&_path]:fill-neutral-300"}},invalid:{true:{input:"border-notification-critical-600 focus:border-notification-critical-600"}},size:{medium:{prefixIcon:"top-1",suffixIcon:"top-1",input:"h-5"},small:{prefixIcon:"top-0.5",suffixIcon:"top-0.5",input:"h-4"}}},slots:{prefixIcon:"absolute left-1 top-1 size-3",input:"rounded-m flex w-full border border-neutral-200 p-1 text-base text-indigo-600 placeholder:font-light placeholder:text-neutral-400 focus:border-indigo-600 focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed data-[has-prefix-icon=true]:pl-5 data-[has-suffix-icon=true]:pr-5",suffixIcon:"absolute right-1 top-1 size-3"},defaultVariants:{size:"medium"}}),Ft=q__default.forwardRef(({className:t,prefixIcon:o,suffixIcon:e,disabled:r,invalid:i,size:a,...n},l)=>{let c=$();return jsxs("div",{className:"relative",children:[jsx("div",{className:c.prefixIcon({invalid:i,size:a}),children:o&&jsx(o,{})}),jsx("input",{disabled:r,"data-has-prefix-icon":!!o,"data-has-suffix-icon":!!e,className:s(c.input({disabled:r,invalid:i,size:a}),t),ref:l,...n}),jsx("div",{className:c.suffixIcon({invalid:i,size:a}),children:e&&jsx(e,{})})]})});Ft.displayName="Input";var io=Ft;var $t=q.forwardRef(({className:t,disabled:o,invalid:e,...r},i)=>{let{input:a}=$();return jsx("textarea",{className:s("min-h-9",t,a({disabled:o,invalid:e})),ref:i,...r})});$t.displayName="Textarea";var no=$t;var Jt=({title:t,children:o,isVisible:e,CloseIcon:r,maxWidth:i,onClose:a})=>{let[n,l]=useState(e);useEffect(()=>l(e),[e]);let c=R=>{l(!1),a&&a(R);};return jsxs(Fragment,{children:[jsx("div",{className:s("fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",n?void 0:"hidden")}),jsxs("div",{className:s("shadow-big fixed right-0 top-0 z-40 h-screen overflow-y-auto overflow-x-hidden rounded-l-lg bg-white transition-transform dark:bg-gray-800",i?`max-w=[${i}]`:"max-w-3/4",n?void 0:"translate-x-full"),tabIndex:-1,"aria-labelledby":"drawer-label",children:[jsxs("div",{id:"drawer-label",className:s(" mb-2 flex items-center justify-between border-b-2 border-slate-100 p-2 text-base font-semibold text-gray-500 dark:text-gray-400"),children:[jsx(x,{size:"H3",weight:"semibold",className:"text-navy-600",children:t}),jsxs("button",{type:"button","data-drawer-hide":"drawer-example","aria-controls":"drawer-example",className:s("b-0 ml-2 flex size-9 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"),onClick:()=>c,children:[r?jsx(r,{}):jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.70711 18.7071L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071ZM17.2929 18.7071L13.8201 15.2343C13.4296 14.8438 13.4296 14.2106 13.8201 13.8201C14.2106 13.4296 14.8438 13.4296 15.2343 13.8201L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071Z",fill:"#8D95A7"})}),jsx("span",{className:"sr-only",children:"Close menu"})]})]}),jsx("div",{className:s(" relative h-full p-2"),children:o})]})]})};Jt.displayName="Sheet";var po=Jt;var uo=f({base:"after:start-0.25 after:top-0.25 peer relative mr-1 h-3 w-5 rounded-full bg-neutral-200 after:absolute after:size-[20px] after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-green-600 peer-checked:after:translate-x-2 peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-0",variants:{disabled:{true:"cursor-not-allowed bg-neutral-100 after:border-neutral-100 peer-checked:bg-green-100 peer-checked:after:border-green-100"}}}),Zt=forwardRef(({className:t,name:o,disabled:e,children:r,...i},a)=>jsxs("label",{className:s("inline-flex cursor-pointer items-center",t),children:[jsx("input",{...i,ref:a,type:"checkbox",className:s("peer sr-only"),name:o,disabled:e}),jsx("span",{className:uo({disabled:e})}),jsx(x,{children:r})]}));Zt.displayName="Toggle";var go=Zt;var xo=q.forwardRef(({className:t,...o},e)=>jsx(V.Root,{ref:e,className:s("[&>:first-child>h3>button]:rounded-t-m [&>:last-child>h3[data-state=closed]>button]:rounded-b-m",t),...o})),qt=q.forwardRef(({className:t,...o},e)=>jsx(V.Item,{ref:e,className:s("first:rounded-t-m last:rounded-b-m border border-t-0 first:border-t",t),...o}));qt.displayName="AccordionItem";var Kt=q.forwardRef(({className:t,children:o,triggerClassName:e,...r},i)=>jsx(V.Header,{className:"flex",children:jsxs(V.Trigger,{ref:i,className:s("flex h-7 w-full items-center p-1 transition-all hover:bg-neutral-100 [&[data-disabled]]:cursor-not-allowed [&[data-disabled]]:bg-neutral-200 [&[data-disabled]]:text-neutral-400 [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:border-b",e),...r,children:[jsx("div",{className:s("w-full",t),children:o}),jsx(IconOutlineChevronDown,{className:"size-3 transition-transform duration-200"})]})}));Kt.displayName=V.Trigger.displayName;var Ut=q.forwardRef(({className:t,children:o,...e},r)=>jsx(V.Content,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden transition-all",...e,children:jsx("div",{className:s(t),children:o})}));Ut.displayName=V.Content.displayName;var Y=xo;Y.Item=qt;Y.Trigger=Kt;Y.Content=Ut;var ho=Y;var No=f({base:"text-medium flex h-3 items-center justify-center rounded-sm border border-neutral-200 px-1 py-0.5 [&_svg]:-ml-0.5 [&_svg]:w-2",variants:{status:{positive:"text-notification-success-600 [&_svg]:fill-notification-success-600",negative:"text-notification-critical-600 [&_svg]:fill-notification-critical-600",neutral:"text-notification-warning-900 [&_svg]:fill-notification-warning-900",info:"border-indigo-600 text-indigo-600"}}}),Co=q__default.forwardRef(({className:t,status:o,value:e,icon:r,...i},a)=>{let n={positive:jsx(IconOutlineArrowUp,{}),negative:jsx(IconOutlineArrowDown,{}),neutral:jsx(IconOutlineMinus,{})};return jsxs("div",{className:No({status:o,className:t}),ref:a,...i,children:[r&&n[r],jsxs(x,{size:"overline",weight:"semibold",children:[e,"%"]})]})}),Vo=Co;var tt=({options:t,selected:o,onChange:e,className:r})=>jsx(Portal,{children:jsx(Content,{align:"start",className:s("shadow-down data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 rounded-md border bg-white p-1",r),children:t.map(i=>jsx(Item,{"data-selected":o===i.value,className:`relative flex cursor-pointer select-none rounded-sm
18
+ px-2 py-1 text-base font-normal text-neutral-500 outline-none
19
+ transition-colors focus:bg-indigo-100 focus:text-indigo-600
20
+ data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>e&&e(i.value),children:i.text}))})});var Yt=f({base:"text-medium flex items-center justify-center rounded-sm px-1 py-0.5",variants:{status:{success:["bg-notification-success-100","text-notification-success-600","[&_svg]:fill-notification-success-600 [&_span:nth-child(1)]:bg-notification-success-600"],attention:["bg-notification-warning-100","text-notification-warning-900","[&_svg]:fill-notification-warning-900 [&_span:nth-child(1)]:bg-notification-warning-900"],info:["bg-notification-information-100","text-notification-information-600","[&_svg]:fill-notification-information-600 [&_span:nth-child(1)]:bg-notification-information-600"],error:["bg-notification-critical-100","text-notification-critical-900","[&_svg]:fill-notification-critical-900 [&_span:nth-child(1)]:bg-notification-critical-900"],disabled:["bg-neutral-200 ","text-neutral-500","[&_span:nth-child(1)]:bg-neutral-500 [&_svg]:fill-neutral-500"]}}}),te=({text:t})=>jsxs("div",{className:"flex items-center gap-0.5",children:[jsx("span",{className:"w-0.75 h-0.75 rounded-full bg-neutral-500"}),jsx(x,{size:"overline",weight:"semibold",className:"select-none",children:t})]}),zo=q__default.forwardRef(({className:t,status:o,text:e,...r},i)=>jsx("div",{className:Yt({status:o,className:t}),ref:i,...r,children:jsx(te,{text:e})})),So=q__default.forwardRef(({className:t,status:o,options:e,value:r,onChange:i,...a},n)=>{let l=e.find(c=>c.value===r);return jsx("div",{className:Yt({status:l==null?void 0:l.status,className:t}),ref:n,...a,children:jsxs(Root,{children:[jsxs(Trigger,{className:"flex items-center gap-0.5 outline-none",children:[jsx(te,{text:(l==null?void 0:l.text)||""}),jsx(IconOutlineChevronDown,{"data-status":o,className:"-mr-0.5 size-2"})]}),jsx(tt,{selected:l==null?void 0:l.value,options:e,onChange:i,className:"-ml-1 mt-0.5"})]})})}),_o={Menu:So,...zo},Do=_o;var et=f({base:"text-midnight-blue-600",variants:{bg:{indigo:"bg-midnight-blue-100",white:"bg-white to-white"}}}),oe=q__default.forwardRef(({className:t,bg:o,value:e,withBar:r,...i},a)=>jsxs("div",{className:s(et({bg:o,className:t}),"flex h-3 flex-col items-center justify-center rounded-full px-1"),ref:a,...i,children:[jsxs(x,{size:"overline",weight:"medium",children:[e,"%"]}),r&&jsx(Q,{barBg:o==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:e,className:"h-0.25 mb-0.5"})]})),Go=q__default.forwardRef(({className:t,bg:o,value:e,Icon:r,...i},a)=>jsx(ee.Root,{ref:a,className:s(et({bg:o}),"text-midnight-blue-600 [&_svg]:fill-midnight-blue-600 [&_path]:fill-midnight-blue-600 relative flex size-6 items-center justify-center rounded-full","bg-[conic-gradient(var(--tw-gradient-stops))] from-midnight-blue-600 to-midnight-blue-100 p-0.5",t),...i,children:jsx("div",{className:s(et({bg:o}),"flex size-full items-center justify-center rounded-full"),children:r?jsx(r,{className:"size-3"}):jsxs("div",{className:"flex items-end",children:[jsx(x,{weight:"medium",children:e}),jsx(x,{size:"overline",weight:"medium",children:"%"})]})})})),ko=q__default.forwardRef(({className:t,bg:o,value:e,text:r,...i},a)=>jsxs("div",{"data-bg":o,className:s(et({bg:o,className:t}),`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
21
+ p-2 data-[bg=white]:border`),ref:a,...i,children:[jsxs("div",{className:"flex items-center justify-between gap-1",children:[jsx(x,{weight:"normal",children:r}),jsx(oe,{value:e,bg:o==="white"?"indigo":"white"})]}),jsx(Q,{barBg:o==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:e,className:"h-1"})]})),Oo={Indicator:oe,Circle:Go,Expanded:ko},Bo=Oo;var $o=f({variants:{size:{small:{container:"h-3",icon:"size-2"},medium:{container:"h-4",icon:"size-3"}},border:{true:{container:"border border-neutral-200 text-neutral-500",icon:"fill-neutral-400 [&_path]:fill-neutral-400"},false:{container:"bg-indigo-100 text-indigo-600",icon:"fill-indigo-600 [&_path]:fill-indigo-600"}},active:{true:{container:"bg-indigo-600 text-white hover:bg-indigo-900",icon:"fill-white [&_path]:fill-white"}}},slots:{container:"group flex items-center rounded-full px-1 hover:border-0 hover:bg-indigo-600 hover:font-medium hover:text-white",icon:"group-hover:[&_path]:fill-white group-hover:[&_svg]:fill-white"},defaultVariants:{size:"medium",border:!1,active:!1}}),re=q__default.forwardRef(({className:t,size:o,icon:e,text:r,asChild:i,value:a,border:n,active:l,onClose:c,...R},y)=>{let L=i?Slot:"div",E=$o();return jsxs(L,{className:E.container({size:o,border:n,active:l,className:t}),ref:y,...R,children:[e&&jsx(e,{className:E.icon({size:o,border:n,active:l})}),jsx(x,{size:"base",weight:"normal",className:"mx-1",children:r}),c&&jsx(IconOutlineClose,{onClick:()=>c(a),className:s(E.icon({size:o,border:n,active:l}),"cursor-pointer")})]})});re.displayName="Chips";var Jo=re;var qo=f({base:"text-navy-600 text-base font-medium",variants:{invalid:{true:"text-notification-critical-600"}}}),ae=({className:t,text:o,suffix:e,invalid:r,htmlFor:i,...a})=>jsxs("div",{className:s("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2",t),...a,children:[jsx("label",{className:qo({invalid:r}),htmlFor:i,children:o}),e&&jsx(e,{})]});ae.displayName="Label";var wt=ae;var Uo=f({variants:{invalid:{true:{text:"text-notification-critical-600"}}},slots:{text:"text-sm text-neutral-500",counter:"py-0.25 flex h-[20px] items-center rounded-full bg-neutral-100 px-0.5 text-neutral-500"}}),le=({className:t,text:o,counter:e,maxLength:r,invalid:i,valueLength:a,...n})=>{let l=Uo();return jsxs("div",{className:s("mt-0.5 flex justify-between",t),...n,children:[o&&jsx("span",{className:l.text({invalid:i}),children:o}),e&&r&&jsx("div",{className:l.counter(),children:jsxs(x,{size:"overline",weight:"semibold",children:[a||0,"/",r]})})]})};le.displayName="InputDescription";var Pt=le;var Xo=({id:t,className:o,label:e,description:r,errorMessage:i,invalid:a,children:n,disabled:l,value:c,maxLength:R,...y})=>{let L=i||r.text;return jsxs("div",{className:s("flex flex-col",o),...y,children:[jsx(wt,{...e,invalid:a,htmlFor:t}),q__default.cloneElement(n,{id:t,invalid:a,disabled:l,value:c}),jsx(Pt,{...r,text:L,invalid:a,maxLength:R,valueLength:c==null?void 0:c.length})]})},Yo=Xo;var ir=f({variants:{checked:{false:{checkbox:"hover:border-primary border-neutral-400 bg-white hover:bg-green-100"},indeterminate:{}},disabled:{true:{checkbox:"disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100",icon:"fill-neutral-300 [&_path]:fill-neutral-300 [&_rect]:fill-neutral-300"}}},slots:{checkbox:"bg-primary border-primary focus-visible:rind-0 peer size-[20px] shrink-0 rounded-md border-2 text-white focus-visible:outline-none",icon:"size-2 fill-white [&_path]:fill-white [&_rect]:fill-white"}}),de=q__default.forwardRef(({className:t,checked:o,defaultChecked:e,disabled:r,...i},a)=>{let n=ir();return jsx("div",{className:"flex size-3 items-center justify-center",children:jsx(Root$1,{ref:a,className:s(n.checkbox({checked:o,disabled:r}),t),checked:o,defaultChecked:e,disabled:r,...i,children:jsxs("div",{className:"-ml-0.5 -mt-0.5 flex size-3 items-center justify-center",children:[(o==="indeterminate"||e==="indeterminate")&&jsx(IconOutlineLine,{className:n.icon({disabled:r})}),(o===!0||e===!0)&&jsx(IconOutlineCheck,{className:n.icon({disabled:r})})]})})})});de.displayName=Root$1.displayName;var ar=de;var me=q__default.forwardRef(({className:t,disabled:o,...e},r)=>jsx(S.Root,{className:s("grid gap-1",t),disabled:o,...e,ref:r}));me.displayName=S.Root.displayName;var ue=q__default.forwardRef(({className:t,...o},e)=>jsx(S.Item,{ref:e,className:s("group aspect-square size-[20px] rounded-full border-2 border-neutral-400 bg-white hover:border-green-600 hover:bg-green-100 focus:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100 [&:not(:disabled)]:data-[state=checked]:border-green-600",t),...o,children:jsx(S.Indicator,{className:"text-primary flex items-center justify-center group-disabled:text-neutral-300",children:jsx(Circle,{className:"fill-primary size-[12px] group-disabled:fill-neutral-300"})})}));ue.displayName=S.Item.displayName;var lr={Group:me,Item:ue},cr=lr;var be=f({base:"flex items-center justify-center rounded-full",variants:{size:{small:{trigger:"my-0.5",dropdown:"mt-0.5"},medium:{trigger:"my-1",dropdown:"mt-1"}},disabled:{true:{container:"cursor-not-allowed border-neutral-200",input:"bg-white text-neutral-300",trigger:"cursor-not-allowed text-neutral-300 [&_path]:fill-neutral-300"},false:{container:"focus-within:border-indigo-600 hover:border-indigo-600"}}},slots:{input:"data-[scope=false]hover:bg-indigo-100 pointer-events-auto border-0 bg-white pr-5",trigger:"br-neutral-100 border-r-1 flex w-fit items-center gap-0.5 border border-y-0 border-l-0 border-neutral-100 bg-white pl-2 pr-1 text-indigo-600 focus-visible:outline-none [&_svg]:fill-indigo-600",dropdown:"",container:"rounded-m flex border border-neutral-200 "},defaultVariants:{size:"medium"}}),ve=q.forwardRef(({className:t,disabled:o,invalid:e,size:r,value:i,onChange:a,scope:n,...l},c)=>{let R=$(),y=be();return jsxs("div",{className:y.container({disabled:o}),children:[n&&jsx(gr,{disabled:o,scope:n,size:r}),jsxs("div",{className:"peer relative",children:[jsx("input",{value:i,onChange:a,disabled:o,"data-scoped":!!n,className:s(R.input({disabled:o,invalid:e,size:r}),y.input(),t),ref:c,...l}),jsx("div",{"data-hasValue":!!i,className:`data-[hasValue=true]:cursor-pointer ${R.suffixIcon({size:r,disabled:o})}`,children:i?jsx(IconOutlineClose,{onClick:()=>a&&a({target:{value:""}})}):jsx(IconOutlineSearch,{})})]})]})}),gr=({scope:{selected:t,options:o,onChange:e},disabled:r,size:i})=>{let a=o.find(({value:l})=>l===t),n=be();return jsxs(Root,{children:[jsxs(Trigger,{className:n.trigger({size:i,disabled:r}),disabled:r,children:[jsx(x,{size:"small",weight:"medium",children:a==null?void 0:a.text}),jsx(IconOutlineChevronDown,{className:"-mr-0.5 size-3"})]}),jsx(tt,{selected:t,options:o,onChange:e,className:n.dropdown({size:i})})]})};ve.displayName="Search";var br=ve;
18
22
 
19
- // ../../.yarn/__virtual__/tailwind-variants-virtual-5a8232b7d0/4/.yarn/berry/cache/tailwind-variants-npm-0.2.1-853f67f9ea-10c0.zip/node_modules/tailwind-variants/dist/chunk-JXBJZR5A.js
20
- var l = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e;
21
- var u = (e) => !e || typeof e != "object" || Object.keys(e).length === 0;
22
- var x = (e, o) => JSON.stringify(e) === JSON.stringify(o);
23
- function i(e, o) {
24
- e.forEach(function(r) {
25
- Array.isArray(r) ? i(r, o) : o.push(r);
26
- });
27
- }
28
- function y(e) {
29
- let o = [];
30
- return i(e, o), o;
31
- }
32
- var a = (...e) => y(e).filter(Boolean);
33
- var p = (e, o) => {
34
- let r = {}, c = Object.keys(e), f = Object.keys(o);
35
- for (let t of c) if (f.includes(t)) {
36
- let s = e[t], n = o[t];
37
- typeof s == "object" && typeof n == "object" ? r[t] = p(s, n) : Array.isArray(s) || Array.isArray(n) ? r[t] = a(n, s) : r[t] = n + " " + s;
38
- } else r[t] = e[t];
39
- for (let t of f) c.includes(t) || (r[t] = o[t]);
40
- return r;
41
- };
42
- var g = (e) => !e || typeof e != "string" ? e : e.replace(/\s+/g, " ").trim();
43
- var ie = { twMerge: true, twMergeConfig: {}, responsiveVariants: false };
44
- var _ = (s) => s || void 0;
45
- var M = (...s) => _(y(s).filter(Boolean).join(" "));
46
- var R = null;
47
- var v = {};
48
- var q = false;
49
- var j = (...s) => (b$1) => b$1.twMerge ? ((!R || q) && (q = false, R = u(v) ? twMerge : extendTailwindMerge({ ...v, extend: { theme: v.theme, classGroups: v.classGroups, conflictingClassGroupModifiers: v.conflictingClassGroupModifiers, conflictingClassGroups: v.conflictingClassGroups, ...v.extend } })), _(R(M(s)))) : M(s);
50
- var Z = (s, b) => {
51
- for (let e in b) s.hasOwnProperty(e) ? s[e] = M(s[e], b[e]) : s[e] = b[e];
52
- return s;
53
- };
54
- var ce = (s, b$1) => {
55
- let { extend: e = null, slots: N = {}, variants: F = {}, compoundVariants: U = [], compoundSlots: C = [], defaultVariants: W = {} } = s, m = { ...ie, ...b$1 }, S = e != null && e.base ? M(e.base, s == null ? void 0 : s.base) : s == null ? void 0 : s.base, g$1 = e != null && e.variants && !u(e.variants) ? p(F, e.variants) : F, A = e != null && e.defaultVariants && !u(e.defaultVariants) ? { ...e.defaultVariants, ...W } : W;
56
- !u(m.twMergeConfig) && !x(m.twMergeConfig, v) && (q = true, v = m.twMergeConfig);
57
- let O = u(e == null ? void 0 : e.slots), $ = u(N) ? {} : { base: M(s == null ? void 0 : s.base, O && (e == null ? void 0 : e.base)), ...N }, w = O ? $ : Z({ ...e == null ? void 0 : e.slots }, u($) ? { base: s == null ? void 0 : s.base } : $), h$1 = u(e == null ? void 0 : e.compoundVariants) ? U : a(e == null ? void 0 : e.compoundVariants, U), V = (f) => {
58
- if (u(g$1) && u(N) && O) return j(S, f == null ? void 0 : f.class, f == null ? void 0 : f.className)(m);
59
- if (h$1 && !Array.isArray(h$1)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof h$1}`);
60
- if (C && !Array.isArray(C)) throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof C}`);
61
- let K = (t, n, a2 = [], i2) => {
62
- let r = a2;
63
- if (typeof n == "string") r = r.concat(g(n).split(" ").map((o) => `${t}:${o}`));
64
- else if (Array.isArray(n)) r = r.concat(n.reduce((o, c) => o.concat(`${t}:${c}`), []));
65
- else if (typeof n == "object" && typeof i2 == "string") {
66
- for (let o in n) if (n.hasOwnProperty(o) && o === i2) {
67
- let c = n[o];
68
- if (c && typeof c == "string") {
69
- let l2 = g(c);
70
- r[i2] ? r[i2] = r[i2].concat(l2.split(" ").map((u2) => `${t}:${u2}`)) : r[i2] = l2.split(" ").map((u2) => `${t}:${u2}`);
71
- } else Array.isArray(c) && c.length > 0 && (r[i2] = c.reduce((l2, u2) => l2.concat(`${t}:${u2}`), []));
72
- }
73
- }
74
- return r;
75
- }, z = (t, n = g$1, a$1 = null, i2 = null) => {
76
- var J;
77
- let r = n[t];
78
- if (!r || u(r)) return null;
79
- let o = (J = i2 == null ? void 0 : i2[t]) != null ? J : f == null ? void 0 : f[t];
80
- if (o === null) return null;
81
- let c = l(o), l2 = Array.isArray(m.responsiveVariants) && m.responsiveVariants.length > 0 || m.responsiveVariants === true, u2 = A == null ? void 0 : A[t], d = [];
82
- if (typeof c == "object" && l2) for (let [T, L] of Object.entries(c)) {
83
- let ne = r[L];
84
- if (T === "initial") {
85
- u2 = L;
86
- continue;
87
- }
88
- Array.isArray(m.responsiveVariants) && !m.responsiveVariants.includes(T) || (d = K(T, ne, d, a$1));
89
- }
90
- let ae = c != null && typeof c != "object" ? c : l(u2), k = r[ae || "false"];
91
- return typeof d == "object" && typeof a$1 == "string" && d[a$1] ? Z(d, k) : d.length > 0 ? (d.push(k), d) : k;
92
- }, P = () => g$1 ? Object.keys(g$1).map((t) => z(t, g$1)) : null, p2 = (t, n) => {
93
- if (!g$1 || typeof g$1 != "object") return null;
94
- let a2 = new Array();
95
- for (let i2 in g$1) {
96
- let r = z(i2, g$1, t, n), o = t === "base" && typeof r == "string" ? r : r && r[t];
97
- o && (a2[a2.length] = o);
98
- }
99
- return a2;
100
- }, D = {};
101
- for (let t in f) f[t] !== void 0 && (D[t] = f[t]);
102
- let H = (t, n) => {
103
- var i2;
104
- let a2 = typeof (f == null ? void 0 : f[t]) == "object" ? { [t]: (i2 = f[t]) == null ? void 0 : i2.initial } : {};
105
- return { ...A, ...D, ...a2, ...n };
106
- }, I = (t = [], n) => {
107
- let a2 = [];
108
- for (let { class: i2, className: r, ...o } of t) {
109
- let c = true;
110
- for (let [l2, u2] of Object.entries(o)) {
111
- let d = H(l2, n);
112
- if (Array.isArray(u2)) {
113
- if (!u2.includes(d[l2])) {
114
- c = false;
115
- break;
116
- }
117
- } else if (d[l2] !== u2) {
118
- c = false;
119
- break;
120
- }
121
- }
122
- c && (i2 && a2.push(i2), r && a2.push(r));
123
- }
124
- return a2;
125
- }, ee = (t) => {
126
- let n = I(h$1, t);
127
- if (!Array.isArray(n)) return n;
128
- let a2 = {};
129
- for (let i2 of n) if (typeof i2 == "string" && (a2.base = j(a2.base, i2)(m)), typeof i2 == "object") for (let [r, o] of Object.entries(i2)) a2[r] = j(a2[r], o)(m);
130
- return a2;
131
- }, te = (t) => {
132
- if (C.length < 1) return null;
133
- let n = {};
134
- for (let { slots: a2 = [], class: i2, className: r, ...o } of C) {
135
- if (!u(o)) {
136
- let c = true;
137
- for (let l2 of Object.keys(o)) {
138
- let u2 = H(l2, t)[l2];
139
- if (u2 === void 0 || (Array.isArray(o[l2]) ? !o[l2].includes(u2) : o[l2] !== u2)) {
140
- c = false;
141
- break;
142
- }
143
- }
144
- if (!c) continue;
145
- }
146
- for (let c of a2) n[c] = n[c] || [], n[c].push([i2, r]);
147
- }
148
- return n;
149
- };
150
- if (!u(N) || !O) {
151
- let t = {};
152
- if (typeof w == "object" && !u(w)) for (let n of Object.keys(w)) t[n] = (a2) => {
153
- var i2, r;
154
- return j(w[n], p2(n, a2), ((i2 = ee(a2)) != null ? i2 : [])[n], ((r = te(a2)) != null ? r : [])[n], a2 == null ? void 0 : a2.class, a2 == null ? void 0 : a2.className)(m);
155
- };
156
- return t;
157
- }
158
- return j(S, P(), I(h$1), f == null ? void 0 : f.class, f == null ? void 0 : f.className)(m);
159
- }, x2 = () => {
160
- if (!(!g$1 || typeof g$1 != "object")) return Object.keys(g$1);
161
- };
162
- return V.variantKeys = x2(), V.extend = e, V.base = S, V.slots = w, V.variants = g$1, V.defaultVariants = A, V.compoundSlots = C, V.compoundVariants = h$1, V;
163
- };
164
- var avatarVariants = ce({
165
- base: "flex items-center justify-center rounded-full",
166
- variants: {
167
- color: { default: "bg-neutral-100", indigo: "bg-indigo-600" },
168
- type: {
169
- icon: "[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500",
170
- capitals: "font-semibold text-neutral-500",
171
- image: "[&_img]:rounded-full"
172
- },
173
- size: {
174
- small: "size-4",
175
- medium: "size-5",
176
- large: "size-7"
177
- }
178
- },
179
- compoundVariants: [
180
- {
181
- size: "large",
182
- type: ["capitals", "icon"],
183
- className: "text-xl [&_svg]:size-5"
184
- },
185
- {
186
- size: "medium",
187
- type: ["capitals", "icon"],
188
- className: "text-lg [&_svg]:size-3"
189
- },
190
- {
191
- size: "small",
192
- type: ["capitals", "icon"],
193
- className: "text-base [&_svg]:size-2"
194
- },
195
- {
196
- color: "indigo",
197
- type: ["capitals", "icon"],
198
- className: "text-white [&_path]:fill-white [&_svg]:fill-white"
199
- }
200
- ],
201
- defaultVariants: {
202
- color: "default"
203
- }
204
- });
205
- var Avatar = React4__default.forwardRef(
206
- ({ className, color, type, size, children, asChild, ...props }, forwardedRef) => {
207
- const Comp = asChild ? Slot : "div";
208
- return /* @__PURE__ */ jsx(
209
- Comp,
210
- {
211
- className: avatarVariants({ color, type, size, className }),
212
- ref: forwardedRef,
213
- ...props,
214
- children
215
- }
216
- );
217
- }
218
- );
219
- Avatar.displayName = "Avatar";
220
- var avatar_default = Avatar;
221
- function cn(...inputs) {
222
- return twMerge(clsx(inputs));
223
- }
224
- var TextVariants = ce({
225
- base: "",
226
- variants: {
227
- size: {
228
- H1: "text-3xl",
229
- H2: "text-2xl",
230
- H3: "text-xl",
231
- large: "text-lg",
232
- base: "text-base",
233
- small: "text-sm",
234
- overline: "text-xs uppercase"
235
- },
236
- weight: {
237
- normal: "font-normal",
238
- medium: "font-medium",
239
- semibold: "font-semibold"
240
- }
241
- },
242
- defaultVariants: {
243
- size: "base",
244
- weight: "normal"
245
- }
246
- });
247
- var Text = ({ className, size, weight, children, ...props }) => {
248
- return /* @__PURE__ */ jsx("span", { className: cn(TextVariants({ size, weight, className })), ...props, children });
249
- };
250
- Text.displayName = "Text";
251
- var text_default = Text;
252
- var badgeVariants = ce({
253
- base: "flex items-center justify-center rounded-full",
254
- variants: {
255
- contrast: { true: "", false: "" },
256
- status: {
257
- info: "bg-notification-information-100 text-notification-information-600",
258
- attention: "bg-notification-warning-100 text-notification-warning-900",
259
- white: "text-notification-information-600 bg-white"
260
- },
261
- size: {
262
- small: "h-2",
263
- normal: "h-3"
264
- },
265
- type: {
266
- pill: "w-fit px-1",
267
- dot: ""
268
- }
269
- },
270
- compoundVariants: [
271
- {
272
- status: "info",
273
- contrast: true,
274
- class: "bg-notification-information-600 text-white"
275
- },
276
- {
277
- status: "attention",
278
- contrast: true,
279
- class: "bg-notification-warning-600"
280
- },
281
- {
282
- type: "dot",
283
- size: "small",
284
- class: "w-2"
285
- },
286
- {
287
- type: "dot",
288
- size: "normal",
289
- class: "w-3"
290
- }
291
- ],
292
- defaultVariants: {
293
- status: "info",
294
- size: "normal",
295
- type: "pill"
296
- }
297
- });
298
- var Badge = React4__default.forwardRef(
299
- ({ className, status, size, type, contrast, children, asChild, ...props }, ref) => {
300
- const Comp = asChild ? Slot : "span";
301
- return /* @__PURE__ */ jsx(
302
- Comp,
303
- {
304
- className: badgeVariants({ status, size, type, contrast, className }),
305
- ref,
306
- ...props,
307
- children: /* @__PURE__ */ jsx(text_default, { size: "overline", weight: "semibold", children })
308
- }
309
- );
310
- }
311
- );
312
- Badge.displayName = "Badge";
313
- var badge_default = Badge;
314
- var buttonVariants = ce({
315
- variants: {
316
- appearance: {
317
- primary: {
318
- container: "bg-primary hover:bg-green-900 ",
319
- text: "text-white",
320
- icon: "fill-white [&_path]:fill-white"
321
- },
322
- secondary: {
323
- container: "border border-green-600 bg-white hover:bg-green-100 ",
324
- text: "text-green-600",
325
- icon: "fill-green-600 [&_path]:fill-green-600"
326
- },
327
- tertiary: {
328
- container: "border border-indigo-600 bg-white hover:bg-indigo-100 ",
329
- text: "text-indigo-600",
330
- icon: "fill-indigo-600 [&_path]:fill-indigo-600"
331
- },
332
- danger: {
333
- container: "border-notification-critical-600 hover:bg-notification-critical-600 group/danger border bg-white",
334
- text: "text-notification-critical-600 group-hover/danger:text-white",
335
- icon: "fill-notification-critical-600 [&_path]:fill-notification-critical-600 group-hover/danger:fill-white group-hover/danger:[&_path]:fill-white"
336
- },
337
- link: {
338
- container: "bg-white hover:bg-green-100 ",
339
- text: "text-green-600",
340
- icon: "fill-green-600 [&_path]:fill-green-600"
341
- },
342
- table: {
343
- container: "bg-white hover:bg-neutral-100 ",
344
- text: "text-neutral-400",
345
- icon: "fill-neutral-400 [&_path]:fill-neutral-400"
346
- }
347
- },
348
- size: {
349
- medium: {
350
- container: "h-5",
351
- icon: "text-base"
352
- },
353
- small: {
354
- container: "h-4",
355
- text: "mx-1 text-sm",
356
- icon: "group-data-[has-text=true]:ml-0"
357
- }
358
- },
359
- disabled: {
360
- true: {
361
- container: "pointer-events-none cursor-not-allowed border-neutral-200 bg-neutral-100",
362
- text: "text-neutral-300",
363
- icon: "fill-neutral-300 [&_path]:fill-neutral-300"
364
- },
365
- false: ""
366
- }
367
- },
368
- slots: {
369
- container: "group inline-flex items-center justify-center rounded-md p-1 focus:outline-none focus:ring-0 data-[has-icon=true]:gap-1",
370
- icon: "size-3 group-data-[has-text=true]:ml-1",
371
- text: "mx-2 group-data-[has-icon=true]:ml-0"
372
- },
373
- defaultVariants: {
374
- appearance: "primary",
375
- size: "medium"
376
- }
377
- });
378
- var Button = React4__default.forwardRef(
379
- ({
380
- className,
381
- appearance,
382
- size,
383
- disabled,
384
- children,
385
- asChild,
386
- icon: Icon,
387
- ...props
388
- }, ref) => {
389
- const Comp = asChild ? Slot : "button";
390
- const slots = buttonVariants({ appearance, size, disabled, className });
391
- return /* @__PURE__ */ jsxs(
392
- Comp,
393
- {
394
- "data-has-icon": !!Icon,
395
- "data-has-text": !!children,
396
- className: slots.container(),
397
- ref,
398
- ...props,
399
- children: [
400
- Icon && /* @__PURE__ */ jsx(Icon, { className: slots.icon() }),
401
- children && /* @__PURE__ */ jsx(text_default, { size: "base", weight: "medium", className: slots.text(), children })
402
- ]
403
- }
404
- );
405
- }
406
- );
407
- Button.displayName = "Button";
408
- var button_default = Button;
409
- var cardVariants = ce({
410
- base: "flex w-full border border-gray-200 bg-white p-2",
411
- variants: {
412
- variant: {
413
- default: "rounded-m",
414
- big: "rounded-x",
415
- small: "rounded-s"
416
- },
417
- direction: {
418
- col: "flex-col",
419
- row: "flex-row"
420
- },
421
- padding: {
422
- none: "p-0",
423
- small: "p-1",
424
- medium: "p-2",
425
- big: "p-3"
426
- }
427
- },
428
- defaultVariants: {
429
- variant: "default",
430
- direction: "col",
431
- padding: "none"
432
- }
433
- });
434
- var Card = ({
435
- className,
436
- variant,
437
- direction,
438
- padding,
439
- children,
440
- ...props
441
- }) => {
442
- return /* @__PURE__ */ jsx(
443
- "div",
444
- {
445
- className: cn(cardVariants({ variant, direction, padding, className })),
446
- ...props,
447
- children
448
- }
449
- );
450
- };
451
- Card.displayName = "Card";
452
- var card_default = Card;
453
- var scopeVariants = ce({
454
- variants: {
455
- variant: {
456
- default: "",
457
- light: "",
458
- green: "",
459
- red: ""
460
- },
461
- size: {
462
- default: {
463
- container: "h-5"
464
- },
465
- small: {
466
- container: "h-4",
467
- text: "text-sm"
468
- }
469
- },
470
- disabled: {
471
- true: {
472
- container: "cursor-initial border-neutral-200 bg-neutral-100 text-neutral-300",
473
- icon: "[&_path]:fill-neutral-300 [&_svg]:fill-neutral-300"
474
- },
475
- false: {
476
- container: "border-neutral-200 text-neutral-500 hover:bg-neutral-100",
477
- icon: "[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500"
478
- }
479
- }
480
- },
481
- compoundVariants: [
482
- {
483
- disabled: false,
484
- variant: "default",
485
- class: {
486
- container: "data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-600",
487
- text: "group-data-[state=on]:text-white",
488
- icon: "group-data-[state=on]:fill-white [&_path]:group-data-[state=on]:fill-white"
489
- }
490
- },
491
- {
492
- disabled: false,
493
- variant: "light",
494
- class: {
495
- container: "data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-100",
496
- text: "group-data-[state=on]:text-indigo-600",
497
- icon: "group-data-[state=on]:fill-indigo-600 [&_path]:group-data-[state=on]:fill-indigo-600"
498
- }
499
- },
500
- {
501
- disabled: false,
502
- variant: "green",
503
- class: {
504
- container: "data-[state=on]:border-notification-success-600 data-[state=on]:bg-notification-success-100",
505
- text: "group-data-[state=on]:text-notification-success-600",
506
- icon: "group-data-[state=on]:fill-notification-success-600 [&_path]:group-data-[state=on]:fill-notification-success-600"
507
- }
508
- },
509
- {
510
- disabled: false,
511
- variant: "red",
512
- class: {
513
- container: "data-[state=on]:border-notification-critical-600 data-[state=on]:bg-notification-critical-100",
514
- text: "group-data-[state=on]:text-notification-critical-600",
515
- icon: "group-data-[state=on]:fill-notification-critical-600 [&_path]:group-data-[state=on]:fill-notification-critical-600"
516
- }
517
- }
518
- ],
519
- slots: {
520
- container: "first:rounded-ss-m first:rounded-es-m last:rounded-se-m last:rounded-ee-m group flex items-center gap-1 border px-2 [&:nth-child(n+2)]:data-[state=off]:border-l-0",
521
- icon: "size-3",
522
- text: ""
523
- },
524
- defaultVariants: {
525
- disabled: false,
526
- variant: "default",
527
- size: "default"
528
- }
529
- });
530
- var ScopeGroupContext = React4__default.createContext({
531
- variant: "default",
532
- size: "default",
533
- disabled: false
534
- });
535
- var Group = React4__default.forwardRef(({ className, variant, children, size, disabled, ...props }, ref) => /* @__PURE__ */ jsx(
536
- ToggleGroupPrimitive.Root,
537
- {
538
- ref,
539
- className: cn("flex items-center justify-center gap-0", className),
540
- ...props,
541
- type: "single",
542
- children: /* @__PURE__ */ jsx(
543
- ScopeGroupContext.Provider,
544
- {
545
- value: {
546
- variant,
547
- size,
548
- disabled
549
- },
550
- children
551
- }
552
- )
553
- }
554
- ));
555
- Group.displayName = "ScopeGroup";
556
- var Item2 = React4__default.forwardRef(({ className, variant, size, icon: Icon, text, disabled, ...props }, ref) => {
557
- const context = React4__default.useContext(ScopeGroupContext);
558
- const slots = scopeVariants({
559
- variant: context.variant || variant,
560
- size: context.size || size,
561
- disabled: context.disabled || disabled
562
- });
563
- return /* @__PURE__ */ jsxs(
564
- ToggleGroupPrimitive.Item,
565
- {
566
- ref,
567
- className: cn(slots.container(), className),
568
- disabled,
569
- ...props,
570
- children: [
571
- Icon && /* @__PURE__ */ jsx(Icon, { className: slots.icon() }),
572
- /* @__PURE__ */ jsx(text_default, { size: "base", weight: "normal", className: slots.text(), children: text })
573
- ]
574
- }
575
- );
576
- });
577
- Item2.displayName = "ScopeItem";
578
- var Scope = {
579
- Group,
580
- Item: Item2
581
- };
582
- var scope_default = Scope;
583
- var ProgressBar = ({
584
- value,
585
- className,
586
- barBg,
587
- progressBg
588
- }) => {
589
- const translateClass = `-translate-x-[(-${100 - (value || 0)}%])`;
590
- return /* @__PURE__ */ jsx(
591
- Root$2,
592
- {
593
- className: cn(
594
- className,
595
- barBg,
596
- "relative w-full overflow-hidden rounded-full "
597
- ),
598
- value,
599
- children: /* @__PURE__ */ jsx(
600
- Indicator,
601
- {
602
- className: cn(
603
- className,
604
- "w-full flex-1 rounded-full",
605
- translateClass,
606
- progressBg
607
- )
608
- }
609
- )
610
- }
611
- );
612
- };
613
- var progress_bar_default = ProgressBar;
614
- var inputVariants = ce({
615
- variants: {
616
- disabled: {
617
- true: {
618
- input: "cursor-not-allowed bg-neutral-100 text-neutral-400",
619
- prefixIcon: "fill-neutral-300 [&_path]:fill-neutral-300",
620
- suffixIcon: "fill-neutral-300 [&_path]:fill-neutral-300"
621
- }
622
- },
623
- invalid: {
624
- true: {
625
- input: "border-notification-critical-600 focus:border-notification-critical-600"
626
- }
627
- },
628
- size: {
629
- medium: {
630
- prefixIcon: "top-1",
631
- suffixIcon: "top-1",
632
- input: "h-5"
633
- },
634
- small: {
635
- prefixIcon: "top-0.5",
636
- suffixIcon: "top-0.5",
637
- input: "h-4"
638
- }
639
- }
640
- },
641
- slots: {
642
- prefixIcon: "absolute left-1 top-1 size-3",
643
- input: "rounded-m flex w-full border border-neutral-200 p-1 text-base text-indigo-600 placeholder:font-light placeholder:text-neutral-400 focus:border-indigo-600 focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed data-[has-prefix-icon=true]:pl-5 data-[has-suffix-icon=true]:pr-5",
644
- suffixIcon: "absolute right-1 top-1 size-3"
645
- },
646
- defaultVariants: {
647
- size: "medium"
648
- }
649
- });
650
- var Input = React4__default.forwardRef(
651
- ({
652
- className,
653
- prefixIcon: PreffixIcon,
654
- suffixIcon: SuffixIcon,
655
- disabled,
656
- invalid,
657
- size,
658
- ...props
659
- }, ref) => {
660
- const slots = inputVariants();
661
- return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
662
- /* @__PURE__ */ jsx("div", { className: slots.prefixIcon({ invalid, size }), children: PreffixIcon && /* @__PURE__ */ jsx(PreffixIcon, {}) }),
663
- /* @__PURE__ */ jsx(
664
- "input",
665
- {
666
- disabled,
667
- "data-has-prefix-icon": !!PreffixIcon,
668
- "data-has-suffix-icon": !!SuffixIcon,
669
- className: cn(slots.input({ disabled, invalid, size }), className),
670
- ref,
671
- ...props
672
- }
673
- ),
674
- /* @__PURE__ */ jsx("div", { className: slots.suffixIcon({ invalid, size }), children: SuffixIcon && /* @__PURE__ */ jsx(SuffixIcon, {}) })
675
- ] });
676
- }
677
- );
678
- Input.displayName = "Input";
679
- var input_default = Input;
680
- var Textarea = React4.forwardRef(
681
- ({ className, disabled, invalid, ...props }, ref) => {
682
- const { input } = inputVariants();
683
- return /* @__PURE__ */ jsx(
684
- "textarea",
685
- {
686
- className: cn("min-h-9", className, input({ disabled, invalid })),
687
- ref,
688
- ...props
689
- }
690
- );
691
- }
692
- );
693
- Textarea.displayName = "Textarea";
694
- var textarea_default = Textarea;
695
- var Sheet = ({
696
- title,
697
- children,
698
- isVisible,
699
- CloseIcon,
700
- maxWidth,
701
- onClose
702
- }) => {
703
- const [isOpen, setOpen] = useState(isVisible);
704
- useEffect(() => setOpen(isVisible), [isVisible]);
705
- const handleClose = (confirm) => {
706
- setOpen(false);
707
- if (onClose) onClose(confirm);
708
- };
709
- return /* @__PURE__ */ jsxs(Fragment, { children: [
710
- /* @__PURE__ */ jsx(
711
- "div",
712
- {
713
- className: cn(
714
- "fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",
715
- !isOpen ? "hidden" : void 0
716
- )
717
- }
718
- ),
719
- /* @__PURE__ */ jsxs(
720
- "div",
721
- {
722
- className: cn(
723
- "shadow-big fixed right-0 top-0 z-40 h-screen overflow-y-auto overflow-x-hidden rounded-l-lg bg-white transition-transform dark:bg-gray-800",
724
- maxWidth ? `max-w=[${maxWidth}]` : "max-w-3/4",
725
- !isOpen ? "translate-x-full" : void 0
726
- ),
727
- tabIndex: -1,
728
- "aria-labelledby": "drawer-label",
729
- children: [
730
- /* @__PURE__ */ jsxs(
731
- "div",
732
- {
733
- id: "drawer-label",
734
- className: cn(
735
- " mb-2 flex items-center justify-between border-b-2 border-slate-100 p-2 text-base font-semibold text-gray-500 dark:text-gray-400"
736
- ),
737
- children: [
738
- /* @__PURE__ */ jsx(text_default, { size: "H3", weight: "semibold", className: "text-navy-600", children: title }),
739
- /* @__PURE__ */ jsxs(
740
- "button",
741
- {
742
- type: "button",
743
- "data-drawer-hide": "drawer-example",
744
- "aria-controls": "drawer-example",
745
- className: cn(
746
- "b-0 ml-2 flex size-9 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
747
- ),
748
- onClick: () => handleClose,
749
- children: [
750
- CloseIcon ? /* @__PURE__ */ jsx(CloseIcon, {}) : /* @__PURE__ */ jsx(
751
- "svg",
752
- {
753
- width: "24",
754
- height: "24",
755
- viewBox: "0 0 24 24",
756
- fill: "none",
757
- xmlns: "http://www.w3.org/2000/svg",
758
- children: /* @__PURE__ */ jsx(
759
- "path",
760
- {
761
- "fill-rule": "evenodd",
762
- "clip-rule": "evenodd",
763
- d: "M6.70711 18.7071L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071ZM17.2929 18.7071L13.8201 15.2343C13.4296 14.8438 13.4296 14.2106 13.8201 13.8201C14.2106 13.4296 14.8438 13.4296 15.2343 13.8201L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071Z",
764
- fill: "#8D95A7"
765
- }
766
- )
767
- }
768
- ),
769
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close menu" })
770
- ]
771
- }
772
- )
773
- ]
774
- }
775
- ),
776
- /* @__PURE__ */ jsx("div", { className: cn(" relative h-full p-2"), children })
777
- ]
778
- }
779
- )
780
- ] });
781
- };
782
- Sheet.displayName = "Sheet";
783
- var sheets_default = Sheet;
784
- var toggleVariants = ce({
785
- base: "after:start-0.25 after:top-0.25 peer relative mr-1 h-3 w-5 rounded-full bg-neutral-200 after:absolute after:size-[20px] after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-green-600 peer-checked:after:translate-x-2 peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-0",
786
- variants: {
787
- disabled: {
788
- true: "cursor-not-allowed bg-neutral-100 after:border-neutral-100 peer-checked:bg-green-100 peer-checked:after:border-green-100"
789
- }
790
- }
791
- });
792
- var Toggle = forwardRef(
793
- ({ className, name, disabled, children, ...props }, ref) => {
794
- return /* @__PURE__ */ jsxs(
795
- "label",
796
- {
797
- className: cn("inline-flex cursor-pointer items-center", className),
798
- children: [
799
- /* @__PURE__ */ jsx(
800
- "input",
801
- {
802
- ...props,
803
- ref,
804
- type: "checkbox",
805
- className: cn("peer sr-only"),
806
- name,
807
- disabled
808
- }
809
- ),
810
- /* @__PURE__ */ jsx("span", { className: toggleVariants({ disabled }) }),
811
- /* @__PURE__ */ jsx(text_default, { children })
812
- ]
813
- }
814
- );
815
- }
816
- );
817
- Toggle.displayName = "Toggle";
818
- var toggle_default = Toggle;
819
- var Accordion = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
820
- AccordionPrimitive.Root,
821
- {
822
- ref,
823
- className: cn(
824
- "[&>:first-child>h3>button]:rounded-t-m [&>:last-child>h3[data-state=closed]>button]:rounded-b-m",
825
- className
826
- ),
827
- ...props
828
- }
829
- ));
830
- var AccordionItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
831
- AccordionPrimitive.Item,
832
- {
833
- ref,
834
- className: cn(
835
- "first:rounded-t-m last:rounded-b-m border border-t-0 first:border-t",
836
- className
837
- ),
838
- ...props
839
- }
840
- ));
841
- AccordionItem.displayName = "AccordionItem";
842
- var AccordionTrigger = React4.forwardRef(({ className, children, triggerClassName, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
843
- AccordionPrimitive.Trigger,
844
- {
845
- ref,
846
- className: cn(
847
- "flex h-7 w-full items-center p-1 transition-all hover:bg-neutral-100 [&[data-disabled]]:cursor-not-allowed [&[data-disabled]]:bg-neutral-200 [&[data-disabled]]:text-neutral-400 [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:border-b",
848
- triggerClassName
849
- ),
850
- ...props,
851
- children: [
852
- /* @__PURE__ */ jsx("div", { className: cn("w-full", className), children }),
853
- /* @__PURE__ */ jsx(IconOutlineChevronDown, { className: "size-3 transition-transform duration-200" })
854
- ]
855
- }
856
- ) }));
857
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
858
- var AccordionContent = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
859
- AccordionPrimitive.Content,
860
- {
861
- ref,
862
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden transition-all",
863
- ...props,
864
- children: /* @__PURE__ */ jsx("div", { className: cn(className), children })
865
- }
866
- ));
867
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
868
- var AccordionWithStatics = Accordion;
869
- AccordionWithStatics.Item = AccordionItem;
870
- AccordionWithStatics.Trigger = AccordionTrigger;
871
- AccordionWithStatics.Content = AccordionContent;
872
- var accordion_default = AccordionWithStatics;
873
- var indicatorVariants = ce({
874
- base: "text-medium flex h-3 items-center justify-center rounded-sm border border-neutral-200 px-1 py-0.5 [&_svg]:-ml-0.5 [&_svg]:w-2",
875
- variants: {
876
- status: {
877
- positive: "text-notification-success-600 [&_svg]:fill-notification-success-600",
878
- negative: "text-notification-critical-600 [&_svg]:fill-notification-critical-600",
879
- neutral: "text-notification-warning-900 [&_svg]:fill-notification-warning-900",
880
- info: "border-indigo-600 text-indigo-600"
881
- }
882
- }
883
- });
884
- var Indicator2 = React4__default.forwardRef(
885
- ({ className, status, value, icon, ...props }, ref) => {
886
- const Icon = {
887
- positive: /* @__PURE__ */ jsx(IconOutlineArrowUp, {}),
888
- negative: /* @__PURE__ */ jsx(IconOutlineArrowDown, {}),
889
- neutral: /* @__PURE__ */ jsx(IconOutlineMinus, {})
890
- };
891
- return /* @__PURE__ */ jsxs(
892
- "div",
893
- {
894
- className: indicatorVariants({ status, className }),
895
- ref,
896
- ...props,
897
- children: [
898
- icon && Icon[icon],
899
- /* @__PURE__ */ jsxs(text_default, { size: "overline", weight: "semibold", children: [
900
- value,
901
- "%"
902
- ] })
903
- ]
904
- }
905
- );
906
- }
907
- );
908
- var indicator_default = Indicator2;
909
- var DropdownContent = ({
910
- options,
911
- selected,
912
- onChange,
913
- className
914
- }) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
915
- Content,
916
- {
917
- align: "start",
918
- className: cn(
919
- "shadow-down data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 rounded-md border bg-white p-1",
920
- className
921
- ),
922
- children: options.map((option) => /* @__PURE__ */ jsx(
923
- Item,
924
- {
925
- "data-selected": selected === option.value,
926
- className: "relative flex cursor-pointer select-none rounded-sm\n px-2 py-1 text-base font-normal text-neutral-500 outline-none\n transition-colors focus:bg-indigo-100 focus:text-indigo-600 \n data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600",
927
- onClick: () => onChange && onChange(option.value),
928
- children: option.text
929
- }
930
- ))
931
- }
932
- ) });
933
- var statusVariants = ce({
934
- base: "text-medium flex items-center justify-center rounded-sm px-1 py-0.5",
935
- variants: {
936
- status: {
937
- success: [
938
- "bg-notification-success-100",
939
- "text-notification-success-600",
940
- "[&_svg]:fill-notification-success-600 [&_span:nth-child(1)]:bg-notification-success-600"
941
- ],
942
- attention: [
943
- "bg-notification-warning-100",
944
- "text-notification-warning-900",
945
- "[&_svg]:fill-notification-warning-900 [&_span:nth-child(1)]:bg-notification-warning-900"
946
- ],
947
- info: [
948
- "bg-notification-information-100",
949
- "text-notification-information-600",
950
- "[&_svg]:fill-notification-information-600 [&_span:nth-child(1)]:bg-notification-information-600"
951
- ],
952
- error: [
953
- "bg-notification-critical-100",
954
- "text-notification-critical-900",
955
- "[&_svg]:fill-notification-critical-900 [&_span:nth-child(1)]:bg-notification-critical-900"
956
- ],
957
- disabled: [
958
- "bg-neutral-200 ",
959
- "text-neutral-500",
960
- "[&_span:nth-child(1)]:bg-neutral-500 [&_svg]:fill-neutral-500"
961
- ]
962
- }
963
- }
964
- });
965
- var Selected = ({ text }) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-0.5", children: [
966
- /* @__PURE__ */ jsx("span", { className: "w-0.75 h-0.75 rounded-full bg-neutral-500" }),
967
- /* @__PURE__ */ jsx(text_default, { size: "overline", weight: "semibold", className: "select-none", children: text })
968
- ] });
969
- var StatusSimple = React4__default.forwardRef(
970
- ({ className, status, text, ...props }, ref) => {
971
- return /* @__PURE__ */ jsx(
972
- "div",
973
- {
974
- className: statusVariants({ status, className }),
975
- ref,
976
- ...props,
977
- children: /* @__PURE__ */ jsx(Selected, { text })
978
- }
979
- );
980
- }
981
- );
982
- var StatusMenu = React4__default.forwardRef(
983
- ({ className, status, options, value, onChange, ...props }, ref) => {
984
- const selected = options.find((op) => op.value === value);
985
- return /* @__PURE__ */ jsx(
986
- "div",
987
- {
988
- className: statusVariants({ status: selected == null ? void 0 : selected.status, className }),
989
- ref,
990
- ...props,
991
- children: /* @__PURE__ */ jsxs(Root, { children: [
992
- /* @__PURE__ */ jsxs(Trigger, { className: "flex items-center gap-0.5 outline-none", children: [
993
- /* @__PURE__ */ jsx(Selected, { text: (selected == null ? void 0 : selected.text) || "" }),
994
- /* @__PURE__ */ jsx(IconOutlineChevronDown, { "data-status": status, className: "-mr-0.5 size-2" })
995
- ] }),
996
- /* @__PURE__ */ jsx(
997
- DropdownContent,
998
- {
999
- selected: selected == null ? void 0 : selected.value,
1000
- options,
1001
- onChange,
1002
- className: "-ml-1 mt-0.5"
1003
- }
1004
- )
1005
- ] })
1006
- }
1007
- );
1008
- }
1009
- );
1010
- var Status = {
1011
- Menu: StatusMenu,
1012
- ...StatusSimple
1013
- };
1014
- var status_default = Status;
1015
- var progressVariants = ce({
1016
- base: "text-midnight-blue-600",
1017
- variants: {
1018
- bg: {
1019
- indigo: "bg-midnight-blue-100",
1020
- white: "bg-white to-white"
1021
- }
1022
- }
1023
- });
1024
- var Indicator3 = React4__default.forwardRef(
1025
- ({ className, bg, value, withBar, ...props }, ref) => /* @__PURE__ */ jsxs(
1026
- "div",
1027
- {
1028
- className: cn(
1029
- progressVariants({ bg, className }),
1030
- "flex h-3 flex-col items-center justify-center rounded-full px-1"
1031
- ),
1032
- ref,
1033
- ...props,
1034
- children: [
1035
- /* @__PURE__ */ jsxs(text_default, { size: "overline", weight: "medium", children: [
1036
- value,
1037
- "%"
1038
- ] }),
1039
- withBar && /* @__PURE__ */ jsx(
1040
- progress_bar_default,
1041
- {
1042
- barBg: bg === "indigo" ? "bg-white" : "bg-midnight-blue-100",
1043
- progressBg: "bg-midnight-blue-600",
1044
- value,
1045
- className: "h-0.25 mb-0.5"
1046
- }
1047
- )
1048
- ]
1049
- }
1050
- )
1051
- );
1052
- var Circle = React4__default.forwardRef(
1053
- ({ className, bg, value, Icon, ...props }, ref) => {
1054
- return /* @__PURE__ */ jsx(
1055
- RadixProgress.Root,
1056
- {
1057
- ref,
1058
- className: cn(
1059
- progressVariants({ bg }),
1060
- `text-midnight-blue-600 [&_svg]:fill-midnight-blue-600 [&_path]:fill-midnight-blue-600 relative flex size-6 items-center justify-center rounded-full`,
1061
- `bg-[conic-gradient(var(--tw-gradient-stops))] from-midnight-blue-600 to-midnight-blue-100 p-0.5`,
1062
- className
1063
- ),
1064
- ...props,
1065
- children: /* @__PURE__ */ jsx(
1066
- "div",
1067
- {
1068
- className: cn(
1069
- progressVariants({ bg }),
1070
- "flex size-full items-center justify-center rounded-full"
1071
- ),
1072
- children: Icon ? /* @__PURE__ */ jsx(Icon, { className: "size-3" }) : /* @__PURE__ */ jsxs("div", { className: "flex items-end", children: [
1073
- /* @__PURE__ */ jsx(text_default, { weight: "medium", children: value }),
1074
- /* @__PURE__ */ jsx(text_default, { size: "overline", weight: "medium", children: "%" })
1075
- ] })
1076
- }
1077
- )
1078
- }
1079
- );
1080
- }
1081
- );
1082
- var Expanded = React4__default.forwardRef(
1083
- ({ className, bg, value, text, ...props }, ref) => /* @__PURE__ */ jsxs(
1084
- "div",
1085
- {
1086
- "data-bg": bg,
1087
- className: cn(
1088
- progressVariants({ bg, className }),
1089
- `rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
1090
- p-2 data-[bg=white]:border`
1091
- ),
1092
- ref,
1093
- ...props,
1094
- children: [
1095
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-1", children: [
1096
- /* @__PURE__ */ jsx(text_default, { weight: "normal", children: text }),
1097
- /* @__PURE__ */ jsx(Indicator3, { value, bg: bg === "white" ? "indigo" : "white" })
1098
- ] }),
1099
- /* @__PURE__ */ jsx(
1100
- progress_bar_default,
1101
- {
1102
- barBg: bg === "indigo" ? "bg-white" : "bg-midnight-blue-100",
1103
- progressBg: "bg-midnight-blue-600",
1104
- value,
1105
- className: "h-1"
1106
- }
1107
- )
1108
- ]
1109
- }
1110
- )
1111
- );
1112
- var Progress = {
1113
- Indicator: Indicator3,
1114
- Circle,
1115
- Expanded
1116
- };
1117
- var progress_default = Progress;
1118
- var chipsVariants = ce({
1119
- variants: {
1120
- size: {
1121
- small: {
1122
- container: "h-3",
1123
- icon: "size-2"
1124
- },
1125
- medium: {
1126
- container: "h-4",
1127
- icon: "size-3"
1128
- }
1129
- },
1130
- border: {
1131
- true: {
1132
- container: "border border-neutral-200 text-neutral-500",
1133
- icon: "fill-neutral-400 [&_path]:fill-neutral-400"
1134
- },
1135
- false: {
1136
- container: "bg-indigo-100 text-indigo-600",
1137
- icon: "fill-indigo-600 [&_path]:fill-indigo-600"
1138
- }
1139
- },
1140
- active: {
1141
- true: {
1142
- container: "bg-indigo-600 text-white hover:bg-indigo-900",
1143
- icon: "fill-white [&_path]:fill-white"
1144
- }
1145
- }
1146
- },
1147
- slots: {
1148
- container: "group flex items-center rounded-full px-1 hover:border-0 hover:bg-indigo-600 hover:font-medium hover:text-white",
1149
- icon: "group-hover:[&_path]:fill-white group-hover:[&_svg]:fill-white"
1150
- },
1151
- defaultVariants: {
1152
- size: "medium",
1153
- border: false,
1154
- active: false
1155
- }
1156
- });
1157
- var Chips = React4__default.forwardRef(
1158
- ({
1159
- className,
1160
- size,
1161
- icon: Icon,
1162
- text,
1163
- asChild,
1164
- value,
1165
- border,
1166
- active,
1167
- onClose,
1168
- ...props
1169
- }, ref) => {
1170
- const Comp = asChild ? Slot : "div";
1171
- const slots = chipsVariants();
1172
- return /* @__PURE__ */ jsxs(
1173
- Comp,
1174
- {
1175
- className: slots.container({ size, border, active, className }),
1176
- ref,
1177
- ...props,
1178
- children: [
1179
- Icon && /* @__PURE__ */ jsx(Icon, { className: slots.icon({ size, border, active }) }),
1180
- /* @__PURE__ */ jsx(text_default, { size: "base", weight: "normal", className: "mx-1", children: text }),
1181
- onClose && /* @__PURE__ */ jsx(
1182
- IconOutlineClose,
1183
- {
1184
- onClick: () => onClose(value),
1185
- className: cn(
1186
- slots.icon({ size, border, active }),
1187
- "cursor-pointer"
1188
- )
1189
- }
1190
- )
1191
- ]
1192
- }
1193
- );
1194
- }
1195
- );
1196
- Chips.displayName = "Chips";
1197
- var chips_default = Chips;
1198
- var labelVariants = ce({
1199
- base: "text-navy-600 text-base font-medium",
1200
- variants: {
1201
- invalid: {
1202
- true: "text-notification-critical-600"
1203
- }
1204
- }
1205
- });
1206
- var Label = ({
1207
- className,
1208
- text,
1209
- suffix: Suffix,
1210
- invalid,
1211
- htmlFor,
1212
- ...props
1213
- }) => /* @__PURE__ */ jsxs(
1214
- "div",
1215
- {
1216
- className: cn("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2", className),
1217
- ...props,
1218
- children: [
1219
- /* @__PURE__ */ jsx("label", { className: labelVariants({ invalid }), htmlFor, children: text }),
1220
- Suffix && /* @__PURE__ */ jsx(Suffix, {})
1221
- ]
1222
- }
1223
- );
1224
- Label.displayName = "Label";
1225
- var label_default = Label;
1226
- var inputDescriptionVariants = ce({
1227
- variants: {
1228
- invalid: {
1229
- true: {
1230
- text: "text-notification-critical-600"
1231
- }
1232
- }
1233
- },
1234
- slots: {
1235
- text: "text-sm text-neutral-500",
1236
- counter: "py-0.25 flex h-[20px] items-center rounded-full bg-neutral-100 px-0.5 text-neutral-500"
1237
- }
1238
- });
1239
- var InputDescription = ({
1240
- className,
1241
- text,
1242
- counter,
1243
- maxLength,
1244
- invalid,
1245
- valueLength,
1246
- ...props
1247
- }) => {
1248
- const slots = inputDescriptionVariants();
1249
- return /* @__PURE__ */ jsxs("div", { className: cn("mt-0.5 flex justify-between", className), ...props, children: [
1250
- text && /* @__PURE__ */ jsx("span", { className: slots.text({ invalid }), children: text }),
1251
- counter && maxLength && /* @__PURE__ */ jsx("div", { className: slots.counter(), children: /* @__PURE__ */ jsxs(text_default, { size: "overline", weight: "semibold", children: [
1252
- valueLength || 0,
1253
- "/",
1254
- maxLength
1255
- ] }) })
1256
- ] });
1257
- };
1258
- InputDescription.displayName = "InputDescription";
1259
- var input_description_default = InputDescription;
1260
- var FormItem = ({
1261
- id,
1262
- className,
1263
- label,
1264
- description,
1265
- errorMessage,
1266
- invalid,
1267
- children,
1268
- disabled,
1269
- value,
1270
- maxLength,
1271
- ...props
1272
- }) => {
1273
- const descriptionText = errorMessage || description.text;
1274
- return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col", className), ...props, children: [
1275
- /* @__PURE__ */ jsx(label_default, { ...label, invalid, htmlFor: id }),
1276
- React4__default.cloneElement(children, {
1277
- id,
1278
- invalid,
1279
- disabled,
1280
- value
1281
- }),
1282
- /* @__PURE__ */ jsx(
1283
- input_description_default,
1284
- {
1285
- ...description,
1286
- text: descriptionText,
1287
- invalid,
1288
- maxLength,
1289
- valueLength: value == null ? void 0 : value.length
1290
- }
1291
- )
1292
- ] });
1293
- };
1294
- var form_item_default = FormItem;
1295
- var checkboxVariants = ce({
1296
- variants: {
1297
- checked: {
1298
- false: {
1299
- checkbox: "hover:border-primary border-neutral-400 bg-white hover:bg-green-100"
1300
- },
1301
- indeterminate: {}
1302
- },
1303
- disabled: {
1304
- true: {
1305
- checkbox: "disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100",
1306
- icon: "fill-neutral-300 [&_path]:fill-neutral-300 [&_rect]:fill-neutral-300"
1307
- }
1308
- }
1309
- },
1310
- slots: {
1311
- checkbox: "bg-primary border-primary focus-visible:rind-0 peer size-[20px] shrink-0 rounded-md border-2 text-white focus-visible:outline-none",
1312
- icon: "size-2 fill-white [&_path]:fill-white [&_rect]:fill-white"
1313
- }
1314
- });
1315
- var Checkbox = React4__default.forwardRef(({ className, checked, defaultChecked, disabled, ...props }, ref) => {
1316
- const slots = checkboxVariants();
1317
- return /* @__PURE__ */ jsx("div", { className: "flex size-3 items-center justify-center", children: /* @__PURE__ */ jsx(
1318
- Root$1,
1319
- {
1320
- ref,
1321
- className: cn(slots.checkbox({ checked, disabled }), className),
1322
- checked,
1323
- defaultChecked,
1324
- disabled,
1325
- ...props,
1326
- children: /* @__PURE__ */ jsxs("div", { className: "-ml-0.5 -mt-0.5 flex size-3 items-center justify-center", children: [
1327
- (checked === "indeterminate" || defaultChecked === "indeterminate") && /* @__PURE__ */ jsx(IconOutlineLine, { className: slots.icon({ disabled }) }),
1328
- (checked === true || defaultChecked === true) && /* @__PURE__ */ jsx(IconOutlineCheck, { className: slots.icon({ disabled }) })
1329
- ] })
1330
- }
1331
- ) });
1332
- });
1333
- Checkbox.displayName = Root$1.displayName;
1334
- var checkbox_default = Checkbox;
1335
- var Group2 = React4__default.forwardRef(({ className, disabled, ...props }, ref) => {
1336
- return /* @__PURE__ */ jsx(
1337
- RadioGroupPrimitive.Root,
1338
- {
1339
- className: cn("grid gap-1", className),
1340
- disabled,
1341
- ...props,
1342
- ref
1343
- }
1344
- );
1345
- });
1346
- Group2.displayName = RadioGroupPrimitive.Root.displayName;
1347
- var Item6 = React4__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1348
- RadioGroupPrimitive.Item,
1349
- {
1350
- ref,
1351
- className: cn(
1352
- "group aspect-square size-[20px] rounded-full border-2 border-neutral-400 bg-white hover:border-green-600 hover:bg-green-100 focus:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100 [&:not(:disabled)]:data-[state=checked]:border-green-600",
1353
- className
1354
- ),
1355
- ...props,
1356
- children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "text-primary flex items-center justify-center group-disabled:text-neutral-300", children: /* @__PURE__ */ jsx(Circle$1, { className: "fill-primary size-[12px] group-disabled:fill-neutral-300" }) })
1357
- }
1358
- ));
1359
- Item6.displayName = RadioGroupPrimitive.Item.displayName;
1360
- var Radio = {
1361
- Group: Group2,
1362
- Item: Item6
1363
- };
1364
- var radio_default = Radio;
1365
- var searchVariants = ce({
1366
- base: "flex items-center justify-center rounded-full",
1367
- variants: {
1368
- size: {
1369
- small: {
1370
- trigger: "my-0.5",
1371
- dropdown: "mt-0.5"
1372
- },
1373
- medium: {
1374
- trigger: "my-1",
1375
- dropdown: "mt-1"
1376
- }
1377
- },
1378
- disabled: {
1379
- true: {
1380
- container: "cursor-not-allowed border-neutral-200",
1381
- input: "bg-white text-neutral-300",
1382
- trigger: "cursor-not-allowed text-neutral-300 [&_path]:fill-neutral-300"
1383
- },
1384
- false: {
1385
- container: "focus-within:border-indigo-600 hover:border-indigo-600"
1386
- }
1387
- }
1388
- },
1389
- slots: {
1390
- input: "data-[scope=false]hover:bg-indigo-100 pointer-events-auto border-0 bg-white pr-5",
1391
- trigger: "br-neutral-100 border-r-1 flex w-fit items-center gap-0.5 border border-y-0 border-l-0 border-neutral-100 bg-white pl-2 pr-1 text-indigo-600 focus-visible:outline-none [&_svg]:fill-indigo-600",
1392
- dropdown: "",
1393
- container: "rounded-m flex border border-neutral-200 "
1394
- },
1395
- defaultVariants: {
1396
- size: "medium"
1397
- }
1398
- });
1399
- var Search = React4.forwardRef(
1400
- ({ className, disabled, invalid, size, value, onChange, scope, ...props }, ref) => {
1401
- const slotsInput = inputVariants();
1402
- const slotsSearch = searchVariants();
1403
- return /* @__PURE__ */ jsxs("div", { className: slotsSearch.container({ disabled }), children: [
1404
- scope && /* @__PURE__ */ jsx(ScopeSelect, { disabled, scope, size }),
1405
- /* @__PURE__ */ jsxs("div", { className: "peer relative", children: [
1406
- /* @__PURE__ */ jsx(
1407
- "input",
1408
- {
1409
- value,
1410
- onChange,
1411
- disabled,
1412
- "data-scoped": !!scope,
1413
- className: cn(
1414
- slotsInput.input({ disabled, invalid, size }),
1415
- slotsSearch.input(),
1416
- className
1417
- ),
1418
- ref,
1419
- ...props
1420
- }
1421
- ),
1422
- /* @__PURE__ */ jsx(
1423
- "div",
1424
- {
1425
- "data-hasValue": !!value,
1426
- className: `data-[hasValue=true]:cursor-pointer ${slotsInput.suffixIcon({ size, disabled })}`,
1427
- children: value ? /* @__PURE__ */ jsx(
1428
- IconOutlineClose,
1429
- {
1430
- onClick: () => onChange && onChange({
1431
- target: { value: "" }
1432
- })
1433
- }
1434
- ) : /* @__PURE__ */ jsx(IconOutlineSearch, {})
1435
- }
1436
- )
1437
- ] })
1438
- ] });
1439
- }
1440
- );
1441
- var ScopeSelect = ({
1442
- scope: { selected, options, onChange },
1443
- disabled,
1444
- size
1445
- }) => {
1446
- const selectedOption = options.find(({ value }) => value === selected);
1447
- const slotsSearch = searchVariants();
1448
- return /* @__PURE__ */ jsxs(Root, { children: [
1449
- /* @__PURE__ */ jsxs(
1450
- Trigger,
1451
- {
1452
- className: slotsSearch.trigger({ size, disabled }),
1453
- disabled,
1454
- children: [
1455
- /* @__PURE__ */ jsx(text_default, { size: "small", weight: "medium", children: selectedOption == null ? void 0 : selectedOption.text }),
1456
- /* @__PURE__ */ jsx(IconOutlineChevronDown, { className: "-mr-0.5 size-3" })
1457
- ]
1458
- }
1459
- ),
1460
- /* @__PURE__ */ jsx(
1461
- DropdownContent,
1462
- {
1463
- selected,
1464
- options,
1465
- onChange,
1466
- className: slotsSearch.dropdown({ size })
1467
- }
1468
- )
1469
- ] });
1470
- };
1471
- Search.displayName = "Search";
1472
- var search_default = Search;
1473
-
1474
- export { accordion_default as Accordion, avatar_default as Avatar, badge_default as Badge, button_default as Button, card_default as Card, checkbox_default as Checkbox, chips_default as Chips, form_item_default as FormItem, indicator_default as Indicator, input_default as Input, input_description_default as InputDescription, label_default as Label, progress_default as Progress, progress_bar_default as ProgressBar, radio_default as Radio, scope_default as Scope, search_default as Search, sheets_default as Sheet, status_default as Status, text_default as Text, textarea_default as Textarea, toggle_default as Toggle };
23
+ export { ho as Accordion, Ee as Avatar, Be as Badge, $e as Button, qe as Card, ar as Checkbox, Jo as Chips, Yo as FormItem, Vo as Indicator, io as Input, Pt as InputDescription, wt as Label, Bo as Progress, Q as ProgressBar, cr as Radio, Xe as Scope, br as Search, po as Sheet, Do as Status, x as Text, no as Textarea, go as Toggle };