@dito-uai/components 5.1.0-alpha.29 → 5.1.0-alpha.31
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/LICENSE +21 -0
- package/README.md +45 -1
- package/dist/global.css +1 -1
- package/dist/index.cjs +41 -38
- package/dist/index.d.cts +267 -3
- package/dist/index.d.ts +267 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -10
- package/dist/ui/alert.d.ts +206 -0
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +15 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +11 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +104 -14
- package/dist/ui/toggle.d.ts.map +1 -1
- package/package.json +86 -14
- package/tailwind.config.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _ = require('react');
|
|
4
4
|
var tailwindVariants = require('tailwind-variants');
|
|
5
5
|
var reactSlot = require('@radix-ui/react-slot');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var clsx = require('clsx');
|
|
8
8
|
var tailwindMerge = require('tailwind-merge');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var N = require('@radix-ui/react-toggle-group');
|
|
10
|
+
var Ht = require('@radix-ui/react-progress');
|
|
11
|
+
var Z = require('@radix-ui/react-toggle');
|
|
12
|
+
var I = require('@radix-ui/react-collapsible');
|
|
12
13
|
var icons = require('@dito-uai/icons');
|
|
13
14
|
var u = require('@radix-ui/react-tabs');
|
|
14
15
|
var reactToastify = require('react-toastify');
|
|
@@ -37,46 +38,48 @@ function _interopNamespace(e) {
|
|
|
37
38
|
return Object.freeze(n);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
var E__namespace = /*#__PURE__*/_interopNamespace(E);
|
|
41
41
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var N__namespace = /*#__PURE__*/_interopNamespace(N);
|
|
43
|
+
var Ht__namespace = /*#__PURE__*/_interopNamespace(Ht);
|
|
44
|
+
var Z__namespace = /*#__PURE__*/_interopNamespace(Z);
|
|
45
|
+
var I__namespace = /*#__PURE__*/_interopNamespace(I);
|
|
44
46
|
var u__namespace = /*#__PURE__*/_interopNamespace(u);
|
|
45
47
|
var x__namespace = /*#__PURE__*/_interopNamespace(x);
|
|
46
48
|
var P__namespace = /*#__PURE__*/_interopNamespace(P);
|
|
47
49
|
|
|
48
|
-
var Qt=tailwindVariants.tv({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"}}),ot=E__namespace.default.forwardRef(({className:e,color:t,type:o,size:i,children:r,asChild:a,...s},l)=>jsxRuntime.jsx(a?reactSlot.Slot:"div",{className:Qt({color:t,type:o,size:i,className:e}),ref:l,...s,children:r}));ot.displayName="Avatar";var Xt=ot;function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var ie=tailwindVariants.tv({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"}}),it=({className:e,size:t,weight:o,children:i,...r})=>jsxRuntime.jsx("span",{className:n(ie({size:t,weight:o,className:e})),...r,children:i});it.displayName="Text";var m=it;var le=tailwindVariants.tv({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"}}),at=E__namespace.default.forwardRef(({className:e,status:t,size:o,type:i,contrast:r,children:a,asChild:s,...l},p)=>jsxRuntime.jsx(s?reactSlot.Slot:"span",{className:le({status:t,size:o,type:i,contrast:r,className:e}),ref:p,...l,children:jsxRuntime.jsx(m,{size:"overline",weight:"semibold",children:a})}));at.displayName="Badge";var pe=at;var fe=tailwindVariants.tv({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"}}),st=E__namespace.default.forwardRef(({className:e,appearance:t,size:o,disabled:i,children:r,asChild:a,icon:s,...l},p)=>{let d=a?reactSlot.Slot:"button",f=fe({appearance:t,size:o,disabled:i,className:e});return jsxRuntime.jsxs(d,{type:"button","data-has-icon":!!s,"data-has-text":!!r,className:f.container({className:e}),disabled:i,ref:p,...l,children:[s&&jsxRuntime.jsx(s,{className:f.icon()}),r&&jsxRuntime.jsx(m,{size:"base",weight:"medium",className:f.text({className:e}),children:r})]})});st.displayName="Button";var ue=st;var xe=tailwindVariants.tv({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"}}),lt=({className:e,variant:t,direction:o,padding:i,children:r,...a})=>jsxRuntime.jsx("div",{className:n(xe({variant:t,direction:o,padding:i,className:e})),...a,children:r});lt.displayName="Card";var ve=lt;var Te=tailwindVariants.tv({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"}}),pt=E__namespace.default.createContext({variant:"default",size:"default",disabled:!1}),ct=E__namespace.default.forwardRef(({className:e,variant:t,children:o,size:i,disabled:r,...a},s)=>jsxRuntime.jsx(___namespace.Root,{ref:s,className:n("flex items-center justify-center gap-0",e),...a,type:"single",children:jsxRuntime.jsx(pt.Provider,{value:{variant:t,size:i,disabled:r},children:o})}));ct.displayName="ScopeGroup";var mt=E__namespace.default.forwardRef(({className:e,variant:t,size:o,icon:i,text:r,disabled:a,...s},l)=>{let p=E__namespace.default.useContext(pt),d=Te({variant:p.variant||t,size:p.size||o,disabled:p.disabled||a});return jsxRuntime.jsxs(___namespace.Item,{ref:l,className:n(d.container(),e),disabled:a,...s,children:[i&&jsxRuntime.jsx(i,{className:d.icon()}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:d.text(),children:r})]})});mt.displayName="ScopeItem";var ye={Group:ct,Item:mt},Re=ye;var Ie=({value:e,className:t,barBg:o,progressBg:i})=>{let r=`-translate-x-[(-${100-(e||0)}%])`;return jsxRuntime.jsx(Nt.Root,{className:n(t,o,"relative w-full overflow-hidden rounded-full "),value:e,children:jsxRuntime.jsx(Nt.Indicator,{className:n(t,"w-full flex-1 rounded-full",r,i)})})},H=Ie;var M=tailwindVariants.tv({slots:{wrapper:["grid items-center gap-1","rounded-m border border-neutral-200 bg-white","focus-within:border-indigo-600"].join(" "),prefix:["h-full flex items-center justify-center","text-neutral-500 [&_svg]:block [&_path]:fill-current"].join(" "),input:["w-full bg-transparent outline-none","border-0 focus:outline-none focus:ring-0","text-base text-indigo-600 placeholder:font-light placeholder:text-neutral-400","disabled:cursor-not-allowed"].join(" "),suffix:["h-full flex items-center justify-center","text-neutral-500 [&_svg]:block [&_path]:fill-current"].join(" ")},variants:{disabled:{true:{wrapper:"cursor-not-allowed bg-neutral-100",input:"text-neutral-400 placeholder:text-neutral-400",prefix:"text-neutral-300",suffix:"text-neutral-300"}},invalid:{true:{wrapper:"border-notification-critical-600 focus-within:border-notification-critical-600"}},size:{small:{wrapper:"min-h-4 pl-2",input:"text-sm",prefix:"text-sm",suffix:"text-sm"},medium:{wrapper:"min-h-5 pl-2",input:"text-base",prefix:"text-base",suffix:"text-base"}},withAffix:{false:{wrapper:"grid-cols-1"},true:{wrapper:"grid-cols-[auto_1fr_auto]"}}},defaultVariants:{size:"medium",withAffix:!1}}),ft=E__namespace.default.forwardRef(({className:e,prefix:t,suffix:o,disabled:i,invalid:r,size:a,...s},l)=>{let p=!!t||!!o,d=M();return jsxRuntime.jsxs("div",{className:n(d.wrapper({disabled:i,invalid:r,size:a,withAffix:p}),e),children:[t&&jsxRuntime.jsx("div",{className:d.prefix({disabled:i,invalid:r,size:a}),children:t}),jsxRuntime.jsx("input",{disabled:i,className:n(d.input({disabled:i,invalid:r,size:a})),ref:l,...s}),o&&jsxRuntime.jsx("div",{className:d.suffix({disabled:i,invalid:r,size:a}),children:o})]})});ft.displayName="Input";var Le=ft;var gt=E__namespace.forwardRef(({className:e,disabled:t,invalid:o,...i},r)=>{let{input:a}=M();return jsxRuntime.jsx("textarea",{className:n("min-h-9",e,a({disabled:t,invalid:o})),ref:r,...i})});gt.displayName="Textarea";var Se=gt;var bt=({title:e,children:t,isVisible:o,CloseIcon:i,maxWidth:r,onClose:a})=>{let[s,l]=E.useState(o);E.useEffect(()=>l(o),[o]);let p=d=>{l(!1),a&&a(d);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:n("fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",s?void 0:"hidden")}),jsxRuntime.jsxs("div",{className:n("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",r?`max-w=[${r}]`:"max-w-3/4",s?void 0:"translate-x-full"),tabIndex:-1,"aria-labelledby":"drawer-label",children:[jsxRuntime.jsxs("div",{id:"drawer-label",className:n(" 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:[jsxRuntime.jsx(m,{size:"H3",weight:"semibold",className:"text-navy-600",children:e}),jsxRuntime.jsxs("button",{type:"button","data-drawer-hide":"drawer-example","aria-controls":"drawer-example",className:n("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:()=>p,children:[i?jsxRuntime.jsx(i,{}):jsxRuntime.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.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"})}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close menu"})]})]}),jsxRuntime.jsx("div",{className:n(" relative h-full p-2"),children:t})]})]})};bt.displayName="Sheet";var ze=bt;var ke=tailwindVariants.tv({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"}}}),xt=E.forwardRef(({className:e,name:t,disabled:o,children:i,...r},a)=>jsxRuntime.jsxs("label",{className:n("inline-flex cursor-pointer items-center",e),children:[jsxRuntime.jsx("input",{...r,ref:a,type:"checkbox",className:n("peer sr-only"),name:t,disabled:o}),jsxRuntime.jsx("span",{className:ke({disabled:o})}),jsxRuntime.jsx(m,{children:i})]}));xt.displayName="Toggle";var Be=xt;var $e=tailwindVariants.tv({slots:{item:"mb-1 rounded-lg border-0 last:mb-0",trigger:"[&[data-state=open]]:rounded-t-m [&[data-state=open]]:bg-secondary-indigo-100 [&[data-state=closed]]:rounded-m flex h-7 w-full items-center border-0 p-1 text-left 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]]:hover:bg-neutral-100",triggerIcon:"size-3 fill-neutral-400 transition-transform duration-200 [&_path]:fill-neutral-400",content:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down rounded-b-m overflow-hidden border transition-all"}}),{trigger:Ze,item:qe,triggerIcon:Ke,content:je}=$e(),Je=E__namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(C__namespace.Root,{ref:o,className:qe({className:e}),...t})),Qe=E__namespace.default.forwardRef(({className:e,triggerClassName:t,children:o,...i},r)=>jsxRuntime.jsxs(C__namespace.CollapsibleTrigger,{ref:r,className:Ze({className:t}),...i,children:[jsxRuntime.jsx("div",{className:n("w-full",e),children:o}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:Ke()})]})),Xe=E__namespace.default.forwardRef(({className:e,children:t,...o},i)=>jsxRuntime.jsx(C__namespace.CollapsibleContent,{ref:i,className:je(),...o,children:jsxRuntime.jsx("div",{className:n("px-1 py-2",e),children:t})})),Ye={Item:Je,Trigger:Qe,Content:Xe},to=Ye;var ro=tailwindVariants.tv({base:"flex flex-row"}),ao=tailwindVariants.tv({base:["inline-flex h-5 items-center justify-center gap-1 whitespace-nowrap p-1 px-2"],variants:{active:{true:"text-green-600",false:"text-neutral-500"},disabled:{true:"cursor-not-allowed text-neutral-300",false:""},iconColor:{active:"[&_path]:fill-green-600 [&_svg]:fill-green-600",inactive:"[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500",disabled:"[&_path]:fill-neutral-300 [&_svg]:fill-neutral-300"}},defaultVariants:{disabled:!1,iconPosition:"none"}}),no=tailwindVariants.tv({base:"absolute bottom-0 left-0 w-full",variants:{active:{true:"rounded-t-x border-t-4 border-green-600",false:"border-b-2 border-neutral-100"}}}),so=u__namespace.Root,vt=E__namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(u__namespace.List,{ref:o,className:n(ro(),e),...t}));vt.displayName=u__namespace.List.displayName;var ht=E__namespace.default.forwardRef(({className:e,children:t,iconPrefix:o,suffix:i,disabled:r,active:a,...s},l)=>{let p=E.useMemo(()=>r?"disabled":a?"active":"inactive",[r,a]);return jsxRuntime.jsxs("div",{className:n("relative flex flex-col",r?"":"hover:bg-green-100"),children:[jsxRuntime.jsxs(u__namespace.Trigger,{ref:l,className:n(ao({iconColor:p,disabled:r,active:a}),e),disabled:r,...s,children:[o&&jsxRuntime.jsx("span",{children:o}),t,i&&jsxRuntime.jsx("span",{children:i})]}),jsxRuntime.jsx("span",{className:n(no({active:a}))})]})});ht.displayName=u__namespace.Trigger.displayName;var Pt=E__namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(u__namespace.Content,{ref:o,className:e,...t}));Pt.displayName=u__namespace.Content.displayName;function lo(e,t){let o=e!==void 0,[i,r]=E.useState(t);return [o?e:i,l=>{o||r(l);}]}var po=({tabs:e,activeKey:t,defaultActiveKey:o,className:i,onValueChange:r,onTabClick:a})=>{var d;let[s,l]=lo(t,o??((d=e[0])==null?void 0:d.value));return jsxRuntime.jsxs(so,{value:t??s,onValueChange:f=>{if(r)return r(f);l(f);},onClick:f=>a&&a(f,s),className:n("flex flex-col gap-2",i),children:[jsxRuntime.jsx(vt,{children:e.map(({value:f,label:v,iconPrefix:y,suffix:$t,disabled:Zt,className:qt})=>jsxRuntime.jsx(ht,{value:f,iconPrefix:y,suffix:$t,disabled:Zt,active:f===s,className:qt,children:v&&jsxRuntime.jsx(m,{size:"base",weight:"medium",children:v})},f))}),e.map(({value:f,content:v,className:y})=>jsxRuntime.jsx(Pt,{value:f,className:y,children:v},f))]})},co=po;var Po=tailwindVariants.tv({slots:{container:"rounded-m flex min-h-5 w-full items-center justify-start gap-1 px-2 py-2.5 text-base font-medium",icon:"size-[24px] cursor-pointer",message:"flex-1 break-words"},variants:{type:{success:{container:"bg-notification-success-100 text-notification-success-600",icon:"fill-notification-success-600 [&_path]:fill-notification-success-600"},warning:{container:"bg-notification-warning-100 text-notification-warning-900",icon:"fill-notification-warning-900 [&_path]:fill-notification-warning-900"},error:{container:"bg-notification-critical-100 text-notification-critical-600",icon:"fill-notification-critical-600 [&_path]:fill-notification-critical-600"},info:{container:"bg-notification-information-100 text-notification-information-600",icon:"fill-notification-information-600 [&_path]:fill-notification-information-600"}},closable:{true:{message:"w-[calc(100%_-_64px)]"},false:{message:"w-[calc(100%_-_36px)]"}}}}),To={success:icons.IconOutlineCheckCircle,warning:icons.IconOutlineWarning,error:icons.IconOutlineErrorHexagon,info:icons.IconOutlineInfo},yo=E__namespace.default.forwardRef(({type:e,message:t,closable:o,...i},r)=>{let[a,s]=E.useState(!0),l=Po(),p=e?To[e]:null;return a&&jsxRuntime.jsxs("div",{className:l.container({type:e}),ref:r,...i,children:[p&&jsxRuntime.jsx(p,{className:l.icon({type:e})}),jsxRuntime.jsx("div",{className:l.message({closable:o}),children:t}),o&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>s(!1),className:l.icon({type:e})})]})}),Ro=yo;var Tt=(a=>(a.SUCCESS="success",a.INFO="info",a.WARNING="warning",a.DANGER="error",a.LOADING="loading",a))(Tt||{}),So=tailwindVariants.tv({base:"!rounded-m !flex !min-h-5 !w-fit !items-center !gap-1 !p-0 !font-sans !text-base !font-medium",variants:{type:{success:"!text-notification-success-100 !bg-notification-success-600 ![&_svg]:fill-notification-success-100 ![&_path]:fill-notification-success-100",error:"!bg-notification-critical-600 !text-notification-critical-100 ![&_svg]:fill-notification-critical-100 ![&_path]:fill-notification-critical-100",warning:"!bg-notification-warning-600 !text-notification-warning-900 ![&_svg]:fill-notification-warning-900 [&_path]:fill-notification-warning-900",info:"!bg-notification-information-600 !text-notification-information-100 ![&_svg]:fill-notification-information-100 ![&_path]:fill-notification-information-100",loading:"!bg-notification-information-600 !text-notification-information-100 ![&_svg]:fill-notification-information-100 ![&_path]:fill-notification-information-100"}}}),_o={success:jsxRuntime.jsx(icons.IconOutlineCheckCircle,{}),warning:jsxRuntime.jsx(icons.IconOutlineWarning,{}),error:jsxRuntime.jsx(icons.IconOutlineErrorHexagon,{}),info:jsxRuntime.jsx(icons.IconOutlineInfo,{})},N={open:({type:e="info",text:t,closable:o=!1,duration:i=3e3,containerId:r,onClose:a,onClick:s,...l})=>{let p={autoClose:i,closeButton:o,className:So({type:e}),bodyClassName:"!flex !flex-row !items-center !gap-1 !px-2 !py-1 !m-0",icon:e!=="loading"?_o[e]:void 0,onClose:a,onClick:s,containerId:r,closeOnClick:!1,...l};switch(e){case"success":return reactToastify.toast.success(t,p);case"error":return reactToastify.toast.error(t,p);case"warning":return reactToastify.toast.warning(t,p);case"loading":return reactToastify.toast.loading(t,p);case"info":default:return reactToastify.toast.info(t,p)}}},Ho={...N,success:(e,t)=>N.open({type:"success",text:e,duration:t}),error:(e,t)=>N.open({type:"error",text:e,duration:t}),info:(e,t)=>N.open({type:"info",text:e,duration:t}),warning:(e,t)=>N.open({type:"warning",text:e,duration:t}),loading:(e,t)=>N.open({type:"loading",text:e,duration:t}),dismiss:reactToastify.toast.dismiss},Ao=e=>jsxRuntime.jsx(reactToastify.ToastContainer,{className:"mr-[100px] flex !w-fit flex-col items-end",position:"bottom-right",hideProgressBar:!0,enableMultiContainer:!0,closeButton:({closeToast:t})=>jsxRuntime.jsx("button",{type:"button",className:"ml-auto flex size-6 items-center justify-center hover:opacity-70",onClick:t,children:jsxRuntime.jsx(icons.IconOutlineClose,{className:"size-[24px]"})}),...e}),zo=Ho;var Wo=tailwindVariants.tv({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"}}}),Fo=E__namespace.default.forwardRef(({className:e,status:t,value:o,icon:i,usePercentageSymbol:r=!0,...a},s)=>{let l={positive:jsxRuntime.jsx(icons.IconOutlineArrowUp,{}),negative:jsxRuntime.jsx(icons.IconOutlineArrowDown,{}),neutral:jsxRuntime.jsx(icons.IconOutlineMinus,{})};return jsxRuntime.jsxs("div",{className:Wo({status:t,className:e}),ref:s,...a,children:[i&&l[i],jsxRuntime.jsxs(m,{size:"overline",weight:"semibold",children:[o,r?"%":null]})]})}),Uo=Fo;var z=({options:e,selected:t,onChange:o,className:i})=>jsxRuntime.jsx(reactDropdownMenu.Portal,{children:jsxRuntime.jsx(reactDropdownMenu.Content,{align:"start",className:n("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",i),children:e.map(r=>jsxRuntime.jsx(reactDropdownMenu.Item,{"data-selected":t===r.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
50
|
+
var ne=tailwindVariants.tv({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"}}),st=___namespace.default.forwardRef(({className:e,color:t,type:o,size:r,children:i,asChild:a,...s},l)=>jsxRuntime.jsx(a?reactSlot.Slot:"div",{className:ne({color:t,type:o,size:r,className:e}),ref:l,...s,children:i}));st.displayName="Avatar";var se=st;function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var fe=tailwindVariants.tv({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"}}),lt=({className:e,size:t,weight:o,children:r,...i})=>jsxRuntime.jsx("span",{className:n(fe({size:t,weight:o,className:e})),...i,children:r});lt.displayName="Text";var m=lt;var xe=tailwindVariants.tv({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"}}),ct=___namespace.default.forwardRef(({className:e,status:t,size:o,type:r,contrast:i,children:a,asChild:s,...l},p)=>jsxRuntime.jsx(s?reactSlot.Slot:"span",{className:xe({status:t,size:o,type:r,contrast:i,className:e}),ref:p,...l,children:jsxRuntime.jsx(m,{size:"overline",weight:"semibold",children:a})}));ct.displayName="Badge";var ve=ct;var Re=tailwindVariants.tv({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"}}),ft=___namespace.default.forwardRef(({className:e,appearance:t,size:o,disabled:r,children:i,asChild:a,icon:s,...l},p)=>{let f=a?reactSlot.Slot:"button",d=Re({appearance:t,size:o,disabled:r,className:e});return jsxRuntime.jsxs(f,{type:"button","data-has-icon":!!s,"data-has-text":!!i,className:d.container({className:e}),disabled:r,ref:p,...l,children:[s&&jsxRuntime.jsx(s,{className:d.icon()}),i&&jsxRuntime.jsx(m,{size:"base",weight:"medium",className:d.text({className:e}),children:i})]})});ft.displayName="Button";var Te=ft;var Ne=tailwindVariants.tv({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"}}),dt=({className:e,variant:t,direction:o,padding:r,children:i,...a})=>jsxRuntime.jsx("div",{className:n(Ne({variant:t,direction:o,padding:r,className:e})),...a,children:i});dt.displayName="Card";var Ie=dt;var Le=tailwindVariants.tv({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"}}),ut=___namespace.default.createContext({variant:"default",size:"default",disabled:!1}),gt=___namespace.default.forwardRef(({className:e,variant:t,children:o,size:r,disabled:i,...a},s)=>jsxRuntime.jsx(N__namespace.Root,{ref:s,className:n("flex items-center justify-center gap-0",e),...a,type:"single",children:jsxRuntime.jsx(ut.Provider,{value:{variant:t,size:r,disabled:i},children:o})}));gt.displayName="ScopeGroup";var bt=___namespace.default.forwardRef(({className:e,variant:t,size:o,icon:r,text:i,disabled:a,...s},l)=>{let p=___namespace.default.useContext(ut),f=Le({variant:p.variant||t,size:p.size||o,disabled:p.disabled||a});return jsxRuntime.jsxs(N__namespace.Item,{ref:l,className:n(f.container(),e),disabled:a,...s,children:[r&&jsxRuntime.jsx(r,{className:f.icon()}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:f.text(),children:i})]})});bt.displayName="ScopeItem";var Ee={Group:gt,Item:bt},Se=Ee;var ze=({value:e,className:t,barBg:o,progressBg:r})=>{let i=`-translate-x-[(-${100-(e||0)}%])`;return jsxRuntime.jsx(Ht.Root,{className:n(t,o,"relative w-full overflow-hidden rounded-full "),value:e,children:jsxRuntime.jsx(Ht.Indicator,{className:n(t,"w-full flex-1 rounded-full",i,r)})})},z=ze;var L=tailwindVariants.tv({slots:{wrapper:["grid items-center gap-1","rounded-m border border-neutral-200 bg-white","focus-within:border-indigo-600"].join(" "),prefix:["h-full flex items-center justify-center","text-neutral-500 [&_svg]:block [&_path]:fill-current"].join(" "),input:["w-full bg-transparent outline-none","border-0 focus:outline-none focus:ring-0","text-base text-indigo-600 placeholder:font-light placeholder:text-neutral-400","disabled:cursor-not-allowed"].join(" "),suffix:["h-full flex items-center justify-center","text-neutral-500 [&_svg]:block [&_path]:fill-current"].join(" ")},variants:{disabled:{true:{wrapper:"cursor-not-allowed bg-neutral-100",input:"text-neutral-400 placeholder:text-neutral-400",prefix:"text-neutral-300",suffix:"text-neutral-300"}},invalid:{true:{wrapper:"border-notification-critical-600 focus-within:border-notification-critical-600"}},size:{small:{wrapper:"min-h-4 pl-2",input:"text-sm",prefix:"text-sm",suffix:"text-sm"},medium:{wrapper:"min-h-5 pl-2",input:"text-base",prefix:"text-base",suffix:"text-base"}},withAffix:{false:{wrapper:"grid-cols-1"},true:{wrapper:"grid-cols-[auto_1fr_auto]"}}},defaultVariants:{size:"medium",withAffix:!1}}),vt=___namespace.default.forwardRef(({className:e,prefix:t,suffix:o,disabled:r,invalid:i,size:a,...s},l)=>{let p=!!t||!!o,f=L();return jsxRuntime.jsxs("div",{className:n(f.wrapper({disabled:r,invalid:i,size:a,withAffix:p}),e),children:[t&&jsxRuntime.jsx("div",{className:f.prefix({disabled:r,invalid:i,size:a}),children:t}),jsxRuntime.jsx("input",{disabled:r,className:n(f.input({disabled:r,invalid:i,size:a})),ref:l,...s}),o&&jsxRuntime.jsx("div",{className:f.suffix({disabled:r,invalid:i,size:a}),children:o})]})});vt.displayName="Input";var Oe=vt;var Pt=___namespace.forwardRef(({className:e,disabled:t,invalid:o,...r},i)=>{let{input:a}=L();return jsxRuntime.jsx("textarea",{className:n("min-h-9",e,a({disabled:t,invalid:o})),ref:i,...r})});Pt.displayName="Textarea";var We=Pt;var yt=({title:e,children:t,isVisible:o,CloseIcon:r,maxWidth:i,onClose:a})=>{let[s,l]=_.useState(o);_.useEffect(()=>l(o),[o]);let p=f=>{l(!1),a&&a(f);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:n("fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",s?void 0:"hidden")}),jsxRuntime.jsxs("div",{className:n("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",s?void 0:"translate-x-full"),tabIndex:-1,"aria-labelledby":"drawer-label",children:[jsxRuntime.jsxs("div",{id:"drawer-label",className:n(" 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:[jsxRuntime.jsx(m,{size:"H3",weight:"semibold",className:"text-navy-600",children:e}),jsxRuntime.jsxs("button",{type:"button","data-drawer-hide":"drawer-example","aria-controls":"drawer-example",className:n("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:()=>p,children:[r?jsxRuntime.jsx(r,{}):jsxRuntime.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.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"})}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close menu"})]})]}),jsxRuntime.jsx("div",{className:n(" relative h-full p-2"),children:t})]})]})};yt.displayName="Sheet";var $e=yt;var je=tailwindVariants.tv({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"}}}),Rt=_.forwardRef(({className:e,name:t,disabled:o,children:r,...i},a)=>jsxRuntime.jsxs("label",{className:n("inline-flex cursor-pointer items-center",e),children:[jsxRuntime.jsx("input",{...i,ref:a,type:"checkbox",className:n("peer sr-only"),name:t,disabled:o}),jsxRuntime.jsx("span",{className:je({disabled:o})}),jsxRuntime.jsx(m,{children:r})]}));Rt.displayName="Switch";var Je=Rt;var q=tailwindVariants.tv({base:"ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",variants:{variant:{default:"bg-transparent text-neutral-400 hover:bg-indigo-100 hover:text-indigo-600"},size:{default:"size-[32px]"}},defaultVariants:{variant:"default",size:"default"}}),Ye=___namespace.forwardRef(({className:e,variant:t,size:o,...r},i)=>jsxRuntime.jsx(Z__namespace.Root,{ref:i,className:n(q({variant:t,size:o,className:e})),...r}));Ye.displayName=Z__namespace.Root.displayName;var wt=___namespace.createContext({size:"default",variant:"default"}),Ct=___namespace.forwardRef(({className:e,variant:t,size:o,children:r,...i},a)=>jsxRuntime.jsx(N__namespace.Root,{ref:a,className:n("flex items-center justify-center gap-1",e),...i,children:jsxRuntime.jsx(wt.Provider,{value:{variant:t,size:o},children:r})}));Ct.displayName=N__namespace.Root.displayName;var Nt=___namespace.forwardRef(({className:e,children:t,variant:o,size:r,...i},a)=>{let s=___namespace.useContext(wt);return jsxRuntime.jsx(N__namespace.Item,{ref:a,className:n(q({variant:s.variant||o,size:s.size||r}),e),...i,children:t})});Nt.displayName=N__namespace.Item.displayName;var eo={Group:Ct,Item:Nt};var io=tailwindVariants.tv({slots:{item:"mb-1 rounded-lg border-0 last:mb-0",trigger:"[&[data-state=open]]:rounded-t-m [&[data-state=open]]:bg-secondary-indigo-100 [&[data-state=closed]]:rounded-m flex h-7 w-full items-center border-0 p-1 text-left 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]]:hover:bg-neutral-100",triggerIcon:"size-3 fill-neutral-400 transition-transform duration-200 [&_path]:fill-neutral-400",content:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down rounded-b-m overflow-hidden border transition-all"}}),{trigger:ao,item:no,triggerIcon:so,content:lo}=io(),po=___namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(I__namespace.Root,{ref:o,className:no({className:e}),...t})),co=___namespace.default.forwardRef(({className:e,triggerClassName:t,children:o,...r},i)=>jsxRuntime.jsxs(I__namespace.CollapsibleTrigger,{ref:i,className:ao({className:t}),...r,children:[jsxRuntime.jsx("div",{className:n("w-full",e),children:o}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:so()})]})),mo=___namespace.default.forwardRef(({className:e,children:t,...o},r)=>jsxRuntime.jsx(I__namespace.CollapsibleContent,{ref:r,className:lo(),...o,children:jsxRuntime.jsx("div",{className:n("px-1 py-2",e),children:t})})),fo={Item:po,Trigger:co,Content:mo},uo=fo;var vo=tailwindVariants.tv({base:"flex flex-row"}),ho=tailwindVariants.tv({base:["inline-flex h-5 items-center justify-center gap-1 whitespace-nowrap p-1 px-2"],variants:{active:{true:"text-green-600",false:"text-neutral-500"},disabled:{true:"cursor-not-allowed text-neutral-300",false:""},iconColor:{active:"[&_path]:fill-green-600 [&_svg]:fill-green-600",inactive:"[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500",disabled:"[&_path]:fill-neutral-300 [&_svg]:fill-neutral-300"}},defaultVariants:{disabled:!1,iconPosition:"none"}}),Po=tailwindVariants.tv({base:"absolute bottom-0 left-0 w-full",variants:{active:{true:"rounded-t-x border-t-4 border-green-600",false:"border-b-2 border-neutral-100"}}}),yo=u__namespace.Root,It=___namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(u__namespace.List,{ref:o,className:n(vo(),e),...t}));It.displayName=u__namespace.List.displayName;var Vt=___namespace.default.forwardRef(({className:e,children:t,iconPrefix:o,suffix:r,disabled:i,active:a,...s},l)=>{let p=_.useMemo(()=>i?"disabled":a?"active":"inactive",[i,a]);return jsxRuntime.jsxs("div",{className:n("relative flex flex-col",i?"":"hover:bg-green-100"),children:[jsxRuntime.jsxs(u__namespace.Trigger,{ref:l,className:n(ho({iconColor:p,disabled:i,active:a}),e),disabled:i,...s,children:[o&&jsxRuntime.jsx("span",{children:o}),t,r&&jsxRuntime.jsx("span",{children:r})]}),jsxRuntime.jsx("span",{className:n(Po({active:a}))})]})});Vt.displayName=u__namespace.Trigger.displayName;var Mt=___namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(u__namespace.Content,{ref:o,className:e,...t}));Mt.displayName=u__namespace.Content.displayName;function Ro(e,t){let o=e!==void 0,[r,i]=_.useState(t);return [o?e:r,l=>{o||i(l);}]}var To=({tabs:e,activeKey:t,defaultActiveKey:o,className:r,onValueChange:i,onTabClick:a})=>{var f;let[s,l]=Ro(t,o??((f=e[0])==null?void 0:f.value));return jsxRuntime.jsxs(yo,{value:t??s,onValueChange:d=>{if(i)return i(d);l(d);},onClick:d=>a&&a(d,s),className:n("flex flex-col gap-2",r),children:[jsxRuntime.jsx(It,{children:e.map(({value:d,label:v,iconPrefix:R,suffix:te,disabled:ee,className:oe})=>jsxRuntime.jsx(Vt,{value:d,iconPrefix:R,suffix:te,disabled:ee,active:d===s,className:oe,children:v&&jsxRuntime.jsx(m,{size:"base",weight:"medium",children:v})},d))}),e.map(({value:d,content:v,className:R})=>jsxRuntime.jsx(Mt,{value:d,className:R,children:v},d))]})},wo=To;var _o=tailwindVariants.tv({slots:{container:"rounded-m flex min-h-5 w-full items-center justify-start gap-1 px-2 py-2.5 text-base font-medium",icon:"size-[24px] cursor-pointer",message:"flex-1 break-words"},variants:{type:{success:{container:"bg-notification-success-100 text-notification-success-600",icon:"fill-notification-success-600 [&_path]:fill-notification-success-600"},warning:{container:"bg-notification-warning-100 text-notification-warning-900",icon:"fill-notification-warning-900 [&_path]:fill-notification-warning-900"},error:{container:"bg-notification-critical-100 text-notification-critical-600",icon:"fill-notification-critical-600 [&_path]:fill-notification-critical-600"},info:{container:"bg-notification-information-100 text-notification-information-600",icon:"fill-notification-information-600 [&_path]:fill-notification-information-600"}},closable:{true:{message:"w-[calc(100%_-_64px)]"},false:{message:"w-[calc(100%_-_36px)]"}}}}),Go={success:icons.IconOutlineCheckCircle,warning:icons.IconOutlineWarning,error:icons.IconOutlineErrorHexagon,info:icons.IconOutlineInfo},Ho=___namespace.default.forwardRef(({type:e,message:t,closable:o,...r},i)=>{let[a,s]=_.useState(!0),l=_o(),p=e?Go[e]:null;return a&&jsxRuntime.jsxs("div",{className:l.container({type:e}),ref:i,...r,children:[p&&jsxRuntime.jsx(p,{className:l.icon({type:e})}),jsxRuntime.jsx("div",{className:l.message({closable:o}),children:t}),o&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>s(!1),className:l.icon({type:e})})]})}),zo=Ho;var Lt=(a=>(a.SUCCESS="success",a.INFO="info",a.WARNING="warning",a.DANGER="error",a.LOADING="loading",a))(Lt||{}),$o=tailwindVariants.tv({base:"!rounded-m !flex !min-h-5 !w-fit !items-center !gap-1 !p-0 !font-sans !text-base !font-medium",variants:{type:{success:"!text-notification-success-100 !bg-notification-success-600 ![&_svg]:fill-notification-success-100 ![&_path]:fill-notification-success-100",error:"!bg-notification-critical-600 !text-notification-critical-100 ![&_svg]:fill-notification-critical-100 ![&_path]:fill-notification-critical-100",warning:"!bg-notification-warning-600 !text-notification-warning-900 ![&_svg]:fill-notification-warning-900 [&_path]:fill-notification-warning-900",info:"!bg-notification-information-600 !text-notification-information-100 ![&_svg]:fill-notification-information-100 ![&_path]:fill-notification-information-100",loading:"!bg-notification-information-600 !text-notification-information-100 ![&_svg]:fill-notification-information-100 ![&_path]:fill-notification-information-100"}}}),Zo={success:jsxRuntime.jsx(icons.IconOutlineCheckCircle,{}),warning:jsxRuntime.jsx(icons.IconOutlineWarning,{}),error:jsxRuntime.jsx(icons.IconOutlineErrorHexagon,{}),info:jsxRuntime.jsx(icons.IconOutlineInfo,{})},V={open:({type:e="info",text:t,closable:o=!1,duration:r=3e3,containerId:i,onClose:a,onClick:s,...l})=>{let p={autoClose:r,closeButton:o,className:$o({type:e}),bodyClassName:"!flex !flex-row !items-center !gap-1 !px-2 !py-1 !m-0",icon:e!=="loading"?Zo[e]:void 0,onClose:a,onClick:s,containerId:i,closeOnClick:!1,...l};switch(e){case"success":return reactToastify.toast.success(t,p);case"error":return reactToastify.toast.error(t,p);case"warning":return reactToastify.toast.warning(t,p);case"loading":return reactToastify.toast.loading(t,p);case"info":default:return reactToastify.toast.info(t,p)}}},qo={...V,success:(e,t)=>V.open({type:"success",text:e,duration:t}),error:(e,t)=>V.open({type:"error",text:e,duration:t}),info:(e,t)=>V.open({type:"info",text:e,duration:t}),warning:(e,t)=>V.open({type:"warning",text:e,duration:t}),loading:(e,t)=>V.open({type:"loading",text:e,duration:t}),dismiss:reactToastify.toast.dismiss},Ko=e=>jsxRuntime.jsx(reactToastify.ToastContainer,{className:"mr-[100px] flex !w-fit flex-col items-end",position:"bottom-right",hideProgressBar:!0,enableMultiContainer:!0,closeButton:({closeToast:t})=>jsxRuntime.jsx("button",{type:"button",className:"ml-auto flex size-6 items-center justify-center hover:opacity-70",onClick:t,children:jsxRuntime.jsx(icons.IconOutlineClose,{className:"size-[24px]"})}),...e}),jo=qo;var er=tailwindVariants.tv({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"}}}),or=___namespace.default.forwardRef(({className:e,status:t,value:o,icon:r,usePercentageSymbol:i=!0,...a},s)=>{let l={positive:jsxRuntime.jsx(icons.IconOutlineArrowUp,{}),negative:jsxRuntime.jsx(icons.IconOutlineArrowDown,{}),neutral:jsxRuntime.jsx(icons.IconOutlineMinus,{})};return jsxRuntime.jsxs("div",{className:er({status:t,className:e}),ref:s,...a,children:[r&&l[r],jsxRuntime.jsxs(m,{size:"overline",weight:"semibold",children:[o,i?"%":null]})]})}),rr=or;var D=({options:e,selected:t,onChange:o,className:r})=>jsxRuntime.jsx(reactDropdownMenu.Portal,{children:jsxRuntime.jsx(reactDropdownMenu.Content,{align:"start",className:n("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:e.map(i=>jsxRuntime.jsx(reactDropdownMenu.Item,{"data-selected":t===i.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
49
51
|
px-2 py-1 text-base font-normal text-neutral-500 outline-none
|
|
50
52
|
transition-colors focus:bg-indigo-100 focus:text-indigo-600
|
|
51
|
-
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>o&&o(
|
|
52
|
-
p-2 data-[bg=white]:border`),ref:a,...
|
|
53
|
+
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>o&&o(i.value),children:i.text}))})});var _t=tailwindVariants.tv({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"]}}}),Gt=({text:e})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-0.5",children:[jsxRuntime.jsx("span",{className:"w-0.75 h-0.75 rounded-full bg-neutral-500"}),jsxRuntime.jsx(m,{size:"overline",weight:"semibold",className:"select-none",children:e})]}),mr=___namespace.default.forwardRef(({className:e,status:t,text:o,...r},i)=>jsxRuntime.jsx("div",{className:_t({status:t,className:e}),ref:i,...r,children:jsxRuntime.jsx(Gt,{text:o})})),fr=___namespace.default.forwardRef(({className:e,status:t,options:o,value:r,onChange:i,...a},s)=>{let l=o.find(p=>p.value===r);return jsxRuntime.jsx("div",{className:_t({status:l==null?void 0:l.status,className:e}),ref:s,...a,children:jsxRuntime.jsxs(reactDropdownMenu.Root,{children:[jsxRuntime.jsxs(reactDropdownMenu.Trigger,{className:"flex items-center gap-0.5 outline-none",children:[jsxRuntime.jsx(Gt,{text:(l==null?void 0:l.text)||""}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{"data-status":t,className:"-mr-0.5 size-2"})]}),jsxRuntime.jsx(D,{selected:l==null?void 0:l.value,options:o,onChange:i,className:"-ml-1 mt-0.5"})]})})}),dr={Menu:fr,...mr},ur=dr;var O=tailwindVariants.tv({base:"text-midnight-blue-600",variants:{bg:{indigo:"bg-midnight-blue-100",white:"bg-white to-white"}}}),zt=___namespace.default.forwardRef(({className:e,bg:t,value:o,progressBar:r,usePercentageSymbol:i=!0,...a},s)=>jsxRuntime.jsxs("div",{className:n(O({bg:t,className:e}),"flex h-3 flex-col items-center justify-center rounded-full px-1"),ref:s,...a,children:[jsxRuntime.jsxs(m,{size:"overline",weight:"medium",children:[o,i?"%":null]}),r!==void 0&&jsxRuntime.jsx(z,{barBg:t==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:r,className:"h-0.25 mb-0.5"})]})),br=___namespace.default.forwardRef(({className:e,bg:t,value:o,Icon:r,...i},a)=>jsxRuntime.jsx(Ht__namespace.Root,{ref:a,className:n(O({bg:t}),"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",e),...i,children:jsxRuntime.jsx("div",{className:n(O({bg:t}),"flex size-full items-center justify-center rounded-full"),children:r?jsxRuntime.jsx(r,{className:"size-3"}):jsxRuntime.jsxs("div",{className:"flex items-end",children:[jsxRuntime.jsx(m,{weight:"medium",children:o}),jsxRuntime.jsx(m,{size:"overline",weight:"medium",children:"%"})]})})})),xr=___namespace.default.forwardRef(({className:e,bg:t,value:o,text:r,...i},a)=>jsxRuntime.jsxs("div",{"data-bg":t,className:n(O({bg:t,className:e}),`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
|
|
54
|
+
p-2 data-[bg=white]:border`),ref:a,...i,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-1",children:[jsxRuntime.jsx(m,{weight:"normal",children:r}),jsxRuntime.jsx(zt,{value:o,bg:t==="white"?"indigo":"white"})]}),jsxRuntime.jsx(z,{barBg:t==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:o,className:"h-1"})]})),vr={Indicator:zt,Circle:br,Expanded:xr},hr=vr;var wr=tailwindVariants.tv({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}}),At=___namespace.default.forwardRef(({className:e,size:t,icon:o,text:r,asChild:i,value:a,border:s,active:l,onClose:p,...f},d)=>{let v=i?reactSlot.Slot:"div",R=wr();return jsxRuntime.jsxs(v,{className:R.container({size:t,border:s,active:l,className:e}),ref:d,...f,children:[o&&jsxRuntime.jsx(o,{className:R.icon({size:t,border:s,active:l})}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:"mx-1",children:r}),p&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>p(a),className:n(R.icon({size:t,border:s,active:l}),"cursor-pointer")})]})});At.displayName="Chips";var Cr=At;var Ir=x__namespace.Provider,Vr=x__namespace.Trigger,Ot=___namespace.forwardRef(({className:e,sideOffset:t=4,...o},r)=>jsxRuntime.jsx(x__namespace.Content,{ref:r,sideOffset:t,className:n("bg-navy-900 animate-in fade-in-0 rounded-m z-50 overflow-hidden border px-2 py-1 text-sm text-white shadow-md","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));Ot.displayName=x__namespace.Content.displayName;var Mr=e=>jsxRuntime.jsxs(x__namespace.Root,{children:[jsxRuntime.jsx(Vr,{children:e.children}),jsxRuntime.jsx(Ot,{children:jsxRuntime.jsx("div",{style:{maxWidth:e.maxWidth??"fit-content"},children:e.title})})]});var Sr=tailwindVariants.tv({base:"text-navy-600 text-base font-medium",variants:{invalid:{true:"text-notification-critical-600"}}}),Wt=({className:e,text:t,suffix:o,invalid:r,htmlFor:i,...a})=>jsxRuntime.jsxs("div",{className:n("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2",e),...a,children:[jsxRuntime.jsx("label",{className:Sr({invalid:r}),htmlFor:i,children:t}),o&&jsxRuntime.jsx(o,{})]});Wt.displayName="Label";var at=Wt;var Hr=tailwindVariants.tv({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"}}),Ut=({className:e,text:t,counter:o,maxLength:r,invalid:i,valueLength:a,...s})=>{let l=Hr();return jsxRuntime.jsxs("div",{className:n("mt-0.5 flex justify-between",e),...s,children:[t&&jsxRuntime.jsx("span",{className:l.text({invalid:i}),children:t}),o&&r&&jsxRuntime.jsx("div",{className:l.counter(),children:jsxRuntime.jsxs(m,{size:"overline",weight:"semibold",children:[a||0,"/",r]})})]})};Ut.displayName="InputDescription";var nt=Ut;var Ar=({id:e,className:t,label:o,description:r,errorMessage:i,invalid:a,children:s,disabled:l,value:p,maxLength:f,...d})=>{let v=i||r.text;return jsxRuntime.jsxs("div",{className:n("flex flex-col",t),...d,children:[jsxRuntime.jsx(at,{...o,invalid:a,htmlFor:e}),___namespace.default.cloneElement(s,{id:e,invalid:a,disabled:l,value:p}),jsxRuntime.jsx(nt,{...r,text:v,invalid:a,maxLength:f,valueLength:p==null?void 0:p.length})]})},Dr=Ar;var Ur=tailwindVariants.tv({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"}}),qt=___namespace.default.forwardRef(({className:e,checked:t,defaultChecked:o,disabled:r,...i},a)=>{let s=Ur();return jsxRuntime.jsx("div",{className:"flex size-3 items-center justify-center",children:jsxRuntime.jsx(reactCheckbox.Root,{ref:a,className:n(s.checkbox({checked:t,disabled:r}),e),checked:t,defaultChecked:o,disabled:r,...i,children:jsxRuntime.jsxs("div",{className:"-ml-0.5 -mt-0.5 flex size-3 items-center justify-center",children:[(t==="indeterminate"||o==="indeterminate")&&jsxRuntime.jsx(icons.IconOutlineLine,{className:s.icon({disabled:r})}),(t===!0||o===!0)&&jsxRuntime.jsx(icons.IconOutlineCheck,{className:s.icon({disabled:r})})]})})})});qt.displayName=reactCheckbox.Root.displayName;var $r=qt;var jt=___namespace.default.forwardRef(({className:e,disabled:t,...o},r)=>jsxRuntime.jsx(P__namespace.Root,{className:n("grid gap-1",e),disabled:t,...o,ref:r}));jt.displayName=P__namespace.Root.displayName;var Jt=___namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(P__namespace.Item,{ref:o,className:n("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",e),...t,children:jsxRuntime.jsx(P__namespace.Indicator,{className:"text-primary flex items-center justify-center group-disabled:text-neutral-300",children:jsxRuntime.jsx(lucideReact.Circle,{className:"fill-primary size-[12px] group-disabled:fill-neutral-300"})})}));Jt.displayName=P__namespace.Item.displayName;var Kr={Group:jt,Item:Jt},jr=Kr;var Xt=tailwindVariants.tv({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"}}),Yt=___namespace.forwardRef(({className:e,disabled:t,invalid:o,size:r,value:i,onChange:a,scope:s,...l},p)=>{let f=L(),d=Xt();return jsxRuntime.jsxs("div",{className:d.container({disabled:t}),children:[s&&jsxRuntime.jsx(oi,{disabled:t,scope:s,size:r}),jsxRuntime.jsxs("div",{className:"peer relative",children:[jsxRuntime.jsx("input",{value:i,onChange:a,disabled:t,"data-scoped":!!s,className:n(f.input({disabled:t,invalid:o,size:r}),d.input(),e),ref:p,...l}),jsxRuntime.jsx("div",{"data-hasValue":!!i,className:`data-[hasValue=true]:cursor-pointer ${f.suffix({size:r,disabled:t})}`,children:i?jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>a&&a({target:{value:""}})}):jsxRuntime.jsx(icons.IconOutlineSearch,{})})]})]})}),oi=({scope:{selected:e,options:t,onChange:o},disabled:r,size:i})=>{let a=t.find(({value:l})=>l===e),s=Xt();return jsxRuntime.jsxs(reactDropdownMenu.Root,{children:[jsxRuntime.jsxs(reactDropdownMenu.Trigger,{className:s.trigger({size:i,disabled:r}),disabled:r,children:[jsxRuntime.jsx(m,{size:"small",weight:"medium",children:a==null?void 0:a.text}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:"-mr-0.5 size-3"})]}),jsxRuntime.jsx(D,{selected:e,options:t,onChange:o,className:s.dropdown({size:i})})]})};Yt.displayName="Search";var ri=Yt;
|
|
53
55
|
|
|
54
|
-
exports.Alert =
|
|
55
|
-
exports.Avatar =
|
|
56
|
-
exports.Badge =
|
|
57
|
-
exports.Button =
|
|
58
|
-
exports.Card =
|
|
59
|
-
exports.Checkbox =
|
|
60
|
-
exports.Chips =
|
|
61
|
-
exports.Collapsible =
|
|
62
|
-
exports.FormItem =
|
|
63
|
-
exports.Indicator =
|
|
64
|
-
exports.Input =
|
|
65
|
-
exports.InputDescription =
|
|
66
|
-
exports.Label =
|
|
67
|
-
exports.Message =
|
|
68
|
-
exports.MessageContainer =
|
|
69
|
-
exports.MessageType =
|
|
70
|
-
exports.Progress =
|
|
71
|
-
exports.ProgressBar =
|
|
72
|
-
exports.Radio =
|
|
73
|
-
exports.Scope =
|
|
74
|
-
exports.Search =
|
|
75
|
-
exports.Sheet =
|
|
76
|
-
exports.Status =
|
|
77
|
-
exports.
|
|
56
|
+
exports.Alert = zo;
|
|
57
|
+
exports.Avatar = se;
|
|
58
|
+
exports.Badge = ve;
|
|
59
|
+
exports.Button = Te;
|
|
60
|
+
exports.Card = Ie;
|
|
61
|
+
exports.Checkbox = $r;
|
|
62
|
+
exports.Chips = Cr;
|
|
63
|
+
exports.Collapsible = uo;
|
|
64
|
+
exports.FormItem = Dr;
|
|
65
|
+
exports.Indicator = rr;
|
|
66
|
+
exports.Input = Oe;
|
|
67
|
+
exports.InputDescription = nt;
|
|
68
|
+
exports.Label = at;
|
|
69
|
+
exports.Message = jo;
|
|
70
|
+
exports.MessageContainer = Ko;
|
|
71
|
+
exports.MessageType = Lt;
|
|
72
|
+
exports.Progress = hr;
|
|
73
|
+
exports.ProgressBar = z;
|
|
74
|
+
exports.Radio = jr;
|
|
75
|
+
exports.Scope = Se;
|
|
76
|
+
exports.Search = ri;
|
|
77
|
+
exports.Sheet = $e;
|
|
78
|
+
exports.Status = ur;
|
|
79
|
+
exports.Switch = Je;
|
|
80
|
+
exports.Tabs = wo;
|
|
78
81
|
exports.Text = m;
|
|
79
|
-
exports.Textarea =
|
|
80
|
-
exports.Toggle =
|
|
81
|
-
exports.Tooltip =
|
|
82
|
-
exports.TooltipProvider =
|
|
82
|
+
exports.Textarea = We;
|
|
83
|
+
exports.Toggle = eo;
|
|
84
|
+
exports.Tooltip = Mr;
|
|
85
|
+
exports.TooltipProvider = Ir;
|
package/dist/index.d.cts
CHANGED
|
@@ -1717,12 +1717,12 @@ declare const Text: {
|
|
|
1717
1717
|
displayName: string;
|
|
1718
1718
|
};
|
|
1719
1719
|
|
|
1720
|
-
type
|
|
1720
|
+
type SwitchProps = HTMLAttributes<HTMLInputElement> & PropsWithChildren<{
|
|
1721
1721
|
name: string;
|
|
1722
1722
|
disabled?: boolean;
|
|
1723
1723
|
checked?: boolean;
|
|
1724
1724
|
}>;
|
|
1725
|
-
declare const
|
|
1725
|
+
declare const Switch: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
|
|
1726
1726
|
name: string;
|
|
1727
1727
|
disabled?: boolean;
|
|
1728
1728
|
checked?: boolean;
|
|
@@ -1730,6 +1730,64 @@ declare const Toggle: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLInput
|
|
|
1730
1730
|
children?: React$1.ReactNode | undefined;
|
|
1731
1731
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1732
1732
|
|
|
1733
|
+
declare const toggleVariants: tailwind_variants.TVReturnType<{
|
|
1734
|
+
variant: {
|
|
1735
|
+
default: string;
|
|
1736
|
+
};
|
|
1737
|
+
size: {
|
|
1738
|
+
default: string;
|
|
1739
|
+
};
|
|
1740
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", tailwind_variants_dist_config_js.TVConfig<{
|
|
1741
|
+
variant: {
|
|
1742
|
+
default: string;
|
|
1743
|
+
};
|
|
1744
|
+
size: {
|
|
1745
|
+
default: string;
|
|
1746
|
+
};
|
|
1747
|
+
}, {
|
|
1748
|
+
variant: {
|
|
1749
|
+
default: string;
|
|
1750
|
+
};
|
|
1751
|
+
size: {
|
|
1752
|
+
default: string;
|
|
1753
|
+
};
|
|
1754
|
+
}>, {
|
|
1755
|
+
variant: {
|
|
1756
|
+
default: string;
|
|
1757
|
+
};
|
|
1758
|
+
size: {
|
|
1759
|
+
default: string;
|
|
1760
|
+
};
|
|
1761
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
1762
|
+
variant: {
|
|
1763
|
+
default: string;
|
|
1764
|
+
};
|
|
1765
|
+
size: {
|
|
1766
|
+
default: string;
|
|
1767
|
+
};
|
|
1768
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", tailwind_variants_dist_config_js.TVConfig<{
|
|
1769
|
+
variant: {
|
|
1770
|
+
default: string;
|
|
1771
|
+
};
|
|
1772
|
+
size: {
|
|
1773
|
+
default: string;
|
|
1774
|
+
};
|
|
1775
|
+
}, {
|
|
1776
|
+
variant: {
|
|
1777
|
+
default: string;
|
|
1778
|
+
};
|
|
1779
|
+
size: {
|
|
1780
|
+
default: string;
|
|
1781
|
+
};
|
|
1782
|
+
}>, unknown, unknown, undefined>>;
|
|
1783
|
+
|
|
1784
|
+
type ToggleGroupProps = React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
|
1785
|
+
type ToggleGroupItemProps = React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>;
|
|
1786
|
+
declare const Toggle: {
|
|
1787
|
+
Group: React$1.ForwardRefExoticComponent<ToggleGroupProps>;
|
|
1788
|
+
Item: React$1.ForwardRefExoticComponent<ToggleGroupItemProps>;
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1733
1791
|
type CollapsibleItemProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>;
|
|
1734
1792
|
type CollapsibleTriggerProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleTrigger> & {
|
|
1735
1793
|
triggerClassName?: string;
|
|
@@ -1762,6 +1820,212 @@ type TabsLayoutProps = {
|
|
|
1762
1820
|
};
|
|
1763
1821
|
declare const TabsLayout: ({ tabs, activeKey, defaultActiveKey, className, onValueChange, onTabClick, }: TabsLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
1764
1822
|
|
|
1823
|
+
declare const alertVariants: tailwind_variants.TVReturnType<{
|
|
1824
|
+
type: {
|
|
1825
|
+
success: {
|
|
1826
|
+
container: string;
|
|
1827
|
+
icon: string;
|
|
1828
|
+
};
|
|
1829
|
+
warning: {
|
|
1830
|
+
container: string;
|
|
1831
|
+
icon: string;
|
|
1832
|
+
};
|
|
1833
|
+
error: {
|
|
1834
|
+
container: string;
|
|
1835
|
+
icon: string;
|
|
1836
|
+
};
|
|
1837
|
+
info: {
|
|
1838
|
+
container: string;
|
|
1839
|
+
icon: string;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
closable: {
|
|
1843
|
+
true: {
|
|
1844
|
+
message: string;
|
|
1845
|
+
};
|
|
1846
|
+
false: {
|
|
1847
|
+
message: string;
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
}, {
|
|
1851
|
+
container: string;
|
|
1852
|
+
icon: string;
|
|
1853
|
+
message: string;
|
|
1854
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
1855
|
+
type: {
|
|
1856
|
+
success: {
|
|
1857
|
+
container: string;
|
|
1858
|
+
icon: string;
|
|
1859
|
+
};
|
|
1860
|
+
warning: {
|
|
1861
|
+
container: string;
|
|
1862
|
+
icon: string;
|
|
1863
|
+
};
|
|
1864
|
+
error: {
|
|
1865
|
+
container: string;
|
|
1866
|
+
icon: string;
|
|
1867
|
+
};
|
|
1868
|
+
info: {
|
|
1869
|
+
container: string;
|
|
1870
|
+
icon: string;
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
closable: {
|
|
1874
|
+
true: {
|
|
1875
|
+
message: string;
|
|
1876
|
+
};
|
|
1877
|
+
false: {
|
|
1878
|
+
message: string;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
}, {
|
|
1882
|
+
type: {
|
|
1883
|
+
success: {
|
|
1884
|
+
container: string;
|
|
1885
|
+
icon: string;
|
|
1886
|
+
};
|
|
1887
|
+
warning: {
|
|
1888
|
+
container: string;
|
|
1889
|
+
icon: string;
|
|
1890
|
+
};
|
|
1891
|
+
error: {
|
|
1892
|
+
container: string;
|
|
1893
|
+
icon: string;
|
|
1894
|
+
};
|
|
1895
|
+
info: {
|
|
1896
|
+
container: string;
|
|
1897
|
+
icon: string;
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
closable: {
|
|
1901
|
+
true: {
|
|
1902
|
+
message: string;
|
|
1903
|
+
};
|
|
1904
|
+
false: {
|
|
1905
|
+
message: string;
|
|
1906
|
+
};
|
|
1907
|
+
};
|
|
1908
|
+
}>, {
|
|
1909
|
+
type: {
|
|
1910
|
+
success: {
|
|
1911
|
+
container: string;
|
|
1912
|
+
icon: string;
|
|
1913
|
+
};
|
|
1914
|
+
warning: {
|
|
1915
|
+
container: string;
|
|
1916
|
+
icon: string;
|
|
1917
|
+
};
|
|
1918
|
+
error: {
|
|
1919
|
+
container: string;
|
|
1920
|
+
icon: string;
|
|
1921
|
+
};
|
|
1922
|
+
info: {
|
|
1923
|
+
container: string;
|
|
1924
|
+
icon: string;
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
closable: {
|
|
1928
|
+
true: {
|
|
1929
|
+
message: string;
|
|
1930
|
+
};
|
|
1931
|
+
false: {
|
|
1932
|
+
message: string;
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
}, {
|
|
1936
|
+
container: string;
|
|
1937
|
+
icon: string;
|
|
1938
|
+
message: string;
|
|
1939
|
+
}, tailwind_variants.TVReturnType<{
|
|
1940
|
+
type: {
|
|
1941
|
+
success: {
|
|
1942
|
+
container: string;
|
|
1943
|
+
icon: string;
|
|
1944
|
+
};
|
|
1945
|
+
warning: {
|
|
1946
|
+
container: string;
|
|
1947
|
+
icon: string;
|
|
1948
|
+
};
|
|
1949
|
+
error: {
|
|
1950
|
+
container: string;
|
|
1951
|
+
icon: string;
|
|
1952
|
+
};
|
|
1953
|
+
info: {
|
|
1954
|
+
container: string;
|
|
1955
|
+
icon: string;
|
|
1956
|
+
};
|
|
1957
|
+
};
|
|
1958
|
+
closable: {
|
|
1959
|
+
true: {
|
|
1960
|
+
message: string;
|
|
1961
|
+
};
|
|
1962
|
+
false: {
|
|
1963
|
+
message: string;
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
}, {
|
|
1967
|
+
container: string;
|
|
1968
|
+
icon: string;
|
|
1969
|
+
message: string;
|
|
1970
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
1971
|
+
type: {
|
|
1972
|
+
success: {
|
|
1973
|
+
container: string;
|
|
1974
|
+
icon: string;
|
|
1975
|
+
};
|
|
1976
|
+
warning: {
|
|
1977
|
+
container: string;
|
|
1978
|
+
icon: string;
|
|
1979
|
+
};
|
|
1980
|
+
error: {
|
|
1981
|
+
container: string;
|
|
1982
|
+
icon: string;
|
|
1983
|
+
};
|
|
1984
|
+
info: {
|
|
1985
|
+
container: string;
|
|
1986
|
+
icon: string;
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
closable: {
|
|
1990
|
+
true: {
|
|
1991
|
+
message: string;
|
|
1992
|
+
};
|
|
1993
|
+
false: {
|
|
1994
|
+
message: string;
|
|
1995
|
+
};
|
|
1996
|
+
};
|
|
1997
|
+
}, {
|
|
1998
|
+
type: {
|
|
1999
|
+
success: {
|
|
2000
|
+
container: string;
|
|
2001
|
+
icon: string;
|
|
2002
|
+
};
|
|
2003
|
+
warning: {
|
|
2004
|
+
container: string;
|
|
2005
|
+
icon: string;
|
|
2006
|
+
};
|
|
2007
|
+
error: {
|
|
2008
|
+
container: string;
|
|
2009
|
+
icon: string;
|
|
2010
|
+
};
|
|
2011
|
+
info: {
|
|
2012
|
+
container: string;
|
|
2013
|
+
icon: string;
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
closable: {
|
|
2017
|
+
true: {
|
|
2018
|
+
message: string;
|
|
2019
|
+
};
|
|
2020
|
+
false: {
|
|
2021
|
+
message: string;
|
|
2022
|
+
};
|
|
2023
|
+
};
|
|
2024
|
+
}>, unknown, unknown, undefined>>;
|
|
2025
|
+
type AlertProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants> & {
|
|
2026
|
+
message: string | React__default.ReactNode;
|
|
2027
|
+
closable?: boolean;
|
|
2028
|
+
};
|
|
1765
2029
|
declare const Alert: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & VariantProps<tailwind_variants.TVReturnType<{
|
|
1766
2030
|
type: {
|
|
1767
2031
|
success: {
|
|
@@ -3671,4 +3935,4 @@ declare const Search: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttribu
|
|
|
3671
3935
|
scope?: DropdownProps;
|
|
3672
3936
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3673
3937
|
|
|
3674
|
-
export { Alert, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, type CardProps, Checkbox, type CheckboxProps, Chips, type ChipsProps, type CircleProps, Collapsible, type CollapsibleContentProps, type CollapsibleItemProps, type CollapsibleTriggerProps, type ExpandedProps, FormItem, type FormItemProps, Indicator, type IndicatorProps, Input, InputDescription, type InputDescriptionProps, type InputProps, Label, type LabelProps, Message, MessageContainer, type MessageProps, MessageType, Progress, ProgressBar, type ProgressBarProps, type ProgressIndicatorProps, Radio, type RadioGroupProps, type RadioItemProps, Scope, type ScopeGroupProps, type ScopeItemProps, Search, type SearchProps, Sheet, type SheetProps, Status, type StatusMenuProps, type StatusOption, type StatusSimpleProps, type TabItem, TabsLayout as Tabs, type TabsLayoutProps, Text, type TextProps, Textarea, type TextareaProps, Toggle, type
|
|
3938
|
+
export { Alert, type AlertProps, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, type CardProps, Checkbox, type CheckboxProps, Chips, type ChipsProps, type CircleProps, Collapsible, type CollapsibleContentProps, type CollapsibleItemProps, type CollapsibleTriggerProps, type ExpandedProps, FormItem, type FormItemProps, Indicator, type IndicatorProps, Input, InputDescription, type InputDescriptionProps, type InputProps, Label, type LabelProps, Message, MessageContainer, type MessageProps, MessageType, Progress, ProgressBar, type ProgressBarProps, type ProgressIndicatorProps, Radio, type RadioGroupProps, type RadioItemProps, Scope, type ScopeGroupProps, type ScopeItemProps, Search, type SearchProps, Sheet, type SheetProps, Status, type StatusMenuProps, type StatusOption, type StatusSimpleProps, Switch, type SwitchProps, type TabItem, TabsLayout as Tabs, type TabsLayoutProps, Text, type TextProps, Textarea, type TextareaProps, Toggle, type ToggleGroupItemProps, type ToggleGroupProps, Tooltip, type TooltipProps, TooltipProvider };
|