@dito-uai/components 5.1.0-alpha.19 → 5.1.0-alpha.21
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 +45 -37
- package/dist/index.d.cts +106 -11
- package/dist/index.d.ts +106 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -11
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/message.d.ts +87 -0
- package/dist/ui/message.d.ts.map +1 -0
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var E = 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 _ = require('@radix-ui/react-toggle-group');
|
|
10
|
+
var Nt = require('@radix-ui/react-progress');
|
|
11
|
+
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
|
+
var reactToastify = require('react-toastify');
|
|
14
15
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
16
|
+
var x = require('@radix-ui/react-tooltip');
|
|
15
17
|
var reactCheckbox = require('@radix-ui/react-checkbox');
|
|
16
|
-
var
|
|
18
|
+
var P = require('@radix-ui/react-radio-group');
|
|
17
19
|
var lucideReact = require('lucide-react');
|
|
18
20
|
|
|
19
21
|
function _interopNamespace(e) {
|
|
@@ -34,40 +36,46 @@ function _interopNamespace(e) {
|
|
|
34
36
|
return Object.freeze(n);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
39
|
+
var E__namespace = /*#__PURE__*/_interopNamespace(E);
|
|
40
|
+
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
41
|
+
var Nt__namespace = /*#__PURE__*/_interopNamespace(Nt);
|
|
42
|
+
var C__namespace = /*#__PURE__*/_interopNamespace(C);
|
|
41
43
|
var u__namespace = /*#__PURE__*/_interopNamespace(u);
|
|
42
|
-
var
|
|
44
|
+
var x__namespace = /*#__PURE__*/_interopNamespace(x);
|
|
45
|
+
var P__namespace = /*#__PURE__*/_interopNamespace(P);
|
|
43
46
|
|
|
44
|
-
var Ft=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"}}),X=I__namespace.default.forwardRef(({className:o,color:t,type:e,size:r,children:a,asChild:i,...s},l)=>jsxRuntime.jsx(i?reactSlot.Slot:"div",{className:Ft({color:t,type:e,size:r,className:o}),ref:l,...s,children:a}));X.displayName="Avatar";var $t=X;function n(...o){return tailwindMerge.twMerge(clsx.clsx(o))}var Jt=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"}}),Y=({className:o,size:t,weight:e,children:r,...a})=>jsxRuntime.jsx("span",{className:n(Jt({size:t,weight:e,className:o})),...a,children:r});Y.displayName="Text";var c=Y;var te=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"}}),tt=I__namespace.default.forwardRef(({className:o,status:t,size:e,type:r,contrast:a,children:i,asChild:s,...l},p)=>jsxRuntime.jsx(s?reactSlot.Slot:"span",{className:te({status:t,size:e,type:r,contrast:a,className:o}),ref:p,...l,children:jsxRuntime.jsx(c,{size:"overline",weight:"semibold",children:i})}));tt.displayName="Badge";var ee=tt;var ie=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"}}),ot=I__namespace.default.forwardRef(({className:o,appearance:t,size:e,disabled:r,children:a,asChild:i,icon:s,...l},p)=>{let f=i?reactSlot.Slot:"button",m=ie({appearance:t,size:e,disabled:r,className:o});return jsxRuntime.jsxs(f,{type:"button","data-has-icon":!!s,"data-has-text":!!a,className:m.container(),ref:p,...l,children:[s&&jsxRuntime.jsx(s,{className:m.icon()}),a&&jsxRuntime.jsx(c,{size:"base",weight:"medium",className:m.text(),children:a})]})});ot.displayName="Button";var ne=ot;var pe=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"}}),rt=({className:o,variant:t,direction:e,padding:r,children:a,...i})=>jsxRuntime.jsx("div",{className:n(pe({variant:t,direction:e,padding:r,className:o})),...i,children:a});rt.displayName="Card";var ce=rt;var fe=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"}}),at=I__namespace.default.createContext({variant:"default",size:"default",disabled:!1}),it=I__namespace.default.forwardRef(({className:o,variant:t,children:e,size:r,disabled:a,...i},s)=>jsxRuntime.jsx(L__namespace.Root,{ref:s,className:n("flex items-center justify-center gap-0",o),...i,type:"single",children:jsxRuntime.jsx(at.Provider,{value:{variant:t,size:r,disabled:a},children:e})}));it.displayName="ScopeGroup";var nt=I__namespace.default.forwardRef(({className:o,variant:t,size:e,icon:r,text:a,disabled:i,...s},l)=>{let p=I__namespace.default.useContext(at),f=fe({variant:p.variant||t,size:p.size||e,disabled:p.disabled||i});return jsxRuntime.jsxs(L__namespace.Item,{ref:l,className:n(f.container(),o),disabled:i,...s,children:[r&&jsxRuntime.jsx(r,{className:f.icon()}),jsxRuntime.jsx(c,{size:"base",weight:"normal",className:f.text(),children:a})]})});nt.displayName="ScopeItem";var ue={Group:it,Item:nt},ge=ue;var he=({value:o,className:t,barBg:e,progressBg:r})=>{let a=`-translate-x-[(-${100-(o||0)}%])`;return jsxRuntime.jsx(Pt.Root,{className:n(t,e,"relative w-full overflow-hidden rounded-full "),value:o,children:jsxRuntime.jsx(Pt.Indicator,{className:n(t,"w-full flex-1 rounded-full",a,r)})})},M=he;var y=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"}}),lt=I__namespace.default.forwardRef(({className:o,prefixIcon:t,suffixIcon:e,disabled:r,invalid:a,size:i,...s},l)=>{let p=y();return jsxRuntime.jsxs("div",{className:"relative",children:[t&&jsxRuntime.jsx("div",{className:p.prefixIcon({invalid:a,size:i}),children:t}),jsxRuntime.jsx("input",{disabled:r,"data-has-prefix-icon":!!t,"data-has-suffix-icon":!!e,className:n(p.input({disabled:r,invalid:a,size:i}),o,"form-input"),ref:l,...s}),e&&jsxRuntime.jsx("div",{className:p.suffixIcon({invalid:a,size:i}),children:e})]})});lt.displayName="Input";var we=lt;var ct=I__namespace.forwardRef(({className:o,disabled:t,invalid:e,...r},a)=>{let{input:i}=y();return jsxRuntime.jsx("textarea",{className:n("min-h-9",o,i({disabled:t,invalid:e})),ref:a,...r})});ct.displayName="Textarea";var ye=ct;var dt=({title:o,children:t,isVisible:e,CloseIcon:r,maxWidth:a,onClose:i})=>{let[s,l]=I.useState(e);I.useEffect(()=>l(e),[e]);let p=f=>{l(!1),i&&i(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",a?`max-w=[${a}]`:"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(c,{size:"H3",weight:"semibold",className:"text-navy-600",children:o}),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})]})]})};dt.displayName="Sheet";var Ve=dt;var _e=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"}}}),mt=I.forwardRef(({className:o,name:t,disabled:e,children:r,...a},i)=>jsxRuntime.jsxs("label",{className:n("inline-flex cursor-pointer items-center",o),children:[jsxRuntime.jsx("input",{...a,ref:i,type:"checkbox",className:n("peer sr-only"),name:t,disabled:e}),jsxRuntime.jsx("span",{className:_e({disabled:e})}),jsxRuntime.jsx(c,{children:r})]}));mt.displayName="Toggle";var He=mt;var Ae=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:Ge,item:ke,triggerIcon:Be,content:Oe}=Ae(),We=I__namespace.default.forwardRef(({className:o,...t},e)=>jsxRuntime.jsx(T__namespace.Root,{ref:e,className:ke({className:o}),...t})),Fe=I__namespace.default.forwardRef(({className:o,triggerClassName:t,children:e,...r},a)=>jsxRuntime.jsxs(T__namespace.CollapsibleTrigger,{ref:a,className:Ge({className:t}),...r,children:[jsxRuntime.jsx("div",{className:n("w-full",o),children:e}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:Be()})]})),$e=I__namespace.default.forwardRef(({className:o,children:t,...e},r)=>jsxRuntime.jsx(T__namespace.CollapsibleContent,{ref:r,className:Oe(),...e,children:jsxRuntime.jsx("div",{className:n("px-1 py-2",o),children:t})})),Ze={Item:We,Trigger:Fe,Content:$e},qe=Ze;var Qe=tailwindVariants.tv({base:"flex flex-row"}),Xe=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"}}),Ye=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"}}}),je=u__namespace.Root,ft=I__namespace.default.forwardRef(({className:o,...t},e)=>jsxRuntime.jsx(u__namespace.List,{ref:e,className:n(Qe(),o),...t}));ft.displayName=u__namespace.List.displayName;var ut=I__namespace.default.forwardRef(({className:o,children:t,iconPrefix:e,suffix:r,disabled:a,active:i,...s},l)=>{let p=I.useMemo(()=>a?"disabled":i?"active":"inactive",[a,i]);return jsxRuntime.jsxs("div",{className:n("relative flex flex-col",a?"":"hover:bg-green-100"),children:[jsxRuntime.jsxs(u__namespace.Trigger,{ref:l,className:n(Xe({iconColor:p,disabled:a,active:i}),o),disabled:a,...s,children:[e&&jsxRuntime.jsx("span",{children:e}),t,r&&jsxRuntime.jsx("span",{children:r})]}),jsxRuntime.jsx("span",{className:n(Ye({active:i}))})]})});ut.displayName=u__namespace.Trigger.displayName;var gt=I__namespace.default.forwardRef(({className:o,...t},e)=>jsxRuntime.jsx(u__namespace.Content,{ref:e,className:o,...t}));gt.displayName=u__namespace.Content.displayName;function to(o,t){let e=o!==void 0,[r,a]=I.useState(t);return [e?o:r,l=>{e||a(l);}]}var eo=({tabs:o,activeKey:t,defaultActiveKey:e,className:r,onValueChange:a,onTabClick:i})=>{var f;let[s,l]=to(t,e??((f=o[0])==null?void 0:f.value));return jsxRuntime.jsxs(je,{value:t??s,onValueChange:m=>{if(a)return a(m);l(m);},onClick:m=>i&&i(m,s),className:n("flex flex-col gap-2",r),children:[jsxRuntime.jsx(ft,{children:o.map(({value:m,label:x,iconPrefix:R,suffix:At,disabled:Gt,className:kt})=>jsxRuntime.jsx(ut,{value:m,iconPrefix:R,suffix:At,disabled:Gt,active:m===s,className:kt,children:x&&jsxRuntime.jsx(c,{size:"base",weight:"medium",children:x})},m))}),o.map(({value:m,content:x,className:R})=>jsxRuntime.jsx(gt,{value:m,className:R,children:x},m))]})},oo=eo;var mo=tailwindVariants.tv({slots:{container:"rounded-m flex min-h-5 w-full items-center gap-1 px-2 py-2.5 text-base font-medium",icon:"size-[24px]",message:"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)]"}}}}),fo={success:icons.IconOutlineCheckCircle,warning:icons.IconOutlineWarning,error:icons.IconOutlineErrorHexagon,info:icons.IconOutlineInfo},uo=I__namespace.default.forwardRef(({type:o,message:t,closable:e,...r},a)=>{let[i,s]=I.useState(!0),l=mo(),p=o?fo[o]:null;return i&&jsxRuntime.jsxs("div",{className:l.container({type:o}),ref:a,...r,children:[p&&jsxRuntime.jsx(p,{className:l.icon({type:o})}),jsxRuntime.jsx("p",{className:l.message({closable:e}),children:t}),e&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>s(!1),className:l.icon({type:o})})]})}),go=uo;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"}}}),To=I__namespace.default.forwardRef(({className:o,status:t,value:e,icon:r,...a},i)=>{let s={positive:jsxRuntime.jsx(icons.IconOutlineArrowUp,{}),negative:jsxRuntime.jsx(icons.IconOutlineArrowDown,{}),neutral:jsxRuntime.jsx(icons.IconOutlineMinus,{})};return jsxRuntime.jsxs("div",{className:wo({status:t,className:o}),ref:i,...a,children:[r&&s[r],jsxRuntime.jsxs(c,{size:"overline",weight:"semibold",children:[e,"%"]})]})}),yo=To;var _=({options:o,selected:t,onChange:e,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:o.map(a=>jsxRuntime.jsx(reactDropdownMenu.Item,{"data-selected":t===a.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
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 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: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(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:t,appearance:e,size:o,disabled:i,children:r,asChild:a,icon:l,...s},p)=>{let d=a?reactSlot.Slot:"button",f=fe({appearance:e,size:o,disabled:i,className:t});return jsxRuntime.jsxs(d,{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(m,{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 mt=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),d=Te({variant:p.variant||e,size:p.size||o,disabled:p.disabled||a});return jsxRuntime.jsxs(___namespace.Item,{ref:s,className:n(d.container(),t),disabled:a,...l,children:[i&&jsxRuntime.jsx(i,{className:d.icon()}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:d.text(),children:r})]})});mt.displayName="ScopeItem";var Re={Group:ct,Item:mt},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=d=>{s(!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",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(m,{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(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: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 d;let[l,s]=lo(e,o??((d=t[0])==null?void 0:d.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(m,{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:d})=>jsxRuntime.jsx("div",{className:"ml-auto w-[24px] ",children:jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>d(!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 d=reactToastify.toast.loading(e,s);setTimeout(()=>{reactToastify.toast.dismiss(d);},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(m,{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
|
|
45
48
|
px-2 py-1 text-base font-normal text-neutral-500 outline-none
|
|
46
49
|
transition-colors focus:bg-indigo-100 focus:text-indigo-600
|
|
47
|
-
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>
|
|
48
|
-
p-2 data-[bg=white]:border`),ref:
|
|
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:t})=>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:t})]}),Xo=E__namespace.default.forwardRef(({className:t,status:e,text:o,...i},r)=>jsxRuntime.jsx("div",{className:wt({status:e,className:t}),ref:r,...i,children:jsxRuntime.jsx(Ct,{text:o})})),Yo=E__namespace.default.forwardRef(({className:t,status:e,options:o,value:i,onChange:r,...a},l)=>{let s=o.find(p=>p.value===i);return jsxRuntime.jsx("div",{className:wt({status:s==null?void 0:s.status,className:t}),ref:l,...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:(s==null?void 0:s.text)||""}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{"data-status":e,className:"-mr-0.5 size-2"})]}),jsxRuntime.jsx(A,{selected:s==null?void 0:s.value,options:o,onChange:r,className:"-ml-1 mt-0.5"})]})})}),jo={Menu:Yo,...Xo},ti=jo;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:t,bg:e,value:o,withBar:i,...r},a)=>jsxRuntime.jsxs("div",{className:n(D({bg:e,className:t}),"flex h-3 flex-col items-center justify-center rounded-full px-1"),ref:a,...r,children:[jsxRuntime.jsxs(m,{size:"overline",weight:"medium",children:[o,"%"]}),i&&jsxRuntime.jsx(H,{barBg:e==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:o,className:"h-0.25 mb-0.5"})]})),oi=E__namespace.default.forwardRef(({className:t,bg:e,value:o,Icon:i,...r},a)=>jsxRuntime.jsx(Nt__namespace.Root,{ref:a,className:n(D({bg:e}),"text-midnight-blue-600 [&_svg]:fill-midnight-blue-600 [&_path]:fill-midnight-blue-600 relative flex size-6 items-center justify-center rounded-full","bg-[conic-gradient(var(--tw-gradient-stops))] from-midnight-blue-600 to-midnight-blue-100 p-0.5",t),...r,children:jsxRuntime.jsx("div",{className:n(D({bg:e}),"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:"%"})]})})})),ii=E__namespace.default.forwardRef(({className:t,bg:e,value:o,text:i,...r},a)=>jsxRuntime.jsxs("div",{"data-bg":e,className:n(D({bg:e,className:t}),`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
|
|
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(m,{weight:"normal",children:i}),jsxRuntime.jsx(It,{value:o,bg:e==="white"?"indigo":"white"})]}),jsxRuntime.jsx(H,{barBg:e==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:o,className:"h-1"})]})),ri={Indicator:It,Circle:oi,Expanded:ii},ai=ri;var ci=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}}),Vt=E__namespace.default.forwardRef(({className:t,size:e,icon:o,text:i,asChild:r,value:a,border:l,active:s,onClose:p,...d},f)=>{let v=r?reactSlot.Slot:"div",R=ci();return jsxRuntime.jsxs(v,{className:R.container({size:e,border:l,active:s,className:t}),ref:f,...d,children:[o&&jsxRuntime.jsx(o,{className:R.icon({size:e,border:l,active:s})}),jsxRuntime.jsx(m,{size:"base",weight:"normal",className:"mx-1",children:i}),p&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>p(a),className:n(R.icon({size:e,border:l,active:s}),"cursor-pointer")})]})});Vt.displayName="Chips";var mi=Vt;var fi=x__namespace.Provider,ui=x__namespace.Trigger,Lt=E__namespace.forwardRef(({className:t,sideOffset:e=4,...o},i)=>jsxRuntime.jsx(x__namespace.Content,{ref:i,sideOffset:e,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",t),...o}));Lt.displayName=x__namespace.Content.displayName;var gi=t=>jsxRuntime.jsxs(x__namespace.Root,{children:[jsxRuntime.jsx(ui,{children:t.children}),jsxRuntime.jsx(Lt,{children:jsxRuntime.jsx("div",{className:n(`max-w-[${t.maxWidth}]`),children:t.title})})]});var vi=tailwindVariants.tv({base:"text-navy-600 text-base font-medium",variants:{invalid:{true:"text-notification-critical-600"}}}),St=({className:t,text:e,suffix:o,invalid:i,htmlFor:r,...a})=>jsxRuntime.jsxs("div",{className:n("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2",t),...a,children:[jsxRuntime.jsx("label",{className:vi({invalid:i}),htmlFor:r,children:e}),o&&jsxRuntime.jsx(o,{})]});St.displayName="Label";var tt=St;var Ti=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:t,text:e,counter:o,maxLength:i,invalid:r,valueLength:a,...l})=>{let s=Ti();return jsxRuntime.jsxs("div",{className:n("mt-0.5 flex justify-between",t),...l,children:[e&&jsxRuntime.jsx("span",{className:s.text({invalid:r}),children:e}),o&&i&&jsxRuntime.jsx("div",{className:s.counter(),children:jsxRuntime.jsxs(m,{size:"overline",weight:"semibold",children:[a||0,"/",i]})})]})};zt.displayName="InputDescription";var et=zt;var yi=({id:t,className:e,label:o,description:i,errorMessage:r,invalid:a,children:l,disabled:s,value:p,maxLength:d,...f})=>{let v=r||i.text;return jsxRuntime.jsxs("div",{className:n("flex flex-col",e),...f,children:[jsxRuntime.jsx(tt,{...o,invalid:a,htmlFor:t}),E__namespace.default.cloneElement(l,{id:t,invalid:a,disabled:s,value:p}),jsxRuntime.jsx(et,{...i,text:v,invalid:a,maxLength:d,valueLength:p==null?void 0:p.length})]})},wi=yi;var Li=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:t,checked:e,defaultChecked:o,disabled:i,...r},a)=>{let l=Li();return jsxRuntime.jsx("div",{className:"flex size-3 items-center justify-center",children:jsxRuntime.jsx(reactCheckbox.Root,{ref:a,className:n(l.checkbox({checked:e,disabled:i}),t),checked:e,defaultChecked:o,disabled:i,...r,children:jsxRuntime.jsxs("div",{className:"-ml-0.5 -mt-0.5 flex size-3 items-center justify-center",children:[(e==="indeterminate"||o==="indeterminate")&&jsxRuntime.jsx(icons.IconOutlineLine,{className:l.icon({disabled:i})}),(e===!0||o===!0)&&jsxRuntime.jsx(icons.IconOutlineCheck,{className:l.icon({disabled:i})})]})})})});Gt.displayName=reactCheckbox.Root.displayName;var Ei=Gt;var kt=E__namespace.default.forwardRef(({className:t,disabled:e,...o},i)=>jsxRuntime.jsx(P__namespace.Root,{className:n("grid gap-1",t),disabled:e,...o,ref:i}));kt.displayName=P__namespace.Root.displayName;var Bt=E__namespace.default.forwardRef(({className:t,...e},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",t),...e,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 Hi={Group:kt,Item:Bt},zi=Hi;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:t,disabled:e,invalid:o,size:i,value:r,onChange:a,scope:l,...s},p)=>{let d=V(),f=Ft();return jsxRuntime.jsxs("div",{className:f.container({disabled:e}),children:[l&&jsxRuntime.jsx(Wi,{disabled:e,scope:l,size:i}),jsxRuntime.jsxs("div",{className:"peer relative",children:[jsxRuntime.jsx("input",{value:r,onChange:a,disabled:e,"data-scoped":!!l,className:n(d.input({disabled:e,invalid:o,size:i}),f.input(),t),ref:p,...s}),jsxRuntime.jsx("div",{"data-hasValue":!!r,className:`data-[hasValue=true]:cursor-pointer ${d.suffixIcon({size:i,disabled:e})}`,children:r?jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>a&&a({target:{value:""}})}):jsxRuntime.jsx(icons.IconOutlineSearch,{})})]})]})}),Wi=({scope:{selected:t,options:e,onChange:o},disabled:i,size:r})=>{let a=e.find(({value:s})=>s===t),l=Ft();return jsxRuntime.jsxs(reactDropdownMenu.Root,{children:[jsxRuntime.jsxs(reactDropdownMenu.Trigger,{className:l.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:t,options:e,onChange:o,className:l.dropdown({size:r})})]})};Ut.displayName="Search";var Fi=Ut;
|
|
49
52
|
|
|
50
|
-
exports.Alert =
|
|
51
|
-
exports.Avatar =
|
|
52
|
-
exports.Badge =
|
|
53
|
-
exports.Button =
|
|
54
|
-
exports.Card =
|
|
55
|
-
exports.Checkbox =
|
|
56
|
-
exports.Chips =
|
|
57
|
-
exports.Collapsible =
|
|
58
|
-
exports.FormItem =
|
|
59
|
-
exports.Indicator =
|
|
60
|
-
exports.Input =
|
|
61
|
-
exports.InputDescription =
|
|
62
|
-
exports.Label =
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
53
|
+
exports.Alert = yo;
|
|
54
|
+
exports.Avatar = Yt;
|
|
55
|
+
exports.Badge = pe;
|
|
56
|
+
exports.Button = ue;
|
|
57
|
+
exports.Card = ve;
|
|
58
|
+
exports.Checkbox = Ei;
|
|
59
|
+
exports.Chips = mi;
|
|
60
|
+
exports.Collapsible = to;
|
|
61
|
+
exports.FormItem = wi;
|
|
62
|
+
exports.Indicator = Fo;
|
|
63
|
+
exports.Input = Le;
|
|
64
|
+
exports.InputDescription = et;
|
|
65
|
+
exports.Label = tt;
|
|
66
|
+
exports.Message = zo;
|
|
67
|
+
exports.MessageContainer = Ho;
|
|
68
|
+
exports.MessageType = Tt;
|
|
69
|
+
exports.Progress = ai;
|
|
70
|
+
exports.ProgressBar = H;
|
|
71
|
+
exports.Radio = zi;
|
|
72
|
+
exports.Scope = ye;
|
|
73
|
+
exports.Search = Fi;
|
|
74
|
+
exports.Sheet = Ae;
|
|
75
|
+
exports.Status = ti;
|
|
76
|
+
exports.Tabs = co;
|
|
77
|
+
exports.Text = m;
|
|
78
|
+
exports.Textarea = Se;
|
|
79
|
+
exports.Toggle = Be;
|
|
80
|
+
exports.Tooltip = gi;
|
|
81
|
+
exports.TooltipProvider = fi;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
|
-
import * as React from 'react';
|
|
4
|
+
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { HTMLAttributes, PropsWithChildren } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
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
|
+
import * as react_toastify from 'react-toastify';
|
|
11
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
10
12
|
import * as _radix_ui_react_checkbox from '@radix-ui/react-checkbox';
|
|
11
13
|
import { Root } from '@radix-ui/react-checkbox';
|
|
12
14
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
@@ -1582,12 +1584,12 @@ type ProgressBarProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
|
1582
1584
|
};
|
|
1583
1585
|
declare const ProgressBar: React__default.FC<ProgressBarProps>;
|
|
1584
1586
|
|
|
1585
|
-
type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
1587
|
+
type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
1586
1588
|
invalid?: boolean;
|
|
1587
1589
|
};
|
|
1588
|
-
declare const Textarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
1590
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
1589
1591
|
invalid?: boolean;
|
|
1590
|
-
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
1592
|
+
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
1591
1593
|
|
|
1592
1594
|
type SheetProps = {
|
|
1593
1595
|
title: string;
|
|
@@ -1718,12 +1720,12 @@ type ToggleProps = HTMLAttributes<HTMLInputElement> & {
|
|
|
1718
1720
|
name: string;
|
|
1719
1721
|
disabled?: boolean;
|
|
1720
1722
|
} & PropsWithChildren;
|
|
1721
|
-
declare const Toggle: React.ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
|
|
1723
|
+
declare const Toggle: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
|
|
1722
1724
|
name: string;
|
|
1723
1725
|
disabled?: boolean;
|
|
1724
1726
|
} & {
|
|
1725
|
-
children?: React.ReactNode | undefined;
|
|
1726
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
1727
|
+
children?: React$1.ReactNode | undefined;
|
|
1728
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1727
1729
|
|
|
1728
1730
|
type CollapsibleItemProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>;
|
|
1729
1731
|
type CollapsibleTriggerProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleTrigger> & {
|
|
@@ -1963,6 +1965,91 @@ declare const Alert: React__default.ForwardRefExoticComponent<React__default.HTM
|
|
|
1963
1965
|
closable?: boolean;
|
|
1964
1966
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1965
1967
|
|
|
1968
|
+
declare enum MessageType {
|
|
1969
|
+
SUCCESS = "success",
|
|
1970
|
+
INFO = "info",
|
|
1971
|
+
WARNING = "warning",
|
|
1972
|
+
DANGER = "error",
|
|
1973
|
+
LOADING = "loading"
|
|
1974
|
+
}
|
|
1975
|
+
declare const messageVariants: tailwind_variants.TVReturnType<{
|
|
1976
|
+
type: {
|
|
1977
|
+
success: string;
|
|
1978
|
+
error: string;
|
|
1979
|
+
warning: string;
|
|
1980
|
+
info: string;
|
|
1981
|
+
loading: string;
|
|
1982
|
+
};
|
|
1983
|
+
}, undefined, "rounded-m min-h-5 w-fit flex-row items-center gap-1 px-2 py-1 font-sans text-base font-medium", tailwind_variants_dist_config_js.TVConfig<{
|
|
1984
|
+
type: {
|
|
1985
|
+
success: string;
|
|
1986
|
+
error: string;
|
|
1987
|
+
warning: string;
|
|
1988
|
+
info: string;
|
|
1989
|
+
loading: string;
|
|
1990
|
+
};
|
|
1991
|
+
}, {
|
|
1992
|
+
type: {
|
|
1993
|
+
success: string;
|
|
1994
|
+
error: string;
|
|
1995
|
+
warning: string;
|
|
1996
|
+
info: string;
|
|
1997
|
+
loading: string;
|
|
1998
|
+
};
|
|
1999
|
+
}>, {
|
|
2000
|
+
type: {
|
|
2001
|
+
success: string;
|
|
2002
|
+
error: string;
|
|
2003
|
+
warning: string;
|
|
2004
|
+
info: string;
|
|
2005
|
+
loading: string;
|
|
2006
|
+
};
|
|
2007
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
2008
|
+
type: {
|
|
2009
|
+
success: string;
|
|
2010
|
+
error: string;
|
|
2011
|
+
warning: string;
|
|
2012
|
+
info: string;
|
|
2013
|
+
loading: string;
|
|
2014
|
+
};
|
|
2015
|
+
}, undefined, "rounded-m min-h-5 w-fit flex-row items-center gap-1 px-2 py-1 font-sans text-base font-medium", tailwind_variants_dist_config_js.TVConfig<{
|
|
2016
|
+
type: {
|
|
2017
|
+
success: string;
|
|
2018
|
+
error: string;
|
|
2019
|
+
warning: string;
|
|
2020
|
+
info: string;
|
|
2021
|
+
loading: string;
|
|
2022
|
+
};
|
|
2023
|
+
}, {
|
|
2024
|
+
type: {
|
|
2025
|
+
success: string;
|
|
2026
|
+
error: string;
|
|
2027
|
+
warning: string;
|
|
2028
|
+
info: string;
|
|
2029
|
+
loading: string;
|
|
2030
|
+
};
|
|
2031
|
+
}>, unknown, unknown, undefined>>;
|
|
2032
|
+
type MessageProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof messageVariants> & {
|
|
2033
|
+
text: string;
|
|
2034
|
+
closable?: boolean;
|
|
2035
|
+
duration?: number;
|
|
2036
|
+
key?: string;
|
|
2037
|
+
containerId?: string;
|
|
2038
|
+
onClick?: () => void;
|
|
2039
|
+
onClose?: () => void;
|
|
2040
|
+
};
|
|
2041
|
+
declare const Message: {
|
|
2042
|
+
open: ({ type, text, closable, duration, containerId, onClose, onClick, }: MessageProps) => void | react_toastify.Id;
|
|
2043
|
+
success: (text: string, duration: number) => void | react_toastify.Id;
|
|
2044
|
+
error: (text: string, duration?: number) => void | react_toastify.Id;
|
|
2045
|
+
info: (text: string, duration?: number) => void | react_toastify.Id;
|
|
2046
|
+
warning: (text: string, duration?: number) => void | react_toastify.Id;
|
|
2047
|
+
loading: (text: string, duration?: number) => void | react_toastify.Id;
|
|
2048
|
+
};
|
|
2049
|
+
declare const MessageContainer: ({ containerId }: {
|
|
2050
|
+
containerId?: string;
|
|
2051
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2052
|
+
|
|
1966
2053
|
declare const indicatorVariants: tailwind_variants.TVReturnType<{
|
|
1967
2054
|
status: {
|
|
1968
2055
|
positive: string;
|
|
@@ -2610,6 +2697,14 @@ declare const Chips: React__default.ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
2610
2697
|
onClose?: (value?: string) => void;
|
|
2611
2698
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2612
2699
|
|
|
2700
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
2701
|
+
type TooltipProps = {
|
|
2702
|
+
title: string | React$1.ReactNode;
|
|
2703
|
+
maxWidth: string;
|
|
2704
|
+
children: React$1.ReactNode;
|
|
2705
|
+
};
|
|
2706
|
+
declare const Tooltip: (props: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
2707
|
+
|
|
2613
2708
|
declare const labelVariants: tailwind_variants.TVReturnType<{
|
|
2614
2709
|
invalid: {
|
|
2615
2710
|
true: string;
|
|
@@ -3136,10 +3231,10 @@ type DropdownProps = {
|
|
|
3136
3231
|
className?: string;
|
|
3137
3232
|
};
|
|
3138
3233
|
|
|
3139
|
-
type SearchProps = React.InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants> & {
|
|
3234
|
+
type SearchProps = React$1.InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants> & {
|
|
3140
3235
|
scope?: DropdownProps;
|
|
3141
3236
|
};
|
|
3142
|
-
declare const Search: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & VariantProps<tailwind_variants.TVReturnType<{
|
|
3237
|
+
declare const Search: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & VariantProps<tailwind_variants.TVReturnType<{
|
|
3143
3238
|
disabled: {
|
|
3144
3239
|
true: {
|
|
3145
3240
|
input: string;
|
|
@@ -3328,6 +3423,6 @@ declare const Search: React.ForwardRefExoticComponent<React.InputHTMLAttributes<
|
|
|
3328
3423
|
};
|
|
3329
3424
|
}>, unknown, unknown, undefined>>> & {
|
|
3330
3425
|
scope?: DropdownProps;
|
|
3331
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
3426
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3332
3427
|
|
|
3333
|
-
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, 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 ToggleProps };
|
|
3428
|
+
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 ToggleProps, Tooltip, type TooltipProps, TooltipProvider };
|