sodtrack-web-ui 0.73.2 → 0.73.4
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-RE4QNXBE.mjs +1 -0
- package/dist/{chunk-OA4C2MPU.mjs → chunk-RQXPAQFW.mjs} +1 -1
- package/dist/{chunk-PVBR4B23.mjs → chunk-TTH6SSBJ.mjs} +1 -1
- package/dist/components/autocomplete-new.d.mts +9 -8
- package/dist/components/autocomplete-new.d.ts +9 -8
- package/dist/components/autocomplete-new.js +1 -1
- package/dist/components/autocomplete-new.mjs +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/date-picker-new.d.mts +2 -2
- package/dist/components/date-picker-new.d.ts +2 -2
- package/dist/components/date-picker-new.mjs +1 -1
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- 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/time-picker-new.d.mts +1 -1
- package/dist/components/time-picker-new.d.ts +1 -1
- package/dist/components/time-picker-new.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ATL3W2TQ.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-PF2FHSIC.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,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';var W=({title:p,titleLines:l=2,description:a$1,descriptionLines:m=1,Icon:i,iconAsColumn:r=true,className:d,...s})=>jsxs("div",{className:a("flex gap-2 py-4 pl-4 pr-6",r&&"flex-col items-center gap-1",!r&&!a$1&&"items-center"),...s,children:[i&&jsx(i,{className:a("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a("flex flex-col gap-1",r&&"text-center"),children:[jsx("p",{className:a("leading-[130%] text-neutral-500",!!a$1&&"font-medium"),style:l?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:l}:void 0,children:p}),a$1&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:m?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:m}:void 0,children:a$1})]})]}),R=W;var ne=({label:p,error:l,required:a$1,tooltip:m,readOnly:i,options:r,onInputValueChange:d$1,onSelect:s,defaultValue:f,className:y,helperText:L,noResultsTitle:P,noResultsDescription:k,noResultsIcon:V,noResultsTitleLines:S,noResultsDescriptionLines:A,value:C,...z})=>{let{contains:D}=useFilter({sensitivity:"base"}),{collection:c,filter:N,set:O}=useListCollection({initialItems:r,filter:D,itemToString:t=>t.label,itemToValue:t=>String(t.value)}),M=useCallback(t=>{N(t.inputValue),d$1?.(t.inputValue);},[N,d$1]),F=useCallback(t=>{let v=r.find(G=>String(G.value)===t.itemValue);v&&s?.(v);},[s,r]),E=useCallback(()=>{s?.(null);},[s]);return useEffect(()=>{O(r);},[r]),jsxs(Combobox.Root,{"data-error":l,collection:c,onInputValueChange:M,onSelect:F,className:a("group flex flex-col gap-2",y),defaultValue:f?[String(f)]:void 0,value:C?[String(C)]:void 0,...z,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:[a$1?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),p]}):p,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",i&&"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",i&&"pointer-events-none",l&&"pr-16")}),l&&jsx(q,{className:"text-error-500 size-4.5 shrink-0"}),!i&&jsx(Combobox.ClearTrigger,{className:"cursor-pointer",onClick:E,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:L}),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:jsxs(Combobox.ItemGroup,{children:[c.items.length>0&&c.items.map(t=>jsx(Combobox.Item,{item:t,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:t.label}),t.description&&jsx("p",{className:"text-xs leading-[130%]",children:t.description})]})})},t.value)),c.items.length===0&&jsx(R,{title:P,description:k,Icon:V,descriptionLines:A,titleLines:S})]})})})})]})};export{R as a,ne as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c as c$3}from'./chunk-35JUETHD.mjs';import {d}from'./chunk-KTTNV2CJ.mjs';import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-5JYXZUPM.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {a}from'./chunk-ATL3W2TQ.mjs';import {a as a$3}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$2}from'./chunk-BO6XI5BE.mjs';import fe,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ae from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Ue=fe.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:o,noResultsDescription:t,noResultsDescriptionLines:p,noResultsAsColumn:s,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:c$1,inputRect:u,inputRef:f,popoverPosition:x,optionsListRef:L,selectedOption:h,options:g,setFilteredOptions:C})=>jsx(Ae.Root,{asChild:true,children:jsxs("div",{ref:L,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:x==="bottom"?`${u.bottom}px`:void 0,bottom:x==="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(a,{title:o,description:t,Icon:i,iconAsColumn:s,descriptionLines:p}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{L.current.style.display="none",f.current.value="",C(g),n();},children:l})]})]}),c$1.map(a=>jsx(Oe,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(h?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Me=Ue;var Je=336,Qt=({options:e,defaultSelectedOption:i,onSelect:o,onClick:t,onInputChange:p,error:s,helperText:n,label:r,placeholder:l,value:c,size:u="md",optionDescriptionLines:f=1,noResultsLabel:x,noResultsIcon:L,noResultsDescription:h,noResultsDescriptionLines:g,noResultsAsColumn:C,noResultsButtonOnClick:a,noResultsButtonLabel:S,className:b,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[le,se]=useState(),[pe,N]=useState([]),[ue,z]=useState("bottom"),[X,j]=useState(),U=Je,W=useCallback(v=>{O.current.style.display="none",d.current.value=v.label,M(v),o?.(v);},[o]),w=useCallback(()=>{if(!d?.current)return;let v=d.current.getBoundingClientRect();se(v);let E=X?X.height:U,I=window.innerHeight-v.bottom>E,ee=v.top>E;z(I?"bottom":ee?"top":"bottom");},[X?.height]),q=useCallback(()=>{let v=e.filter(E=>E.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(N(v),O?.current){let E=O.current.getBoundingClientRect();j(E);}},[e]);return useEffect(()=>{N(e);},[e]),useEffect(()=>{if(!c){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==c.value)&&(M(c),d.current.value=c.label);},[c]),a$5(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$2("relative",b),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:v=>{v.target.value||(M(null),o?.(null)),p?.(v);},onClean:()=>{M(null),N(e),o?.(null);},onClick:v=>{O.current.style.display="flex",t?.(v);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:u,error:s,disabled:P}),jsx(Me,{handleSelect:W,noResultsLabel:x,NoResultsIcon:L,optionDescriptionLines:f,noResultsAsColumn:C,noResultsButtonLabel:S,noResultsButtonOnClick:a,noResultsDescription:h,noResultsDescriptionLines:g,filteredOptions:pe,inputRect:le,inputRef:d,popoverPosition:ue,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:N})]})};var Qe=({children:e,title:i,titleLines:o,description:t="",descriptionLines:p,disabled:s=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!t&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:i}),t&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700"),style:p?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:p}:void 0,children:t})]}),k=Qe;var po=({children:e,title:i,titleLines:o,description:t="",descriptionLines:p,startIcon:s,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:c,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:l,onClick:c,hasDivider:r,className:a$2(!l&&"cursor-pointer",u),...f,children:[s&&fe.cloneElement(s,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:l}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$3,{content:n,size:"lg",variant:"alert",className:a$2("self-center",l&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var De=({children:e,title:i,titleLines:o=1,description:t="",descriptionLines:p,startIcon:s,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:c,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:r,hasDivider:n,...f,className:a$2("pr-6",u),children:[s&&fe.cloneElement(s,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:c,className:"ml-4 self-center",disabled:r})]});var F=336,Te=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:F,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),D=()=>{let e=useContext(Te);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},ke=({children:e})=>{let i=useRef(null),o=useRef(null),t=useId(),[p,s]=useState(),[n,r]=useState(true),[l,c]=useState([]),[u,f]=useState(-1),[x,L]=useState("bottom"),[h,g]=useState(),[C,a]=useState(F);return jsx(Te.Provider,{value:{optionsListRef:i,inputRef:o,autocompleteId:t,inputRect:p,showChips:n,filteredOptions:l,currentFocus:u,popoverPosition:x,setFilteredOptions:c,setCurrentFocus:f,setShowChips:r,setPopoverPosition:L,setInputRect:s,optionsListHeight:C,optionsListRect:h,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var st=({option:e,onMountWidth:i,size:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&i?.(t.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:t,className:"shrink-0",size:o==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},He=st;var mt=150,at=fe.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:o,disabled:t,size:p})=>{let{autocompleteId:s,inputRect:n,inputRef:r,optionsListRef:l}=D(),c=fe.useRef(null),[u,f]=fe.useState(new Map),x=useMemo(()=>{if(!n?.width)return [];let h=0,g=n.width-mt,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]),L=useCallback(()=>{t||(r?.current?.focus(),l.current.style.display="flex");},[t]);return jsxs("div",{onClick:L,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",t&&"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:x.map((h,g)=>jsx(He,{option:h,onMountWidth:C=>f(a=>new Map(a).set(g,C)),size:p},`chip-input-${s}-${h.value}`))}),e.length>x.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{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(),o();}})]})}),Se=at;var ht=fe.memo(({option:e,index:i,onPressOption:o,isSelected:t,optionDescriptionLines:p})=>{let{currentFocus:s,inputRef:n}=D();return jsx(De,{title:e.label,checked:t,disabled:e.disabled,className:s===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),o?.(e,r));},description:e.description,descriptionLines:p})}),he=ht;var xt=fe.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:p,noResultsDescriptionLines:s,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:c$1})=>{let{popoverPosition:u,optionsListRef:f,filteredOptions:x,inputRect:L,autocompleteId:h,inputRef:g,optionsListHeight:C}=D(),a$2=useCallback(b=>e.some(P=>P.value===b.value),[e]),S=useMemo(()=>e.filter(b=>b.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ae.Root,{asChild:true,children:jsxs("div",{ref:f,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:L?{width:`${L.width}px`,left:L.left,top:u==="bottom"?`${L.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-L.top}px`:void 0,maxHeight:C+"px"}:void 0,children:[x.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:p,Icon:o,iconAsColumn:n,descriptionLines:s}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{f.current.style.display="none",g.current.value="",r();},children:c$1})]})]}),S.map((b,P)=>jsx(he,{option:b,index:P,onPressOption:m=>i(m),isSelected:a$2(b),optionDescriptionLines:l},`autocomplete-option-${h}-${b.key??b.value}`)),x.map((b,P)=>!e.some(m=>m.value===b.value)&&jsx(he,{option:b,index:P,onPressOption:m=>i(m),isSelected:a$2(b),optionDescriptionLines:l},`autocomplete-option-${h}-${b.key??b.value}`))]})})}),Ne=xt;var At=fe.memo(({selectedOptions:e,onSelect:i,error:o,helperText:t,label:p,placeholder:s,options:n,onInputChange:r,size:l,disabled:c})=>{let{setCurrentFocus:u,setFilteredOptions:f,optionsListRef:x,inputRef:L}=D();return jsx(a$4,{ref:L,autoComplete:"off",list:"",disabled:c,selectMode:true,onChange:h=>{u(-1),r?.(h.target.value);},onClean:()=>{u(-1),f(n),i?.(null,e);},onClick:()=>{c||(x.current.style.display="flex");},error:o,helperText:t,label:p,placeholder:s,fixedTopLabel:e.length>0,size:l})}),ze=At;var We=({options:e,defaultSelectedOptions:i,onSelect:o,error:t,helperText:p,label:s,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:c,noResultsDescriptionLines:u,noResultsAsColumn:f,noResultsButtonOnClick:x,noResultsButtonLabel:L,className:h,onInputChange:g,value:C,loading:a,size:S="md",optionDescriptionLines:b=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:le,setPopoverPosition:se,setCurrentFocus:pe,showChips:N,setOptionsListRect:ue,optionsListRect:z,setOptionsListHeight:X}=D(),j=useRef(false),[U,W]=useState(i??[]),w=useCallback(A=>{W(y=>{let T,J=y.findIndex(_e=>_e.value===A.value);return J===-1?(T=y.concat(A),o?.(A,T),T):(T=y.toSpliced(J,1),o?.(A,T),T)});},[o]),q=useCallback(()=>{W([]),O(e),o?.(null,[]);},[]),v=useCallback(()=>{d(false);},[]),E=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();le(A);let y=z?z.height>F?F:z.height:F,T=window.innerHeight-A.bottom>y,J=A.top>y;se(T?"bottom":J?"top":"bottom"),X(J?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[z?.height]),ee=useCallback(()=>{let A=e.filter(y=>y.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let y=M.current.getBoundingClientRect();ue(y);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.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",v),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",v),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,E,v,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$2("relative",h),children:[jsx(ze,{selectedOptions:U,onSelect:o,error:t,helperText:p,label:s,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:S,disabled:P}),N&&jsx(Se,{selectedOptions:U,disabled:P,error:t,onCleanSelectedOptions:q,size:S}),jsx(Ne,{handleSelect:w,selectedOptions:U,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:b,noResultsAsColumn:f,noResultsButtonLabel:L,noResultsButtonOnClick:x,noResultsDescription:c,noResultsDescriptionLines:u})]})};var Ai=e=>jsx(ke,{children:jsx(We,{...e})});var Fi=({children:e,title:i,titleLines:o=1,description:t,descriptionLines:p=1,StartIcon:s,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:c$1=false,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:r,hasDivider:n,isSelected:c$1,...f,className:u,children:[s&&jsx(s,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:r}),l&&jsx(Fragment,{children:l.isIcon?jsx(c$3,{...l,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??l.disabled}):jsx(c,{...l,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??l.disabled})})]});var yt=({children:e,hasDescription:i=false,disabled:o=false,hasDivider:t=false,className:p,isSelected:s,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",o?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",s&&"bg-primary-200",p),onClick:l=>{o||n?.(l);},...r,children:e}),t&&jsx(a$1,{})]}),H=yt;var Oe=({children:e,title:i,titleLines:o,description:t="",descriptionLines:p,startIcon:s,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:c=false,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:l,hasDivider:r,className:u,isSelected:c,...f,children:[s&&fe.cloneElement(s,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:l}),n&&fe.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{Qt as a,Oe as b,po as c,De as d,Ai as e,Fi as f};
|
|
1
|
+
import {c as c$3}from'./chunk-35JUETHD.mjs';import {d}from'./chunk-KTTNV2CJ.mjs';import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-5JYXZUPM.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {a}from'./chunk-RE4QNXBE.mjs';import {a as a$3}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$2}from'./chunk-BO6XI5BE.mjs';import fe,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ae from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Ue=fe.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:o,noResultsDescription:t,noResultsDescriptionLines:p,noResultsAsColumn:s,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:c$1,inputRect:u,inputRef:f,popoverPosition:x,optionsListRef:L,selectedOption:h,options:g,setFilteredOptions:C})=>jsx(Ae.Root,{asChild:true,children:jsxs("div",{ref:L,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:x==="bottom"?`${u.bottom}px`:void 0,bottom:x==="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(a,{title:o,description:t,Icon:i,iconAsColumn:s,descriptionLines:p}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{L.current.style.display="none",f.current.value="",C(g),n();},children:l})]})]}),c$1.map(a=>jsx(Oe,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(h?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Me=Ue;var Je=336,Qt=({options:e,defaultSelectedOption:i,onSelect:o,onClick:t,onInputChange:p,error:s,helperText:n,label:r,placeholder:l,value:c,size:u="md",optionDescriptionLines:f=1,noResultsLabel:x,noResultsIcon:L,noResultsDescription:h,noResultsDescriptionLines:g,noResultsAsColumn:C,noResultsButtonOnClick:a,noResultsButtonLabel:S,className:b,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[le,se]=useState(),[pe,N]=useState([]),[ue,z]=useState("bottom"),[X,j]=useState(),U=Je,W=useCallback(v=>{O.current.style.display="none",d.current.value=v.label,M(v),o?.(v);},[o]),w=useCallback(()=>{if(!d?.current)return;let v=d.current.getBoundingClientRect();se(v);let E=X?X.height:U,I=window.innerHeight-v.bottom>E,ee=v.top>E;z(I?"bottom":ee?"top":"bottom");},[X?.height]),q=useCallback(()=>{let v=e.filter(E=>E.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(N(v),O?.current){let E=O.current.getBoundingClientRect();j(E);}},[e]);return useEffect(()=>{N(e);},[e]),useEffect(()=>{if(!c){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==c.value)&&(M(c),d.current.value=c.label);},[c]),a$5(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$2("relative",b),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:v=>{v.target.value||(M(null),o?.(null)),p?.(v);},onClean:()=>{M(null),N(e),o?.(null);},onClick:v=>{O.current.style.display="flex",t?.(v);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:u,error:s,disabled:P}),jsx(Me,{handleSelect:W,noResultsLabel:x,NoResultsIcon:L,optionDescriptionLines:f,noResultsAsColumn:C,noResultsButtonLabel:S,noResultsButtonOnClick:a,noResultsDescription:h,noResultsDescriptionLines:g,filteredOptions:pe,inputRect:le,inputRef:d,popoverPosition:ue,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:N})]})};var Qe=({children:e,title:i,titleLines:o,description:t="",descriptionLines:p,disabled:s=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!t&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:i}),t&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700"),style:p?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:p}:void 0,children:t})]}),k=Qe;var po=({children:e,title:i,titleLines:o,description:t="",descriptionLines:p,startIcon:s,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:c,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:l,onClick:c,hasDivider:r,className:a$2(!l&&"cursor-pointer",u),...f,children:[s&&fe.cloneElement(s,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:l}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$3,{content:n,size:"lg",variant:"alert",className:a$2("self-center",l&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var De=({children:e,title:i,titleLines:o=1,description:t="",descriptionLines:p,startIcon:s,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:c,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:r,hasDivider:n,...f,className:a$2("pr-6",u),children:[s&&fe.cloneElement(s,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:c,className:"ml-4 self-center",disabled:r})]});var F=336,Te=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:F,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),D=()=>{let e=useContext(Te);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},ke=({children:e})=>{let i=useRef(null),o=useRef(null),t=useId(),[p,s]=useState(),[n,r]=useState(true),[l,c]=useState([]),[u,f]=useState(-1),[x,L]=useState("bottom"),[h,g]=useState(),[C,a]=useState(F);return jsx(Te.Provider,{value:{optionsListRef:i,inputRef:o,autocompleteId:t,inputRect:p,showChips:n,filteredOptions:l,currentFocus:u,popoverPosition:x,setFilteredOptions:c,setCurrentFocus:f,setShowChips:r,setPopoverPosition:L,setInputRect:s,optionsListHeight:C,optionsListRect:h,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var st=({option:e,onMountWidth:i,size:o})=>{let t=useRef(null);return useEffect(()=>{t.current&&i?.(t.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:t,className:"shrink-0",size:o==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},He=st;var mt=150,at=fe.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:o,disabled:t,size:p})=>{let{autocompleteId:s,inputRect:n,inputRef:r,optionsListRef:l}=D(),c=fe.useRef(null),[u,f]=fe.useState(new Map),x=useMemo(()=>{if(!n?.width)return [];let h=0,g=n.width-mt,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]),L=useCallback(()=>{t||(r?.current?.focus(),l.current.style.display="flex");},[t]);return jsxs("div",{onClick:L,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",t&&"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:x.map((h,g)=>jsx(He,{option:h,onMountWidth:C=>f(a=>new Map(a).set(g,C)),size:p},`chip-input-${s}-${h.value}`))}),e.length>x.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{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(),o();}})]})}),Se=at;var ht=fe.memo(({option:e,index:i,onPressOption:o,isSelected:t,optionDescriptionLines:p})=>{let{currentFocus:s,inputRef:n}=D();return jsx(De,{title:e.label,checked:t,disabled:e.disabled,className:s===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),o?.(e,r));},description:e.description,descriptionLines:p})}),he=ht;var xt=fe.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:o,noResultsLabel:t,noResultsDescription:p,noResultsDescriptionLines:s,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:c$1})=>{let{popoverPosition:u,optionsListRef:f,filteredOptions:x,inputRect:L,autocompleteId:h,inputRef:g,optionsListHeight:C}=D(),a$2=useCallback(b=>e.some(P=>P.value===b.value),[e]),S=useMemo(()=>e.filter(b=>b.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ae.Root,{asChild:true,children:jsxs("div",{ref:f,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:L?{width:`${L.width}px`,left:L.left,top:u==="bottom"?`${L.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-L.top}px`:void 0,maxHeight:C+"px"}:void 0,children:[x.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:p,Icon:o,iconAsColumn:n,descriptionLines:s}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{f.current.style.display="none",g.current.value="",r();},children:c$1})]})]}),S.map((b,P)=>jsx(he,{option:b,index:P,onPressOption:m=>i(m),isSelected:a$2(b),optionDescriptionLines:l},`autocomplete-option-${h}-${b.key??b.value}`)),x.map((b,P)=>!e.some(m=>m.value===b.value)&&jsx(he,{option:b,index:P,onPressOption:m=>i(m),isSelected:a$2(b),optionDescriptionLines:l},`autocomplete-option-${h}-${b.key??b.value}`))]})})}),Ne=xt;var At=fe.memo(({selectedOptions:e,onSelect:i,error:o,helperText:t,label:p,placeholder:s,options:n,onInputChange:r,size:l,disabled:c})=>{let{setCurrentFocus:u,setFilteredOptions:f,optionsListRef:x,inputRef:L}=D();return jsx(a$4,{ref:L,autoComplete:"off",list:"",disabled:c,selectMode:true,onChange:h=>{u(-1),r?.(h.target.value);},onClean:()=>{u(-1),f(n),i?.(null,e);},onClick:()=>{c||(x.current.style.display="flex");},error:o,helperText:t,label:p,placeholder:s,fixedTopLabel:e.length>0,size:l})}),ze=At;var We=({options:e,defaultSelectedOptions:i,onSelect:o,error:t,helperText:p,label:s,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:c,noResultsDescriptionLines:u,noResultsAsColumn:f,noResultsButtonOnClick:x,noResultsButtonLabel:L,className:h,onInputChange:g,value:C,loading:a,size:S="md",optionDescriptionLines:b=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:le,setPopoverPosition:se,setCurrentFocus:pe,showChips:N,setOptionsListRect:ue,optionsListRect:z,setOptionsListHeight:X}=D(),j=useRef(false),[U,W]=useState(i??[]),w=useCallback(A=>{W(y=>{let T,J=y.findIndex(_e=>_e.value===A.value);return J===-1?(T=y.concat(A),o?.(A,T),T):(T=y.toSpliced(J,1),o?.(A,T),T)});},[o]),q=useCallback(()=>{W([]),O(e),o?.(null,[]);},[]),v=useCallback(()=>{d(false);},[]),E=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();le(A);let y=z?z.height>F?F:z.height:F,T=window.innerHeight-A.bottom>y,J=A.top>y;se(T?"bottom":J?"top":"bottom"),X(J?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[z?.height]),ee=useCallback(()=>{let A=e.filter(y=>y.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let y=M.current.getBoundingClientRect();ue(y);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.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",v),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",v),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,E,v,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$2("relative",h),children:[jsx(ze,{selectedOptions:U,onSelect:o,error:t,helperText:p,label:s,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:S,disabled:P}),N&&jsx(Se,{selectedOptions:U,disabled:P,error:t,onCleanSelectedOptions:q,size:S}),jsx(Ne,{handleSelect:w,selectedOptions:U,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:b,noResultsAsColumn:f,noResultsButtonLabel:L,noResultsButtonOnClick:x,noResultsDescription:c,noResultsDescriptionLines:u})]})};var Ai=e=>jsx(ke,{children:jsx(We,{...e})});var Fi=({children:e,title:i,titleLines:o=1,description:t,descriptionLines:p=1,StartIcon:s,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:c$1=false,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:r,hasDivider:n,isSelected:c$1,...f,className:u,children:[s&&jsx(s,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:r}),l&&jsx(Fragment,{children:l.isIcon?jsx(c$3,{...l,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??l.disabled}):jsx(c,{...l,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??l.disabled})})]});var yt=({children:e,hasDescription:i=false,disabled:o=false,hasDivider:t=false,className:p,isSelected:s,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",o?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",s&&"bg-primary-200",p),onClick:l=>{o||n?.(l);},...r,children:e}),t&&jsx(a$1,{})]}),H=yt;var Oe=({children:e,title:i,titleLines:o,description:t="",descriptionLines:p,startIcon:s,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:c=false,className:u,...f})=>jsxs(H,{hasDescription:!!t,disabled:l,hasDivider:r,className:u,isSelected:c,...f,children:[s&&fe.cloneElement(s,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(k,{title:i,titleLines:o,description:t,descriptionLines:p,disabled:l}),n&&fe.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{Qt as a,Oe as b,po as c,De as d,Ai as e,Fi as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-PF2FHSIC.mjs';import {q,d,u,i,h}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {DatePicker}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var z=({helperText:P,error:c,label:p,required:f,className:w,tooltip:b$1,...l})=>jsxs(DatePicker.Root,{className:a("group flex flex-col gap-2",w),...l,positioning:{placement:"bottom-end"},"data-error":c,children:[jsxs(DatePicker.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[f?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),p]}):p,b$1&&jsx(b,{content:b$1,size:"sm",className:"ml-2",children:jsx(q,{className:"size-3.5"})})]}),jsxs(DatePicker.Control,{className:"has-focus:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex 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",children:[jsx(DatePicker.Input,{className:a("font-inter peer w-full py-2.5 pr-10.5 pl-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400",l.readOnly&&"pointer-events-none"),tabIndex:l.readOnly?-1:void 0}),!c&&jsx(DatePicker.ClearTrigger,{className:a("absolute top-1/2 right-13 -translate-y-1/2 cursor-pointer",l.readOnly&&"pointer-events-none"),tabIndex:l.readOnly?-1:void 0,children:jsx(d,{className:"size-4.5 text-neutral-700"})}),c&&jsx(q,{className:"text-error-500 absolute top-1/2 right-13 size-4.5 -translate-y-1/2 cursor-pointer"}),jsx(DatePicker.Trigger,{className:a("peer-focus:ring-primary-800 focus:ring-primary-800 group-data-[error=true]:ring-error-500 flex w-10 shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[error=true]:ring-2 group-data-[readonly]:ring-neutral-300 peer-read-only:cursor-not-allowed peer-read-only:text-neutral-400 peer-focus:ring-2 focus:ring-2 focus:outline-none disabled:cursor-not-allowed disabled:ring-neutral-400",l.readOnly&&"pointer-events-none"),tabIndex:l.readOnly?-1:void 0,children:jsx(u,{className:"size-4.5"})})]}),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:P}),jsx(Portal,{children:jsx(DatePicker.Positioner,{className:"!z-50",children:jsxs(DatePicker.Content,{className:"elevation-9 rounded-xl bg-neutral-50 p-3",children:[jsx(DatePicker.View,{view:"day",children:jsx(DatePicker.Context,{children:i=>jsxs(Fragment,{children:[jsx(g,{}),jsxs(DatePicker.Table,{children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:i.weekDays.map((n
|
|
1
|
+
import {b}from'./chunk-PF2FHSIC.mjs';import {q,d,u,i,h}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {DatePicker}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var z=({helperText:P,error:c,label:p,required:f,className:w,tooltip:b$1,...l})=>jsxs(DatePicker.Root,{className:a("group flex flex-col gap-2",w),...l,positioning:{placement:"bottom-end"},"data-error":c,children:[jsxs(DatePicker.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[f?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),p]}):p,b$1&&jsx(b,{content:b$1,size:"sm",className:"ml-2",children:jsx(q,{className:"size-3.5"})})]}),jsxs(DatePicker.Control,{className:"has-focus:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex 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",children:[jsx(DatePicker.Input,{className:a("font-inter peer w-full py-2.5 pr-10.5 pl-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400",l.readOnly&&"pointer-events-none"),tabIndex:l.readOnly?-1:void 0}),!c&&jsx(DatePicker.ClearTrigger,{className:a("absolute top-1/2 right-13 -translate-y-1/2 cursor-pointer",l.readOnly&&"pointer-events-none"),tabIndex:l.readOnly?-1:void 0,children:jsx(d,{className:"size-4.5 text-neutral-700"})}),c&&jsx(q,{className:"text-error-500 absolute top-1/2 right-13 size-4.5 -translate-y-1/2 cursor-pointer"}),jsx(DatePicker.Trigger,{className:a("peer-focus:ring-primary-800 focus:ring-primary-800 group-data-[error=true]:ring-error-500 flex w-10 shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[error=true]:ring-2 group-data-[readonly]:ring-neutral-300 peer-read-only:cursor-not-allowed peer-read-only:text-neutral-400 peer-focus:ring-2 focus:ring-2 focus:outline-none disabled:cursor-not-allowed disabled:ring-neutral-400",l.readOnly&&"pointer-events-none"),tabIndex:l.readOnly?-1:void 0,children:jsx(u,{className:"size-4.5"})})]}),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:P}),jsx(Portal,{children:jsx(DatePicker.Positioner,{className:"!z-50",children:jsxs(DatePicker.Content,{className:"elevation-9 rounded-xl bg-neutral-50 p-3",children:[jsx(DatePicker.View,{view:"day",children:jsx(DatePicker.Context,{children:i=>jsxs(Fragment,{children:[jsx(g,{}),jsxs(DatePicker.Table,{children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:i.weekDays.map((o,n)=>jsx(DatePicker.TableHeader,{className:"font-inter h-10 text-sm font-semibold text-neutral-900",children:o.narrow},n))})}),jsx(DatePicker.TableBody,{children:i.weeks.map((o,n)=>jsx(DatePicker.TableRow,{children:o.map((r,d)=>jsx(DatePicker.TableCell,{value:r,children:jsx(DatePicker.TableCellTrigger,{className:a("font-inter mx-0.75 my-1 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-center text-sm leading-[142.86%] font-normal text-neutral-900","[&:not([data-today])]:[&:not([data-disabled])]:[&:not([data-selected])]:hover:bg-primary-50","data-[outside-range]:cursor-not-allowed data-[outside-range]:text-neutral-400","data-[disabled]:cursor-not-allowed data-[disabled]:text-neutral-400","data-[selected]:bg-primary-500 data-[selected]:text-neutral-50","data-[selected]:hover:bg-primary-300 data-[selected]:hover:text-neutral-900","data-[today]:ring-primary-500 [&:not([data-selected])]:[&:not([data-disabled])]:data-[today]:text-primary-500 [&:not([data-selected])]:data-[today]:ring","[&:not([data-selected])]:[&:not([data-disabled])]:data-[today]:hover:ring-primary-600 [&:not([data-selected])]:[&:not([data-disabled])]:data-[today]:hover:text-primary-600","data-[disabled]:data-[today]:text-neutral-400 data-[disabled]:data-[today]:ring-neutral-400"),children:r.day})},d))},n))})]})]})})}),jsx(DatePicker.View,{view:"month",children:jsx(DatePicker.Context,{children:i=>jsxs(Fragment,{children:[jsx(g,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:i.getMonthsGrid({columns:4,format:"short"}).map((o,n)=>jsx(DatePicker.TableRow,{children:o.map((r,d)=>jsx(DatePicker.TableCell,{value:r.value,children:jsx(DatePicker.TableCellTrigger,{className:"font-inter hover:bg-primary-100 data-[selected]:bg-primary-200 data-[selected]:text-primary-600 flex h-12 w-16.5 cursor-pointer items-center justify-center rounded-lg text-center text-sm font-normal transition-colors",children:r.label})},d))},n))})})]})})}),jsx(DatePicker.View,{view:"year",children:jsx(DatePicker.Context,{children:i=>jsxs(Fragment,{children:[jsx(g,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:i.getYearsGrid({columns:4}).map((o,n)=>jsx(DatePicker.TableRow,{children:o.map((r,d)=>jsx(DatePicker.TableCell,{value:r.value,children:jsx(DatePicker.TableCellTrigger,{className:"font-inter hover:bg-primary-100 data-[selected]:bg-primary-200 data-[selected]:text-primary-600 flex h-12 w-16.5 cursor-pointer items-center justify-center rounded-lg text-center text-sm font-normal transition-colors",children:r.label})},d))},n))})})]})})})]})})})]}),g=()=>jsxs(DatePicker.ViewControl,{className:"my-1 flex items-center justify-between",children:[jsx(DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsx(i,{className:"size-4.5"})}),jsx(DatePicker.ViewTrigger,{children:jsx(DatePicker.RangeText,{className:"font-inter cursor-pointer rounded-sm px-2 text-base leading-[150%] font-semibold text-neutral-900 transition-colors"})}),jsx(DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsx(h,{className:"size-4.5"})})]});export{z as a};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
2
|
-
import { FC } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
|
|
5
|
-
type
|
|
6
|
-
|
|
5
|
+
type AutocompleteNewOption<T extends string | number = string> = {
|
|
6
|
+
label: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
value: T;
|
|
9
9
|
};
|
|
10
|
-
type AutocompleteNewProps<T = string> = Omit<ComboboxRootProps<
|
|
10
|
+
type AutocompleteNewProps<T extends string | number = string> = Omit<ComboboxRootProps<AutocompleteNewOption<T>>, "collection" | "onInputValueChange" | "defaultValue" | "onSelect" | "multiple" | "value"> & {
|
|
11
11
|
label: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
tooltip?: string;
|
|
14
14
|
error?: boolean;
|
|
15
|
-
options:
|
|
15
|
+
options: AutocompleteNewOption<T>[];
|
|
16
16
|
onInputValueChange?: (value: string) => void;
|
|
17
|
-
onSelect?: (value: T) => void;
|
|
17
|
+
onSelect?: (value: AutocompleteNewOption<T> | null) => void;
|
|
18
18
|
defaultValue?: T;
|
|
19
19
|
helperText?: string;
|
|
20
20
|
noResultsTitle: string;
|
|
@@ -22,7 +22,8 @@ type AutocompleteNewProps<T = string> = Omit<ComboboxRootProps<AutocompleteNewIt
|
|
|
22
22
|
noResultsIcon?: LucideIcon;
|
|
23
23
|
noResultsTitleLines?: number;
|
|
24
24
|
noResultsDescriptionLines?: number;
|
|
25
|
+
value?: T;
|
|
25
26
|
};
|
|
26
|
-
declare const AutocompleteNew:
|
|
27
|
+
declare const AutocompleteNew: <T extends string | number = string>({ label, error, required, tooltip, readOnly, options, onInputValueChange, onSelect, defaultValue, className, helperText, noResultsTitle, noResultsDescription, noResultsIcon, noResultsTitleLines, noResultsDescriptionLines, value, ...props }: AutocompleteNewProps<T>) => react_jsx_runtime.JSX.Element;
|
|
27
28
|
|
|
28
|
-
export { AutocompleteNew, type
|
|
29
|
+
export { AutocompleteNew, type AutocompleteNewOption };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ComboboxRootProps } from '@ark-ui/react/combobox';
|
|
2
|
-
import { FC } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
|
|
5
|
-
type
|
|
6
|
-
|
|
5
|
+
type AutocompleteNewOption<T extends string | number = string> = {
|
|
6
|
+
label: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
value: T;
|
|
9
9
|
};
|
|
10
|
-
type AutocompleteNewProps<T = string> = Omit<ComboboxRootProps<
|
|
10
|
+
type AutocompleteNewProps<T extends string | number = string> = Omit<ComboboxRootProps<AutocompleteNewOption<T>>, "collection" | "onInputValueChange" | "defaultValue" | "onSelect" | "multiple" | "value"> & {
|
|
11
11
|
label: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
tooltip?: string;
|
|
14
14
|
error?: boolean;
|
|
15
|
-
options:
|
|
15
|
+
options: AutocompleteNewOption<T>[];
|
|
16
16
|
onInputValueChange?: (value: string) => void;
|
|
17
|
-
onSelect?: (value: T) => void;
|
|
17
|
+
onSelect?: (value: AutocompleteNewOption<T> | null) => void;
|
|
18
18
|
defaultValue?: T;
|
|
19
19
|
helperText?: string;
|
|
20
20
|
noResultsTitle: string;
|
|
@@ -22,7 +22,8 @@ type AutocompleteNewProps<T = string> = Omit<ComboboxRootProps<AutocompleteNewIt
|
|
|
22
22
|
noResultsIcon?: LucideIcon;
|
|
23
23
|
noResultsTitleLines?: number;
|
|
24
24
|
noResultsDescriptionLines?: number;
|
|
25
|
+
value?: T;
|
|
25
26
|
};
|
|
26
|
-
declare const AutocompleteNew:
|
|
27
|
+
declare const AutocompleteNew: <T extends string | number = string>({ label, error, required, tooltip, readOnly, options, onInputValueChange, onSelect, defaultValue, className, helperText, noResultsTitle, noResultsDescription, noResultsIcon, noResultsTitleLines, noResultsDescriptionLines, value, ...props }: AutocompleteNewProps<T>) => react_jsx_runtime.JSX.Element;
|
|
27
28
|
|
|
28
|
-
export { AutocompleteNew, type
|
|
29
|
+
export { AutocompleteNew, type AutocompleteNewOption };
|
|
@@ -1,4 +1,4 @@
|
|
|
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 Be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ta=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),ie=e=>{let t=ta(e);return t.charAt(0).toUpperCase()+t.slice(1)},le=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim(),Me=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var ye={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 De=react.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:d="",children:r,iconNode:s,...p},i)=>react.createElement("svg",{ref:i,...ye,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:le("lucide",d),...!r&&!Me(p)&&{"aria-hidden":"true"},...p},[...s.map(([m,L])=>react.createElement(m,L)),...Array.isArray(r)?r:[r]]));var W=(e,t)=>{let o=react.forwardRef(({className:a,...d},r)=>react.createElement(De,{ref:r,iconNode:t,className:le(`lucide-${Be(ie(e))}`,`lucide-${e}`,a),...d}));return o.displayName=ie(e),o};var da=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Q=W("chevron-down",da);var ra=[["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"}]],H=W("circle-alert",ra);var sa=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_=W("x",sa);var Re=_;var Te=Q;var ne=H;function qe(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=qe(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function ve(){for(var e,t,o=0,a="",d=arguments.length;o<d;o++)(e=arguments[o])&&(t=qe(e))&&(a&&(a+=" "),a+=t);return a}var Ie="-",fa=e=>{let t=na(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:s=>{let p=s.split(Ie);return p[0]===""&&p.length!==1&&p.shift(),ze(p,t)||ia(s)},getConflictingClassGroupIds:(s,p)=>{let i=o[s]||[];return p&&a[s]?[...i,...a[s]]:i}}},ze=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),d=a?ze(e.slice(1),a):void 0;if(d)return d;if(t.validators.length===0)return;let r=e.join(Ie);return t.validators.find(({validator:s})=>s(r))?.classGroupId},Ue=/^\[(.+)\]$/,ia=e=>{if(Ue.test(e)){let t=Ue.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},na=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 r=d===""?t:Oe(t,d);r.classGroupId=o;return}if(typeof d=="function"){if(ca(d)){me(d(a),t,o,a);return}t.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([r,s])=>{me(s,Oe(t,r),o,a);});});},Oe=(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},ca=e=>e.isThemeGetter,pa=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,d=(r,s)=>{o.set(r,s),t++,t>e&&(t=0,a=o,o=new Map);};return {get(r){let s=o.get(r);if(s!==void 0)return s;if((s=a.get(r))!==void 0)return d(r,s),s},set(r,s){o.has(r)?o.set(r,s):d(r,s);}}},Le="!",xe=":",ma=xe.length,La=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=d=>{let r=[],s=0,p=0,i=0,m;for(let h=0;h<d.length;h++){let S=d[h];if(s===0&&p===0){if(S===xe){r.push(d.slice(i,h)),i=h+ma;continue}if(S==="/"){m=h;continue}}S==="["?s++:S==="]"?s--:S==="("?p++:S===")"&&p--;}let L=r.length===0?d:d.substring(i),k=xa(L),B=k!==L,M=m&&m>i?m-i:void 0;return {modifiers:r,hasImportantModifier:B,baseClassName:k,maybePostfixModifierPosition:M}};if(t){let d=t+xe,r=a;a=s=>s.startsWith(d)?r(s.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:s,maybePostfixModifierPosition:void 0};}if(o){let d=a;a=r=>o({className:r,parseClassName:d});}return a},xa=e=>e.endsWith(Le)?e.substring(0,e.length-1):e.startsWith(Le)?e.substring(1):e,Ia=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let d=[],r=[];return a.forEach(s=>{s[0]==="["||t[s]?(d.push(...r.sort(),s),r=[]):r.push(s);}),d.push(...r.sort()),d}},Ca=e=>({cache:pa(e.cacheSize),parseClassName:La(e),sortModifiers:Ia(e),...fa(e)}),ga=/\s+/,ha=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:d,sortModifiers:r}=t,s=[],p=e.trim().split(ga),i="";for(let m=p.length-1;m>=0;m-=1){let L=p[m],{isExternal:k,modifiers:B,hasImportantModifier:M,baseClassName:h,maybePostfixModifierPosition:S}=o(L);if(k){i=L+(i.length>0?" "+i:i);continue}let q=!!S,y=a(q?h.substring(0,S):h);if(!y){if(!q){i=L+(i.length>0?" "+i:i);continue}if(y=a(h),!y){i=L+(i.length>0?" "+i:i);continue}q=false;}let F=r(B).join(":"),v=M?F+Le:F,U=v+y;if(s.includes(U))continue;s.push(U);let O=d(y,q);for(let I=0;I<O.length;++I){let J=O[I];s.push(v+J);}i=L+(i.length>0?" "+i:i);}return i};function Sa(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ve(t))&&(a&&(a+=" "),a+=o);return a}var Ve=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Ve(e[a]))&&(o&&(o+=" "),o+=t);return o};function wa(e,...t){let o,a,d,r=s;function s(i){let m=t.reduce((L,k)=>k(L),e());return o=Ca(m),a=o.cache.get,d=o.cache.set,r=p,p(i)}function p(i){let m=a(i);if(m)return m;let L=ha(i,o);return d(i,L),L}return function(){return r(Sa.apply(null,arguments))}}var x=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},Ee=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,We=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ka=/^\d+\/\d+$/,Pa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ba=/\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$/,Aa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ba=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>ka.test(e),c=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&c(e.slice(0,-1)),T=e=>Pa.test(e),ya=()=>true,Fa=e=>ba.test(e)&&!Aa.test(e),Ne=()=>false,Da=e=>Ba.test(e),Ra=e=>Ma.test(e),Ta=e=>!l(e)&&!u(e),qa=e=>X(e,Ze,Ne),l=e=>Ee.test(e),V=e=>X(e,Je,Fa),pe=e=>X(e,Ga,c),He=e=>X(e,Xe,Ne),va=e=>X(e,Ke,Ra),ue=e=>X(e,Qe,Da),u=e=>We.test(e),j=e=>K(e,Je),Ua=e=>K(e,za),Ge=e=>K(e,Xe),Oa=e=>K(e,Ze),Ha=e=>K(e,Ke),de=e=>K(e,Qe,true),X=(e,t,o)=>{let a=Ee.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},K=(e,t,o=false)=>{let a=We.exec(e);return a?a[1]?t(a[1]):o:false},Xe=e=>e==="position"||e==="percentage",Ke=e=>e==="image"||e==="url",Ze=e=>e==="length"||e==="size"||e==="bg-size",Je=e=>e==="length",Ga=e=>e==="number",za=e=>e==="family-name",Qe=e=>e==="shadow";var Va=()=>{let e=x("color"),t=x("font"),o=x("text"),a=x("font-weight"),d=x("tracking"),r=x("leading"),s=x("breakpoint"),p=x("container"),i=x("spacing"),m=x("radius"),L=x("shadow"),k=x("inset-shadow"),B=x("text-shadow"),M=x("drop-shadow"),h=x("blur"),S=x("perspective"),q=x("aspect"),y=x("ease"),F=x("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...U(),u,l],I=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],n=()=>[u,l,i],D=()=>[N,"full","auto",...n()],ge=()=>[G,"none","subgrid",u,l],he=()=>["auto",{span:["full",G,u,l]},G,u,l],$=()=>[G,"auto",u,l],Se=()=>["auto","min","max","fr",u,l],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...n()],z=()=>[N,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...n()],f=()=>[e,u,l],we=()=>[...U(),Ge,He,{position:[u,l]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",Oa,qa,{size:[u,l]}],se=()=>[ce,j,V],w=()=>["","none","full",m,u,l],P=()=>["",c,j,V],ee=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[c,ce,Ge,He],Ae=()=>["","none",h,u,l],ae=()=>["none",c,u,l],te=()=>["none",c,u,l],fe=()=>[c,u,l],oe=()=>[N,"full",...n()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[ya],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[Ta],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",c],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",N,l,u,q]}],container:["container"],columns:[{columns:[c,l,u,p]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:O()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",u,l]}],basis:[{basis:[N,"full","auto",p,...n()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[c,N,"auto","initial","none",l]}],grow:[{grow:["",c,u,l]}],shrink:[{shrink:["",c,u,l]}],order:[{order:[G,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:n()}],"gap-x":[{"gap-x":n()}],"gap-y":[{"gap-y":n()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],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:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":n()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":n()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[p,"screen",...z()]}],"min-w":[{"min-w":[p,"screen","none",...z()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",o,j,V]}],"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:[Ua,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:[r,...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:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[c,"from-font","auto",u,V]}],"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:we()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,u,l],radial:["",u,l],conic:[G,u,l]},Ha,va]}],"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:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"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:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[c,u,l]}],"outline-w":[{outline:["",c,j,V]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",L,de,ue]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",k,de,ue]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[c,V]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",B,de,ue]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[c,u,l]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":U()}],"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:we()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:Ae()}],brightness:[{brightness:[c,u,l]}],contrast:[{contrast:[c,u,l]}],"drop-shadow":[{"drop-shadow":["","none",M,de,ue]}],"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":Ae()}],"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",y,u,l]}],delay:[{delay:[c,u,l]}],animate:[{animate:["none",F,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,u,l]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"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:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"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,j,V,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 _e=wa(Va);function b(...e){return _e(ve(e))}var Ye=({size:e="md",closeDelay:t=500,closeOnClick:o=true,closeOnEscape:a=true,closeOnPointerDown:d=true,closeOnScroll:r=true,interactive:s=true,lazyMount:p=false,openDelay:i=700,unmountOnExit:m=false,content:L,children:k,asChild:B=true,contentClassName:M,className:h,...S})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:t,closeOnClick:o,closeOnEscape:a,closeOnPointerDown:d,closeOnScroll:r,interactive:s,lazyMount:p,openDelay:i,unmountOnExit:m,...S,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:B,className:b("cursor-inherit text-left",h),children:B?jsxRuntime.jsx("div",{children:k}):k}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{"data-size":e,className:b("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",M),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),L]})})]});var Ja=({title:e,titleLines:t=2,description:o,descriptionLines:a=1,Icon:d,iconAsColumn:r=true,className:s,...p})=>jsxRuntime.jsxs("div",{className:b("flex gap-2 py-4 pl-4 pr-6",r&&"flex-col items-center gap-1",!r&&!o&&"items-center"),...p,children:[d&&jsxRuntime.jsx(d,{className:b("shrink-0 text-neutral-300"),size:24}),jsxRuntime.jsxs("div",{className:b("flex flex-col gap-1",r&&"text-center"),children:[jsxRuntime.jsx("p",{className:b("leading-[130%] text-neutral-500",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:e}),o&&jsxRuntime.jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:a?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:a}:void 0,children:o})]})]}),ea=Ja;var co=({label:e,error:t,required:o,tooltip:a,readOnly:d,options:r,onInputValueChange:s,onSelect:p,defaultValue:i,className:m,helperText:L,noResultsTitle:k,noResultsDescription:B,noResultsIcon:M,noResultsTitleLines:h,noResultsDescriptionLines:S,...q})=>{let{contains:y}=locale.useFilter({sensitivity:"base"}),{collection:F,filter:v}=combobox.useListCollection({initialItems:r,filter:y}),U=react.useCallback(I=>{v(I.inputValue),s?.(I.inputValue);},[v,s]),O=react.useCallback(I=>{p?.(I.itemValue);},[p]);return jsxRuntime.jsxs(combobox.Combobox.Root,{"data-error":t,collection:F,onInputValueChange:U,onSelect:O,className:b("group flex flex-col gap-2",m),defaultValue:i?[i]:void 0,...q,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(Ye,{content:a,size:"sm",className:"ml-2",children:jsxRuntime.jsx(ne,{className:"size-3.5"})})]}),jsxRuntime.jsxs(combobox.Combobox.Control,{className:b("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:b("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(Re,{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(Te,{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.jsxs(combobox.Combobox.ItemGroup,{children:[F.items.length>0&&F.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)),F.items.length===0&&jsxRuntime.jsx(ea,{title:k,description:B,Icon:M,descriptionLines:S,titleLines:h})]})})})})]})};/*! Bundled license information:
|
|
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 Me=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ta=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),ce=e=>{let t=ta(e);return t.charAt(0).toUpperCase()+t.slice(1)},de=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim(),ye=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var Fe={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 Re=react.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:d="",children:r,iconNode:s,...p},n)=>react.createElement("svg",{ref:n,...Fe,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:de("lucide",d),...!r&&!ye(p)&&{"aria-hidden":"true"},...p},[...s.map(([L,x])=>react.createElement(L,x)),...Array.isArray(r)?r:[r]]));var N=(e,t)=>{let o=react.forwardRef(({className:a,...d},r)=>react.createElement(Re,{ref:r,iconNode:t,className:de(`lucide-${Me(ce(e))}`,`lucide-${e}`,a),...d}));return o.displayName=ce(e),o};var da=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_=N("chevron-down",da);var ra=[["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"}]],O=N("circle-alert",ra);var sa=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],j=N("x",sa);var Te=j;var ve=_;var pe=O;function qe(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=qe(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function Ue(){for(var e,t,o=0,a="",d=arguments.length;o<d;o++)(e=arguments[o])&&(t=qe(e))&&(a&&(a+=" "),a+=t);return a}var ge="-",fa=e=>{let t=na(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:s=>{let p=s.split(ge);return p[0]===""&&p.length!==1&&p.shift(),Ve(p,t)||ia(s)},getConflictingClassGroupIds:(s,p)=>{let n=o[s]||[];return p&&a[s]?[...n,...a[s]]:n}}},Ve=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),d=a?Ve(e.slice(1),a):void 0;if(d)return d;if(t.validators.length===0)return;let r=e.join(ge);return t.validators.find(({validator:s})=>s(r))?.classGroupId},Oe=/^\[(.+)\]$/,ia=e=>{if(Oe.test(e)){let t=Oe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},na=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let d in o)xe(o[d],a,d,t);return a},xe=(e,t,o,a)=>{e.forEach(d=>{if(typeof d=="string"){let r=d===""?t:He(t,d);r.classGroupId=o;return}if(typeof d=="function"){if(ca(d)){xe(d(a),t,o,a);return}t.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([r,s])=>{xe(s,He(t,r),o,a);});});},He=(e,t)=>{let o=e;return t.split(ge).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a);}),o},ca=e=>e.isThemeGetter,pa=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,d=(r,s)=>{o.set(r,s),t++,t>e&&(t=0,a=o,o=new Map);};return {get(r){let s=o.get(r);if(s!==void 0)return s;if((s=a.get(r))!==void 0)return d(r,s),s},set(r,s){o.has(r)?o.set(r,s):d(r,s);}}},Ie="!",Ce=":",ma=Ce.length,La=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=d=>{let r=[],s=0,p=0,n=0,L;for(let h=0;h<d.length;h++){let S=d[h];if(s===0&&p===0){if(S===Ce){r.push(d.slice(n,h)),n=h+ma;continue}if(S==="/"){L=h;continue}}S==="["?s++:S==="]"?s--:S==="("?p++:S===")"&&p--;}let x=r.length===0?d:d.substring(n),k=xa(x),B=k!==x,y=L&&L>n?L-n:void 0;return {modifiers:r,hasImportantModifier:B,baseClassName:k,maybePostfixModifierPosition:y}};if(t){let d=t+Ce,r=a;a=s=>s.startsWith(d)?r(s.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:s,maybePostfixModifierPosition:void 0};}if(o){let d=a;a=r=>o({className:r,parseClassName:d});}return a},xa=e=>e.endsWith(Ie)?e.substring(0,e.length-1):e.startsWith(Ie)?e.substring(1):e,Ia=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let d=[],r=[];return a.forEach(s=>{s[0]==="["||t[s]?(d.push(...r.sort(),s),r=[]):r.push(s);}),d.push(...r.sort()),d}},Ca=e=>({cache:pa(e.cacheSize),parseClassName:La(e),sortModifiers:Ia(e),...fa(e)}),ga=/\s+/,ha=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:d,sortModifiers:r}=t,s=[],p=e.trim().split(ga),n="";for(let L=p.length-1;L>=0;L-=1){let x=p[L],{isExternal:k,modifiers:B,hasImportantModifier:y,baseClassName:h,maybePostfixModifierPosition:S}=o(x);if(k){n=x+(n.length>0?" "+n:n);continue}let F=!!S,D=a(F?h.substring(0,S):h);if(!D){if(!F){n=x+(n.length>0?" "+n:n);continue}if(D=a(h),!D){n=x+(n.length>0?" "+n:n);continue}F=false;}let E=r(B).join(":"),M=y?E+Ie:E,R=M+D;if(s.includes(R))continue;s.push(R);let U=d(D,F);for(let T=0;T<U.length;++T){let G=U[T];s.push(M+G);}n=x+(n.length>0?" "+n:n);}return n};function Sa(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ee(t))&&(a&&(a+=" "),a+=o);return a}var Ee=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Ee(e[a]))&&(o&&(o+=" "),o+=t);return o};function wa(e,...t){let o,a,d,r=s;function s(n){let L=t.reduce((x,k)=>k(x),e());return o=Ca(L),a=o.cache.get,d=o.cache.set,r=p,p(n)}function p(n){let L=a(n);if(L)return L;let x=ha(n,o);return d(n,x),x}return function(){return r(Sa.apply(null,arguments))}}var I=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},We=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ne=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ka=/^\d+\/\d+$/,Pa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ba=/\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$/,Aa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ba=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>ka.test(e),c=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&c(e.slice(0,-1)),q=e=>Pa.test(e),ya=()=>true,Fa=e=>ba.test(e)&&!Aa.test(e),Xe=()=>false,Da=e=>Ba.test(e),Ra=e=>Ma.test(e),Ta=e=>!l(e)&&!u(e),va=e=>K(e,Je,Xe),l=e=>We.test(e),V=e=>K(e,Qe,Fa),Le=e=>K(e,Ga,c),Ge=e=>K(e,Ke,Xe),qa=e=>K(e,Ze,Ra),re=e=>K(e,_e,Da),u=e=>Ne.test(e),Y=e=>Z(e,Qe),Ua=e=>Z(e,za),ze=e=>Z(e,Ke),Oa=e=>Z(e,Je),Ha=e=>Z(e,Ze),se=e=>Z(e,_e,true),K=(e,t,o)=>{let a=We.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},Z=(e,t,o=false)=>{let a=Ne.exec(e);return a?a[1]?t(a[1]):o:false},Ke=e=>e==="position"||e==="percentage",Ze=e=>e==="image"||e==="url",Je=e=>e==="length"||e==="size"||e==="bg-size",Qe=e=>e==="length",Ga=e=>e==="number",za=e=>e==="family-name",_e=e=>e==="shadow";var Va=()=>{let e=I("color"),t=I("font"),o=I("text"),a=I("font-weight"),d=I("tracking"),r=I("leading"),s=I("breakpoint"),p=I("container"),n=I("spacing"),L=I("radius"),x=I("shadow"),k=I("inset-shadow"),B=I("text-shadow"),y=I("drop-shadow"),h=I("blur"),S=I("perspective"),F=I("aspect"),D=I("ease"),E=I("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...R(),u,l],T=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],i=()=>[u,l,n],m=()=>[X,"full","auto",...i()],Q=()=>[H,"none","subgrid",u,l],ee=()=>["auto",{span:["full",H,u,l]},H,u,l],ae=()=>[H,"auto",u,l],we=()=>["auto","min","max","fr",u,l],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...i()],z=()=>[X,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],f=()=>[e,u,l],ke=()=>[...R(),ze,Ge,{position:[u,l]}],Pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",Oa,va,{size:[u,l]}],ie=()=>[me,Y,V],w=()=>["","none","full",L,u,l],P=()=>["",c,Y,V],te=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[c,me,ze,Ge],Be=()=>["","none",h,u,l],oe=()=>["none",c,u,l],le=()=>["none",c,u,l],ne=()=>[c,u,l],ue=()=>[X,"full",...i()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[q],breakpoint:[q],color:[ya],container:[q],"drop-shadow":[q],ease:["in","out","in-out"],font:[Ta],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[q],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[q],shadow:[q],spacing:["px",c],text:[q],"text-shadow":[q],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",X,l,u,F]}],container:["container"],columns:[{columns:[c,l,u,p]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:U()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],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:[H,"auto",u,l]}],basis:[{basis:[X,"full","auto",p,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[c,X,"auto","initial","none",l]}],grow:[{grow:["",c,u,l]}],shrink:[{shrink:["",c,u,l]}],order:[{order:[H,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[p,"screen",...z()]}],"min-w":[{"min-w":[p,"screen","none",...z()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",o,Y,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,u,Le]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",me,l]}],"font-family":[{font:[Ua,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,Le]}],leading:[{leading:[r,...i()]}],"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:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[c,"from-font","auto",u,V]}],"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:i()}],"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:ke()}],"bg-repeat":[{bg:Pe()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},H,u,l],radial:["",u,l],conic:[H,u,l]},Ha,qa]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"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:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"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:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[c,u,l]}],"outline-w":[{outline:["",c,Y,V]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",x,se,re]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",k,se,re]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[c,V]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",B,se,re]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[c,u,l]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"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":R()}],"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:ke()}],"mask-repeat":[{mask:Pe()}],"mask-size":[{mask:be()}],"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",y,se,re]}],"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":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"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",D,u,l]}],delay:[{delay:[c,u,l]}],animate:[{animate:["none",E,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,u,l]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"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":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"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,Y,V,Le]}],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 je=wa(Va);function b(...e){return je(Ue(e))}var $e=({size:e="md",closeDelay:t=500,closeOnClick:o=true,closeOnEscape:a=true,closeOnPointerDown:d=true,closeOnScroll:r=true,interactive:s=true,lazyMount:p=false,openDelay:n=700,unmountOnExit:L=false,content:x,children:k,asChild:B=true,contentClassName:y,className:h,...S})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:t,closeOnClick:o,closeOnEscape:a,closeOnPointerDown:d,closeOnScroll:r,interactive:s,lazyMount:p,openDelay:n,unmountOnExit:L,...S,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:B,className:b("cursor-inherit text-left",h),children:B?jsxRuntime.jsx("div",{children:k}):k}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{"data-size":e,className:b("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",y),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),x]})})]});var Ja=({title:e,titleLines:t=2,description:o,descriptionLines:a=1,Icon:d,iconAsColumn:r=true,className:s,...p})=>jsxRuntime.jsxs("div",{className:b("flex gap-2 py-4 pl-4 pr-6",r&&"flex-col items-center gap-1",!r&&!o&&"items-center"),...p,children:[d&&jsxRuntime.jsx(d,{className:b("shrink-0 text-neutral-300"),size:24}),jsxRuntime.jsxs("div",{className:b("flex flex-col gap-1",r&&"text-center"),children:[jsxRuntime.jsx("p",{className:b("leading-[130%] text-neutral-500",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:e}),o&&jsxRuntime.jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:a?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:a}:void 0,children:o})]})]}),aa=Ja;var co=({label:e,error:t,required:o,tooltip:a,readOnly:d,options:r,onInputValueChange:s,onSelect:p,defaultValue:n,className:L,helperText:x,noResultsTitle:k,noResultsDescription:B,noResultsIcon:y,noResultsTitleLines:h,noResultsDescriptionLines:S,value:F,...D})=>{let{contains:E}=locale.useFilter({sensitivity:"base"}),{collection:M,filter:R,set:U}=combobox.useListCollection({initialItems:r,filter:E,itemToString:m=>m.label,itemToValue:m=>String(m.value)}),T=react.useCallback(m=>{R(m.inputValue),s?.(m.inputValue);},[R,s]),G=react.useCallback(m=>{let Q=r.find(ee=>String(ee.value)===m.itemValue);Q&&p?.(Q);},[p,r]),i=react.useCallback(()=>{p?.(null);},[p]);return react.useEffect(()=>{U(r);},[r]),jsxRuntime.jsxs(combobox.Combobox.Root,{"data-error":t,collection:M,onInputValueChange:T,onSelect:G,className:b("group flex flex-col gap-2",L),defaultValue:n?[String(n)]:void 0,value:F?[String(F)]:void 0,...D,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($e,{content:a,size:"sm",className:"ml-2",children:jsxRuntime.jsx(pe,{className:"size-3.5"})})]}),jsxRuntime.jsxs(combobox.Combobox.Control,{className:b("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:b("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(pe,{className:"text-error-500 size-4.5 shrink-0"}),!d&&jsxRuntime.jsx(combobox.Combobox.ClearTrigger,{className:"cursor-pointer",onClick:i,children:jsxRuntime.jsx(Te,{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(ve,{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:x}),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.jsxs(combobox.Combobox.ItemGroup,{children:[M.items.length>0&&M.items.map(m=>jsxRuntime.jsx(combobox.Combobox.Item,{item:m,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:m.label}),m.description&&jsxRuntime.jsx("p",{className:"text-xs leading-[130%]",children:m.description})]})})},m.value)),M.items.length===0&&jsxRuntime.jsx(aa,{title:k,description:B,Icon:y,descriptionLines:S,titleLines:h})]})})})})]})};/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as AutocompleteNew}from'../chunk-
|
|
1
|
+
export{b as AutocompleteNew}from'../chunk-RE4QNXBE.mjs';import'../chunk-PF2FHSIC.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerValueChangeDetails as DatePickerValueChangeDetails$1, DateValue as DateValue$1
|
|
1
|
+
import { DatePickerRootProps, DatePickerValueChangeDetails as DatePickerValueChangeDetails$1, DateValue as DateValue$1 } from '@ark-ui/react/date-picker';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
|
|
4
4
|
type DatePickerNewProps = {
|
|
@@ -12,4 +12,4 @@ type DatePickerValueChangeDetails = DatePickerValueChangeDetails$1;
|
|
|
12
12
|
type DateValue = DateValue$1;
|
|
13
13
|
declare const DatePickerNew: FC<DatePickerNewProps>;
|
|
14
14
|
|
|
15
|
-
export { DatePickerNew, type DatePickerValueChangeDetails, type DateValue };
|
|
15
|
+
export { DatePickerNew, type DatePickerNewProps, type DatePickerValueChangeDetails, type DateValue };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerValueChangeDetails as DatePickerValueChangeDetails$1, DateValue as DateValue$1
|
|
1
|
+
import { DatePickerRootProps, DatePickerValueChangeDetails as DatePickerValueChangeDetails$1, DateValue as DateValue$1 } from '@ark-ui/react/date-picker';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
|
|
4
4
|
type DatePickerNewProps = {
|
|
@@ -12,4 +12,4 @@ type DatePickerValueChangeDetails = DatePickerValueChangeDetails$1;
|
|
|
12
12
|
type DateValue = DateValue$1;
|
|
13
13
|
declare const DatePickerNew: FC<DatePickerNewProps>;
|
|
14
14
|
|
|
15
|
-
export { DatePickerNew, type DatePickerValueChangeDetails, type DateValue };
|
|
15
|
+
export { DatePickerNew, type DatePickerNewProps, type DatePickerValueChangeDetails, type DateValue };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DatePickerNew}from'../chunk-
|
|
1
|
+
export{a as DatePickerNew}from'../chunk-TTH6SSBJ.mjs';import'../chunk-PF2FHSIC.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -49,12 +49,12 @@ export { ChipExpandable } from './chip-expandable.mjs';
|
|
|
49
49
|
export { DialogNew, DialogNewActionButton, DialogNewBody, DialogNewCloseButton, DialogNewContent, DialogNewDescription, DialogNewExtraButton, DialogNewFooter, DialogNewHeader, DialogNewTitle, DialogNewTrigger } from './dialog-new.mjs';
|
|
50
50
|
export { ExpandableCard, ExpandableCardContent, ExpandableCardFixedContent, ExpandableCardHeader, ExpandableCardHeaderProps, ExpandableCardProps } from './expandable-card.mjs';
|
|
51
51
|
export { CalendarNew, CalendarNewProps, CalendarNewProvider, LocaleProvider, parseDate, useCalendar } from './calendar-new.mjs';
|
|
52
|
-
export { DatePickerNew, DatePickerValueChangeDetails, DateValue } from './date-picker-new.mjs';
|
|
53
|
-
export { TimePickerNew } from './time-picker-new.mjs';
|
|
52
|
+
export { DatePickerNew, DatePickerNewProps, DatePickerValueChangeDetails, DateValue } from './date-picker-new.mjs';
|
|
53
|
+
export { TimePickerNew, TimePickerNewProps } 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,
|
|
57
|
+
export { AutocompleteNew, AutocompleteNewOption } from './autocomplete-new.mjs';
|
|
58
58
|
import * as Dialog from '@radix-ui/react-dialog';
|
|
59
59
|
export { Dialog as DialogPrimitive };
|
|
60
60
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
@@ -49,12 +49,12 @@ export { ChipExpandable } from './chip-expandable.js';
|
|
|
49
49
|
export { DialogNew, DialogNewActionButton, DialogNewBody, DialogNewCloseButton, DialogNewContent, DialogNewDescription, DialogNewExtraButton, DialogNewFooter, DialogNewHeader, DialogNewTitle, DialogNewTrigger } from './dialog-new.js';
|
|
50
50
|
export { ExpandableCard, ExpandableCardContent, ExpandableCardFixedContent, ExpandableCardHeader, ExpandableCardHeaderProps, ExpandableCardProps } from './expandable-card.js';
|
|
51
51
|
export { CalendarNew, CalendarNewProps, CalendarNewProvider, LocaleProvider, parseDate, useCalendar } from './calendar-new.js';
|
|
52
|
-
export { DatePickerNew, DatePickerValueChangeDetails, DateValue } from './date-picker-new.js';
|
|
53
|
-
export { TimePickerNew } from './time-picker-new.js';
|
|
52
|
+
export { DatePickerNew, DatePickerNewProps, DatePickerValueChangeDetails, DateValue } from './date-picker-new.js';
|
|
53
|
+
export { TimePickerNew, TimePickerNewProps } 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,
|
|
57
|
+
export { AutocompleteNew, AutocompleteNewOption } from './autocomplete-new.js';
|
|
58
58
|
import * as Dialog from '@radix-ui/react-dialog';
|
|
59
59
|
export { Dialog as DialogPrimitive };
|
|
60
60
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|