sodtrack-web-ui 0.57.5 → 0.57.6
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-6JFWU4UG.mjs +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/list-item-arrow.mjs +1 -1
- package/dist/list-item-button.d.mts +1 -0
- package/dist/list-item-button.d.ts +1 -0
- package/dist/list-item-button.js +1 -1
- package/dist/list-item-button.mjs +1 -1
- package/dist/list-item-checkbox.mjs +1 -1
- package/dist/list-item.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-XNGBZQAU.mjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Autocomplete,e as AutocompleteMultiple,b as ListItem,c as ListItemArrow,f as ListItemButton,d as ListItemCheckbox}from'./chunk-
|
|
1
|
+
export{a as Autocomplete,e as AutocompleteMultiple,b as ListItem,c as ListItemArrow,f as ListItemButton,d as ListItemCheckbox}from'./chunk-6JFWU4UG.mjs';export{b as Textarea,a as TextareaSizes}from'./chunk-ERINQS7G.mjs';export{a as TimePicker}from'./chunk-L75FPM36.mjs';export{a as ToastTypes,c as Toaster,b as toast}from'./chunk-CYUWSZOV.mjs';export{a as Toggle}from'./chunk-6T3T33NK.mjs';export{a as TooltipProvider_old,b as Tooltip_old}from'./chunk-HTBT6CLR.mjs';export{c as Snackbar,d as SnackbarAction,e as SnackbarClose,a as SnackbarProvider,f as SnackbarTitle,b as SnackbarViewport}from'./chunk-6PKCW63O.mjs';export{b as Switch,a as SwitchSizes}from'./chunk-PHSLH445.mjs';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'./chunk-SNGRNP57.mjs';export{c as PopoverContent_old,b as PopoverTrigger_old,a as Popover_old}from'./chunk-276X5SQG.mjs';export{c as RadioGroup,d as RadioGroupItem,b as RadioGroupOrientation,a as RadioGroupSize}from'./chunk-JXOB2NBL.mjs';export{b as Rating,a as RatingSizes}from'./chunk-ME5JZQLL.mjs';export{a as SearchBar}from'./chunk-LRXLPCBB.mjs';export{a as Select}from'./chunk-CXOA3OCG.mjs';export{a as Skeleton}from'./chunk-UCMFW3WC.mjs';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'./chunk-25737XH2.mjs';export{a as CountryEnum,b as CountryTextField}from'./chunk-OCF546MQ.mjs';export{a as DataTable}from'./chunk-RYJJ3ZR2.mjs';export{b as Tooltip,a as TooltipSizes}from'./chunk-6FW654CF.mjs';export{b as Table,d as TableBody,e as TableBodyRow,i as TableCell,a as TableContainer,h as TableHead,c as TableHeader,g as TableHeaderRow,f as TableNoResults,j as TablePagination}from'./chunk-R2C5CBU5.mjs';export{a as DatePicker}from'./chunk-GLKJ3FOO.mjs';import'./chunk-KTRSJBA4.mjs';export{a as DrawerSticky,g as DrawerStickyBody,h as DrawerStickyCloseTrigger,d as DrawerStickyContent,f as DrawerStickyFooter,e as DrawerStickyHeader,c as DrawerStickySizes,b as DrawerStickyTrigger}from'./chunk-LWOIFDHA.mjs';export{b as Drawer,e as DrawerClose,g as DrawerContent,k as DrawerDescription,i as DrawerFooter,h as DrawerHeader,f as DrawerOverlay,d as DrawerPortal,a as DrawerSizes,j as DrawerTitle,c as DrawerTrigger}from'./chunk-E5YXU74O.mjs';export{a as Spinner}from'./chunk-ENF7AQB7.mjs';export{b as Dialog,l as DialogActionButton,i as DialogBody,m as DialogCloseButton,f as DialogContent,k as DialogDescription,n as DialogExtraButton,h as DialogFooter,g as DialogHeader,e as DialogOverlay,d as DialogPortal,a as DialogPrimitive,j as DialogTitle,c as DialogTrigger}from'./chunk-EYEAWZZH.mjs';export{c as IconButton,a as IconButtonSizes,b as IconButtonVariants}from'./chunk-WS2F7JWJ.mjs';export{a as FlagSelect}from'./chunk-BNV3EY4N.mjs';import'./chunk-E5G7444M.mjs';export{a as TextField}from'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';export{a as ScrollArea,b as ScrollBar}from'./chunk-QHBCNAWO.mjs';export{c as Checkbox,b as CheckboxCheckedStates,a as CheckboxSizes}from'./chunk-FXWF3IBH.mjs';export{a as CheckboxSizes_old,b as Checkbox_old}from'./chunk-5I7W67E3.mjs';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'./chunk-G3WNWAAR.mjs';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'./chunk-4XAUEW6X.mjs';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'./chunk-C2KEN44B.mjs';export{d as ChipInput,a as ChipInputSizes,c as ChipInputTypes,b as ChipInputVariants}from'./chunk-VZKFL2XP.mjs';export{c as ChipStatusComplementary,b as ChipStatusComplementarySizes,a as ChipStatusComplementaryVariants}from'./chunk-7OKG3XAA.mjs';export{a as ChipStatusTable}from'./chunk-II3BRHAX.mjs';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'./chunk-OR7K6UNK.mjs';export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'./chunk-V5FJMVUN.mjs';export{d as ChipStatus,b as ChipStatusSizes,c as ChipStatusTypes,a as ChipStatusVariants}from'./chunk-FAMLJ6AJ.mjs';export{a as AlertDialog,f as AlertDialogActionButton,m as AlertDialogBody,g as AlertDialogCloseButton,e as AlertDialogContent,l as AlertDialogDescription,h as AlertDialogExtraButton,j as AlertDialogFooter,i as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,k as AlertDialogTitle,b as AlertDialogTrigger}from'./chunk-6BGB6K4U.mjs';export{a as Separator}from'./chunk-WGMDH4XX.mjs';export{a as AlertMessage}from'./chunk-DPSSQH5W.mjs';export{b as Avatar,a as AvatarSizes}from'./chunk-HF2DUXOQ.mjs';export{a as Badge}from'./chunk-BVHU5ZT3.mjs';export{c as Button,a as ButtonSizes,b as ButtonVariants}from'./chunk-DZLL7IH6.mjs';export{a as Calendar}from'./chunk-3U3UI5XP.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/list-item-arrow.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ListItemArrow}from'./chunk-
|
|
1
|
+
export{c as ListItemArrow}from'./chunk-6JFWU4UG.mjs';import'./chunk-ERINQS7G.mjs';import'./chunk-L75FPM36.mjs';import'./chunk-CYUWSZOV.mjs';import'./chunk-6T3T33NK.mjs';import'./chunk-HTBT6CLR.mjs';import'./chunk-6PKCW63O.mjs';import'./chunk-PHSLH445.mjs';import'./chunk-SNGRNP57.mjs';import'./chunk-276X5SQG.mjs';import'./chunk-JXOB2NBL.mjs';import'./chunk-ME5JZQLL.mjs';import'./chunk-LRXLPCBB.mjs';import'./chunk-CXOA3OCG.mjs';import'./chunk-UCMFW3WC.mjs';import'./chunk-25737XH2.mjs';import'./chunk-OCF546MQ.mjs';import'./chunk-RYJJ3ZR2.mjs';import'./chunk-6FW654CF.mjs';import'./chunk-R2C5CBU5.mjs';import'./chunk-GLKJ3FOO.mjs';import'./chunk-KTRSJBA4.mjs';import'./chunk-LWOIFDHA.mjs';import'./chunk-E5YXU74O.mjs';import'./chunk-ENF7AQB7.mjs';import'./chunk-EYEAWZZH.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-BNV3EY4N.mjs';import'./chunk-E5G7444M.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-FXWF3IBH.mjs';import'./chunk-5I7W67E3.mjs';import'./chunk-G3WNWAAR.mjs';import'./chunk-4XAUEW6X.mjs';import'./chunk-C2KEN44B.mjs';import'./chunk-VZKFL2XP.mjs';import'./chunk-7OKG3XAA.mjs';import'./chunk-II3BRHAX.mjs';import'./chunk-OR7K6UNK.mjs';import'./chunk-V5FJMVUN.mjs';import'./chunk-FAMLJ6AJ.mjs';import'./chunk-6BGB6K4U.mjs';import'./chunk-WGMDH4XX.mjs';import'./chunk-DPSSQH5W.mjs';import'./chunk-HF2DUXOQ.mjs';import'./chunk-BVHU5ZT3.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-3U3UI5XP.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/list-item-button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var ge=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime'),J=require('@radix-ui/react-separator');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ge__namespace=/*#__PURE__*/_interopNamespace(ge);var J__namespace=/*#__PURE__*/_interopNamespace(J);function oe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=oe(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function le(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=oe(e))&&(o&&(o+=" "),o+=a);return o}var K="-",Be=e=>{let a=Fe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let u=d.split(K);return u[0]===""&&u.length!==1&&u.shift(),de(u,a)||Me(d)},getConflictingClassGroupIds:(d,u)=>{let f=t[d]||[];return u&&o[d]?[...f,...o[d]]:f}}},de=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?de(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let l=e.join(K);return a.validators.find(({validator:d})=>d(l))?.classGroupId},ue=/^\[(.+)\]$/,Me=e=>{if(ue.test(e)){let a=ue.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Fe=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Re(Object.entries(e.classGroups),t).forEach(([l,d])=>{X(d,o,l,a);}),o},X=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?a:re(a,r);l.classGroupId=t;return}if(typeof r=="function"){if(De(r)){X(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([l,d])=>{X(d,re(a,l),t,o);});});},re=(e,a)=>{let t=e;return a.split(K).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},De=e=>e.isThemeGetter,Re=(e,a)=>a?e.map(([t,o])=>{let r=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,u])=>[a+d,u])):l);return [t,r]}):e,ve=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(l,d)=>{t.set(l,d),a++,a>e&&(a=0,o=t,t=new Map);};return {get(l){let d=t.get(l);if(d!==void 0)return d;if((d=o.get(l))!==void 0)return r(l,d),d},set(l,d){t.has(l)?t.set(l,d):r(l,d);}}},se="!",Te=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],l=a.length,d=u=>{let f=[],i=0,p=0,C;for(let m=0;m<u.length;m++){let x=u[m];if(i===0){if(x===r&&(o||u.slice(m,m+l)===a)){f.push(u.slice(p,m)),p=m+l;continue}if(x==="/"){C=m;continue}}x==="["?i++:x==="]"&&i--;}let g=f.length===0?u:u.substring(p),S=g.startsWith(se),I=S?g.substring(1):g,L=C&&C>p?C-p:void 0;return {modifiers:f,hasImportantModifier:S,baseClassName:I,maybePostfixModifierPosition:L}};return t?u=>t({className:u,parseClassName:d}):d},qe=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o);}),a.push(...t.sort()),a},Ue=e=>({cache:ve(e.cacheSize),parseClassName:Te(e),...Be(e)}),Oe=/\s+/,He=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,l=[],d=e.trim().split(Oe),u="";for(let f=d.length-1;f>=0;f-=1){let i=d[f],{modifiers:p,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:S}=t(i),I=!!S,L=o(I?g.substring(0,S):g);if(!L){if(!I){u=i+(u.length>0?" "+u:u);continue}if(L=o(g),!L){u=i+(u.length>0?" "+u:u);continue}I=!1;}let m=qe(p).join(":"),x=C?m+se:m,h=x+L;if(l.includes(h))continue;l.push(h);let D=r(L,I);for(let B=0;B<D.length;++B){let U=D[B];l.push(x+U);}u=i+(u.length>0?" "+u:u);}return u};function Ge(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=fe(a))&&(o&&(o+=" "),o+=t);return o}var fe=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=fe(e[o]))&&(t&&(t+=" "),t+=a);return t};function ze(e,...a){let t,o,r,l=d;function d(f){let i=a.reduce((p,C)=>C(p),e());return t=Ue(i),o=t.cache.get,r=t.cache.set,l=u,u(f)}function u(f){let i=o(f);if(i)return i;let p=He(f,t);return r(f,p),p}return function(){return l(Ge.apply(null,arguments))}}var n=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ve=/^\d+\/\d+$/,Ee=new Set(["px","full","screen"]),We=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ne=/\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$/,Xe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>M(e)||Ee.has(e)||Ve.test(e),k=e=>F(e,"length",aa),M=e=>!!e&&!Number.isNaN(Number(e)),N=e=>F(e,"number",M),v=e=>!!e&&Number.isInteger(Number(e)),Je=e=>e.endsWith("%")&&M(e.slice(0,-1)),s=e=>ie.test(e),A=e=>We.test(e),Qe=new Set(["length","size","percentage"]),je=e=>F(e,Qe,ne),Ye=e=>F(e,"position",ne),_e=new Set(["image","url"]),$e=e=>F(e,_e,oa),ea=e=>F(e,"",ta),T=()=>!0,F=(e,a,t)=>{let o=ie.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},aa=e=>Ne.test(e)&&!Xe.test(e),ne=()=>!1,ta=e=>Ke.test(e),oa=e=>Ze.test(e);var la=()=>{let e=n("colors"),a=n("spacing"),t=n("blur"),o=n("brightness"),r=n("borderColor"),l=n("borderRadius"),d=n("borderSpacing"),u=n("borderWidth"),f=n("contrast"),i=n("grayscale"),p=n("hueRotate"),C=n("invert"),g=n("gap"),S=n("gradientColorStops"),I=n("gradientColorStopPositions"),L=n("inset"),m=n("margin"),x=n("opacity"),h=n("padding"),D=n("saturate"),B=n("scale"),U=n("sepia"),j=n("skew"),Y=n("space"),_=n("translate"),z=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",s,a],c=()=>[s,a],$=()=>["",P,k],O=()=>["auto",M,s],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",s],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>[M,s];return {cacheSize:500,separator:":",theme:{colors:[T],spacing:[P,k],blur:["none","",A,s],brightness:b(),borderColor:[e],borderRadius:["none","","full",A,s],borderSpacing:c(),borderWidth:$(),contrast:b(),grayscale:R(),hueRotate:b(),invert:R(),gap:c(),gradientColorStops:[e],gradientColorStopPositions:[Je,k],inset:E(),margin:E(),opacity:b(),padding:c(),saturate:b(),scale:b(),sepia:R(),skew:b(),space:c(),translate:c()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"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"],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:[...ee(),s]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",v,s]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",s]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",v,s]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",v,s]},s]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[v,s]},s]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",s]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",s]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",s,a]}],"min-w":[{"min-w":[s,a,"min","max","fit"]}],"max-w":[{"max-w":[s,a,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[s,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[s,a,"auto","min","max","fit"]}],"font-size":[{text:["base",A,k]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",N]}],"font-family":[{font:[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:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",M,N]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,k]}],"underline-offset":[{"underline-offset":["auto",P,s]}],"text-decoration-color":[{decoration:[e]}],"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",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Ye]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",je]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$e]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:H()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[P,s]}],"outline-w":[{outline:[P,k]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[P,k]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,ea]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",A,s]}],grayscale:[{grayscale:[i]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[C]}],saturate:[{saturate:[D]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:b()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:b()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[v,s]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],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",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,k,N]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var ce=ze(la);function w(...e){return ce(le(e))}var pe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var xe=ge.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:d,...u},f)=>ge.createElement("svg",{ref:f,...me,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:G("lucide",r),...u},[...d.map(([i,p])=>ge.createElement(i,p)),...Array.isArray(l)?l:[l]]));var Ie=(e,a)=>{let t=ge.forwardRef(({className:o,...r},l)=>ge.createElement(xe,{ref:l,iconNode:a,className:G(`lucide-${pe(e)}`,o),...r}));return t.displayName=`${e}`,t};var y=Ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var Ce=y;var ia=tailwindVariants.tv({slots:{button:"flex flex-shrink-0 items-center justify-center gap-2 rounded-lg font-inter text-base font-semibold leading-[130%] transition-all ease-linear disabled:cursor-not-allowed disabled:ring-0",icon:"",loadingIcon:"absolute animate-spin text-neutral-400"},variants:{size:{lg:{button:"h-12 px-4",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},md:{button:"h-10 px-4 text-sm leading-[130%]",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},sm:{button:"h-8 gap-1 px-3 text-sm leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"},xs:{button:"h-6 gap-1 rounded-[6px] px-3 text-xs leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"}},variant:{contained:{button:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-400"},secondary:{button:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},outlined:{button:"leading-[130%] text-neutral-900 ring-[1.5px] ring-inset ring-neutral-900 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-primary-900 active:ring-[1.5px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400 [&:not([disabled])]:hover:bg-transparent-primary-20 [&:not([disabled])]:active:bg-transparent-primary-40"},ghost:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},standard:{button:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},link:{button:"text-primary-500 underline underline-offset-2 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},white:{button:"bg-neutral-50 text-neutral-900"}},loading:{true:{button:"disabled:text-neutral-50 disabled:text-opacity-0"}}},defaultVariants:{variant:"contained",size:"md",loading:!1,disabled:!1}}),he=ge.forwardRef(({children:e,className:a,variant:t,size:o,startIcon:r,endIcon:l,loading:d,disabled:u,type:f="button",StartIcon:i,EndIcon:p,...C},g)=>{let{button:S,icon:I,loadingIcon:L}=ia({variant:t,size:o,loading:d});return jsxRuntime.jsxs("button",{...C,ref:g,disabled:d||u,className:w(S(),a),type:f,children:[d&&jsxRuntime.jsx(Ce,{className:L()}),r&&ge__namespace.default.cloneElement(r,{className:I()}),i&&jsxRuntime.jsx(i,{className:I()}),e,l&&ge__namespace.default.cloneElement(l,{className:I()}),p&&jsxRuntime.jsx(p,{className:I()})]})});var ma=tailwindVariants.tv({slots:{container:"flex items-center justify-center font-inter text-base font-semibold ring-inset transition-all",icon:""},variants:{variant:{contained:{},secondary:{},outlined:{},ghost:{},standard:{}},size:{lg:{container:"h-12 w-12 rounded-lg",icon:"h-6 w-6"},md:{container:"h-10 w-10 rounded-lg",icon:"h-6 w-6"},sm:{container:"h-8 w-8 rounded-lg",icon:"h-4.5 w-4.5"},xs:{container:"h-5.5 w-5.5 rounded",icon:"h-4.5 w-4.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:!0,className:{container:"cursor-not-allowed text-neutral-400"}},{disabled:!1,className:{container:"cursor-pointer"}},{disabled:!1,variant:"contained",className:{container:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0"}},{disabled:!0,variant:"contained",className:{container:"bg-neutral-100 ring-0"}},{disabled:!1,variant:"secondary",className:{container:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-[1.5px] active:ring-primary-700"}},{disabled:!0,variant:"secondary",className:{container:"ring-neutral-400 disabled:ring-[1.5px]"}},{disabled:!1,variant:"outlined",className:{container:"text-neutral-900 ring-[1.5px] ring-neutral-900 hover:bg-transparent-primary-20 focus:ring-[3px] active:bg-transparent-primary-40"}},{disabled:!0,variant:"outlined",className:{container:"text-neutral-400 ring-[1.5px] ring-neutral-400"}},{disabled:!1,variant:"ghost",className:{container:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0"}},{disabled:!0,variant:"ghost",className:{container:""}},{disabled:!1,variant:"standard",className:{container:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0"}},{disabled:!0,variant:"standard",className:{container:""}}],defaultVariants:{variant:"contained",size:"sm",disabled:!1}}),we=ge.forwardRef(({className:e,variant:a,disabled:t,Icon:o,size:r,type:l="button",...d},u)=>{let{container:f,icon:i}=ma({variant:a,size:r,disabled:t});return jsxRuntime.jsx("button",{ref:u,disabled:t,className:w(f(),e),type:l,...d,children:jsxRuntime.jsx(o,{className:i()})})});var Q=ge__namespace.forwardRef(({className:e,orientation:a="horizontal",decorative:t=!0,...o},r)=>jsxRuntime.jsx(J__namespace.Root,{ref:r,decorative:t,orientation:a,className:w("shrink-0 bg-neutral-200",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Q.displayName=J__namespace.Root.displayName;var xa=({children:e,title:a,titleLines:t,description:o="",descriptionLines:r,disabled:l=!1,className:d,...u})=>jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-1",...u,children:[jsxRuntime.jsx("p",{className:w("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:a}),o&&jsxRuntime.jsx("p",{className:w("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:o})]}),ke=xa;var Ca=({children:e,hasDescription:a=!1,disabled:t=!1,hasDivider:o=!1,className:r,isSelected:l,onClick:d,...u})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:w("flex flex-row px-3 py-4 text-neutral-900 transition-colors",a?"py-3":"py-[0.875rem]",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",l&&"bg-primary-200",r),onClick:f=>{t||d?.(f);},...u,children:e}),o&&jsxRuntime.jsx(Q,{})]}),ye=Ca;var Gt=({children:e,title:a,titleLines:t=1,description:o,descriptionLines:r=1,StartIcon:l,hasDivider:d=!1,disabled:u=!1,actionButton:f,className:i,...p})=>jsxRuntime.jsxs(ye,{hasDescription:!!o,disabled:u,hasDivider:d,...p,className:i,children:[l&&jsxRuntime.jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 flex-grow-0"}),jsxRuntime.jsx(ke,{title:a,titleLines:t,description:o,descriptionLines:r,disabled:u}),f&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.isIcon?jsxRuntime.jsx(we,{...f,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:u??f.disabled}):jsxRuntime.jsx(he,{...f,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:u??f.disabled})})]});/*! Bundled license information:
|
|
1
|
+
'use strict';var ge=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime'),J=require('@radix-ui/react-separator');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ge__namespace=/*#__PURE__*/_interopNamespace(ge);var J__namespace=/*#__PURE__*/_interopNamespace(J);function oe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=oe(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function le(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=oe(e))&&(o&&(o+=" "),o+=a);return o}var K="-",Be=e=>{let a=Fe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let u=d.split(K);return u[0]===""&&u.length!==1&&u.shift(),de(u,a)||Me(d)},getConflictingClassGroupIds:(d,u)=>{let f=t[d]||[];return u&&o[d]?[...f,...o[d]]:f}}},de=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?de(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let l=e.join(K);return a.validators.find(({validator:d})=>d(l))?.classGroupId},ue=/^\[(.+)\]$/,Me=e=>{if(ue.test(e)){let a=ue.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Fe=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return Re(Object.entries(e.classGroups),t).forEach(([l,d])=>{X(d,o,l,a);}),o},X=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?a:re(a,r);l.classGroupId=t;return}if(typeof r=="function"){if(De(r)){X(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([l,d])=>{X(d,re(a,l),t,o);});});},re=(e,a)=>{let t=e;return a.split(K).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},De=e=>e.isThemeGetter,Re=(e,a)=>a?e.map(([t,o])=>{let r=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,u])=>[a+d,u])):l);return [t,r]}):e,ve=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(l,d)=>{t.set(l,d),a++,a>e&&(a=0,o=t,t=new Map);};return {get(l){let d=t.get(l);if(d!==void 0)return d;if((d=o.get(l))!==void 0)return r(l,d),d},set(l,d){t.has(l)?t.set(l,d):r(l,d);}}},se="!",Te=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],l=a.length,d=u=>{let f=[],i=0,p=0,I;for(let m=0;m<u.length;m++){let x=u[m];if(i===0){if(x===r&&(o||u.slice(m,m+l)===a)){f.push(u.slice(p,m)),p=m+l;continue}if(x==="/"){I=m;continue}}x==="["?i++:x==="]"&&i--;}let g=f.length===0?u:u.substring(p),S=g.startsWith(se),C=S?g.substring(1):g,L=I&&I>p?I-p:void 0;return {modifiers:f,hasImportantModifier:S,baseClassName:C,maybePostfixModifierPosition:L}};return t?u=>t({className:u,parseClassName:d}):d},qe=e=>{if(e.length<=1)return e;let a=[],t=[];return e.forEach(o=>{o[0]==="["?(a.push(...t.sort(),o),t=[]):t.push(o);}),a.push(...t.sort()),a},Ue=e=>({cache:ve(e.cacheSize),parseClassName:Te(e),...Be(e)}),Oe=/\s+/,He=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,l=[],d=e.trim().split(Oe),u="";for(let f=d.length-1;f>=0;f-=1){let i=d[f],{modifiers:p,hasImportantModifier:I,baseClassName:g,maybePostfixModifierPosition:S}=t(i),C=!!S,L=o(C?g.substring(0,S):g);if(!L){if(!C){u=i+(u.length>0?" "+u:u);continue}if(L=o(g),!L){u=i+(u.length>0?" "+u:u);continue}C=!1;}let m=qe(p).join(":"),x=I?m+se:m,h=x+L;if(l.includes(h))continue;l.push(h);let D=r(L,C);for(let B=0;B<D.length;++B){let U=D[B];l.push(x+U);}u=i+(u.length>0?" "+u:u);}return u};function Ge(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=fe(a))&&(o&&(o+=" "),o+=t);return o}var fe=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=fe(e[o]))&&(t&&(t+=" "),t+=a);return t};function ze(e,...a){let t,o,r,l=d;function d(f){let i=a.reduce((p,I)=>I(p),e());return t=Ue(i),o=t.cache.get,r=t.cache.set,l=u,u(f)}function u(f){let i=o(f);if(i)return i;let p=He(f,t);return r(f,p),p}return function(){return l(Ge.apply(null,arguments))}}var n=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ve=/^\d+\/\d+$/,Ee=new Set(["px","full","screen"]),We=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ne=/\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$/,Xe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>M(e)||Ee.has(e)||Ve.test(e),k=e=>F(e,"length",aa),M=e=>!!e&&!Number.isNaN(Number(e)),N=e=>F(e,"number",M),v=e=>!!e&&Number.isInteger(Number(e)),Je=e=>e.endsWith("%")&&M(e.slice(0,-1)),s=e=>ie.test(e),A=e=>We.test(e),Qe=new Set(["length","size","percentage"]),je=e=>F(e,Qe,ne),Ye=e=>F(e,"position",ne),_e=new Set(["image","url"]),$e=e=>F(e,_e,oa),ea=e=>F(e,"",ta),T=()=>!0,F=(e,a,t)=>{let o=ie.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},aa=e=>Ne.test(e)&&!Xe.test(e),ne=()=>!1,ta=e=>Ke.test(e),oa=e=>Ze.test(e);var la=()=>{let e=n("colors"),a=n("spacing"),t=n("blur"),o=n("brightness"),r=n("borderColor"),l=n("borderRadius"),d=n("borderSpacing"),u=n("borderWidth"),f=n("contrast"),i=n("grayscale"),p=n("hueRotate"),I=n("invert"),g=n("gap"),S=n("gradientColorStops"),C=n("gradientColorStopPositions"),L=n("inset"),m=n("margin"),x=n("opacity"),h=n("padding"),D=n("saturate"),B=n("scale"),U=n("sepia"),j=n("skew"),Y=n("space"),_=n("translate"),z=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",s,a],c=()=>[s,a],$=()=>["",P,k],O=()=>["auto",M,s],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",s],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>[M,s];return {cacheSize:500,separator:":",theme:{colors:[T],spacing:[P,k],blur:["none","",A,s],brightness:b(),borderColor:[e],borderRadius:["none","","full",A,s],borderSpacing:c(),borderWidth:$(),contrast:b(),grayscale:R(),hueRotate:b(),invert:R(),gap:c(),gradientColorStops:[e],gradientColorStopPositions:[Je,k],inset:E(),margin:E(),opacity:b(),padding:c(),saturate:b(),scale:b(),sepia:R(),skew:b(),space:c(),translate:c()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"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"],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:[...ee(),s]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",v,s]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",s]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",v,s]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",v,s]},s]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[v,s]},s]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",s]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",s]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",s,a]}],"min-w":[{"min-w":[s,a,"min","max","fit"]}],"max-w":[{"max-w":[s,a,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[s,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[s,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[s,a,"auto","min","max","fit"]}],"font-size":[{text:["base",A,k]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",N]}],"font-family":[{font:[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:["tighter","tight","normal","wide","wider","widest",s]}],"line-clamp":[{"line-clamp":["none",M,N]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,k]}],"underline-offset":[{"underline-offset":["auto",P,s]}],"text-decoration-color":[{decoration:[e]}],"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",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),Ye]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",je]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$e]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:H()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[P,s]}],"outline-w":[{outline:[P,k]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[P,k]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,ea]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",A,s]}],grayscale:[{grayscale:[i]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[I]}],saturate:[{saturate:[D]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:b()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:b()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[v,s]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],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",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,k,N]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var ce=ze(la);function w(...e){return ce(le(e))}var pe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var xe=ge.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:d,...u},f)=>ge.createElement("svg",{ref:f,...me,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:G("lucide",r),...u},[...d.map(([i,p])=>ge.createElement(i,p)),...Array.isArray(l)?l:[l]]));var Ie=(e,a)=>{let t=ge.forwardRef(({className:o,...r},l)=>ge.createElement(xe,{ref:l,iconNode:a,className:G(`lucide-${pe(e)}`,o),...r}));return t.displayName=`${e}`,t};var y=Ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var Ce=y;var ia=tailwindVariants.tv({slots:{button:"flex flex-shrink-0 items-center justify-center gap-2 rounded-lg font-inter text-base font-semibold leading-[130%] transition-all ease-linear disabled:cursor-not-allowed disabled:ring-0",icon:"",loadingIcon:"absolute animate-spin text-neutral-400"},variants:{size:{lg:{button:"h-12 px-4",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},md:{button:"h-10 px-4 text-sm leading-[130%]",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},sm:{button:"h-8 gap-1 px-3 text-sm leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"},xs:{button:"h-6 gap-1 rounded-[6px] px-3 text-xs leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"}},variant:{contained:{button:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-400"},secondary:{button:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},outlined:{button:"leading-[130%] text-neutral-900 ring-[1.5px] ring-inset ring-neutral-900 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-primary-900 active:ring-[1.5px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400 [&:not([disabled])]:hover:bg-transparent-primary-20 [&:not([disabled])]:active:bg-transparent-primary-40"},ghost:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},standard:{button:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},link:{button:"text-primary-500 underline underline-offset-2 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},white:{button:"bg-neutral-50 text-neutral-900"}},loading:{true:{button:"disabled:text-neutral-50 disabled:text-opacity-0"}}},defaultVariants:{variant:"contained",size:"md",loading:!1,disabled:!1}}),he=ge.forwardRef(({children:e,className:a,variant:t,size:o,startIcon:r,endIcon:l,loading:d,disabled:u,type:f="button",StartIcon:i,EndIcon:p,...I},g)=>{let{button:S,icon:C,loadingIcon:L}=ia({variant:t,size:o,loading:d});return jsxRuntime.jsxs("button",{...I,ref:g,disabled:d||u,className:w(S(),a),type:f,children:[d&&jsxRuntime.jsx(Ce,{className:L()}),r&&ge__namespace.default.cloneElement(r,{className:C()}),i&&jsxRuntime.jsx(i,{className:C()}),e,l&&ge__namespace.default.cloneElement(l,{className:C()}),p&&jsxRuntime.jsx(p,{className:C()})]})});var ma=tailwindVariants.tv({slots:{container:"flex items-center justify-center font-inter text-base font-semibold ring-inset transition-all",icon:""},variants:{variant:{contained:{},secondary:{},outlined:{},ghost:{},standard:{}},size:{lg:{container:"h-12 w-12 rounded-lg",icon:"h-6 w-6"},md:{container:"h-10 w-10 rounded-lg",icon:"h-6 w-6"},sm:{container:"h-8 w-8 rounded-lg",icon:"h-4.5 w-4.5"},xs:{container:"h-5.5 w-5.5 rounded",icon:"h-4.5 w-4.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:!0,className:{container:"cursor-not-allowed text-neutral-400"}},{disabled:!1,className:{container:"cursor-pointer"}},{disabled:!1,variant:"contained",className:{container:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0"}},{disabled:!0,variant:"contained",className:{container:"bg-neutral-100 ring-0"}},{disabled:!1,variant:"secondary",className:{container:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-[1.5px] active:ring-primary-700"}},{disabled:!0,variant:"secondary",className:{container:"ring-neutral-400 disabled:ring-[1.5px]"}},{disabled:!1,variant:"outlined",className:{container:"text-neutral-900 ring-[1.5px] ring-neutral-900 hover:bg-transparent-primary-20 focus:ring-[3px] active:bg-transparent-primary-40"}},{disabled:!0,variant:"outlined",className:{container:"text-neutral-400 ring-[1.5px] ring-neutral-400"}},{disabled:!1,variant:"ghost",className:{container:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0"}},{disabled:!0,variant:"ghost",className:{container:""}},{disabled:!1,variant:"standard",className:{container:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0"}},{disabled:!0,variant:"standard",className:{container:""}}],defaultVariants:{variant:"contained",size:"sm",disabled:!1}}),we=ge.forwardRef(({className:e,variant:a,disabled:t,Icon:o,size:r,type:l="button",...d},u)=>{let{container:f,icon:i}=ma({variant:a,size:r,disabled:t});return jsxRuntime.jsx("button",{ref:u,disabled:t,className:w(f(),e),type:l,...d,children:jsxRuntime.jsx(o,{className:i()})})});var Q=ge__namespace.forwardRef(({className:e,orientation:a="horizontal",decorative:t=!0,...o},r)=>jsxRuntime.jsx(J__namespace.Root,{ref:r,decorative:t,orientation:a,className:w("shrink-0 bg-neutral-200",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Q.displayName=J__namespace.Root.displayName;var xa=({children:e,title:a,titleLines:t,description:o="",descriptionLines:r,disabled:l=!1,className:d,...u})=>jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-1",...u,children:[jsxRuntime.jsx("p",{className:w("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:a}),o&&jsxRuntime.jsx("p",{className:w("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:o})]}),ke=xa;var Ca=({children:e,hasDescription:a=!1,disabled:t=!1,hasDivider:o=!1,className:r,isSelected:l,onClick:d,...u})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:w("flex flex-row px-3 py-4 text-neutral-900 transition-colors",a?"py-3":"py-[0.875rem]",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",l&&"bg-primary-200",r),onClick:f=>{t||d?.(f);},...u,children:e}),o&&jsxRuntime.jsx(Q,{})]}),ye=Ca;var Gt=({children:e,title:a,titleLines:t=1,description:o,descriptionLines:r=1,StartIcon:l,hasDivider:d=!1,disabled:u=!1,actionButton:f,isSelected:i=!1,className:p,...I})=>jsxRuntime.jsxs(ye,{hasDescription:!!o,disabled:u,hasDivider:d,isSelected:i,...I,className:p,children:[l&&jsxRuntime.jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 flex-grow-0"}),jsxRuntime.jsx(ke,{title:a,titleLines:t,description:o,descriptionLines:r,disabled:u}),f&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.isIcon?jsxRuntime.jsx(we,{...f,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:u??f.disabled}):jsxRuntime.jsx(he,{...f,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:u??f.disabled})})]});/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
(**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as ListItemButton}from'./chunk-
|
|
1
|
+
export{f as ListItemButton}from'./chunk-6JFWU4UG.mjs';import'./chunk-ERINQS7G.mjs';import'./chunk-L75FPM36.mjs';import'./chunk-CYUWSZOV.mjs';import'./chunk-6T3T33NK.mjs';import'./chunk-HTBT6CLR.mjs';import'./chunk-6PKCW63O.mjs';import'./chunk-PHSLH445.mjs';import'./chunk-SNGRNP57.mjs';import'./chunk-276X5SQG.mjs';import'./chunk-JXOB2NBL.mjs';import'./chunk-ME5JZQLL.mjs';import'./chunk-LRXLPCBB.mjs';import'./chunk-CXOA3OCG.mjs';import'./chunk-UCMFW3WC.mjs';import'./chunk-25737XH2.mjs';import'./chunk-OCF546MQ.mjs';import'./chunk-RYJJ3ZR2.mjs';import'./chunk-6FW654CF.mjs';import'./chunk-R2C5CBU5.mjs';import'./chunk-GLKJ3FOO.mjs';import'./chunk-KTRSJBA4.mjs';import'./chunk-LWOIFDHA.mjs';import'./chunk-E5YXU74O.mjs';import'./chunk-ENF7AQB7.mjs';import'./chunk-EYEAWZZH.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-BNV3EY4N.mjs';import'./chunk-E5G7444M.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-FXWF3IBH.mjs';import'./chunk-5I7W67E3.mjs';import'./chunk-G3WNWAAR.mjs';import'./chunk-4XAUEW6X.mjs';import'./chunk-C2KEN44B.mjs';import'./chunk-VZKFL2XP.mjs';import'./chunk-7OKG3XAA.mjs';import'./chunk-II3BRHAX.mjs';import'./chunk-OR7K6UNK.mjs';import'./chunk-V5FJMVUN.mjs';import'./chunk-FAMLJ6AJ.mjs';import'./chunk-6BGB6K4U.mjs';import'./chunk-WGMDH4XX.mjs';import'./chunk-DPSSQH5W.mjs';import'./chunk-HF2DUXOQ.mjs';import'./chunk-BVHU5ZT3.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-3U3UI5XP.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as ListItemCheckbox}from'./chunk-
|
|
1
|
+
export{d as ListItemCheckbox}from'./chunk-6JFWU4UG.mjs';import'./chunk-ERINQS7G.mjs';import'./chunk-L75FPM36.mjs';import'./chunk-CYUWSZOV.mjs';import'./chunk-6T3T33NK.mjs';import'./chunk-HTBT6CLR.mjs';import'./chunk-6PKCW63O.mjs';import'./chunk-PHSLH445.mjs';import'./chunk-SNGRNP57.mjs';import'./chunk-276X5SQG.mjs';import'./chunk-JXOB2NBL.mjs';import'./chunk-ME5JZQLL.mjs';import'./chunk-LRXLPCBB.mjs';import'./chunk-CXOA3OCG.mjs';import'./chunk-UCMFW3WC.mjs';import'./chunk-25737XH2.mjs';import'./chunk-OCF546MQ.mjs';import'./chunk-RYJJ3ZR2.mjs';import'./chunk-6FW654CF.mjs';import'./chunk-R2C5CBU5.mjs';import'./chunk-GLKJ3FOO.mjs';import'./chunk-KTRSJBA4.mjs';import'./chunk-LWOIFDHA.mjs';import'./chunk-E5YXU74O.mjs';import'./chunk-ENF7AQB7.mjs';import'./chunk-EYEAWZZH.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-BNV3EY4N.mjs';import'./chunk-E5G7444M.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-FXWF3IBH.mjs';import'./chunk-5I7W67E3.mjs';import'./chunk-G3WNWAAR.mjs';import'./chunk-4XAUEW6X.mjs';import'./chunk-C2KEN44B.mjs';import'./chunk-VZKFL2XP.mjs';import'./chunk-7OKG3XAA.mjs';import'./chunk-II3BRHAX.mjs';import'./chunk-OR7K6UNK.mjs';import'./chunk-V5FJMVUN.mjs';import'./chunk-FAMLJ6AJ.mjs';import'./chunk-6BGB6K4U.mjs';import'./chunk-WGMDH4XX.mjs';import'./chunk-DPSSQH5W.mjs';import'./chunk-HF2DUXOQ.mjs';import'./chunk-BVHU5ZT3.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-3U3UI5XP.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/list-item.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ListItem}from'./chunk-
|
|
1
|
+
export{b as ListItem}from'./chunk-6JFWU4UG.mjs';import'./chunk-ERINQS7G.mjs';import'./chunk-L75FPM36.mjs';import'./chunk-CYUWSZOV.mjs';import'./chunk-6T3T33NK.mjs';import'./chunk-HTBT6CLR.mjs';import'./chunk-6PKCW63O.mjs';import'./chunk-PHSLH445.mjs';import'./chunk-SNGRNP57.mjs';import'./chunk-276X5SQG.mjs';import'./chunk-JXOB2NBL.mjs';import'./chunk-ME5JZQLL.mjs';import'./chunk-LRXLPCBB.mjs';import'./chunk-CXOA3OCG.mjs';import'./chunk-UCMFW3WC.mjs';import'./chunk-25737XH2.mjs';import'./chunk-OCF546MQ.mjs';import'./chunk-RYJJ3ZR2.mjs';import'./chunk-6FW654CF.mjs';import'./chunk-R2C5CBU5.mjs';import'./chunk-GLKJ3FOO.mjs';import'./chunk-KTRSJBA4.mjs';import'./chunk-LWOIFDHA.mjs';import'./chunk-E5YXU74O.mjs';import'./chunk-ENF7AQB7.mjs';import'./chunk-EYEAWZZH.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-BNV3EY4N.mjs';import'./chunk-E5G7444M.mjs';import'./chunk-IOSO66TV.mjs';import'./chunk-SVUSHVWV.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-FXWF3IBH.mjs';import'./chunk-5I7W67E3.mjs';import'./chunk-G3WNWAAR.mjs';import'./chunk-4XAUEW6X.mjs';import'./chunk-C2KEN44B.mjs';import'./chunk-VZKFL2XP.mjs';import'./chunk-7OKG3XAA.mjs';import'./chunk-II3BRHAX.mjs';import'./chunk-OR7K6UNK.mjs';import'./chunk-V5FJMVUN.mjs';import'./chunk-FAMLJ6AJ.mjs';import'./chunk-6BGB6K4U.mjs';import'./chunk-WGMDH4XX.mjs';import'./chunk-DPSSQH5W.mjs';import'./chunk-HF2DUXOQ.mjs';import'./chunk-BVHU5ZT3.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-3U3UI5XP.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/package.json
CHANGED
package/dist/chunk-XNGBZQAU.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {c as c$3}from'./chunk-WS2F7JWJ.mjs';import {a as a$4}from'./chunk-IOSO66TV.mjs';import {a}from'./chunk-QHBCNAWO.mjs';import {c as c$2}from'./chunk-FXWF3IBH.mjs';import {d}from'./chunk-VZKFL2XP.mjs';import {a as a$1}from'./chunk-WGMDH4XX.mjs';import {a as a$3}from'./chunk-BVHU5ZT3.mjs';import {c}from'./chunk-DZLL7IH6.mjs';import {c as c$1,h}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import ht,{createContext,useMemo,useCallback,useState,useRef,useEffect,useContext,useId}from'react';import*as At from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var _t=({title:t,titleLines:a=2,description:e,descriptionLines:r=1,Icon:c,iconAsColumn:n=!0,className:o,...i})=>jsxs("div",{className:a$2("flex gap-2 py-4 pl-4 pr-6",n&&"flex-col items-center gap-1",!n&&!e&&"items-center"),...i,children:[c&&jsx(c,{className:a$2("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$2("flex flex-col gap-1",n&&"text-center"),children:[jsx("p",{className:a$2("leading-[130%] text-neutral-500",!!e&&"font-medium"),style:a?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:a}:void 0,children:t}),e&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:e})]})]}),it=_t;var Jt=ht.memo(({handleSelect:t,NoResultsIcon:a$3,noResultsLabel:e,noResultsDescription:r,noResultsDescriptionLines:c$1,noResultsAsColumn:n,noResultsButtonOnClick:o,optionDescriptionLines:i,noResultsButtonLabel:s,filteredOptions:d,inputRect:l,inputRef:h,popoverPosition:x,optionsListRef:k,selectedOption:w,options:z,setFilteredOptions:v})=>jsx(At.Root,{asChild:!0,children:jsx("div",{ref:k,className:"pointer-events-auto fixed z-50 hidden w-full",style:l?{width:`${l.width}px`,left:l.left,top:x==="bottom"?`${l.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-l.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",children:[d.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(it,{title:e,description:r,Icon:a$3,iconAsColumn:n,descriptionLines:c$1}),o&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:m=>{k.current.style.display="none",h.current.value="",v(z),o();},children:s})]})]}),d.map(m=>jsx(Ot,{title:m.label,disabled:m.disabled,description:m.description,descriptionLines:i,onClick:()=>t(m),className:a$2(w?.value===m.value&&"bg-primary-200")},m.key??m.value))]})})})),Mt=Jt;var Qt=336,nr=({options:t,defaultSelectedOption:a,onSelect:e,onClick:r,onInputChange:c,error:n,helperText:o,label:i,placeholder:s,value:d,size:l="md",optionDescriptionLines:h=1,noResultsLabel:x,noResultsIcon:k,noResultsDescription:w,noResultsDescriptionLines:z,noResultsAsColumn:v,noResultsButtonOnClick:m,noResultsButtonLabel:M,className:G,disabled:b})=>{let[p,y]=useState(a??null),R=useRef(null),g=useRef(null),[st,ct]=useState(),[lt,N]=useState([]),[dt,X]=useState("bottom"),[U,Z]=useState(),$=Qt,Y=useCallback(f=>{R.current.style.display="none",g.current.value=f.label,y(f),e?.(f);},[e]),C=useCallback(()=>{if(!g?.current)return;let f=g.current.getBoundingClientRect();ct(f);let O=U?U.height:$,A=window.innerHeight-f.bottom>O,tt=f.top>O;X(A?"bottom":tt?"top":"bottom");},[U?.height]),_=useCallback(()=>{let f=t.filter(O=>O.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(N(f),R?.current){let O=R.current.getBoundingClientRect();Z(O);}},[t]);return useEffect(()=>{N(t);},[t]),useEffect(()=>{if(!d){y(null),g.current&&(g.current.value="");return}(!g.current?.value||p?.value!==d.value)&&(y(d),g.current.value=d.label);},[d]),a$5(R,()=>{R.current.style.display="none",p&&g.current&&(g.current.value=p.label);}),useEffect(()=>{if(g?.current)return C(),g.current.addEventListener("mousedown",C),g.current.addEventListener("input",_),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{g.current?.removeEventListener("mousedown",C),g.current?.removeEventListener("input",_),window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C);}},[C,_]),jsxs("div",{className:a$2("relative",G),children:[jsx(a$4,{ref:g,autoComplete:"off",list:"",selectMode:!0,onChange:f=>{f.target.value||(y(null),e?.(null)),c?.(f);},onClean:()=>{y(null),N(t),e?.(null);},onClick:f=>{R.current.style.display="flex",r?.(f);},onBlur:()=>{p&&g.current&&(g.current.value=p.label);},label:i,helperText:o,placeholder:s,size:l,error:n,disabled:b}),jsx(Mt,{handleSelect:Y,noResultsLabel:x,NoResultsIcon:k,optionDescriptionLines:h,noResultsAsColumn:v,noResultsButtonLabel:M,noResultsButtonOnClick:m,noResultsDescription:w,noResultsDescriptionLines:z,filteredOptions:lt,inputRect:st,inputRef:g,popoverPosition:dt,optionsListRef:R,selectedOption:p,options:t,setFilteredOptions:N})]})};var te=({children:t,title:a,titleLines:e,description:r="",descriptionLines:c,disabled:n=!1,className:o,...i})=>jsxs("div",{className:"flex w-full flex-col gap-1",...i,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!r&&"font-medium"),style:e?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e}:void 0,children:a}),r&&jsx("p",{className:a$2("text-xs leading-[130%]",n?"text-neutral-400":"text-neutral-700"),style:c?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:c}:void 0,children:r})]}),F=te;var vr=({children:t,title:a,titleLines:e,description:r="",descriptionLines:c,startIcon:n,badgeContent:o,hasDivider:i=!1,disabled:s=!1,onSelect:d,className:l,...h$1})=>jsxs(D,{hasDescription:!!r,disabled:s,onClick:d,hasDivider:i,className:a$2(!s&&"cursor-pointer",l),...h$1,children:[n&&ht.cloneElement(n,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c,disabled:s}),jsxs("div",{className:"ml-4 flex gap-2",children:[o&&jsx(a$3,{content:o,size:"lg",variant:"alert",className:a$2("self-center",s&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var Dt=({children:t,title:a,titleLines:e=1,description:r="",descriptionLines:c,startIcon:n,hasDivider:o=!1,disabled:i=!1,checked:s,onCheckedChange:d,className:l,...h})=>jsxs(D,{hasDescription:!!r,disabled:i,hasDivider:o,...h,className:a$2("pr-6",l),children:[n&&ht.cloneElement(n,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c,disabled:i}),jsx(c$2,{size:"sm",checked:s,onCheckedChange:d,className:"ml-4 self-center",disabled:i})]});var E=336,Tt=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:E,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),P=()=>{let t=useContext(Tt);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Ht=({children:t})=>{let a=useRef(null),e=useRef(null),r=useRef(null),c=useId(),[n,o]=useState(),[i,s]=useState(!0),[d,l]=useState([]),[h,x]=useState(-1),[k,w]=useState("bottom"),[z,v]=useState(),[m,M]=useState(E);return jsx(Tt.Provider,{value:{optionsListRef:a,inputRef:e,scrollAreaRef:r,autocompleteId:c,inputRect:n,showChips:i,filteredOptions:d,currentFocus:h,popoverPosition:k,setFilteredOptions:l,setCurrentFocus:x,setShowChips:s,setPopoverPosition:w,setInputRect:o,optionsListHeight:m,optionsListRect:z,setOptionsListRect:v,setOptionsListHeight:M},children:t})};var pe=({option:t,onMountWidth:a,size:e})=>{let r=useRef(null);return useEffect(()=>{r.current&&a?.(r.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:r,className:"flex-shrink-0",size:e==="md"?"xs":"sm",hasCloseIcon:!1,children:t.label})},Nt=pe;var ue=150,be=ht.memo(({selectedOptions:t,error:a,onCleanSelectedOptions:e,disabled:r,size:c})=>{let{autocompleteId:n,inputRect:o,inputRef:i,optionsListRef:s}=P(),d=ht.useRef(null),[l,h]=ht.useState(new Map),x=useMemo(()=>{if(!o?.width)return [];let w=0,z=o.width-ue,v=0;for(let m=0;m<t.length&&(v+=l.get(m)??0,!(v>z));m++)w++;return t.slice(0,w)},[o?.width,t,l]),k=useCallback(()=>{r||(i?.current?.focus(),s.current.style.display="flex");},[r]);return jsxs("div",{onClick:k,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",r&&"cursor-not-allowed"),style:{maxWidth:o?.width?o?.width:void 0,height:o?.height?o?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:d,children:x.map((w,z)=>jsx(Nt,{option:w,onMountWidth:v=>h(m=>new Map(m).set(z,v)),size:c},`chip-input-${n}-${w.value}`))}),t.length>x.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!a&&jsx(a$3,{content:String(t.length),size:c}),a&&t.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:w=>{w.stopPropagation(),e();}})]})}),Xt=be;var fe=ht.memo(({option:t,index:a,onPressOption:e,isSelected:r,optionDescriptionLines:c})=>{let{currentFocus:n,inputRef:o}=P();return jsx(Dt,{title:t.label,checked:r,disabled:t.disabled,className:n===a?"bg-primary-200":void 0,onMouseDown:i=>{t.disabled||(o?.current?.value&&i.preventDefault(),e?.(t,i));},description:t.description,descriptionLines:c})}),vt=fe;var Le=ht.memo(({selectedOptions:t,handleSelect:a$2,NoResultsIcon:e,noResultsLabel:r,noResultsDescription:c$1,noResultsDescriptionLines:n,noResultsAsColumn:o,noResultsButtonOnClick:i,optionDescriptionLines:s,noResultsButtonLabel:d})=>{let{popoverPosition:l,scrollAreaRef:h,optionsListRef:x,filteredOptions:k,inputRect:w,autocompleteId:z,inputRef:v,optionsListHeight:m}=P(),M=useCallback(b=>t.some(p=>p.value===b.value),[t]),G=useMemo(()=>t.filter(b=>b.label.toLowerCase().includes(v?.current?.value.toLowerCase()??"")),[t,v?.current?.value]);return jsx(At.Root,{asChild:!0,children:jsx("div",{ref:x,className:"pointer-events-auto fixed z-50 hidden w-full",style:w?{width:`${w.width}px`,left:w.left,top:l==="bottom"?`${w.bottom}px`:void 0,bottom:l==="top"?`${window.innerHeight-w.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex w-full flex-col rounded-lg bg-neutral-50",style:{maxHeight:m+"px"},ref:h,children:[k.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(it,{title:r,description:c$1,Icon:e,iconAsColumn:o,descriptionLines:n}),i&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{x.current.style.display="none",v.current.value="",i();},children:d})]})]}),G.map((b,p)=>jsx(vt,{option:b,index:p,onPressOption:y=>a$2(y),isSelected:M(b),optionDescriptionLines:s},`autocomplete-option-${z}-${b.key??b.value}`)),k.map((b,p)=>!t.some(y=>y.value===b.value)&&jsx(vt,{option:b,index:p,onPressOption:y=>a$2(y),isSelected:M(b),optionDescriptionLines:s},`autocomplete-option-${z}-${b.key??b.value}`))]})})})}),Bt=Le;var Ae=ht.memo(({selectedOptions:t,onSelect:a,error:e,helperText:r,label:c,placeholder:n,options:o,onInputChange:i,size:s,disabled:d})=>{let{setCurrentFocus:l,setFilteredOptions:h,optionsListRef:x,inputRef:k}=P();return jsx(a$4,{ref:k,autoComplete:"off",list:"",disabled:d,selectMode:!0,onChange:w=>{l(-1),i?.(w.target.value);},onClean:()=>{l(-1),h(o),a?.(null,t);},onClick:()=>{d||(x.current.style.display="flex");},error:e,helperText:r,label:c,placeholder:n,fixedTopLabel:t.length>0,size:s})}),Wt=Ae;var jt=({options:t,defaultSelectedOptions:a,onSelect:e,error:r,helperText:c,label:n,placeholder:o,noResultsLabel:i,noResultsIcon:s,noResultsDescription:d,noResultsDescriptionLines:l,noResultsAsColumn:h,noResultsButtonOnClick:x,noResultsButtonLabel:k,className:w,onInputChange:z,value:v,loading:m,size:M="md",optionDescriptionLines:G=1,disabled:b})=>{let{inputRef:p,optionsListRef:y,setFilteredOptions:R,setShowChips:g,setInputRect:st,setPopoverPosition:ct,setCurrentFocus:lt,showChips:N,setOptionsListRect:dt,optionsListRect:X,setOptionsListHeight:U}=P(),Z=useRef(!1),[$,Y]=useState(a??[]),C=useCallback(L=>{Y(I=>{let S,q=I.findIndex($t=>$t.value===L.value);return q===-1?(S=I.concat(L),e?.(L,S),S):(S=I.toSpliced(q,1),e?.(L,S),S)});},[e]),_=useCallback(()=>{Y([]),R(t),e?.(null,[]);},[]),f=useCallback(()=>{g(!1);},[]),O=useCallback(()=>{g(!0);},[]),A=useCallback(()=>{if(!p?.current)return;let L=p.current.getBoundingClientRect();st(L);let I=X?X.height>E?E:X.height:E,S=window.innerHeight-L.bottom>I,q=L.top>I;ct(S?"bottom":q?"top":"bottom"),U(q?E:window.innerHeight-L.bottom>E?E:window.innerHeight-L.bottom);},[X?.height]),tt=useCallback(()=>{let L=t.filter(I=>I.label.toLowerCase().includes(p?.current?.value.toLowerCase()??""));if(R(L),y?.current){let I=y.current.getBoundingClientRect();dt(I);}},[t,y?.current]);return useEffect(()=>{R(t);},[t]),a$5(y,()=>{y.current.style.display="none",lt(-1);}),useEffect(()=>{if(p?.current)return A(),p.current.addEventListener("mousedown",A),p.current.addEventListener("input",tt),p.current.addEventListener("focusin",f),p.current.addEventListener("focusout",O),window.addEventListener("scroll",A,!0),window.addEventListener("resize",A),()=>{p.current?.removeEventListener("mousedown",A),p.current?.removeEventListener("input",A),p.current?.removeEventListener("focusout",O),p.current?.removeEventListener("focusin",f),window.removeEventListener("scroll",A,!0),window.removeEventListener("resize",A);}},[A,O,f,tt]),useEffect(()=>{v&&(Y(v),g(!0));},[v]),useEffect(()=>{m||a&&a.length&&!Z.current&&(Y(a),Z.current=!0,g(!0));},[a,m]),jsxs("div",{className:a$2("relative",w),children:[jsx(Wt,{selectedOptions:$,onSelect:e,error:r,helperText:c,label:n,placeholder:o,handleSelect:C,options:t,onInputChange:z,size:M,disabled:b}),N&&jsx(Xt,{selectedOptions:$,disabled:b,error:r,onCleanSelectedOptions:_,size:M}),jsx(Bt,{handleSelect:C,selectedOptions:$,noResultsLabel:i,NoResultsIcon:s,optionDescriptionLines:G,noResultsAsColumn:h,noResultsButtonLabel:k,noResultsButtonOnClick:x,noResultsDescription:d,noResultsDescriptionLines:l})]})};var Sa=t=>jsx(Ht,{children:jsx(jt,{...t})});var Wa=({children:t,title:a,titleLines:e=1,description:r,descriptionLines:c$1=1,StartIcon:n,hasDivider:o=!1,disabled:i=!1,actionButton:s,className:d,...l})=>jsxs(D,{hasDescription:!!r,disabled:i,hasDivider:o,...l,className:d,children:[n&&jsx(n,{className:"mr-2 h-4.5 w-4.5 shrink-0 flex-grow-0"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c$1,disabled:i}),s&&jsx(Fragment,{children:s.isIcon?jsx(c$3,{...s,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:i??s.disabled}):jsx(c,{...s,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:i??s.disabled})})]});var Fe=({children:t,hasDescription:a=!1,disabled:e=!1,hasDivider:r=!1,className:c,isSelected:n,onClick:o,...i})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",a?"py-3":"py-[0.875rem]",e?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",n&&"bg-primary-200",c),onClick:s=>{e||o?.(s);},...i,children:t}),r&&jsx(a$1,{})]}),D=Fe;var Ot=({children:t,title:a,titleLines:e,description:r="",descriptionLines:c,startIcon:n,endIcon:o,hasDivider:i=!1,disabled:s=!1,isSelected:d=!1,className:l,...h})=>jsxs(D,{hasDescription:!!r,disabled:s,hasDivider:i,className:l,isSelected:d,...h,children:[n&&ht.cloneElement(n,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c,disabled:s}),o&&ht.cloneElement(o,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{nr as a,Ot as b,vr as c,Dt as d,Sa as e,Wa as f};
|