sodtrack-web-ui 0.34.9 → 0.35.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.d.mts +4 -1
- package/dist/checkbox.d.ts +4 -1
- package/dist/checkbox.js +4 -3
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-3KJAONR7.mjs +17 -0
- package/dist/chunk-4L4MN7MH.mjs +11 -0
- package/dist/chunk-WCTI52GU.mjs +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +122 -119
- package/dist/index.mjs +3 -3
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.mjs +3 -3
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.js +1 -1
- package/dist/list-item-checkbox.mjs +3 -3
- package/dist/list-item.css +1 -1
- package/dist/list-item.mjs +3 -3
- package/dist/tab.d.mts +73 -5
- package/dist/tab.d.ts +73 -5
- package/dist/tab.js +76 -24
- package/dist/tab.mjs +4 -1
- package/package.json +1 -1
- package/dist/chunk-52OU2FOS.mjs +0 -17
- package/dist/chunk-EKD2RWER.mjs +0 -10
- package/dist/chunk-UNOWNEEU.mjs +0 -8
package/dist/checkbox.d.mts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
3
|
|
|
4
|
+
declare const CheckboxSizes: readonly ["sm", "md"];
|
|
5
|
+
type CheckboxSize = (typeof CheckboxSizes)[number];
|
|
4
6
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
5
7
|
id?: string;
|
|
6
8
|
label?: string;
|
|
9
|
+
size?: CheckboxSize;
|
|
7
10
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
11
|
|
|
9
|
-
export { Checkbox };
|
|
12
|
+
export { Checkbox, type CheckboxSize, CheckboxSizes };
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
3
|
|
|
4
|
+
declare const CheckboxSizes: readonly ["sm", "md"];
|
|
5
|
+
type CheckboxSize = (typeof CheckboxSizes)[number];
|
|
4
6
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
5
7
|
id?: string;
|
|
6
8
|
label?: string;
|
|
9
|
+
size?: CheckboxSize;
|
|
7
10
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
11
|
|
|
9
|
-
export { Checkbox };
|
|
12
|
+
export { Checkbox, type CheckboxSize, CheckboxSizes };
|
package/dist/checkbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var he = require('react');
|
|
4
|
-
var
|
|
4
|
+
var O = require('@radix-ui/react-checkbox');
|
|
5
5
|
var reactLabel = require('@radix-ui/react-label');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
@@ -24,9 +24,9 @@ function _interopNamespace(e) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
var he__namespace = /*#__PURE__*/_interopNamespace(he);
|
|
27
|
-
var
|
|
27
|
+
var O__namespace = /*#__PURE__*/_interopNamespace(O);
|
|
28
28
|
|
|
29
|
-
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 d=e.length;for(a=0;a<d;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 ue(){for(var e,a,t=0,o="",d=arguments.length;t<d;t++)(e=arguments[t])&&(a=oe(e))&&(o&&(o+=" "),o+=a);return o}var J="-",Se=e=>{let a=ke(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:s=>{let l=s.split(J);return l[0]===""&&l.length!==1&&l.shift(),re(l,a)||we(s)},getConflictingClassGroupIds:(s,l)=>{let c=t[s]||[];return l&&o[s]?[...c,...o[s]]:c}}},re=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),d=o?re(e.slice(1),o):void 0;if(d)return d;if(a.validators.length===0)return;let u=e.join(J);return a.validators.find(({validator:s})=>s(u))?.classGroupId},le=/^\[(.+)\]$/,we=e=>{if(le.test(e)){let a=le.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},ke=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),t).forEach(([u,s])=>{Z(s,o,u,a);}),o},Z=(e,a,t,o)=>{e.forEach(d=>{if(typeof d=="string"){let u=d===""?a:de(a,d);u.classGroupId=t;return}if(typeof d=="function"){if(Pe(d)){Z(d(o),a,t,o);return}a.validators.push({validator:d,classGroupId:t});return}Object.entries(d).forEach(([u,s])=>{Z(s,de(a,u),t,o);});});},de=(e,a)=>{let t=e;return a.split(J).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},Pe=e=>e.isThemeGetter,be=(e,a)=>a?e.map(([t,o])=>{let d=o.map(u=>typeof u=="string"?a+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([s,l])=>[a+s,l])):u);return [t,d]}):e,Ae=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,d=(u,s)=>{t.set(u,s),a++,a>e&&(a=0,o=t,t=new Map);};return {get(u){let s=t.get(u);if(s!==void 0)return s;if((s=o.get(u))!==void 0)return d(u,s),s},set(u,s){t.has(u)?t.set(u,s):d(u,s);}}},se="!",Be=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,d=a[0],u=a.length,s=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&&(o||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(se),h=S?g.substring(1):g,L=C&&C>m?C-m:void 0;return {modifiers:c,hasImportantModifier:S,baseClassName:h,maybePostfixModifierPosition:L}};return t?l=>t({className:l,parseClassName:s}):s},Me=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},ye=e=>({cache:Ae(e.cacheSize),parseClassName:Be(e),...Se(e)}),Fe=/\s+/,De=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:d}=a,u=[],s=e.trim().split(Fe),l="";for(let c=s.length-1;c>=0;c-=1){let p=s[c],{modifiers:m,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:S}=t(p),h=!!S,L=o(h?g.substring(0,S):g);if(!L){if(!h){l=p+(l.length>0?" "+l:l);continue}if(L=o(g),!L){l=p+(l.length>0?" "+l:l);continue}h=!1;}let n=Me(m).join(":"),I=C?n+se: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 Re(){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 Te(e,...a){let t,o,d,u=s;function s(c){let p=a.reduce((m,C)=>C(m),e());return t=ye(p),o=t.cache.get,d=t.cache.set,u=l,l(c)}function l(c){let p=o(c);if(p)return p;let m=De(c,t);return d(c,m),m}return function(){return u(Re.apply(null,arguments))}}var f=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,ve=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oe=/\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$/,He=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ge=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>B(e)||qe.has(e)||ve.test(e),P=e=>M(e,"length",Je),B=e=>!!e&&!Number.isNaN(Number(e)),K=e=>M(e,"number",B),D=e=>!!e&&Number.isInteger(Number(e)),Ve=e=>e.endsWith("%")&&B(e.slice(0,-1)),r=e=>ie.test(e),b=e=>Ue.test(e),We=new Set(["length","size","percentage"]),Ee=e=>M(e,We,ce),Xe=e=>M(e,"position",ce),Ne=new Set(["image","url"]),Ke=e=>M(e,Ne,je),Ze=e=>M(e,"",Qe),R=()=>!0,M=(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},Je=e=>Oe.test(e)&&!He.test(e),ce=()=>!1,Qe=e=>Ge.test(e),je=e=>ze.test(e);var Ye=()=>{let e=f("colors"),a=f("spacing"),t=f("blur"),o=f("brightness"),d=f("borderColor"),u=f("borderRadius"),s=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"),j=f("skew"),Y=f("space"),_=f("translate"),W=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",r,a],i=()=>[r,a],$=()=>["",k,P],H=()=>["auto",B,r],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["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"],N=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",r],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[B,r];return {cacheSize:500,separator:":",theme:{colors:[R],spacing:[k,P],blur:["none","",b,r],brightness:w(),borderColor:[e],borderRadius:["none","","full",b,r],borderSpacing:i(),borderWidth:$(),contrast:w(),grayscale:F(),hueRotate:w(),invert:F(),gap:i(),gradientColorStops:[e],gradientColorStopPositions:[Ve,P],inset:X(),margin:X(),opacity:w(),padding:i(),saturate:w(),scale:w(),sepia:F(),skew:w(),space:i(),translate:i()},classGroups:{aspect:[{aspect:["auto","square","video",r]}],container:["container"],columns:[{columns:[b]}],"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(),r]}],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",D,r]}],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",r]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",D,r]}],"grid-cols":[{"grid-cols":[R]}],"col-start-end":[{col:["auto",{span:["full",D,r]},r]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[R]}],"row-start-end":[{row:["auto",{span:[D,r]},r]}],"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",r]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",r]}],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":[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",r,a]}],"min-w":[{"min-w":[r,a,"min","max","fit"]}],"max-w":[{"max-w":[r,a,"none","full","min","max","fit","prose",{screen:[b]},b]}],h:[{h:[r,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[r,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[r,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[r,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:[R]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",r]}],"line-clamp":[{"line-clamp":["none",B,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,r]}],"list-image":[{"list-image":["none",r]}],"list-style-type":[{list:["none","disc","decimal",r]}],"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,r]}],"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",r]}],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",r]}],"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(),Xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ke]}],"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,r]}],"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,Ze]}],"shadow-color":[{shadow:[R]}],opacity:[{opacity:[I]}],"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:[c]}],"drop-shadow":[{"drop-shadow":["","none",b,r]}],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":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"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":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",r]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",r]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",r]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[D,r]}],"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",r]}],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",r]}],"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",r]}],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 ne=Te(Ye);function Q(...e){return ne(ue(e))}var pe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),z=(...e)=>e.filter((a,t,o)=>!!a&&o.indexOf(a)===t).join(" ");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 Ie=he.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:d="",children:u,iconNode:s,...l},c)=>he.createElement("svg",{ref:c,...me,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:z("lucide",d),...l},[...s.map(([p,m])=>he.createElement(p,m)),...Array.isArray(u)?u:[u]]));var V=(e,a)=>{let t=he.forwardRef(({className:o,...d},u)=>he.createElement(Ie,{ref:u,iconNode:a,className:z(`lucide-${pe(e)}`,o),...d}));return t.displayName=`${e}`,t};var T=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var v=V("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var xe=T,Ce=v;var ta=he__namespace.forwardRef(({className:e,label:a,...t},o)=>jsxRuntime.jsxs("div",{className:Q("flex items-center gap-3",e),children:[jsxRuntime.jsx("div",{className:"flex h-5 w-5 rounded-full transition-all has-[:hover]:has-[:enabled]:[&:not(:active)]:bg-transparent-primary-9 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-6 has-[:hover]:[&:not(:disabled)]:[&:not(:active)]:ring-transparent-primary-9",children:jsxRuntime.jsx(U__namespace.Root,{ref:o,className:"h-5 w-5 flex-shrink-0 rounded-sm border-2 border-neutral-900 active:enabled:border-primary-700 disabled:cursor-not-allowed disabled:border-neutral-500 data-[state=checked]:enabled:border-primary-500 data-[state=indeterminate]:enabled:border-primary-500 data-[state=checked]:enabled:bg-primary-500 data-[state=indeterminate]:enabled:bg-primary-500 hover:data-[state=checked]:enabled:border-primary-600 hover:data-[state=indeterminate]:enabled:border-primary-600 hover:data-[state=unchecked]:enabled:border-primary-600 hover:data-[state=checked]:enabled:bg-primary-600 hover:data-[state=indeterminate]:enabled:bg-primary-600 active:enabled:data-[state=checked]:border-primary-700 active:enabled:data-[state=indeterminate]:border-primary-700 active:enabled:data-[state=checked]:bg-primary-700 active:enabled:data-[state=indeterminate]:bg-primary-700 disabled:data-[state=checked]:bg-neutral-500 disabled:data-[state=indeterminate]:bg-neutral-500",...t,children:jsxRuntime.jsxs(U__namespace.Indicator,{className:"flex items-center justify-center",children:[t.checked!=="indeterminate"&&jsxRuntime.jsx(xe,{className:"h-4 w-4 text-neutral-50"}),t.checked==="indeterminate"&&jsxRuntime.jsx(Ce,{className:"h-4 w-4 text-neutral-50"})]})})}),a&&jsxRuntime.jsx(reactLabel.Label,{htmlFor:t.id,className:Q("text-base font-normal leading-[130%] text-neutral-900",t.disabled&&"text-neutral-500"),children:a})]}));ta.displayName=U__namespace.Root.displayName;/*! Bundled license information:
|
|
29
|
+
function oe(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(t=0;t<d;t++)e[t]&&(a=oe(e[t]))&&(o&&(o+=" "),o+=a);}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function ue(){for(var e,t,a=0,o="",d=arguments.length;a<d;a++)(e=arguments[a])&&(t=oe(e))&&(o&&(o+=" "),o+=t);return o}var Q="-",Se=e=>{let t=ke(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:s=>{let l=s.split(Q);return l[0]===""&&l.length!==1&&l.shift(),re(l,t)||we(s)},getConflictingClassGroupIds:(s,l)=>{let c=a[s]||[];return l&&o[s]?[...c,...o[s]]:c}}},re=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),d=o?re(e.slice(1),o):void 0;if(d)return d;if(t.validators.length===0)return;let u=e.join(Q);return t.validators.find(({validator:s})=>s(u))?.classGroupId},le=/^\[(.+)\]$/,we=e=>{if(le.test(e)){let t=le.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return "arbitrary.."+a}},ke=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),a).forEach(([u,s])=>{J(s,o,u,t);}),o},J=(e,t,a,o)=>{e.forEach(d=>{if(typeof d=="string"){let u=d===""?t:de(t,d);u.classGroupId=a;return}if(typeof d=="function"){if(Pe(d)){J(d(o),t,a,o);return}t.validators.push({validator:d,classGroupId:a});return}Object.entries(d).forEach(([u,s])=>{J(s,de(t,u),a,o);});});},de=(e,t)=>{let a=e;return t.split(Q).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o);}),a},Pe=e=>e.isThemeGetter,be=(e,t)=>t?e.map(([a,o])=>{let d=o.map(u=>typeof u=="string"?t+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([s,l])=>[t+s,l])):u);return [a,d]}):e,Ae=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,d=(u,s)=>{a.set(u,s),t++,t>e&&(t=0,o=a,a=new Map);};return {get(u){let s=a.get(u);if(s!==void 0)return s;if((s=o.get(u))!==void 0)return d(u,s),s},set(u,s){a.has(u)?a.set(u,s):d(u,s);}}},se="!",Be=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,d=t[0],u=t.length,s=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&&(o||l.slice(n,n+u)===t)){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(se),h=S?g.substring(1):g,L=C&&C>m?C-m:void 0;return {modifiers:c,hasImportantModifier:S,baseClassName:h,maybePostfixModifierPosition:L}};return a?l=>a({className:l,parseClassName:s}):s},Me=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o);}),t.push(...a.sort()),t},Fe=e=>({cache:Ae(e.cacheSize),parseClassName:Be(e),...Se(e)}),ye=/\s+/,De=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:d}=t,u=[],s=e.trim().split(ye),l="";for(let c=s.length-1;c>=0;c-=1){let p=s[c],{modifiers:m,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:S}=a(p),h=!!S,L=o(h?g.substring(0,S):g);if(!L){if(!h){l=p+(l.length>0?" "+l:l);continue}if(L=o(g),!L){l=p+(l.length>0?" "+l:l);continue}h=!1;}let n=Me(m).join(":"),I=C?n+se:n,x=I+L;if(u.includes(x))continue;u.push(x);let F=d(L,h);for(let A=0;A<F.length;++A){let H=F[A];u.push(I+H);}l=p+(l.length>0?" "+l:l);}return l};function Re(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=fe(t))&&(o&&(o+=" "),o+=a);return o}var fe=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=fe(e[o]))&&(a&&(a+=" "),a+=t);return a};function Te(e,...t){let a,o,d,u=s;function s(c){let p=t.reduce((m,C)=>C(m),e());return a=Fe(p),o=a.cache.get,d=a.cache.set,u=l,l(c)}function l(c){let p=o(c);if(p)return p;let m=De(c,a);return d(c,m),m}return function(){return u(Re.apply(null,arguments))}}var f=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,ve=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oe=/\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$/,He=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ge=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>B(e)||qe.has(e)||ve.test(e),P=e=>M(e,"length",Je),B=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>M(e,"number",B),D=e=>!!e&&Number.isInteger(Number(e)),Ve=e=>e.endsWith("%")&&B(e.slice(0,-1)),r=e=>ie.test(e),b=e=>Ue.test(e),We=new Set(["length","size","percentage"]),Ee=e=>M(e,We,ce),Xe=e=>M(e,"position",ce),Ne=new Set(["image","url"]),Ke=e=>M(e,Ne,je),Ze=e=>M(e,"",Qe),R=()=>!0,M=(e,t,a)=>{let o=ie.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Je=e=>Oe.test(e)&&!He.test(e),ce=()=>!1,Qe=e=>Ge.test(e),je=e=>ze.test(e);var Ye=()=>{let e=f("colors"),t=f("spacing"),a=f("blur"),o=f("brightness"),d=f("borderColor"),u=f("borderRadius"),s=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"),F=f("saturate"),A=f("scale"),H=f("sepia"),j=f("skew"),Y=f("space"),_=f("translate"),E=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",r,t],i=()=>[r,t],$=()=>["",k,P],G=()=>["auto",B,r],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["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"],K=()=>["start","end","center","between","around","evenly","stretch"],y=()=>["","0",r],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[B,r];return {cacheSize:500,separator:":",theme:{colors:[R],spacing:[k,P],blur:["none","",b,r],brightness:w(),borderColor:[e],borderRadius:["none","","full",b,r],borderSpacing:i(),borderWidth:$(),contrast:w(),grayscale:y(),hueRotate:w(),invert:y(),gap:i(),gradientColorStops:[e],gradientColorStopPositions:[Ve,P],inset:N(),margin:N(),opacity:w(),padding:i(),saturate:w(),scale:w(),sepia:y(),skew:w(),space:i(),translate:i()},classGroups:{aspect:[{aspect:["auto","square","video",r]}],container:["container"],columns:[{columns:[b]}],"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(),r]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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",D,r]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",r]}],grow:[{grow:y()}],shrink:[{shrink:y()}],order:[{order:["first","last","none",D,r]}],"grid-cols":[{"grid-cols":[R]}],"col-start-end":[{col:["auto",{span:["full",D,r]},r]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[R]}],"row-start-end":[{row:["auto",{span:[D,r]},r]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",r]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",r]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"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":[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",r,t]}],"min-w":[{"min-w":[r,t,"min","max","fit"]}],"max-w":[{"max-w":[r,t,"none","full","min","max","fit","prose",{screen:[b]},b]}],h:[{h:[r,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[r,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[r,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[r,t,"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",Z]}],"font-family":[{font:[R]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",r]}],"line-clamp":[{"line-clamp":["none",B,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,r]}],"list-image":[{"list-image":["none",r]}],"list-style-type":[{list:["none","disc","decimal",r]}],"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:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,P]}],"underline-offset":[{"underline-offset":["auto",k,r]}],"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",r]}],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",r]}],"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(),Xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ke]}],"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:[...z(),"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:z()}],"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:["",...z()]}],"outline-offset":[{"outline-offset":[k,r]}],"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,Ze]}],"shadow-color":[{shadow:[R]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",b,r]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[F]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"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":[F]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",r]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",r]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",r]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[D,r]}],"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",r]}],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",r]}],"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",r]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,P,Z]}],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 ne=Te(Ye);function T(...e){return ne(ue(e))}var pe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V=(...e)=>e.filter((t,a,o)=>!!t&&o.indexOf(t)===a).join(" ");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 Ie=he.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:d="",children:u,iconNode:s,...l},c)=>he.createElement("svg",{ref:c,...me,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:V("lucide",d),...l},[...s.map(([p,m])=>he.createElement(p,m)),...Array.isArray(u)?u:[u]]));var W=(e,t)=>{let a=he.forwardRef(({className:o,...d},u)=>he.createElement(Ie,{ref:u,iconNode:t,className:V(`lucide-${pe(e)}`,o),...d}));return a.displayName=`${e}`,a};var v=W("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var q=W("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var xe=v,Ce=q;var Xa=["sm","md"],ta=he__namespace.forwardRef(({className:e,label:t,size:a="md",...o},d)=>jsxRuntime.jsxs("div",{className:T("flex items-center",a==="md"&&"gap-3",a==="sm"&&"gap-2",e),children:[jsxRuntime.jsx("div",{className:T("flex flex-shrink-0 rounded-full transition-all has-[:hover]:has-[:enabled]:[&:not(:active)]:bg-transparent-primary-9 has-[:hover]:[&:not(:disabled)]:[&:not(:active)]:ring-transparent-primary-9",a==="sm"&&"h-4 w-4 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-4",a=="md"&&"h-5 w-5 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-6"),children:jsxRuntime.jsx(O__namespace.Root,{ref:d,className:T("flex-shrink-0 rounded-sm ring-2 ring-inset ring-neutral-900 active:enabled:ring-primary-700 disabled:cursor-not-allowed disabled:ring-neutral-500 data-[state=checked]:enabled:bg-primary-500 data-[state=indeterminate]:enabled:bg-primary-500 data-[state=checked]:enabled:ring-0 data-[state=indeterminate]:enabled:ring-0 hover:data-[state=checked]:enabled:bg-primary-600 hover:data-[state=indeterminate]:enabled:bg-primary-600 hover:data-[state=unchecked]:enabled:ring-primary-600 active:enabled:data-[state=checked]:bg-primary-700 active:enabled:data-[state=indeterminate]:bg-primary-700 disabled:data-[state=checked]:bg-neutral-500 disabled:data-[state=indeterminate]:bg-neutral-500",a==="sm"&&"h-4 w-4",a==="md"&&"h-5 w-5"),...o,children:jsxRuntime.jsxs(O__namespace.Indicator,{className:"flex items-center justify-center",children:[o.checked!=="indeterminate"&&jsxRuntime.jsx(xe,{size:a==="sm"?14:18,className:"text-neutral-50"}),o.checked==="indeterminate"&&jsxRuntime.jsx(Ce,{size:a==="sm"?14:18,className:"text-neutral-50"})]})})}),t&&jsxRuntime.jsx(reactLabel.Label,{htmlFor:o.id,className:T("font-normal leading-[130%] text-neutral-900",o.disabled&&"text-neutral-500",a==="md"&&"text-base",a==="sm"&&"text-sm"),children:t})]}));ta.displayName=O__namespace.Root.displayName;/*! Bundled license information:
|
|
30
30
|
|
|
31
31
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
32
32
|
(**
|
|
@@ -86,3 +86,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
88
|
exports.Checkbox = ta;
|
|
89
|
+
exports.CheckboxSizes = Xa;
|
package/dist/checkbox.mjs
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-HOKUAAAA.mjs';
|
|
2
|
+
import { a as a$7 } from './chunk-DUHAMQ4M.mjs';
|
|
3
|
+
import { a } from './chunk-XVWN2O5L.mjs';
|
|
4
|
+
import { a as a$6 } from './chunk-KTRSJBA4.mjs';
|
|
5
|
+
import { a as a$5 } from './chunk-ZY2CFYRT.mjs';
|
|
6
|
+
import { a as a$4 } from './chunk-UOTH67KT.mjs';
|
|
7
|
+
import { a as a$2 } from './chunk-EJLFOZOO.mjs';
|
|
8
|
+
import { b } from './chunk-WCTI52GU.mjs';
|
|
9
|
+
import { c, h } from './chunk-CYXKXVPJ.mjs';
|
|
10
|
+
import { a as a$3 } from './chunk-P5UTQFFP.mjs';
|
|
11
|
+
import mt, { createContext, useMemo, useCallback, useState, useRef, useEffect, useContext, useId } from 'react';
|
|
12
|
+
import * as Rt from '@radix-ui/react-portal';
|
|
13
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
var jt=({title:t,titleLines:a=1,description:r,descriptionLines:e=1,Icon:n,iconAsColumn:o=!0,className:s,...i})=>jsxs("div",{className:a$3("flex gap-2 py-4 pl-4 pr-6",o&&"flex-col items-center gap-1",!o&&!r&&"items-center"),...i,children:[n&&jsx(n,{className:a$3("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$3("flex flex-col gap-1",o&&"text-center"),children:[jsx("p",{className:a$3("leading-[130%] text-neutral-500",!!r&&"font-medium"),style:a?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:a}: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})]})]}),rt=jt;var Ut=mt.memo(({handleSelect:t,NoResultsIcon:a$4,noResultsLabel:r,noResultsDescription:e,noResultsDescriptionLines:n,noResultsAsColumn:o,noResultsButtonOnClick:s,optionDescriptionLines:i,noResultsButtonLabel:d,filteredOptions:l,inputRect:p,inputRef:h,popoverPosition:R,optionsListRef:g,selectedOption:y,options:L,setFilteredOptions:b})=>jsx(Rt.Root,{asChild:!0,children:jsx("div",{ref:g,className:"pointer-events-auto fixed z-50 hidden w-full",style:p?{width:`${p.width}px`,left:p.left,top:R==="bottom"?`${p.bottom}px`:void 0,bottom:R==="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(rt,{title:r,description:e,Icon:a$4,iconAsColumn:o,descriptionLines:n}),s&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(a$2,{variant:"ghost",className:"my-3 w-fit self-center",onClick:x=>{g.current.style.display="none",h.current.value="",b(L),s();},children:d})]})]}),l.map(x=>jsx(Ct,{title:x.label,disabled:x.disabled,description:x.description,descriptionLines:i,onClick:()=>t(x),className:a$3(y?.value===x.value&&"bg-primary-200")},x.key??x.value))]})})})),Lt=Ut;var $t=336,er=({options:t,defaultSelectedOption:a,onSelect:r,onClick:e,onInputChange:n,error:o,helperText:s,label:i,placeholder:d,value:l,size:p="lg",optionDescriptionLines:h=1,noResultsLabel:R,noResultsIcon:g,noResultsDescription:y,noResultsDescriptionLines:L,noResultsAsColumn:b,noResultsButtonOnClick:x,noResultsButtonLabel:F,className:u,disabled:m})=>{let[v,A]=useState(a??null),C=useRef(null),w=useRef(null),[at,it]=useState(),[nt,D]=useState([]),[st,j]=useState("bottom"),[T,V]=useState(),N=$t,$=useCallback(f=>{C.current.style.display="none",w.current.value=f.label,A(f),r?.(f);},[r]),z=useCallback(()=>{if(!w?.current)return;let f=w.current.getBoundingClientRect();it(f);let k=T?T.height:N,q=window.innerHeight-f.bottom>k,M=f.top>k;j(q?"bottom":M?"top":"bottom");},[T?.height]),E=useCallback(()=>{let f=t.filter(k=>k.label.toLowerCase().includes(w?.current?.value.toLowerCase()??""));if(D(f),C?.current){let k=C.current.getBoundingClientRect();V(k);}},[t]);return useEffect(()=>{D(t);},[t]),useEffect(()=>{if(!l){A(null),w.current&&(w.current.value="");return}(!w.current?.value||v?.value!==l.value)&&(A(l),w.current.value=l.label);},[l]),a$6(C,()=>{C.current.style.display="none",v&&w.current&&(w.current.value=v.label);}),useEffect(()=>{if(w?.current)return z(),w.current.addEventListener("mousedown",z),w.current.addEventListener("input",E),window.addEventListener("scroll",z,!0),window.addEventListener("resize",z),()=>{w.current?.removeEventListener("mousedown",z),w.current?.removeEventListener("input",E),window.removeEventListener("scroll",z,!0),window.removeEventListener("resize",z);}},[z,E]),jsxs("div",{className:a$3("relative",u),children:[jsx(a$5,{ref:w,autoComplete:"off",list:"",selectMode:!0,onChange:f=>{f.target.value||(A(null),r?.(null)),n?.(f);},onClean:()=>{A(null),D(t),r?.(null);},onClick:f=>{C.current.style.display="flex",e?.(f);},onBlur:()=>{v&&w.current&&(w.current.value=v.label);},label:i,helperText:s,placeholder:d,size:p,error:o,disabled:m}),jsx(Lt,{handleSelect:$,noResultsLabel:R,NoResultsIcon:g,optionDescriptionLines:h,noResultsAsColumn:b,noResultsButtonLabel:F,noResultsButtonOnClick:x,noResultsDescription:y,noResultsDescriptionLines:L,filteredOptions:nt,inputRect:at,inputRef:w,popoverPosition:st,optionsListRef:C,selectedOption:v,options:t,setFilteredOptions:D})]})};var Jt=({children:t,title:a,titleLines:r,description:e="",descriptionLines:n,disabled:o=!1,className:s,...i})=>jsxs("div",{className:"flex w-full flex-col",...i,children:[jsx("p",{className:a$3(!!e&&"font-medium"),style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:a}),e&&jsx("p",{className:a$3("text-sm",o?"text-neutral-400":"text-neutral-700"),style:n?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:n}:void 0,children:e})]}),X=Jt;var wr=({children:t,title:a,titleLines:r,description:e="",descriptionLines:n,startIcon:o,badgeContent:s,hasDivider:i=!1,disabled:d=!1,onSelect:l,className:p,...h$1})=>jsxs(Y,{hasDescription:!!e,disabled:d,onClick:l,hasDivider:i,className:a$3(!d&&"cursor-pointer",p),...h$1,children:[o&&mt.cloneElement(o,{className:a$3(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(X,{title:a,titleLines:r,description:e,descriptionLines:n,disabled:d}),jsxs("div",{className:"flex gap-2",children:[s&&jsx(a$4,{content:s,size:"lg",variant:"alert",className:a$3("self-center",d&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var It=({children:t,title:a,titleLines:r,description:e="",descriptionLines:n,startIcon:o,hasDivider:s=!1,disabled:i=!1,checked:d,onCheckedChange:l,className:p,...h})=>jsxs(Y,{hasDescription:!!e,disabled:i,hasDivider:s,...h,className:a$3("pr-6",p),children:[o&&mt.cloneElement(o,{className:a$3(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(X,{title:a,titleLines:r,description:e,descriptionLines:n,disabled:i}),jsx(b,{size:"sm",checked:d,onCheckedChange:l,className:"self-center",disabled:i})]});var Et=336,St=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},maxOptionsListHeight:Et,optionsListRect:void 0,setOptionsListRect:()=>{}}),P=()=>{let t=useContext(St);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Ft=({children:t})=>{let a=useRef(null),r=useRef(null),e=useRef(null),n=useId(),[o,s]=useState(),[i,d]=useState(!1),[l,p]=useState([]),[h,R]=useState(-1),[g,y]=useState("bottom"),[L,b]=useState();return jsx(St.Provider,{value:{optionsListRef:a,inputRef:r,scrollAreaRef:e,autocompleteId:n,inputRect:o,showChips:i,filteredOptions:l,currentFocus:h,popoverPosition:g,setFilteredOptions:p,setCurrentFocus:R,setShowChips:d,setPopoverPosition:y,setInputRect:s,maxOptionsListHeight:Et,optionsListRect:L,setOptionsListRect:b},children:t})};var se=({option:t,onMountWidth:a,size:r})=>{let e=useRef(null);return useEffect(()=>{e.current&&a?.(e.current.clientWidth);},[]),jsx(a$7,{ref:e,className:"flex-shrink-0",size:r==="md"?"xs":"md",hasCloseIcon:!1,children:t.label})},Dt=se;var pe=150,ge=mt.memo(({selectedOptions:t,error:a,onCleanSelectedOptions:r,size:e})=>{let{autocompleteId:n,inputRect:o,inputRef:s,optionsListRef:i}=P(),d=mt.useRef(null),[l,p]=mt.useState(new Map),h=useMemo(()=>{if(!o?.width)return [];let g=0,y=o.width-pe,L=0;for(let b=0;b<t.length&&(L+=l.get(b)??0,!(L>y));b++)g++;return t.slice(0,g)},[o?.width,t,l]),R=useCallback(()=>{s?.current?.focus(),i.current.style.display="flex";},[]);return jsxs("div",{onClick:R,className:"absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",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:h.map((g,y)=>jsx(Dt,{option:g,onMountWidth:L=>p(b=>new Map(b).set(y,L)),size:e},`chip-input-${n}-${g.value}`))}),t.length>h.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!a&&jsx(a$4,{content:String(t.length),size:e}),a&&t.length>0&&jsx(c,{className:"h-6 w-6 text-error-700",onClick:g=>{g.stopPropagation(),r();}})]})}),Tt=ge;var be=mt.memo(({option:t,index:a,onPressOption:r,isSelected:e,optionDescriptionLines:n})=>{let{currentFocus:o,inputRef:s}=P();return jsx(It,{title:t.label,checked:e,disabled:t.disabled,className:o===a?"bg-primary-200":void 0,onMouseDown:i=>{s?.current?.value&&i.preventDefault(),r?.(t,i);},description:t.description,descriptionLines:n})}),bt=be;var ye=mt.memo(({selectedOptions:t,handleSelect:a$3,NoResultsIcon:r,noResultsLabel:e,noResultsDescription:n,noResultsDescriptionLines:o,noResultsAsColumn:s,noResultsButtonOnClick:i,optionDescriptionLines:d,noResultsButtonLabel:l})=>{let{popoverPosition:p,scrollAreaRef:h,optionsListRef:R,filteredOptions:g,inputRect:y,autocompleteId:L,inputRef:b}=P(),x=useCallback(u=>t.some(m=>m.value===u.value),[t]),F=useMemo(()=>t.filter(u=>u.label.toLowerCase().includes(b?.current?.value.toLowerCase()??"")),[t,b?.current?.value]);return jsx(Rt.Root,{asChild:!0,children:jsx("div",{ref:R,className:"pointer-events-auto fixed z-50 hidden w-full",style:y?{width:`${y.width}px`,left:y.left,top:p==="bottom"?`${y.bottom}px`:void 0,bottom:p==="top"?`${window.innerHeight-y.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",ref:h,children:[g.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(rt,{title:e,description:n,Icon:r,iconAsColumn:s,descriptionLines:o}),i&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(a$2,{variant:"ghost",className:"my-3 w-fit self-center",onClick:u=>{R.current.style.display="none",b.current.value="",i();},children:l})]})]}),F.map((u,m)=>jsx(bt,{option:u,index:m,onPressOption:(v,A)=>a$3(v),isSelected:x(u),optionDescriptionLines:d},`autocomplete-option-${L}-${u.key??u.value}`)),g.map((u,m)=>!t.some(v=>v.value===u.value)&&jsx(bt,{option:u,index:m,onPressOption:(v,A)=>a$3(v),isSelected:x(u),optionDescriptionLines:d},`autocomplete-option-${L}-${u.key??u.value}`))]})})})}),Ht=ye;var Re=mt.memo(({selectedOptions:t,onSelect:a,error:r,helperText:e,label:n,placeholder:o,options:s,onInputChange:i,size:d})=>{let{setCurrentFocus:l,setFilteredOptions:p,optionsListRef:h,inputRef:R}=P();return jsx(a$5,{ref:R,autoComplete:"off",list:"",selectMode:!0,onChange:g=>{l(-1),i?.(g.target.value);},onClean:()=>{l(-1),p(s),a?.(null,t);},onClick:()=>{h.current.style.display="flex";},error:r,helperText:e,label:n,placeholder:o,fixedTopLabel:t.length>0,size:d})}),Bt=Re;var Xt=({options:t,defaultSelectedOptions:a,onSelect:r,error:e,helperText:n,label:o,placeholder:s,noResultsLabel:i,noResultsIcon:d,noResultsDescription:l,noResultsDescriptionLines:p,noResultsAsColumn:h,noResultsButtonOnClick:R,noResultsButtonLabel:g,className:y,onInputChange:L,value:b,loading:x,size:F="lg",optionDescriptionLines:u=1})=>{let{inputRef:m,optionsListRef:v,setFilteredOptions:A,setShowChips:C,setInputRect:w,setPopoverPosition:at,setCurrentFocus:it,showChips:nt,maxOptionsListHeight:D,setOptionsListRect:st,optionsListRect:j}=P(),T=useRef(!1),[V,N]=useState(a??[]),$=useCallback(M=>{N(O=>{let I,J=O.findIndex(Wt=>Wt.value===M.value);return J===-1?(I=O.concat(M),r?.(M,I),I):(I=O.toSpliced(J,1),r?.(M,I),I)});},[]),z=useCallback(()=>{N([]),A(t),r?.(null,[]);},[]),E=useCallback(()=>{C(!1);},[]),f=useCallback(()=>{C(!0);},[]),k=useCallback(()=>{if(!m?.current)return;let M=m.current.getBoundingClientRect();w(M);let O=j?j.height:D,I=window.innerHeight-M.bottom>O,J=M.top>O;at(I?"bottom":J?"top":"bottom");},[j?.height]),q=useCallback(()=>{let M=t.filter(O=>O.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(A(M),v?.current){let O=v.current.getBoundingClientRect();st(O);}},[t,v?.current]);return useEffect(()=>{A(t);},[t]),a$6(v,()=>{v.current.style.display="none",it(-1);}),useEffect(()=>{if(m?.current)return k(),m.current.addEventListener("mousedown",k),m.current.addEventListener("input",q),m.current.addEventListener("focusin",E),m.current.addEventListener("focusout",f),window.addEventListener("scroll",k,!0),window.addEventListener("resize",k),()=>{m.current?.removeEventListener("mousedown",k),m.current?.removeEventListener("input",k),m.current?.removeEventListener("focusout",f),m.current?.removeEventListener("focusin",E),window.removeEventListener("scroll",k,!0),window.removeEventListener("resize",k);}},[k,f,E,q]),useEffect(()=>{b&&(N(b),C(!0));},[b]),useEffect(()=>{x||a&&a.length&&!T.current&&(N(a),T.current=!0,C(!0));},[a,x]),jsxs("div",{className:a$3("relative",y),children:[jsx(Bt,{selectedOptions:V,onSelect:r,error:e,helperText:n,label:o,placeholder:s,handleSelect:$,options:t,onInputChange:L,size:F}),nt&&jsx(Tt,{selectedOptions:V,error:e,onCleanSelectedOptions:z,size:F}),jsx(Ht,{handleSelect:$,selectedOptions:V,noResultsLabel:i,NoResultsIcon:d,optionDescriptionLines:u,noResultsAsColumn:h,noResultsButtonLabel:g,noResultsButtonOnClick:R,noResultsDescription:l,noResultsDescriptionLines:p})]})};var Ao=t=>jsx(Ft,{children:jsx(Xt,{...t})});var ze=({children:t,hasDescription:a=!1,disabled:r=!1,hasDivider:e=!1,className:n,onClick:o,...s})=>jsxs(Fragment,{children:[jsx("div",{className:a$3("line-height-[120%] flex flex-row gap-4 pl-4 pr-3",a?"py-3":"py-[0.875rem]",r?"text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",n),onClick:i=>{r||o?.(i);},...s,children:t}),e&&jsx(a$1,{})]}),Y=ze;var Ct=({children:t,title:a,titleLines:r,description:e="",descriptionLines:n,startIcon:o,hasDivider:s=!1,disabled:i=!1,className:d,...l})=>jsxs(Y,{hasDescription:!!e,disabled:i,hasDivider:s,className:d,...l,children:[o&&mt.cloneElement(o,{className:a$3(e?"mt-[0.4rem]":"self-center","shrink-0"),size:18}),jsx(X,{title:a,titleLines:r,description:e,descriptionLines:n,disabled:i})]});
|
|
16
|
+
|
|
17
|
+
export { er as a, Ct as b, wr as c, It as d, Ao as e };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-UOTH67KT.mjs';
|
|
2
|
+
import { d } from './chunk-CYXKXVPJ.mjs';
|
|
3
|
+
import { a } from './chunk-P5UTQFFP.mjs';
|
|
4
|
+
import * as e from '@radix-ui/react-tabs';
|
|
5
|
+
import o from 'react';
|
|
6
|
+
import { cva } from 'cva';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var S=["ghost","fill","fillWithCloseButton"],k=["sm","md"],h=cva({base:"group relative px-4 leading-[130%] transition-all text-neutral-900 disabled:text-neutral-500",variants:{variant:{ghost:"[&:not(:disabled)]:hover:bg-primary-100 rounded font-semibold",fill:"border-1 !border-b-0 border-transparent [&:not(:disabled)]:aria-selected:elevation-10 [&:not(:disabled)]:hover:border-primary-300 !rounded-b-none aria-selected:font-semibold aria-selected:bg-neutral-50 rounded-lg [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500",fillWithCloseButton:"rounded-lg border-1 !border-b-0 [&:not(:disabled)]:aria-selected:elevation-10 border-transparent [&:not(:disabled)]:hover:aria-selected:border-transparent aria-selected:font-semibold [&:not(:disabled)]:hover:border-primary-300 bg-primary-100 [&:not(:disabled)]:hover:aria-selected:bg-neutral-50 [&:not(:disabled)]:hover:bg-primary-100 !rounded-b-none [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500 [&:not(:disabled)]:[&:not(:hover)]:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),x=cva({base:"mr-2 shrink-0 flex transition-all ease-linear [&:not(:disabled)]:group-aria-selected:text-neutral-900",variants:{size:{sm:"",md:""}}}),R=cva({base:"absolute bottom-0 h-0 w-full rounded transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-aria-selected:bg-primary-500 group-aria-selected:group-disabled:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),C=cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none"},size:{sm:"before:top-10",md:"before:top-12"}}}),p=o.createContext({}),G=o.forwardRef(({className:i,size:r="sm",variant:a$1="ghost",...s},n)=>jsx(p.Provider,{value:{size:r,variant:a$1},children:jsx(e.Root,{ref:n,...s,className:a(i,"relative")})})),P=o.forwardRef(({className:i,...r},a$1)=>{let{variant:s}=o.useContext(p);return jsx(e.List,{ref:a$1,...r,className:a(s!=="ghost"&&"mx-6 space-x-2",i)})});P.displayName=e.List.displayName;var N=o.forwardRef(({className:i,badgeNumber:r,disabled:a$2,variant:s,StartIcon:n,onClose:v,...c},T)=>{let{size:d$1,variant:y}=o.useContext(p),l=s??y;return jsx(e.Trigger,{ref:T,disabled:a$2,className:h({size:d$1,variant:l,className:i}),...c,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[n&&jsx(n,{className:x({size:d$1}),size:d$1==="sm"?12:14}),c.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",l==="ghost"&&"ml-1",l==="fill"&&"ml-3",l==="fillWithCloseButton"&&"ml-3"),children:[!a$2&&r&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(r)}),l==="fillWithCloseButton"&&jsx(d,{onClick:v,className:"transition-colors [&:not(:disabled)]:group-aria-selected:text-neutral-900",size:14})]})]}),jsx("div",{className:R({variant:l})})]})})});N.displayName=e.Trigger.displayName;var z=o.forwardRef(({className:i,...r},a)=>{let{variant:s,size:n}=o.useContext(p);return jsx(e.Content,{ref:a,className:C({variant:s,size:n,className:i}),...r})});z.displayName=e.Content.displayName;
|
|
10
|
+
|
|
11
|
+
export { S as a, k as b, G as c, P as d, N as e, z as f };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j, k as k$1 } from './chunk-CYXKXVPJ.mjs';
|
|
2
|
+
import { a } from './chunk-P5UTQFFP.mjs';
|
|
3
|
+
import * as s from 'react';
|
|
4
|
+
import * as r from '@radix-ui/react-checkbox';
|
|
5
|
+
import { Label } from '@radix-ui/react-label';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var k=["sm","md"],h=s.forwardRef(({className:c,label:n,size:e="md",...t},l)=>jsxs("div",{className:a("flex items-center",e==="md"&&"gap-3",e==="sm"&&"gap-2",c),children:[jsx("div",{className:a("flex flex-shrink-0 rounded-full transition-all has-[:hover]:has-[:enabled]:[&:not(:active)]:bg-transparent-primary-9 has-[:hover]:[&:not(:disabled)]:[&:not(:active)]:ring-transparent-primary-9",e==="sm"&&"h-4 w-4 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-4",e=="md"&&"h-5 w-5 has-[:hover]:has-[:enabled]:[&:not(:active)]:ring-6"),children:jsx(r.Root,{ref:l,className:a("flex-shrink-0 rounded-sm ring-2 ring-inset ring-neutral-900 active:enabled:ring-primary-700 disabled:cursor-not-allowed disabled:ring-neutral-500 data-[state=checked]:enabled:bg-primary-500 data-[state=indeterminate]:enabled:bg-primary-500 data-[state=checked]:enabled:ring-0 data-[state=indeterminate]:enabled:ring-0 hover:data-[state=checked]:enabled:bg-primary-600 hover:data-[state=indeterminate]:enabled:bg-primary-600 hover:data-[state=unchecked]:enabled:ring-primary-600 active:enabled:data-[state=checked]:bg-primary-700 active:enabled:data-[state=indeterminate]:bg-primary-700 disabled:data-[state=checked]:bg-neutral-500 disabled:data-[state=indeterminate]:bg-neutral-500",e==="sm"&&"h-4 w-4",e==="md"&&"h-5 w-5"),...t,children:jsxs(r.Indicator,{className:"flex items-center justify-center",children:[t.checked!=="indeterminate"&&jsx(j,{size:e==="sm"?14:18,className:"text-neutral-50"}),t.checked==="indeterminate"&&jsx(k$1,{size:e==="sm"?14:18,className:"text-neutral-50"})]})})}),n&&jsx(Label,{htmlFor:t.id,className:a("font-normal leading-[130%] text-neutral-900",t.disabled&&"text-neutral-500",e==="md"&&"text-base",e==="sm"&&"text-sm"),children:n})]}));h.displayName=r.Root.displayName;
|
|
9
|
+
|
|
10
|
+
export { k as a, h as b };
|