sodtrack-web-ui 0.55.0 → 0.55.1
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/checkbox.js +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chip-form.d.mts +3 -3
- package/dist/chip-form.d.ts +3 -3
- package/dist/chip-status-table.d.mts +1 -1
- package/dist/chip-status-table.d.ts +1 -1
- package/dist/chunk-FXWF3IBH.mjs +1 -0
- package/dist/chunk-OMGKWBSZ.mjs +1 -0
- package/dist/drawer-sticky.d.mts +1 -1
- package/dist/drawer-sticky.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.mjs +1 -1
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.d.mts +3 -1
- package/dist/list-item-checkbox.d.ts +3 -1
- package/dist/list-item-checkbox.js +2 -2
- package/dist/list-item-checkbox.mjs +1 -1
- package/dist/list-item.css +1 -1
- package/dist/list-item.mjs +1 -1
- package/dist/tab.d.mts +1 -1
- package/dist/tab.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-5IWC4SSE.mjs +0 -1
- package/dist/chunk-BR7PNSN5.mjs +0 -1
package/dist/checkbox.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var react=require('react'),react$1=require('@ark-ui/react'),jsxRuntime=require('react/jsx-runtime');function te(e){var a,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(a=0;a<d;a++)e[a]&&(o=te(e[a]))&&(t&&(t+=" "),t+=o);}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function oe(){for(var e,a,o=0,t="",d=arguments.length;o<d;o++)(e=arguments[o])&&(a=te(e))&&(t&&(t+=" "),t+=a);return t}var J="-",he=e=>{let a=we(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:r=>{let l=r.split(J);return l[0]===""&&l.length!==1&&l.shift(),de(l,a)||Se(r)},getConflictingClassGroupIds:(r,l)=>{let c=o[r]||[];return l&&t[r]?[...c,...t[r]]:c}}},de=(e,a)=>{if(e.length===0)return a.classGroupId;let o=e[0],t=a.nextPart.get(o),d=t?de(e.slice(1),t):void 0;if(d)return d;if(a.validators.length===0)return;let u=e.join(J);return a.validators.find(({validator:r})=>r(u))?.classGroupId},ue=/^\[(.+)\]$/,Se=e=>{if(ue.test(e)){let a=ue.exec(e)[1],o=a?.substring(0,a.indexOf(":"));if(o)return "arbitrary.."+o}},we=e=>{let{theme:a,prefix:o}=e,t={nextPart:new Map,validators:[]};return Pe(Object.entries(e.classGroups),o).forEach(([u,r])=>{Z(r,t,u,a);}),t},Z=(e,a,o,t)=>{e.forEach(d=>{if(typeof d=="string"){let u=d===""?a:le(a,d);u.classGroupId=o;return}if(typeof d=="function"){if(ke(d)){Z(d(t),a,o,t);return}a.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([u,r])=>{Z(r,le(a,u),o,t);});});},le=(e,a)=>{let o=e;return a.split(J).forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t);}),o},ke=e=>e.isThemeGetter,Pe=(e,a)=>a?e.map(([o,t])=>{let d=t.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([r,l])=>[a+r,l])):u);return [o,d]}):e,be=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=new Map,t=new Map,d=(u,r)=>{o.set(u,r),a++,a>e&&(a=0,t=o,o=new Map);};return {get(u){let r=o.get(u);if(r!==void 0)return r;if((r=t.get(u))!==void 0)return d(u,r),r},set(u,r){o.has(u)?o.set(u,r):d(u,r);}}},re="!",Ae=e=>{let{separator:a,experimentalParseClassName:o}=e,t=a.length===1,d=a[0],u=a.length,r=l=>{let c=[],p=0,m=0,C;for(let n=0;n<l.length;n++){let I=l[n];if(p===0){if(I===d&&(t||l.slice(n,n+u)===a)){c.push(l.slice(m,n)),m=n+u;continue}if(I==="/"){C=n;continue}}I==="["?p++:I==="]"&&p--;}let g=c.length===0?l:l.substring(m),S=g.startsWith(re),h=S?g.substring(1):g,L=C&&C>m?C-m:void 0;return {modifiers:c,hasImportantModifier:S,baseClassName:h,maybePostfixModifierPosition:L}};return o?l=>o({className:l,parseClassName:r}):r},Be=e=>{if(e.length<=1)return e;let a=[],o=[];return e.forEach(t=>{t[0]==="["?(a.push(...o.sort(),t),o=[]):o.push(t);}),a.push(...o.sort()),a},Me=e=>({cache:be(e.cacheSize),parseClassName:Ae(e),...he(e)}),Fe=/\s+/,ye=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:d}=a,u=[],r=e.trim().split(Fe),l="";for(let c=r.length-1;c>=0;c-=1){let p=r[c],{modifiers:m,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:S}=o(p),h=!!S,L=t(h?g.substring(0,S):g);if(!L){if(!h){l=p+(l.length>0?" "+l:l);continue}if(L=t(g),!L){l=p+(l.length>0?" "+l:l);continue}h=!1;}let n=Be(m).join(":"),I=C?n+re:n,x=I+L;if(u.includes(x))continue;u.push(x);let y=d(L,h);for(let A=0;A<y.length;++A){let O=y[A];u.push(I+O);}l=p+(l.length>0?" "+l:l);}return l};function De(){let e=0,a,o,t="";for(;e<arguments.length;)(a=arguments[e++])&&(o=se(a))&&(t&&(t+=" "),t+=o);return t}var se=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=se(e[t]))&&(o&&(o+=" "),o+=a);return o};function Re(e,...a){let o,t,d,u=r;function r(c){let p=a.reduce((m,C)=>C(m),e());return o=Me(p),t=o.cache.get,d=o.cache.set,u=l,l(c)}function l(c){let p=t(c);if(p)return p;let m=ye(c,o);return d(c,m),m}return function(){return u(De.apply(null,arguments))}}var f=e=>{let a=o=>o[e]||[];return a.isThemeGetter=!0,a},fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Te=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),ve=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ue=/\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$/,Oe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,He=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>B(e)||qe.has(e)||Te.test(e),P=e=>M(e,"length",Ze),B=e=>!!e&&!Number.isNaN(Number(e)),K=e=>M(e,"number",B),R=e=>!!e&&Number.isInteger(Number(e)),ze=e=>e.endsWith("%")&&B(e.slice(0,-1)),s=e=>fe.test(e),b=e=>ve.test(e),Ve=new Set(["length","size","percentage"]),We=e=>M(e,Ve,ie),Ee=e=>M(e,"position",ie),Xe=new Set(["image","url"]),Ne=e=>M(e,Xe,Qe),Ke=e=>M(e,"",Je),T=()=>!0,M=(e,a,o)=>{let t=fe.exec(e);return t?t[1]?typeof a=="string"?t[1]===a:a.has(t[1]):o(t[2]):!1},Ze=e=>Ue.test(e)&&!Oe.test(e),ie=()=>!1,Je=e=>He.test(e),Qe=e=>Ge.test(e);var je=()=>{let e=f("colors"),a=f("spacing"),o=f("blur"),t=f("brightness"),d=f("borderColor"),u=f("borderRadius"),r=f("borderSpacing"),l=f("borderWidth"),c=f("contrast"),p=f("grayscale"),m=f("hueRotate"),C=f("invert"),g=f("gap"),S=f("gradientColorStops"),h=f("gradientColorStopPositions"),L=f("inset"),n=f("margin"),I=f("opacity"),x=f("padding"),y=f("saturate"),A=f("scale"),O=f("sepia"),Q=f("skew"),j=f("space"),Y=f("translate"),W=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",s,a],i=()=>[s,a],$=()=>["",k,P],H=()=>["auto",B,s],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",s],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[B,s];return {cacheSize:500,separator:":",theme:{colors:[T],spacing:[k,P],blur:["none","",b,s],brightness:w(),borderColor:[e],borderRadius:["none","","full",b,s],borderSpacing:i(),borderWidth:$(),contrast:w(),grayscale:D(),hueRotate:w(),invert:D(),gap:i(),gradientColorStops:[e],gradientColorStopPositions:[ze,P],inset:X(),margin:X(),opacity:w(),padding:i(),saturate:w(),scale:w(),sepia:D(),skew:w(),space:i(),translate:i()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[b]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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:[..._(),s]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],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",R,s]}],basis:[{basis:X()}],"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:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",R,s]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",R,s]},s]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[R,s]},s]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"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",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[n]}],mx:[{mx:[n]}],my:[{my:[n]}],ms:[{ms:[n]}],me:[{me:[n]}],mt:[{mt:[n]}],mr:[{mr:[n]}],mb:[{mb:[n]}],ml:[{ml:[n]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"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:[b]},b]}],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",b,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"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",B,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,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":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,P]}],"underline-offset":[{"underline-offset":["auto",k,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:i()}],"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":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),Ee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",We]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ne]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:G()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[k,s]}],"outline-w":[{outline:[k,P]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[k,P]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",b,Ke]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",b,s]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[y]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[R,s]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"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":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,P,K]}],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=Re(je);function q(...e){return ce(oe(e))}var ne=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),z=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim();var pe={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 Le=react.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:d="",children:u,iconNode:r,...l},c)=>react.createElement("svg",{ref:c,...pe,width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:z("lucide",d),...l},[...r.map(([p,m])=>react.createElement(p,m)),...Array.isArray(u)?u:[u]]));var V=(e,a)=>{let o=react.forwardRef(({className:t,...d},u)=>react.createElement(Le,{ref:u,iconNode:a,className:z(`lucide-${ne(e)}`,t),...d}));return o.displayName=`${e}`,o};var v=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var U=V("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var Ie=v,xe=U;var _a=["sm","md"],et=[!0,"indeterminate",!1],at=({className:e,label:a,size:o="md",disabled:t=!1,onCheckedChange:d,...u})=>{let r=react.useCallback(l=>{d?.(l.checked);},[d]);return jsxRuntime.jsxs(react$1.CheckboxRoot,{"data-size":o,className:"group flex w-fit data-[disabled]:cursor-not-allowed data-[size=md]:gap-2.5 data-[size=sm]:gap-2",disabled:t,onCheckedChange:r,...u,children:[jsxRuntime.jsxs(react$1.CheckboxControl,{className:q("relative flex items-center justify-center rounded-sm ring-1 ring-inset ring-neutral-900 transition-all after:absolute after:rounded-full group-data-[size=md]:mt-0.125 group-data-[size=sm]:mt-0.25","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4 after:group-data-[size=sm]:h-6 after:group-data-[size=sm]:w-6","group-data-[size=md]:h-5 group-data-[size=md]:w-5 after:group-data-[size=md]:-left-1.5 after:group-data-[size=md]:-top-1.5 after:group-data-[size=md]:h-8 after:group-data-[size=md]:w-8",!t&&"after:group-hover:bg-transparent-primary-20 group-hover:data-[state=unchecked]:ring-primary-600",!t&&"group-active:data-[state=checked]:bg-primary-700 group-active:data-[state=indeterminate]:bg-primary-700 group-active:data-[state=unchecked]:ring-primary-700",!t&&"data-[state=checked]:bg-primary-500 data-[state=checked]:ring-0 group-hover:data-[state=checked]:bg-primary-600",!t&&"data-[state=indeterminate]:bg-primary-500 data-[state=indeterminate]:ring-0 group-hover:data-[state=indeterminate]:bg-primary-600",t&&"data-[state=checked]:data-[disabled]:bg-neutral-500 data-[state=checked]:data-[disabled]:ring-0",t&&"data-[state=unchecked]:data-[disabled]:ring-neutral-500",t&&"data-[state=indeterminate]:data-[disabled]:ring-neutral-500"),children:[jsxRuntime.jsx(react$1.CheckboxIndicator,{children:jsxRuntime.jsx(Ie,{className:q("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})}),jsxRuntime.jsx(react$1.CheckboxIndicator,{indeterminate:!0,children:jsxRuntime.jsx(xe,{className:q("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})})]}),a&&jsxRuntime.jsx(react$1.CheckboxLabel,{className:q("font-inter !leading-[130%]","group-data-[size=md]:text-base","group-data-[size=sm]:text-sm",!t&&"text-neutral-900",t&&"text-neutral-500"),children:a}),jsxRuntime.jsx(react$1.CheckboxHiddenInput,{})]})};/*! Bundled license information:
|
|
1
|
+
'use strict';var react=require('react'),react$1=require('@ark-ui/react'),jsxRuntime=require('react/jsx-runtime');function te(e){var a,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(a=0;a<d;a++)e[a]&&(o=te(e[a]))&&(t&&(t+=" "),t+=o);}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function oe(){for(var e,a,o=0,t="",d=arguments.length;o<d;o++)(e=arguments[o])&&(a=te(e))&&(t&&(t+=" "),t+=a);return t}var J="-",he=e=>{let a=we(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:r=>{let l=r.split(J);return l[0]===""&&l.length!==1&&l.shift(),de(l,a)||Se(r)},getConflictingClassGroupIds:(r,l)=>{let c=o[r]||[];return l&&t[r]?[...c,...t[r]]:c}}},de=(e,a)=>{if(e.length===0)return a.classGroupId;let o=e[0],t=a.nextPart.get(o),d=t?de(e.slice(1),t):void 0;if(d)return d;if(a.validators.length===0)return;let u=e.join(J);return a.validators.find(({validator:r})=>r(u))?.classGroupId},ue=/^\[(.+)\]$/,Se=e=>{if(ue.test(e)){let a=ue.exec(e)[1],o=a?.substring(0,a.indexOf(":"));if(o)return "arbitrary.."+o}},we=e=>{let{theme:a,prefix:o}=e,t={nextPart:new Map,validators:[]};return Pe(Object.entries(e.classGroups),o).forEach(([u,r])=>{Z(r,t,u,a);}),t},Z=(e,a,o,t)=>{e.forEach(d=>{if(typeof d=="string"){let u=d===""?a:le(a,d);u.classGroupId=o;return}if(typeof d=="function"){if(ke(d)){Z(d(t),a,o,t);return}a.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([u,r])=>{Z(r,le(a,u),o,t);});});},le=(e,a)=>{let o=e;return a.split(J).forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t);}),o},ke=e=>e.isThemeGetter,Pe=(e,a)=>a?e.map(([o,t])=>{let d=t.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([r,l])=>[a+r,l])):u);return [o,d]}):e,be=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=new Map,t=new Map,d=(u,r)=>{o.set(u,r),a++,a>e&&(a=0,t=o,o=new Map);};return {get(u){let r=o.get(u);if(r!==void 0)return r;if((r=t.get(u))!==void 0)return d(u,r),r},set(u,r){o.has(u)?o.set(u,r):d(u,r);}}},re="!",Ae=e=>{let{separator:a,experimentalParseClassName:o}=e,t=a.length===1,d=a[0],u=a.length,r=l=>{let c=[],p=0,m=0,C;for(let n=0;n<l.length;n++){let I=l[n];if(p===0){if(I===d&&(t||l.slice(n,n+u)===a)){c.push(l.slice(m,n)),m=n+u;continue}if(I==="/"){C=n;continue}}I==="["?p++:I==="]"&&p--;}let g=c.length===0?l:l.substring(m),S=g.startsWith(re),h=S?g.substring(1):g,L=C&&C>m?C-m:void 0;return {modifiers:c,hasImportantModifier:S,baseClassName:h,maybePostfixModifierPosition:L}};return o?l=>o({className:l,parseClassName:r}):r},Be=e=>{if(e.length<=1)return e;let a=[],o=[];return e.forEach(t=>{t[0]==="["?(a.push(...o.sort(),t),o=[]):o.push(t);}),a.push(...o.sort()),a},Me=e=>({cache:be(e.cacheSize),parseClassName:Ae(e),...he(e)}),Fe=/\s+/,ye=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:d}=a,u=[],r=e.trim().split(Fe),l="";for(let c=r.length-1;c>=0;c-=1){let p=r[c],{modifiers:m,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:S}=o(p),h=!!S,L=t(h?g.substring(0,S):g);if(!L){if(!h){l=p+(l.length>0?" "+l:l);continue}if(L=t(g),!L){l=p+(l.length>0?" "+l:l);continue}h=!1;}let n=Be(m).join(":"),I=C?n+re:n,x=I+L;if(u.includes(x))continue;u.push(x);let D=d(L,h);for(let A=0;A<D.length;++A){let O=D[A];u.push(I+O);}l=p+(l.length>0?" "+l:l);}return l};function De(){let e=0,a,o,t="";for(;e<arguments.length;)(a=arguments[e++])&&(o=se(a))&&(t&&(t+=" "),t+=o);return t}var se=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=se(e[t]))&&(o&&(o+=" "),o+=a);return o};function Re(e,...a){let o,t,d,u=r;function r(c){let p=a.reduce((m,C)=>C(m),e());return o=Me(p),t=o.cache.get,d=o.cache.set,u=l,l(c)}function l(c){let p=t(c);if(p)return p;let m=ye(c,o);return d(c,m),m}return function(){return u(De.apply(null,arguments))}}var f=e=>{let a=o=>o[e]||[];return a.isThemeGetter=!0,a},fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Te=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),ve=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ue=/\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$/,Oe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,He=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>B(e)||qe.has(e)||Te.test(e),P=e=>M(e,"length",Ze),B=e=>!!e&&!Number.isNaN(Number(e)),K=e=>M(e,"number",B),T=e=>!!e&&Number.isInteger(Number(e)),ze=e=>e.endsWith("%")&&B(e.slice(0,-1)),s=e=>fe.test(e),b=e=>ve.test(e),Ve=new Set(["length","size","percentage"]),We=e=>M(e,Ve,ie),Ee=e=>M(e,"position",ie),Xe=new Set(["image","url"]),Ne=e=>M(e,Xe,Qe),Ke=e=>M(e,"",Je),q=()=>!0,M=(e,a,o)=>{let t=fe.exec(e);return t?t[1]?typeof a=="string"?t[1]===a:a.has(t[1]):o(t[2]):!1},Ze=e=>Ue.test(e)&&!Oe.test(e),ie=()=>!1,Je=e=>He.test(e),Qe=e=>Ge.test(e);var je=()=>{let e=f("colors"),a=f("spacing"),o=f("blur"),t=f("brightness"),d=f("borderColor"),u=f("borderRadius"),r=f("borderSpacing"),l=f("borderWidth"),c=f("contrast"),p=f("grayscale"),m=f("hueRotate"),C=f("invert"),g=f("gap"),S=f("gradientColorStops"),h=f("gradientColorStopPositions"),L=f("inset"),n=f("margin"),I=f("opacity"),x=f("padding"),D=f("saturate"),A=f("scale"),O=f("sepia"),Q=f("skew"),j=f("space"),Y=f("translate"),W=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",s,a],i=()=>[s,a],$=()=>["",k,P],H=()=>["auto",B,s],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",s],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[B,s];return {cacheSize:500,separator:":",theme:{colors:[q],spacing:[k,P],blur:["none","",b,s],brightness:w(),borderColor:[e],borderRadius:["none","","full",b,s],borderSpacing:i(),borderWidth:$(),contrast:w(),grayscale:R(),hueRotate:w(),invert:R(),gap:i(),gradientColorStops:[e],gradientColorStopPositions:[ze,P],inset:X(),margin:X(),opacity:w(),padding:i(),saturate:w(),scale:w(),sepia:R(),skew:w(),space:i(),translate:i()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[b]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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:[..._(),s]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],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",T,s]}],basis:[{basis:X()}],"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",T,s]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",T,s]},s]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[T,s]},s]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"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",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[n]}],mx:[{mx:[n]}],my:[{my:[n]}],ms:[{ms:[n]}],me:[{me:[n]}],mt:[{mt:[n]}],mr:[{mr:[n]}],mb:[{mb:[n]}],ml:[{ml:[n]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"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:[b]},b]}],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",b,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[q]}],"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",B,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,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":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,P]}],"underline-offset":[{"underline-offset":["auto",k,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:i()}],"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":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),Ee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",We]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ne]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:G()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[k,s]}],"outline-w":[{outline:[k,P]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[k,P]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",b,Ke]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",b,s]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[D]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[T,s]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"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":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,P,K]}],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=Re(je);function F(...e){return ce(oe(e))}var ne=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),z=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim();var pe={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 Le=react.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:d="",children:u,iconNode:r,...l},c)=>react.createElement("svg",{ref:c,...pe,width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:z("lucide",d),...l},[...r.map(([p,m])=>react.createElement(p,m)),...Array.isArray(u)?u:[u]]));var V=(e,a)=>{let o=react.forwardRef(({className:t,...d},u)=>react.createElement(Le,{ref:u,iconNode:a,className:z(`lucide-${ne(e)}`,t),...d}));return o.displayName=`${e}`,o};var v=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var U=V("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var Ie=v,xe=U;var _a=["sm","md"],et=[!0,"indeterminate",!1],at=({className:e,label:a,size:o="md",disabled:t=!1,onCheckedChange:d,...u})=>{let r=react.useCallback(l=>{d?.(l.checked);},[d]);return jsxRuntime.jsxs(react$1.CheckboxRoot,{"data-size":o,className:F("group flex h-fit w-fit data-[disabled]:cursor-not-allowed data-[size=md]:gap-2.5 data-[size=sm]:gap-2",e),disabled:t,onCheckedChange:r,...u,children:[jsxRuntime.jsxs(react$1.CheckboxControl,{className:F("relative flex items-center justify-center rounded-sm ring-1 ring-inset ring-neutral-900 transition-all after:absolute after:rounded-full group-data-[size=md]:mt-0.125 group-data-[size=sm]:mt-0.25","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4 after:group-data-[size=sm]:h-6 after:group-data-[size=sm]:w-6","group-data-[size=md]:h-5 group-data-[size=md]:w-5 after:group-data-[size=md]:-left-1.5 after:group-data-[size=md]:-top-1.5 after:group-data-[size=md]:h-8 after:group-data-[size=md]:w-8",!t&&"after:group-hover:bg-transparent-primary-20 group-hover:data-[state=unchecked]:ring-primary-600",!t&&"group-active:data-[state=checked]:bg-primary-700 group-active:data-[state=indeterminate]:bg-primary-700 group-active:data-[state=unchecked]:ring-primary-700",!t&&"data-[state=checked]:bg-primary-500 data-[state=checked]:ring-0 group-hover:data-[state=checked]:bg-primary-600",!t&&"data-[state=indeterminate]:bg-primary-500 data-[state=indeterminate]:ring-0 group-hover:data-[state=indeterminate]:bg-primary-600",t&&"data-[state=checked]:data-[disabled]:bg-neutral-500 data-[state=checked]:data-[disabled]:ring-0",t&&"data-[state=unchecked]:data-[disabled]:ring-neutral-500",t&&"data-[state=indeterminate]:data-[disabled]:ring-neutral-500"),children:[jsxRuntime.jsx(react$1.CheckboxIndicator,{children:jsxRuntime.jsx(Ie,{className:F("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})}),jsxRuntime.jsx(react$1.CheckboxIndicator,{indeterminate:!0,children:jsxRuntime.jsx(xe,{className:F("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})})]}),a&&jsxRuntime.jsx(react$1.CheckboxLabel,{className:F("font-inter !leading-[130%]","group-data-[size=md]:text-base","group-data-[size=sm]:text-sm",!t&&"text-neutral-900",t&&"text-neutral-500"),children:a}),jsxRuntime.jsx(react$1.CheckboxHiddenInput,{})]})};/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
(**
|
package/dist/checkbox.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as Checkbox,b as CheckboxCheckedStates,a as CheckboxSizes}from'./chunk-
|
|
1
|
+
export{c as Checkbox,b as CheckboxCheckedStates,a as CheckboxSizes}from'./chunk-FXWF3IBH.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|
package/dist/chip-form.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
15
15
|
children?: React__default.ReactNode | undefined;
|
|
16
16
|
} & Omit<Omit<VariantProps<(props?: ({
|
|
17
17
|
variant?: "standard" | "primary" | undefined;
|
|
18
|
-
type?: "
|
|
18
|
+
type?: "outlined" | "ghost" | "fill" | undefined;
|
|
19
19
|
selected?: boolean | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
duotone?: boolean | undefined;
|
|
@@ -76,7 +76,7 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
76
76
|
} | null | undefined;
|
|
77
77
|
})) | undefined) => string>, "variant">, "type"> & Required<Pick<VariantProps<(props?: ({
|
|
78
78
|
variant?: "standard" | "primary" | undefined;
|
|
79
|
-
type?: "
|
|
79
|
+
type?: "outlined" | "ghost" | "fill" | undefined;
|
|
80
80
|
selected?: boolean | undefined;
|
|
81
81
|
disabled?: boolean | undefined;
|
|
82
82
|
duotone?: boolean | undefined;
|
|
@@ -137,7 +137,7 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
137
137
|
} | null | undefined;
|
|
138
138
|
})) | undefined) => string>, "variant">> & Required<Pick<VariantProps<(props?: ({
|
|
139
139
|
variant?: "standard" | "primary" | undefined;
|
|
140
|
-
type?: "
|
|
140
|
+
type?: "outlined" | "ghost" | "fill" | undefined;
|
|
141
141
|
selected?: boolean | undefined;
|
|
142
142
|
disabled?: boolean | undefined;
|
|
143
143
|
duotone?: boolean | undefined;
|
package/dist/chip-form.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
15
15
|
children?: React__default.ReactNode | undefined;
|
|
16
16
|
} & Omit<Omit<VariantProps<(props?: ({
|
|
17
17
|
variant?: "standard" | "primary" | undefined;
|
|
18
|
-
type?: "
|
|
18
|
+
type?: "outlined" | "ghost" | "fill" | undefined;
|
|
19
19
|
selected?: boolean | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
duotone?: boolean | undefined;
|
|
@@ -76,7 +76,7 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
76
76
|
} | null | undefined;
|
|
77
77
|
})) | undefined) => string>, "variant">, "type"> & Required<Pick<VariantProps<(props?: ({
|
|
78
78
|
variant?: "standard" | "primary" | undefined;
|
|
79
|
-
type?: "
|
|
79
|
+
type?: "outlined" | "ghost" | "fill" | undefined;
|
|
80
80
|
selected?: boolean | undefined;
|
|
81
81
|
disabled?: boolean | undefined;
|
|
82
82
|
duotone?: boolean | undefined;
|
|
@@ -137,7 +137,7 @@ declare const ChipForm: React__default.ForwardRefExoticComponent<{
|
|
|
137
137
|
} | null | undefined;
|
|
138
138
|
})) | undefined) => string>, "variant">> & Required<Pick<VariantProps<(props?: ({
|
|
139
139
|
variant?: "standard" | "primary" | undefined;
|
|
140
|
-
type?: "
|
|
140
|
+
type?: "outlined" | "ghost" | "fill" | undefined;
|
|
141
141
|
selected?: boolean | undefined;
|
|
142
142
|
disabled?: boolean | undefined;
|
|
143
143
|
duotone?: boolean | undefined;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'cva';
|
|
|
2
2
|
import { HTMLAttributes, FC } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const chipStatusTable: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "info" | "warning" | "success" | "error" | "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
6
6
|
} & ({
|
|
7
7
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'cva';
|
|
|
2
2
|
import { HTMLAttributes, FC } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const chipStatusTable: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "info" | "warning" | "success" | "error" | "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
6
6
|
} & ({
|
|
7
7
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {j,k}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import {CheckboxRoot,CheckboxControl,CheckboxIndicator,CheckboxLabel,CheckboxHiddenInput}from'@ark-ui/react';import {useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var P=["sm","md"],N=[!0,"indeterminate",!1],R=({className:n,label:r,size:h="md",disabled:e=!1,onCheckedChange:o,...m})=>{let p=useCallback(g=>{o?.(g.checked);},[o]);return jsxs(CheckboxRoot,{"data-size":h,className:a("group flex h-fit w-fit data-[disabled]:cursor-not-allowed data-[size=md]:gap-2.5 data-[size=sm]:gap-2",n),disabled:e,onCheckedChange:p,...m,children:[jsxs(CheckboxControl,{className:a("relative flex items-center justify-center rounded-sm ring-1 ring-inset ring-neutral-900 transition-all after:absolute after:rounded-full group-data-[size=md]:mt-0.125 group-data-[size=sm]:mt-0.25","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4 after:group-data-[size=sm]:h-6 after:group-data-[size=sm]:w-6","group-data-[size=md]:h-5 group-data-[size=md]:w-5 after:group-data-[size=md]:-left-1.5 after:group-data-[size=md]:-top-1.5 after:group-data-[size=md]:h-8 after:group-data-[size=md]:w-8",!e&&"after:group-hover:bg-transparent-primary-20 group-hover:data-[state=unchecked]:ring-primary-600",!e&&"group-active:data-[state=checked]:bg-primary-700 group-active:data-[state=indeterminate]:bg-primary-700 group-active:data-[state=unchecked]:ring-primary-700",!e&&"data-[state=checked]:bg-primary-500 data-[state=checked]:ring-0 group-hover:data-[state=checked]:bg-primary-600",!e&&"data-[state=indeterminate]:bg-primary-500 data-[state=indeterminate]:ring-0 group-hover:data-[state=indeterminate]:bg-primary-600",e&&"data-[state=checked]:data-[disabled]:bg-neutral-500 data-[state=checked]:data-[disabled]:ring-0",e&&"data-[state=unchecked]:data-[disabled]:ring-neutral-500",e&&"data-[state=indeterminate]:data-[disabled]:ring-neutral-500"),children:[jsx(CheckboxIndicator,{children:jsx(j,{className:a("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})}),jsx(CheckboxIndicator,{indeterminate:!0,children:jsx(k,{className:a("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})})]}),r&&jsx(CheckboxLabel,{className:a("font-inter !leading-[130%]","group-data-[size=md]:text-base","group-data-[size=sm]:text-sm",!e&&"text-neutral-900",e&&"text-neutral-500"),children:r}),jsx(CheckboxHiddenInput,{})]})};export{P as a,N as b,R as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-IOSO66TV.mjs';import {a}from'./chunk-QHBCNAWO.mjs';import {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 bt,{createContext,useMemo,useCallback,useState,useRef,useEffect,useContext,useId}from'react';import*as Lt from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Gt=({title:t,titleLines:o=2,description:r,descriptionLines:e=1,Icon:s,iconAsColumn:i=!0,className:a,...n})=>jsxs("div",{className:a$2("flex gap-2 py-4 pl-4 pr-6",i&&"flex-col items-center gap-1",!i&&!r&&"items-center"),...n,children:[s&&jsx(s,{className:a$2("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$2("flex flex-col gap-1",i&&"text-center"),children:[jsx("p",{className:a$2("leading-[130%] text-neutral-500",!!r&&"font-medium"),style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t}),r&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:e?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e}:void 0,children:r})]})]}),at=Gt;var $t=bt.memo(({handleSelect:t,NoResultsIcon:o,noResultsLabel:r,noResultsDescription:e,noResultsDescriptionLines:s,noResultsAsColumn:i,noResultsButtonOnClick:a$3,optionDescriptionLines:n,noResultsButtonLabel:w,filteredOptions:l,inputRect:p,inputRef:f,popoverPosition:x,optionsListRef:k,selectedOption:m,options:z,setFilteredOptions:h})=>jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:k,className:"pointer-events-auto fixed z-50 hidden w-full",style:p?{width:`${p.width}px`,left:p.left,top:x==="bottom"?`${p.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-p.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",children:[l.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(at,{title:r,description:e,Icon:o,iconAsColumn:i,descriptionLines:s}),a$3&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:u=>{k.current.style.display="none",f.current.value="",h(z),a$3();},children:w})]})]}),l.map(u=>jsx(Mt,{title:u.label,disabled:u.disabled,description:u.description,descriptionLines:n,onClick:()=>t(u),className:a$2(m?.value===u.value&&"bg-primary-200")},u.key??u.value))]})})})),Ct=$t;var qt=336,rr=({options:t,defaultSelectedOption:o,onSelect:r,onClick:e,onInputChange:s,error:i,helperText:a,label:n,placeholder:w,value:l,size:p="md",optionDescriptionLines:f=1,noResultsLabel:x,noResultsIcon:k,noResultsDescription:m,noResultsDescriptionLines:z,noResultsAsColumn:h,noResultsButtonOnClick:u,noResultsButtonLabel:A,className:V,disabled:b})=>{let[d,y]=useState(o??null),L=useRef(null),g=useRef(null),[nt,st]=useState(),[ct,T]=useState([]),[lt,H]=useState("bottom"),[G,K]=useState(),U=qt,N=useCallback(v=>{L.current.style.display="none",g.current.value=v.label,y(v),r?.(v);},[r]),C=useCallback(()=>{if(!g?.current)return;let v=g.current.getBoundingClientRect();st(v);let O=G?G.height:U,M=window.innerHeight-v.bottom>O,Q=v.top>O;H(M?"bottom":Q?"top":"bottom");},[G?.height]),$=useCallback(()=>{let v=t.filter(O=>O.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(T(v),L?.current){let O=L.current.getBoundingClientRect();K(O);}},[t]);return useEffect(()=>{T(t);},[t]),useEffect(()=>{if(!l){y(null),g.current&&(g.current.value="");return}(!g.current?.value||d?.value!==l.value)&&(y(l),g.current.value=l.label);},[l]),a$5(L,()=>{L.current.style.display="none",d&&g.current&&(g.current.value=d.label);}),useEffect(()=>{if(g?.current)return C(),g.current.addEventListener("mousedown",C),g.current.addEventListener("input",$),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{g.current?.removeEventListener("mousedown",C),g.current?.removeEventListener("input",$),window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C);}},[C,$]),jsxs("div",{className:a$2("relative",V),children:[jsx(a$4,{ref:g,autoComplete:"off",list:"",selectMode:!0,onChange:v=>{v.target.value||(y(null),r?.(null)),s?.(v);},onClean:()=>{y(null),T(t),r?.(null);},onClick:v=>{L.current.style.display="flex",e?.(v);},onBlur:()=>{d&&g.current&&(g.current.value=d.label);},label:n,helperText:a,placeholder:w,size:p,error:i,disabled:b}),jsx(Ct,{handleSelect:N,noResultsLabel:x,NoResultsIcon:k,optionDescriptionLines:f,noResultsAsColumn:h,noResultsButtonLabel:A,noResultsButtonOnClick:u,noResultsDescription:m,noResultsDescriptionLines:z,filteredOptions:ct,inputRect:nt,inputRef:g,popoverPosition:lt,optionsListRef:L,selectedOption:d,options:t,setFilteredOptions:T})]})};var Kt=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,disabled:i=!1,className:a,...n})=>jsxs("div",{className:"flex w-full flex-col",...n,children:[jsx("p",{className:a$2("break-all",!!e&&"font-medium"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:o}),e&&jsx("p",{className:a$2("text-sm",i?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:e})]}),Y=Kt;var mr=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,startIcon:i,badgeContent:a,hasDivider:n=!1,disabled:w=!1,onSelect:l,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:w,onClick:l,hasDivider:n,className:a$2(!w&&"cursor-pointer",p),...f,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:w}),jsxs("div",{className:"flex gap-2",children:[a&&jsx(a$3,{content:a,size:"lg",variant:"alert",className:a$2("self-center",w&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var St=({children:t,title:o,titleLines:r=1,description:e="",descriptionLines:s,startIcon:i,hasDivider:a=!1,disabled:n=!1,checked:w,onCheckedChange:l,className:p,...f})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:a,...f,className:a$2("pr-6",p),children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:n}),jsx(c$2,{size:"sm",checked:w,onCheckedChange:l,className:"self-center",disabled:n})]});var E=336,Ft=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:E,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),I=()=>{let t=useContext(Ft);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Dt=({children:t})=>{let o=useRef(null),r=useRef(null),e=useRef(null),s=useId(),[i,a]=useState(),[n,w]=useState(!0),[l,p]=useState([]),[f,x]=useState(-1),[k,m]=useState("bottom"),[z,h]=useState(),[u,A]=useState(E);return jsx(Ft.Provider,{value:{optionsListRef:o,inputRef:r,scrollAreaRef:e,autocompleteId:s,inputRect:i,showChips:n,filteredOptions:l,currentFocus:f,popoverPosition:k,setFilteredOptions:p,setCurrentFocus:x,setShowChips:w,setPopoverPosition:m,setInputRect:a,optionsListHeight:u,optionsListRect:z,setOptionsListRect:h,setOptionsListHeight:A},children:t})};var ce=({option:t,onMountWidth:o,size:r})=>{let e=useRef(null);return useEffect(()=>{e.current&&o?.(e.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:e,className:"flex-shrink-0",size:r==="md"?"xs":"sm",hasCloseIcon:!1,children:t.label})},Tt=ce;var ge=150,we=bt.memo(({selectedOptions:t,error:o,onCleanSelectedOptions:r,disabled:e,size:s})=>{let{autocompleteId:i,inputRect:a,inputRef:n,optionsListRef:w}=I(),l=bt.useRef(null),[p,f]=bt.useState(new Map),x=useMemo(()=>{if(!a?.width)return [];let m=0,z=a.width-ge,h=0;for(let u=0;u<t.length&&(h+=p.get(u)??0,!(h>z));u++)m++;return t.slice(0,m)},[a?.width,t,p]),k=useCallback(()=>{e||(n?.current?.focus(),w.current.style.display="flex");},[e]);return jsxs("div",{onClick:k,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",e&&"cursor-not-allowed"),style:{maxWidth:a?.width?a?.width:void 0,height:a?.height?a?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:l,children:x.map((m,z)=>jsx(Tt,{option:m,onMountWidth:h=>f(u=>new Map(u).set(z,h)),size:s},`chip-input-${i}-${m.value}`))}),t.length>x.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!o&&jsx(a$3,{content:String(t.length),size:s}),o&&t.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:m=>{m.stopPropagation(),r();}})]})}),Ht=we;var be=bt.memo(({option:t,index:o,onPressOption:r,isSelected:e,optionDescriptionLines:s})=>{let{currentFocus:i,inputRef:a}=I();return jsx(St,{title:t.label,checked:e,disabled:t.disabled,className:i===o?"bg-primary-200":void 0,onMouseDown:n=>{t.disabled||(a?.current?.value&&n.preventDefault(),r?.(t,n));},description:t.description,descriptionLines:s})}),ht=be;var xe=bt.memo(({selectedOptions:t,handleSelect:o,NoResultsIcon:r,noResultsLabel:e,noResultsDescription:s,noResultsDescriptionLines:i,noResultsAsColumn:a$2,noResultsButtonOnClick:n,optionDescriptionLines:w,noResultsButtonLabel:l})=>{let{popoverPosition:p,scrollAreaRef:f,optionsListRef:x,filteredOptions:k,inputRect:m,autocompleteId:z,inputRef:h,optionsListHeight:u}=I(),A=useCallback(b=>t.some(d=>d.value===b.value),[t]),V=useMemo(()=>t.filter(b=>b.label.toLowerCase().includes(h?.current?.value.toLowerCase()??"")),[t,h?.current?.value]);return jsx(Lt.Root,{asChild:!0,children:jsx("div",{ref:x,className:"pointer-events-auto fixed z-50 hidden w-full",style:m?{width:`${m.width}px`,left:m.left,top:p==="bottom"?`${m.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-m.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex w-full flex-col rounded-lg bg-neutral-50",style:{maxHeight:u+"px"},ref:f,children:[k.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(at,{title:e,description:s,Icon:r,iconAsColumn:a$2,descriptionLines:i}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:b=>{x.current.style.display="none",h.current.value="",n();},children:l})]})]}),V.map((b,d)=>jsx(ht,{option:b,index:d,onPressOption:y=>o(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${z}-${b.key??b.value}`)),k.map((b,d)=>!t.some(y=>y.value===b.value)&&jsx(ht,{option:b,index:d,onPressOption:y=>o(y),isSelected:A(b),optionDescriptionLines:w},`autocomplete-option-${z}-${b.key??b.value}`))]})})})}),Xt=xe;var Re=bt.memo(({selectedOptions:t,onSelect:o,error:r,helperText:e,label:s,placeholder:i,options:a,onInputChange:n,size:w,disabled:l})=>{let{setCurrentFocus:p,setFilteredOptions:f,optionsListRef:x,inputRef:k}=I();return jsx(a$4,{ref:k,autoComplete:"off",list:"",disabled:l,selectMode:!0,onChange:m=>{p(-1),n?.(m.target.value);},onClean:()=>{p(-1),f(a),o?.(null,t);},onClick:()=>{l||(x.current.style.display="flex");},error:r,helperText:e,label:s,placeholder:i,fixedTopLabel:t.length>0,size:w})}),Bt=Re;var Yt=({options:t,defaultSelectedOptions:o,onSelect:r,error:e,helperText:s,label:i,placeholder:a,noResultsLabel:n,noResultsIcon:w,noResultsDescription:l,noResultsDescriptionLines:p,noResultsAsColumn:f,noResultsButtonOnClick:x,noResultsButtonLabel:k,className:m,onInputChange:z,value:h,loading:u,size:A="md",optionDescriptionLines:V=1,disabled:b})=>{let{inputRef:d,optionsListRef:y,setFilteredOptions:L,setShowChips:g,setInputRect:nt,setPopoverPosition:st,setCurrentFocus:ct,showChips:T,setOptionsListRect:lt,optionsListRect:H,setOptionsListHeight:G}=I(),K=useRef(!1),[U,N]=useState(o??[]),C=useCallback(R=>{N(P=>{let S,_=P.findIndex(Vt=>Vt.value===R.value);return _===-1?(S=P.concat(R),r?.(R,S),S):(S=P.toSpliced(_,1),r?.(R,S),S)});},[r]),$=useCallback(()=>{N([]),L(t),r?.(null,[]);},[]),v=useCallback(()=>{g(!1);},[]),O=useCallback(()=>{g(!0);},[]),M=useCallback(()=>{if(!d?.current)return;let R=d.current.getBoundingClientRect();nt(R);let P=H?H.height>E?E:H.height:E,S=window.innerHeight-R.bottom>P,_=R.top>P;st(S?"bottom":_?"top":"bottom"),G(_?E:window.innerHeight-R.bottom>E?E:window.innerHeight-R.bottom);},[H?.height]),Q=useCallback(()=>{let R=t.filter(P=>P.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(L(R),y?.current){let P=y.current.getBoundingClientRect();lt(P);}},[t,y?.current]);return useEffect(()=>{L(t);},[t]),a$5(y,()=>{y.current.style.display="none",ct(-1);}),useEffect(()=>{if(d?.current)return M(),d.current.addEventListener("mousedown",M),d.current.addEventListener("input",Q),d.current.addEventListener("focusin",v),d.current.addEventListener("focusout",O),window.addEventListener("scroll",M,!0),window.addEventListener("resize",M),()=>{d.current?.removeEventListener("mousedown",M),d.current?.removeEventListener("input",M),d.current?.removeEventListener("focusout",O),d.current?.removeEventListener("focusin",v),window.removeEventListener("scroll",M,!0),window.removeEventListener("resize",M);}},[M,O,v,Q]),useEffect(()=>{h&&(N(h),g(!0));},[h]),useEffect(()=>{u||o&&o.length&&!K.current&&(N(o),K.current=!0,g(!0));},[o,u]),jsxs("div",{className:a$2("relative",m),children:[jsx(Bt,{selectedOptions:U,onSelect:r,error:e,helperText:s,label:i,placeholder:a,handleSelect:C,options:t,onInputChange:z,size:A,disabled:b}),T&&jsx(Ht,{selectedOptions:U,disabled:b,error:e,onCleanSelectedOptions:$,size:A}),jsx(Xt,{handleSelect:C,selectedOptions:U,noResultsLabel:n,NoResultsIcon:w,optionDescriptionLines:V,noResultsAsColumn:f,noResultsButtonLabel:k,noResultsButtonOnClick:x,noResultsDescription:l,noResultsDescriptionLines:p})]})};var Po=t=>jsx(Dt,{children:jsx(Yt,{...t})});var Oe=({children:t,hasDescription:o=!1,disabled:r=!1,hasDivider:e=!1,className:s,onClick:i,...a})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("line-height-[120%] flex flex-row gap-4 pl-4 pr-3",o?"py-3":"py-[0.875rem]",r?"text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",s),onClick:n=>{r||i?.(n);},...a,children:t}),e&&jsx(a$1,{})]}),W=Oe;var Mt=({children:t,title:o,titleLines:r,description:e="",descriptionLines:s,startIcon:i,hasDivider:a=!1,disabled:n=!1,className:w,...l})=>jsxs(W,{hasDescription:!!e,disabled:n,hasDivider:a,className:w,...l,children:[i&&bt.cloneElement(i,{className:a$2(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(Y,{title:o,titleLines:r,description:e,descriptionLines:s,disabled:n})]});export{rr as a,Mt as b,mr as c,St as d,Po as e};
|
package/dist/drawer-sticky.d.mts
CHANGED
|
@@ -34,7 +34,7 @@ declare const DrawerStickyHeader: React.ForwardRefExoticComponent<{
|
|
|
34
34
|
title: string;
|
|
35
35
|
description?: string;
|
|
36
36
|
buttons?: DrawerStickyHeaderButtons;
|
|
37
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
37
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "description" | "title"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
declare const DrawerStickyFooter: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
declare const DrawerStickyBody: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
40
|
onScrollEnd?: () => void;
|
package/dist/drawer-sticky.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare const DrawerStickyHeader: React.ForwardRefExoticComponent<{
|
|
|
34
34
|
title: string;
|
|
35
35
|
description?: string;
|
|
36
36
|
buttons?: DrawerStickyHeaderButtons;
|
|
37
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "
|
|
37
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "description" | "title"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
declare const DrawerStickyFooter: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
declare const DrawerStickyBody: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
40
|
onScrollEnd?: () => void;
|