sodtrack-web-ui 0.74.3 → 0.74.5
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-WCOMJAWB.mjs → chunk-5HS4JUUP.mjs} +1 -1
- package/dist/chunk-CGNFGCW5.mjs +1 -0
- package/dist/chunk-GBBE3RHT.mjs +1 -0
- package/dist/chunk-TIQUQGJW.mjs +1 -0
- package/dist/components/chip-expandable.d.mts +66 -5
- package/dist/components/chip-expandable.d.ts +66 -5
- package/dist/components/chip-expandable.js +1 -1
- package/dist/components/chip-expandable.mjs +1 -1
- package/dist/components/date-picker-new.js +1 -1
- package/dist/components/date-picker-new.mjs +1 -1
- package/dist/components/expandable-card.d.mts +2 -0
- package/dist/components/expandable-card.d.ts +2 -0
- package/dist/components/expandable-card.js +2 -2
- package/dist/components/expandable-card.mjs +1 -1
- package/dist/components/index.d.mts +2 -3
- package/dist/components/index.d.ts +2 -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-left.d.mts +4 -2
- package/dist/components/list-item-checkbox-left.d.ts +4 -2
- package/dist/components/list-item-checkbox-left.js +2 -2
- package/dist/components/list-item-checkbox-left.mjs +1 -1
- package/dist/components/list-item-checkbox.mjs +1 -1
- package/dist/components/list-item.mjs +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-JYOVMPGT.mjs +0 -1
- package/dist/chunk-KRU7R6C4.mjs +0 -1
- package/dist/chunk-QIFSEHMC.mjs +0 -1
- package/dist/chunk-ZZPJYT6F.mjs +0 -1
- package/dist/components/chip-status-expandable.d.mts +0 -70
- package/dist/components/chip-status-expandable.d.ts +0 -70
- package/dist/components/chip-status-expandable.js +0 -1
- package/dist/components/chip-status-expandable.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-PF2FHSIC.mjs';import {q,d,u as u$1,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 {forwardRef}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var v=forwardRef(({helperText:T,error:m,label:b$1,required:P,className:w,tooltip:p,...r},C)=>jsxs(DatePicker.Root,{ref:C,className:a("group flex flex-col gap-2",w),...r,positioning:{placement:"bottom-end"},"data-error":m,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:[P?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),b$1]}):b$1,p&&jsx(b,{content:p,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 items-center justify-between gap-2 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]:cursor-not-allowed data-[disabled]:ring-neutral-400",children:[jsx(DatePicker.Input,{className:a("font-inter peer cursor-inherit w-full py-2.5 pl-2 text-sm focus:outline-none disabled:text-neutral-400",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0}),!r.readOnly&&!r.disabled&&jsx(DatePicker.ClearTrigger,{className:a("cursor-pointer",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0,children:jsx(d,{className:"size-4.5 text-neutral-700"})}),m&&jsx(q,{className:"text-error-500 size-4.5 shrink-0"}),jsx(DatePicker.Trigger,{className:a("peer-focus:ring-primary-800 focus:ring-primary-800 group-data-[error=true]:ring-error-500 flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[disabled]:cursor-not-allowed group-data-[error=true]:ring-2 group-data-[readonly]:ring-neutral-300 peer-read-only:text-neutral-400 peer-focus:ring-2 focus:ring-2 focus:outline-none disabled:ring-neutral-400",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0,children:jsx(u$1,{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 group-data-[disabled]:text-neutral-400 empty:hidden",children:T}),jsx(Portal,{children:jsx(DatePicker.Positioner,{className:"!z-
|
|
1
|
+
import {b}from'./chunk-PF2FHSIC.mjs';import {q,d,u as u$1,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 {forwardRef}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var v=forwardRef(({helperText:T,error:m,label:b$1,required:P,className:w,tooltip:p,...r},C)=>jsxs(DatePicker.Root,{ref:C,className:a("group flex flex-col gap-2",w),...r,positioning:{placement:"bottom-end"},"data-error":m,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:[P?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-red-500",children:"*"}),b$1]}):b$1,p&&jsx(b,{content:p,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 items-center justify-between gap-2 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]:cursor-not-allowed data-[disabled]:ring-neutral-400",children:[jsx(DatePicker.Input,{className:a("font-inter peer cursor-inherit w-full py-2.5 pl-2 text-sm focus:outline-none disabled:text-neutral-400",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0}),!r.readOnly&&!r.disabled&&jsx(DatePicker.ClearTrigger,{className:a("cursor-pointer",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0,children:jsx(d,{className:"size-4.5 text-neutral-700"})}),m&&jsx(q,{className:"text-error-500 size-4.5 shrink-0"}),jsx(DatePicker.Trigger,{className:a("peer-focus:ring-primary-800 focus:ring-primary-800 group-data-[error=true]:ring-error-500 flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[disabled]:cursor-not-allowed group-data-[error=true]:ring-2 group-data-[readonly]:ring-neutral-300 peer-read-only:text-neutral-400 peer-focus:ring-2 focus:ring-2 focus:outline-none disabled:ring-neutral-400",r.readOnly&&"pointer-events-none"),tabIndex:r.readOnly?-1:void 0,children:jsx(u$1,{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 group-data-[disabled]:text-neutral-400 empty:hidden",children:T}),jsx(Portal,{children:jsx(DatePicker.Positioner,{className:"!z-51",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:o=>jsxs(Fragment,{children:[jsx(u,{}),jsxs(DatePicker.Table,{children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:o.weekDays.map((n,i)=>jsx(DatePicker.TableHeader,{className:"font-inter h-10 text-sm font-semibold text-neutral-900",children:n.narrow},i))})}),jsx(DatePicker.TableBody,{children:o.weeks.map((n,i)=>jsx(DatePicker.TableRow,{children:n.map((l,d)=>jsx(DatePicker.TableCell,{value:l,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:l.day})},d))},i))})]})]})})}),jsx(DatePicker.View,{view:"month",children:jsx(DatePicker.Context,{children:o=>jsxs(Fragment,{children:[jsx(u,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:o.getMonthsGrid({columns:4,format:"short"}).map((n,i)=>jsx(DatePicker.TableRow,{children:n.map((l,d)=>jsx(DatePicker.TableCell,{value:l.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:l.label})},d))},i))})})]})})}),jsx(DatePicker.View,{view:"year",children:jsx(DatePicker.Context,{children:o=>jsxs(Fragment,{children:[jsx(u,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:o.getYearsGrid({columns:4}).map((n,i)=>jsx(DatePicker.TableRow,{children:n.map((l,d)=>jsx(DatePicker.TableCell,{value:l.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:l.label})},d))},i))})})]})})})]})})})]}));v.displayName="DatePickerNew";var u=()=>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{v as a};
|
|
@@ -0,0 +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 {c as c$4}from'./chunk-GBBE3RHT.mjs';import {d as d$1}from'./chunk-FAMLJ6AJ.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 be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ie from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Qe=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:s,noResultsAsColumn:p,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:u,inputRect:c$1,inputRef:f,popoverPosition:C,optionsListRef:v,selectedOption:b,options:g,setFilteredOptions:R})=>jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:c$1?{width:`${c$1.width}px`,left:c$1.left,top:C==="bottom"?`${c$1.bottom}px`:void 0,bottom:C==="top"?`${window.innerHeight-c$1.top}px`:void 0}:void 0,children:[u.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:o,Icon:i,iconAsColumn:p,descriptionLines:s}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",f.current.value="",R(g),n();},children:l})]})]}),u.map(a=>jsx(ke,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(b?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Pe=Qe;var Ze=336,eo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:s,error:p,helperText:n,label:r,placeholder:l,value:u,size:c="md",optionDescriptionLines:f=1,noResultsLabel:C,noResultsIcon:v,noResultsDescription:b,noResultsDescriptionLines:g,noResultsAsColumn:R,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[pe,ue]=useState(),[ce,z]=useState([]),[me,W]=useState("bottom"),[U,ee]=useState(),q=Ze,V=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,M(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();ue(x);let k=U?U.height:q,I=window.innerHeight-x.bottom>k,te=x.top>k;W(I?"bottom":te?"top":"bottom");},[U?.height]),J=useCallback(()=>{let x=e.filter(k=>k.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(z(x),O?.current){let k=O.current.getBoundingClientRect();ee(k);}},[e]);return useEffect(()=>{z(e);},[e]),useEffect(()=>{if(!u){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==u.value)&&(M(u),d.current.value=u.label);},[u]),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",J),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",J),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,J]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(M(null),t?.(null)),s?.(x);},onClean:()=>{M(null),z(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:c,error:p,disabled:P}),jsx(Pe,{handleSelect:V,noResultsLabel:C,NoResultsIcon:v,optionDescriptionLines:f,noResultsAsColumn:R,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:b,noResultsDescriptionLines:g,filteredOptions:ce,inputRect:pe,inputRef:d,popoverPosition:me,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:z})]})};var et=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,disabled:p=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%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",p?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:o})]}),H=et;var ao=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,onClick:u,hasDivider:r,className:a$2(!l&&"cursor-pointer",c),...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,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 He=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:s,startIcon:p,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,...f,className:a$2("pr-6",c),children:[p&&be.cloneElement(p,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:u,className:"ml-4 self-center",disabled:r})]});var F=336,Se=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(Se);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Be=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[s,p]=useState(),[n,r]=useState(true),[l,u]=useState([]),[c,f]=useState(-1),[C,v]=useState("bottom"),[b,g]=useState(),[R,a]=useState(F);return jsx(Se.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:s,showChips:n,filteredOptions:l,currentFocus:c,popoverPosition:C,setFilteredOptions:u,setCurrentFocus:f,setShowChips:r,setPopoverPosition:v,setInputRect:p,optionsListHeight:R,optionsListRect:b,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var mt=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},ze=mt;var ht=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:s})=>{let{autocompleteId:p,inputRect:n,inputRef:r,optionsListRef:l}=D(),u=be.useRef(null),[c,f]=be.useState(new Map),C=useMemo(()=>{if(!n?.width)return [];let b=0,g=n.width-ht,R=0;for(let a=0;a<e.length&&(R+=c.get(a)??0,!(R>g));a++)b++;return e.slice(0,b)},[n?.width,e,c]),v=useCallback(()=>{o||(r?.current?.focus(),l.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:u,children:C.map((b,g)=>jsx(ze,{option:b,onMountWidth:R=>f(a=>new Map(a).set(g,R)),size:s},`chip-input-${p}-${b.value}`))}),e.length>C.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{content:String(e.length),size:s}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:b=>{b.stopPropagation(),t();}})]})}),We=bt;var xt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:s})=>{let{currentFocus:p,inputRef:n}=D();return jsx(He,{title:e.label,checked:o,disabled:e.disabled,className:p===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:s})}),Le=xt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:s,noResultsDescriptionLines:p,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:u})=>{let{popoverPosition:c$1,optionsListRef:f,filteredOptions:C,inputRect:v,autocompleteId:b,inputRef:g,optionsListHeight:R}=D(),a$2=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ie.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:v?{width:`${v.width}px`,left:v.left,top:c$1==="bottom"?`${v.bottom}px`:void 0,bottom:c$1==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:R+"px"}:void 0,children:[C.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:s,Icon:t,iconAsColumn:n,descriptionLines:p}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{f.current.style.display="none",g.current.value="",r();},children:u})]})]}),N.map((L,P)=>jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`)),C.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`))]})})}),$e=Mt;var It=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:s,placeholder:p,options:n,onInputChange:r,size:l,disabled:u})=>{let{setCurrentFocus:c,setFilteredOptions:f,optionsListRef:C,inputRef:v}=D();return jsx(a$4,{ref:v,autoComplete:"off",list:"",disabled:u,selectMode:true,onChange:b=>{c(-1),r?.(b.target.value);},onClean:()=>{c(-1),f(n),i?.(null,e);},onClick:()=>{u||(C.current.style.display="flex");},error:t,helperText:o,label:s,placeholder:p,fixedTopLabel:e.length>0,size:l})}),Ge=It;var _e=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:s,label:p,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:u,noResultsDescriptionLines:c,noResultsAsColumn:f,noResultsButtonOnClick:C,noResultsButtonLabel:v,className:b,onInputChange:g,value:R,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:pe,setPopoverPosition:ue,setCurrentFocus:ce,showChips:z,setOptionsListRect:me,optionsListRect:W,setOptionsListHeight:U}=D(),ee=useRef(false),[q,V]=useState(i??[]),w=useCallback(A=>{V(E=>{let T,K=E.findIndex(Je=>Je.value===A.value);return K===-1?(T=E.concat(A),t?.(A,T),T):(T=E.toSpliced(K,1),t?.(A,T),T)});},[t]),J=useCallback(()=>{V([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),k=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();pe(A);let E=W?W.height>F?F:W.height:F,T=window.innerHeight-A.bottom>E,K=A.top>E;ue(T?"bottom":K?"top":"bottom"),U(K?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[W?.height]),te=useCallback(()=>{let A=e.filter(E=>E.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let E=M.current.getBoundingClientRect();me(E);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.current.style.display="none",ce(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",te),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",k),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",k),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,k,x,te]),useEffect(()=>{R&&(V(R),d(true));},[R]),useEffect(()=>{a||i&&i.length&&!ee.current&&(V(i),ee.current=true,d(true));},[i,a]),jsxs("div",{className:a$2("relative",b),children:[jsx(Ge,{selectedOptions:q,onSelect:t,error:o,helperText:s,label:p,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),z&&jsx(We,{selectedOptions:q,disabled:P,error:o,onCleanSelectedOptions:J,size:N}),jsx($e,{handleSelect:w,selectedOptions:q,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:L,noResultsAsColumn:f,noResultsButtonLabel:v,noResultsButtonOnClick:C,noResultsDescription:u,noResultsDescriptionLines:c})]})};var Ii=e=>jsx(Be,{children:jsx(_e,{...e})});var Ni=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:s=1,StartIcon:p,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:u=false,className:c$1,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:u,...f,className:c$1,children:[p&&jsx(p,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,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 qi=({title:e,description:i="",descriptionLines:t,hasDivider:o=false,disabled:s=false,checked:p,onCheckedChange:n,className:r,chipStatus:l,chipStatusExpandable:u,...c})=>jsxs(y,{hasDescription:!!i,disabled:s,hasDivider:o,...c,className:a$2("pr-6",r),children:[jsx(c$2,{size:"sm",checked:p,onCheckedChange:n,className:"mr-4 self-center",disabled:s}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!i&&"font-medium"),children:e}),u&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$4,{...u})}),l&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$1,{...l,size:"xs",className:"shrink-0"})})]}),i&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:i})]})]});var Tt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:s,isSelected:p,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",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",p&&"bg-primary-200",s),onClick:l=>{t||n?.(l);},...r,children:e}),o&&jsx(a$1,{})]}),y=Tt;var ke=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:u=false,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,hasDivider:r,className:c,isSelected:u,...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{eo as a,ke as b,ao as c,He as d,Ii as e,Ni as f,qi as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var g=["success","info","warning","error","generic","neutral"],h=["light","full"],l=tv({slots:{container:"group/expandable-chip ml-auto flex h-4.5 w-4.5 min-w-4.5 origin-right items-center justify-center overflow-hidden rounded-full px-0.5 py-0.25 transition-all duration-300 ease-in-out hover:w-fit hover:justify-start hover:px-2",icon:"h-3.5 w-3.5 shrink-0 transition-all duration-300 group-hover/expandable-chip:mr-2",text:"w-0 overflow-hidden text-xs leading-[130%] whitespace-nowrap opacity-0 transition-all duration-300 group-hover/expandable-chip:w-auto group-hover/expandable-chip:opacity-100"},variants:{variant:{success:"",info:"",warning:"",error:"",generic:"",neutral:""},type:{light:"",full:""}},compoundVariants:[{variant:"success",type:"light",className:{container:"bg-success-100 text-success-700",icon:"text-success-700",text:"text-success-700"}},{variant:"success",type:"full",className:{container:"bg-success-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"info",type:"light",className:{container:"bg-info-100",icon:"text-info-700",text:"text-info-700"}},{variant:"info",type:"full",className:{container:"bg-info-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"warning",type:"light",className:{container:"bg-warning-100",icon:"text-warning-700",text:"text-warning-700"}},{variant:"warning",type:"full",className:{container:"bg-warning-500",icon:"text-warning-900",text:"text-warning-900"}},{variant:"error",type:"light",className:{container:"bg-error-100",icon:"text-error-700",text:"text-error-700"}},{variant:"error",type:"full",className:{container:"bg-error-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"generic",type:"light",className:{container:"bg-primary-200",icon:"text-primary-600",text:"text-primary-600"}},{variant:"generic",type:"full",className:{container:"bg-primary-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"neutral",type:"light",className:{container:"bg-neutral-100",icon:"text-neutral-700",text:"text-neutral-700"}},{variant:"neutral",type:"full",className:{container:"bg-neutral-300",icon:"text-neutral-100",text:"text-neutral-100"}}]}),y=({label:a,variant:n,type:r,StartIcon:t})=>{let{container:i,icon:o,text:p}=l({variant:n,type:r});return jsxs("div",{className:i(),children:[t&&jsx(t,{className:o()}),jsx("span",{className:p(),children:a})]})};export{g as a,h as b,y as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c as c$1}from'./chunk-35JUETHD.mjs';import {c}from'./chunk-GBBE3RHT.mjs';import {d}from'./chunk-FAMLJ6AJ.mjs';import {b}from'./chunk-PF2FHSIC.mjs';import {c as c$2}from'./chunk-KKWH3QUT.mjs';import {s,t}from'./chunk-4HYLZVI5.mjs';import {createElement,useCallback}from'react';import {tv}from'tailwind-variants';import {useCollapsibleContext,Collapsible}from'@ark-ui/react/collapsible';import {jsxs,jsx}from'react/jsx-runtime';var p=tv({slots:{root:"bg-neutral-80 ring-expandable-card-border group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex justify-between pt-3 pr-1 pb-2 pl-3",headerLabel:"font-semibold empty:hidden",headerValue:"",content:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up border-expandable-card-border overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 pt-4 pb-6",fixedContent:"border-expandable-card-border border-t px-3 pt-6 pb-4"},variants:{headerAlign:{vertical:{},horizontal:{}}},compoundVariants:[{headerAlign:"vertical",className:{header:"flex-col gap-1",headerValue:"text-xs leading-[130%] text-neutral-700",headerLabel:"line-clamp-1"}},{headerAlign:"horizontal",className:{header:"items-center gap-3",headerValue:"line-clamp-1 leading-[130%] text-neutral-900",headerLabel:"mr-3"}}]}),J=({headerLabel:a,headerValue:t$1,className:r,action:o,chipStatus:n,chipExpandable:l,iconButtons:d$1,headerAlign:s$1="horizontal",...E})=>{let{header:z,headerLabel:m,headerValue:C}=p({headerAlign:s$1}),H=useCollapsibleContext();return jsxs("div",{...E,className:z({className:r}),children:[s$1==="horizontal"&&jsxs("p",{className:C(),children:[jsx("b",{className:m(),children:a}),t$1]}),jsxs("div",{className:"flex items-center justify-between gap-2",children:[s$1==="vertical"&&jsx("p",{className:m(),children:a}),jsxs("div",{className:"flex items-center gap-2",children:[n&&jsx(d,{...n,size:"xs",type:"light"}),l&&jsx(c,{...l,type:"light"}),d$1?.map((L,P)=>createElement(c$1,{...L,key:P,variant:"standard",size:"xs"})),o&&jsx(b,{size:"sm",content:o.tooltipContent,disabled:!o.tooltipContent,children:jsx(c$2,{...o,size:"xs",variant:"standard"})}),jsx(Collapsible.Trigger,{asChild:true,children:jsx(c$1,{Icon:H.open?s:t,variant:"standard",size:"xs"})})]})]}),s$1==="vertical"&&jsx("p",{className:C(),children:t$1})]})},K=({className:a,...t})=>{let{contentInner:r,content:o}=p();return jsx(Collapsible.Content,{className:o(),children:jsx("div",{...t,className:r({className:a})})})},Q=({className:a,...t})=>{let{fixedContent:r}=p();return jsx("div",{...t,className:r({className:a})})},W=({className:a,onOpenChange:t,children:r,...o})=>{let{root:n}=p(),l=useCallback(d=>{t?.(d);},[t]);return jsx(Collapsible.Root,{onOpenChange:l,className:n({className:a}),...o,children:r})};export{J as a,K as b,Q as c,W as d};
|
|
@@ -1,9 +1,70 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import { LucideIcon } from 'lucide-react';
|
|
1
4
|
import { FC } from 'react';
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
declare const ChipExpandableVariants: readonly ["success", "info", "warning", "error", "generic", "neutral"];
|
|
7
|
+
declare const ChipExpandableTypes: readonly ["light", "full"];
|
|
8
|
+
type ChipExpandableVariantType = (typeof ChipExpandableVariants)[number];
|
|
9
|
+
type ChipExpandableTypeType = (typeof ChipExpandableTypes)[number];
|
|
10
|
+
declare const chipExpandable: tailwind_variants.TVReturnType<{
|
|
11
|
+
variant: {
|
|
12
|
+
success: string;
|
|
13
|
+
info: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
error: string;
|
|
16
|
+
generic: string;
|
|
17
|
+
neutral: string;
|
|
18
|
+
};
|
|
19
|
+
type: {
|
|
20
|
+
light: string;
|
|
21
|
+
full: string;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
container: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
text: string;
|
|
27
|
+
}, undefined, {
|
|
28
|
+
variant: {
|
|
29
|
+
success: string;
|
|
30
|
+
info: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
error: string;
|
|
33
|
+
generic: string;
|
|
34
|
+
neutral: string;
|
|
35
|
+
};
|
|
36
|
+
type: {
|
|
37
|
+
light: string;
|
|
38
|
+
full: string;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
container: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
text: string;
|
|
44
|
+
}, tailwind_variants.TVReturnType<{
|
|
45
|
+
variant: {
|
|
46
|
+
success: string;
|
|
47
|
+
info: string;
|
|
48
|
+
warning: string;
|
|
49
|
+
error: string;
|
|
50
|
+
generic: string;
|
|
51
|
+
neutral: string;
|
|
52
|
+
};
|
|
53
|
+
type: {
|
|
54
|
+
light: string;
|
|
55
|
+
full: string;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
container: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
text: string;
|
|
61
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
62
|
+
type ChipExpandableProps = {
|
|
4
63
|
label: string;
|
|
5
|
-
variant:
|
|
6
|
-
|
|
7
|
-
|
|
64
|
+
variant: ChipExpandableVariantType;
|
|
65
|
+
type: ChipExpandableTypeType;
|
|
66
|
+
StartIcon?: LucideIcon;
|
|
67
|
+
} & Omit<VariantProps<typeof chipExpandable>, "size"> & Required<Pick<VariantProps<typeof chipExpandable>, "variant">> & Required<Pick<VariantProps<typeof chipExpandable>, "type">>;
|
|
68
|
+
declare const ChipExpandable: FC<ChipExpandableProps>;
|
|
8
69
|
|
|
9
|
-
export { ChipExpandable };
|
|
70
|
+
export { ChipExpandable, type ChipExpandableProps, type ChipExpandableTypeType, ChipExpandableTypes, type ChipExpandableVariantType, ChipExpandableVariants };
|
|
@@ -1,9 +1,70 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import { LucideIcon } from 'lucide-react';
|
|
1
4
|
import { FC } from 'react';
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
declare const ChipExpandableVariants: readonly ["success", "info", "warning", "error", "generic", "neutral"];
|
|
7
|
+
declare const ChipExpandableTypes: readonly ["light", "full"];
|
|
8
|
+
type ChipExpandableVariantType = (typeof ChipExpandableVariants)[number];
|
|
9
|
+
type ChipExpandableTypeType = (typeof ChipExpandableTypes)[number];
|
|
10
|
+
declare const chipExpandable: tailwind_variants.TVReturnType<{
|
|
11
|
+
variant: {
|
|
12
|
+
success: string;
|
|
13
|
+
info: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
error: string;
|
|
16
|
+
generic: string;
|
|
17
|
+
neutral: string;
|
|
18
|
+
};
|
|
19
|
+
type: {
|
|
20
|
+
light: string;
|
|
21
|
+
full: string;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
container: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
text: string;
|
|
27
|
+
}, undefined, {
|
|
28
|
+
variant: {
|
|
29
|
+
success: string;
|
|
30
|
+
info: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
error: string;
|
|
33
|
+
generic: string;
|
|
34
|
+
neutral: string;
|
|
35
|
+
};
|
|
36
|
+
type: {
|
|
37
|
+
light: string;
|
|
38
|
+
full: string;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
container: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
text: string;
|
|
44
|
+
}, tailwind_variants.TVReturnType<{
|
|
45
|
+
variant: {
|
|
46
|
+
success: string;
|
|
47
|
+
info: string;
|
|
48
|
+
warning: string;
|
|
49
|
+
error: string;
|
|
50
|
+
generic: string;
|
|
51
|
+
neutral: string;
|
|
52
|
+
};
|
|
53
|
+
type: {
|
|
54
|
+
light: string;
|
|
55
|
+
full: string;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
container: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
text: string;
|
|
61
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
62
|
+
type ChipExpandableProps = {
|
|
4
63
|
label: string;
|
|
5
|
-
variant:
|
|
6
|
-
|
|
7
|
-
|
|
64
|
+
variant: ChipExpandableVariantType;
|
|
65
|
+
type: ChipExpandableTypeType;
|
|
66
|
+
StartIcon?: LucideIcon;
|
|
67
|
+
} & Omit<VariantProps<typeof chipExpandable>, "size"> & Required<Pick<VariantProps<typeof chipExpandable>, "variant">> & Required<Pick<VariantProps<typeof chipExpandable>, "type">>;
|
|
68
|
+
declare const ChipExpandable: FC<ChipExpandableProps>;
|
|
8
69
|
|
|
9
|
-
export { ChipExpandable };
|
|
70
|
+
export { ChipExpandable, type ChipExpandableProps, type ChipExpandableTypeType, ChipExpandableTypes, type ChipExpandableVariantType, ChipExpandableVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var jsxRuntime=require('react/jsx-runtime');var
|
|
1
|
+
'use strict';var tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime');var g=["success","info","warning","error","generic","neutral"],h=["light","full"],l=tailwindVariants.tv({slots:{container:"group/expandable-chip ml-auto flex h-4.5 w-4.5 min-w-4.5 origin-right items-center justify-center overflow-hidden rounded-full px-0.5 py-0.25 transition-all duration-300 ease-in-out hover:w-fit hover:justify-start hover:px-2",icon:"h-3.5 w-3.5 shrink-0 transition-all duration-300 group-hover/expandable-chip:mr-2",text:"w-0 overflow-hidden text-xs leading-[130%] whitespace-nowrap opacity-0 transition-all duration-300 group-hover/expandable-chip:w-auto group-hover/expandable-chip:opacity-100"},variants:{variant:{success:"",info:"",warning:"",error:"",generic:"",neutral:""},type:{light:"",full:""}},compoundVariants:[{variant:"success",type:"light",className:{container:"bg-success-100 text-success-700",icon:"text-success-700",text:"text-success-700"}},{variant:"success",type:"full",className:{container:"bg-success-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"info",type:"light",className:{container:"bg-info-100",icon:"text-info-700",text:"text-info-700"}},{variant:"info",type:"full",className:{container:"bg-info-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"warning",type:"light",className:{container:"bg-warning-100",icon:"text-warning-700",text:"text-warning-700"}},{variant:"warning",type:"full",className:{container:"bg-warning-500",icon:"text-warning-900",text:"text-warning-900"}},{variant:"error",type:"light",className:{container:"bg-error-100",icon:"text-error-700",text:"text-error-700"}},{variant:"error",type:"full",className:{container:"bg-error-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"generic",type:"light",className:{container:"bg-primary-200",icon:"text-primary-600",text:"text-primary-600"}},{variant:"generic",type:"full",className:{container:"bg-primary-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"neutral",type:"light",className:{container:"bg-neutral-100",icon:"text-neutral-700",text:"text-neutral-700"}},{variant:"neutral",type:"full",className:{container:"bg-neutral-300",icon:"text-neutral-100",text:"text-neutral-100"}}]}),y=({label:a,variant:n,type:r,StartIcon:t})=>{let{container:i,icon:o,text:p}=l({variant:n,type:r});return jsxRuntime.jsxs("div",{className:i(),children:[t&&jsxRuntime.jsx(t,{className:o()}),jsxRuntime.jsx("span",{className:p(),children:a})]})};exports.ChipExpandable=y;exports.ChipExpandableTypes=h;exports.ChipExpandableVariants=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-GBBE3RHT.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var datePicker=require('@ark-ui/react/date-picker'),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(),la=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),ce=e=>{let t=la(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(),Fe=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var Te={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 ve=react.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:u="",children:s,iconNode:d,...L},i)=>react.createElement("svg",{ref:i,...Te,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:de("lucide",u),...!s&&!Fe(L)&&{"aria-hidden":"true"},...L},[...d.map(([x,I])=>react.createElement(x,I)),...Array.isArray(s)?s:[s]]));var A=(e,t)=>{let o=react.forwardRef(({className:a,...u},s)=>react.createElement(ve,{ref:s,iconNode:t,className:de(`lucide-${Me(ce(e))}`,`lucide-${e}`,a),...u}));return o.displayName=ce(e),o};var sa=[["path",{d:"M11 14h1v4",key:"fy54vd"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]],J=A("calendar-1",sa);var fa=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Q=A("chevron-left",fa);var ia=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_=A("chevron-right",ia);var na=[["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"}]],T=A("circle-alert",na);var ca=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],j=A("x",ca);var qe=j;var Ue=_,Oe=Q;var pe=T;var He=J;function Ge(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(o=Ge(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function ze(){for(var e,t,o=0,a="",u=arguments.length;o<u;o++)(e=arguments[o])&&(t=Ge(e))&&(a&&(a+=" "),a+=t);return a}var ge="-",pa=e=>{let t=La(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:d=>{let L=d.split(ge);return L[0]===""&&L.length!==1&&L.shift(),Xe(L,t)||ma(d)},getConflictingClassGroupIds:(d,L)=>{let i=o[d]||[];return L&&a[d]?[...i,...a[d]]:i}}},Xe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),u=a?Xe(e.slice(1),a):void 0;if(u)return u;if(t.validators.length===0)return;let s=e.join(ge);return t.validators.find(({validator:d})=>d(s))?.classGroupId},Ve=/^\[(.+)\]$/,ma=e=>{if(Ve.test(e)){let t=Ve.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},La=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let u in o)xe(o[u],a,u,t);return a},xe=(e,t,o,a)=>{e.forEach(u=>{if(typeof u=="string"){let s=u===""?t:Ee(t,u);s.classGroupId=o;return}if(typeof u=="function"){if(xa(u)){xe(u(a),t,o,a);return}t.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([s,d])=>{xe(d,Ee(t,s),o,a);});});},Ee=(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},xa=e=>e.isThemeGetter,Ia=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,u=(s,d)=>{o.set(s,d),t++,t>e&&(t=0,a=o,o=new Map);};return {get(s){let d=o.get(s);if(d!==void 0)return d;if((d=a.get(s))!==void 0)return u(s,d),d},set(s,d){o.has(s)?o.set(s,d):u(s,d);}}},Ie="!",Ce=":",Ca=Ce.length,ga=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=u=>{let s=[],d=0,L=0,i=0,x;for(let k=0;k<u.length;k++){let P=u[k];if(d===0&&L===0){if(P===Ce){s.push(u.slice(i,k)),i=k+Ca;continue}if(P==="/"){x=k;continue}}P==="["?d++:P==="]"?d--:P==="("?L++:P===")"&&L--;}let I=s.length===0?u:u.substring(i),C=ha(I),w=C!==I,v=x&&x>i?x-i:void 0;return {modifiers:s,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:v}};if(t){let u=t+Ce,s=a;a=d=>d.startsWith(u)?s(d.substring(u.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:d,maybePostfixModifierPosition:void 0};}if(o){let u=a;a=s=>o({className:s,parseClassName:u});}return a},ha=e=>e.endsWith(Ie)?e.substring(0,e.length-1):e.startsWith(Ie)?e.substring(1):e,Sa=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let u=[],s=[];return a.forEach(d=>{d[0]==="["||t[d]?(u.push(...s.sort(),d),s=[]):s.push(d);}),u.push(...s.sort()),u}},wa=e=>({cache:Ia(e.cacheSize),parseClassName:ga(e),sortModifiers:Sa(e),...pa(e)}),ka=/\s+/,Pa=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:u,sortModifiers:s}=t,d=[],L=e.trim().split(ka),i="";for(let x=L.length-1;x>=0;x-=1){let I=L[x],{isExternal:C,modifiers:w,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:P}=o(I);if(C){i=I+(i.length>0?" "+i:i);continue}let G=!!P,q=a(G?k.substring(0,P):k);if(!q){if(!G){i=I+(i.length>0?" "+i:i);continue}if(q=a(k),!q){i=I+(i.length>0?" "+i:i);continue}G=false;}let ee=s(w).join(":"),K=v?ee+Ie:ee,z=K+q;if(d.includes(z))continue;d.push(z);let V=u(q,G);for(let U=0;U<V.length;++U){let Z=V[U];d.push(K+Z);}i=I+(i.length>0?" "+i:i);}return i};function ba(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ke(t))&&(a&&(a+=" "),a+=o);return a}var Ke=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Ke(e[a]))&&(o&&(o+=" "),o+=t);return o};function Aa(e,...t){let o,a,u,s=d;function d(i){let x=t.reduce((I,C)=>C(I),e());return o=wa(x),a=o.cache.get,u=o.cache.set,s=L,L(i)}function L(i){let x=a(i);if(x)return x;let I=Pa(i,o);return u(i,I),I}return function(){return s(ba.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},Ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Je=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ya=/^\d+\/\d+$/,Da=/^(\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$/,Ma=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ta=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ya.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&p(e.slice(0,-1)),M=e=>Da.test(e),Ra=()=>true,va=e=>Ba.test(e)&&!Ma.test(e),Qe=()=>false,qa=e=>Fa.test(e),Ua=e=>Ta.test(e),Oa=e=>!l(e)&&!r(e),Ha=e=>N(e,Ye,Qe),l=e=>Ze.test(e),H=e=>N(e,$e,va),Le=e=>N(e,Wa,p),We=e=>N(e,_e,Qe),Ga=e=>N(e,je,Ua),ue=e=>N(e,ea,qa),r=e=>Je.test(e),Y=e=>X(e,$e),za=e=>X(e,Na),Ne=e=>X(e,_e),Va=e=>X(e,Ye),Ea=e=>X(e,je),se=e=>X(e,ea,true),N=(e,t,o)=>{let a=Ze.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},X=(e,t,o=false)=>{let a=Je.exec(e);return a?a[1]?t(a[1]):o:false},_e=e=>e==="position"||e==="percentage",je=e=>e==="image"||e==="url",Ye=e=>e==="length"||e==="size"||e==="bg-size",$e=e=>e==="length",Wa=e=>e==="number",Na=e=>e==="family-name",ea=e=>e==="shadow";var Xa=()=>{let e=g("color"),t=g("font"),o=g("text"),a=g("font-weight"),u=g("tracking"),s=g("leading"),d=g("breakpoint"),L=g("container"),i=g("spacing"),x=g("radius"),I=g("shadow"),C=g("inset-shadow"),w=g("text-shadow"),v=g("drop-shadow"),k=g("blur"),P=g("perspective"),G=g("aspect"),q=g("ease"),ee=g("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...z(),r,l],U=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],c=()=>[r,l,i],D=()=>[W,"full","auto",...c()],we=()=>[R,"none","subgrid",r,l],ke=()=>["auto",{span:["full",R,r,l]},R,r,l],ae=()=>[R,"auto",r,l],Pe=()=>["auto","min","max","fr",r,l],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...c()],O=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...c()],f=()=>[e,r,l],be=()=>[...z(),Ne,We,{position:[r,l]}],Ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Va,Ha,{size:[r,l]}],ie=()=>[me,Y,H],S=()=>["","none","full",x,r,l],b=()=>["",p,Y,H],te=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[p,me,Ne,We],Be=()=>["","none",k,r,l],oe=()=>["none",p,r,l],le=()=>["none",p,r,l],ne=()=>[p,r,l],re=()=>[W,"full",...c()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[Ra],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[Oa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",p],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,l,r,G]}],container:["container"],columns:[{columns:[p,l,r,L]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],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:[R,"auto",r,l]}],basis:[{basis:[W,"full","auto",L,...c()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,W,"auto","initial","none",l]}],grow:[{grow:["",p,r,l]}],shrink:[{shrink:["",p,r,l]}],order:[{order:[R,"first","last","none",r,l]}],"grid-cols":[{"grid-cols":we()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":we()}],"row-start-end":[{row:ke()}],"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":Pe()}],"auto-rows":[{"auto-rows":Pe()}],gap:[{gap:c()}],"gap-x":[{"gap-x":c()}],"gap-y":[{"gap-y":c()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:c()}],px:[{px:c()}],py:[{py:c()}],ps:[{ps:c()}],pe:[{pe:c()}],pt:[{pt:c()}],pr:[{pr:c()}],pb:[{pb:c()}],pl:[{pl:c()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":c()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":c()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[L,"screen",...O()]}],"min-w":[{"min-w":[L,"screen","none",...O()]}],"max-w":[{"max-w":[L,"screen","none","prose",{screen:[d]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,Y,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,r,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:[za,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:[u,r,l]}],"line-clamp":[{"line-clamp":[p,"none",r,Le]}],leading:[{leading:[s,...c()]}],"list-image":[{"list-image":["none",r,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",r,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:[p,"from-font","auto",r,H]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[p,"auto",r,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:c()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",r,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",r,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:be()}],"bg-repeat":[{bg:Ae()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,r,l],radial:["",r,l],conic:[R,r,l]},Ea,Ga]}],"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:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:b()}],"border-w-x":[{"border-x":b()}],"border-w-y":[{"border-y":b()}],"border-w-s":[{"border-s":b()}],"border-w-e":[{"border-e":b()}],"border-w-t":[{"border-t":b()}],"border-w-r":[{"border-r":b()}],"border-w-b":[{"border-b":b()}],"border-w-l":[{"border-l":b()}],"divide-x":[{"divide-x":b()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":b()}],"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":[p,r,l]}],"outline-w":[{outline:["",p,Y,H]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",I,se,ue]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",C,se,ue]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:b()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[p,H]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":b()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",w,se,ue]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[p,r,l]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"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":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"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":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"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":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"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":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"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":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"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":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"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":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[r,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"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:be()}],"mask-repeat":[{mask:Ae()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",r,l]}],filter:[{filter:["","none",r,l]}],blur:[{blur:Be()}],brightness:[{brightness:[p,r,l]}],contrast:[{contrast:[p,r,l]}],"drop-shadow":[{"drop-shadow":["","none",v,se,ue]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",p,r,l]}],"hue-rotate":[{"hue-rotate":[p,r,l]}],invert:[{invert:["",p,r,l]}],saturate:[{saturate:[p,r,l]}],sepia:[{sepia:["",p,r,l]}],"backdrop-filter":[{"backdrop-filter":["","none",r,l]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[p,r,l]}],"backdrop-contrast":[{"backdrop-contrast":[p,r,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,r,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,r,l]}],"backdrop-invert":[{"backdrop-invert":["",p,r,l]}],"backdrop-opacity":[{"backdrop-opacity":[p,r,l]}],"backdrop-saturate":[{"backdrop-saturate":[p,r,l]}],"backdrop-sepia":[{"backdrop-sepia":["",p,r,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":c()}],"border-spacing-x":[{"border-spacing-x":c()}],"border-spacing-y":[{"border-spacing-y":c()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",r,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",r,l]}],ease:[{ease:["linear","initial",q,r,l]}],delay:[{delay:[p,r,l]}],animate:[{animate:["none",ee,r,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,r,l]}],"perspective-origin":[{"perspective-origin":V()}],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:[r,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"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",r,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":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"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",r,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[p,Y,H,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 aa=Aa(Xa);function F(...e){return aa(ze(e))}var oa=({size:e="md",closeDelay:t=500,closeOnClick:o=true,closeOnEscape:a=true,closeOnPointerDown:u=true,closeOnScroll:s=true,interactive:d=true,lazyMount:L=false,openDelay:i=700,unmountOnExit:x=false,content:I,children:C,asChild:w=true,contentClassName:v,className:k,...P})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:t,closeOnClick:o,closeOnEscape:a,closeOnPointerDown:u,closeOnScroll:s,interactive:d,lazyMount:L,openDelay:i,unmountOnExit:x,...P,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:w,className:F("cursor-inherit text-left",k),children:w?jsxRuntime.jsx("div",{children:C}):C}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{"data-size":e,className:F("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",v),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),I]})})]});var et=react.forwardRef(({helperText:e,error:t,label:o,required:a,className:u,tooltip:s,...d},L)=>jsxRuntime.jsxs(datePicker.DatePicker.Root,{ref:L,className:F("group flex flex-col gap-2",u),...d,positioning:{placement:"bottom-end"},"data-error":t,children:[jsxRuntime.jsxs(datePicker.DatePicker.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[a?jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("span",{className:"text-red-500",children:"*"}),o]}):o,s&&jsxRuntime.jsx(oa,{content:s,size:"sm",className:"ml-2",children:jsxRuntime.jsx(pe,{className:"size-3.5"})})]}),jsxRuntime.jsxs(datePicker.DatePicker.Control,{className:"has-focus:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex w-full items-center justify-between gap-2 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]:cursor-not-allowed data-[disabled]:ring-neutral-400",children:[jsxRuntime.jsx(datePicker.DatePicker.Input,{className:F("font-inter peer cursor-inherit w-full py-2.5 pl-2 text-sm focus:outline-none disabled:text-neutral-400",d.readOnly&&"pointer-events-none"),tabIndex:d.readOnly?-1:void 0}),!d.readOnly&&!d.disabled&&jsxRuntime.jsx(datePicker.DatePicker.ClearTrigger,{className:F("cursor-pointer",d.readOnly&&"pointer-events-none"),tabIndex:d.readOnly?-1:void 0,children:jsxRuntime.jsx(qe,{className:"size-4.5 text-neutral-700"})}),t&&jsxRuntime.jsx(pe,{className:"text-error-500 size-4.5 shrink-0"}),jsxRuntime.jsx(datePicker.DatePicker.Trigger,{className:F("peer-focus:ring-primary-800 focus:ring-primary-800 group-data-[error=true]:ring-error-500 flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[disabled]:cursor-not-allowed group-data-[error=true]:ring-2 group-data-[readonly]:ring-neutral-300 peer-read-only:text-neutral-400 peer-focus:ring-2 focus:ring-2 focus:outline-none disabled:ring-neutral-400",d.readOnly&&"pointer-events-none"),tabIndex:d.readOnly?-1:void 0,children:jsxRuntime.jsx(He,{className:"size-4.5"})})]}),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 group-data-[disabled]:text-neutral-400 empty:hidden",children:e}),jsxRuntime.jsx(portal.Portal,{children:jsxRuntime.jsx(datePicker.DatePicker.Positioner,{className:"!z-50",children:jsxRuntime.jsxs(datePicker.DatePicker.Content,{className:"elevation-9 rounded-xl bg-neutral-50 p-3",children:[jsxRuntime.jsx(datePicker.DatePicker.View,{view:"day",children:jsxRuntime.jsx(datePicker.DatePicker.Context,{children:i=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(he,{}),jsxRuntime.jsxs(datePicker.DatePicker.Table,{children:[jsxRuntime.jsx(datePicker.DatePicker.TableHead,{children:jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:i.weekDays.map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableHeader,{className:"font-inter h-10 text-sm font-semibold text-neutral-900",children:x.narrow},I))})}),jsxRuntime.jsx(datePicker.DatePicker.TableBody,{children:i.weeks.map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:x.map((C,w)=>jsxRuntime.jsx(datePicker.DatePicker.TableCell,{value:C,children:jsxRuntime.jsx(datePicker.DatePicker.TableCellTrigger,{className:F("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:C.day})},w))},I))})]})]})})}),jsxRuntime.jsx(datePicker.DatePicker.View,{view:"month",children:jsxRuntime.jsx(datePicker.DatePicker.Context,{children:i=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(he,{}),jsxRuntime.jsx(datePicker.DatePicker.Table,{children:jsxRuntime.jsx(datePicker.DatePicker.TableBody,{children:i.getMonthsGrid({columns:4,format:"short"}).map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:x.map((C,w)=>jsxRuntime.jsx(datePicker.DatePicker.TableCell,{value:C.value,children:jsxRuntime.jsx(datePicker.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:C.label})},w))},I))})})]})})}),jsxRuntime.jsx(datePicker.DatePicker.View,{view:"year",children:jsxRuntime.jsx(datePicker.DatePicker.Context,{children:i=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(he,{}),jsxRuntime.jsx(datePicker.DatePicker.Table,{children:jsxRuntime.jsx(datePicker.DatePicker.TableBody,{children:i.getYearsGrid({columns:4}).map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:x.map((C,w)=>jsxRuntime.jsx(datePicker.DatePicker.TableCell,{value:C.value,children:jsxRuntime.jsx(datePicker.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:C.label})},w))},I))})})]})})})]})})})]}));et.displayName="DatePickerNew";var he=()=>jsxRuntime.jsxs(datePicker.DatePicker.ViewControl,{className:"my-1 flex items-center justify-between",children:[jsxRuntime.jsx(datePicker.DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsxRuntime.jsx(Oe,{className:"size-4.5"})}),jsxRuntime.jsx(datePicker.DatePicker.ViewTrigger,{children:jsxRuntime.jsx(datePicker.DatePicker.RangeText,{className:"font-inter cursor-pointer rounded-sm px-2 text-base leading-[150%] font-semibold text-neutral-900 transition-colors"})}),jsxRuntime.jsx(datePicker.DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsxRuntime.jsx(Ue,{className:"size-4.5"})})]});/*! Bundled license information:
|
|
1
|
+
'use strict';var datePicker=require('@ark-ui/react/date-picker'),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(),la=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),ce=e=>{let t=la(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(),Fe=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var Te={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 ve=react.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:u="",children:s,iconNode:d,...L},i)=>react.createElement("svg",{ref:i,...Te,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:de("lucide",u),...!s&&!Fe(L)&&{"aria-hidden":"true"},...L},[...d.map(([x,I])=>react.createElement(x,I)),...Array.isArray(s)?s:[s]]));var A=(e,t)=>{let o=react.forwardRef(({className:a,...u},s)=>react.createElement(ve,{ref:s,iconNode:t,className:de(`lucide-${Me(ce(e))}`,`lucide-${e}`,a),...u}));return o.displayName=ce(e),o};var sa=[["path",{d:"M11 14h1v4",key:"fy54vd"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]],J=A("calendar-1",sa);var fa=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Q=A("chevron-left",fa);var ia=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_=A("chevron-right",ia);var na=[["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"}]],T=A("circle-alert",na);var ca=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],j=A("x",ca);var qe=j;var Ue=_,Oe=Q;var pe=T;var He=J;function Ge(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(o=Ge(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function ze(){for(var e,t,o=0,a="",u=arguments.length;o<u;o++)(e=arguments[o])&&(t=Ge(e))&&(a&&(a+=" "),a+=t);return a}var ge="-",pa=e=>{let t=La(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:d=>{let L=d.split(ge);return L[0]===""&&L.length!==1&&L.shift(),Xe(L,t)||ma(d)},getConflictingClassGroupIds:(d,L)=>{let i=o[d]||[];return L&&a[d]?[...i,...a[d]]:i}}},Xe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),u=a?Xe(e.slice(1),a):void 0;if(u)return u;if(t.validators.length===0)return;let s=e.join(ge);return t.validators.find(({validator:d})=>d(s))?.classGroupId},Ve=/^\[(.+)\]$/,ma=e=>{if(Ve.test(e)){let t=Ve.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},La=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let u in o)xe(o[u],a,u,t);return a},xe=(e,t,o,a)=>{e.forEach(u=>{if(typeof u=="string"){let s=u===""?t:Ee(t,u);s.classGroupId=o;return}if(typeof u=="function"){if(xa(u)){xe(u(a),t,o,a);return}t.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([s,d])=>{xe(d,Ee(t,s),o,a);});});},Ee=(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},xa=e=>e.isThemeGetter,Ia=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,u=(s,d)=>{o.set(s,d),t++,t>e&&(t=0,a=o,o=new Map);};return {get(s){let d=o.get(s);if(d!==void 0)return d;if((d=a.get(s))!==void 0)return u(s,d),d},set(s,d){o.has(s)?o.set(s,d):u(s,d);}}},Ie="!",Ce=":",Ca=Ce.length,ga=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=u=>{let s=[],d=0,L=0,i=0,x;for(let k=0;k<u.length;k++){let P=u[k];if(d===0&&L===0){if(P===Ce){s.push(u.slice(i,k)),i=k+Ca;continue}if(P==="/"){x=k;continue}}P==="["?d++:P==="]"?d--:P==="("?L++:P===")"&&L--;}let I=s.length===0?u:u.substring(i),C=ha(I),w=C!==I,v=x&&x>i?x-i:void 0;return {modifiers:s,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:v}};if(t){let u=t+Ce,s=a;a=d=>d.startsWith(u)?s(d.substring(u.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:d,maybePostfixModifierPosition:void 0};}if(o){let u=a;a=s=>o({className:s,parseClassName:u});}return a},ha=e=>e.endsWith(Ie)?e.substring(0,e.length-1):e.startsWith(Ie)?e.substring(1):e,Sa=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let u=[],s=[];return a.forEach(d=>{d[0]==="["||t[d]?(u.push(...s.sort(),d),s=[]):s.push(d);}),u.push(...s.sort()),u}},wa=e=>({cache:Ia(e.cacheSize),parseClassName:ga(e),sortModifiers:Sa(e),...pa(e)}),ka=/\s+/,Pa=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:u,sortModifiers:s}=t,d=[],L=e.trim().split(ka),i="";for(let x=L.length-1;x>=0;x-=1){let I=L[x],{isExternal:C,modifiers:w,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:P}=o(I);if(C){i=I+(i.length>0?" "+i:i);continue}let G=!!P,q=a(G?k.substring(0,P):k);if(!q){if(!G){i=I+(i.length>0?" "+i:i);continue}if(q=a(k),!q){i=I+(i.length>0?" "+i:i);continue}G=false;}let ee=s(w).join(":"),K=v?ee+Ie:ee,z=K+q;if(d.includes(z))continue;d.push(z);let V=u(q,G);for(let U=0;U<V.length;++U){let Z=V[U];d.push(K+Z);}i=I+(i.length>0?" "+i:i);}return i};function ba(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ke(t))&&(a&&(a+=" "),a+=o);return a}var Ke=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Ke(e[a]))&&(o&&(o+=" "),o+=t);return o};function Aa(e,...t){let o,a,u,s=d;function d(i){let x=t.reduce((I,C)=>C(I),e());return o=wa(x),a=o.cache.get,u=o.cache.set,s=L,L(i)}function L(i){let x=a(i);if(x)return x;let I=Pa(i,o);return u(i,I),I}return function(){return s(ba.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},Ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Je=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ya=/^\d+\/\d+$/,Da=/^(\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$/,Ma=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ta=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ya.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&p(e.slice(0,-1)),M=e=>Da.test(e),Ra=()=>true,va=e=>Ba.test(e)&&!Ma.test(e),Qe=()=>false,qa=e=>Fa.test(e),Ua=e=>Ta.test(e),Oa=e=>!l(e)&&!r(e),Ha=e=>N(e,Ye,Qe),l=e=>Ze.test(e),H=e=>N(e,$e,va),Le=e=>N(e,Wa,p),We=e=>N(e,_e,Qe),Ga=e=>N(e,je,Ua),ue=e=>N(e,ea,qa),r=e=>Je.test(e),Y=e=>X(e,$e),za=e=>X(e,Na),Ne=e=>X(e,_e),Va=e=>X(e,Ye),Ea=e=>X(e,je),se=e=>X(e,ea,true),N=(e,t,o)=>{let a=Ze.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},X=(e,t,o=false)=>{let a=Je.exec(e);return a?a[1]?t(a[1]):o:false},_e=e=>e==="position"||e==="percentage",je=e=>e==="image"||e==="url",Ye=e=>e==="length"||e==="size"||e==="bg-size",$e=e=>e==="length",Wa=e=>e==="number",Na=e=>e==="family-name",ea=e=>e==="shadow";var Xa=()=>{let e=g("color"),t=g("font"),o=g("text"),a=g("font-weight"),u=g("tracking"),s=g("leading"),d=g("breakpoint"),L=g("container"),i=g("spacing"),x=g("radius"),I=g("shadow"),C=g("inset-shadow"),w=g("text-shadow"),v=g("drop-shadow"),k=g("blur"),P=g("perspective"),G=g("aspect"),q=g("ease"),ee=g("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...z(),r,l],U=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],c=()=>[r,l,i],D=()=>[W,"full","auto",...c()],we=()=>[R,"none","subgrid",r,l],ke=()=>["auto",{span:["full",R,r,l]},R,r,l],ae=()=>[R,"auto",r,l],Pe=()=>["auto","min","max","fr",r,l],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...c()],O=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...c()],f=()=>[e,r,l],be=()=>[...z(),Ne,We,{position:[r,l]}],Ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Va,Ha,{size:[r,l]}],ie=()=>[me,Y,H],S=()=>["","none","full",x,r,l],b=()=>["",p,Y,H],te=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[p,me,Ne,We],Be=()=>["","none",k,r,l],oe=()=>["none",p,r,l],le=()=>["none",p,r,l],ne=()=>[p,r,l],re=()=>[W,"full",...c()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[Ra],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[Oa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",p],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,l,r,G]}],container:["container"],columns:[{columns:[p,l,r,L]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],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:[R,"auto",r,l]}],basis:[{basis:[W,"full","auto",L,...c()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,W,"auto","initial","none",l]}],grow:[{grow:["",p,r,l]}],shrink:[{shrink:["",p,r,l]}],order:[{order:[R,"first","last","none",r,l]}],"grid-cols":[{"grid-cols":we()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":we()}],"row-start-end":[{row:ke()}],"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":Pe()}],"auto-rows":[{"auto-rows":Pe()}],gap:[{gap:c()}],"gap-x":[{"gap-x":c()}],"gap-y":[{"gap-y":c()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:c()}],px:[{px:c()}],py:[{py:c()}],ps:[{ps:c()}],pe:[{pe:c()}],pt:[{pt:c()}],pr:[{pr:c()}],pb:[{pb:c()}],pl:[{pl:c()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":c()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":c()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[L,"screen",...O()]}],"min-w":[{"min-w":[L,"screen","none",...O()]}],"max-w":[{"max-w":[L,"screen","none","prose",{screen:[d]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,Y,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,r,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:[za,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:[u,r,l]}],"line-clamp":[{"line-clamp":[p,"none",r,Le]}],leading:[{leading:[s,...c()]}],"list-image":[{"list-image":["none",r,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",r,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:[p,"from-font","auto",r,H]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[p,"auto",r,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:c()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",r,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",r,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:be()}],"bg-repeat":[{bg:Ae()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,r,l],radial:["",r,l],conic:[R,r,l]},Ea,Ga]}],"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:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:b()}],"border-w-x":[{"border-x":b()}],"border-w-y":[{"border-y":b()}],"border-w-s":[{"border-s":b()}],"border-w-e":[{"border-e":b()}],"border-w-t":[{"border-t":b()}],"border-w-r":[{"border-r":b()}],"border-w-b":[{"border-b":b()}],"border-w-l":[{"border-l":b()}],"divide-x":[{"divide-x":b()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":b()}],"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":[p,r,l]}],"outline-w":[{outline:["",p,Y,H]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",I,se,ue]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",C,se,ue]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:b()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[p,H]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":b()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",w,se,ue]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[p,r,l]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"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":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"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":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"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":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"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":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"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":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"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":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"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":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[r,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"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:be()}],"mask-repeat":[{mask:Ae()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",r,l]}],filter:[{filter:["","none",r,l]}],blur:[{blur:Be()}],brightness:[{brightness:[p,r,l]}],contrast:[{contrast:[p,r,l]}],"drop-shadow":[{"drop-shadow":["","none",v,se,ue]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",p,r,l]}],"hue-rotate":[{"hue-rotate":[p,r,l]}],invert:[{invert:["",p,r,l]}],saturate:[{saturate:[p,r,l]}],sepia:[{sepia:["",p,r,l]}],"backdrop-filter":[{"backdrop-filter":["","none",r,l]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[p,r,l]}],"backdrop-contrast":[{"backdrop-contrast":[p,r,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,r,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,r,l]}],"backdrop-invert":[{"backdrop-invert":["",p,r,l]}],"backdrop-opacity":[{"backdrop-opacity":[p,r,l]}],"backdrop-saturate":[{"backdrop-saturate":[p,r,l]}],"backdrop-sepia":[{"backdrop-sepia":["",p,r,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":c()}],"border-spacing-x":[{"border-spacing-x":c()}],"border-spacing-y":[{"border-spacing-y":c()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",r,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",r,l]}],ease:[{ease:["linear","initial",q,r,l]}],delay:[{delay:[p,r,l]}],animate:[{animate:["none",ee,r,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,r,l]}],"perspective-origin":[{"perspective-origin":V()}],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:[r,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"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",r,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":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"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",r,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[p,Y,H,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 aa=Aa(Xa);function F(...e){return aa(ze(e))}var oa=({size:e="md",closeDelay:t=500,closeOnClick:o=true,closeOnEscape:a=true,closeOnPointerDown:u=true,closeOnScroll:s=true,interactive:d=true,lazyMount:L=false,openDelay:i=700,unmountOnExit:x=false,content:I,children:C,asChild:w=true,contentClassName:v,className:k,...P})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:t,closeOnClick:o,closeOnEscape:a,closeOnPointerDown:u,closeOnScroll:s,interactive:d,lazyMount:L,openDelay:i,unmountOnExit:x,...P,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:w,className:F("cursor-inherit text-left",k),children:w?jsxRuntime.jsx("div",{children:C}):C}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{"data-size":e,className:F("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",v),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),I]})})]});var et=react.forwardRef(({helperText:e,error:t,label:o,required:a,className:u,tooltip:s,...d},L)=>jsxRuntime.jsxs(datePicker.DatePicker.Root,{ref:L,className:F("group flex flex-col gap-2",u),...d,positioning:{placement:"bottom-end"},"data-error":t,children:[jsxRuntime.jsxs(datePicker.DatePicker.Label,{className:"font-inter flex items-center text-xs leading-[133.33%] font-medium text-neutral-700 data-[disabled]:text-neutral-400",children:[a?jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("span",{className:"text-red-500",children:"*"}),o]}):o,s&&jsxRuntime.jsx(oa,{content:s,size:"sm",className:"ml-2",children:jsxRuntime.jsx(pe,{className:"size-3.5"})})]}),jsxRuntime.jsxs(datePicker.DatePicker.Control,{className:"has-focus:ring-primary-800 group-data-[error=true]:ring-error-500 relative flex w-full items-center justify-between gap-2 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]:cursor-not-allowed data-[disabled]:ring-neutral-400",children:[jsxRuntime.jsx(datePicker.DatePicker.Input,{className:F("font-inter peer cursor-inherit w-full py-2.5 pl-2 text-sm focus:outline-none disabled:text-neutral-400",d.readOnly&&"pointer-events-none"),tabIndex:d.readOnly?-1:void 0}),!d.readOnly&&!d.disabled&&jsxRuntime.jsx(datePicker.DatePicker.ClearTrigger,{className:F("cursor-pointer",d.readOnly&&"pointer-events-none"),tabIndex:d.readOnly?-1:void 0,children:jsxRuntime.jsx(qe,{className:"size-4.5 text-neutral-700"})}),t&&jsxRuntime.jsx(pe,{className:"text-error-500 size-4.5 shrink-0"}),jsxRuntime.jsx(datePicker.DatePicker.Trigger,{className:F("peer-focus:ring-primary-800 focus:ring-primary-800 group-data-[error=true]:ring-error-500 flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring ring-neutral-500 transition-shadow group-data-[disabled]:cursor-not-allowed group-data-[error=true]:ring-2 group-data-[readonly]:ring-neutral-300 peer-read-only:text-neutral-400 peer-focus:ring-2 focus:ring-2 focus:outline-none disabled:ring-neutral-400",d.readOnly&&"pointer-events-none"),tabIndex:d.readOnly?-1:void 0,children:jsxRuntime.jsx(He,{className:"size-4.5"})})]}),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 group-data-[disabled]:text-neutral-400 empty:hidden",children:e}),jsxRuntime.jsx(portal.Portal,{children:jsxRuntime.jsx(datePicker.DatePicker.Positioner,{className:"!z-51",children:jsxRuntime.jsxs(datePicker.DatePicker.Content,{className:"elevation-9 rounded-xl bg-neutral-50 p-3",children:[jsxRuntime.jsx(datePicker.DatePicker.View,{view:"day",children:jsxRuntime.jsx(datePicker.DatePicker.Context,{children:i=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(he,{}),jsxRuntime.jsxs(datePicker.DatePicker.Table,{children:[jsxRuntime.jsx(datePicker.DatePicker.TableHead,{children:jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:i.weekDays.map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableHeader,{className:"font-inter h-10 text-sm font-semibold text-neutral-900",children:x.narrow},I))})}),jsxRuntime.jsx(datePicker.DatePicker.TableBody,{children:i.weeks.map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:x.map((C,w)=>jsxRuntime.jsx(datePicker.DatePicker.TableCell,{value:C,children:jsxRuntime.jsx(datePicker.DatePicker.TableCellTrigger,{className:F("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:C.day})},w))},I))})]})]})})}),jsxRuntime.jsx(datePicker.DatePicker.View,{view:"month",children:jsxRuntime.jsx(datePicker.DatePicker.Context,{children:i=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(he,{}),jsxRuntime.jsx(datePicker.DatePicker.Table,{children:jsxRuntime.jsx(datePicker.DatePicker.TableBody,{children:i.getMonthsGrid({columns:4,format:"short"}).map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:x.map((C,w)=>jsxRuntime.jsx(datePicker.DatePicker.TableCell,{value:C.value,children:jsxRuntime.jsx(datePicker.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:C.label})},w))},I))})})]})})}),jsxRuntime.jsx(datePicker.DatePicker.View,{view:"year",children:jsxRuntime.jsx(datePicker.DatePicker.Context,{children:i=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(he,{}),jsxRuntime.jsx(datePicker.DatePicker.Table,{children:jsxRuntime.jsx(datePicker.DatePicker.TableBody,{children:i.getYearsGrid({columns:4}).map((x,I)=>jsxRuntime.jsx(datePicker.DatePicker.TableRow,{children:x.map((C,w)=>jsxRuntime.jsx(datePicker.DatePicker.TableCell,{value:C.value,children:jsxRuntime.jsx(datePicker.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:C.label})},w))},I))})})]})})})]})})})]}));et.displayName="DatePickerNew";var he=()=>jsxRuntime.jsxs(datePicker.DatePicker.ViewControl,{className:"my-1 flex items-center justify-between",children:[jsxRuntime.jsx(datePicker.DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsxRuntime.jsx(Oe,{className:"size-4.5"})}),jsxRuntime.jsx(datePicker.DatePicker.ViewTrigger,{children:jsxRuntime.jsx(datePicker.DatePicker.RangeText,{className:"font-inter cursor-pointer rounded-sm px-2 text-base leading-[150%] font-semibold text-neutral-900 transition-colors"})}),jsxRuntime.jsx(datePicker.DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsxRuntime.jsx(Ue,{className:"size-4.5"})})]});/*! 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{a as DatePickerNew}from'../chunk-
|
|
1
|
+
export{a as DatePickerNew}from'../chunk-5HS4JUUP.mjs';import'../chunk-PF2FHSIC.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -3,6 +3,7 @@ import { CollapsibleRootProps } from '@ark-ui/react/collapsible';
|
|
|
3
3
|
import { ButtonProps } from './button.mjs';
|
|
4
4
|
import { ChipStatusProps } from './chip-status.mjs';
|
|
5
5
|
import { IconButtonProps } from './icon-button.mjs';
|
|
6
|
+
import { ChipExpandableProps } from './chip-expandable.mjs';
|
|
6
7
|
import 'tailwind-variants';
|
|
7
8
|
import 'lucide-react';
|
|
8
9
|
import 'cva';
|
|
@@ -16,6 +17,7 @@ type ExpandableCardHeaderProps = {
|
|
|
16
17
|
tooltipContent?: string;
|
|
17
18
|
};
|
|
18
19
|
chipStatus?: Omit<ChipStatusProps, "size" | "type">;
|
|
20
|
+
chipExpandable?: Omit<ChipExpandableProps, "size" | "type">;
|
|
19
21
|
iconButtons?: (IconButtonProps & Omit<HTMLAttributes<HTMLDivElement>, "size" | "variant">)[];
|
|
20
22
|
headerAlign?: ExpandableCardHeaderAlign;
|
|
21
23
|
} & HTMLAttributes<HTMLDivElement>;
|
|
@@ -3,6 +3,7 @@ import { CollapsibleRootProps } from '@ark-ui/react/collapsible';
|
|
|
3
3
|
import { ButtonProps } from './button.js';
|
|
4
4
|
import { ChipStatusProps } from './chip-status.js';
|
|
5
5
|
import { IconButtonProps } from './icon-button.js';
|
|
6
|
+
import { ChipExpandableProps } from './chip-expandable.js';
|
|
6
7
|
import 'tailwind-variants';
|
|
7
8
|
import 'lucide-react';
|
|
8
9
|
import 'cva';
|
|
@@ -16,6 +17,7 @@ type ExpandableCardHeaderProps = {
|
|
|
16
17
|
tooltipContent?: string;
|
|
17
18
|
};
|
|
18
19
|
chipStatus?: Omit<ChipStatusProps, "size" | "type">;
|
|
20
|
+
chipExpandable?: Omit<ChipExpandableProps, "size" | "type">;
|
|
19
21
|
iconButtons?: (IconButtonProps & Omit<HTMLAttributes<HTMLDivElement>, "size" | "variant">)[];
|
|
20
22
|
headerAlign?: ExpandableCardHeaderAlign;
|
|
21
23
|
} & HTMLAttributes<HTMLDivElement>;
|