sodtrack-web-ui 0.72.5 → 0.73.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/chunk-EEBEWLX4.mjs +1 -0
- package/dist/{chunk-HO6GAGDB.mjs → chunk-G7COXGWD.mjs} +1 -1
- package/dist/{chunk-RLEAFIOR.mjs → chunk-IUB2FZDJ.mjs} +1 -1
- package/dist/components/autocomplete-new.d.mts +22 -0
- package/dist/components/autocomplete-new.d.ts +22 -0
- package/dist/components/autocomplete-new.js +17 -0
- package/dist/components/autocomplete-new.mjs +1 -0
- package/dist/components/chip-form-complementary.d.mts +3 -3
- package/dist/components/chip-form-complementary.d.ts +3 -3
- package/dist/components/chip-form.d.mts +6 -6
- package/dist/components/chip-form.d.ts +6 -6
- package/dist/components/chip-status-complementary.d.mts +1 -1
- package/dist/components/chip-status-complementary.d.ts +1 -1
- package/dist/components/chip-status-table.d.mts +1 -1
- package/dist/components/chip-status-table.d.ts +1 -1
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/list-item-arrow.mjs +1 -1
- package/dist/components/list-item-button.mjs +1 -1
- package/dist/components/list-item-checkbox.mjs +1 -1
- package/dist/components/list-item.mjs +1 -1
- package/dist/components/tab.d.mts +2 -2
- package/dist/components/tab.d.ts +2 -2
- package/dist/components/time-picker-new.js +1 -1
- package/dist/components/time-picker-new.mjs +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-FR52DUJW.mjs';import {q,d,g}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {useListCollection,Combobox}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var B=({label:i,error:l,required:N,tooltip:m,readOnly:n,options:h,onInputValueChange:u,onSelect:p,defaultValue:c,className:w,helperText:I,...v})=>{let{contains:T}=useFilter({sensitivity:"base"}),{collection:d$1,filter:g$1}=useListCollection({initialItems:h,filter:T}),y=useCallback(o=>{g$1(o.inputValue),u?.(o.inputValue);},[g$1,u]),P=useCallback(o=>{p?.(o.itemValue);},[p]);return jsxs(Combobox.Root,{"data-error":l,collection:d$1,onInputValueChange:y,onSelect:P,className:a("group flex flex-col gap-2",w),defaultValue:c?[c]:void 0,...v,children:[jsxs(Combobox.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[N?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),i]}):i,m&&jsx(b,{content:m,size:"sm",className:"ml-2",children:jsx(q,{className:"size-3.5"})})]}),jsxs(Combobox.Control,{className:a("group/control data-[focus]:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex h-10 w-full items-center justify-between gap-2 overflow-hidden rounded-lg bg-neutral-50 px-3 ring ring-neutral-500 transition-shadow group-data-[error=true]:ring-2 group-data-[readonly]:bg-neutral-100 group-data-[readonly]:ring-neutral-300 has-focus:ring-2 data-[disabled]:ring-neutral-400",n&&"pointer-events-none"),children:[jsx(Combobox.Input,{className:a("font-inter flex w-full justify-between text-left text-sm text-neutral-900 outline-0 group-data-[disabled]/control:text-neutral-400 disabled:cursor-not-allowed data-[placeholder-shown]:text-neutral-500",n&&"pointer-events-none",l&&"pr-16")}),l&&jsx(q,{className:"text-error-500 size-4.5 shrink-0"}),!n&&jsx(Combobox.ClearTrigger,{className:"cursor-pointer",children:jsx(d,{className:"size-4.5"})}),jsx(Combobox.Trigger,{className:"cursor-pointer group-data-[disabled]/control:cursor-not-allowed group-data-[disabled]/control:text-neutral-400",children:jsx(g,{className:"size-4.5 transition-transform will-change-transform group-data-[state=open]/control:rotate-180"})})]}),jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-error-500 -mt-1 leading-[133.33%] font-normal text-neutral-700 peer-data-[disabled]:text-neutral-400 empty:hidden",children:I}),jsx(Portal,{children:jsx(Combobox.Positioner,{className:"!z-10000",children:jsx(Combobox.Content,{className:"elevation-9 max-h-67.5 min-w-27.5 overflow-auto rounded-lg bg-neutral-50",children:jsx(Combobox.ItemGroup,{children:d$1.items.map(o=>jsx(Combobox.Item,{item:o,className:"font-inter data-[highlighted]:bg-primary-100 cursor-pointer p-3 data-[disabled]:cursor-not-allowed data-[disabled]:text-neutral-400",children:jsx(Combobox.ItemText,{className:"flex flex-col gap-1",asChild:true,children:jsxs("div",{children:[jsx("p",{className:"text-sm leading-[130%] font-medium",children:o.title}),o.description&&jsx("p",{className:"text-xs leading-[130%]",children:o.description})]})})},o.value))})})})})]})};export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c as c$3}from'./chunk-35JUETHD.mjs';import {a as a$4}from'./chunk-KTRSJBA4.mjs';import {a as a$3}from'./chunk-5JYXZUPM.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {d}from'./chunk-KTTNV2CJ.mjs';import {a}from'./chunk-T2IU5QUU.mjs';import {a as a$2}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Oe from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var qe=({title:e,titleLines:i=2,description:t,descriptionLines:o=1,Icon:p,iconAsColumn:l=true,className:n,...r})=>jsxs("div",{className:a$1("flex gap-2 py-4 pl-4 pr-6",l&&"flex-col items-center gap-1",!l&&!t&&"items-center"),...r,children:[p&&jsx(p,{className:a$1("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$1("flex flex-col gap-1",l&&"text-center"),children:[jsx("p",{className:a$1("leading-[130%] text-neutral-500",!!t&&"font-medium"),style:i?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i}:void 0,children:e}),t&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t})]})]}),ne=qe;var Ke=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:p,noResultsAsColumn:l,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:s,filteredOptions:c$1,inputRect:u,inputRef:b,popoverPosition:R,optionsListRef:v,selectedOption:h,options:g,setFilteredOptions:C})=>jsx(Oe.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:u?{width:`${u.width}px`,left:u.left,top:R==="bottom"?`${u.bottom}px`:void 0,bottom:R==="top"?`${window.innerHeight-u.top}px`:void 0}:void 0,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(ne,{title:t,description:o,Icon:i,iconAsColumn:l,descriptionLines:p}),n&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",b.current.value="",C(g),n();},children:s})]})]}),c$1.map(a=>jsx(Ie,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$1(h?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),we=Ke;var Ye=336,oo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:p,error:l,helperText:n,label:r,placeholder:s,value:c,size:u="md",optionDescriptionLines:b=1,noResultsLabel:R,noResultsIcon:v,noResultsDescription:h,noResultsDescriptionLines:g,noResultsAsColumn:C,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,A]=useState(i??null),O=useRef(null),d=useRef(null),[le,se]=useState(),[pe,B]=useState([]),[ue,z]=useState("bottom"),[X,j]=useState(),U=Ye,W=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,A(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();se(x);let E=X?X.height:U,I=window.innerHeight-x.bottom>E,ee=x.top>E;z(I?"bottom":ee?"top":"bottom");},[X?.height]),q=useCallback(()=>{let x=e.filter(E=>E.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(B(x),O?.current){let E=O.current.getBoundingClientRect();j(E);}},[e]);return useEffect(()=>{B(e);},[e]),useEffect(()=>{if(!c){A(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==c.value)&&(A(c),d.current.value=c.label);},[c]),a$4(O,()=>{O.current.style.display="none",m&&d.current&&(d.current.value=m.label);}),useEffect(()=>{if(d?.current)return w(),d.current.addEventListener("mousedown",w),d.current.addEventListener("input",q),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",q),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,q]),jsxs("div",{className:a$1("relative",L),children:[jsx(a$3,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(A(null),t?.(null)),p?.(x);},onClean:()=>{A(null),B(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:s,size:u,error:l,disabled:P}),jsx(we,{handleSelect:W,noResultsLabel:R,NoResultsIcon:v,optionDescriptionLines:b,noResultsAsColumn:C,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:h,noResultsDescriptionLines:g,filteredOptions:pe,inputRect:le,inputRef:d,popoverPosition:ue,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:B})]})};var je=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,disabled:l=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$1("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$1("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:p?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:p}:void 0,children:o})]}),T=je;var bo=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,badgeContent:n,hasDivider:r=false,disabled:s=false,onSelect:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,onClick:c,hasDivider:r,className:a$1(!s&&"cursor-pointer",u),...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$2,{content:n,size:"lg",variant:"alert",className:a$1("self-center",s&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var De=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:p,startIcon:l,hasDivider:n=false,disabled:r=false,checked:s,onCheckedChange:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,...b,className:a$1("pr-6",u),children:[l&&be.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),jsx(c$2,{size:"sm",checked:s,onCheckedChange:c,className:"ml-4 self-center",disabled:r})]});var k=336,He=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:k,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),F=()=>{let e=useContext(He);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Ne=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[p,l]=useState(),[n,r]=useState(true),[s,c]=useState([]),[u,b]=useState(-1),[R,v]=useState("bottom"),[h,g]=useState(),[C,a]=useState(k);return jsx(He.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:p,showChips:n,filteredOptions:s,currentFocus:u,popoverPosition:R,setFilteredOptions:c,setCurrentFocus:b,setShowChips:r,setPopoverPosition:v,setInputRect:l,optionsListHeight:C,optionsListRect:h,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var ct=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},Se=ct;var ft=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:p})=>{let{autocompleteId:l,inputRect:n,inputRef:r,optionsListRef:s}=F(),c=be.useRef(null),[u,b]=be.useState(new Map),R=useMemo(()=>{if(!n?.width)return [];let h=0,g=n.width-ft,C=0;for(let a=0;a<e.length&&(C+=u.get(a)??0,!(C>g));a++)h++;return e.slice(0,h)},[n?.width,e,u]),v=useCallback(()=>{o||(r?.current?.focus(),s.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$1("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:c,children:R.map((h,g)=>jsx(Se,{option:h,onMountWidth:C=>b(a=>new Map(a).set(g,C)),size:p},`chip-input-${l}-${h.value}`))}),e.length>R.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$2,{content:String(e.length),size:p}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:h=>{h.stopPropagation(),t();}})]})}),Be=bt;var vt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:p})=>{let{currentFocus:l,inputRef:n}=F();return jsx(De,{title:e.label,checked:o,disabled:e.disabled,className:l===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:p})}),he=vt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:p,noResultsDescriptionLines:l,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:s,noResultsButtonLabel:c$1})=>{let{popoverPosition:u,optionsListRef:b,filteredOptions:R,inputRect:v,autocompleteId:h,inputRef:g,optionsListHeight:C}=F(),a$1=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Oe.Root,{asChild:true,children:jsxs("div",{ref:b,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:v?{width:`${v.width}px`,left:v.left,top:u==="bottom"?`${v.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:C+"px"}:void 0,children:[R.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ne,{title:o,description:p,Icon:t,iconAsColumn:n,descriptionLines:l}),r&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{b.current.style.display="none",g.current.value="",r();},children:c$1})]})]}),N.map((L,P)=>jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`)),R.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`))]})})}),We=Mt;var wt=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:p,placeholder:l,options:n,onInputChange:r,size:s,disabled:c})=>{let{setCurrentFocus:u,setFilteredOptions:b,optionsListRef:R,inputRef:v}=F();return jsx(a$3,{ref:v,autoComplete:"off",list:"",disabled:c,selectMode:true,onChange:h=>{u(-1),r?.(h.target.value);},onClean:()=>{u(-1),b(n),i?.(null,e);},onClick:()=>{c||(R.current.style.display="flex");},error:t,helperText:o,label:p,placeholder:l,fixedTopLabel:e.length>0,size:s})}),Ve=wt;var Ge=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:p,label:l,placeholder:n,noResultsLabel:r,noResultsIcon:s,noResultsDescription:c,noResultsDescriptionLines:u,noResultsAsColumn:b,noResultsButtonOnClick:R,noResultsButtonLabel:v,className:h,onInputChange:g,value:C,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:A,setFilteredOptions:O,setShowChips:d,setInputRect:le,setPopoverPosition:se,setCurrentFocus:pe,showChips:B,setOptionsListRect:ue,optionsListRect:z,setOptionsListHeight:X}=F(),j=useRef(false),[U,W]=useState(i??[]),w=useCallback(M=>{W(y=>{let D,J=y.findIndex(Ue=>Ue.value===M.value);return J===-1?(D=y.concat(M),t?.(M,D),D):(D=y.toSpliced(J,1),t?.(M,D),D)});},[t]),q=useCallback(()=>{W([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),E=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let M=m.current.getBoundingClientRect();le(M);let y=z?z.height>k?k:z.height:k,D=window.innerHeight-M.bottom>y,J=M.top>y;se(D?"bottom":J?"top":"bottom"),X(J?k:window.innerHeight-M.bottom>k?k:window.innerHeight-M.bottom);},[z?.height]),ee=useCallback(()=>{let M=e.filter(y=>y.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(M),A?.current){let y=A.current.getBoundingClientRect();ue(y);}},[e,A?.current]);return useEffect(()=>{O(e);},[e]),a$4(A,()=>{A.current.style.display="none",pe(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",ee),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",E),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",E),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,E,x,ee]),useEffect(()=>{C&&(W(C),d(true));},[C]),useEffect(()=>{a||i&&i.length&&!j.current&&(W(i),j.current=true,d(true));},[i,a]),jsxs("div",{className:a$1("relative",h),children:[jsx(Ve,{selectedOptions:U,onSelect:t,error:o,helperText:p,label:l,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),B&&jsx(Be,{selectedOptions:U,disabled:P,error:o,onCleanSelectedOptions:q,size:N}),jsx(We,{handleSelect:w,selectedOptions:U,noResultsLabel:r,NoResultsIcon:s,optionDescriptionLines:L,noResultsAsColumn:b,noResultsButtonLabel:v,noResultsButtonOnClick:R,noResultsDescription:c,noResultsDescriptionLines:u})]})};var Ei=e=>jsx(Ne,{children:jsx(Ge,{...e})});var Bi=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:p=1,StartIcon:l,hasDivider:n=false,disabled:r=false,actionButton:s,isSelected:c$1=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:c$1,...b,className:u,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),s&&jsx(Fragment,{children:s.isIcon?jsx(c$3,{...s,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??s.disabled}):jsx(c,{...s,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??s.disabled})})]});var Dt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:p,isSelected:l,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$1("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",l&&"bg-primary-200",p),onClick:s=>{t||n?.(s);},...r,children:e}),o&&jsx(a,{})]}),H=Dt;var Ie=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,endIcon:n,hasDivider:r=false,disabled:s=false,isSelected:c=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,hasDivider:r,className:u,isSelected:c,...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{oo as a,Ie as b,bo as c,De as d,Ei as e,Bi as f};
|
|
1
|
+
import {c as c$3}from'./chunk-35JUETHD.mjs';import {d}from'./chunk-KTTNV2CJ.mjs';import {a as a$4}from'./chunk-KTRSJBA4.mjs';import {a as a$3}from'./chunk-5JYXZUPM.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {a}from'./chunk-T2IU5QUU.mjs';import {a as a$2}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Oe from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var qe=({title:e,titleLines:i=2,description:t,descriptionLines:o=1,Icon:p,iconAsColumn:l=true,className:n,...r})=>jsxs("div",{className:a$1("flex gap-2 py-4 pl-4 pr-6",l&&"flex-col items-center gap-1",!l&&!t&&"items-center"),...r,children:[p&&jsx(p,{className:a$1("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$1("flex flex-col gap-1",l&&"text-center"),children:[jsx("p",{className:a$1("leading-[130%] text-neutral-500",!!t&&"font-medium"),style:i?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i}:void 0,children:e}),t&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t})]})]}),ne=qe;var Ke=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:p,noResultsAsColumn:l,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:s,filteredOptions:c$1,inputRect:u,inputRef:b,popoverPosition:R,optionsListRef:v,selectedOption:h,options:g,setFilteredOptions:C})=>jsx(Oe.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:u?{width:`${u.width}px`,left:u.left,top:R==="bottom"?`${u.bottom}px`:void 0,bottom:R==="top"?`${window.innerHeight-u.top}px`:void 0}:void 0,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(ne,{title:t,description:o,Icon:i,iconAsColumn:l,descriptionLines:p}),n&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",b.current.value="",C(g),n();},children:s})]})]}),c$1.map(a=>jsx(Ie,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$1(h?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),we=Ke;var Ye=336,oo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:p,error:l,helperText:n,label:r,placeholder:s,value:c,size:u="md",optionDescriptionLines:b=1,noResultsLabel:R,noResultsIcon:v,noResultsDescription:h,noResultsDescriptionLines:g,noResultsAsColumn:C,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,A]=useState(i??null),O=useRef(null),d=useRef(null),[le,se]=useState(),[pe,B]=useState([]),[ue,z]=useState("bottom"),[X,j]=useState(),U=Ye,W=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,A(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();se(x);let E=X?X.height:U,I=window.innerHeight-x.bottom>E,ee=x.top>E;z(I?"bottom":ee?"top":"bottom");},[X?.height]),q=useCallback(()=>{let x=e.filter(E=>E.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(B(x),O?.current){let E=O.current.getBoundingClientRect();j(E);}},[e]);return useEffect(()=>{B(e);},[e]),useEffect(()=>{if(!c){A(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==c.value)&&(A(c),d.current.value=c.label);},[c]),a$4(O,()=>{O.current.style.display="none",m&&d.current&&(d.current.value=m.label);}),useEffect(()=>{if(d?.current)return w(),d.current.addEventListener("mousedown",w),d.current.addEventListener("input",q),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",q),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,q]),jsxs("div",{className:a$1("relative",L),children:[jsx(a$3,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(A(null),t?.(null)),p?.(x);},onClean:()=>{A(null),B(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:s,size:u,error:l,disabled:P}),jsx(we,{handleSelect:W,noResultsLabel:R,NoResultsIcon:v,optionDescriptionLines:b,noResultsAsColumn:C,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:h,noResultsDescriptionLines:g,filteredOptions:pe,inputRect:le,inputRef:d,popoverPosition:ue,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:B})]})};var je=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,disabled:l=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$1("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$1("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:p?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:p}:void 0,children:o})]}),T=je;var bo=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,badgeContent:n,hasDivider:r=false,disabled:s=false,onSelect:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,onClick:c,hasDivider:r,className:a$1(!s&&"cursor-pointer",u),...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$2,{content:n,size:"lg",variant:"alert",className:a$1("self-center",s&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var De=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:p,startIcon:l,hasDivider:n=false,disabled:r=false,checked:s,onCheckedChange:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,...b,className:a$1("pr-6",u),children:[l&&be.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),jsx(c$2,{size:"sm",checked:s,onCheckedChange:c,className:"ml-4 self-center",disabled:r})]});var k=336,He=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:k,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),F=()=>{let e=useContext(He);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Ne=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[p,l]=useState(),[n,r]=useState(true),[s,c]=useState([]),[u,b]=useState(-1),[R,v]=useState("bottom"),[h,g]=useState(),[C,a]=useState(k);return jsx(He.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:p,showChips:n,filteredOptions:s,currentFocus:u,popoverPosition:R,setFilteredOptions:c,setCurrentFocus:b,setShowChips:r,setPopoverPosition:v,setInputRect:l,optionsListHeight:C,optionsListRect:h,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var ct=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},Se=ct;var ft=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:p})=>{let{autocompleteId:l,inputRect:n,inputRef:r,optionsListRef:s}=F(),c=be.useRef(null),[u,b]=be.useState(new Map),R=useMemo(()=>{if(!n?.width)return [];let h=0,g=n.width-ft,C=0;for(let a=0;a<e.length&&(C+=u.get(a)??0,!(C>g));a++)h++;return e.slice(0,h)},[n?.width,e,u]),v=useCallback(()=>{o||(r?.current?.focus(),s.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$1("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:c,children:R.map((h,g)=>jsx(Se,{option:h,onMountWidth:C=>b(a=>new Map(a).set(g,C)),size:p},`chip-input-${l}-${h.value}`))}),e.length>R.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$2,{content:String(e.length),size:p}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:h=>{h.stopPropagation(),t();}})]})}),Be=bt;var vt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:p})=>{let{currentFocus:l,inputRef:n}=F();return jsx(De,{title:e.label,checked:o,disabled:e.disabled,className:l===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:p})}),he=vt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:p,noResultsDescriptionLines:l,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:s,noResultsButtonLabel:c$1})=>{let{popoverPosition:u,optionsListRef:b,filteredOptions:R,inputRect:v,autocompleteId:h,inputRef:g,optionsListHeight:C}=F(),a$1=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Oe.Root,{asChild:true,children:jsxs("div",{ref:b,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:v?{width:`${v.width}px`,left:v.left,top:u==="bottom"?`${v.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:C+"px"}:void 0,children:[R.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ne,{title:o,description:p,Icon:t,iconAsColumn:n,descriptionLines:l}),r&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{b.current.style.display="none",g.current.value="",r();},children:c$1})]})]}),N.map((L,P)=>jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`)),R.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`))]})})}),We=Mt;var wt=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:p,placeholder:l,options:n,onInputChange:r,size:s,disabled:c})=>{let{setCurrentFocus:u,setFilteredOptions:b,optionsListRef:R,inputRef:v}=F();return jsx(a$3,{ref:v,autoComplete:"off",list:"",disabled:c,selectMode:true,onChange:h=>{u(-1),r?.(h.target.value);},onClean:()=>{u(-1),b(n),i?.(null,e);},onClick:()=>{c||(R.current.style.display="flex");},error:t,helperText:o,label:p,placeholder:l,fixedTopLabel:e.length>0,size:s})}),Ve=wt;var Ge=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:p,label:l,placeholder:n,noResultsLabel:r,noResultsIcon:s,noResultsDescription:c,noResultsDescriptionLines:u,noResultsAsColumn:b,noResultsButtonOnClick:R,noResultsButtonLabel:v,className:h,onInputChange:g,value:C,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:A,setFilteredOptions:O,setShowChips:d,setInputRect:le,setPopoverPosition:se,setCurrentFocus:pe,showChips:B,setOptionsListRect:ue,optionsListRect:z,setOptionsListHeight:X}=F(),j=useRef(false),[U,W]=useState(i??[]),w=useCallback(M=>{W(y=>{let D,J=y.findIndex(Ue=>Ue.value===M.value);return J===-1?(D=y.concat(M),t?.(M,D),D):(D=y.toSpliced(J,1),t?.(M,D),D)});},[t]),q=useCallback(()=>{W([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),E=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let M=m.current.getBoundingClientRect();le(M);let y=z?z.height>k?k:z.height:k,D=window.innerHeight-M.bottom>y,J=M.top>y;se(D?"bottom":J?"top":"bottom"),X(J?k:window.innerHeight-M.bottom>k?k:window.innerHeight-M.bottom);},[z?.height]),ee=useCallback(()=>{let M=e.filter(y=>y.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(M),A?.current){let y=A.current.getBoundingClientRect();ue(y);}},[e,A?.current]);return useEffect(()=>{O(e);},[e]),a$4(A,()=>{A.current.style.display="none",pe(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",ee),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",E),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",E),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,E,x,ee]),useEffect(()=>{C&&(W(C),d(true));},[C]),useEffect(()=>{a||i&&i.length&&!j.current&&(W(i),j.current=true,d(true));},[i,a]),jsxs("div",{className:a$1("relative",h),children:[jsx(Ve,{selectedOptions:U,onSelect:t,error:o,helperText:p,label:l,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),B&&jsx(Be,{selectedOptions:U,disabled:P,error:o,onCleanSelectedOptions:q,size:N}),jsx(We,{handleSelect:w,selectedOptions:U,noResultsLabel:r,NoResultsIcon:s,optionDescriptionLines:L,noResultsAsColumn:b,noResultsButtonLabel:v,noResultsButtonOnClick:R,noResultsDescription:c,noResultsDescriptionLines:u})]})};var Ei=e=>jsx(Ne,{children:jsx(Ge,{...e})});var Bi=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:p=1,StartIcon:l,hasDivider:n=false,disabled:r=false,actionButton:s,isSelected:c$1=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:c$1,...b,className:u,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),s&&jsx(Fragment,{children:s.isIcon?jsx(c$3,{...s,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??s.disabled}):jsx(c,{...s,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??s.disabled})})]});var Dt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:p,isSelected:l,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$1("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",l&&"bg-primary-200",p),onClick:s=>{t||n?.(s);},...r,children:e}),o&&jsx(a,{})]}),H=Dt;var Ie=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,endIcon:n,hasDivider:r=false,disabled:s=false,isSelected:c=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,hasDivider:r,className:u,isSelected:c,...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{oo as a,Ie as b,bo as c,De as d,Ei as e,Bi as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-FR52DUJW.mjs';import {q,v,d}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select}from'@ark-ui/react/select';import {useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var P=["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30"],O="00:00",H=({className:h,label:s,required:y,tooltip:d$1,error:o,isItemDisabled:u,value:c,helperText:N,placeholder:C=O,onValueChange:g,defaultValue:m,...r})=>{let p=useMemo(()=>createListCollection({items:P,isItemDisabled:u}),[u]),w=useCallback(n=>{g?.(n.value.at(0));},[g]);return jsxs(Select.Root,{"data-error":o,collection:p,className:a("group flex flex-col gap-2",h),positioning:{placement:"bottom-end"},onValueChange:w,value:c?[c]:void 0,defaultValue:m?[m]:void 0,...r,children:[jsxs(Select.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[y?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),s]}):s,d$1&&jsx(b,{content:d$1,size:"sm",className:"ml-2",children:jsx(q,{className:"size-3.5"})})]}),jsxs(Select.Control,{className:a("group/control data-[focus]:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex h-10 w-full justify-between overflow-hidden rounded-lg bg-neutral-50 ring ring-neutral-500 transition-shadow group-data-[error=true]:ring-2 group-data-[readonly]:bg-neutral-100 group-data-[readonly]:ring-neutral-300 has-focus:ring-2 data-[disabled]:ring-neutral-400",r.readOnly&&"pointer-events-none"),children:[jsxs(Select.Trigger,{className:"flex w-full cursor-pointer justify-between text-neutral-900 group-data-[disabled]/control:text-neutral-400 disabled:cursor-not-allowed data-[placeholder-shown]:text-neutral-500",children:[jsx(Select.ValueText,{className:a("font-inter w-full py-2.5 pr-10.5 pl-
|
|
1
|
+
import {b}from'./chunk-FR52DUJW.mjs';import {q,v,d}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select}from'@ark-ui/react/select';import {useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var P=["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30"],O="00:00",H=({className:h,label:s,required:y,tooltip:d$1,error:o,isItemDisabled:u,value:c,helperText:N,placeholder:C=O,onValueChange:g,defaultValue:m,...r})=>{let p=useMemo(()=>createListCollection({items:P,isItemDisabled:u}),[u]),w=useCallback(n=>{g?.(n.value.at(0));},[g]);return jsxs(Select.Root,{"data-error":o,collection:p,className:a("group flex flex-col gap-2",h),positioning:{placement:"bottom-end"},onValueChange:w,value:c?[c]:void 0,defaultValue:m?[m]:void 0,...r,children:[jsxs(Select.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[y?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),s]}):s,d$1&&jsx(b,{content:d$1,size:"sm",className:"ml-2",children:jsx(q,{className:"size-3.5"})})]}),jsxs(Select.Control,{className:a("group/control data-[focus]:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex h-10 w-full justify-between overflow-hidden rounded-lg bg-neutral-50 ring ring-neutral-500 transition-shadow group-data-[error=true]:ring-2 group-data-[readonly]:bg-neutral-100 group-data-[readonly]:ring-neutral-300 has-focus:ring-2 data-[disabled]:ring-neutral-400",r.readOnly&&"pointer-events-none"),children:[jsxs(Select.Trigger,{className:"flex w-full cursor-pointer justify-between text-neutral-900 group-data-[disabled]/control:text-neutral-400 disabled:cursor-not-allowed data-[placeholder-shown]:text-neutral-500",children:[jsx(Select.ValueText,{className:a("font-inter w-full py-2.5 pr-10.5 pl-3 text-left text-sm",r.readOnly&&"pointer-events-none",o&&"pr-16"),placeholder:C}),jsx(Select.Indicator,{className:a("group-data-[focus]/control:ring-primary-800 group-data-[error=true]:ring-error-500 flex w-10 shrink-0 items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[disabled]/control:text-neutral-400 group-data-[disabled]/control:ring-neutral-400 group-data-[error=true]:ring-2 group-data-[focus]/control:ring-2 group-data-[readonly]:text-neutral-400 group-data-[readonly]:ring-neutral-300",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0,children:jsx(v,{className:"size-4.5"})})]}),!r.readOnly&&jsx(Select.ClearTrigger,{className:a("absolute top-1/2 right-13 -translate-y-1/2 cursor-pointer",r.readOnly&&"pointer-events-none",o&&"right-18.5"),tabIndex:r.readOnly?-1:void 0,children:jsx(d,{className:"size-4.5 text-neutral-700"})}),o&&jsx(q,{className:"text-error-500 absolute top-1/2 right-13 size-4.5 -translate-y-1/2 cursor-pointer"})]}),jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-error-500 -mt-1 leading-[133.33%] font-normal text-neutral-700 peer-data-[disabled]:text-neutral-400 empty:hidden",children:N}),jsx(Portal,{children:jsx(Select.Positioner,{className:"!z-10000",children:jsx(Select.Content,{className:"elevation-9 max-h-67.5 min-w-27.5 overflow-auto rounded-lg bg-neutral-50",children:p.items.map(n=>jsx(Select.Item,{item:n,className:"font-inter data-[highlighted]:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-[disabled]:cursor-not-allowed data-[disabled]:text-neutral-400",children:jsx(Select.ItemText,{children:n})},n))})})}),jsx(Select.HiddenSelect,{})]})};export{H as a};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
type AutocompleteNewItem<T = string> = {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
value: T;
|
|
8
|
+
};
|
|
9
|
+
type AutocompleteNewProps<T = string> = Omit<ComboboxRootProps<AutocompleteNewItem>, "collection" | "onInputValueChange" | "defaultValue" | "onSelect" | "multiple"> & {
|
|
10
|
+
label: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
options: AutocompleteNewItem<T>[];
|
|
15
|
+
onInputValueChange?: (value: string) => void;
|
|
16
|
+
onSelect?: (value: T) => void;
|
|
17
|
+
defaultValue?: T;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const AutocompleteNew: FC<AutocompleteNewProps>;
|
|
21
|
+
|
|
22
|
+
export { AutocompleteNew, type AutocompleteNewItem };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
type AutocompleteNewItem<T = string> = {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
value: T;
|
|
8
|
+
};
|
|
9
|
+
type AutocompleteNewProps<T = string> = Omit<ComboboxRootProps<AutocompleteNewItem>, "collection" | "onInputValueChange" | "defaultValue" | "onSelect" | "multiple"> & {
|
|
10
|
+
label: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
options: AutocompleteNewItem<T>[];
|
|
15
|
+
onInputValueChange?: (value: string) => void;
|
|
16
|
+
onSelect?: (value: T) => void;
|
|
17
|
+
defaultValue?: T;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const AutocompleteNew: FC<AutocompleteNewProps>;
|
|
21
|
+
|
|
22
|
+
export { AutocompleteNew, type AutocompleteNewItem };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';var combobox=require('@ark-ui/react/combobox'),locale=require('@ark-ui/react/locale'),portal=require('@ark-ui/react/portal'),react=require('react'),tooltip=require('@ark-ui/react/tooltip'),jsxRuntime=require('react/jsx-runtime');var Ae=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$e=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),ie=e=>{let t=$e(e);return t.charAt(0).toUpperCase()+t.slice(1)},oe=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim(),Be=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var Me={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 ye=react.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:d="",children:s,iconNode:r,...p},i)=>react.createElement("svg",{ref:i,...Me,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:oe("lucide",d),...!s&&!Be(p)&&{"aria-hidden":"true"},...p},[...r.map(([m,L])=>react.createElement(m,L)),...Array.isArray(s)?s:[s]]));var V=(e,t)=>{let o=react.forwardRef(({className:a,...d},s)=>react.createElement(ye,{ref:s,iconNode:t,className:oe(`lucide-${Ae(ie(e))}`,`lucide-${e}`,a),...d}));return o.displayName=ie(e),o};var oa=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Z=V("chevron-down",oa);var la=[["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"}]],R=V("circle-alert",la);var ua=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],J=V("x",ua);var De=J;var Re=Z;var ne=R;function Te(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(t=0;t<d;t++)e[t]&&(o=Te(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function qe(){for(var e,t,o=0,a="",d=arguments.length;o<d;o++)(e=arguments[o])&&(t=Te(e))&&(a&&(a+=" "),a+=t);return a}var Ie="-",da=e=>{let t=sa(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:r=>{let p=r.split(Ie);return p[0]===""&&p.length!==1&&p.shift(),Ge(p,t)||ra(r)},getConflictingClassGroupIds:(r,p)=>{let i=o[r]||[];return p&&a[r]?[...i,...a[r]]:i}}},Ge=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),d=a?Ge(e.slice(1),a):void 0;if(d)return d;if(t.validators.length===0)return;let s=e.join(Ie);return t.validators.find(({validator:r})=>r(s))?.classGroupId},ve=/^\[(.+)\]$/,ra=e=>{if(ve.test(e)){let t=ve.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},sa=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let d in o)me(o[d],a,d,t);return a},me=(e,t,o,a)=>{e.forEach(d=>{if(typeof d=="string"){let s=d===""?t:Ue(t,d);s.classGroupId=o;return}if(typeof d=="function"){if(fa(d)){me(d(a),t,o,a);return}t.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([s,r])=>{me(r,Ue(t,s),o,a);});});},Ue=(e,t)=>{let o=e;return t.split(Ie).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a);}),o},fa=e=>e.isThemeGetter,ia=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,d=(s,r)=>{o.set(s,r),t++,t>e&&(t=0,a=o,o=new Map);};return {get(s){let r=o.get(s);if(r!==void 0)return r;if((r=a.get(s))!==void 0)return d(s,r),r},set(s,r){o.has(s)?o.set(s,r):d(s,r);}}},Le="!",xe=":",na=xe.length,ca=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=d=>{let s=[],r=0,p=0,i=0,m;for(let h=0;h<d.length;h++){let S=d[h];if(r===0&&p===0){if(S===xe){s.push(d.slice(i,h)),i=h+na;continue}if(S==="/"){m=h;continue}}S==="["?r++:S==="]"?r--:S==="("?p++:S===")"&&p--;}let L=s.length===0?d:d.substring(i),P=pa(L),B=P!==L,A=m&&m>i?m-i:void 0;return {modifiers:s,hasImportantModifier:B,baseClassName:P,maybePostfixModifierPosition:A}};if(t){let d=t+xe,s=a;a=r=>r.startsWith(d)?s(r.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:r,maybePostfixModifierPosition:void 0};}if(o){let d=a;a=s=>o({className:s,parseClassName:d});}return a},pa=e=>e.endsWith(Le)?e.substring(0,e.length-1):e.startsWith(Le)?e.substring(1):e,ma=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let d=[],s=[];return a.forEach(r=>{r[0]==="["||t[r]?(d.push(...s.sort(),r),s=[]):s.push(r);}),d.push(...s.sort()),d}},La=e=>({cache:ia(e.cacheSize),parseClassName:ca(e),sortModifiers:ma(e),...da(e)}),xa=/\s+/,Ia=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:d,sortModifiers:s}=t,r=[],p=e.trim().split(xa),i="";for(let m=p.length-1;m>=0;m-=1){let L=p[m],{isExternal:P,modifiers:B,hasImportantModifier:A,baseClassName:h,maybePostfixModifierPosition:S}=o(L);if(P){i=L+(i.length>0?" "+i:i);continue}let D=!!S,I=a(D?h.substring(0,S):h);if(!I){if(!D){i=L+(i.length>0?" "+i:i);continue}if(I=a(h),!I){i=L+(i.length>0?" "+i:i);continue}D=false;}let j=s(B).join(":"),X=A?j+Le:j,H=X+I;if(r.includes(H))continue;r.push(H);let G=d(I,D);for(let q=0;q<G.length;++q){let K=G[q];r.push(X+K);}i=L+(i.length>0?" "+i:i);}return i};function Ca(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ze(t))&&(a&&(a+=" "),a+=o);return a}var ze=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=ze(e[a]))&&(o&&(o+=" "),o+=t);return o};function ga(e,...t){let o,a,d,s=r;function r(i){let m=t.reduce((L,P)=>P(L),e());return o=La(m),a=o.cache.get,d=o.cache.set,s=p,p(i)}function p(i){let m=a(i);if(m)return m;let L=Ia(i,o);return d(i,L),L}return function(){return s(Ca.apply(null,arguments))}}var x=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},Ve=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ee=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ha=/^\d+\/\d+$/,Sa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ka=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ba=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>ha.test(e),c=e=>!!e&&!Number.isNaN(Number(e)),T=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&c(e.slice(0,-1)),y=e=>Sa.test(e),Aa=()=>true,Ba=e=>wa.test(e)&&!ka.test(e),We=()=>false,Ma=e=>Pa.test(e),Fa=e=>ba.test(e),ya=e=>!l(e)&&!u(e),Da=e=>W(e,Ke,We),l=e=>Ve.test(e),U=e=>W(e,Ze,Ba),pe=e=>W(e,Ua,c),Oe=e=>W(e,Ne,We),Ra=e=>W(e,Xe,Fa),le=e=>W(e,Je,Ma),u=e=>Ee.test(e),Q=e=>N(e,Ze),Ta=e=>N(e,Oa),He=e=>N(e,Ne),qa=e=>N(e,Ke),va=e=>N(e,Xe),ue=e=>N(e,Je,true),W=(e,t,o)=>{let a=Ve.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},N=(e,t,o=false)=>{let a=Ee.exec(e);return a?a[1]?t(a[1]):o:false},Ne=e=>e==="position"||e==="percentage",Xe=e=>e==="image"||e==="url",Ke=e=>e==="length"||e==="size"||e==="bg-size",Ze=e=>e==="length",Ua=e=>e==="number",Oa=e=>e==="family-name",Je=e=>e==="shadow";var Ha=()=>{let e=x("color"),t=x("font"),o=x("text"),a=x("font-weight"),d=x("tracking"),s=x("leading"),r=x("breakpoint"),p=x("container"),i=x("spacing"),m=x("radius"),L=x("shadow"),P=x("inset-shadow"),B=x("text-shadow"),A=x("drop-shadow"),h=x("blur"),S=x("perspective"),D=x("aspect"),I=x("ease"),j=x("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...H(),u,l],q=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],n=()=>[u,l,i],M=()=>[E,"full","auto",...n()],Ce=()=>[T,"none","subgrid",u,l],ge=()=>["auto",{span:["full",T,u,l]},T,u,l],Y=()=>[T,"auto",u,l],he=()=>["auto","min","max","fr",u,l],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...n()],v=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...n()],f=()=>[e,u,l],Se=()=>[...H(),He,Oe,{position:[u,l]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ke=()=>["auto","cover","contain",qa,Da,{size:[u,l]}],se=()=>[ce,Q,U],w=()=>["","none","full",m,u,l],k=()=>["",c,Q,U],$=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[c,ce,He,Oe],be=()=>["","none",h,u,l],ee=()=>["none",c,u,l],ae=()=>["none",c,u,l],fe=()=>[c,u,l],te=()=>[E,"full",...n()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[y],breakpoint:[y],color:[Aa],container:[y],"drop-shadow":[y],ease:["in","out","in-out"],font:[ya],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[y],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[y],shadow:[y],spacing:["px",c],text:[y],"text-shadow":[y],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,l,u,D]}],container:["container"],columns:[{columns:[c,l,u,p]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[T,"auto",u,l]}],basis:[{basis:[E,"full","auto",p,...n()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[c,E,"auto","initial","none",l]}],grow:[{grow:["",c,u,l]}],shrink:[{shrink:["",c,u,l]}],order:[{order:[T,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":Ce()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":Ce()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:n()}],"gap-x":[{"gap-x":n()}],"gap-y":[{"gap-y":n()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:n()}],px:[{px:n()}],py:[{py:n()}],ps:[{ps:n()}],pe:[{pe:n()}],pt:[{pt:n()}],pr:[{pr:n()}],pb:[{pb:n()}],pl:[{pl:n()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":n()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":n()}],"space-y-reverse":["space-y-reverse"],size:[{size:v()}],w:[{w:[p,"screen",...v()]}],"min-w":[{"min-w":[p,"screen","none",...v()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[r]},...v()]}],h:[{h:["screen","lh",...v()]}],"min-h":[{"min-h":["screen","lh","none",...v()]}],"max-h":[{"max-h":["screen","lh",...v()]}],"font-size":[{text:["base",o,Q,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,u,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,l]}],"font-family":[{font:[Ta,l,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,u,l]}],"line-clamp":[{"line-clamp":[c,"none",u,pe]}],leading:[{leading:[s,...n()]}],"list-image":[{"list-image":["none",u,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[c,"from-font","auto",u,U]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[c,"auto",u,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:n()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:ke()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},T,u,l],radial:["",u,l],conic:[T,u,l]},va,Ra]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[c,u,l]}],"outline-w":[{outline:["",c,Q,U]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",L,ue,le]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",P,ue,le]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[c,U]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",B,ue,le]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[c,u,l]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[c]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[u,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[c]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:ke()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:be()}],brightness:[{brightness:[c,u,l]}],contrast:[{contrast:[c,u,l]}],"drop-shadow":[{"drop-shadow":["","none",A,ue,le]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",c,u,l]}],"hue-rotate":[{"hue-rotate":[c,u,l]}],invert:[{invert:["",c,u,l]}],saturate:[{saturate:[c,u,l]}],sepia:[{sepia:["",c,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[c,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[c,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",c,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c,u,l]}],"backdrop-invert":[{"backdrop-invert":["",c,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[c,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[c,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",c,u,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":n()}],"border-spacing-x":[{"border-spacing-x":n()}],"border-spacing-y":[{"border-spacing-y":n()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[c,"initial",u,l]}],ease:[{ease:["linear","initial",I,u,l]}],delay:[{delay:[c,u,l]}],animate:[{animate:["none",j,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,u,l]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":n()}],"scroll-mx":[{"scroll-mx":n()}],"scroll-my":[{"scroll-my":n()}],"scroll-ms":[{"scroll-ms":n()}],"scroll-me":[{"scroll-me":n()}],"scroll-mt":[{"scroll-mt":n()}],"scroll-mr":[{"scroll-mr":n()}],"scroll-mb":[{"scroll-mb":n()}],"scroll-ml":[{"scroll-ml":n()}],"scroll-p":[{"scroll-p":n()}],"scroll-px":[{"scroll-px":n()}],"scroll-py":[{"scroll-py":n()}],"scroll-ps":[{"scroll-ps":n()}],"scroll-pe":[{"scroll-pe":n()}],"scroll-pt":[{"scroll-pt":n()}],"scroll-pr":[{"scroll-pr":n()}],"scroll-pb":[{"scroll-pb":n()}],"scroll-pl":[{"scroll-pl":n()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[c,Q,U,pe]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Qe=ga(Ha);function O(...e){return Qe(qe(e))}var je=({size:e="md",closeDelay:t=500,closeOnClick:o=true,closeOnEscape:a=true,closeOnPointerDown:d=true,closeOnScroll:s=true,interactive:r=true,lazyMount:p=false,openDelay:i=700,unmountOnExit:m=false,content:L,children:P,asChild:B,contentClassName:A,className:h,...S})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:t,closeOnClick:o,closeOnEscape:a,closeOnPointerDown:d,closeOnScroll:s,interactive:r,lazyMount:p,openDelay:i,unmountOnExit:m,...S,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:B,className:O("cursor-inherit text-left",h),children:P}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{"data-size":e,className:O("font-inter z-30 rounded-lg bg-neutral-900 text-center text-sm leading-[130%] whitespace-break-spaces text-neutral-50","data-[size=md]:p-4 data-[size=sm]:p-2","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[placement=left]:text-right data-[placement=left-end]:text-right data-[placement=left-start]:text-right","data-[placement=left]:origin-right data-[placement=left-end]:origin-bottom-right data-[placement=left-start]:origin-top-right","data-[placement=right-end]:right-right data-[placement=right]:text-right data-[placement=right-start]:text-right","data-[placement=right]:origin-left data-[placement=right-end]:origin-bottom-left data-[placement=right-start]:origin-top-left","data-[placement=top]:origin-bottom data-[placement=top-end]:origin-bottom-right data-[placement=top-start]:origin-bottom-left","data-[placement=bottom]:origin-top data-[placement=bottom-end]:origin-top-right data-[placement=bottom-start]:origin-top-left","data-[placement=left]:text-right data-[placement=left-end]:text-right data-[placement=left-start]:text-right","data-[placement=right]:text-left data-[placement=right-end]:text-left data-[placement=right-start]:text-left",A),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),L]})})]});var oo=({label:e,error:t,required:o,tooltip:a,readOnly:d,options:s,onInputValueChange:r,onSelect:p,defaultValue:i,className:m,helperText:L,...P})=>{let{contains:B}=locale.useFilter({sensitivity:"base"}),{collection:A,filter:h}=combobox.useListCollection({initialItems:s,filter:B}),S=react.useCallback(I=>{h(I.inputValue),r?.(I.inputValue);},[h,r]),D=react.useCallback(I=>{p?.(I.itemValue);},[p]);return jsxRuntime.jsxs(combobox.Combobox.Root,{"data-error":t,collection:A,onInputValueChange:S,onSelect:D,className:O("group flex flex-col gap-2",m),defaultValue:i?[i]:void 0,...P,children:[jsxRuntime.jsxs(combobox.Combobox.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[o?jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("span",{className:"text-red-500",children:"*"}),e]}):e,a&&jsxRuntime.jsx(je,{content:a,size:"sm",className:"ml-2",children:jsxRuntime.jsx(ne,{className:"size-3.5"})})]}),jsxRuntime.jsxs(combobox.Combobox.Control,{className:O("group/control data-[focus]:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex h-10 w-full items-center justify-between gap-2 overflow-hidden rounded-lg bg-neutral-50 px-3 ring ring-neutral-500 transition-shadow group-data-[error=true]:ring-2 group-data-[readonly]:bg-neutral-100 group-data-[readonly]:ring-neutral-300 has-focus:ring-2 data-[disabled]:ring-neutral-400",d&&"pointer-events-none"),children:[jsxRuntime.jsx(combobox.Combobox.Input,{className:O("font-inter flex w-full justify-between text-left text-sm text-neutral-900 outline-0 group-data-[disabled]/control:text-neutral-400 disabled:cursor-not-allowed data-[placeholder-shown]:text-neutral-500",d&&"pointer-events-none",t&&"pr-16")}),t&&jsxRuntime.jsx(ne,{className:"text-error-500 size-4.5 shrink-0"}),!d&&jsxRuntime.jsx(combobox.Combobox.ClearTrigger,{className:"cursor-pointer",children:jsxRuntime.jsx(De,{className:"size-4.5"})}),jsxRuntime.jsx(combobox.Combobox.Trigger,{className:"cursor-pointer group-data-[disabled]/control:cursor-not-allowed group-data-[disabled]/control:text-neutral-400",children:jsxRuntime.jsx(Re,{className:"size-4.5 transition-transform will-change-transform group-data-[state=open]/control:rotate-180"})})]}),jsxRuntime.jsx("p",{className:"font-inter text-2xs group-data-[error=true]:text-error-500 -mt-1 leading-[133.33%] font-normal text-neutral-700 peer-data-[disabled]:text-neutral-400 empty:hidden",children:L}),jsxRuntime.jsx(portal.Portal,{children:jsxRuntime.jsx(combobox.Combobox.Positioner,{className:"!z-10000",children:jsxRuntime.jsx(combobox.Combobox.Content,{className:"elevation-9 max-h-67.5 min-w-27.5 overflow-auto rounded-lg bg-neutral-50",children:jsxRuntime.jsx(combobox.Combobox.ItemGroup,{children:A.items.map(I=>jsxRuntime.jsx(combobox.Combobox.Item,{item:I,className:"font-inter data-[highlighted]:bg-primary-100 cursor-pointer p-3 data-[disabled]:cursor-not-allowed data-[disabled]:text-neutral-400",children:jsxRuntime.jsx(combobox.Combobox.ItemText,{className:"flex flex-col gap-1",asChild:true,children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"text-sm leading-[130%] font-medium",children:I.title}),I.description&&jsxRuntime.jsx("p",{className:"text-xs leading-[130%]",children:I.description})]})})},I.value))})})})})]})};/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
5
|
+
lucide-react/dist/esm/Icon.js:
|
|
6
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
7
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
8
|
+
lucide-react/dist/esm/icons/circle-alert.js:
|
|
9
|
+
lucide-react/dist/esm/icons/x.js:
|
|
10
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
11
|
+
(**
|
|
12
|
+
* @license lucide-react v0.511.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*)
|
|
17
|
+
*/exports.AutocompleteNew=oo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AutocompleteNew}from'../chunk-EEBEWLX4.mjs';import'../chunk-FR52DUJW.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -6,7 +6,7 @@ type ChipFormComplementaryVariantsType = (typeof ChipFormComplementaryVariants)[
|
|
|
6
6
|
declare const ChipFormComplementaryVariantsClassNames: Record<ChipFormComplementaryVariantsType, string>;
|
|
7
7
|
declare const chipForm: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
} & ({
|
|
@@ -74,7 +74,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
74
74
|
children?: React__default.ReactNode | undefined;
|
|
75
75
|
} & Omit<VariantProps<(props?: ({
|
|
76
76
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
77
|
-
size?: "
|
|
77
|
+
size?: "sm" | "md" | undefined;
|
|
78
78
|
selected?: boolean | undefined;
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
} & ({
|
|
@@ -133,7 +133,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
133
133
|
} | null | undefined;
|
|
134
134
|
})) | undefined) => string>, "variant"> & Required<Pick<VariantProps<(props?: ({
|
|
135
135
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
136
|
-
size?: "
|
|
136
|
+
size?: "sm" | "md" | undefined;
|
|
137
137
|
selected?: boolean | undefined;
|
|
138
138
|
disabled?: boolean | undefined;
|
|
139
139
|
} & ({
|
|
@@ -6,7 +6,7 @@ type ChipFormComplementaryVariantsType = (typeof ChipFormComplementaryVariants)[
|
|
|
6
6
|
declare const ChipFormComplementaryVariantsClassNames: Record<ChipFormComplementaryVariantsType, string>;
|
|
7
7
|
declare const chipForm: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
} & ({
|
|
@@ -74,7 +74,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
74
74
|
children?: React__default.ReactNode | undefined;
|
|
75
75
|
} & Omit<VariantProps<(props?: ({
|
|
76
76
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
77
|
-
size?: "
|
|
77
|
+
size?: "sm" | "md" | undefined;
|
|
78
78
|
selected?: boolean | undefined;
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
} & ({
|
|
@@ -133,7 +133,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
133
133
|
} | null | undefined;
|
|
134
134
|
})) | undefined) => string>, "variant"> & Required<Pick<VariantProps<(props?: ({
|
|
135
135
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
136
|
-
size?: "
|
|
136
|
+
size?: "sm" | "md" | undefined;
|
|
137
137
|
selected?: boolean | undefined;
|
|
138
138
|
disabled?: boolean | undefined;
|
|
139
139
|
} & ({
|
|
@@ -15,11 +15,11 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
15
15
|
children?: React__default.ReactNode | undefined;
|
|
16
16
|
} & Omit<Omit<VariantProps<(props?: ({
|
|
17
17
|
variant?: "standard" | "primary" | undefined;
|
|
18
|
-
type?: "
|
|
18
|
+
type?: "fill" | "outlined" | "ghost" | undefined;
|
|
19
19
|
selected?: boolean | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
duotone?: boolean | undefined;
|
|
22
|
-
size?: "
|
|
22
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
23
23
|
} & ({
|
|
24
24
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
25
25
|
[x: string]: any;
|
|
@@ -76,11 +76,11 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
76
76
|
} | null | undefined;
|
|
77
77
|
})) | undefined) => string>, "variant">, "type"> & Required<Pick<VariantProps<(props?: ({
|
|
78
78
|
variant?: "standard" | "primary" | undefined;
|
|
79
|
-
type?: "
|
|
79
|
+
type?: "fill" | "outlined" | "ghost" | undefined;
|
|
80
80
|
selected?: boolean | undefined;
|
|
81
81
|
disabled?: boolean | undefined;
|
|
82
82
|
duotone?: boolean | undefined;
|
|
83
|
-
size?: "
|
|
83
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
84
84
|
} & ({
|
|
85
85
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
86
86
|
[x: string]: any;
|
|
@@ -137,11 +137,11 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
137
137
|
} | null | undefined;
|
|
138
138
|
})) | undefined) => string>, "variant">> & Required<Pick<VariantProps<(props?: ({
|
|
139
139
|
variant?: "standard" | "primary" | undefined;
|
|
140
|
-
type?: "
|
|
140
|
+
type?: "fill" | "outlined" | "ghost" | undefined;
|
|
141
141
|
selected?: boolean | undefined;
|
|
142
142
|
disabled?: boolean | undefined;
|
|
143
143
|
duotone?: boolean | undefined;
|
|
144
|
-
size?: "
|
|
144
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
145
145
|
} & ({
|
|
146
146
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
147
147
|
[x: string]: any;
|
|
@@ -15,11 +15,11 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
15
15
|
children?: React__default.ReactNode | undefined;
|
|
16
16
|
} & Omit<Omit<VariantProps<(props?: ({
|
|
17
17
|
variant?: "standard" | "primary" | undefined;
|
|
18
|
-
type?: "
|
|
18
|
+
type?: "fill" | "outlined" | "ghost" | undefined;
|
|
19
19
|
selected?: boolean | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
duotone?: boolean | undefined;
|
|
22
|
-
size?: "
|
|
22
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
23
23
|
} & ({
|
|
24
24
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
25
25
|
[x: string]: any;
|
|
@@ -76,11 +76,11 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
76
76
|
} | null | undefined;
|
|
77
77
|
})) | undefined) => string>, "variant">, "type"> & Required<Pick<VariantProps<(props?: ({
|
|
78
78
|
variant?: "standard" | "primary" | undefined;
|
|
79
|
-
type?: "
|
|
79
|
+
type?: "fill" | "outlined" | "ghost" | undefined;
|
|
80
80
|
selected?: boolean | undefined;
|
|
81
81
|
disabled?: boolean | undefined;
|
|
82
82
|
duotone?: boolean | undefined;
|
|
83
|
-
size?: "
|
|
83
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
84
84
|
} & ({
|
|
85
85
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
86
86
|
[x: string]: any;
|
|
@@ -137,11 +137,11 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
137
137
|
} | null | undefined;
|
|
138
138
|
})) | undefined) => string>, "variant">> & Required<Pick<VariantProps<(props?: ({
|
|
139
139
|
variant?: "standard" | "primary" | undefined;
|
|
140
|
-
type?: "
|
|
140
|
+
type?: "fill" | "outlined" | "ghost" | undefined;
|
|
141
141
|
selected?: boolean | undefined;
|
|
142
142
|
disabled?: boolean | undefined;
|
|
143
143
|
duotone?: boolean | undefined;
|
|
144
|
-
size?: "
|
|
144
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
145
145
|
} & ({
|
|
146
146
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
147
147
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@ type ChipStatusComplementaryVariantType = (typeof ChipStatusComplementaryVariant
|
|
|
6
6
|
type ChipStatusComplementarySizeType = (typeof ChipStatusComplementarySizes)[number];
|
|
7
7
|
declare const chipStatusComplementary: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
10
10
|
} & ({
|
|
11
11
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
12
12
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@ type ChipStatusComplementaryVariantType = (typeof ChipStatusComplementaryVariant
|
|
|
6
6
|
type ChipStatusComplementarySizeType = (typeof ChipStatusComplementarySizes)[number];
|
|
7
7
|
declare const chipStatusComplementary: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
10
10
|
} & ({
|
|
11
11
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
12
12
|
[x: string]: any;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'cva';
|
|
|
2
2
|
import { HTMLAttributes, FC } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const chipStatusTable: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "success" | "info" | "warning" | "error" | "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
6
6
|
} & ({
|
|
7
7
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'cva';
|
|
|
2
2
|
import { HTMLAttributes, FC } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const chipStatusTable: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "success" | "info" | "warning" | "error" | "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
6
6
|
} & ({
|
|
7
7
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
@@ -54,6 +54,7 @@ export { TimePickerNew } from './time-picker-new.mjs';
|
|
|
54
54
|
export { CountryCodeEnum, PhoneInput, PhoneInputProps } from './phone-input.mjs';
|
|
55
55
|
export { CardForm, CardFormBody, CardFormFooter, CardFormHeader, CardFormProps } from './card-form.mjs';
|
|
56
56
|
export { TextFieldNew, TextFieldNewProps } from './text-field-new.mjs';
|
|
57
|
+
export { AutocompleteNew, AutocompleteNewItem } from './autocomplete-new.mjs';
|
|
57
58
|
import * as Dialog from '@radix-ui/react-dialog';
|
|
58
59
|
export { Dialog as DialogPrimitive };
|
|
59
60
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
@@ -81,6 +82,7 @@ import '@ark-ui/react/collapsible';
|
|
|
81
82
|
import '@ark-ui/react/date-picker';
|
|
82
83
|
import '@ark-ui/react/select';
|
|
83
84
|
import '@ark-ui/react/field';
|
|
85
|
+
import '@ark-ui/react/combobox';
|
|
84
86
|
|
|
85
87
|
type AutocompleteOption = {
|
|
86
88
|
key?: string | number;
|
|
@@ -54,6 +54,7 @@ export { TimePickerNew } from './time-picker-new.js';
|
|
|
54
54
|
export { CountryCodeEnum, PhoneInput, PhoneInputProps } from './phone-input.js';
|
|
55
55
|
export { CardForm, CardFormBody, CardFormFooter, CardFormHeader, CardFormProps } from './card-form.js';
|
|
56
56
|
export { TextFieldNew, TextFieldNewProps } from './text-field-new.js';
|
|
57
|
+
export { AutocompleteNew, AutocompleteNewItem } from './autocomplete-new.js';
|
|
57
58
|
import * as Dialog from '@radix-ui/react-dialog';
|
|
58
59
|
export { Dialog as DialogPrimitive };
|
|
59
60
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
@@ -81,6 +82,7 @@ import '@ark-ui/react/collapsible';
|
|
|
81
82
|
import '@ark-ui/react/date-picker';
|
|
82
83
|
import '@ark-ui/react/select';
|
|
83
84
|
import '@ark-ui/react/field';
|
|
85
|
+
import '@ark-ui/react/combobox';
|
|
84
86
|
|
|
85
87
|
type AutocompleteOption = {
|
|
86
88
|
key?: string | number;
|