@dito-uai/components 5.1.0-alpha.23 → 5.1.0-alpha.25
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/global.css +1 -1
- package/dist/index.cjs +18 -17
- package/dist/index.d.cts +23 -19
- package/dist/index.d.ts +23 -19
- package/dist/index.js +6 -5
- package/dist/ui/indicator.d.ts +4 -2
- package/dist/ui/indicator.d.ts.map +1 -1
- package/dist/ui/message.d.ts +15 -14
- package/dist/ui/message.d.ts.map +1 -1
- package/dist/ui/progress.d.ts +4 -2
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/text.d.ts +1 -1
- package/dist/ui/text.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ var C = require('@radix-ui/react-collapsible');
|
|
|
12
12
|
var icons = require('@dito-uai/icons');
|
|
13
13
|
var u = require('@radix-ui/react-tabs');
|
|
14
14
|
var reactToastify = require('react-toastify');
|
|
15
|
+
require('react-toastify/dist/ReactToastify.min.css');
|
|
15
16
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
16
17
|
var x = require('@radix-ui/react-tooltip');
|
|
17
18
|
var reactCheckbox = require('@radix-ui/react-checkbox');
|
|
@@ -44,38 +45,38 @@ var u__namespace = /*#__PURE__*/_interopNamespace(u);
|
|
|
44
45
|
var x__namespace = /*#__PURE__*/_interopNamespace(x);
|
|
45
46
|
var P__namespace = /*#__PURE__*/_interopNamespace(P);
|
|
46
47
|
|
|
47
|
-
var Xt=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:t,color:e,type:o,size:i,children:r,asChild:a,...l},s)=>jsxRuntime.jsx(a?reactSlot.Slot:"div",{className:Xt({color:e,type:o,size:i,className:t}),ref:s,...l,children:r}));ot.displayName="Avatar";var Yt=ot;function n(...t){return tailwindMerge.twMerge(clsx.clsx(t))}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:t,size:e,weight:o,children:i,...r})=>jsxRuntime.jsx("span",{className:n(ie({size:e,weight:o,className:t})),...r,children:i});it.displayName="Text";var d=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:t,status:e,size:o,type:i,contrast:r,children:a,asChild:l,...s},p)=>jsxRuntime.jsx(l?reactSlot.Slot:"span",{className:le({status:e,size:o,type:i,contrast:r,className:t}),ref:p,...s,children:jsxRuntime.jsx(d,{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:t,appearance:e,size:o,disabled:i,children:r,asChild:a,icon:l,...s},p)=>{let m=a?reactSlot.Slot:"button",f=fe({appearance:e,size:o,disabled:i,className:t});return jsxRuntime.jsxs(m,{type:"button","data-has-icon":!!l,"data-has-text":!!r,className:f.container({className:t}),ref:p,...s,children:[l&&jsxRuntime.jsx(l,{className:f.icon()}),r&&jsxRuntime.jsx(d,{size:"base",weight:"medium",className:f.text({className:t}),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:t,variant:e,direction:o,padding:i,children:r,...a})=>jsxRuntime.jsx("div",{className:n(xe({variant:e,direction:o,padding:i,className:t})),...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:t,variant:e,children:o,size:i,disabled:r,...a},l)=>jsxRuntime.jsx(___namespace.Root,{ref:l,className:n("flex items-center justify-center gap-0",t),...a,type:"single",children:jsxRuntime.jsx(pt.Provider,{value:{variant:e,size:i,disabled:r},children:o})}));ct.displayName="ScopeGroup";var dt=E__namespace.default.forwardRef(({className:t,variant:e,size:o,icon:i,text:r,disabled:a,...l},s)=>{let p=E__namespace.default.useContext(pt),m=Te({variant:p.variant||e,size:p.size||o,disabled:p.disabled||a});return jsxRuntime.jsxs(___namespace.Item,{ref:s,className:n(m.container(),t),disabled:a,...l,children:[i&&jsxRuntime.jsx(i,{className:m.icon()}),jsxRuntime.jsx(d,{size:"base",weight:"normal",className:m.text(),children:r})]})});dt.displayName="ScopeItem";var Re={Group:ct,Item:dt},ye=Re;var Ie=({value:t,className:e,barBg:o,progressBg:i})=>{let r=`-translate-x-[(-${100-(t||0)}%])`;return jsxRuntime.jsx(Nt.Root,{className:n(e,o,"relative w-full overflow-hidden rounded-full "),value:t,children:jsxRuntime.jsx(Nt.Indicator,{className:n(e,"w-full flex-1 rounded-full",r,i)})})},H=Ie;var V=tailwindVariants.tv({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-2 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=E__namespace.default.forwardRef(({className:t,prefixIcon:e,suffixIcon:o,disabled:i,invalid:r,size:a,...l},s)=>{let p=V();return jsxRuntime.jsxs("div",{className:"relative",children:[e&&jsxRuntime.jsx("div",{className:p.prefixIcon({invalid:r,size:a}),children:e}),jsxRuntime.jsx("input",{disabled:i,"data-has-prefix-icon":!!e,"data-has-suffix-icon":!!o,className:n(p.input({disabled:i,invalid:r,size:a}),t,"form-input"),ref:s,...l}),o&&jsxRuntime.jsx("div",{className:p.suffixIcon({invalid:r,size:a}),children:o})]})});ft.displayName="Input";var Le=ft;var gt=E__namespace.forwardRef(({className:t,disabled:e,invalid:o,...i},r)=>{let{input:a}=V();return jsxRuntime.jsx("textarea",{className:n("min-h-9",t,a({disabled:e,invalid:o})),ref:r,...i})});gt.displayName="Textarea";var Se=gt;var bt=({title:t,children:e,isVisible:o,CloseIcon:i,maxWidth:r,onClose:a})=>{let[l,s]=E.useState(o);E.useEffect(()=>s(o),[o]);let p=m=>{s(!1),a&&a(m);};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",l?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",l?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(d,{size:"H3",weight:"semibold",className:"text-navy-600",children:t}),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:e})]})]})};bt.displayName="Sheet";var Ae=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:t,name:e,disabled:o,children:i,...r},a)=>jsxRuntime.jsxs("label",{className:n("inline-flex cursor-pointer items-center",t),children:[jsxRuntime.jsx("input",{...r,ref:a,type:"checkbox",className:n("peer sr-only"),name:e,disabled:o}),jsxRuntime.jsx("span",{className:ke({disabled:o})}),jsxRuntime.jsx(d,{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(),Qe=E__namespace.default.forwardRef(({className:t,...e},o)=>jsxRuntime.jsx(C__namespace.Root,{ref:o,className:qe({className:t}),...e})),Xe=E__namespace.default.forwardRef(({className:t,triggerClassName:e,children:o,...i},r)=>jsxRuntime.jsxs(C__namespace.CollapsibleTrigger,{ref:r,className:Ze({className:e}),...i,children:[jsxRuntime.jsx("div",{className:n("w-full",t),children:o}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:Ke()})]})),Ye=E__namespace.default.forwardRef(({className:t,children:e,...o},i)=>jsxRuntime.jsx(C__namespace.CollapsibleContent,{ref:i,className:Je(),...o,children:jsxRuntime.jsx("div",{className:n("px-1 py-2",t),children:e})})),je={Item:Qe,Trigger:Xe,Content:Ye},to=je;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:t,...e},o)=>jsxRuntime.jsx(u__namespace.List,{ref:o,className:n(ro(),t),...e}));vt.displayName=u__namespace.List.displayName;var ht=E__namespace.default.forwardRef(({className:t,children:e,iconPrefix:o,suffix:i,disabled:r,active:a,...l},s)=>{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:s,className:n(ao({iconColor:p,disabled:r,active:a}),t),disabled:r,...l,children:[o&&jsxRuntime.jsx("span",{children:o}),e,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:t,...e},o)=>jsxRuntime.jsx(u__namespace.Content,{ref:o,className:t,...e}));Pt.displayName=u__namespace.Content.displayName;function lo(t,e){let o=t!==void 0,[i,r]=E.useState(e);return [o?t:i,s=>{o||r(s);}]}var po=({tabs:t,activeKey:e,defaultActiveKey:o,className:i,onValueChange:r,onTabClick:a})=>{var m;let[l,s]=lo(e,o??((m=t[0])==null?void 0:m.value));return jsxRuntime.jsxs(so,{value:e??l,onValueChange:f=>{if(r)return r(f);s(f);},onClick:f=>a&&a(f,l),className:n("flex flex-col gap-2",i),children:[jsxRuntime.jsx(vt,{children:t.map(({value:f,label:v,iconPrefix:R,suffix:$t,disabled:Zt,className:qt})=>jsxRuntime.jsx(ht,{value:f,iconPrefix:R,suffix:$t,disabled:Zt,active:f===l,className:qt,children:v&&jsxRuntime.jsx(d,{size:"base",weight:"medium",children:v})},f))}),t.map(({value:f,content:v,className:R})=>jsxRuntime.jsx(Pt,{value:f,className:R,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]",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},Ro=E__namespace.default.forwardRef(({type:t,message:e,closable:o,...i},r)=>{let[a,l]=E.useState(!0),s=Po(),p=t?To[t]:null;return a&&jsxRuntime.jsxs("div",{className:s.container({type:t}),ref:r,...i,children:[p&&jsxRuntime.jsx(p,{className:s.icon({type:t})}),jsxRuntime.jsx("p",{className:s.message({closable:o}),children:e}),o&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>l(!1),className:s.icon({type:t})})]})}),yo=Ro;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 min-h-5 w-fit flex-row items-center gap-1 px-2 py-1 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,{})},I={open:({type:t="info",text:e,closable:o=!1,duration:i=3e3,containerId:r,onClose:a,onClick:l})=>{let s={autoClose:i,closeButton:o?({closeToast:m})=>jsxRuntime.jsx("div",{className:"ml-auto w-[24px] ",children:jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>m(!0),className:"size-[24px] hover:cursor-pointer"})}):!1,className:So({type:t}),icon:t!=="loading"?_o[t]:void 0,onClose:a,onClick:l,containerId:r},p=()=>{let m=reactToastify.toast.loading(e,s);setTimeout(()=>{reactToastify.toast.dismiss(m);},i);};switch(t){case"success":return reactToastify.toast.success(e,s);case"error":return reactToastify.toast.error(e,s);case"warning":return reactToastify.toast.warning(e,s);case"loading":return p();case"info":default:return reactToastify.toast.info(e,s)}},success:(t,e)=>I.open({type:"success",text:t,duration:e}),error:(t,e)=>I.open({type:"error",text:t,duration:e}),info:(t,e)=>I.open({type:"info",text:t,duration:e}),warning:(t,e)=>I.open({type:"warning",text:t,duration:e}),loading:(t,e)=>I.open({type:"loading",text:t,duration:e})},Ho=({containerId:t})=>jsxRuntime.jsx(reactToastify.ToastContainer,{position:"bottom-right",hideProgressBar:!0,containerId:t}),zo=I;var Bo=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"}}}),Wo=E__namespace.default.forwardRef(({className:t,status:e,value:o,icon:i,...r},a)=>{let l={positive:jsxRuntime.jsx(icons.IconOutlineArrowUp,{}),negative:jsxRuntime.jsx(icons.IconOutlineArrowDown,{}),neutral:jsxRuntime.jsx(icons.IconOutlineMinus,{})};return jsxRuntime.jsxs("div",{className:Bo({status:e,className:t}),ref:a,...r,children:[i&&l[i],jsxRuntime.jsxs(d,{size:"overline",weight:"semibold",children:[o,"%"]})]})}),Fo=Wo;var A=({options:t,selected:e,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:t.map(r=>jsxRuntime.jsx(reactDropdownMenu.Item,{"data-selected":e===r.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
48
|
+
var Xt=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:Xt({color:t,type:o,size:i,className:e}),ref:l,...s,children:r}));ot.displayName="Avatar";var Yt=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 f=a?reactSlot.Slot:"button",d=fe({appearance:t,size:o,disabled:i,className:e});return jsxRuntime.jsxs(f,{type:"button","data-has-icon":!!s,"data-has-text":!!r,className:d.container({className:e}),ref:p,...l,children:[s&&jsxRuntime.jsx(s,{className:d.icon()}),r&&jsxRuntime.jsx(m,{size:"base",weight:"medium",className:d.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),f=Te({variant:p.variant||t,size:p.size||o,disabled:p.disabled||a});return jsxRuntime.jsxs(___namespace.Item,{ref:l,className:n(f.container(),e),disabled:a,...s,children:[i&&jsxRuntime.jsx(i,{className:f.icon()}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:f.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({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-2 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=E__namespace.default.forwardRef(({className:e,prefixIcon:t,suffixIcon:o,disabled:i,invalid:r,size:a,...s},l)=>{let p=M();return jsxRuntime.jsxs("div",{className:"relative",children:[t&&jsxRuntime.jsx("div",{className:p.prefixIcon({invalid:r,size:a}),children:t}),jsxRuntime.jsx("input",{disabled:i,"data-has-prefix-icon":!!t,"data-has-suffix-icon":!!o,className:n(p.input({disabled:i,invalid:r,size:a}),e,"form-input"),ref:l,...s}),o&&jsxRuntime.jsx("div",{className:p.suffixIcon({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=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",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 Ae=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(),Qe=E__namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(C__namespace.Root,{ref:o,className:qe({className:e}),...t})),Xe=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()})]})),Ye=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})})),je={Item:Qe,Trigger:Xe,Content:Ye},to=je;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 f;let[s,l]=lo(t,o??((f=e[0])==null?void 0:f.value));return jsxRuntime.jsxs(so,{value:t??s,onValueChange:d=>{if(r)return r(d);l(d);},onClick:d=>a&&a(d,s),className:n("flex flex-col gap-2",i),children:[jsxRuntime.jsx(vt,{children:e.map(({value:d,label:v,iconPrefix:y,suffix:$t,disabled:Zt,className:qt})=>jsxRuntime.jsx(ht,{value:d,iconPrefix:y,suffix:$t,disabled:Zt,active:d===s,className:qt,children:v&&jsxRuntime.jsx(m,{size:"base",weight:"medium",children:v})},d))}),e.map(({value:d,content:v,className:y})=>jsxRuntime.jsx(Pt,{value:d,className:y,children:v},d))]})},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]",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("p",{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:"!flex !items-center !rounded-m !min-h-5 !w-fit !gap-1 !font-sans !text-base !font-medium !p-0",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},zo=e=>jsxRuntime.jsx(reactToastify.ToastContainer,{className:"!w-fit flex flex-col items-end mr-[100px]",position:"bottom-right",hideProgressBar:!0,enableMultiContainer:!0,closeButton:({closeToast:t})=>jsxRuntime.jsx("button",{type:"button",className:"ml-auto w-6 h-6 flex items-center justify-center hover:opacity-70",onClick:t,children:jsxRuntime.jsx(icons.IconOutlineClose,{className:"size-[24px]"})}),...e}),Ao=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 A=({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
|
|
48
49
|
px-2 py-1 text-base font-normal text-neutral-500 outline-none
|
|
49
50
|
transition-colors focus:bg-indigo-100 focus:text-indigo-600
|
|
50
|
-
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>o&&o(r.value),children:r.text}))})});var wt=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"]}}}),Ct=({text:
|
|
51
|
-
p-2 data-[bg=white]:border`),ref:a,...r,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-1",children:[jsxRuntime.jsx(
|
|
51
|
+
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>o&&o(r.value),children:r.text}))})});var wt=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"]}}}),Ct=({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})]}),Yo=E__namespace.default.forwardRef(({className:e,status:t,text:o,...i},r)=>jsxRuntime.jsx("div",{className:wt({status:t,className:e}),ref:r,...i,children:jsxRuntime.jsx(Ct,{text:o})})),jo=E__namespace.default.forwardRef(({className:e,status:t,options:o,value:i,onChange:r,...a},s)=>{let l=o.find(p=>p.value===i);return jsxRuntime.jsx("div",{className:wt({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(Ct,{text:(l==null?void 0:l.text)||""}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{"data-status":t,className:"-mr-0.5 size-2"})]}),jsxRuntime.jsx(A,{selected:l==null?void 0:l.value,options:o,onChange:r,className:"-ml-1 mt-0.5"})]})})}),ti={Menu:jo,...Yo},ei=ti;var D=tailwindVariants.tv({base:"text-midnight-blue-600",variants:{bg:{indigo:"bg-midnight-blue-100",white:"bg-white to-white"}}}),It=E__namespace.default.forwardRef(({className:e,bg:t,value:o,progressBar:i,usePercentageSymbol:r=!0,...a},s)=>jsxRuntime.jsxs("div",{className:n(D({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,r?"%":null]}),i!==void 0&&jsxRuntime.jsx(H,{barBg:t==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:i,className:"h-0.25 mb-0.5"})]})),ii=E__namespace.default.forwardRef(({className:e,bg:t,value:o,Icon:i,...r},a)=>jsxRuntime.jsx(Nt__namespace.Root,{ref:a,className:n(D({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),...r,children:jsxRuntime.jsx("div",{className:n(D({bg:t}),"flex size-full items-center justify-center rounded-full"),children:i?jsxRuntime.jsx(i,{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:"%"})]})})})),ri=E__namespace.default.forwardRef(({className:e,bg:t,value:o,text:i,...r},a)=>jsxRuntime.jsxs("div",{"data-bg":t,className:n(D({bg:t,className:e}),`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
|
|
52
|
+
p-2 data-[bg=white]:border`),ref:a,...r,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-1",children:[jsxRuntime.jsx(m,{weight:"normal",children:i}),jsxRuntime.jsx(It,{value:o,bg:t==="white"?"indigo":"white"})]}),jsxRuntime.jsx(H,{barBg:t==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:o,className:"h-1"})]})),ai={Indicator:It,Circle:ii,Expanded:ri},ni=ai;var mi=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}}),Mt=E__namespace.default.forwardRef(({className:e,size:t,icon:o,text:i,asChild:r,value:a,border:s,active:l,onClose:p,...f},d)=>{let v=r?reactSlot.Slot:"div",y=mi();return jsxRuntime.jsxs(v,{className:y.container({size:t,border:s,active:l,className:e}),ref:d,...f,children:[o&&jsxRuntime.jsx(o,{className:y.icon({size:t,border:s,active:l})}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:"mx-1",children:i}),p&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>p(a),className:n(y.icon({size:t,border:s,active:l}),"cursor-pointer")})]})});Mt.displayName="Chips";var di=Mt;var ui=x__namespace.Provider,gi=x__namespace.Trigger,Lt=E__namespace.forwardRef(({className:e,sideOffset:t=4,...o},i)=>jsxRuntime.jsx(x__namespace.Content,{ref:i,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}));Lt.displayName=x__namespace.Content.displayName;var bi=e=>jsxRuntime.jsxs(x__namespace.Root,{children:[jsxRuntime.jsx(gi,{children:e.children}),jsxRuntime.jsx(Lt,{children:jsxRuntime.jsx("div",{style:{maxWidth:e.maxWidth??"fit-content"},children:e.title})})]});var hi=tailwindVariants.tv({base:"text-navy-600 text-base font-medium",variants:{invalid:{true:"text-notification-critical-600"}}}),St=({className:e,text:t,suffix:o,invalid:i,htmlFor:r,...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:hi({invalid:i}),htmlFor:r,children:t}),o&&jsxRuntime.jsx(o,{})]});St.displayName="Label";var tt=St;var yi=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"}}),zt=({className:e,text:t,counter:o,maxLength:i,invalid:r,valueLength:a,...s})=>{let l=yi();return jsxRuntime.jsxs("div",{className:n("mt-0.5 flex justify-between",e),...s,children:[t&&jsxRuntime.jsx("span",{className:l.text({invalid:r}),children:t}),o&&i&&jsxRuntime.jsx("div",{className:l.counter(),children:jsxRuntime.jsxs(m,{size:"overline",weight:"semibold",children:[a||0,"/",i]})})]})};zt.displayName="InputDescription";var et=zt;var wi=({id:e,className:t,label:o,description:i,errorMessage:r,invalid:a,children:s,disabled:l,value:p,maxLength:f,...d})=>{let v=r||i.text;return jsxRuntime.jsxs("div",{className:n("flex flex-col",t),...d,children:[jsxRuntime.jsx(tt,{...o,invalid:a,htmlFor:e}),E__namespace.default.cloneElement(s,{id:e,invalid:a,disabled:l,value:p}),jsxRuntime.jsx(et,{...i,text:v,invalid:a,maxLength:f,valueLength:p==null?void 0:p.length})]})},Ci=wi;var Ei=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"}}),Gt=E__namespace.default.forwardRef(({className:e,checked:t,defaultChecked:o,disabled:i,...r},a)=>{let s=Ei();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:i}),e),checked:t,defaultChecked:o,disabled:i,...r,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:i})}),(t===!0||o===!0)&&jsxRuntime.jsx(icons.IconOutlineCheck,{className:s.icon({disabled:i})})]})})})});Gt.displayName=reactCheckbox.Root.displayName;var Si=Gt;var kt=E__namespace.default.forwardRef(({className:e,disabled:t,...o},i)=>jsxRuntime.jsx(P__namespace.Root,{className:n("grid gap-1",e),disabled:t,...o,ref:i}));kt.displayName=P__namespace.Root.displayName;var Bt=E__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"})})}));Bt.displayName=P__namespace.Item.displayName;var zi={Group:kt,Item:Bt},Ai=zi;var Ft=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"}}),Ut=E__namespace.forwardRef(({className:e,disabled:t,invalid:o,size:i,value:r,onChange:a,scope:s,...l},p)=>{let f=M(),d=Ft();return jsxRuntime.jsxs("div",{className:d.container({disabled:t}),children:[s&&jsxRuntime.jsx(Fi,{disabled:t,scope:s,size:i}),jsxRuntime.jsxs("div",{className:"peer relative",children:[jsxRuntime.jsx("input",{value:r,onChange:a,disabled:t,"data-scoped":!!s,className:n(f.input({disabled:t,invalid:o,size:i}),d.input(),e),ref:p,...l}),jsxRuntime.jsx("div",{"data-hasValue":!!r,className:`data-[hasValue=true]:cursor-pointer ${f.suffixIcon({size:i,disabled:t})}`,children:r?jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>a&&a({target:{value:""}})}):jsxRuntime.jsx(icons.IconOutlineSearch,{})})]})]})}),Fi=({scope:{selected:e,options:t,onChange:o},disabled:i,size:r})=>{let a=t.find(({value:l})=>l===e),s=Ft();return jsxRuntime.jsxs(reactDropdownMenu.Root,{children:[jsxRuntime.jsxs(reactDropdownMenu.Trigger,{className:s.trigger({size:r,disabled:i}),disabled:i,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(A,{selected:e,options:t,onChange:o,className:s.dropdown({size:r})})]})};Ut.displayName="Search";var Ui=Ut;
|
|
52
53
|
|
|
53
|
-
exports.Alert =
|
|
54
|
+
exports.Alert = Ro;
|
|
54
55
|
exports.Avatar = Yt;
|
|
55
56
|
exports.Badge = pe;
|
|
56
57
|
exports.Button = ue;
|
|
57
58
|
exports.Card = ve;
|
|
58
|
-
exports.Checkbox =
|
|
59
|
+
exports.Checkbox = Si;
|
|
59
60
|
exports.Chips = di;
|
|
60
61
|
exports.Collapsible = to;
|
|
61
|
-
exports.FormItem =
|
|
62
|
-
exports.Indicator =
|
|
62
|
+
exports.FormItem = Ci;
|
|
63
|
+
exports.Indicator = Uo;
|
|
63
64
|
exports.Input = Le;
|
|
64
65
|
exports.InputDescription = et;
|
|
65
66
|
exports.Label = tt;
|
|
66
|
-
exports.Message =
|
|
67
|
-
exports.MessageContainer =
|
|
67
|
+
exports.Message = Ao;
|
|
68
|
+
exports.MessageContainer = zo;
|
|
68
69
|
exports.MessageType = Tt;
|
|
69
|
-
exports.Progress =
|
|
70
|
+
exports.Progress = ni;
|
|
70
71
|
exports.ProgressBar = H;
|
|
71
|
-
exports.Radio =
|
|
72
|
-
exports.Scope =
|
|
73
|
-
exports.Search =
|
|
72
|
+
exports.Radio = Ai;
|
|
73
|
+
exports.Scope = Re;
|
|
74
|
+
exports.Search = Ui;
|
|
74
75
|
exports.Sheet = Ae;
|
|
75
|
-
exports.Status =
|
|
76
|
+
exports.Status = ei;
|
|
76
77
|
exports.Tabs = co;
|
|
77
|
-
exports.Text =
|
|
78
|
+
exports.Text = m;
|
|
78
79
|
exports.Textarea = Se;
|
|
79
80
|
exports.Toggle = Be;
|
|
80
|
-
exports.Tooltip =
|
|
81
|
-
exports.TooltipProvider =
|
|
81
|
+
exports.Tooltip = bi;
|
|
82
|
+
exports.TooltipProvider = ui;
|
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,7 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
|
8
8
|
import { VariantProps as VariantProps$1 } from 'class-variance-authority';
|
|
9
9
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
10
10
|
import * as react_toastify from 'react-toastify';
|
|
11
|
+
import { ToastOptions, ToastContainerProps } from 'react-toastify';
|
|
11
12
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
13
|
import * as _radix_ui_react_checkbox from '@radix-ui/react-checkbox';
|
|
13
14
|
import { Root } from '@radix-ui/react-checkbox';
|
|
@@ -1710,7 +1711,7 @@ declare const TextVariants: tailwind_variants.TVReturnType<{
|
|
|
1710
1711
|
semibold: string;
|
|
1711
1712
|
};
|
|
1712
1713
|
}>, unknown, unknown, undefined>>;
|
|
1713
|
-
type TextProps = HTMLAttributes<HTMLSpanElement> & PropsWithChildren
|
|
1714
|
+
type TextProps = HTMLAttributes<HTMLSpanElement> & PropsWithChildren<VariantProps<typeof TextVariants>>;
|
|
1714
1715
|
declare const Text: {
|
|
1715
1716
|
({ className, size, weight, children, ...props }: TextProps): react_jsx_runtime.JSX.Element;
|
|
1716
1717
|
displayName: string;
|
|
@@ -1980,7 +1981,7 @@ declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
|
1980
1981
|
info: string;
|
|
1981
1982
|
loading: string;
|
|
1982
1983
|
};
|
|
1983
|
-
}, undefined, "rounded-m min-h-5 w-fit
|
|
1984
|
+
}, undefined, "!flex !items-center !rounded-m !min-h-5 !w-fit !gap-1 !font-sans !text-base !font-medium !p-0", tailwind_variants_dist_config_js.TVConfig<{
|
|
1984
1985
|
type: {
|
|
1985
1986
|
success: string;
|
|
1986
1987
|
error: string;
|
|
@@ -2012,7 +2013,7 @@ declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
|
2012
2013
|
info: string;
|
|
2013
2014
|
loading: string;
|
|
2014
2015
|
};
|
|
2015
|
-
}, undefined, "rounded-m min-h-5 w-fit
|
|
2016
|
+
}, undefined, "!flex !items-center !rounded-m !min-h-5 !w-fit !gap-1 !font-sans !text-base !font-medium !p-0", tailwind_variants_dist_config_js.TVConfig<{
|
|
2016
2017
|
type: {
|
|
2017
2018
|
success: string;
|
|
2018
2019
|
error: string;
|
|
@@ -2030,25 +2031,24 @@ declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
|
2030
2031
|
};
|
|
2031
2032
|
}>, unknown, unknown, undefined>>;
|
|
2032
2033
|
type MessageProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof messageVariants> & {
|
|
2033
|
-
text: string;
|
|
2034
|
+
text: string | React.ReactNode;
|
|
2034
2035
|
closable?: boolean;
|
|
2035
|
-
duration?: number;
|
|
2036
|
+
duration?: number | false;
|
|
2036
2037
|
key?: string;
|
|
2037
2038
|
containerId?: string;
|
|
2038
2039
|
onClick?: () => void;
|
|
2039
2040
|
onClose?: () => void;
|
|
2040
|
-
}
|
|
2041
|
+
} & Omit<ToastOptions, 'type'>;
|
|
2041
2042
|
declare const Message: {
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2043
|
+
success: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2044
|
+
error: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2045
|
+
info: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2046
|
+
warning: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2047
|
+
loading: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2048
|
+
dismiss: (id?: react_toastify.Id | undefined) => void;
|
|
2049
|
+
open: ({ type, text, closable, duration, containerId, onClose, onClick, ...rest }: MessageProps) => react_toastify.Id;
|
|
2048
2050
|
};
|
|
2049
|
-
declare const MessageContainer: (
|
|
2050
|
-
containerId?: string;
|
|
2051
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
2051
|
+
declare const MessageContainer: (props: ToastContainerProps) => react_jsx_runtime.JSX.Element;
|
|
2052
2052
|
|
|
2053
2053
|
declare const indicatorVariants: tailwind_variants.TVReturnType<{
|
|
2054
2054
|
status: {
|
|
@@ -2101,8 +2101,9 @@ declare const indicatorVariants: tailwind_variants.TVReturnType<{
|
|
|
2101
2101
|
};
|
|
2102
2102
|
}>, unknown, unknown, undefined>>;
|
|
2103
2103
|
type IndicatorProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof indicatorVariants> & {
|
|
2104
|
-
value: string;
|
|
2104
|
+
value: string | number;
|
|
2105
2105
|
icon?: 'positive' | 'neutral' | 'negative';
|
|
2106
|
+
usePercentageSymbol?: boolean;
|
|
2106
2107
|
};
|
|
2107
2108
|
declare const Indicator: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & VariantProps<tailwind_variants.TVReturnType<{
|
|
2108
2109
|
status: {
|
|
@@ -2154,8 +2155,9 @@ declare const Indicator: React__default.ForwardRefExoticComponent<React__default
|
|
|
2154
2155
|
info: string;
|
|
2155
2156
|
};
|
|
2156
2157
|
}>, unknown, unknown, undefined>>> & {
|
|
2157
|
-
value: string;
|
|
2158
|
+
value: string | number;
|
|
2158
2159
|
icon?: "positive" | "neutral" | "negative";
|
|
2160
|
+
usePercentageSymbol?: boolean;
|
|
2159
2161
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2160
2162
|
|
|
2161
2163
|
declare const statusVariants: tailwind_variants.TVReturnType<{
|
|
@@ -2270,8 +2272,10 @@ declare const progressVariants: tailwind_variants.TVReturnType<{
|
|
|
2270
2272
|
type CommonProps = {
|
|
2271
2273
|
value: number;
|
|
2272
2274
|
};
|
|
2273
|
-
type ProgressIndicatorProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
2274
|
-
|
|
2275
|
+
type ProgressIndicatorProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & Omit<CommonProps, 'value'> & {
|
|
2276
|
+
progressBar?: number;
|
|
2277
|
+
value: string | number;
|
|
2278
|
+
usePercentageSymbol?: boolean;
|
|
2275
2279
|
};
|
|
2276
2280
|
type CircleProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
2277
2281
|
Icon?: React__default.ElementType;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
|
8
8
|
import { VariantProps as VariantProps$1 } from 'class-variance-authority';
|
|
9
9
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
10
10
|
import * as react_toastify from 'react-toastify';
|
|
11
|
+
import { ToastOptions, ToastContainerProps } from 'react-toastify';
|
|
11
12
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
13
|
import * as _radix_ui_react_checkbox from '@radix-ui/react-checkbox';
|
|
13
14
|
import { Root } from '@radix-ui/react-checkbox';
|
|
@@ -1710,7 +1711,7 @@ declare const TextVariants: tailwind_variants.TVReturnType<{
|
|
|
1710
1711
|
semibold: string;
|
|
1711
1712
|
};
|
|
1712
1713
|
}>, unknown, unknown, undefined>>;
|
|
1713
|
-
type TextProps = HTMLAttributes<HTMLSpanElement> & PropsWithChildren
|
|
1714
|
+
type TextProps = HTMLAttributes<HTMLSpanElement> & PropsWithChildren<VariantProps<typeof TextVariants>>;
|
|
1714
1715
|
declare const Text: {
|
|
1715
1716
|
({ className, size, weight, children, ...props }: TextProps): react_jsx_runtime.JSX.Element;
|
|
1716
1717
|
displayName: string;
|
|
@@ -1980,7 +1981,7 @@ declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
|
1980
1981
|
info: string;
|
|
1981
1982
|
loading: string;
|
|
1982
1983
|
};
|
|
1983
|
-
}, undefined, "rounded-m min-h-5 w-fit
|
|
1984
|
+
}, undefined, "!flex !items-center !rounded-m !min-h-5 !w-fit !gap-1 !font-sans !text-base !font-medium !p-0", tailwind_variants_dist_config_js.TVConfig<{
|
|
1984
1985
|
type: {
|
|
1985
1986
|
success: string;
|
|
1986
1987
|
error: string;
|
|
@@ -2012,7 +2013,7 @@ declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
|
2012
2013
|
info: string;
|
|
2013
2014
|
loading: string;
|
|
2014
2015
|
};
|
|
2015
|
-
}, undefined, "rounded-m min-h-5 w-fit
|
|
2016
|
+
}, undefined, "!flex !items-center !rounded-m !min-h-5 !w-fit !gap-1 !font-sans !text-base !font-medium !p-0", tailwind_variants_dist_config_js.TVConfig<{
|
|
2016
2017
|
type: {
|
|
2017
2018
|
success: string;
|
|
2018
2019
|
error: string;
|
|
@@ -2030,25 +2031,24 @@ declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
|
2030
2031
|
};
|
|
2031
2032
|
}>, unknown, unknown, undefined>>;
|
|
2032
2033
|
type MessageProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof messageVariants> & {
|
|
2033
|
-
text: string;
|
|
2034
|
+
text: string | React.ReactNode;
|
|
2034
2035
|
closable?: boolean;
|
|
2035
|
-
duration?: number;
|
|
2036
|
+
duration?: number | false;
|
|
2036
2037
|
key?: string;
|
|
2037
2038
|
containerId?: string;
|
|
2038
2039
|
onClick?: () => void;
|
|
2039
2040
|
onClose?: () => void;
|
|
2040
|
-
}
|
|
2041
|
+
} & Omit<ToastOptions, 'type'>;
|
|
2041
2042
|
declare const Message: {
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2043
|
+
success: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2044
|
+
error: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2045
|
+
info: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2046
|
+
warning: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2047
|
+
loading: (text: MessageProps["text"], duration?: MessageProps["duration"]) => react_toastify.Id;
|
|
2048
|
+
dismiss: (id?: react_toastify.Id | undefined) => void;
|
|
2049
|
+
open: ({ type, text, closable, duration, containerId, onClose, onClick, ...rest }: MessageProps) => react_toastify.Id;
|
|
2048
2050
|
};
|
|
2049
|
-
declare const MessageContainer: (
|
|
2050
|
-
containerId?: string;
|
|
2051
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
2051
|
+
declare const MessageContainer: (props: ToastContainerProps) => react_jsx_runtime.JSX.Element;
|
|
2052
2052
|
|
|
2053
2053
|
declare const indicatorVariants: tailwind_variants.TVReturnType<{
|
|
2054
2054
|
status: {
|
|
@@ -2101,8 +2101,9 @@ declare const indicatorVariants: tailwind_variants.TVReturnType<{
|
|
|
2101
2101
|
};
|
|
2102
2102
|
}>, unknown, unknown, undefined>>;
|
|
2103
2103
|
type IndicatorProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof indicatorVariants> & {
|
|
2104
|
-
value: string;
|
|
2104
|
+
value: string | number;
|
|
2105
2105
|
icon?: 'positive' | 'neutral' | 'negative';
|
|
2106
|
+
usePercentageSymbol?: boolean;
|
|
2106
2107
|
};
|
|
2107
2108
|
declare const Indicator: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & VariantProps<tailwind_variants.TVReturnType<{
|
|
2108
2109
|
status: {
|
|
@@ -2154,8 +2155,9 @@ declare const Indicator: React__default.ForwardRefExoticComponent<React__default
|
|
|
2154
2155
|
info: string;
|
|
2155
2156
|
};
|
|
2156
2157
|
}>, unknown, unknown, undefined>>> & {
|
|
2157
|
-
value: string;
|
|
2158
|
+
value: string | number;
|
|
2158
2159
|
icon?: "positive" | "neutral" | "negative";
|
|
2160
|
+
usePercentageSymbol?: boolean;
|
|
2159
2161
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2160
2162
|
|
|
2161
2163
|
declare const statusVariants: tailwind_variants.TVReturnType<{
|
|
@@ -2270,8 +2272,10 @@ declare const progressVariants: tailwind_variants.TVReturnType<{
|
|
|
2270
2272
|
type CommonProps = {
|
|
2271
2273
|
value: number;
|
|
2272
2274
|
};
|
|
2273
|
-
type ProgressIndicatorProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
2274
|
-
|
|
2275
|
+
type ProgressIndicatorProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & Omit<CommonProps, 'value'> & {
|
|
2276
|
+
progressBar?: number;
|
|
2277
|
+
value: string | number;
|
|
2278
|
+
usePercentageSymbol?: boolean;
|
|
2275
2279
|
};
|
|
2276
2280
|
type CircleProps = React__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
2277
2281
|
Icon?: React__default.ElementType;
|