sodtrack-web-ui 0.53.0 → 0.54.0
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/accordion-form.mjs +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert-message.mjs +1 -1
- package/dist/avatar.d.mts +8 -8
- package/dist/avatar.d.ts +8 -8
- package/dist/avatar.js +1 -50
- package/dist/avatar.mjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chip-input.mjs +1 -1
- package/dist/{chunk-5E3VGYQJ.mjs → chunk-2HRXP2I4.mjs} +1 -1
- package/dist/{chunk-XSOK32QE.mjs → chunk-3GG6BNGR.mjs} +1 -1
- package/dist/{chunk-5FC6Y6GC.mjs → chunk-3U3UI5XP.mjs} +1 -1
- package/dist/{chunk-6AFCO3N6.mjs → chunk-6BGB6K4U.mjs} +1 -1
- package/dist/{chunk-YG4GZU65.mjs → chunk-6PKCW63O.mjs} +1 -1
- package/dist/{chunk-Z7HQYK3T.mjs → chunk-BNV3EY4N.mjs} +1 -1
- package/dist/{chunk-T22XDFYS.mjs → chunk-CXOA3OCG.mjs} +1 -1
- package/dist/{chunk-RLWH7O3A.mjs → chunk-DPSSQH5W.mjs} +1 -1
- package/dist/{chunk-AQPJ5OS4.mjs → chunk-DZLL7IH6.mjs} +1 -1
- package/dist/{chunk-N42EN3DO.mjs → chunk-ENF7AQB7.mjs} +1 -1
- package/dist/{chunk-MLQUPPLV.mjs → chunk-EYEAWZZH.mjs} +1 -1
- package/dist/{chunk-VEYMK4K2.mjs → chunk-GLKJ3FOO.mjs} +1 -1
- package/dist/chunk-HF2DUXOQ.mjs +1 -0
- package/dist/{chunk-L43TLWY4.mjs → chunk-IOSO66TV.mjs} +1 -1
- package/dist/{chunk-B65IFRKA.mjs → chunk-IWVOTU6P.mjs} +1 -1
- package/dist/{chunk-ZXOJX4FK.mjs → chunk-L75FPM36.mjs} +1 -1
- package/dist/{chunk-46WLKGPD.mjs → chunk-LIHWSINZ.mjs} +1 -1
- package/dist/chunk-LRXLPCBB.mjs +1 -0
- package/dist/{chunk-QMBF563Y.mjs → chunk-OCF546MQ.mjs} +1 -1
- package/dist/{chunk-THQYCFLR.mjs → chunk-OR7K6UNK.mjs} +1 -1
- package/dist/{chunk-6NIMZBNH.mjs → chunk-R2C5CBU5.mjs} +1 -1
- package/dist/{chunk-V4O5XAB2.mjs → chunk-S2HBU3YJ.mjs} +1 -1
- package/dist/{chunk-27KPDDYB.mjs → chunk-SNGRNP57.mjs} +1 -1
- package/dist/{chunk-XCVRZRCP.mjs → chunk-V5FJMVUN.mjs} +1 -1
- package/dist/{chunk-7RQ3O67S.mjs → chunk-VZKFL2XP.mjs} +1 -1
- package/dist/{chunk-P7XUCLSY.mjs → chunk-WB3TMFNI.mjs} +1 -1
- package/dist/{chunk-SNIFUQVS.mjs → chunk-XJSC6PKJ.mjs} +2 -10
- package/dist/country-text-field.mjs +1 -1
- package/dist/data-table.mjs +1 -1
- package/dist/date-picker.mjs +1 -1
- package/dist/dialog.mjs +1 -1
- package/dist/drawer-sticky.mjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/flag-select.mjs +1 -1
- package/dist/icons.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -10
- package/dist/index.mjs +1 -1
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.mjs +1 -1
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.mjs +1 -1
- package/dist/list-item.css +1 -1
- package/dist/list-item.mjs +1 -1
- package/dist/rating.mjs +1 -1
- package/dist/search-bar.mjs +1 -1
- package/dist/select.mjs +1 -1
- package/dist/snackbar.mjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/tab.mjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tailwind-preset.js +1 -1
- package/dist/tailwind-preset.mjs +1 -1
- package/dist/text-field.mjs +1 -1
- package/dist/time-picker.mjs +1 -1
- package/package.json +1 -2
- package/dist/chunk-7TPCN744.mjs +0 -1
- package/dist/chunk-PTBL4WCK.mjs +0 -1
- package/dist/chunk-QUFOGBCP.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-L43TLWY4.mjs';import {a}from'./chunk-QHBCNAWO.mjs';import {b}from'./chunk-P7XUCLSY.mjs';import {d}from'./chunk-7RQ3O67S.mjs';import {a as a$1}from'./chunk-WGMDH4XX.mjs';import {a as a$3}from'./chunk-BVHU5ZT3.mjs';import {c}from'./chunk-AQPJ5OS4.mjs';import {c as c$1,h}from'./chunk-7TPCN744.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import bt,{createContext,useMemo,useCallback,useState,useRef,useEffect,useContext,useId}from'react';import*as Lt from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Gt=({title:t,titleLines:o=2,description:r,descriptionLines:e=1,Icon:s,iconAsColumn:i=!0,className:a,...n})=>jsxs("div",{className:a$2("flex gap-2 py-4 pl-4 pr-6",i&&"flex-col items-center gap-1",!i&&!r&&"items-center"),...n,children:[s&&jsx(s,{className:a$2("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$2("flex flex-col gap-1",i&&"text-center"),children:[jsx("p",{className:a$2("leading-[130%] text-neutral-500",!!r&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),r&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:e?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e}:void 0,children:r})]})]}),at=Gt;var $t=bt.memo(({handleSelect:t,NoResultsIcon:o,noResultsLabel:r,noResultsDescription:e,noResultsDescriptionLines:s,noResultsAsColumn:i,noResultsButtonOnClick:a$3,optionDescriptionLines:n,noResultsButtonLabel:w,filteredOptions:c$1,inputRect:p,inputRef:f,popoverPosition:x,optionsListRef:k,selectedOption:m,options:R,setFilteredOptions:h})=>jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:k,className:"pointer-events-auto fixed z-50 hidden w-full",style:p?{width:`${p.width}px`,left:p.left,top:x==="bottom"?`${p.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",children:[c$1.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(at,{title:r,description:e,Icon:o,iconAsColumn:i,descriptionLines:s}),a$3&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:u=>{k.current.style.display="none",f.current.value="",h(R),a$3();},children:w})]})]}),c$1.map(u=>jsx(Mt,{title:u.label,disabled:u.disabled,description:u.description,descriptionLines:n,onClick:()=>t(u),className:a$2(m?.value===u.value&&"bg-primary-200")},u.key??u.value))]})})})),Ct=$t;var qt=336,rr=({options:t,defaultSelectedOption:o,onSelect:r,onClick:e,onInputChange:s,error:i,helperText:a,label:n,placeholder:w,value:c,size:p="md",optionDescriptionLines:f=1,noResultsLabel:x,noResultsIcon:k,noResultsDescription:m,noResultsDescriptionLines:R,noResultsAsColumn:h,noResultsButtonOnClick:u,noResultsButtonLabel:A,className:j,disabled:b})=>{let[d,y]=useState(o??null),L=useRef(null),g=useRef(null),[nt,st]=useState(),[lt,T]=useState([]),[ct,H]=useState("bottom"),[G,K]=useState(),U=qt,N=useCallback(v=>{L.current.style.display="none",g.current.value=v.label,y(v),r?.(v);},[r]),C=useCallback(()=>{if(!g?.current)return;let v=g.current.getBoundingClientRect();st(v);let O=G?G.height:U,M=window.innerHeight-v.bottom>O,Q=v.top>O;H(M?"bottom":Q?"top":"bottom");},[G?.height]),$=useCallback(()=>{let v=t.filter(O=>O.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(T(v),L?.current){let O=L.current.getBoundingClientRect();K(O);}},[t]);return useEffect(()=>{T(t);},[t]),useEffect(()=>{if(!c){y(null),g.current&&(g.current.value="");return}(!g.current?.value||d?.value!==c.value)&&(y(c),g.current.value=c.label);},[c]),a$5(L,()=>{L.current.style.display="none",d&&g.current&&(g.current.value=d.label);}),useEffect(()=>{if(g?.current)return C(),g.current.addEventListener("mousedown",C),g.current.addEventListener("input",$),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{g.current?.removeEventListener("mousedown",C),g.current?.removeEventListener("input",$),window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C);}},[C,$]),jsxs("div",{className:a$2("relative",j),children:[jsx(a$4,{ref:g,autoComplete:"off",list:"",selectMode:!0,onChange:v=>{v.target.value||(y(null),r?.(null)),s?.(v);},onClean:()=>{y(null),T(t),r?.(null);},onClick:v=>{L.current.style.display="flex",e?.(v);},onBlur:()=>{d&&g.current&&(g.current.value=d.label);},label:n,helperText:a,placeholder:w,size:p,error:i,disabled:b}),jsx(Ct,{handleSelect:N,noResultsLabel:x,NoResultsIcon:k,optionDescriptionLines:f,noResultsAsColumn:h,noResultsButtonLabel:A,noResultsButtonOnClick:u,noResultsDescription:m,noResultsDescriptionLines:R,filteredOptions:lt,inputRect:nt,inputRef:g,popoverPosition:ct,optionsListRef:L,selectedOption:d,options:t,setFilteredOptions:T})]})};var Kt=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,disabled:i=!1,className:a,...n})=>jsxs("div",{className:"flex w-full flex-col",...n,children:[jsx("p",{className:a$2("break-all",!!e&&"font-medium"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:o}),e&&jsx("p",{className:a$2("text-sm",i?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:e})]}),Y=Kt;var mr=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,startIcon:i,badgeContent:a,hasDivider:n=!1,disabled:w=!1,onSelect:c,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:w,onClick:c,hasDivider:n,className:a$2(!w&&"cursor-pointer",p),...f,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:w}),jsxs("div",{className:"flex gap-2",children:[a&&jsx(a$3,{content:a,size:"lg",variant:"alert",className:a$2("self-center",w&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var St=({children:t,title:o,titleLines:r=1,description:e="",descriptionLines:s,startIcon:i,hasDivider:a=!1,disabled:n=!1,checked:w,onCheckedChange:c,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:a,...f,className:a$2("pr-6",p),children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:n}),jsx(b,{size:"sm",checked:w,onCheckedChange:c,className:"self-center",disabled:n})]});var E=336,Ft=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:E,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),I=()=>{let t=useContext(Ft);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Dt=({children:t})=>{let o=useRef(null),r=useRef(null),e=useRef(null),s=useId(),[i,a]=useState(),[n,w]=useState(!0),[c,p]=useState([]),[f,x]=useState(-1),[k,m]=useState("bottom"),[R,h]=useState(),[u,A]=useState(E);return jsx(Ft.Provider,{value:{optionsListRef:o,inputRef:r,scrollAreaRef:e,autocompleteId:s,inputRect:i,showChips:n,filteredOptions:c,currentFocus:f,popoverPosition:k,setFilteredOptions:p,setCurrentFocus:x,setShowChips:w,setPopoverPosition:m,setInputRect:a,optionsListHeight:u,optionsListRect:R,setOptionsListRect:h,setOptionsListHeight:A},children:t})};var le=({option:t,onMountWidth:o,size:r})=>{let e=useRef(null);return useEffect(()=>{e.current&&o?.(e.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:e,className:"flex-shrink-0",size:r==="md"?"xs":"sm",hasCloseIcon:!1,children:t.label})},Tt=le;var ge=150,we=bt.memo(({selectedOptions:t,error:o,onCleanSelectedOptions:r,disabled:e,size:s})=>{let{autocompleteId:i,inputRect:a,inputRef:n,optionsListRef:w}=I(),c=bt.useRef(null),[p,f]=bt.useState(new Map),x=useMemo(()=>{if(!a?.width)return [];let m=0,R=a.width-ge,h=0;for(let u=0;u<t.length&&(h+=p.get(u)??0,!(h>R));u++)m++;return t.slice(0,m)},[a?.width,t,p]),k=useCallback(()=>{e||(n?.current?.focus(),w.current.style.display="flex");},[e]);return jsxs("div",{onClick:k,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",e&&"cursor-not-allowed"),style:{maxWidth:a?.width?a?.width:void 0,height:a?.height?a?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:c,children:x.map((m,R)=>jsx(Tt,{option:m,onMountWidth:h=>f(u=>new Map(u).set(R,h)),size:s},`chip-input-${i}-${m.value}`))}),t.length>x.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!o&&jsx(a$3,{content:String(t.length),size:s}),o&&t.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:m=>{m.stopPropagation(),r();}})]})}),Ht=we;var be=bt.memo(({option:t,index:o,onPressOption:r,isSelected:e,optionDescriptionLines:s})=>{let{currentFocus:i,inputRef:a}=I();return jsx(St,{title:t.label,checked:e,disabled:t.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:n=>{t.disabled||(a?.current?.value&&n.preventDefault(),r?.(t,n));},description:t.description,descriptionLines:s})}),ht=be;var xe=bt.memo(({selectedOptions:t,handleSelect:o,NoResultsIcon:r,noResultsLabel:e,noResultsDescription:s,noResultsDescriptionLines:i,noResultsAsColumn:a$2,noResultsButtonOnClick:n,optionDescriptionLines:w,noResultsButtonLabel:c$1})=>{let{popoverPosition:p,scrollAreaRef:f,optionsListRef:x,filteredOptions:k,inputRect:m,autocompleteId:R,inputRef:h,optionsListHeight:u}=I(),A=useCallback(b=>t.some(d=>d.value===b.value),[t]),j=useMemo(()=>t.filter(b=>b.label.toLowerCase().includes(h?.current?.value.toLowerCase()??"")),[t,h?.current?.value]);return jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:x,className:"pointer-events-auto fixed z-50 hidden w-full",style:m?{width:`${m.width}px`,left:m.left,top:p==="bottom"?`${m.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-m.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex w-full flex-col rounded-lg bg-neutral-50",style:{maxHeight:u+"px"},ref:f,children:[k.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(at,{title:e,description:s,Icon:r,iconAsColumn:a$2,descriptionLines:i}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{x.current.style.display="none",h.current.value="",n();},children:c$1})]})]}),j.map((b,d)=>jsx(ht,{option:b,index:d,onPressOption:y=>o(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${R}-${b.key??b.value}`)),k.map((b,d)=>!t.some(y=>y.value===b.value)&&jsx(ht,{option:b,index:d,onPressOption:y=>o(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${R}-${b.key??b.value}`))]})})})}),Xt=xe;var ze=bt.memo(({selectedOptions:t,onSelect:o,error:r,helperText:e,label:s,placeholder:i,options:a,onInputChange:n,size:w,disabled:c})=>{let{setCurrentFocus:p,setFilteredOptions:f,optionsListRef:x,inputRef:k}=I();return jsx(a$4,{ref:k,autoComplete:"off",list:"",disabled:c,selectMode:!0,onChange:m=>{p(-1),n?.(m.target.value);},onClean:()=>{p(-1),f(a),o?.(null,t);},onClick:()=>{c||(x.current.style.display="flex");},error:r,helperText:e,label:s,placeholder:i,fixedTopLabel:t.length>0,size:w})}),Bt=ze;var Yt=({options:t,defaultSelectedOptions:o,onSelect:r,error:e,helperText:s,label:i,placeholder:a,noResultsLabel:n,noResultsIcon:w,noResultsDescription:c,noResultsDescriptionLines:p,noResultsAsColumn:f,noResultsButtonOnClick:x,noResultsButtonLabel:k,className:m,onInputChange:R,value:h,loading:u,size:A="md",optionDescriptionLines:j=1,disabled:b})=>{let{inputRef:d,optionsListRef:y,setFilteredOptions:L,setShowChips:g,setInputRect:nt,setPopoverPosition:st,setCurrentFocus:lt,showChips:T,setOptionsListRect:ct,optionsListRect:H,setOptionsListHeight:G}=I(),K=useRef(!1),[U,N]=useState(o??[]),C=useCallback(z=>{N(P=>{let S,_=P.findIndex(jt=>jt.value===z.value);return _===-1?(S=P.concat(z),r?.(z,S),S):(S=P.toSpliced(_,1),r?.(z,S),S)});},[r]),$=useCallback(()=>{N([]),L(t),r?.(null,[]);},[]),v=useCallback(()=>{g(!1);},[]),O=useCallback(()=>{g(!0);},[]),M=useCallback(()=>{if(!d?.current)return;let z=d.current.getBoundingClientRect();nt(z);let P=H?H.height>E?E:H.height:E,S=window.innerHeight-z.bottom>P,_=z.top>P;st(S?"bottom":_?"top":"bottom"),G(_?E:window.innerHeight-z.bottom>E?E:window.innerHeight-z.bottom);},[H?.height]),Q=useCallback(()=>{let z=t.filter(P=>P.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(L(z),y?.current){let P=y.current.getBoundingClientRect();ct(P);}},[t,y?.current]);return useEffect(()=>{L(t);},[t]),a$5(y,()=>{y.current.style.display="none",lt(-1);}),useEffect(()=>{if(d?.current)return M(),d.current.addEventListener("mousedown",M),d.current.addEventListener("input",Q),d.current.addEventListener("focusin",v),d.current.addEventListener("focusout",O),window.addEventListener("scroll",M,!0),window.addEventListener("resize",M),()=>{d.current?.removeEventListener("mousedown",M),d.current?.removeEventListener("input",M),d.current?.removeEventListener("focusout",O),d.current?.removeEventListener("focusin",v),window.removeEventListener("scroll",M,!0),window.removeEventListener("resize",M);}},[M,O,v,Q]),useEffect(()=>{h&&(N(h),g(!0));},[h]),useEffect(()=>{u||o&&o.length&&!K.current&&(N(o),K.current=!0,g(!0));},[o,u]),jsxs("div",{className:a$2("relative",m),children:[jsx(Bt,{selectedOptions:U,onSelect:r,error:e,helperText:s,label:i,placeholder:a,handleSelect:C,options:t,onInputChange:R,size:A,disabled:b}),T&&jsx(Ht,{selectedOptions:U,disabled:b,error:e,onCleanSelectedOptions:$,size:A}),jsx(Xt,{handleSelect:C,selectedOptions:U,noResultsLabel:n,NoResultsIcon:w,optionDescriptionLines:j,noResultsAsColumn:f,noResultsButtonLabel:k,noResultsButtonOnClick:x,noResultsDescription:c,noResultsDescriptionLines:p})]})};var Oo=t=>jsx(Dt,{children:jsx(Yt,{...t})});var Oe=({children:t,hasDescription:o=!1,disabled:r=!1,hasDivider:e=!1,className:s,onClick:i,...a})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("line-height-[120%] flex flex-row gap-4 pl-4 pr-3",o?"py-3":"py-[0.875rem]",r?"text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",s),onClick:n=>{r||i?.(n);},...a,children:t}),e&&jsx(a$1,{})]}),W=Oe;var Mt=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,startIcon:i,hasDivider:a=!1,disabled:n=!1,className:w,...c})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:a,className:w,...c,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:n})]});export{rr as a,Mt as b,mr as c,St as d,Oo as e};
|
|
1
|
+
import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-IOSO66TV.mjs';import {a}from'./chunk-QHBCNAWO.mjs';import {b}from'./chunk-WB3TMFNI.mjs';import {d}from'./chunk-VZKFL2XP.mjs';import {a as a$1}from'./chunk-WGMDH4XX.mjs';import {a as a$3}from'./chunk-BVHU5ZT3.mjs';import {c}from'./chunk-DZLL7IH6.mjs';import {c as c$1,h}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import bt,{createContext,useMemo,useCallback,useState,useRef,useEffect,useContext,useId}from'react';import*as Lt from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Gt=({title:t,titleLines:o=2,description:r,descriptionLines:e=1,Icon:s,iconAsColumn:i=!0,className:a,...n})=>jsxs("div",{className:a$2("flex gap-2 py-4 pl-4 pr-6",i&&"flex-col items-center gap-1",!i&&!r&&"items-center"),...n,children:[s&&jsx(s,{className:a$2("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$2("flex flex-col gap-1",i&&"text-center"),children:[jsx("p",{className:a$2("leading-[130%] text-neutral-500",!!r&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),r&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:e?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e}:void 0,children:r})]})]}),at=Gt;var $t=bt.memo(({handleSelect:t,NoResultsIcon:o,noResultsLabel:r,noResultsDescription:e,noResultsDescriptionLines:s,noResultsAsColumn:i,noResultsButtonOnClick:a$3,optionDescriptionLines:n,noResultsButtonLabel:w,filteredOptions:c$1,inputRect:p,inputRef:f,popoverPosition:x,optionsListRef:k,selectedOption:m,options:z,setFilteredOptions:h})=>jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:k,className:"pointer-events-auto fixed z-50 hidden w-full",style:p?{width:`${p.width}px`,left:p.left,top:x==="bottom"?`${p.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",children:[c$1.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(at,{title:r,description:e,Icon:o,iconAsColumn:i,descriptionLines:s}),a$3&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:u=>{k.current.style.display="none",f.current.value="",h(z),a$3();},children:w})]})]}),c$1.map(u=>jsx(Mt,{title:u.label,disabled:u.disabled,description:u.description,descriptionLines:n,onClick:()=>t(u),className:a$2(m?.value===u.value&&"bg-primary-200")},u.key??u.value))]})})})),Ct=$t;var qt=336,rr=({options:t,defaultSelectedOption:o,onSelect:r,onClick:e,onInputChange:s,error:i,helperText:a,label:n,placeholder:w,value:c,size:p="md",optionDescriptionLines:f=1,noResultsLabel:x,noResultsIcon:k,noResultsDescription:m,noResultsDescriptionLines:z,noResultsAsColumn:h,noResultsButtonOnClick:u,noResultsButtonLabel:A,className:V,disabled:b})=>{let[d,y]=useState(o??null),L=useRef(null),g=useRef(null),[nt,st]=useState(),[lt,T]=useState([]),[ct,H]=useState("bottom"),[G,K]=useState(),U=qt,N=useCallback(v=>{L.current.style.display="none",g.current.value=v.label,y(v),r?.(v);},[r]),C=useCallback(()=>{if(!g?.current)return;let v=g.current.getBoundingClientRect();st(v);let O=G?G.height:U,M=window.innerHeight-v.bottom>O,Q=v.top>O;H(M?"bottom":Q?"top":"bottom");},[G?.height]),$=useCallback(()=>{let v=t.filter(O=>O.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(T(v),L?.current){let O=L.current.getBoundingClientRect();K(O);}},[t]);return useEffect(()=>{T(t);},[t]),useEffect(()=>{if(!c){y(null),g.current&&(g.current.value="");return}(!g.current?.value||d?.value!==c.value)&&(y(c),g.current.value=c.label);},[c]),a$5(L,()=>{L.current.style.display="none",d&&g.current&&(g.current.value=d.label);}),useEffect(()=>{if(g?.current)return C(),g.current.addEventListener("mousedown",C),g.current.addEventListener("input",$),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{g.current?.removeEventListener("mousedown",C),g.current?.removeEventListener("input",$),window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C);}},[C,$]),jsxs("div",{className:a$2("relative",V),children:[jsx(a$4,{ref:g,autoComplete:"off",list:"",selectMode:!0,onChange:v=>{v.target.value||(y(null),r?.(null)),s?.(v);},onClean:()=>{y(null),T(t),r?.(null);},onClick:v=>{L.current.style.display="flex",e?.(v);},onBlur:()=>{d&&g.current&&(g.current.value=d.label);},label:n,helperText:a,placeholder:w,size:p,error:i,disabled:b}),jsx(Ct,{handleSelect:N,noResultsLabel:x,NoResultsIcon:k,optionDescriptionLines:f,noResultsAsColumn:h,noResultsButtonLabel:A,noResultsButtonOnClick:u,noResultsDescription:m,noResultsDescriptionLines:z,filteredOptions:lt,inputRect:nt,inputRef:g,popoverPosition:ct,optionsListRef:L,selectedOption:d,options:t,setFilteredOptions:T})]})};var Kt=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,disabled:i=!1,className:a,...n})=>jsxs("div",{className:"flex w-full flex-col",...n,children:[jsx("p",{className:a$2("break-all",!!e&&"font-medium"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:o}),e&&jsx("p",{className:a$2("text-sm",i?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:e})]}),Y=Kt;var mr=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,startIcon:i,badgeContent:a,hasDivider:n=!1,disabled:w=!1,onSelect:c,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:w,onClick:c,hasDivider:n,className:a$2(!w&&"cursor-pointer",p),...f,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:w}),jsxs("div",{className:"flex gap-2",children:[a&&jsx(a$3,{content:a,size:"lg",variant:"alert",className:a$2("self-center",w&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var St=({children:t,title:o,titleLines:r=1,description:e="",descriptionLines:s,startIcon:i,hasDivider:a=!1,disabled:n=!1,checked:w,onCheckedChange:c,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:a,...f,className:a$2("pr-6",p),children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:n}),jsx(b,{size:"sm",checked:w,onCheckedChange:c,className:"self-center",disabled:n})]});var E=336,Ft=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:E,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),I=()=>{let t=useContext(Ft);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Dt=({children:t})=>{let o=useRef(null),r=useRef(null),e=useRef(null),s=useId(),[i,a]=useState(),[n,w]=useState(!0),[c,p]=useState([]),[f,x]=useState(-1),[k,m]=useState("bottom"),[z,h]=useState(),[u,A]=useState(E);return jsx(Ft.Provider,{value:{optionsListRef:o,inputRef:r,scrollAreaRef:e,autocompleteId:s,inputRect:i,showChips:n,filteredOptions:c,currentFocus:f,popoverPosition:k,setFilteredOptions:p,setCurrentFocus:x,setShowChips:w,setPopoverPosition:m,setInputRect:a,optionsListHeight:u,optionsListRect:z,setOptionsListRect:h,setOptionsListHeight:A},children:t})};var le=({option:t,onMountWidth:o,size:r})=>{let e=useRef(null);return useEffect(()=>{e.current&&o?.(e.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:e,className:"flex-shrink-0",size:r==="md"?"xs":"sm",hasCloseIcon:!1,children:t.label})},Tt=le;var ge=150,we=bt.memo(({selectedOptions:t,error:o,onCleanSelectedOptions:r,disabled:e,size:s})=>{let{autocompleteId:i,inputRect:a,inputRef:n,optionsListRef:w}=I(),c=bt.useRef(null),[p,f]=bt.useState(new Map),x=useMemo(()=>{if(!a?.width)return [];let m=0,z=a.width-ge,h=0;for(let u=0;u<t.length&&(h+=p.get(u)??0,!(h>z));u++)m++;return t.slice(0,m)},[a?.width,t,p]),k=useCallback(()=>{e||(n?.current?.focus(),w.current.style.display="flex");},[e]);return jsxs("div",{onClick:k,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",e&&"cursor-not-allowed"),style:{maxWidth:a?.width?a?.width:void 0,height:a?.height?a?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:c,children:x.map((m,z)=>jsx(Tt,{option:m,onMountWidth:h=>f(u=>new Map(u).set(z,h)),size:s},`chip-input-${i}-${m.value}`))}),t.length>x.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!o&&jsx(a$3,{content:String(t.length),size:s}),o&&t.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:m=>{m.stopPropagation(),r();}})]})}),Ht=we;var be=bt.memo(({option:t,index:o,onPressOption:r,isSelected:e,optionDescriptionLines:s})=>{let{currentFocus:i,inputRef:a}=I();return jsx(St,{title:t.label,checked:e,disabled:t.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:n=>{t.disabled||(a?.current?.value&&n.preventDefault(),r?.(t,n));},description:t.description,descriptionLines:s})}),ht=be;var xe=bt.memo(({selectedOptions:t,handleSelect:o,NoResultsIcon:r,noResultsLabel:e,noResultsDescription:s,noResultsDescriptionLines:i,noResultsAsColumn:a$2,noResultsButtonOnClick:n,optionDescriptionLines:w,noResultsButtonLabel:c$1})=>{let{popoverPosition:p,scrollAreaRef:f,optionsListRef:x,filteredOptions:k,inputRect:m,autocompleteId:z,inputRef:h,optionsListHeight:u}=I(),A=useCallback(b=>t.some(d=>d.value===b.value),[t]),V=useMemo(()=>t.filter(b=>b.label.toLowerCase().includes(h?.current?.value.toLowerCase()??"")),[t,h?.current?.value]);return jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:x,className:"pointer-events-auto fixed z-50 hidden w-full",style:m?{width:`${m.width}px`,left:m.left,top:p==="bottom"?`${m.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-m.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex w-full flex-col rounded-lg bg-neutral-50",style:{maxHeight:u+"px"},ref:f,children:[k.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(at,{title:e,description:s,Icon:r,iconAsColumn:a$2,descriptionLines:i}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{x.current.style.display="none",h.current.value="",n();},children:c$1})]})]}),V.map((b,d)=>jsx(ht,{option:b,index:d,onPressOption:y=>o(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${z}-${b.key??b.value}`)),k.map((b,d)=>!t.some(y=>y.value===b.value)&&jsx(ht,{option:b,index:d,onPressOption:y=>o(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${z}-${b.key??b.value}`))]})})})}),Xt=xe;var Re=bt.memo(({selectedOptions:t,onSelect:o,error:r,helperText:e,label:s,placeholder:i,options:a,onInputChange:n,size:w,disabled:c})=>{let{setCurrentFocus:p,setFilteredOptions:f,optionsListRef:x,inputRef:k}=I();return jsx(a$4,{ref:k,autoComplete:"off",list:"",disabled:c,selectMode:!0,onChange:m=>{p(-1),n?.(m.target.value);},onClean:()=>{p(-1),f(a),o?.(null,t);},onClick:()=>{c||(x.current.style.display="flex");},error:r,helperText:e,label:s,placeholder:i,fixedTopLabel:t.length>0,size:w})}),Bt=Re;var Yt=({options:t,defaultSelectedOptions:o,onSelect:r,error:e,helperText:s,label:i,placeholder:a,noResultsLabel:n,noResultsIcon:w,noResultsDescription:c,noResultsDescriptionLines:p,noResultsAsColumn:f,noResultsButtonOnClick:x,noResultsButtonLabel:k,className:m,onInputChange:z,value:h,loading:u,size:A="md",optionDescriptionLines:V=1,disabled:b})=>{let{inputRef:d,optionsListRef:y,setFilteredOptions:L,setShowChips:g,setInputRect:nt,setPopoverPosition:st,setCurrentFocus:lt,showChips:T,setOptionsListRect:ct,optionsListRect:H,setOptionsListHeight:G}=I(),K=useRef(!1),[U,N]=useState(o??[]),C=useCallback(R=>{N(P=>{let S,_=P.findIndex(Vt=>Vt.value===R.value);return _===-1?(S=P.concat(R),r?.(R,S),S):(S=P.toSpliced(_,1),r?.(R,S),S)});},[r]),$=useCallback(()=>{N([]),L(t),r?.(null,[]);},[]),v=useCallback(()=>{g(!1);},[]),O=useCallback(()=>{g(!0);},[]),M=useCallback(()=>{if(!d?.current)return;let R=d.current.getBoundingClientRect();nt(R);let P=H?H.height>E?E:H.height:E,S=window.innerHeight-R.bottom>P,_=R.top>P;st(S?"bottom":_?"top":"bottom"),G(_?E:window.innerHeight-R.bottom>E?E:window.innerHeight-R.bottom);},[H?.height]),Q=useCallback(()=>{let R=t.filter(P=>P.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(L(R),y?.current){let P=y.current.getBoundingClientRect();ct(P);}},[t,y?.current]);return useEffect(()=>{L(t);},[t]),a$5(y,()=>{y.current.style.display="none",lt(-1);}),useEffect(()=>{if(d?.current)return M(),d.current.addEventListener("mousedown",M),d.current.addEventListener("input",Q),d.current.addEventListener("focusin",v),d.current.addEventListener("focusout",O),window.addEventListener("scroll",M,!0),window.addEventListener("resize",M),()=>{d.current?.removeEventListener("mousedown",M),d.current?.removeEventListener("input",M),d.current?.removeEventListener("focusout",O),d.current?.removeEventListener("focusin",v),window.removeEventListener("scroll",M,!0),window.removeEventListener("resize",M);}},[M,O,v,Q]),useEffect(()=>{h&&(N(h),g(!0));},[h]),useEffect(()=>{u||o&&o.length&&!K.current&&(N(o),K.current=!0,g(!0));},[o,u]),jsxs("div",{className:a$2("relative",m),children:[jsx(Bt,{selectedOptions:U,onSelect:r,error:e,helperText:s,label:i,placeholder:a,handleSelect:C,options:t,onInputChange:z,size:A,disabled:b}),T&&jsx(Ht,{selectedOptions:U,disabled:b,error:e,onCleanSelectedOptions:$,size:A}),jsx(Xt,{handleSelect:C,selectedOptions:U,noResultsLabel:n,NoResultsIcon:w,optionDescriptionLines:V,noResultsAsColumn:f,noResultsButtonLabel:k,noResultsButtonOnClick:x,noResultsDescription:c,noResultsDescriptionLines:p})]})};var Oo=t=>jsx(Dt,{children:jsx(Yt,{...t})});var Oe=({children:t,hasDescription:o=!1,disabled:r=!1,hasDivider:e=!1,className:s,onClick:i,...a})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("line-height-[120%] flex flex-row gap-4 pl-4 pr-3",o?"py-3":"py-[0.875rem]",r?"text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",s),onClick:n=>{r||i?.(n);},...a,children:t}),e&&jsx(a$1,{})]}),W=Oe;var Mt=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,startIcon:i,hasDivider:a=!1,disabled:n=!1,className:w,...c})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:a,className:w,...c,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:n})]});export{rr as a,Mt as b,mr as c,St as d,Oo as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-IOSO66TV.mjs';import {p}from'./chunk-XJSC6PKJ.mjs';import {jsx}from'react/jsx-runtime';var i=({size:t="md",...p$1})=>jsx(a,{endIcon:jsx(p,{}),type:"search",...p$1,size:t});export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-KTRSJBA4.mjs';import {a,b,c,d,e,f,g,h,i as i$1}from'./chunk-E5G7444M.mjs';import {a as a$3}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-KTRSJBA4.mjs';import {a,b,c,d,e,f,g,h,i as i$1}from'./chunk-E5G7444M.mjs';import {a as a$3}from'./chunk-IOSO66TV.mjs';import {a as a$4}from'./chunk-QHBCNAWO.mjs';import {g as g$1}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import V,{useId,useRef,useState,useEffect,useMemo}from'react';import*as S from'@radix-ui/react-portal';import {jsx,jsxs}from'react/jsx-runtime';var M=56,p=6,K=(o=>(o.CL="CL",o.AR="AR",o.CO="CO",o.GT="GT",o.MX="MX",o.PE="PE",o.BR="BR",o.UY="UY",o.US="US",o))(K||{}),I=new Map([["CL",{name:"Chile",flag:a}],["AR",{name:"Argentina",flag:b}],["CO",{name:"Colombia",flag:c}],["GT",{name:"Guatemala",flag:d}],["MX",{name:"Mexico",flag:e}],["PE",{name:"Per\xFA",flag:f}],["BR",{name:"Brasil",flag:g}],["UY",{name:"Uruguay",flag:h}],["US",{name:"Estados Unidos",flag:i$1}]]),i=Array.from(I.entries()),ge=({noResults:x,selectedCountry:d,onSelect:A,className:U,size:B="md",...m})=>{let H=useId(),l=useRef(null),r=useRef(null),o=useRef(null),[G,Y]=useState("bottom"),[s,$]=useState(),[k,z]=useState(-1),X=e=>{l.current.style.display="none",A?.(e);};useEffect(()=>{if(!r.current)return;let e=()=>{if(!r.current)return;let a=M*(i.length<p?i.length:p)+16,c=r.current.getBoundingClientRect();$(c);let _=window.innerHeight-c.bottom>a,D=c.top>a;Y(_?"bottom":D?"top":"bottom");};return e(),r.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{r.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e);}},[r.current]),a$1(l,()=>{l.current&&(l.current.style.display="none",z(-1));});let w=useMemo(()=>I.get(d),[d]);return jsx("div",{className:a$2("flex flex-col",U),children:jsxs("div",{className:a$2("relative flex flex-col"),children:[jsx(a$3,{ref:r,startComponent:jsxs("div",{className:"z-[100000] ml-3 flex h-2 w-[7.5rem] cursor-pointer items-center",onClick:()=>{m.disabled||(l.current.style.display="flex");},children:[jsx("img",{src:w?.flag,alt:w?.name,className:a$2("h-6 w-6 cursor-pointer",m.disabled&&"cursor-not-allowed text-neutral-400")}),jsx("span",{className:a$2("ml-1",m.disabled&&"cursor-not-allowed text-neutral-400"),children:d}),jsx(g$1,{className:a$2(B==="md"?"h-6 w-6":"h-4.5 w-4.5","cursor-pointer",m.disabled&&"cursor-not-allowed text-neutral-400")})]}),...m}),jsx(S.Root,{asChild:!0,children:jsx("ul",{ref:l,className:"pointer-events-auto absolute z-[10000] hidden w-full",style:s?{width:`${s.width}px`,left:s.left,top:G==="bottom"?`${s.height+s.top+window.scrollY}px`:window.scrollY+s.top-(i.length<p?i.length:p)*M-16}:void 0,children:jsxs(a$4,{className:"elevation-8 my-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",ref:o,children:[i.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[V.cloneElement(x.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:x.message})]}),i.map(([e,a],c)=>jsx("li",{onClick:()=>{X(e);},className:a$2("flex-shrink-0 cursor-pointer py-4 pl-4 pr-6 text-left hover:bg-primary-100",d===e&&"bg-primary-200",k===c&&"bg-primary-200"),children:jsxs("div",{className:a$2("flex items-center space-x-3"),children:[jsx("img",{src:a.flag,alt:a.name,className:"h-6 w-6"}),jsx("p",{children:a.name}),jsx("p",{className:"text-primary-500",children:`(${e})`})]})},`select-option-${H}-${e}`))]})})})]})})};export{K as a,ge as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {g}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {g}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import*as n from'react';import*as e from'@radix-ui/react-accordion';import {jsx,jsxs}from'react/jsx-runtime';var b=["sm","md"],w=n.forwardRef(({className:i,children:o,size:r="md",...a$1},d)=>jsx(e.Root,{"data-size":r,className:a("group/root space-y-2",i),...a$1,ref:d,children:o})),y=n.forwardRef(({className:i,...o},r)=>jsx(e.Item,{ref:r,className:i,...o}));y.displayName="AccordionFormItem";var R=n.forwardRef(({className:i,title:o,onEndButtonClick:r,StartIcon:a$2,children:d$1,badgeNumber:p,chipStatus:c,...g$1},u)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:o,ref:u,className:a("group flex h-8 items-center gap-4 [&[data-state=open]>div>.chevron-icon]:rotate-180",i),...g$1,children:[jsxs("div",{className:"group flex items-center",children:[a$2&&jsx(a$2,{className:"mr-2 h-4.5 w-4.5 flex-shrink-0 text-primary-500 transition-colors group-hover:group-enabled:text-primary-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:h-3.5 group-data-[size=sm]/root:w-3.5"}),jsx("div",{children:jsx("p",{className:"line-clamp-1 text-left text-base font-semibold !leading-[130%] text-primary-500 transition-colors group-hover:group-enabled:text-primary-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:o})})]}),jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[c&&jsx(d,{variant:c.variant,type:c.type,size:"xs",className:"flex-shrink-0",children:c.text}),p?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:p.toString()}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 text-primary-500 transition-transform group-hover:group-enabled:text-primary-700 group-disabled:text-neutral-500"})]})]})}));R.displayName=e.Trigger.displayName;var A=n.forwardRef(({className:i,children:o,...r},a)=>jsx(e.Content,{ref:a,className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:jsx("div",{className:i,children:o})}));A.displayName=e.Content.displayName;export{b as a,w as b,y as c,R as d,A as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-DZLL7IH6.mjs';import {i,h}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import*as r from'react';import {jsx,jsxs}from'react/jsx-runtime';var x=r.forwardRef(({className:e,...a$1},l)=>jsx("div",{ref:l,className:a("flex flex-col overflow-hidden rounded-2xl bg-neutral-50 ring-1 ring-primary-200",e),...a$1}));x.displayName="TableContainer";var N=r.forwardRef(({className:e,...a$1},l)=>jsx("div",{className:"relative w-full",children:jsx("table",{ref:l,className:a("w-full table-auto overflow-hidden text-neutral-900",e),...a$1})}));N.displayName="Table";var g=r.forwardRef(({className:e,...a},l)=>jsx("thead",{ref:l,className:e,...a}));g.displayName="TableHeader";var H=r.forwardRef(({className:e,...a},l)=>jsx("tbody",{ref:l,className:e,...a}));H.displayName="TableBody";var w=r.forwardRef(({className:e,...a$1},l)=>jsx("tr",{ref:l,className:a("text-sm font-normal leading-[130%]",e),...a$1}));w.displayName="TableBodyRow";var L=r.forwardRef(({Icon:e,icon:a$1,title:l,description:m,className:s,button:n,...d},b)=>jsxs("div",{ref:b,...d,className:a("flex flex-col items-center justify-center py-10 text-neutral-500",s),children:[a$1&&r.cloneElement(a$1,{className:"text-neutral-300 w-6 h-6"}),e&&jsx(e,{className:"h-6 w-6 text-neutral-300"}),jsx("span",{className:"mt-2 text-sm font-semibold leading-[130%]",children:l}),m&&jsx("span",{className:"mt-0.5 text-sm leading-[130%]",children:m}),n&&jsx(c,{size:"sm",...n,className:a("mt-3",n.className)})]}));L.displayName="TableNoResults";var y=r.forwardRef(({className:e,...a$1},l)=>jsx("tr",{ref:l,className:a("bg-primary-100",e),...a$1}));y.displayName="TableHeaderRow";var M=r.forwardRef(({className:e,...a$1},l)=>jsx("th",{ref:l,className:a("h-10 px-3 py-1 text-left text-sm font-semibold uppercase leading-[130%]",e),...a$1}));M.displayName="TableHead";var v=r.forwardRef(({className:e,...a$1},l)=>jsx("td",{ref:l,className:a("h-18 px-3 py-1",e),...a$1}));v.displayName="TableCell";var S=({disableNextPage:e,disablePreviousPage:a$1,onNextPageClick:l,onPreviousPageClick:m,pagination:s,rowsCount:n,rowsPerPageText:d="Rows per page",ofText:b="of",onRowsPerPageChange:u,rowsPerPageOptions:R=[10,20,50]})=>jsxs("div",{className:"flex h-8 flex-1 items-center justify-end gap-6 border-t-1 border-t-primary-200",children:[jsxs("div",{className:"flex items-center",children:[jsx("span",{className:"mr-2 text-sm font-semibold leading-[130%] text-neutral-700",children:`${d}:`}),jsx("select",{className:"text-sm leading-[130%]",value:s.pageSize,id:"rows_per_page",onChange:i=>{u?.(Number(i.target.value));},children:R.map(i=>jsx("option",{children:i},i))})]}),!!n&&jsx("span",{className:"text-sm font-normal leading-[130%] text-neutral-700",children:`${s?.pageIndex*s.pageSize+1}-${n>s?.pageIndex*s.pageSize+s.pageSize?s?.pageIndex*s.pageSize+s.pageSize:n} ${b} ${n}`}),!n&&jsx("span",{className:"text-sm font-normal leading-[120%] tracking-sm text-neutral-700",children:`${s.pageIndex>0?"... ":""}${s.pageIndex+1}${e?"":" ..."}`}),jsxs("div",{className:"flex items-center",children:[jsx("button",{type:"button",disabled:a$1,className:"flex h-8 cursor-pointer items-center px-3 disabled:cursor-not-allowed",onClick:m,children:jsx(i,{className:a("h-[1.125rem] w-[1.125rem] text-neutral-900",a$1&&"text-neutral-500")})}),jsx("button",{type:"button",disabled:e,className:"flex h-8 cursor-pointer items-center px-3 disabled:cursor-not-allowed",onClick:l,children:jsx(h,{className:a("h-[1.125rem] w-[1.125rem] text-neutral-900",e&&"text-neutral-500")})})]})]});export{x as a,N as b,g as c,H as d,w as e,L as f,y as g,M as h,v as i,S as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,b as b$1,c,g,h,d,e as e$1,i,j,f}from'./chunk-
|
|
1
|
+
import {a,b as b$1,c,g,h,d,e as e$1,i,j,f}from'./chunk-R2C5CBU5.mjs';import {b as b$2}from'./chunk-36HW67AH.mjs';import {a as a$1,b}from'./chunk-QHBCNAWO.mjs';import {e}from'./chunk-XJSC6PKJ.mjs';import {useMemo}from'react';import {useReactTable,getCoreRowModel,getPaginationRowModel,flexRender}from'@tanstack/react-table';import {jsxs,jsx}from'react/jsx-runtime';function re({columns:z,data:m,rowsCount:l,pagination:i$1,onPaginationChange:p,noResults:H,rowsPerPageText:I="Rows per page",ofText:v="of",onNextPageClick:k,onPreviousPageClick:M,disableNextPage:d$1,disablePreviousPage:T,className:B,onRowsPerPageChange:O,columnOrder:A,columnVisibility:V,rowsPerPageOptions:L,...F}){let o=useReactTable({data:m,columns:z,rowCount:l,state:{pagination:i$1,columnOrder:A,columnVisibility:V},onPaginationChange:p,manualPagination:!0,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel()}),G=useMemo(()=>T||!!l&&!o.getCanPreviousPage(),[T,l,i$1?.pageIndex]),$=useMemo(()=>d$1||!!l&&!o.getCanNextPage(),[d$1,l,i$1?.pageIndex]);return o.getRowModel().rows?.length?jsxs(a,{className:B,...F,children:[jsxs(a$1,{children:[jsx(b,{orientation:"horizontal",className:"z-10"}),jsxs(b$1,{className:"mb-3",children:[jsx("colgroup",{children:o.getHeaderGroups()[0].headers.map(a=>{let t=a.column.getSize()/o.getHeaderGroups()[0].headers.reduce((n,E)=>n+E.getSize(),0)*100;return jsx("col",{span:1,style:{width:`${t}%`,minWidth:`${a.column.getSize()}px`}},a.id)})}),jsx(c,{children:o.getHeaderGroups().map(a=>jsx(g,{children:a.headers.map(t=>{let n=t.column.columnDef;return jsx(h,{children:jsxs("div",{className:"flex items-center",children:[t.isPlaceholder?null:jsx(b$2,{content:flexRender(n.header,t.getContext()),contentClassName:"font-normal normal-case",children:jsx("span",{className:"line-clamp-1",children:flexRender(n.header,t.getContext())})}),n.headerInfoTooltip&&jsx(b$2,{size:n.headerInfoTooltipSize,content:n.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e,{className:"ml-1 w-[0.875rem] flex-shrink-0"})})]})},t.id)})},a.id))}),jsx(d,{children:o.getRowModel().rows.map(a=>jsx(e$1,{"data-state":a.getIsSelected()&&"selected",children:a.getVisibleCells().map(t=>jsx(i,{children:flexRender(t.column.columnDef.cell,t.getContext())},t.id))},a.id))})]})]}),i$1&&p&&m.length>0&&jsx(j,{rowsPerPageOptions:L,rowsCount:l,pagination:i$1,onRowsPerPageChange:a=>{o.setPageSize(a),o.setPageIndex(0),O?.(a);},onPreviousPageClick:()=>{o.previousPage(),M?.();},onNextPageClick:()=>{o.nextPage(),k?.();},disableNextPage:$,disablePreviousPage:G,ofText:v,rowsPerPageText:I})]}):jsx(f,{...H})}export{re as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {d}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {d}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import*as e from'@radix-ui/react-tabs';import o from'react';import {cva}from'cva';import {jsx,jsxs}from'react/jsx-runtime';var k=["ghost","fill","fillWithCloseButton"],D=["sm","md"],y=cva({base:"group relative shrink-0 px-4 leading-[130%] text-neutral-900 transition-all disabled:text-neutral-500",variants:{variant:{ghost:"rounded font-semibold [&:not(:disabled)]:hover:bg-primary-100",fill:"[&:not(:disabled)]:aria-selected:elevation-10 rounded-lg !rounded-b-none border-1 !border-b-0 border-transparent aria-selected:bg-neutral-50 aria-selected:font-semibold [&:not(:disabled)]:hover:border-primary-300 [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500",fillWithCloseButton:"[&:not(:disabled)]:aria-selected:elevation-10 rounded-lg !rounded-b-none border-1 !border-b-0 border-transparent bg-primary-100 aria-selected:font-semibold [&:not(:disabled)]:hover:border-primary-300 [&:not(:disabled)]:hover:bg-primary-100 [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500 [&:not(:disabled)]:hover:aria-selected:border-transparent [&:not(:disabled)]:hover:aria-selected:bg-neutral-50 [&:not(:disabled)]:[&:not(:hover)]:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),P=cva({base:"mr-2 flex shrink-0 transition-all ease-linear [&:not(:disabled)]:group-aria-selected:text-neutral-900",variants:{size:{sm:"",md:""}}}),C=cva({base:"absolute bottom-0 h-0 w-full rounded transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-aria-selected:bg-primary-500 group-aria-selected:group-disabled:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),R=cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']"},size:{sm:"",md:""}},compoundVariants:[{variant:"fill",size:"sm",className:"before:top-10"},{variant:"fill",size:"md",className:"before:top-12"},{variant:"fillWithCloseButton",size:"sm",className:"before:top-10"},{variant:"fillWithCloseButton",size:"md",className:"before:top-12"}]}),f=o.createContext({}),I=o.forwardRef(({className:i,size:a$1="sm",variant:t="ghost",...s},l)=>jsx(f.Provider,{value:{size:a$1,variant:t},children:jsx(e.Root,{"data-tab-variant":t,ref:l,...s,className:a(i,"relative")})})),N=o.forwardRef(({className:i,...a$1},t)=>{let{variant:s}=o.useContext(f);return jsx(e.List,{ref:t,...a$1,className:a("no-scrollbar flex max-w-full space-x-2 overflow-x-scroll",s!=="ghost"&&"px-6",i)})});N.displayName=e.List.displayName;var z=o.forwardRef(({className:i,badgeNumber:a$2,disabled:t,variant:s,StartIcon:l,onClose:T,...v},h)=>{let{size:d$1,variant:x}=o.useContext(f),n=s??x;return jsx(e.Trigger,{"data-tab-variant":n,ref:h,disabled:t,className:y({size:d$1,variant:n,className:i}),...v,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[l&&jsx(l,{className:P({size:d$1}),size:d$1==="sm"?12:14}),v.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",n==="ghost"&&"ml-1",n==="fill"&&"ml-3",n==="fillWithCloseButton"&&"ml-3"),children:[!t&&a$2&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(a$2)}),n==="fillWithCloseButton"&&jsx(d,{onPointerDown:p=>{p.preventDefault(),p.stopPropagation(),T?.(p);},className:"transition-colors [&:not(:disabled)]:group-aria-selected:text-neutral-900",size:14})]})]}),jsx("div",{className:C({variant:n})})]})})});z.displayName=e.Trigger.displayName;var W=o.forwardRef(({className:i,...a},t)=>{let{variant:s,size:l}=o.useContext(f);return jsx(e.Content,{ref:t,className:R({variant:s,size:l,className:i}),...a})});W.displayName=e.Content.displayName;export{k as a,D as b,I as c,N as d,z as e,W as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {g}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {g}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import*as c from'react';import*as e from'@radix-ui/react-accordion';export{e as a };import {jsx,jsxs}from'react/jsx-runtime';var S=["sm","md"],k=c.forwardRef(({className:r,children:o,size:i="md",...a$1},d)=>jsx(e.Root,{"data-size":i,className:a("group/root space-y-2",r),...a$1,ref:d,children:o})),y=c.forwardRef(({className:r,...o},i)=>jsx(e.Item,{ref:i,className:a("rounded-lg bg-neutral-50",r),...o}));y.displayName="AccordionItem";var P=c.forwardRef(({className:r,children:o,...i},a$1)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{ref:a$1,className:a("group flex flex-1 items-center justify-between p-4 transition-all [&[data-state=open]>svg]:rotate-180",r),...i,children:[o,jsx(g,{className:"h-6 w-6 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})}));P.displayName=e.Trigger.displayName;var x=c.forwardRef(({className:r,title:o,description:i,onEndButtonClick:a$2,StartIcon:d$1,EndIcon:l,children:N,badgeNumber:f,chipStatus:m,...v},A)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:o,ref:A,className:a("group flex flex-1 items-center justify-between gap-3 rounded-lg p-2 pl-3 transition-all hover:[&:not(:disabled)]:bg-primary-100 [&[data-state=open]>div>.chevron-icon]:rotate-180",a(!i&&"min-h-12",i&&"group-data-[size=md]/root:min-h-15.75 group-data-[size=sm]/root:min-h-12"),r),...v,children:[jsxs("div",{className:"flex",children:[d$1&&jsx(d$1,{className:"mr-2 h-4.5 w-4.5 text-neutral-900 group-disabled:text-neutral-500 group-data-[size=md]/root:h-4.5 group-data-[size=sm]:h-3.5 group-data-[size=md]/root:w-4.5 group-data-[size=sm]/root:w-3.5"}),jsxs("div",{children:[jsx("p",{className:"text-left text-base font-semibold !leading-[125%] text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:o}),jsx("p",{className:"text-left text-sm font-normal leading-[130%] tracking-sm text-neutral-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-xs",children:i})]})]}),jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[m&&jsx(d,{variant:m.variant,type:m.type,size:"xs",className:"flex-shrink-0",children:m.text}),f?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:f.toString()}),l&&jsx(l,{className:"m-1.75 text-neutral-900 group-disabled:text-neutral-500",size:18,onClick:R=>{R.stopPropagation(),a$2?.();}}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})]})}));x.displayName=e.Trigger.displayName;var h=c.forwardRef(({className:r,children:o,...i},a$1)=>jsx(e.Content,{ref:a$1,className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:jsx("div",{className:a("pl-3 pr-2 group-data-[size=md]/root:py-4 group-data-[size=sm]/root:py-2",r),children:o})}));h.displayName=e.Content.displayName;export{S as b,k as c,y as d,P as e,x as f,h as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import {forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var V=["xs","sm","md"],L=["standard","primary"],R=["fill","outlined"],x=tv({slots:{container:"flex cursor-default items-center rounded-3xl transition-all",startIcon:"",closeIcon:"cursor-pointer"},variants:{variant:{standard:{},primary:{}},type:{fill:{},outlined:{}},size:{md:{container:"min-h-8 gap-2.75 px-3",startIcon:"h-4.5 w-4.5",closeIcon:"h-4.5 w-4.5"},sm:{container:"min-h-6 gap-3.25 px-3 text-sm",startIcon:"h-3.5 w-3.5",closeIcon:"h-3.5 w-3.5"},xs:{container:"min-h-4 gap-4.5 px-2 text-xs",startIcon:"h-3.5 w-3.5",closeIcon:"h-3.5 w-3.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:!0,className:{container:"cursor-not-allowed",closeIcon:"cursor-not-allowed"}},{disabled:!1,variant:"standard",type:"fill",className:{container:"bg-neutral-100 text-neutral-700 hover:bg-neutral-200"}},{disabled:!0,variant:"standard",type:"fill",className:{container:"bg-neutral-100 text-neutral-400"}},{disabled:!1,variant:"primary",type:"fill",className:{container:"bg-primary-200 text-primary-800 hover:bg-primary-300"}},{disabled:!1,variant:"standard",type:"outlined",className:{container:"text-neutral-700 ring-1 ring-inset ring-neutral-700 hover:bg-primary-100"}},{disabled:!0,variant:"standard",type:"outlined",className:{container:"text-neutral-400 ring-1 ring-inset ring-neutral-400"}},{disabled:!1,variant:"primary",type:"outlined",className:{container:"text-primary-500 ring-1 ring-inset ring-primary-500 hover:bg-primary-100"}}],defaultVariants:{disabled:!1,size:"md"}}),b=forwardRef(({children:i,onClose:s,StartIcon:t,className:o,hasCloseIcon:p=!0,disabled:a$1,variant:l,type:c,size:d$1,...m},u)=>{let{container:y,startIcon:I,closeIcon:f}=x({variant:l,type:c,size:d$1,disabled:a$1});return jsxs("span",{ref:u,className:a(y(),o),...m,children:[t&&jsx(t,{className:I()}),i,p&&jsx(d,{onClick:()=>!a$1&&s?.(),className:f()})]})});b.displayName="ChipInput";export{V as a,L as b,R as c,b as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,k}from'./chunk-
|
|
1
|
+
import {j,k}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import*as s from'react';import*as r from'@radix-ui/react-checkbox';import {Label}from'@radix-ui/react-label';import {jsxs,jsx}from'react/jsx-runtime';var v=["sm","md"],h=s.forwardRef(({className:c,label:n,size:e="md",...t},l)=>jsxs("div",{className:a("flex items-center",e==="md"&&"gap-3",e==="sm"&&"gap-2",c),children:[jsx("div",{className:a("flex flex-shrink-0 rounded-full transition-all has-[:hover]:has-[:enabled]:[&:not(:active)]:bg-transparent-primary-20 has-[:hover]:[&:not(:disabled)]:[&:not(:active)]:ring-transparent-primary-20",e==="sm"&&"h-4 w-4 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-4",e=="md"&&"h-5 w-5 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-6"),children:jsx(r.Root,{ref:l,className:a("flex-shrink-0 rounded-sm ring-2 ring-inset ring-neutral-900 active:enabled:ring-primary-700 disabled:cursor-not-allowed disabled:ring-neutral-500 data-[state=checked]:enabled:bg-primary-500 data-[state=indeterminate]:enabled:bg-primary-500 data-[state=checked]:enabled:ring-0 data-[state=indeterminate]:enabled:ring-0 hover:data-[state=checked]:enabled:bg-primary-600 hover:data-[state=indeterminate]:enabled:bg-primary-600 hover:data-[state=unchecked]:enabled:ring-primary-600 active:enabled:data-[state=checked]:bg-primary-700 active:enabled:data-[state=indeterminate]:bg-primary-700 disabled:data-[state=checked]:bg-neutral-500 disabled:data-[state=indeterminate]:bg-neutral-500",e==="sm"&&"h-4 w-4",e==="md"&&"h-5 w-5"),...t,children:jsxs(r.Indicator,{className:"flex items-center justify-center",children:[t.checked!=="indeterminate"&&jsx(j,{size:e==="sm"?14:18,className:"text-neutral-50"}),t.checked==="indeterminate"&&jsx(k,{size:e==="sm"?14:18,className:"text-neutral-50"})]})})}),n&&jsx(Label,{htmlFor:t.id,className:a("font-normal leading-[130%] text-neutral-900",t.disabled&&"text-neutral-500",e==="md"&&"text-base",e==="sm"&&"text-sm"),children:n})]}));h.displayName=r.Root.displayName;export{v as a,h as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {forwardRef,createElement}from'react';var
|
|
1
|
+
import {forwardRef,createElement}from'react';var B=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P=(...t)=>t.filter((e,r,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===r).join(" ").trim();var F={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var D=forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:A="",children:c,iconNode:R,...q},T)=>createElement("svg",{ref:T,...F,width:e,height:e,stroke:t,strokeWidth:s?Number(r)*24/Number(e):r,className:P("lucide",A),...q},[...R.map(([y,b])=>createElement(y,b)),...Array.isArray(c)?c:[c]]));var a=(t,e)=>{let r=forwardRef(({className:s,...A},c)=>createElement(D,{ref:c,iconNode:e,className:P(`lucide-${B(t)}`,s),...A}));return r.displayName=`${t}`,r};var i=a("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var n=a("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var p=a("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var L=a("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var m=a("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var u=a("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var o=a("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var d=a("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var I=a("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var x=a("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var l=a("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var C=a("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var h=a("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var S=a("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var g=a("StarHalf",[["path",{d:"M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2",key:"2ksp49"}]]);var w=a("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);var f=a("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var k=a("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ya=l,ja=o,$a=d,_a=k,ae=x,ee=f,te=p,ue=m,oe=L,de=n,le=C,fe=h,re=w,se=i,ce=I,ie=S,ne=u,pe=g;/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
(**
|
|
@@ -168,14 +168,6 @@ lucide-react/dist/esm/icons/triangle-alert.js:
|
|
|
168
168
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
169
|
*)
|
|
170
170
|
|
|
171
|
-
lucide-react/dist/esm/icons/user.js:
|
|
172
|
-
(**
|
|
173
|
-
* @license lucide-react v0.469.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*)
|
|
178
|
-
|
|
179
171
|
lucide-react/dist/esm/icons/x.js:
|
|
180
172
|
(**
|
|
181
173
|
* @license lucide-react v0.469.0 - ISC
|
|
@@ -191,4 +183,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
191
183
|
* This source code is licensed under the ISC license.
|
|
192
184
|
* See the LICENSE file in the root directory of this source tree.
|
|
193
185
|
*)
|
|
194
|
-
*/export{
|
|
186
|
+
*/export{Ya as a,ja as b,$a as c,_a as d,ae as e,ee as f,te as g,ue as h,oe as i,de as j,le as k,fe as l,re as m,se as n,ce as o,ie as p,ne as q,pe as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CountryEnum,b as CountryTextField}from'./chunk-
|
|
1
|
+
export{a as CountryEnum,b as CountryTextField}from'./chunk-OCF546MQ.mjs';import'./chunk-KTRSJBA4.mjs';import'./chunk-E5G7444M.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/data-table.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataTable}from'./chunk-
|
|
1
|
+
export{a as DataTable}from'./chunk-S2HBU3YJ.mjs';import'./chunk-R2C5CBU5.mjs';import'./chunk-36HW67AH.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/date-picker.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DatePicker}from'./chunk-
|
|
1
|
+
export{a as DatePicker}from'./chunk-GLKJ3FOO.mjs';import'./chunk-KTRSJBA4.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-3U3UI5XP.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/dialog.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as Dialog,l as DialogActionButton,i as DialogBody,m as DialogCloseButton,f as DialogContent,k as DialogDescription,n as DialogExtraButton,h as DialogFooter,g as DialogHeader,e as DialogOverlay,d as DialogPortal,a as DialogPrimitive,j as DialogTitle,c as DialogTrigger}from'./chunk-
|
|
1
|
+
export{b as Dialog,l as DialogActionButton,i as DialogBody,m as DialogCloseButton,f as DialogContent,k as DialogDescription,n as DialogExtraButton,h as DialogFooter,g as DialogHeader,e as DialogOverlay,d as DialogPortal,a as DialogPrimitive,j as DialogTitle,c as DialogTrigger}from'./chunk-EYEAWZZH.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-WGMDH4XX.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/drawer-sticky.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DrawerSticky,g as DrawerStickyBody,h as DrawerStickyCloseTrigger,d as DrawerStickyContent,f as DrawerStickyFooter,e as DrawerStickyHeader,c as DrawerStickySizes,b as DrawerStickyTrigger}from'./chunk-
|
|
1
|
+
export{a as DrawerSticky,g as DrawerStickyBody,h as DrawerStickyCloseTrigger,d as DrawerStickyContent,f as DrawerStickyFooter,e as DrawerStickyHeader,c as DrawerStickySizes,b as DrawerStickyTrigger}from'./chunk-3GG6BNGR.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/drawer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as Drawer,e as DrawerClose,g as DrawerContent,k as DrawerDescription,i as DrawerFooter,h as DrawerHeader,f as DrawerOverlay,d as DrawerPortal,a as DrawerSizes,j as DrawerTitle,c as DrawerTrigger}from'./chunk-
|
|
1
|
+
export{b as Drawer,e as DrawerClose,g as DrawerContent,k as DrawerDescription,i as DrawerFooter,h as DrawerHeader,f as DrawerOverlay,d as DrawerPortal,a as DrawerSizes,j as DrawerTitle,c as DrawerTrigger}from'./chunk-2HRXP2I4.mjs';import'./chunk-ENF7AQB7.mjs';import'./chunk-EYEAWZZH.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-WGMDH4XX.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/flag-select.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as FlagSelect}from'./chunk-
|
|
1
|
+
export{a as FlagSelect}from'./chunk-BNV3EY4N.mjs';import'./chunk-E5G7444M.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/icons.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{n as CalendarIcon,j as CheckIcon,g as ChevronDownIcon,i as ChevronLeftIcon,h as ChevronRightIcon,q as CircleAlertIcon,b as CircleCheckIcon,c as CircleXIcon,o as ClockIcon,e as InfoIcon,a as LoaderCircleIcon,k as MinusIcon,l as MoonIcon,p as SearchIcon,r as StarHalfIcon,m as StarIcon,f as TriangleAlertIcon,d as XIcon}from'./chunk-
|
|
1
|
+
export{n as CalendarIcon,j as CheckIcon,g as ChevronDownIcon,i as ChevronLeftIcon,h as ChevronRightIcon,q as CircleAlertIcon,b as CircleCheckIcon,c as CircleXIcon,o as ClockIcon,e as InfoIcon,a as LoaderCircleIcon,k as MinusIcon,l as MoonIcon,p as SearchIcon,r as StarHalfIcon,m as StarIcon,f as TriangleAlertIcon,d as XIcon}from'./chunk-XJSC6PKJ.mjs';
|