sodtrack-web-ui 0.57.11 → 0.57.12
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/chip-form-complementary.d.mts +3 -3
- package/dist/chip-form-complementary.d.ts +3 -3
- package/dist/chip-form.d.mts +6 -6
- package/dist/chip-form.d.ts +6 -6
- package/dist/chip-form.js +1 -1
- package/dist/chip-form.mjs +1 -1
- package/dist/chip-status-complementary.d.mts +1 -1
- package/dist/chip-status-complementary.d.ts +1 -1
- package/dist/chip-status-table.d.mts +1 -1
- package/dist/chip-status-table.d.ts +1 -1
- package/dist/chunk-MHCA2PNK.mjs +1 -0
- package/dist/chunk-SRXC3HT5.mjs +1 -0
- package/dist/drawer-sticky.js +1 -1
- package/dist/drawer-sticky.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- 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-button.css +1 -1
- package/dist/list-item-button.mjs +1 -1
- package/dist/list-item-checkbox.css +1 -1
- 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 +2 -2
- package/dist/tab.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-C2KEN44B.mjs +0 -1
- package/dist/chunk-FUJQCVG2.mjs +0 -1
|
@@ -6,7 +6,7 @@ type ChipFormComplementaryVariantsType = (typeof ChipFormComplementaryVariants)[
|
|
|
6
6
|
declare const ChipFormComplementaryVariantsClassNames: Record<ChipFormComplementaryVariantsType, string>;
|
|
7
7
|
declare const chipForm: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
} & ({
|
|
@@ -74,7 +74,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
74
74
|
children?: React__default.ReactNode | undefined;
|
|
75
75
|
} & Omit<VariantProps<(props?: ({
|
|
76
76
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
77
|
-
size?: "
|
|
77
|
+
size?: "sm" | "md" | undefined;
|
|
78
78
|
selected?: boolean | undefined;
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
} & ({
|
|
@@ -133,7 +133,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
133
133
|
} | null | undefined;
|
|
134
134
|
})) | undefined) => string>, "variant"> & Required<Pick<VariantProps<(props?: ({
|
|
135
135
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
136
|
-
size?: "
|
|
136
|
+
size?: "sm" | "md" | undefined;
|
|
137
137
|
selected?: boolean | undefined;
|
|
138
138
|
disabled?: boolean | undefined;
|
|
139
139
|
} & ({
|
|
@@ -6,7 +6,7 @@ type ChipFormComplementaryVariantsType = (typeof ChipFormComplementaryVariants)[
|
|
|
6
6
|
declare const ChipFormComplementaryVariantsClassNames: Record<ChipFormComplementaryVariantsType, string>;
|
|
7
7
|
declare const chipForm: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
} & ({
|
|
@@ -74,7 +74,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
74
74
|
children?: React__default.ReactNode | undefined;
|
|
75
75
|
} & Omit<VariantProps<(props?: ({
|
|
76
76
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
77
|
-
size?: "
|
|
77
|
+
size?: "sm" | "md" | undefined;
|
|
78
78
|
selected?: boolean | undefined;
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
} & ({
|
|
@@ -133,7 +133,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
133
133
|
} | null | undefined;
|
|
134
134
|
})) | undefined) => string>, "variant"> & Required<Pick<VariantProps<(props?: ({
|
|
135
135
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
136
|
-
size?: "
|
|
136
|
+
size?: "sm" | "md" | undefined;
|
|
137
137
|
selected?: boolean | undefined;
|
|
138
138
|
disabled?: boolean | undefined;
|
|
139
139
|
} & ({
|
package/dist/chip-form.d.mts
CHANGED
|
@@ -15,11 +15,11 @@ 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?: "fill" | "outlined" | "ghost" | undefined;
|
|
19
19
|
selected?: boolean | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
duotone?: boolean | undefined;
|
|
22
|
-
size?: "
|
|
22
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
23
23
|
} & ({
|
|
24
24
|
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 | {
|
|
25
25
|
[x: string]: any;
|
|
@@ -76,11 +76,11 @@ 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?: "fill" | "outlined" | "ghost" | undefined;
|
|
80
80
|
selected?: boolean | undefined;
|
|
81
81
|
disabled?: boolean | undefined;
|
|
82
82
|
duotone?: boolean | undefined;
|
|
83
|
-
size?: "
|
|
83
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
84
84
|
} & ({
|
|
85
85
|
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 | {
|
|
86
86
|
[x: string]: any;
|
|
@@ -137,11 +137,11 @@ 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?: "fill" | "outlined" | "ghost" | undefined;
|
|
141
141
|
selected?: boolean | undefined;
|
|
142
142
|
disabled?: boolean | undefined;
|
|
143
143
|
duotone?: boolean | undefined;
|
|
144
|
-
size?: "
|
|
144
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
145
145
|
} & ({
|
|
146
146
|
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 | {
|
|
147
147
|
[x: string]: any;
|
package/dist/chip-form.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ 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?: "fill" | "outlined" | "ghost" | undefined;
|
|
19
19
|
selected?: boolean | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
duotone?: boolean | undefined;
|
|
22
|
-
size?: "
|
|
22
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
23
23
|
} & ({
|
|
24
24
|
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 | {
|
|
25
25
|
[x: string]: any;
|
|
@@ -76,11 +76,11 @@ 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?: "fill" | "outlined" | "ghost" | undefined;
|
|
80
80
|
selected?: boolean | undefined;
|
|
81
81
|
disabled?: boolean | undefined;
|
|
82
82
|
duotone?: boolean | undefined;
|
|
83
|
-
size?: "
|
|
83
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
84
84
|
} & ({
|
|
85
85
|
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 | {
|
|
86
86
|
[x: string]: any;
|
|
@@ -137,11 +137,11 @@ 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?: "fill" | "outlined" | "ghost" | undefined;
|
|
141
141
|
selected?: boolean | undefined;
|
|
142
142
|
disabled?: boolean | undefined;
|
|
143
143
|
duotone?: boolean | undefined;
|
|
144
|
-
size?: "
|
|
144
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
145
145
|
} & ({
|
|
146
146
|
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 | {
|
|
147
147
|
[x: string]: any;
|
package/dist/chip-form.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var react=require('react'),cva=require('cva'),jsxRuntime=require('react/jsx-runtime');function Y(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=Y(e[r]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function D(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=Y(e))&&(o&&(o+=" "),o+=r);return o}var $="-",ce=e=>{let r=pe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:l=>{let n=l.split($);return n[0]===""&&n.length!==1&&n.shift(),te(n,r)||de(l)},getConflictingClassGroupIds:(l,n)=>{let p=t[l]||[];return n&&o[l]?[...p,...o[l]]:p}}},te=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?te(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let s=e.join($);return r.validators.find(({validator:l})=>l(s))?.classGroupId},ee=/^\[(.+)\]$/,de=e=>{if(ee.test(e)){let r=ee.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return "arbitrary.."+t}},pe=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return me(Object.entries(e.classGroups),t).forEach(([s,l])=>{O(l,o,s,r);}),o},O=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?r:re(r,a);s.classGroupId=t;return}if(typeof a=="function"){if(ue(a)){O(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([s,l])=>{O(l,re(r,s),t,o);});});},re=(e,r)=>{let t=e;return r.split($).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},ue=e=>e.isThemeGetter,me=(e,r)=>r?e.map(([t,o])=>{let a=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[r+l,n])):s);return [t,a]}):e,be=e=>{if(e<1)return {get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(s,l)=>{t.set(s,l),r++,r>e&&(r=0,o=t,t=new Map);};return {get(s){let l=t.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return a(s,l),l},set(s,l){t.has(s)?t.set(s,l):a(s,l);}}},oe="!",fe=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],s=r.length,l=n=>{let p=[],b=0,u=0,h;for(let m=0;m<n.length;m++){let g=n[m];if(b===0){if(g===a&&(o||n.slice(m,m+s)===r)){p.push(n.slice(u,m)),u=m+s;continue}if(g==="/"){h=m;continue}}g==="["?b++:g==="]"&&b--;}let y=p.length===0?n:n.substring(u),w=y.startsWith(oe),v=w?y.substring(1):y,f=h&&h>u?h-u:void 0;return {modifiers:p,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:f}};return t?n=>t({className:n,parseClassName:l}):l},ge=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o);}),r.push(...t.sort()),r},he=e=>({cache:be(e.cacheSize),parseClassName:fe(e),...ce(e)}),ye=/\s+/,xe=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=[],l=e.trim().split(ye),n="";for(let p=l.length-1;p>=0;p-=1){let b=l[p],{modifiers:u,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:w}=t(b),v=!!w,f=o(v?y.substring(0,w):y);if(!f){if(!v){n=b+(n.length>0?" "+n:n);continue}if(f=o(y),!f){n=b+(n.length>0?" "+n:n);continue}v=!1;}let m=ge(u).join(":"),g=h?m+oe:m,x=g+f;if(s.includes(x))continue;s.push(x);let G=a(f,v);for(let S=0;S<G.length;++S){let I=G[S];s.push(g+I);}n=b+(n.length>0?" "+n:n);}return n};function we(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ne(r))&&(o&&(o+=" "),o+=t);return o}var ne=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ne(e[o]))&&(t&&(t+=" "),t+=r);return t};function ve(e,...r){let t,o,a,s=l;function l(p){let b=r.reduce((u,h)=>h(u),e());return t=he(b),o=t.cache.get,a=t.cache.set,s=n,n(p)}function n(p){let b=o(p);if(b)return b;let u=xe(p,t);return a(p,u),u}return function(){return s(we.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},se=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ce=/^\d+\/\d+$/,ke=new Set(["px","full","screen"]),ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pe=/\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$/,Se=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>A(e)||ke.has(e)||Ce.test(e),z=e=>M(e,"length",Ve),A=e=>!!e&&!Number.isNaN(Number(e)),_=e=>M(e,"number",A),T=e=>!!e&&Number.isInteger(Number(e)),Re=e=>e.endsWith("%")&&A(e.slice(0,-1)),i=e=>se.test(e),P=e=>ze.test(e),Ge=new Set(["length","size","percentage"]),Ne=e=>M(e,Ge,ae),Te=e=>M(e,"position",ae),Ee=new Set(["image","url"]),Ie=e=>M(e,Ee,je),Le=e=>M(e,"",Fe),E=()=>!0,M=(e,r,t)=>{let o=se.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Ve=e=>Pe.test(e)&&!Se.test(e),ae=()=>!1,Fe=e=>Ae.test(e),je=e=>Me.test(e);var We=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),l=c("borderSpacing"),n=c("borderWidth"),p=c("contrast"),b=c("grayscale"),u=c("hueRotate"),h=c("invert"),y=c("gap"),w=c("gradientColorStops"),v=c("gradientColorStopPositions"),f=c("inset"),m=c("margin"),g=c("opacity"),x=c("padding"),G=c("saturate"),S=c("scale"),I=c("sepia"),U=c("skew"),q=c("space"),J=c("translate"),F=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",i,r],d=()=>[i,r],K=()=>["",k,z],L=()=>["auto",A,i],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",i],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[A,i];return {cacheSize:500,separator:":",theme:{colors:[E],spacing:[k,z],blur:["none","",P,i],brightness:C(),borderColor:[e],borderRadius:["none","","full",P,i],borderSpacing:d(),borderWidth:K(),contrast:C(),grayscale:N(),hueRotate:C(),invert:N(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Re,z],inset:W(),margin:W(),opacity:C(),padding:d(),saturate:C(),scale:C(),sepia:N(),skew:C(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...X(),i]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,i]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",T,i]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",T,i]},i]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[T,i]},i]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",P,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_]}],"font-family":[{font:[E]}],"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",i]}],"line-clamp":[{"line-clamp":["none",A,_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,z]}],"underline-offset":[{"underline-offset":["auto",k,i]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Te]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[k,i]}],"outline-w":[{outline:[k,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[k,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,Le]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",P,i]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[G]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[T,i]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,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 ie=ve(We);function R(...e){return ie(D(e))}var le=({content:e,variant:r="select",size:t="lg",className:o,...a})=>jsxRuntime.jsx("div",{className:R("content-center px-1 text-center text-neutral-50",t==="sm"&&"h-4 min-w-4 text-xs",t==="md"&&"h-4.5 min-w-4.5 text-xs",t==="lg"&&"h-6 min-w-6",r==="select"&&"rounded-sm bg-primary-700",r==="alert"&&"rounded-full bg-error-700",r==="alert"&&t==="sm"&&"h-[0.375rem] min-w-[0.375rem] p-0",r==="alert"&&t==="md"&&"h-4 min-w-4",o),...a,children:!(r==="alert"&&t==="sm")&&e});var ir=["standard","primary"],lr=["outlined","ghost","fill"],cr=["xs","sm","md"],$e=cva.cva({base:"flex w-fit items-center justify-center rounded-lg px-3 py-1 leading-[130%] text-neutral-700 transition-all",variants:{variant:{standard:"ring-neutral-700",primary:"text-primary-500 ring-primary-500"},type:{outlined:"ring-1",ghost:"",fill:"text-primary-600"},selected:{true:"",false:""},disabled:{true:"text-neutral-400 ring-neutral-400"},duotone:{true:"",false:""},size:{xs:"h-6 rounded-md text-sm",sm:"h-8 text-sm",md:"h-10 text-base"}},compoundVariants:[{variant:"standard",selected:!1,disabled:!1,className:"hover:bg-primary-100"},{variant:"primary",selected:!1,disabled:!1,className:"hover:bg-primary-200"},{variant:"standard",selected:!0,disabled:!1,className:"bg-primary-200"},{variant:"primary",selected:!0,disabled:!1,className:"bg-primary-300"},{type:"fill",disabled:!1,className:"bg-primary-100"}],defaultVariants:{size:"md",selected:!1,disabled:!1}}),dr=react.forwardRef(({children:e,variant:r,size:t,selected:o,onClick:a,className:s,type:l,disabled:n,StartIcon:p,EndIcon:b,duotone:u,badgeNumber:h,...y},w)=>jsxRuntime.jsxs("button",{ref:w,type:"button",disabled:n,onClick:()=>a?.(!o),className:R($e({variant:r,size:t,type:l,selected:o,disabled:n,duotone:u}),s),...y,children:[p&&jsxRuntime.jsx(p,{size:t==="md"?18:14,className:R("mr-1",!n&&r==="standard"&&u&&"text-primary-500",!n&&r==="standard"&&u&&o&&"text-primary-600",!n&&r==="primary"&&u&&"text-neutral-800")}),e,b&&jsxRuntime.jsx(b,{size:t==="md"?18:14,className:R("ml-1",!n&&r==="standard"&&u&&"text-primary-500",!n&&r==="standard"&&u&&o&&"text-primary-600",!n&&r==="primary"&&u&&"text-primary-800")}),h&&jsxRuntime.jsx(le,{content:h?String(h):void 0,className:"ml-2",size:t==="md"?"md":"sm"})]}));exports.ChipForm=dr;exports.ChipFormSizes=cr;exports.ChipFormTypes=lr;exports.ChipFormVariants=ir;
|
|
1
|
+
'use strict';var react=require('react'),cva=require('cva'),jsxRuntime=require('react/jsx-runtime');function Y(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=Y(e[r]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function D(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=Y(e))&&(o&&(o+=" "),o+=r);return o}var $="-",ce=e=>{let r=pe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:l=>{let n=l.split($);return n[0]===""&&n.length!==1&&n.shift(),te(n,r)||de(l)},getConflictingClassGroupIds:(l,n)=>{let p=t[l]||[];return n&&o[l]?[...p,...o[l]]:p}}},te=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?te(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let s=e.join($);return r.validators.find(({validator:l})=>l(s))?.classGroupId},ee=/^\[(.+)\]$/,de=e=>{if(ee.test(e)){let r=ee.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return "arbitrary.."+t}},pe=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return me(Object.entries(e.classGroups),t).forEach(([s,l])=>{O(l,o,s,r);}),o},O=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?r:re(r,a);s.classGroupId=t;return}if(typeof a=="function"){if(ue(a)){O(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([s,l])=>{O(l,re(r,s),t,o);});});},re=(e,r)=>{let t=e;return r.split($).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},ue=e=>e.isThemeGetter,me=(e,r)=>r?e.map(([t,o])=>{let a=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[r+l,n])):s);return [t,a]}):e,be=e=>{if(e<1)return {get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(s,l)=>{t.set(s,l),r++,r>e&&(r=0,o=t,t=new Map);};return {get(s){let l=t.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return a(s,l),l},set(s,l){t.has(s)?t.set(s,l):a(s,l);}}},oe="!",fe=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],s=r.length,l=n=>{let p=[],b=0,u=0,h;for(let m=0;m<n.length;m++){let g=n[m];if(b===0){if(g===a&&(o||n.slice(m,m+s)===r)){p.push(n.slice(u,m)),u=m+s;continue}if(g==="/"){h=m;continue}}g==="["?b++:g==="]"&&b--;}let y=p.length===0?n:n.substring(u),w=y.startsWith(oe),v=w?y.substring(1):y,f=h&&h>u?h-u:void 0;return {modifiers:p,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:f}};return t?n=>t({className:n,parseClassName:l}):l},ge=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o);}),r.push(...t.sort()),r},he=e=>({cache:be(e.cacheSize),parseClassName:fe(e),...ce(e)}),ye=/\s+/,xe=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=[],l=e.trim().split(ye),n="";for(let p=l.length-1;p>=0;p-=1){let b=l[p],{modifiers:u,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:w}=t(b),v=!!w,f=o(v?y.substring(0,w):y);if(!f){if(!v){n=b+(n.length>0?" "+n:n);continue}if(f=o(y),!f){n=b+(n.length>0?" "+n:n);continue}v=!1;}let m=ge(u).join(":"),g=h?m+oe:m,x=g+f;if(s.includes(x))continue;s.push(x);let G=a(f,v);for(let S=0;S<G.length;++S){let I=G[S];s.push(g+I);}n=b+(n.length>0?" "+n:n);}return n};function we(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ne(r))&&(o&&(o+=" "),o+=t);return o}var ne=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ne(e[o]))&&(t&&(t+=" "),t+=r);return t};function ve(e,...r){let t,o,a,s=l;function l(p){let b=r.reduce((u,h)=>h(u),e());return t=he(b),o=t.cache.get,a=t.cache.set,s=n,n(p)}function n(p){let b=o(p);if(b)return b;let u=xe(p,t);return a(p,u),u}return function(){return s(we.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},se=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ce=/^\d+\/\d+$/,ke=new Set(["px","full","screen"]),ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pe=/\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$/,Se=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>A(e)||ke.has(e)||Ce.test(e),z=e=>M(e,"length",Ve),A=e=>!!e&&!Number.isNaN(Number(e)),_=e=>M(e,"number",A),T=e=>!!e&&Number.isInteger(Number(e)),Re=e=>e.endsWith("%")&&A(e.slice(0,-1)),i=e=>se.test(e),P=e=>ze.test(e),Ge=new Set(["length","size","percentage"]),Ne=e=>M(e,Ge,ae),Te=e=>M(e,"position",ae),Ee=new Set(["image","url"]),Ie=e=>M(e,Ee,je),Le=e=>M(e,"",Fe),E=()=>!0,M=(e,r,t)=>{let o=se.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Ve=e=>Pe.test(e)&&!Se.test(e),ae=()=>!1,Fe=e=>Ae.test(e),je=e=>Me.test(e);var We=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),l=c("borderSpacing"),n=c("borderWidth"),p=c("contrast"),b=c("grayscale"),u=c("hueRotate"),h=c("invert"),y=c("gap"),w=c("gradientColorStops"),v=c("gradientColorStopPositions"),f=c("inset"),m=c("margin"),g=c("opacity"),x=c("padding"),G=c("saturate"),S=c("scale"),I=c("sepia"),U=c("skew"),q=c("space"),J=c("translate"),F=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",i,r],d=()=>[i,r],K=()=>["",k,z],L=()=>["auto",A,i],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",i],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[A,i];return {cacheSize:500,separator:":",theme:{colors:[E],spacing:[k,z],blur:["none","",P,i],brightness:C(),borderColor:[e],borderRadius:["none","","full",P,i],borderSpacing:d(),borderWidth:K(),contrast:C(),grayscale:N(),hueRotate:C(),invert:N(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Re,z],inset:W(),margin:W(),opacity:C(),padding:d(),saturate:C(),scale:C(),sepia:N(),skew:C(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...X(),i]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,i]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",T,i]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",T,i]},i]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[T,i]},i]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",P,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_]}],"font-family":[{font:[E]}],"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",i]}],"line-clamp":[{"line-clamp":["none",A,_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,z]}],"underline-offset":[{"underline-offset":["auto",k,i]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Te]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[k,i]}],"outline-w":[{outline:[k,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[k,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,Le]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",P,i]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[G]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[T,i]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,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 ie=ve(We);function R(...e){return ie(D(e))}var le=({content:e,variant:r="select",size:t="lg",className:o,...a})=>jsxRuntime.jsx("div",{className:R("content-center px-1 text-center text-neutral-50",t==="sm"&&"h-4 min-w-4 text-xs",t==="md"&&"h-4.5 min-w-4.5 text-xs",t==="lg"&&"h-6 min-w-6",r==="select"&&"rounded-sm bg-primary-700",r==="alert"&&"rounded-full bg-error-700",r==="alert"&&t==="sm"&&"h-[0.375rem] min-w-[0.375rem] p-0",r==="alert"&&t==="md"&&"h-4 min-w-4",o),...a,children:!(r==="alert"&&t==="sm")&&e});var ir=["standard","primary"],lr=["outlined","ghost","fill"],cr=["xs","sm","md"],$e=cva.cva({base:"flex w-fit items-center justify-center rounded-lg px-3 py-1 leading-[130%] text-neutral-700 transition-all",variants:{variant:{standard:"ring-neutral-700",primary:"text-primary-500 ring-primary-500"},type:{outlined:"ring-1 ring-inset",ghost:"",fill:"text-primary-600"},selected:{true:"",false:""},disabled:{true:"text-neutral-400 ring-neutral-400"},duotone:{true:"",false:""},size:{xs:"h-6 rounded-md text-sm",sm:"h-8 text-sm",md:"h-10 text-base"}},compoundVariants:[{variant:"standard",selected:!1,disabled:!1,className:"hover:bg-primary-100"},{variant:"primary",selected:!1,disabled:!1,className:"hover:bg-primary-200"},{variant:"standard",selected:!0,disabled:!1,className:"bg-primary-200"},{variant:"primary",selected:!0,disabled:!1,className:"bg-primary-300"},{type:"fill",disabled:!1,className:"bg-primary-100"}],defaultVariants:{size:"md",selected:!1,disabled:!1}}),dr=react.forwardRef(({children:e,variant:r,size:t,selected:o,onClick:a,className:s,type:l,disabled:n,StartIcon:p,EndIcon:b,duotone:u,badgeNumber:h,...y},w)=>jsxRuntime.jsxs("button",{ref:w,type:"button",disabled:n,onClick:()=>a?.(!o),className:R($e({variant:r,size:t,type:l,selected:o,disabled:n,duotone:u}),s),...y,children:[p&&jsxRuntime.jsx(p,{size:t==="md"?18:14,className:R("mr-1",!n&&r==="standard"&&u&&"text-primary-500",!n&&r==="standard"&&u&&o&&"text-primary-600",!n&&r==="primary"&&u&&"text-neutral-800")}),e,b&&jsxRuntime.jsx(b,{size:t==="md"?18:14,className:R("ml-1",!n&&r==="standard"&&u&&"text-primary-500",!n&&r==="standard"&&u&&o&&"text-primary-600",!n&&r==="primary"&&u&&"text-primary-800")}),h&&jsxRuntime.jsx(le,{content:h?String(h):void 0,className:"ml-2",size:t==="md"?"md":"sm"})]}));exports.ChipForm=dr;exports.ChipFormSizes=cr;exports.ChipFormTypes=lr;exports.ChipFormVariants=ir;
|
package/dist/chip-form.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'./chunk-
|
|
1
|
+
export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'./chunk-SRXC3HT5.mjs';import'./chunk-BVHU5ZT3.mjs';import'./chunk-2WINTZSS.mjs';
|
|
@@ -6,7 +6,7 @@ type ChipStatusComplementaryVariantType = (typeof ChipStatusComplementaryVariant
|
|
|
6
6
|
type ChipStatusComplementarySizeType = (typeof ChipStatusComplementarySizes)[number];
|
|
7
7
|
declare const chipStatusComplementary: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
10
10
|
} & ({
|
|
11
11
|
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 | {
|
|
12
12
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@ type ChipStatusComplementaryVariantType = (typeof ChipStatusComplementaryVariant
|
|
|
6
6
|
type ChipStatusComplementarySizeType = (typeof ChipStatusComplementarySizes)[number];
|
|
7
7
|
declare const chipStatusComplementary: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
10
10
|
} & ({
|
|
11
11
|
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 | {
|
|
12
12
|
[x: string]: any;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'cva';
|
|
|
2
2
|
import { HTMLAttributes, FC } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const chipStatusTable: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "success" | "info" | "warning" | "error" | "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
6
6
|
} & ({
|
|
7
7
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'cva';
|
|
|
2
2
|
import { HTMLAttributes, FC } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const chipStatusTable: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "success" | "info" | "warning" | "error" | "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
6
6
|
} & ({
|
|
7
7
|
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c as c$1}from'./chunk-WS2F7JWJ.mjs';import {a as a$1}from'./chunk-QHBCNAWO.mjs';import {c}from'./chunk-DZLL7IH6.mjs';import {d}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {forwardRef,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var q=({onOpenChange:a,...o})=>{let r=useCallback(t=>{a?.(t.open);},[a]);return jsx(Dialog.Root,{unmountOnExit:!0,lazyMount:!0,onOpenChange:r,...o})},G=Dialog.Trigger,J=["sm","md","lg","xl"],v=forwardRef(({children:a$1,className:o,size:r="sm",...t},n)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"fixed inset-0 z-40 bg-neutral-900/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),jsx(Dialog.Positioner,{className:"fixed left-0 top-0 z-40 flex h-dvh w-dvw items-center justify-end",children:jsx(Dialog.Content,{ref:n,className:a("elevation-10 h-full bg-neutral-50 data-[state=closed]:animate-swipeOut data-[state=open]:animate-slideIn",r==="sm"&&"w-117.5",r==="md"&&"w-187",r==="lg"&&"w-235",r==="xl"&&"w-312",o),...t,children:jsx("div",{className:"flex h-full flex-1 flex-col",children:a$1})})})]}));v.displayName="DrawerStickyContent";var C=forwardRef(({children:a$1,className:o,title:r,buttons:t=[],description:n,...D},g)=>jsxs("div",{className:a("border-b-1 border-neutral-200 pb-3.75 pl-4.5 pt-2",o),ref:g,...D,children:[jsx(Dialog.CloseTrigger,{asChild:!0,children:jsx(d,{className:"ml-auto mr-2 size-6 cursor-pointer"})}),jsxs("div",{className:"mr-4.5 mt-2 flex items-center justify-between gap-4.5",children:[jsx(Dialog.Title,{className:"line-clamp-1 break-all font-jakarta text-2xl font-semibold leading-[130%] text-neutral-900",children:r}),!Array.isArray(t)&&t.visible!==!1&&jsx(c,{size:"sm",variant:"ghost",...t}),Array.isArray(t)&&jsx("div",{className:"flex gap-1",children:t.map(({visible:f=!0,...u},w)=>f?jsx(c$1,{variant:"ghost",size:"sm",...u},w):null)})]}),n&&jsx(Dialog.Description,{className:"mr-4.5 mt-1 line-clamp-2 font-inter text-sm leading-[130%] text-neutral-900",children:n})]}));C.displayName="DrawerStickyHeader";var P=forwardRef(({children:a$1,className:o,...r},t)=>jsx("div",{className:a("flex justify-end gap-3 border-t-1 border-neutral-200 px-4.5 pb-4.5 pt-4.25",o),ref:t,...r,children:a$1}));P.displayName="DrawerStickyFooter";var b=forwardRef(({children:a$2,className:o,...r},t)=>jsxs(a$1,{viewPortClassName:"py-4 px-6",className:a("h-full",o),ref:t,...r,children:[a$2,jsx("div",{className:"min-h-4"})]}));b.displayName="DrawerStickyBody";var K=Dialog.CloseTrigger;export{q as a,G as b,J as c,v as d,C as e,P as f,b as g,K as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {a}from'./chunk-2WINTZSS.mjs';import {forwardRef}from'react';import {cva}from'cva';import {jsxs,jsx}from'react/jsx-runtime';var S=["standard","primary"],T=["outlined","ghost","fill"],k=["xs","sm","md"],g=cva({base:"flex w-fit items-center justify-center rounded-lg px-3 py-1 leading-[130%] text-neutral-700 transition-all",variants:{variant:{standard:"ring-neutral-700",primary:"text-primary-500 ring-primary-500"},type:{outlined:"ring-1 ring-inset",ghost:"",fill:"text-primary-600"},selected:{true:"",false:""},disabled:{true:"text-neutral-400 ring-neutral-400"},duotone:{true:"",false:""},size:{xs:"h-6 rounded-md text-sm",sm:"h-8 text-sm",md:"h-10 text-base"}},compoundVariants:[{variant:"standard",selected:!1,disabled:!1,className:"hover:bg-primary-100"},{variant:"primary",selected:!1,disabled:!1,className:"hover:bg-primary-200"},{variant:"standard",selected:!0,disabled:!1,className:"bg-primary-200"},{variant:"primary",selected:!0,disabled:!1,className:"bg-primary-300"},{type:"fill",disabled:!1,className:"bg-primary-100"}],defaultVariants:{size:"md",selected:!1,disabled:!1}}),w=forwardRef(({children:d,variant:r,size:a$2,selected:s,onClick:c,className:f,type:y,disabled:t,StartIcon:n,EndIcon:p,duotone:e,badgeNumber:m,...u},x)=>jsxs("button",{ref:x,type:"button",disabled:t,onClick:()=>c?.(!s),className:a(g({variant:r,size:a$2,type:y,selected:s,disabled:t,duotone:e}),f),...u,children:[n&&jsx(n,{size:a$2==="md"?18:14,className:a("mr-1",!t&&r==="standard"&&e&&"text-primary-500",!t&&r==="standard"&&e&&s&&"text-primary-600",!t&&r==="primary"&&e&&"text-neutral-800")}),d,p&&jsx(p,{size:a$2==="md"?18:14,className:a("ml-1",!t&&r==="standard"&&e&&"text-primary-500",!t&&r==="standard"&&e&&s&&"text-primary-600",!t&&r==="primary"&&e&&"text-primary-800")}),m&&jsx(a$1,{content:m?String(m):void 0,className:"ml-2",size:a$2==="md"?"md":"sm"})]}));export{S as a,T as b,k as c,w as d};
|
package/dist/drawer-sticky.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var dialog=require('@ark-ui/react/dialog'),portal=require('@ark-ui/react/portal'),Me=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime'),P=require('@radix-ui/react-scroll-area');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Me__default=/*#__PURE__*/_interopDefault(Me);var P__namespace=/*#__PURE__*/_interopNamespace(P);function fe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=fe(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ie(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=fe(e))&&(o&&(o+=" "),o+=a);return o}var $="-",Fe=e=>{let a=Re(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let u=d.split($);return u[0]===""&&u.length!==1&&u.shift(),pe(u,a)||ve(d)},getConflictingClassGroupIds:(d,u)=>{let f=t[d]||[];return u&&o[d]?[...f,...o[d]]:f}}},pe=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?pe(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let l=e.join($);return a.validators.find(({validator:d})=>d(l))?.classGroupId},ne=/^\[(.+)\]$/,ve=e=>{if(ne.test(e)){let a=ne.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Re=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return qe(Object.entries(e.classGroups),t).forEach(([l,d])=>{_(d,o,l,a);}),o},_=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?a:ce(a,r);l.classGroupId=t;return}if(typeof r=="function"){if(Te(r)){_(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([l,d])=>{_(d,ce(a,l),t,o);});});},ce=(e,a)=>{let t=e;return a.split($).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},Te=e=>e.isThemeGetter,qe=(e,a)=>a?e.map(([t,o])=>{let r=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,u])=>[a+d,u])):l);return [t,r]}):e,Ue=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(l,d)=>{t.set(l,d),a++,a>e&&(a=0,o=t,t=new Map);};return {get(l){let d=t.get(l);if(d!==void 0)return d;if((d=o.get(l))!==void 0)return r(l,d),d},set(l,d){t.has(l)?t.set(l,d):r(l,d);}}},me="!",Oe=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],l=a.length,d=u=>{let f=[],i=0,p=0,I;for(let m=0;m<u.length;m++){let x=u[m];if(i===0){if(x===r&&(o||u.slice(m,m+l)===a)){f.push(u.slice(p,m)),p=m+l;continue}if(x==="/"){I=m;continue}}x==="["?i++:x==="]"&&i--;}let g=f.length===0?u:u.substring(p),w=g.startsWith(me),C=w?g.substring(1):g,L=I&&I>p?I-p:void 0;return {modifiers:f,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:L}};return t?u=>t({className:u,parseClassName:d}):d},He=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},Ge=e=>({cache:Ue(e.cacheSize),parseClassName:Oe(e),...Fe(e)}),ze=/\s+/,Ee=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,l=[],d=e.trim().split(ze),u="";for(let f=d.length-1;f>=0;f-=1){let i=d[f],{modifiers:p,hasImportantModifier:I,baseClassName:g,maybePostfixModifierPosition:w}=t(i),C=!!w,L=o(C?g.substring(0,w):g);if(!L){if(!C){u=i+(u.length>0?" "+u:u);continue}if(L=o(g),!L){u=i+(u.length>0?" "+u:u);continue}C=!1;}let m=He(p).join(":"),x=I?m+me:m,b=x+L;if(l.includes(b))continue;l.push(b);let T=r(L,C);for(let F=0;F<T.length;++F){let z=T[F];l.push(x+z);}u=i+(u.length>0?" "+u:u);}return u};function Ve(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=Le(a))&&(o&&(o+=" "),o+=t);return o}var Le=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=Le(e[o]))&&(t&&(t+=" "),t+=a);return t};function We(e,...a){let t,o,r,l=d;function d(f){let i=a.reduce((p,I)=>I(p),e());return t=Ge(i),o=t.cache.get,r=t.cache.set,l=u,u(f)}function u(f){let i=o(f);if(i)return i;let p=Ee(f,t);return r(f,p),p}return function(){return l(Ve.apply(null,arguments))}}var n=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ne=/^\d+\/\d+$/,Xe=new Set(["px","full","screen"]),Ke=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\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$/,Je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,je=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>v(e)||Xe.has(e)||Ne.test(e),B=e=>R(e,"length",la),v=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>R(e,"number",v),U=e=>!!e&&Number.isInteger(Number(e)),Ye=e=>e.endsWith("%")&&v(e.slice(0,-1)),s=e=>xe.test(e),M=e=>Ke.test(e),_e=new Set(["length","size","percentage"]),$e=e=>R(e,_e,Ie),ea=e=>R(e,"position",Ie),aa=new Set(["image","url"]),ta=e=>R(e,aa,ua),oa=e=>R(e,"",ra),O=()=>!0,R=(e,a,t)=>{let o=xe.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},la=e=>Ze.test(e)&&!Je.test(e),Ie=()=>!1,ra=e=>Qe.test(e),ua=e=>je.test(e);var da=()=>{let e=n("colors"),a=n("spacing"),t=n("blur"),o=n("brightness"),r=n("borderColor"),l=n("borderRadius"),d=n("borderSpacing"),u=n("borderWidth"),f=n("contrast"),i=n("grayscale"),p=n("hueRotate"),I=n("invert"),g=n("gap"),w=n("gradientColorStops"),C=n("gradientColorStopPositions"),L=n("inset"),m=n("margin"),x=n("opacity"),b=n("padding"),T=n("saturate"),F=n("scale"),z=n("sepia"),te=n("skew"),oe=n("space"),le=n("translate"),Z=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",s,a],c=()=>[s,a],re=()=>["",A,B],E=()=>["auto",v,s],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",s],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[v,s];return {cacheSize:500,separator:":",theme:{colors:[O],spacing:[A,B],blur:["none","",M,s],brightness:k(),borderColor:[e],borderRadius:["none","","full",M,s],borderSpacing:c(),borderWidth:re(),contrast:k(),grayscale:q(),hueRotate:k(),invert:q(),gap:c(),gradientColorStops:[e],gradientColorStopPositions:[Ye,B],inset:Q(),margin:Q(),opacity:k(),padding:c(),saturate:k(),scale:k(),sepia:q(),skew:k(),space:c(),translate:c()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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:[...ue(),s]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",U,s]}],basis:[{basis:Q()}],"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:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",U,s]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",U,s]},s]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[U,s]},s]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"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",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"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:[M]},M]}],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",M,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[O]}],"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",v,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,B]}],"underline-offset":[{"underline-offset":["auto",A,s]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:c()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),ea]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$e]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ta]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:V()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[A,s]}],"outline-w":[{outline:[A,B]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[A,B]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,oa]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",M,s]}],grayscale:[{grayscale:[i]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[I]}],saturate:[{saturate:[T]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[U,s]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,B,Y]}],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 ge=We(da);function h(...e){return ge(ie(e))}var ia=tailwindVariants.tv({slots:{container:"flex items-center justify-center font-inter text-base font-semibold ring-inset transition-all",icon:""},variants:{variant:{contained:{},secondary:{},outlined:{},ghost:{},standard:{}},size:{lg:{container:"h-12 w-12 rounded-lg",icon:"h-6 w-6"},md:{container:"h-10 w-10 rounded-lg",icon:"h-6 w-6"},sm:{container:"h-8 w-8 rounded-lg",icon:"h-4.5 w-4.5"},xs:{container:"h-5.5 w-5.5 rounded",icon:"h-4.5 w-4.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:!0,className:{container:"cursor-not-allowed text-neutral-400"}},{disabled:!1,className:{container:"cursor-pointer"}},{disabled:!1,variant:"contained",className:{container:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0"}},{disabled:!0,variant:"contained",className:{container:"bg-neutral-100 ring-0"}},{disabled:!1,variant:"secondary",className:{container:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-[1.5px] active:ring-primary-700"}},{disabled:!0,variant:"secondary",className:{container:"ring-neutral-400 disabled:ring-[1.5px]"}},{disabled:!1,variant:"outlined",className:{container:"text-neutral-900 ring-[1.5px] ring-neutral-900 hover:bg-transparent-primary-20 focus:ring-[3px] active:bg-transparent-primary-40"}},{disabled:!0,variant:"outlined",className:{container:"text-neutral-400 ring-[1.5px] ring-neutral-400"}},{disabled:!1,variant:"ghost",className:{container:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0"}},{disabled:!0,variant:"ghost",className:{container:""}},{disabled:!1,variant:"standard",className:{container:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0"}},{disabled:!0,variant:"standard",className:{container:""}}],defaultVariants:{variant:"contained",size:"sm",disabled:!1}}),he=Me.forwardRef(({className:e,variant:a,disabled:t,Icon:o,size:r,type:l="button",...d},u)=>{let{container:f,icon:i}=ia({variant:a,size:r,disabled:t});return jsxRuntime.jsx("button",{ref:u,disabled:t,className:h(f(),e),type:l,...d,children:jsxRuntime.jsx(o,{className:i()})})});var Se=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),W=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var we={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 Pe=Me.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:d,...u},f)=>Me.createElement("svg",{ref:f,...we,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:W("lucide",r),...u},[...d.map(([i,p])=>Me.createElement(i,p)),...Array.isArray(l)?l:[l]]));var N=(e,a)=>{let t=Me.forwardRef(({className:o,...r},l)=>Me.createElement(Pe,{ref:l,iconNode:a,className:W(`lucide-${Se(e)}`,o),...r}));return t.displayName=`${e}`,t};var D=N("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var H=N("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ke=D;var Ae=H;var ee=Me.forwardRef(({className:e,children:a,onScrollEnd:t,isInfiniteScroll:o=!1,viewPortClassName:r,viewPortStyle:l,...d},u)=>{let f=Me.useRef(null);return Me.useEffect(()=>{if(!o)return;let i=()=>{if(f.current){let{scrollTop:I,scrollHeight:g,clientHeight:w}=f.current;I+w>=g-10&&t?.();}},p=f.current;return p?.addEventListener("scroll",i),()=>{p?.removeEventListener("scroll",i);}},[t,o]),Me.useImperativeHandle(u,()=>f.current,[f]),jsxRuntime.jsxs(P__namespace.Root,{className:h("relative overflow-hidden",e),...d,children:[jsxRuntime.jsx(P__namespace.Viewport,{ref:f,className:h("h-full w-full rounded-[inherit] [&>div]:!flex [&>div]:h-full [&>div]:flex-col",r),style:l,children:a}),jsxRuntime.jsx(Be,{forceMount:o},o?f.current?.scrollHeight:1),jsxRuntime.jsx(P__namespace.Corner,{})]})});ee.displayName=P__namespace.Root.displayName;var Be=Me.forwardRef(({className:e,orientation:a="vertical",...t},o)=>jsxRuntime.jsx(P__namespace.ScrollAreaScrollbar,{ref:o,orientation:a,className:h("flex touch-none select-none bg-neutral-100 transition-colors",a==="vertical"&&"h-full w-4 py-2",a==="horizontal"&&"h-4 flex-col px-2",e),...t,children:jsxRuntime.jsx(P__namespace.ScrollAreaThumb,{className:h("relative flex-1 rounded bg-primary-500",a==="vertical"&&"mx-1 w-2",a==="horizontal"&&"my-1 h-2")})}));Be.displayName=P__namespace.ScrollAreaScrollbar.displayName;var ha=tailwindVariants.tv({slots:{button:"flex flex-shrink-0 items-center justify-center gap-2 rounded-lg font-inter text-base font-semibold leading-[130%] transition-all ease-linear disabled:cursor-not-allowed disabled:ring-0",icon:"",loadingIcon:"absolute animate-spin text-neutral-400"},variants:{size:{lg:{button:"h-12 px-4",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},md:{button:"h-10 px-4 text-sm leading-[130%]",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},sm:{button:"h-8 gap-1 px-3 text-sm leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"},xs:{button:"h-6 gap-1 rounded-[6px] px-3 text-xs leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"}},variant:{contained:{button:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-400"},secondary:{button:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},outlined:{button:"leading-[130%] text-neutral-900 ring-[1.5px] ring-inset ring-neutral-900 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-primary-900 active:ring-[1.5px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400 [&:not([disabled])]:hover:bg-transparent-primary-20 [&:not([disabled])]:active:bg-transparent-primary-40"},ghost:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},standard:{button:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},link:{button:"text-primary-500 underline underline-offset-2 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},white:{button:"bg-neutral-50 text-neutral-900"}},loading:{true:{button:"disabled:text-neutral-50 disabled:text-opacity-0"}}},defaultVariants:{variant:"contained",size:"md",loading:!1,disabled:!1}}),De=Me.forwardRef(({children:e,className:a,variant:t,size:o,startIcon:r,endIcon:l,loading:d,disabled:u,type:f="button",StartIcon:i,EndIcon:p,...I},g)=>{let{button:w,icon:C,loadingIcon:L}=ha({variant:t,size:o,loading:d});return jsxRuntime.jsxs("button",{...I,ref:g,disabled:d||u,className:h(w(),a),type:f,children:[d&&jsxRuntime.jsx(ke,{className:L()}),r&&Me__default.default.cloneElement(r,{className:C()}),i&&jsxRuntime.jsx(i,{className:C()}),e,l&&Me__default.default.cloneElement(l,{className:C()}),p&&jsxRuntime.jsx(p,{className:C()})]})});var _t=({onOpenChange:e,...a})=>{let t=Me.useCallback(o=>{e?.(o.open);},[e]);return jsxRuntime.jsx(dialog.Dialog.Root,{unmountOnExit:!0,lazyMount:!0,onOpenChange:t,...a})},$t=dialog.Dialog.Trigger,eo=["sm","md","lg","xl"],Pa=Me.forwardRef(({children:e,className:a,size:t="sm",...o},r)=>jsxRuntime.jsxs(portal.Portal,{children:[jsxRuntime.jsx(dialog.Dialog.Backdrop,{className:"fixed inset-0 z-40 bg-neutral-900/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),jsxRuntime.jsx(dialog.Dialog.Positioner,{className:"fixed left-0 top-0 z-40 flex h-screen w-screen items-center justify-end",children:jsxRuntime.jsx(dialog.Dialog.Content,{ref:r,className:h("elevation-10 h-full bg-neutral-50 data-[state=closed]:animate-swipeOut data-[state=open]:animate-slideIn",t==="sm"&&"w-117.5",t==="md"&&"w-187",t==="lg"&&"w-235",t==="xl"&&"w-312",a),...o,children:jsxRuntime.jsx("div",{className:"flex h-full flex-1 flex-col",children:e})})})]}));Pa.displayName="DrawerStickyContent";var ka=Me.forwardRef(({children:e,className:a,title:t,buttons:o=[],description:r,...l},d)=>jsxRuntime.jsxs("div",{className:h("border-b-1 border-neutral-200 pb-3.75 pl-4.5 pt-2",a),ref:d,...l,children:[jsxRuntime.jsx(dialog.Dialog.CloseTrigger,{asChild:!0,children:jsxRuntime.jsx(Ae,{className:"ml-auto mr-2 size-6 cursor-pointer"})}),jsxRuntime.jsxs("div",{className:"mr-4.5 mt-2 flex items-center justify-between gap-4.5",children:[jsxRuntime.jsx(dialog.Dialog.Title,{className:"line-clamp-1 break-all font-jakarta text-2xl font-semibold leading-[130%] text-neutral-900",children:t}),!Array.isArray(o)&&o.visible!==!1&&jsxRuntime.jsx(De,{size:"sm",variant:"ghost",...o}),Array.isArray(o)&&jsxRuntime.jsx("div",{className:"flex gap-1",children:o.map(({visible:u=!0,...f},i)=>u?jsxRuntime.jsx(he,{variant:"ghost",size:"sm",...f},i):null)})]}),r&&jsxRuntime.jsx(dialog.Dialog.Description,{className:"mr-4.5 mt-1 line-clamp-2 break-all font-inter text-sm leading-[130%] text-neutral-900",children:r})]}));ka.displayName="DrawerStickyHeader";var Aa=Me.forwardRef(({children:e,className:a,...t},o)=>jsxRuntime.jsx("div",{className:h("flex justify-end gap-3 border-t-1 border-neutral-200 px-4.5 pb-4.5 pt-4.25",a),ref:o,...t,children:e}));Aa.displayName="DrawerStickyFooter";var ya=Me.forwardRef(({children:e,className:a,...t},o)=>jsxRuntime.jsxs(ee,{viewPortClassName:"py-4 px-6",className:h("h-full",a),ref:o,...t,children:[e,jsxRuntime.jsx("div",{className:"min-h-4"})]}));ya.displayName="DrawerStickyBody";var ao=dialog.Dialog.CloseTrigger;/*! Bundled license information:
|
|
1
|
+
'use strict';var dialog=require('@ark-ui/react/dialog'),portal=require('@ark-ui/react/portal'),Me=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime'),P=require('@radix-ui/react-scroll-area');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Me__default=/*#__PURE__*/_interopDefault(Me);var P__namespace=/*#__PURE__*/_interopNamespace(P);function fe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=fe(e[a]))&&(o&&(o+=" "),o+=t);}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ie(){for(var e,a,t=0,o="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=fe(e))&&(o&&(o+=" "),o+=a);return o}var $="-",Fe=e=>{let a=Re(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return {getClassGroupId:d=>{let u=d.split($);return u[0]===""&&u.length!==1&&u.shift(),pe(u,a)||ve(d)},getConflictingClassGroupIds:(d,u)=>{let f=t[d]||[];return u&&o[d]?[...f,...o[d]]:f}}},pe=(e,a)=>{if(e.length===0)return a.classGroupId;let t=e[0],o=a.nextPart.get(t),r=o?pe(e.slice(1),o):void 0;if(r)return r;if(a.validators.length===0)return;let l=e.join($);return a.validators.find(({validator:d})=>d(l))?.classGroupId},ne=/^\[(.+)\]$/,ve=e=>{if(ne.test(e)){let a=ne.exec(e)[1],t=a?.substring(0,a.indexOf(":"));if(t)return "arbitrary.."+t}},Re=e=>{let{theme:a,prefix:t}=e,o={nextPart:new Map,validators:[]};return qe(Object.entries(e.classGroups),t).forEach(([l,d])=>{_(d,o,l,a);}),o},_=(e,a,t,o)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?a:ce(a,r);l.classGroupId=t;return}if(typeof r=="function"){if(Te(r)){_(r(o),a,t,o);return}a.validators.push({validator:r,classGroupId:t});return}Object.entries(r).forEach(([l,d])=>{_(d,ce(a,l),t,o);});});},ce=(e,a)=>{let t=e;return a.split($).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o);}),t},Te=e=>e.isThemeGetter,qe=(e,a)=>a?e.map(([t,o])=>{let r=o.map(l=>typeof l=="string"?a+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,u])=>[a+d,u])):l);return [t,r]}):e,Ue=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,t=new Map,o=new Map,r=(l,d)=>{t.set(l,d),a++,a>e&&(a=0,o=t,t=new Map);};return {get(l){let d=t.get(l);if(d!==void 0)return d;if((d=o.get(l))!==void 0)return r(l,d),d},set(l,d){t.has(l)?t.set(l,d):r(l,d);}}},me="!",Oe=e=>{let{separator:a,experimentalParseClassName:t}=e,o=a.length===1,r=a[0],l=a.length,d=u=>{let f=[],i=0,p=0,I;for(let m=0;m<u.length;m++){let x=u[m];if(i===0){if(x===r&&(o||u.slice(m,m+l)===a)){f.push(u.slice(p,m)),p=m+l;continue}if(x==="/"){I=m;continue}}x==="["?i++:x==="]"&&i--;}let g=f.length===0?u:u.substring(p),w=g.startsWith(me),C=w?g.substring(1):g,L=I&&I>p?I-p:void 0;return {modifiers:f,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:L}};return t?u=>t({className:u,parseClassName:d}):d},He=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},Ge=e=>({cache:Ue(e.cacheSize),parseClassName:Oe(e),...Fe(e)}),ze=/\s+/,Ee=(e,a)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r}=a,l=[],d=e.trim().split(ze),u="";for(let f=d.length-1;f>=0;f-=1){let i=d[f],{modifiers:p,hasImportantModifier:I,baseClassName:g,maybePostfixModifierPosition:w}=t(i),C=!!w,L=o(C?g.substring(0,w):g);if(!L){if(!C){u=i+(u.length>0?" "+u:u);continue}if(L=o(g),!L){u=i+(u.length>0?" "+u:u);continue}C=!1;}let m=He(p).join(":"),x=I?m+me:m,b=x+L;if(l.includes(b))continue;l.push(b);let T=r(L,C);for(let F=0;F<T.length;++F){let z=T[F];l.push(x+z);}u=i+(u.length>0?" "+u:u);}return u};function Ve(){let e=0,a,t,o="";for(;e<arguments.length;)(a=arguments[e++])&&(t=Le(a))&&(o&&(o+=" "),o+=t);return o}var Le=e=>{if(typeof e=="string")return e;let a,t="";for(let o=0;o<e.length;o++)e[o]&&(a=Le(e[o]))&&(t&&(t+=" "),t+=a);return t};function We(e,...a){let t,o,r,l=d;function d(f){let i=a.reduce((p,I)=>I(p),e());return t=Ge(i),o=t.cache.get,r=t.cache.set,l=u,u(f)}function u(f){let i=o(f);if(i)return i;let p=Ee(f,t);return r(f,p),p}return function(){return l(Ve.apply(null,arguments))}}var n=e=>{let a=t=>t[e]||[];return a.isThemeGetter=!0,a},xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ne=/^\d+\/\d+$/,Xe=new Set(["px","full","screen"]),Ke=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\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$/,Je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,je=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>v(e)||Xe.has(e)||Ne.test(e),B=e=>R(e,"length",la),v=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>R(e,"number",v),U=e=>!!e&&Number.isInteger(Number(e)),Ye=e=>e.endsWith("%")&&v(e.slice(0,-1)),s=e=>xe.test(e),M=e=>Ke.test(e),_e=new Set(["length","size","percentage"]),$e=e=>R(e,_e,Ie),ea=e=>R(e,"position",Ie),aa=new Set(["image","url"]),ta=e=>R(e,aa,ua),oa=e=>R(e,"",ra),O=()=>!0,R=(e,a,t)=>{let o=xe.exec(e);return o?o[1]?typeof a=="string"?o[1]===a:a.has(o[1]):t(o[2]):!1},la=e=>Ze.test(e)&&!Je.test(e),Ie=()=>!1,ra=e=>Qe.test(e),ua=e=>je.test(e);var da=()=>{let e=n("colors"),a=n("spacing"),t=n("blur"),o=n("brightness"),r=n("borderColor"),l=n("borderRadius"),d=n("borderSpacing"),u=n("borderWidth"),f=n("contrast"),i=n("grayscale"),p=n("hueRotate"),I=n("invert"),g=n("gap"),w=n("gradientColorStops"),C=n("gradientColorStopPositions"),L=n("inset"),m=n("margin"),x=n("opacity"),b=n("padding"),T=n("saturate"),F=n("scale"),z=n("sepia"),te=n("skew"),oe=n("space"),le=n("translate"),Z=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",s,a],c=()=>[s,a],re=()=>["",A,B],E=()=>["auto",v,s],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",s],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[v,s];return {cacheSize:500,separator:":",theme:{colors:[O],spacing:[A,B],blur:["none","",M,s],brightness:k(),borderColor:[e],borderRadius:["none","","full",M,s],borderSpacing:c(),borderWidth:re(),contrast:k(),grayscale:q(),hueRotate:k(),invert:q(),gap:c(),gradientColorStops:[e],gradientColorStopPositions:[Ye,B],inset:Q(),margin:Q(),opacity:k(),padding:c(),saturate:k(),scale:k(),sepia:q(),skew:k(),space:c(),translate:c()},classGroups:{aspect:[{aspect:["auto","square","video",s]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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:[...ue(),s]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",U,s]}],basis:[{basis:Q()}],"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:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",U,s]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",U,s]},s]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[U,s]},s]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"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",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"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:[M]},M]}],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",M,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[O]}],"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",v,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,s]}],"list-image":[{"list-image":["none",s]}],"list-style-type":[{list:["none","disc","decimal",s]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,B]}],"underline-offset":[{"underline-offset":["auto",A,s]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:c()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),ea]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$e]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ta]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:V()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[A,s]}],"outline-w":[{outline:[A,B]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[A,B]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,oa]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",M,s]}],grayscale:[{grayscale:[i]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[I]}],saturate:[{saturate:[T]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",s]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",s]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",s]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[U,s]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",s]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,B,Y]}],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 ge=We(da);function h(...e){return ge(ie(e))}var ia=tailwindVariants.tv({slots:{container:"flex items-center justify-center font-inter text-base font-semibold ring-inset transition-all",icon:""},variants:{variant:{contained:{},secondary:{},outlined:{},ghost:{},standard:{}},size:{lg:{container:"h-12 w-12 rounded-lg",icon:"h-6 w-6"},md:{container:"h-10 w-10 rounded-lg",icon:"h-6 w-6"},sm:{container:"h-8 w-8 rounded-lg",icon:"h-4.5 w-4.5"},xs:{container:"h-5.5 w-5.5 rounded",icon:"h-4.5 w-4.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:!0,className:{container:"cursor-not-allowed text-neutral-400"}},{disabled:!1,className:{container:"cursor-pointer"}},{disabled:!1,variant:"contained",className:{container:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0"}},{disabled:!0,variant:"contained",className:{container:"bg-neutral-100 ring-0"}},{disabled:!1,variant:"secondary",className:{container:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-[1.5px] active:ring-primary-700"}},{disabled:!0,variant:"secondary",className:{container:"ring-neutral-400 disabled:ring-[1.5px]"}},{disabled:!1,variant:"outlined",className:{container:"text-neutral-900 ring-[1.5px] ring-neutral-900 hover:bg-transparent-primary-20 focus:ring-[3px] active:bg-transparent-primary-40"}},{disabled:!0,variant:"outlined",className:{container:"text-neutral-400 ring-[1.5px] ring-neutral-400"}},{disabled:!1,variant:"ghost",className:{container:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0"}},{disabled:!0,variant:"ghost",className:{container:""}},{disabled:!1,variant:"standard",className:{container:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0"}},{disabled:!0,variant:"standard",className:{container:""}}],defaultVariants:{variant:"contained",size:"sm",disabled:!1}}),he=Me.forwardRef(({className:e,variant:a,disabled:t,Icon:o,size:r,type:l="button",...d},u)=>{let{container:f,icon:i}=ia({variant:a,size:r,disabled:t});return jsxRuntime.jsx("button",{ref:u,disabled:t,className:h(f(),e),type:l,...d,children:jsxRuntime.jsx(o,{className:i()})})});var Se=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),W=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var we={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 Pe=Me.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:d,...u},f)=>Me.createElement("svg",{ref:f,...we,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:W("lucide",r),...u},[...d.map(([i,p])=>Me.createElement(i,p)),...Array.isArray(l)?l:[l]]));var N=(e,a)=>{let t=Me.forwardRef(({className:o,...r},l)=>Me.createElement(Pe,{ref:l,iconNode:a,className:W(`lucide-${Se(e)}`,o),...r}));return t.displayName=`${e}`,t};var D=N("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var H=N("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ke=D;var Ae=H;var ee=Me.forwardRef(({className:e,children:a,onScrollEnd:t,isInfiniteScroll:o=!1,viewPortClassName:r,viewPortStyle:l,...d},u)=>{let f=Me.useRef(null);return Me.useEffect(()=>{if(!o)return;let i=()=>{if(f.current){let{scrollTop:I,scrollHeight:g,clientHeight:w}=f.current;I+w>=g-10&&t?.();}},p=f.current;return p?.addEventListener("scroll",i),()=>{p?.removeEventListener("scroll",i);}},[t,o]),Me.useImperativeHandle(u,()=>f.current,[f]),jsxRuntime.jsxs(P__namespace.Root,{className:h("relative overflow-hidden",e),...d,children:[jsxRuntime.jsx(P__namespace.Viewport,{ref:f,className:h("h-full w-full rounded-[inherit] [&>div]:!flex [&>div]:h-full [&>div]:flex-col",r),style:l,children:a}),jsxRuntime.jsx(Be,{forceMount:o},o?f.current?.scrollHeight:1),jsxRuntime.jsx(P__namespace.Corner,{})]})});ee.displayName=P__namespace.Root.displayName;var Be=Me.forwardRef(({className:e,orientation:a="vertical",...t},o)=>jsxRuntime.jsx(P__namespace.ScrollAreaScrollbar,{ref:o,orientation:a,className:h("flex touch-none select-none bg-neutral-100 transition-colors",a==="vertical"&&"h-full w-4 py-2",a==="horizontal"&&"h-4 flex-col px-2",e),...t,children:jsxRuntime.jsx(P__namespace.ScrollAreaThumb,{className:h("relative flex-1 rounded bg-primary-500",a==="vertical"&&"mx-1 w-2",a==="horizontal"&&"my-1 h-2")})}));Be.displayName=P__namespace.ScrollAreaScrollbar.displayName;var ha=tailwindVariants.tv({slots:{button:"flex flex-shrink-0 items-center justify-center gap-2 rounded-lg font-inter text-base font-semibold leading-[130%] transition-all ease-linear disabled:cursor-not-allowed disabled:ring-0",icon:"",loadingIcon:"absolute animate-spin text-neutral-400"},variants:{size:{lg:{button:"h-12 px-4",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},md:{button:"h-10 px-4 text-sm leading-[130%]",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},sm:{button:"h-8 gap-1 px-3 text-sm leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"},xs:{button:"h-6 gap-1 rounded-[6px] px-3 text-xs leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"}},variant:{contained:{button:"bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-400"},secondary:{button:"text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},outlined:{button:"leading-[130%] text-neutral-900 ring-[1.5px] ring-inset ring-neutral-900 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-primary-900 active:ring-[1.5px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400 [&:not([disabled])]:hover:bg-transparent-primary-20 [&:not([disabled])]:active:bg-transparent-primary-40"},ghost:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},standard:{button:"text-neutral-900 hover:bg-transparent-primary-20 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},link:{button:"text-primary-500 underline underline-offset-2 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-neutral-50/0 focus:text-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-400"},white:{button:"bg-neutral-50 text-neutral-900"}},loading:{true:{button:"disabled:text-neutral-50 disabled:text-opacity-0"}}},defaultVariants:{variant:"contained",size:"md",loading:!1,disabled:!1}}),De=Me.forwardRef(({children:e,className:a,variant:t,size:o,startIcon:r,endIcon:l,loading:d,disabled:u,type:f="button",StartIcon:i,EndIcon:p,...I},g)=>{let{button:w,icon:C,loadingIcon:L}=ha({variant:t,size:o,loading:d});return jsxRuntime.jsxs("button",{...I,ref:g,disabled:d||u,className:h(w(),a),type:f,children:[d&&jsxRuntime.jsx(ke,{className:L()}),r&&Me__default.default.cloneElement(r,{className:C()}),i&&jsxRuntime.jsx(i,{className:C()}),e,l&&Me__default.default.cloneElement(l,{className:C()}),p&&jsxRuntime.jsx(p,{className:C()})]})});var _t=({onOpenChange:e,...a})=>{let t=Me.useCallback(o=>{e?.(o.open);},[e]);return jsxRuntime.jsx(dialog.Dialog.Root,{unmountOnExit:!0,lazyMount:!0,onOpenChange:t,...a})},$t=dialog.Dialog.Trigger,eo=["sm","md","lg","xl"],Pa=Me.forwardRef(({children:e,className:a,size:t="sm",...o},r)=>jsxRuntime.jsxs(portal.Portal,{children:[jsxRuntime.jsx(dialog.Dialog.Backdrop,{className:"fixed inset-0 z-40 bg-neutral-900/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),jsxRuntime.jsx(dialog.Dialog.Positioner,{className:"fixed left-0 top-0 z-40 flex h-dvh w-dvw items-center justify-end",children:jsxRuntime.jsx(dialog.Dialog.Content,{ref:r,className:h("elevation-10 h-full bg-neutral-50 data-[state=closed]:animate-swipeOut data-[state=open]:animate-slideIn",t==="sm"&&"w-117.5",t==="md"&&"w-187",t==="lg"&&"w-235",t==="xl"&&"w-312",a),...o,children:jsxRuntime.jsx("div",{className:"flex h-full flex-1 flex-col",children:e})})})]}));Pa.displayName="DrawerStickyContent";var ka=Me.forwardRef(({children:e,className:a,title:t,buttons:o=[],description:r,...l},d)=>jsxRuntime.jsxs("div",{className:h("border-b-1 border-neutral-200 pb-3.75 pl-4.5 pt-2",a),ref:d,...l,children:[jsxRuntime.jsx(dialog.Dialog.CloseTrigger,{asChild:!0,children:jsxRuntime.jsx(Ae,{className:"ml-auto mr-2 size-6 cursor-pointer"})}),jsxRuntime.jsxs("div",{className:"mr-4.5 mt-2 flex items-center justify-between gap-4.5",children:[jsxRuntime.jsx(dialog.Dialog.Title,{className:"line-clamp-1 break-all font-jakarta text-2xl font-semibold leading-[130%] text-neutral-900",children:t}),!Array.isArray(o)&&o.visible!==!1&&jsxRuntime.jsx(De,{size:"sm",variant:"ghost",...o}),Array.isArray(o)&&jsxRuntime.jsx("div",{className:"flex gap-1",children:o.map(({visible:u=!0,...f},i)=>u?jsxRuntime.jsx(he,{variant:"ghost",size:"sm",...f},i):null)})]}),r&&jsxRuntime.jsx(dialog.Dialog.Description,{className:"mr-4.5 mt-1 line-clamp-2 font-inter text-sm leading-[130%] text-neutral-900",children:r})]}));ka.displayName="DrawerStickyHeader";var Aa=Me.forwardRef(({children:e,className:a,...t},o)=>jsxRuntime.jsx("div",{className:h("flex justify-end gap-3 border-t-1 border-neutral-200 px-4.5 pb-4.5 pt-4.25",a),ref:o,...t,children:e}));Aa.displayName="DrawerStickyFooter";var ya=Me.forwardRef(({children:e,className:a,...t},o)=>jsxRuntime.jsxs(ee,{viewPortClassName:"py-4 px-6",className:h("h-full",a),ref:o,...t,children:[e,jsxRuntime.jsx("div",{className:"min-h-4"})]}));ya.displayName="DrawerStickyBody";var ao=dialog.Dialog.CloseTrigger;/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
(**
|
package/dist/drawer-sticky.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DrawerSticky,g as DrawerStickyBody,h as DrawerStickyCloseTrigger,d as DrawerStickyContent,f as DrawerStickyFooter,e as DrawerStickyHeader,c as DrawerStickySizes,b as DrawerStickyTrigger}from'./chunk-
|
|
1
|
+
export{a as DrawerSticky,g as DrawerStickyBody,h as DrawerStickyCloseTrigger,d as DrawerStickyContent,f as DrawerStickyFooter,e as DrawerStickyHeader,c as DrawerStickySizes,b as DrawerStickyTrigger}from'./chunk-MHCA2PNK.mjs';import'./chunk-WS2F7JWJ.mjs';import'./chunk-QHBCNAWO.mjs';import'./chunk-DZLL7IH6.mjs';import'./chunk-XJSC6PKJ.mjs';import'./chunk-2WINTZSS.mjs';
|