@dito-uai/components 5.1.0-alpha.13 → 5.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +1149 -56
- package/dist/index.d.ts +1149 -56
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/form-item.d.ts +2 -2
- package/dist/ui/form-item.d.ts.map +1 -1
- package/dist/ui/indicator.d.ts +54 -0
- package/dist/ui/indicator.d.ts.map +1 -1
- package/dist/ui/input.d.ts +3 -3
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/progress-bar.d.ts +1 -1
- package/dist/ui/progress-bar.d.ts.map +1 -1
- package/dist/ui/progress.d.ts +4 -4
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio.d.ts +4 -4
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/scope.d.ts +2 -2
- package/dist/ui/scope.d.ts.map +1 -1
- package/dist/ui/sheets.d.ts +2 -2
- package/dist/ui/sheets.d.ts.map +1 -1
- package/dist/ui/status.d.ts +3 -3
- package/dist/ui/status.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +4 -5
- package/dist/ui/tabs.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAG9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,eAAe,EACf,YAAY,EACZ,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,IAAI,QAAQ,EACnB,WAAW,EACX,aAAa,EACb,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as V from 'react';
|
|
2
|
+
import V__default, { forwardRef, useMemo, useState, useEffect } from 'react';
|
|
3
3
|
import { tv } from 'tailwind-variants';
|
|
4
4
|
import { Slot } from '@radix-ui/react-slot';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { clsx } from 'clsx';
|
|
7
7
|
import { twMerge } from 'tailwind-merge';
|
|
8
8
|
import * as M from '@radix-ui/react-toggle-group';
|
|
9
|
-
import * as
|
|
9
|
+
import * as Rt from '@radix-ui/react-progress';
|
|
10
10
|
import { Root as Root$2, Indicator } from '@radix-ui/react-progress';
|
|
11
11
|
import * as y from '@radix-ui/react-collapsible';
|
|
12
12
|
import { IconOutlineChevronDown, IconOutlineClose, IconOutlineArrowUp, IconOutlineArrowDown, IconOutlineMinus, IconOutlineLine, IconOutlineCheck, IconOutlineSearch, IconOutlineCheckCircle, IconOutlineWarning, IconOutlineErrorHexagon, IconOutlineInfo } from '@dito-uai/icons';
|
|
13
13
|
import * as g from '@radix-ui/react-tabs';
|
|
14
14
|
import { Root, Trigger, Portal, Content, Item } from '@radix-ui/react-dropdown-menu';
|
|
15
15
|
import { Root as Root$1 } from '@radix-ui/react-checkbox';
|
|
16
|
-
import * as
|
|
16
|
+
import * as P from '@radix-ui/react-radio-group';
|
|
17
17
|
import { Circle } from 'lucide-react';
|
|
18
18
|
|
|
19
|
-
var $t=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"}}),Y=I__default.forwardRef(({className:o,color:t,type:e,size:i,children:r,asChild:a,...s},l)=>jsx(a?Slot:"div",{className:$t({color:t,type:e,size:i,className:o}),ref:l,...s,children:r}));Y.displayName="Avatar";var Zt=Y;function n(...o){return twMerge(clsx(o))}var Qt=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"}}),j=({className:o,size:t,weight:e,children:i,...r})=>jsx("span",{className:n(Qt({size:t,weight:e,className:o})),...r,children:i});j.displayName="Text";var c=j;var ee=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"}}),et=I__default.forwardRef(({className:o,status:t,size:e,type:i,contrast:r,children:a,asChild:s,...l},p)=>jsx(s?Slot:"span",{className:ee({status:t,size:e,type:i,contrast:r,className:o}),ref:p,...l,children:jsx(c,{size:"overline",weight:"semibold",children:a})}));et.displayName="Badge";var oe=et;var ne=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"}}),it=I__default.forwardRef(({className:o,appearance:t,size:e,disabled:i,children:r,asChild:a,icon:s,...l},p)=>{let u=a?Slot:"button",f=ne({appearance:t,size:e,disabled:i,className:o});return jsxs(u,{type:"button","data-has-icon":!!s,"data-has-text":!!r,className:f.container(),ref:p,...l,children:[s&&jsx(s,{className:f.icon()}),r&&jsx(c,{size:"base",weight:"medium",className:f.text(),children:r})]})});it.displayName="Button";var se=it;var ce=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:i,children:r,...a})=>jsx("div",{className:n(ce({variant:t,direction:e,padding:i,className:o})),...a,children:r});rt.displayName="Card";var de=rt;var ue=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__default.createContext({variant:"default",size:"default",disabled:!1}),nt=I__default.forwardRef(({className:o,variant:t,children:e,size:i,disabled:r,...a},s)=>jsx(M.Root,{ref:s,className:n("flex items-center justify-center gap-0",o),...a,type:"single",children:jsx(at.Provider,{value:{variant:t,size:i,disabled:r},children:e})}));nt.displayName="ScopeGroup";var st=I__default.forwardRef(({className:o,variant:t,size:e,icon:i,text:r,disabled:a,...s},l)=>{let p=I__default.useContext(at),u=ue({variant:p.variant||t,size:p.size||e,disabled:p.disabled||a});return jsxs(M.Item,{ref:l,className:n(u.container(),o),disabled:a,...s,children:[i&&jsx(i,{className:u.icon()}),jsx(c,{size:"base",weight:"normal",className:u.text(),children:r})]})});st.displayName="ScopeItem";var ge={Group:nt,Item:st},be=ge;var we=({value:o,className:t,barBg:e,progressBg:i})=>{let r=`-translate-x-[(-${100-(o||0)}%])`;return jsx(Root$2,{className:n(t,e,"relative w-full overflow-hidden rounded-full "),value:o,children:jsx(Indicator,{className:n(t,"w-full flex-1 rounded-full",r,i)})})},E=we;var C=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"}}),pt=I__default.forwardRef(({className:o,prefixIcon:t,suffixIcon:e,disabled:i,invalid:r,size:a,...s},l)=>{let p=C();return jsxs("div",{className:"relative",children:[t&&jsx("div",{className:p.prefixIcon({invalid:r,size:a}),children:t}),jsx("input",{disabled:i,"data-has-prefix-icon":!!t,"data-has-suffix-icon":!!e,className:n(p.input({disabled:i,invalid:r,size:a}),o,"form-input"),ref:l,...s}),e&&jsx("div",{className:p.suffixIcon({invalid:r,size:a}),children:e})]})});pt.displayName="Input";var Te=pt;var dt=I.forwardRef(({className:o,disabled:t,invalid:e,...i},r)=>{let{input:a}=C();return jsx("textarea",{className:n("min-h-9",o,a({disabled:t,invalid:e})),ref:r,...i})});dt.displayName="Textarea";var Ce=dt;var mt=({title:o,children:t,isVisible:e,CloseIcon:i,maxWidth:r,onClose:a})=>{let[s,l]=useState(e);useEffect(()=>l(e),[e]);let p=u=>{l(!1),a&&a(u);};return jsxs(Fragment,{children:[jsx("div",{className:n("fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",s?void 0:"hidden")}),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:[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:[jsx(c,{size:"H3",weight:"semibold",className:"text-navy-600",children:o}),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?jsx(i,{}):jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.70711 18.7071L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071ZM17.2929 18.7071L13.8201 15.2343C13.4296 14.8438 13.4296 14.2106 13.8201 13.8201C14.2106 13.4296 14.8438 13.4296 15.2343 13.8201L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071Z",fill:"#8D95A7"})}),jsx("span",{className:"sr-only",children:"Close menu"})]})]}),jsx("div",{className:n(" relative h-full p-2"),children:t})]})]})};mt.displayName="Sheet";var Le=mt;var He=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"}}}),ft=forwardRef(({className:o,name:t,disabled:e,children:i,...r},a)=>jsxs("label",{className:n("inline-flex cursor-pointer items-center",o),children:[jsx("input",{...r,ref:a,type:"checkbox",className:n("peer sr-only"),name:t,disabled:e}),jsx("span",{className:He({disabled:e})}),jsx(c,{children:i})]}));ft.displayName="Toggle";var ze=ft;var Ge=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:ke,item:Be,triggerIcon:Oe,content:We}=Ge(),Fe=I__default.forwardRef(({className:o,...t},e)=>jsx(y.Root,{ref:e,className:Be({className:o}),...t})),$e=I__default.forwardRef(({className:o,triggerClassName:t,children:e,...i},r)=>jsxs(y.CollapsibleTrigger,{ref:r,className:ke({className:t}),...i,children:[jsx("div",{className:n("w-full",o),children:e}),jsx(IconOutlineChevronDown,{className:Oe()})]})),Ze=I__default.forwardRef(({className:o,children:t,...e},i)=>jsx(y.CollapsibleContent,{ref:i,className:We(),...e,children:jsx("div",{className:n("px-1 py-2",o),children:t})})),qe={Item:Fe,Trigger:$e,Content:Ze},Ke=qe;var Xe=tv({base:"flex flex-row"}),Ye=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"}}),je=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"}}}),to=g.Root,ut=I__default.forwardRef(({className:o,...t},e)=>jsx(g.List,{ref:e,className:n(Xe(),o),...t}));ut.displayName=g.List.displayName;var gt=I__default.forwardRef(({className:o,children:t,iconPrefix:e,suffix:i,disabled:r,active:a,...s},l)=>{let p=useMemo(()=>r?"disabled":a?"active":"inactive",[r,a]);return jsxs("div",{className:n("relative flex flex-col",r?"":"hover:bg-green-100"),children:[jsxs(g.Trigger,{ref:l,className:n(Ye({iconColor:p,disabled:r,active:a}),o),disabled:r,...s,children:[e&&jsx("span",{children:e}),t,i&&jsx("span",{children:i})]}),jsx("span",{className:n(je({active:a}))})]})});gt.displayName=g.Trigger.displayName;var bt=I__default.forwardRef(({className:o,...t},e)=>jsx(g.Content,{ref:e,className:o,...t}));bt.displayName=g.Content.displayName;function eo(o,t){let e=o!==void 0,[i,r]=useState(t);return [e?o:i,l=>{e||r(l);}]}var oo=({tabs:o,activeKey:t,defaultActiveKey:e,className:i,onValueChange:r,onTabClick:a})=>{var u;let[s,l]=eo(t,e??((u=o[0])==null?void 0:u.value));return jsxs(to,{value:t??s,onValueChange:f=>{if(r)return r(f);l(f);},onClick:f=>a&&a(f,s),className:n("flex flex-col gap-2",i),children:[jsx(ut,{children:o.map(({value:f,label:v,iconPrefix:R,suffix:Gt,disabled:kt,className:Bt})=>jsx(gt,{value:f,iconPrefix:R,suffix:Gt,disabled:kt,active:f===s,className:Bt,children:v&&jsx(c,{size:"base",weight:"medium",children:v})},f))}),o.map(({value:f,content:v,className:R})=>jsx(bt,{value:f,className:R,children:v},f))]})},io=oo;var fo=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)]"}}}}),uo={success:IconOutlineCheckCircle,warning:IconOutlineWarning,error:IconOutlineErrorHexagon,info:IconOutlineInfo},go=I__default.forwardRef(({type:o,message:t,closable:e,...i},r)=>{let[a,s]=useState(!0),l=fo(),p=o?uo[o]:null;return a&&jsxs("div",{className:l.container({type:o}),ref:r,...i,children:[p&&jsx(p,{className:l.icon({type:o})}),jsx("p",{className:l.message({closable:e}),children:t}),e&&jsx(IconOutlineClose,{onClick:()=>s(!1),className:l.icon({type:o})})]})}),bo=go;var To=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"}}}),yo=I__default.forwardRef(({className:o,status:t,value:e,icon:i,...r},a)=>{let s={positive:jsx(IconOutlineArrowUp,{}),negative:jsx(IconOutlineArrowDown,{}),neutral:jsx(IconOutlineMinus,{})};return jsxs("div",{className:To({status:t,className:o}),ref:a,...r,children:[i&&s[i],jsxs(c,{size:"overline",weight:"semibold",children:[e,"%"]})]})}),Co=yo;var H=({options:o,selected:t,onChange:e,className:i})=>jsx(Portal,{children:jsx(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:o.map(r=>jsx(Item,{"data-selected":t===r.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
19
|
+
var $t=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"}}),Y=V__default.forwardRef(({className:o,color:t,type:e,size:r,children:a,asChild:i,...s},l)=>jsx(i?Slot:"div",{className:$t({color:t,type:e,size:r,className:o}),ref:l,...s,children:a}));Y.displayName="Avatar";var Zt=Y;function n(...o){return twMerge(clsx(o))}var Qt=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"}}),j=({className:o,size:t,weight:e,children:r,...a})=>jsx("span",{className:n(Qt({size:t,weight:e,className:o})),...a,children:r});j.displayName="Text";var c=j;var ee=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"}}),et=V__default.forwardRef(({className:o,status:t,size:e,type:r,contrast:a,children:i,asChild:s,...l},p)=>jsx(s?Slot:"span",{className:ee({status:t,size:e,type:r,contrast:a,className:o}),ref:p,...l,children:jsx(c,{size:"overline",weight:"semibold",children:i})}));et.displayName="Badge";var oe=et;var ne=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"}}),rt=V__default.forwardRef(({className:o,appearance:t,size:e,disabled:r,children:a,asChild:i,icon:s,...l},p)=>{let u=i?Slot:"button",f=ne({appearance:t,size:e,disabled:r,className:o});return jsxs(u,{type:"button","data-has-icon":!!s,"data-has-text":!!a,className:f.container(),ref:p,...l,children:[s&&jsx(s,{className:f.icon()}),a&&jsx(c,{size:"base",weight:"medium",className:f.text(),children:a})]})});rt.displayName="Button";var se=rt;var ce=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"}}),at=({className:o,variant:t,direction:e,padding:r,children:a,...i})=>jsx("div",{className:n(ce({variant:t,direction:e,padding:r,className:o})),...i,children:a});at.displayName="Card";var de=at;var ue=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"}}),it=V__default.createContext({variant:"default",size:"default",disabled:!1}),nt=V__default.forwardRef(({className:o,variant:t,children:e,size:r,disabled:a,...i},s)=>jsx(M.Root,{ref:s,className:n("flex items-center justify-center gap-0",o),...i,type:"single",children:jsx(it.Provider,{value:{variant:t,size:r,disabled:a},children:e})}));nt.displayName="ScopeGroup";var st=V__default.forwardRef(({className:o,variant:t,size:e,icon:r,text:a,disabled:i,...s},l)=>{let p=V__default.useContext(it),u=ue({variant:p.variant||t,size:p.size||e,disabled:p.disabled||i});return jsxs(M.Item,{ref:l,className:n(u.container(),o),disabled:i,...s,children:[r&&jsx(r,{className:u.icon()}),jsx(c,{size:"base",weight:"normal",className:u.text(),children:a})]})});st.displayName="ScopeItem";var ge={Group:nt,Item:st},be=ge;var Pe=({value:o,className:t,barBg:e,progressBg:r})=>{let a=`-translate-x-[(-${100-(o||0)}%])`;return jsx(Root$2,{className:n(t,e,"relative w-full overflow-hidden rounded-full "),value:o,children:jsx(Indicator,{className:n(t,"w-full flex-1 rounded-full",a,r)})})},E=Pe;var C=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"}}),pt=V__default.forwardRef(({className:o,prefixIcon:t,suffixIcon:e,disabled:r,invalid:a,size:i,...s},l)=>{let p=C();return jsxs("div",{className:"relative",children:[t&&jsx("div",{className:p.prefixIcon({invalid:a,size:i}),children:t}),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&&jsx("div",{className:p.suffixIcon({invalid:a,size:i}),children:e})]})});pt.displayName="Input";var Te=pt;var dt=V.forwardRef(({className:o,disabled:t,invalid:e,...r},a)=>{let{input:i}=C();return jsx("textarea",{className:n("min-h-9",o,i({disabled:t,invalid:e})),ref:a,...r})});dt.displayName="Textarea";var Ce=dt;var mt=({title:o,children:t,isVisible:e,CloseIcon:r,maxWidth:a,onClose:i})=>{let[s,l]=useState(e);useEffect(()=>l(e),[e]);let p=u=>{l(!1),i&&i(u);};return jsxs(Fragment,{children:[jsx("div",{className:n("fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",s?void 0:"hidden")}),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:[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:[jsx(c,{size:"H3",weight:"semibold",className:"text-navy-600",children:o}),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?jsx(r,{}):jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.70711 18.7071L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071ZM17.2929 18.7071L13.8201 15.2343C13.4296 14.8438 13.4296 14.2106 13.8201 13.8201C14.2106 13.4296 14.8438 13.4296 15.2343 13.8201L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071Z",fill:"#8D95A7"})}),jsx("span",{className:"sr-only",children:"Close menu"})]})]}),jsx("div",{className:n(" relative h-full p-2"),children:t})]})]})};mt.displayName="Sheet";var Le=mt;var He=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"}}}),ft=forwardRef(({className:o,name:t,disabled:e,children:r,...a},i)=>jsxs("label",{className:n("inline-flex cursor-pointer items-center",o),children:[jsx("input",{...a,ref:i,type:"checkbox",className:n("peer sr-only"),name:t,disabled:e}),jsx("span",{className:He({disabled:e})}),jsx(c,{children:r})]}));ft.displayName="Toggle";var Se=ft;var Ge=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:ke,item:Be,triggerIcon:Oe,content:We}=Ge(),Fe=V__default.forwardRef(({className:o,...t},e)=>jsx(y.Root,{ref:e,className:Be({className:o}),...t})),$e=V__default.forwardRef(({className:o,triggerClassName:t,children:e,...r},a)=>jsxs(y.CollapsibleTrigger,{ref:a,className:ke({className:t}),...r,children:[jsx("div",{className:n("w-full",o),children:e}),jsx(IconOutlineChevronDown,{className:Oe()})]})),Ze=V__default.forwardRef(({className:o,children:t,...e},r)=>jsx(y.CollapsibleContent,{ref:r,className:We(),...e,children:jsx("div",{className:n("px-1 py-2",o),children:t})})),qe={Item:Fe,Trigger:$e,Content:Ze},Ke=qe;var Xe=tv({base:"flex flex-row"}),Ye=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"}}),je=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"}}}),to=g.Root,ut=V__default.forwardRef(({className:o,...t},e)=>jsx(g.List,{ref:e,className:n(Xe(),o),...t}));ut.displayName=g.List.displayName;var gt=V__default.forwardRef(({className:o,children:t,iconPrefix:e,suffix:r,disabled:a,active:i,...s},l)=>{let p=useMemo(()=>a?"disabled":i?"active":"inactive",[a,i]);return jsxs("div",{className:n("relative flex flex-col",a?"":"hover:bg-green-100"),children:[jsxs(g.Trigger,{ref:l,className:n(Ye({iconColor:p,disabled:a,active:i}),o),disabled:a,...s,children:[e&&jsx("span",{children:e}),t,r&&jsx("span",{children:r})]}),jsx("span",{className:n(je({active:i}))})]})});gt.displayName=g.Trigger.displayName;var bt=V__default.forwardRef(({className:o,...t},e)=>jsx(g.Content,{ref:e,className:o,...t}));bt.displayName=g.Content.displayName;function eo(o,t){let e=o!==void 0,[r,a]=useState(t);return [e?o:r,l=>{e||a(l);}]}var oo=({tabs:o,activeKey:t,defaultActiveKey:e,className:r,onValueChange:a,onTabClick:i})=>{var u;let[s,l]=eo(t,e??((u=o[0])==null?void 0:u.value));return jsxs(to,{value:t??s,onValueChange:f=>{if(a)return a(f);l(f);},onClick:f=>i&&i(f,s),className:n("flex flex-col gap-2",r),children:[jsx(ut,{children:o.map(({value:f,label:v,iconPrefix:w,suffix:Gt,disabled:kt,className:Bt})=>jsx(gt,{value:f,iconPrefix:w,suffix:Gt,disabled:kt,active:f===s,className:Bt,children:v&&jsx(c,{size:"base",weight:"medium",children:v})},f))}),o.map(({value:f,content:v,className:w})=>jsx(bt,{value:f,className:w,children:v},f))]})},ro=oo;var fo=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)]"}}}}),uo={success:IconOutlineCheckCircle,warning:IconOutlineWarning,error:IconOutlineErrorHexagon,info:IconOutlineInfo},go=V__default.forwardRef(({type:o,message:t,closable:e,...r},a)=>{let[i,s]=useState(!0),l=fo(),p=o?uo[o]:null;return i&&jsxs("div",{className:l.container({type:o}),ref:a,...r,children:[p&&jsx(p,{className:l.icon({type:o})}),jsx("p",{className:l.message({closable:e}),children:t}),e&&jsx(IconOutlineClose,{onClick:()=>s(!1),className:l.icon({type:o})})]})}),bo=go;var To=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"}}}),yo=V__default.forwardRef(({className:o,status:t,value:e,icon:r,...a},i)=>{let s={positive:jsx(IconOutlineArrowUp,{}),negative:jsx(IconOutlineArrowDown,{}),neutral:jsx(IconOutlineMinus,{})};return jsxs("div",{className:To({status:t,className:o}),ref:i,...a,children:[r&&s[r],jsxs(c,{size:"overline",weight:"semibold",children:[e,"%"]})]})}),Co=yo;var H=({options:o,selected:t,onChange:e,className:r})=>jsx(Portal,{children:jsx(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=>jsx(Item,{"data-selected":t===a.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
20
20
|
px-2 py-1 text-base font-normal text-neutral-500 outline-none
|
|
21
21
|
transition-colors focus:bg-indigo-100 focus:text-indigo-600
|
|
22
|
-
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>e&&e(
|
|
23
|
-
p-2 data-[bg=white]:border`),ref:a
|
|
22
|
+
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>e&&e(a.value),children:a.text}))})});var ht=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"]}}}),Pt=({text:o})=>jsxs("div",{className:"flex items-center gap-0.5",children:[jsx("span",{className:"w-0.75 h-0.75 rounded-full bg-neutral-500"}),jsx(c,{size:"overline",weight:"semibold",className:"select-none",children:o})]}),Ho=V__default.forwardRef(({className:o,status:t,text:e,...r},a)=>jsx("div",{className:ht({status:t,className:o}),ref:a,...r,children:jsx(Pt,{text:e})})),So=V__default.forwardRef(({className:o,status:t,options:e,value:r,onChange:a,...i},s)=>{let l=e.find(p=>p.value===r);return jsx("div",{className:ht({status:l==null?void 0:l.status,className:o}),ref:s,...i,children:jsxs(Root,{children:[jsxs(Trigger,{className:"flex items-center gap-0.5 outline-none",children:[jsx(Pt,{text:(l==null?void 0:l.text)||""}),jsx(IconOutlineChevronDown,{"data-status":t,className:"-mr-0.5 size-2"})]}),jsx(H,{selected:l==null?void 0:l.value,options:e,onChange:a,className:"-ml-1 mt-0.5"})]})})}),zo={Menu:So,...Ho},Do=zo;var S=tv({base:"text-midnight-blue-600",variants:{bg:{indigo:"bg-midnight-blue-100",white:"bg-white to-white"}}}),wt=V__default.forwardRef(({className:o,bg:t,value:e,withBar:r,...a},i)=>jsxs("div",{className:n(S({bg:t,className:o}),"flex h-3 flex-col items-center justify-center rounded-full px-1"),ref:i,...a,children:[jsxs(c,{size:"overline",weight:"medium",children:[e,"%"]}),r&&jsx(E,{barBg:t==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:e,className:"h-0.25 mb-0.5"})]})),Go=V__default.forwardRef(({className:o,bg:t,value:e,Icon:r,...a},i)=>jsx(Rt.Root,{ref:i,className:n(S({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",o),...a,children:jsx("div",{className:n(S({bg:t}),"flex size-full items-center justify-center rounded-full"),children:r?jsx(r,{className:"size-3"}):jsxs("div",{className:"flex items-end",children:[jsx(c,{weight:"medium",children:e}),jsx(c,{size:"overline",weight:"medium",children:"%"})]})})})),ko=V__default.forwardRef(({className:o,bg:t,value:e,text:r,...a},i)=>jsxs("div",{"data-bg":t,className:n(S({bg:t,className:o}),`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
|
|
23
|
+
p-2 data-[bg=white]:border`),ref:i,...a,children:[jsxs("div",{className:"flex items-center justify-between gap-1",children:[jsx(c,{weight:"normal",children:r}),jsx(wt,{value:e,bg:t==="white"?"indigo":"white"})]}),jsx(E,{barBg:t==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:e,className:"h-1"})]})),Bo={Indicator:wt,Circle:Go,Expanded:ko},Oo=Bo;var qo=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}}),Tt=V__default.forwardRef(({className:o,size:t,icon:e,text:r,asChild:a,value:i,border:s,active:l,onClose:p,...u},f)=>{let v=a?Slot:"div",w=qo();return jsxs(v,{className:w.container({size:t,border:s,active:l,className:o}),ref:f,...u,children:[e&&jsx(e,{className:w.icon({size:t,border:s,active:l})}),jsx(c,{size:"base",weight:"normal",className:"mx-1",children:r}),p&&jsx(IconOutlineClose,{onClick:()=>p(i),className:n(w.icon({size:t,border:s,active:l}),"cursor-pointer")})]})});Tt.displayName="Chips";var Ko=Tt;var Qo=tv({base:"text-navy-600 text-base font-medium",variants:{invalid:{true:"text-notification-critical-600"}}}),Ct=({className:o,text:t,suffix:e,invalid:r,htmlFor:a,...i})=>jsxs("div",{className:n("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2",o),...i,children:[jsx("label",{className:Qo({invalid:r}),htmlFor:a,children:t}),e&&jsx(e,{})]});Ct.displayName="Label";var Q=Ct;var jo=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"}}),Vt=({className:o,text:t,counter:e,maxLength:r,invalid:a,valueLength:i,...s})=>{let l=jo();return jsxs("div",{className:n("mt-0.5 flex justify-between",o),...s,children:[t&&jsx("span",{className:l.text({invalid:a}),children:t}),e&&r&&jsx("div",{className:l.counter(),children:jsxs(c,{size:"overline",weight:"semibold",children:[i||0,"/",r]})})]})};Vt.displayName="InputDescription";var X=Vt;var er=({id:o,className:t,label:e,description:r,errorMessage:a,invalid:i,children:s,disabled:l,value:p,maxLength:u,...f})=>{let v=a||r.text;return jsxs("div",{className:n("flex flex-col",t),...f,children:[jsx(Q,{...e,invalid:i,htmlFor:o}),V__default.cloneElement(s,{id:o,invalid:i,disabled:l,value:p}),jsx(X,{...r,text:v,invalid:i,maxLength:u,valueLength:p==null?void 0:p.length})]})},or=er;var lr=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"}}),Et=V__default.forwardRef(({className:o,checked:t,defaultChecked:e,disabled:r,...a},i)=>{let s=lr();return jsx("div",{className:"flex size-3 items-center justify-center",children:jsx(Root$1,{ref:i,className:n(s.checkbox({checked:t,disabled:r}),o),checked:t,defaultChecked:e,disabled:r,...a,children:jsxs("div",{className:"-ml-0.5 -mt-0.5 flex size-3 items-center justify-center",children:[(t==="indeterminate"||e==="indeterminate")&&jsx(IconOutlineLine,{className:s.icon({disabled:r})}),(t===!0||e===!0)&&jsx(IconOutlineCheck,{className:s.icon({disabled:r})})]})})})});Et.displayName=Root$1.displayName;var pr=Et;var Ht=V__default.forwardRef(({className:o,disabled:t,...e},r)=>jsx(P.Root,{className:n("grid gap-1",o),disabled:t,...e,ref:r}));Ht.displayName=P.Root.displayName;var St=V__default.forwardRef(({className:o,...t},e)=>jsx(P.Item,{ref:e,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",o),...t,children:jsx(P.Indicator,{className:"text-primary flex items-center justify-center group-disabled:text-neutral-300",children:jsx(Circle,{className:"fill-primary size-[12px] group-disabled:fill-neutral-300"})})}));St.displayName=P.Item.displayName;var mr={Group:Ht,Item:St},fr=mr;var Dt=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"}}),At=V.forwardRef(({className:o,disabled:t,invalid:e,size:r,value:a,onChange:i,scope:s,...l},p)=>{let u=C(),f=Dt();return jsxs("div",{className:f.container({disabled:t}),children:[s&&jsx(Pr,{disabled:t,scope:s,size:r}),jsxs("div",{className:"peer relative",children:[jsx("input",{value:a,onChange:i,disabled:t,"data-scoped":!!s,className:n(u.input({disabled:t,invalid:e,size:r}),f.input(),o),ref:p,...l}),jsx("div",{"data-hasValue":!!a,className:`data-[hasValue=true]:cursor-pointer ${u.suffixIcon({size:r,disabled:t})}`,children:a?jsx(IconOutlineClose,{onClick:()=>i&&i({target:{value:""}})}):jsx(IconOutlineSearch,{})})]})]})}),Pr=({scope:{selected:o,options:t,onChange:e},disabled:r,size:a})=>{let i=t.find(({value:l})=>l===o),s=Dt();return jsxs(Root,{children:[jsxs(Trigger,{className:s.trigger({size:a,disabled:r}),disabled:r,children:[jsx(c,{size:"small",weight:"medium",children:i==null?void 0:i.text}),jsx(IconOutlineChevronDown,{className:"-mr-0.5 size-3"})]}),jsx(H,{selected:o,options:t,onChange:e,className:s.dropdown({size:a})})]})};At.displayName="Search";var Rr=At;
|
|
24
24
|
|
|
25
|
-
export { bo as Alert, Zt as Avatar, oe as Badge, se as Button, de as Card,
|
|
25
|
+
export { bo as Alert, Zt as Avatar, oe as Badge, se as Button, de as Card, pr as Checkbox, Ko as Chips, Ke as Collapsible, or as FormItem, Co as Indicator, Te as Input, X as InputDescription, Q as Label, Oo as Progress, E as ProgressBar, fr as Radio, be as Scope, Rr as Search, Le as Sheet, Do as Status, ro as Tabs, c as Text, Ce as Textarea, Se as Toggle };
|
package/dist/ui/alert.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from 'tailwind-variants';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
4
4
|
type: {
|
|
5
5
|
success: {
|
package/dist/ui/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA6DrD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAXE,MAAM;eACJ,OAAO;wCAiCrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/ui/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Root } from '@radix-ui/react-checkbox';
|
|
3
|
+
export type CheckboxProps = React.ComponentPropsWithoutRef<typeof Root>;
|
|
2
4
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-checkbox").CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
5
|
export default Checkbox;
|
|
4
6
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AA8BhD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,CAAC;AAExE,QAAA,MAAM,QAAQ,kLA2Bb,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
package/dist/ui/collapsible.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
+
export type CollapsibleItemProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>;
|
|
4
|
+
export type CollapsibleTriggerProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleTrigger> & {
|
|
5
|
+
triggerClassName?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CollapsibleContentProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleContent>;
|
|
3
8
|
declare const Collapsible: {
|
|
4
9
|
Item: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
10
|
Trigger: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAqBpE,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,wBAAwB,CAC/D,OAAO,oBAAoB,CAAC,IAAI,CACjC,CAAC;AAaF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAClE,OAAO,oBAAoB,CAAC,kBAAkB,CAC/C,GAAG;IACF,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAgBF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAClE,OAAO,oBAAoB,CAAC,kBAAkB,CAC/C,CAAC;AAcF,QAAA,MAAM,WAAW;;;2BAjCI,MAAM;;;CAqC1B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/ui/form-item.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { LabelProps } from './label';
|
|
3
3
|
import { InputDescriptionProps } from './input-description';
|
|
4
|
-
export type
|
|
4
|
+
export type FormItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
label: LabelProps;
|
|
6
6
|
description: InputDescriptionProps;
|
|
7
7
|
invalid?: boolean;
|
|
@@ -11,6 +11,6 @@ export type FormItem = HTMLAttributes<HTMLDivElement> & {
|
|
|
11
11
|
maxLength?: number;
|
|
12
12
|
id: string;
|
|
13
13
|
};
|
|
14
|
-
declare const FormItem: ({ id, className, label, description, errorMessage, invalid, children, disabled, value, maxLength, ...props }:
|
|
14
|
+
declare const FormItem: ({ id, className, label, description, errorMessage, invalid, children, disabled, value, maxLength, ...props }: FormItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default FormItem;
|
|
16
16
|
//# sourceMappingURL=form-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["../../src/ui/form-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG9E,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["../../src/ui/form-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG9E,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC3D,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,qBAAqB,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,QAAA,MAAM,QAAQ,iHAYX,aAAa,4CAqBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/ui/indicator.d.ts
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
declare const indicatorVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
status: {
|
|
5
|
+
positive: string;
|
|
6
|
+
negative: string;
|
|
7
|
+
neutral: string;
|
|
8
|
+
info: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, "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", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
11
|
+
status: {
|
|
12
|
+
positive: string;
|
|
13
|
+
negative: string;
|
|
14
|
+
neutral: string;
|
|
15
|
+
info: string;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
status: {
|
|
19
|
+
positive: string;
|
|
20
|
+
negative: string;
|
|
21
|
+
neutral: string;
|
|
22
|
+
info: string;
|
|
23
|
+
};
|
|
24
|
+
}>, {
|
|
25
|
+
status: {
|
|
26
|
+
positive: string;
|
|
27
|
+
negative: string;
|
|
28
|
+
neutral: string;
|
|
29
|
+
info: string;
|
|
30
|
+
};
|
|
31
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
32
|
+
status: {
|
|
33
|
+
positive: string;
|
|
34
|
+
negative: string;
|
|
35
|
+
neutral: string;
|
|
36
|
+
info: string;
|
|
37
|
+
};
|
|
38
|
+
}, undefined, "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", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
39
|
+
status: {
|
|
40
|
+
positive: string;
|
|
41
|
+
negative: string;
|
|
42
|
+
neutral: string;
|
|
43
|
+
info: string;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
status: {
|
|
47
|
+
positive: string;
|
|
48
|
+
negative: string;
|
|
49
|
+
neutral: string;
|
|
50
|
+
info: string;
|
|
51
|
+
};
|
|
52
|
+
}>, unknown, unknown, undefined>>;
|
|
53
|
+
export type IndicatorProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof indicatorVariants> & {
|
|
54
|
+
value: string;
|
|
55
|
+
icon?: 'positive' | 'neutral' | 'negative';
|
|
56
|
+
};
|
|
3
57
|
declare const Indicator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
4
58
|
status: {
|
|
5
59
|
positive: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../src/ui/indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../src/ui/indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAarB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC/D,YAAY,CAAC,OAAO,iBAAiB,CAAC,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5C,CAAC;AAEJ,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAJJ,MAAM;WACN,UAAU,GAAG,SAAS,GAAG,UAAU;wCAwB7C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
export declare const inputVariants: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
disabled: {
|
|
5
5
|
true: {
|
|
@@ -188,7 +188,7 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
|
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
190
|
}>, unknown, unknown, undefined>>;
|
|
191
|
-
export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants> & {
|
|
191
|
+
export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & VariantProps<typeof inputVariants> & {
|
|
192
192
|
id?: string;
|
|
193
193
|
value?: string;
|
|
194
194
|
defaultValue?: string;
|
|
@@ -196,7 +196,7 @@ export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & VariantPr
|
|
|
196
196
|
suffixIcon?: React.ReactNode;
|
|
197
197
|
invalid?: boolean;
|
|
198
198
|
};
|
|
199
|
-
declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
199
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
200
200
|
disabled: {
|
|
201
201
|
true: {
|
|
202
202
|
input: string;
|
package/dist/ui/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqCxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,CACP,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SARF,MAAM;YACH,MAAM;mBACC,MAAM;iBACR,KAAK,CAAC,SAAS;iBACf,KAAK,CAAC,SAAS;cAClB,OAAO;0CAuCpB,CAAC;AAGF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../../src/ui/progress-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,
|
|
1
|
+
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../../src/ui/progress-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2B3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/ui/progress.d.ts
CHANGED
|
@@ -39,17 +39,17 @@ declare const progressVariants: import("tailwind-variants").TVReturnType<{
|
|
|
39
39
|
type CommonProps = {
|
|
40
40
|
value: number;
|
|
41
41
|
};
|
|
42
|
-
type
|
|
42
|
+
export type ProgressIndicatorProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
43
43
|
withBar?: boolean;
|
|
44
44
|
};
|
|
45
|
-
type CircleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
45
|
+
export type CircleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
46
46
|
Icon?: React.ElementType;
|
|
47
47
|
};
|
|
48
|
-
type ExpandedProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
48
|
+
export type ExpandedProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
49
49
|
text: React.ReactNode | string;
|
|
50
50
|
};
|
|
51
51
|
declare const Progress: {
|
|
52
|
-
Indicator: React.ForwardRefExoticComponent<
|
|
52
|
+
Indicator: React.ForwardRefExoticComponent<ProgressIndicatorProps>;
|
|
53
53
|
Circle: React.ForwardRefExoticComponent<CircleProps>;
|
|
54
54
|
Expanded: React.ForwardRefExoticComponent<ExpandedProps>;
|
|
55
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAQpB,CAAC;AAEH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAQpB,CAAC;AAEH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GACvE,YAAY,CAAC,OAAO,gBAAgB,CAAC,GACrC,WAAW,GAAG;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA0BJ,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC5D,YAAY,CAAC,OAAO,gBAAgB,CAAC,GACrC,WAAW,GAAG;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B,CAAC;AAyCJ,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC9D,YAAY,CAAC,OAAO,gBAAgB,CAAC,GACrC,WAAW,GAAG;IACZ,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CAChC,CAAC;AA4BJ,QAAA,MAAM,QAAQ,EAAE;IACd,SAAS,EAAE,KAAK,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,CAAC;IACnE,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;CAK1D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/ui/radio.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
-
type
|
|
4
|
-
type
|
|
3
|
+
export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
4
|
+
export type RadioItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
|
|
5
5
|
declare const Radio: {
|
|
6
|
-
Group: React.ForwardRefExoticComponent<
|
|
7
|
-
Item: React.ForwardRefExoticComponent<
|
|
6
|
+
Group: React.ForwardRefExoticComponent<RadioGroupProps>;
|
|
7
|
+
Item: React.ForwardRefExoticComponent<RadioItemProps>;
|
|
8
8
|
};
|
|
9
9
|
export default Radio;
|
|
10
10
|
//# sourceMappingURL=radio.d.ts.map
|
package/dist/ui/radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAC1D,OAAO,mBAAmB,CAAC,IAAI,CAChC,CAAC;AAiBF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,wBAAwB,CACzD,OAAO,mBAAmB,CAAC,IAAI,CAChC,CAAC;AAqBF,QAAA,MAAM,KAAK,EAAE;IACX,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACxD,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;CAIvD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/ui/scope.d.ts
CHANGED
|
@@ -196,8 +196,8 @@ declare const scopeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
196
196
|
};
|
|
197
197
|
};
|
|
198
198
|
}>, unknown, unknown, undefined>>;
|
|
199
|
-
type ScopeGroupProps = Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'> & VariantProps<typeof scopeVariants>;
|
|
200
|
-
type ScopeItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof scopeVariants> & {
|
|
199
|
+
export type ScopeGroupProps = Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'> & VariantProps<typeof scopeVariants>;
|
|
200
|
+
export type ScopeItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof scopeVariants> & {
|
|
201
201
|
text: string;
|
|
202
202
|
icon?: React.ElementType;
|
|
203
203
|
};
|
package/dist/ui/scope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/ui/scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkFjB,CAAC;AAUH,
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/ui/scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkFjB,CAAC;AAUH,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,EAChE,MAAM,CACP,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AA0BrC,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,wBAAwB,CACzD,OAAO,oBAAoB,CAAC,IAAI,CACjC,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B,CAAC;AA+BJ,QAAA,MAAM,KAAK,EAAE;IACX,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACxD,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;CAIvD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/ui/sheets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type
|
|
2
|
+
export type SheetProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
isVisible?: boolean;
|
|
@@ -8,7 +8,7 @@ type Props = {
|
|
|
8
8
|
onClose?: (confirm: boolean) => void;
|
|
9
9
|
};
|
|
10
10
|
declare const Sheet: {
|
|
11
|
-
({ title, children, isVisible, CloseIcon, maxWidth, onClose, }:
|
|
11
|
+
({ title, children, isVisible, CloseIcon, maxWidth, onClose, }: SheetProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
export default Sheet;
|
package/dist/ui/sheets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheets.d.ts","sourceRoot":"","sources":["../../src/ui/sheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,
|
|
1
|
+
{"version":3,"file":"sheets.d.ts","sourceRoot":"","sources":["../../src/ui/sheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CAAC;AACF,QAAA,MAAM,KAAK;oEAOR,UAAU;;CAuEZ,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
package/dist/ui/status.d.ts
CHANGED
|
@@ -57,14 +57,14 @@ declare const statusVariants: import("tailwind-variants").TVReturnType<{
|
|
|
57
57
|
disabled: string[];
|
|
58
58
|
};
|
|
59
59
|
}>, unknown, unknown, undefined>>;
|
|
60
|
-
type StatusSimpleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof statusVariants> & {
|
|
60
|
+
export type StatusSimpleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof statusVariants> & {
|
|
61
61
|
text: string;
|
|
62
62
|
};
|
|
63
|
-
type StatusOption = VariantProps<typeof statusVariants> & {
|
|
63
|
+
export type StatusOption = VariantProps<typeof statusVariants> & {
|
|
64
64
|
text: string;
|
|
65
65
|
value: string;
|
|
66
66
|
};
|
|
67
|
-
type StatusMenuProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof statusVariants> & {
|
|
67
|
+
export type StatusMenuProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof statusVariants> & {
|
|
68
68
|
options: StatusOption[];
|
|
69
69
|
value: string;
|
|
70
70
|
onChange?: (value: string) => void;
|
package/dist/ui/status.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/ui/status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKrD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA+BlB,CAAC;AAEH,
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/ui/status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKrD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA+BlB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAClE,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAyBJ,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAChE,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAgCJ,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG;IACzC,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;CAIxD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/ui/tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type TabItem = {
|
|
2
|
+
export type TabItem = {
|
|
3
3
|
value: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
iconPrefix?: React.ReactNode;
|
|
@@ -8,15 +8,14 @@ type TabItem = {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
export type TabsLayoutProps = {
|
|
12
12
|
tabs: TabItem[];
|
|
13
13
|
activeKey?: string;
|
|
14
14
|
defaultActiveKey?: string;
|
|
15
15
|
className?: string;
|
|
16
16
|
onValueChange?: (value: string) => void;
|
|
17
17
|
onTabClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, value?: string) => void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export declare const TabsLayout: ({ tabs, activeKey, defaultActiveKey, className, onValueChange, onTabClick, }: TabsLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
declare const TabsLayout: ({ tabs, activeKey, defaultActiveKey, className, onValueChange, onTabClick, }: TabsLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
export default TabsLayout;
|
|
22
21
|
//# sourceMappingURL=tabs.d.ts.map
|
package/dist/ui/tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAwHjD,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAwHjD,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,CACX,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EACnD,KAAK,CAAC,EAAE,MAAM,KACX,IAAI,CAAC;CACX,CAAC;AA0BF,QAAA,MAAM,UAAU,iFAOb,eAAe,4CAkDjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dito-uai/components",
|
|
3
|
-
"version": "5.1.0-alpha.
|
|
3
|
+
"version": "5.1.0-alpha.16",
|
|
4
4
|
"descriptin": "Dito's design system component library, made in TSX",
|
|
5
5
|
"repository": "git+https://github.com/ditointernet/dito-uai.git",
|
|
6
6
|
"publishConfig": {
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"react-hook-form": "^7.52.1",
|
|
97
97
|
"zod": "^3.23.8"
|
|
98
98
|
},
|
|
99
|
-
"stableVersion": "5.1.0-alpha.
|
|
99
|
+
"stableVersion": "5.1.0-alpha.15"
|
|
100
100
|
}
|