@epilot/volt-ui 1.0.0-alpha.7 → 1.0.0-alpha.8
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/index.es.js
CHANGED
|
@@ -707,44 +707,15 @@ function br() {
|
|
|
707
707
|
for (var r, n, t = 0, o = "", s = arguments.length; t < s; t++) (r = arguments[t]) && (n = mr(r)) && (o && (o += " "), o += n);
|
|
708
708
|
return o;
|
|
709
709
|
}
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
if (n?.variants == null) return lr(r, t?.class, t?.className);
|
|
713
|
-
const { variants: s, defaultVariants: l } = n, f = Object.keys(s).map((v) => {
|
|
714
|
-
const y = t?.[v], R = l?.[v];
|
|
715
|
-
if (y === null) return null;
|
|
716
|
-
const S = ir(y) || ir(R);
|
|
717
|
-
return s[v][S];
|
|
718
|
-
}), b = t && Object.entries(t).reduce((v, y) => {
|
|
719
|
-
let [R, S] = y;
|
|
720
|
-
return S === void 0 || (v[R] = S), v;
|
|
721
|
-
}, {}), d = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((v, y) => {
|
|
722
|
-
let { class: R, className: S, ...D } = y;
|
|
723
|
-
return Object.entries(D).every((j) => {
|
|
724
|
-
let [z, W] = j;
|
|
725
|
-
return Array.isArray(W) ? W.includes({
|
|
726
|
-
...l,
|
|
727
|
-
...b
|
|
728
|
-
}[z]) : {
|
|
729
|
-
...l,
|
|
730
|
-
...b
|
|
731
|
-
}[z] === W;
|
|
732
|
-
}) ? [
|
|
733
|
-
...v,
|
|
734
|
-
R,
|
|
735
|
-
S
|
|
736
|
-
] : v;
|
|
737
|
-
}, []);
|
|
738
|
-
return lr(r, f, d, t?.class, t?.className);
|
|
739
|
-
}, Le = "-", ct = (r) => {
|
|
740
|
-
const n = dt(r), {
|
|
710
|
+
const Le = "-", lt = (r) => {
|
|
711
|
+
const n = ut(r), {
|
|
741
712
|
conflictingClassGroups: t,
|
|
742
713
|
conflictingClassGroupModifiers: o
|
|
743
714
|
} = r;
|
|
744
715
|
return {
|
|
745
716
|
getClassGroupId: (f) => {
|
|
746
717
|
const b = f.split(Le);
|
|
747
|
-
return b[0] === "" && b.length !== 1 && b.shift(), gr(b, n) ||
|
|
718
|
+
return b[0] === "" && b.length !== 1 && b.shift(), gr(b, n) || ct(f);
|
|
748
719
|
},
|
|
749
720
|
getConflictingClassGroupIds: (f, b) => {
|
|
750
721
|
const d = t[f] || [];
|
|
@@ -763,13 +734,13 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
763
734
|
return n.validators.find(({
|
|
764
735
|
validator: f
|
|
765
736
|
}) => f(l))?.classGroupId;
|
|
766
|
-
},
|
|
767
|
-
if (
|
|
768
|
-
const n =
|
|
737
|
+
}, ir = /^\[(.+)\]$/, ct = (r) => {
|
|
738
|
+
if (ir.test(r)) {
|
|
739
|
+
const n = ir.exec(r)[1], t = n?.substring(0, n.indexOf(":"));
|
|
769
740
|
if (t)
|
|
770
741
|
return "arbitrary.." + t;
|
|
771
742
|
}
|
|
772
|
-
},
|
|
743
|
+
}, ut = (r) => {
|
|
773
744
|
const {
|
|
774
745
|
theme: n,
|
|
775
746
|
classGroups: t
|
|
@@ -783,12 +754,12 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
783
754
|
}, De = (r, n, t, o) => {
|
|
784
755
|
r.forEach((s) => {
|
|
785
756
|
if (typeof s == "string") {
|
|
786
|
-
const l = s === "" ? n :
|
|
757
|
+
const l = s === "" ? n : lr(n, s);
|
|
787
758
|
l.classGroupId = t;
|
|
788
759
|
return;
|
|
789
760
|
}
|
|
790
761
|
if (typeof s == "function") {
|
|
791
|
-
if (
|
|
762
|
+
if (dt(s)) {
|
|
792
763
|
De(s(o), n, t, o);
|
|
793
764
|
return;
|
|
794
765
|
}
|
|
@@ -799,10 +770,10 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
799
770
|
return;
|
|
800
771
|
}
|
|
801
772
|
Object.entries(s).forEach(([l, f]) => {
|
|
802
|
-
De(f,
|
|
773
|
+
De(f, lr(n, l), t, o);
|
|
803
774
|
});
|
|
804
775
|
});
|
|
805
|
-
},
|
|
776
|
+
}, lr = (r, n) => {
|
|
806
777
|
let t = r;
|
|
807
778
|
return n.split(Le).forEach((o) => {
|
|
808
779
|
t.nextPart.has(o) || t.nextPart.set(o, {
|
|
@@ -810,7 +781,7 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
810
781
|
validators: []
|
|
811
782
|
}), t = t.nextPart.get(o);
|
|
812
783
|
}), t;
|
|
813
|
-
},
|
|
784
|
+
}, dt = (r) => r.isThemeGetter, ft = (r) => {
|
|
814
785
|
if (r < 1)
|
|
815
786
|
return {
|
|
816
787
|
get: () => {
|
|
@@ -834,7 +805,7 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
834
805
|
t.has(l) ? t.set(l, f) : s(l, f);
|
|
835
806
|
}
|
|
836
807
|
};
|
|
837
|
-
}, We = "!", Ge = ":",
|
|
808
|
+
}, We = "!", Ge = ":", pt = Ge.length, mt = (r) => {
|
|
838
809
|
const {
|
|
839
810
|
prefix: n,
|
|
840
811
|
experimentalParseClassName: t
|
|
@@ -846,7 +817,7 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
846
817
|
let z = s[j];
|
|
847
818
|
if (f === 0 && b === 0) {
|
|
848
819
|
if (z === Ge) {
|
|
849
|
-
l.push(s.slice(d, j)), d = j +
|
|
820
|
+
l.push(s.slice(d, j)), d = j + pt;
|
|
850
821
|
continue;
|
|
851
822
|
}
|
|
852
823
|
if (z === "/") {
|
|
@@ -856,7 +827,7 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
856
827
|
}
|
|
857
828
|
z === "[" ? f++ : z === "]" ? f-- : z === "(" ? b++ : z === ")" && b--;
|
|
858
829
|
}
|
|
859
|
-
const y = l.length === 0 ? s : s.substring(d), R =
|
|
830
|
+
const y = l.length === 0 ? s : s.substring(d), R = bt(y), S = R !== y, D = v && v > d ? v - d : void 0;
|
|
860
831
|
return {
|
|
861
832
|
modifiers: l,
|
|
862
833
|
hasImportantModifier: S,
|
|
@@ -882,7 +853,7 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
882
853
|
});
|
|
883
854
|
}
|
|
884
855
|
return o;
|
|
885
|
-
},
|
|
856
|
+
}, bt = (r) => r.endsWith(We) ? r.substring(0, r.length - 1) : r.startsWith(We) ? r.substring(1) : r, gt = (r) => {
|
|
886
857
|
const n = Object.fromEntries(r.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
887
858
|
return (o) => {
|
|
888
859
|
if (o.length <= 1)
|
|
@@ -893,18 +864,18 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
893
864
|
f[0] === "[" || n[f] ? (s.push(...l.sort(), f), l = []) : l.push(f);
|
|
894
865
|
}), s.push(...l.sort()), s;
|
|
895
866
|
};
|
|
896
|
-
},
|
|
897
|
-
cache:
|
|
898
|
-
parseClassName:
|
|
899
|
-
sortModifiers:
|
|
900
|
-
...
|
|
901
|
-
}),
|
|
867
|
+
}, vt = (r) => ({
|
|
868
|
+
cache: ft(r.cacheSize),
|
|
869
|
+
parseClassName: mt(r),
|
|
870
|
+
sortModifiers: gt(r),
|
|
871
|
+
...lt(r)
|
|
872
|
+
}), ht = /\s+/, yt = (r, n) => {
|
|
902
873
|
const {
|
|
903
874
|
parseClassName: t,
|
|
904
875
|
getClassGroupId: o,
|
|
905
876
|
getConflictingClassGroupIds: s,
|
|
906
877
|
sortModifiers: l
|
|
907
|
-
} = n, f = [], b = r.trim().split(
|
|
878
|
+
} = n, f = [], b = r.trim().split(ht);
|
|
908
879
|
let d = "";
|
|
909
880
|
for (let v = b.length - 1; v >= 0; v -= 1) {
|
|
910
881
|
const y = b[v], {
|
|
@@ -943,7 +914,7 @@ const ir = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, lr = br, l
|
|
|
943
914
|
}
|
|
944
915
|
return d;
|
|
945
916
|
};
|
|
946
|
-
function
|
|
917
|
+
function xt() {
|
|
947
918
|
let r = 0, n, t, o = "";
|
|
948
919
|
for (; r < arguments.length; )
|
|
949
920
|
(n = arguments[r++]) && (t = vr(n)) && (o && (o += " "), o += t);
|
|
@@ -957,38 +928,38 @@ const vr = (r) => {
|
|
|
957
928
|
r[o] && (n = vr(r[o])) && (t && (t += " "), t += n);
|
|
958
929
|
return t;
|
|
959
930
|
};
|
|
960
|
-
function
|
|
931
|
+
function wt(r, ...n) {
|
|
961
932
|
let t, o, s, l = f;
|
|
962
933
|
function f(d) {
|
|
963
934
|
const v = n.reduce((y, R) => R(y), r());
|
|
964
|
-
return t =
|
|
935
|
+
return t = vt(v), o = t.cache.get, s = t.cache.set, l = b, b(d);
|
|
965
936
|
}
|
|
966
937
|
function b(d) {
|
|
967
938
|
const v = o(d);
|
|
968
939
|
if (v)
|
|
969
940
|
return v;
|
|
970
|
-
const y =
|
|
941
|
+
const y = yt(d, t);
|
|
971
942
|
return s(d, y), y;
|
|
972
943
|
}
|
|
973
944
|
return function() {
|
|
974
|
-
return l(
|
|
945
|
+
return l(xt.apply(null, arguments));
|
|
975
946
|
};
|
|
976
947
|
}
|
|
977
948
|
const O = (r) => {
|
|
978
949
|
const n = (t) => t[r] || [];
|
|
979
950
|
return n.isThemeGetter = !0, n;
|
|
980
|
-
}, hr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
951
|
+
}, hr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, kt = /^\d+\/\d+$/, Rt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Et = /\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$/, _t = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ct = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, St = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pe = (r) => kt.test(r), h = (r) => !!r && !Number.isNaN(Number(r)), ee = (r) => !!r && Number.isInteger(Number(r)), Fe = (r) => r.endsWith("%") && h(r.slice(0, -1)), H = (r) => Rt.test(r), Pt = () => !0, Tt = (r) => (
|
|
981
952
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
982
953
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
983
954
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
984
|
-
|
|
985
|
-
), xr = () => !1,
|
|
955
|
+
Et.test(r) && !_t.test(r)
|
|
956
|
+
), xr = () => !1, Ot = (r) => Ct.test(r), At = (r) => St.test(r), jt = (r) => !c(r) && !u(r), zt = (r) => me(r, Rr, xr), c = (r) => hr.test(r), ie = (r) => me(r, Er, Tt), Ve = (r) => me(r, Nt, h), cr = (r) => me(r, wr, xr), It = (r) => me(r, kr, At), Te = (r) => me(r, _r, Ot), u = (r) => yr.test(r), Re = (r) => be(r, Er), Mt = (r) => be(r, Dt), ur = (r) => be(r, wr), Ft = (r) => be(r, Rr), Vt = (r) => be(r, kr), Oe = (r) => be(r, _r, !0), me = (r, n, t) => {
|
|
986
957
|
const o = hr.exec(r);
|
|
987
958
|
return o ? o[1] ? n(o[1]) : t(o[2]) : !1;
|
|
988
959
|
}, be = (r, n, t = !1) => {
|
|
989
960
|
const o = yr.exec(r);
|
|
990
961
|
return o ? o[1] ? n(o[1]) : t : !1;
|
|
991
|
-
}, wr = (r) => r === "position" || r === "percentage", kr = (r) => r === "image" || r === "url", Rr = (r) => r === "length" || r === "size" || r === "bg-size", Er = (r) => r === "length",
|
|
962
|
+
}, wr = (r) => r === "position" || r === "percentage", kr = (r) => r === "image" || r === "url", Rr = (r) => r === "length" || r === "size" || r === "bg-size", Er = (r) => r === "length", Nt = (r) => r === "number", Dt = (r) => r === "family-name", _r = (r) => r === "shadow", Wt = () => {
|
|
992
963
|
const r = O("color"), n = O("font"), t = O("text"), o = O("font-weight"), s = O("tracking"), l = O("leading"), f = O("breakpoint"), b = O("container"), d = O("spacing"), v = O("radius"), y = O("shadow"), R = O("inset-shadow"), S = O("text-shadow"), D = O("drop-shadow"), j = O("blur"), z = O("perspective"), W = O("aspect"), F = O("ease"), P = O("animate"), re = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [
|
|
993
964
|
"center",
|
|
994
965
|
"top",
|
|
@@ -1009,11 +980,11 @@ const O = (r) => {
|
|
|
1009
980
|
"left-bottom"
|
|
1010
981
|
], Z = () => [...X(), u, c], q = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", "contain", "none"], g = () => [u, c, d], G = () => [pe, "full", "auto", ...g()], Ee = () => [ee, "none", "subgrid", u, c], _e = () => ["auto", {
|
|
1011
982
|
span: ["full", ee, u, c]
|
|
1012
|
-
}, ee, u, c], oe = () => [ee, "auto", u, c], Y = () => ["auto", "min", "max", "fr", u, c], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...g()], J = () => [pe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], p = () => [r, u, c], ge = () => [...X(),
|
|
983
|
+
}, ee, u, c], oe = () => [ee, "auto", u, c], Y = () => ["auto", "min", "max", "fr", u, c], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...g()], J = () => [pe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], p = () => [r, u, c], ge = () => [...X(), ur, cr, {
|
|
1013
984
|
position: [u, c]
|
|
1014
985
|
}], ve = () => ["no-repeat", {
|
|
1015
986
|
repeat: ["", "x", "y", "space", "round"]
|
|
1016
|
-
}], he = () => ["auto", "cover", "contain",
|
|
987
|
+
}], he = () => ["auto", "cover", "contain", Ft, zt, {
|
|
1017
988
|
size: [u, c]
|
|
1018
989
|
}], le = () => [Fe, Re, ie], A = () => [
|
|
1019
990
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -1023,7 +994,7 @@ const O = (r) => {
|
|
|
1023
994
|
v,
|
|
1024
995
|
u,
|
|
1025
996
|
c
|
|
1026
|
-
], I = () => ["", h, Re, ie], ce = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [h, Fe,
|
|
997
|
+
], I = () => ["", h, Re, ie], ce = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [h, Fe, ur, cr], ne = () => [
|
|
1027
998
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1028
999
|
"",
|
|
1029
1000
|
"none",
|
|
@@ -1038,11 +1009,11 @@ const O = (r) => {
|
|
|
1038
1009
|
aspect: ["video"],
|
|
1039
1010
|
blur: [H],
|
|
1040
1011
|
breakpoint: [H],
|
|
1041
|
-
color: [
|
|
1012
|
+
color: [Pt],
|
|
1042
1013
|
container: [H],
|
|
1043
1014
|
"drop-shadow": [H],
|
|
1044
1015
|
ease: ["in", "out", "in-out"],
|
|
1045
|
-
font: [
|
|
1016
|
+
font: [jt],
|
|
1046
1017
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1047
1018
|
"inset-shadow": [H],
|
|
1048
1019
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1754,7 +1725,7 @@ const O = (r) => {
|
|
|
1754
1725
|
* @see https://tailwindcss.com/docs/font-family
|
|
1755
1726
|
*/
|
|
1756
1727
|
"font-family": [{
|
|
1757
|
-
font: [
|
|
1728
|
+
font: [Mt, c, n]
|
|
1758
1729
|
}],
|
|
1759
1730
|
/**
|
|
1760
1731
|
* Font Variant Numeric
|
|
@@ -2009,7 +1980,7 @@ const O = (r) => {
|
|
|
2009
1980
|
}, ee, u, c],
|
|
2010
1981
|
radial: ["", u, c],
|
|
2011
1982
|
conic: [ee, u, c]
|
|
2012
|
-
},
|
|
1983
|
+
}, Vt, It]
|
|
2013
1984
|
}],
|
|
2014
1985
|
/**
|
|
2015
1986
|
* Background Color
|
|
@@ -3458,7 +3429,36 @@ const O = (r) => {
|
|
|
3458
3429
|
},
|
|
3459
3430
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3460
3431
|
};
|
|
3461
|
-
},
|
|
3432
|
+
}, Gt = /* @__PURE__ */ wt(Wt), Lt = (...r) => Gt(br(r)), dr = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, fr = br, $t = (r, n) => (t) => {
|
|
3433
|
+
var o;
|
|
3434
|
+
if (n?.variants == null) return fr(r, t?.class, t?.className);
|
|
3435
|
+
const { variants: s, defaultVariants: l } = n, f = Object.keys(s).map((v) => {
|
|
3436
|
+
const y = t?.[v], R = l?.[v];
|
|
3437
|
+
if (y === null) return null;
|
|
3438
|
+
const S = dr(y) || dr(R);
|
|
3439
|
+
return s[v][S];
|
|
3440
|
+
}), b = t && Object.entries(t).reduce((v, y) => {
|
|
3441
|
+
let [R, S] = y;
|
|
3442
|
+
return S === void 0 || (v[R] = S), v;
|
|
3443
|
+
}, {}), d = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((v, y) => {
|
|
3444
|
+
let { class: R, className: S, ...D } = y;
|
|
3445
|
+
return Object.entries(D).every((j) => {
|
|
3446
|
+
let [z, W] = j;
|
|
3447
|
+
return Array.isArray(W) ? W.includes({
|
|
3448
|
+
...l,
|
|
3449
|
+
...b
|
|
3450
|
+
}[z]) : {
|
|
3451
|
+
...l,
|
|
3452
|
+
...b
|
|
3453
|
+
}[z] === W;
|
|
3454
|
+
}) ? [
|
|
3455
|
+
...v,
|
|
3456
|
+
R,
|
|
3457
|
+
S
|
|
3458
|
+
] : v;
|
|
3459
|
+
}, []);
|
|
3460
|
+
return fr(r, f, d, t?.class, t?.className);
|
|
3461
|
+
}, Ut = $t(
|
|
3462
3462
|
"volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-duration-150 volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 volt-ui-[&_svg]:shrink-0 volt-ui-[&_svg]:pointer-events-none",
|
|
3463
3463
|
{
|
|
3464
3464
|
variants: {
|
|
@@ -3492,7 +3492,7 @@ const O = (r) => {
|
|
|
3492
3492
|
return /* @__PURE__ */ Ne.jsx(
|
|
3493
3493
|
d,
|
|
3494
3494
|
{
|
|
3495
|
-
className:
|
|
3495
|
+
className: Lt(Ut({ variant: r, size: n }), o),
|
|
3496
3496
|
ref: b,
|
|
3497
3497
|
type: t ? void 0 : s,
|
|
3498
3498
|
...f,
|
package/dist/index.umd.js
CHANGED
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
`+_+e}}var re=!1,H;{var Ee=typeof WeakMap=="function"?WeakMap:Map;H=new Ee}function le(e,a){if(!e||re)return"";{var i=H.get(e);if(i!==void 0)return i}var m;re=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var E;E=be.current,be.current=null,I();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(N){m=N}Reflect.construct(e,[],w)}else{try{w.call()}catch(N){m=N}e.call(w.prototype)}}else{try{throw Error()}catch(N){m=N}e()}}catch(N){if(N&&m&&typeof N.stack=="string"){for(var x=N.stack.split(`
|
|
19
19
|
`),M=m.stack.split(`
|
|
20
20
|
`),C=x.length-1,T=M.length-1;C>=1&&T>=0&&x[C]!==M[T];)T--;for(;C>=1&&T>=0;C--,T--)if(x[C]!==M[T]){if(C!==1||T!==1)do if(C--,T--,T<0||x[C]!==M[T]){var B=`
|
|
21
|
-
`+x[C].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,B),B}while(C>=1&&T>=0);break}}}finally{re=!1,be.current=E,me(),Error.prepareStackTrace=k}var ve=e?e.displayName||e.name:"",ce=ve?ie(ve):"";return typeof e=="function"&&H.set(e,ce),ce}function
|
|
21
|
+
`+x[C].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,B),B}while(C>=1&&T>=0);break}}}finally{re=!1,be.current=E,me(),Error.prepareStackTrace=k}var ve=e?e.displayName||e.name:"",ce=ve?ie(ve):"";return typeof e=="function"&&H.set(e,ce),ce}function wt(e,a,i){return le(e,!1)}function kt(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function je(e,a,i){if(e==null)return"";if(typeof e=="function")return le(e,kt(e));if(typeof e=="string")return ie(e);switch(e){case h:return ie("Suspense");case y:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return wt(e.render);case R:return je(e.type,a,i);case S:{var m=e,k=m._payload,E=m._init;try{return je(E(k),a,i)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,mr={},br=V.ReactDebugCurrentFrame;function Ae(e){if(e){var a=e._owner,i=je(e.type,e._source,a?a.type:null);br.setExtraStackFrame(i)}else br.setExtraStackFrame(null)}function Rt(e,a,i,m,k){{var E=Function.call.bind(_e);for(var w in e)if(E(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var M=Error((m||"React class")+": "+i+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}x=e[w](a,w,m,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){x=C}x&&!(x instanceof Error)&&(Ae(k),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",i,w,typeof x),Ae(null)),x instanceof Error&&!(x.message in mr)&&(mr[x.message]=!0,Ae(k),P("Failed %s type: %s",i,x.message),Ae(null))}}}var Et=Array.isArray;function We(e){return Et(e)}function _t(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,i=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Ct(e){try{return gr(e),!1}catch{return!0}}function gr(e){return""+e}function vr(e){if(Ct(e))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_t(e)),gr(e)}var hr=V.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},yr,xr;function Pt(e){if(_e.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Tt(e){if(_e.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Ot(e,a){typeof e.ref=="string"&&hr.current}function jt(e,a){{var i=function(){yr||(yr=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function At(e,a){{var i=function(){xr||(xr=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var zt=function(e,a,i,m,k,E,w){var x={$$typeof:n,type:e,key:a,ref:i,props:w,_owner:E};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function It(e,a,i,m,k){{var E,w={},x=null,M=null;i!==void 0&&(vr(i),x=""+i),Tt(a)&&(vr(a.key),x=""+a.key),Pt(a)&&(M=a.ref,Ot(a,k));for(E in a)_e.call(a,E)&&!St.hasOwnProperty(E)&&(w[E]=a[E]);if(e&&e.defaultProps){var C=e.defaultProps;for(E in C)w[E]===void 0&&(w[E]=C[E])}if(x||M){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;x&&jt(w,T),M&&At(w,T)}return zt(e,x,M,k,m,hr.current,w)}}var Ge=V.ReactCurrentOwner,wr=V.ReactDebugCurrentFrame;function ge(e){if(e){var a=e._owner,i=je(e.type,e._source,a?a.type:null);wr.setExtraStackFrame(i)}else wr.setExtraStackFrame(null)}var Le;Le=!1;function $e(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function kr(){{if(Ge.current){var e=U(Ge.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Mt(e){return""}var Rr={};function Ft(e){{var a=kr();if(!a){var i=typeof e=="string"?e:e.displayName||e.name;i&&(a=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+i+">.")}return a}}function Er(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=
|
|
25
|
+
Check the top-level render call using <`+i+">.")}return a}}function Er(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Ft(a);if(Rr[i])return;Rr[i]=!0;var m="";e&&e._owner&&e._owner!==Ge.current&&(m=" It was passed a child from "+U(e._owner.type)+"."),ge(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,m),ge(null)}}function _r(e,a){{if(typeof e!="object")return;if(We(e))for(var i=0;i<e.length;i++){var m=e[i];$e(m)&&Er(m,a)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var k=W(e);if(typeof k=="function"&&k!==e.entries)for(var E=k.call(e),w;!(w=E.next()).done;)$e(w.value)&&Er(w.value,a)}}}function Vt(e){{var a=e.type;if(a==null||typeof a=="string")return;var i;if(typeof a=="function")i=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===d||a.$$typeof===R))i=a.propTypes;else return;if(i){var m=U(a);Rt(i,e.props,"prop",m,e)}else if(a.PropTypes!==void 0&&!Le){Le=!0;var k=U(a);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var a=Object.keys(e.props),i=0;i<a.length;i++){var m=a[i];if(m!=="children"&&m!=="key"){ge(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),ge(null);break}}e.ref!==null&&(ge(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),ge(null))}}var Cr={};function Sr(e,a,i,m,k,E){{var w=Te(e);if(!w){var x="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=Mt();M?x+=M:x+=kr();var C;e===null?C="null":We(e)?C="array":e!==void 0&&e.$$typeof===n?(C="<"+(U(e.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,x)}var T=It(e,a,i,k,E);if(T==null)return T;if(w){var B=a.children;if(B!==void 0)if(m)if(We(B)){for(var ve=0;ve<B.length;ve++)_r(B[ve],e);Object.freeze&&Object.freeze(B)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _r(B,e)}if(_e.call(a,"key")){var ce=U(e),N=Object.keys(a).filter(function(Bt){return Bt!=="key"}),Be=N.length>0?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}";if(!Cr[ce+Be]){var $t=N.length>0?"{"+N.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Be,ce,Bt,ce),Cr[ce+Be]=!0}}return e===o?Dt(T):Nt(T),T}}function Wt(e,a,i){return Sr(e,a,i,!0)}function Gt(e,a,i){return Sr(e,a,i,!1)}var Lt=Gt,$t=Wt;ye.Fragment=o,ye.jsx=Lt,ye.jsxs=$t})()),ye}var qe;function jr(){return qe||(qe=1,process.env.NODE_ENV==="production"?Ce.exports=Tr():Ce.exports=Or()),Ce.exports}var ze=jr();function Je(r,n){if(typeof r=="function")return r(n);r!=null&&(r.current=n)}function Ar(...r){return n=>{let t=!1;const o=r.map(s=>{const l=Je(s,n);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let s=0;s<o.length;s++){const l=o[s];typeof l=="function"?l():Je(r[s],null)}}}}function zr(r){const n=Mr(r),t=F.forwardRef((o,s)=>{const{children:l,...f}=o,b=F.Children.toArray(l),d=b.find(Vr);if(d){const h=d.props.children,y=b.map(R=>R===d?F.Children.count(h)>1?F.Children.only(null):F.isValidElement(h)?h.props.children:null:R);return ze.jsx(n,{...f,ref:s,children:F.isValidElement(h)?F.cloneElement(h,void 0,y):null})}return ze.jsx(n,{...f,ref:s,children:l})});return t.displayName=`${r}.Slot`,t}var Ir=zr("Slot");function Mr(r){const n=F.forwardRef((t,o)=>{const{children:s,...l}=t;if(F.isValidElement(s)){const f=Dr(s),b=Nr(l,s.props);return s.type!==F.Fragment&&(b.ref=o?Ar(o,f):f),F.cloneElement(s,b)}return F.Children.count(s)>1?F.Children.only(null):null});return n.displayName=`${r}.SlotClone`,n}var Fr=Symbol("radix.slottable");function Vr(r){return F.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Fr}function Nr(r,n){const t={...n};for(const o in n){const s=r[o],l=n[o];/^on[A-Z]/.test(o)?s&&l?t[o]=(...b)=>{const d=l(...b);return s(...b),d}:s&&(t[o]=s):o==="style"?t[o]={...s,...l}:o==="className"&&(t[o]=[s,l].filter(Boolean).join(" "))}return{...r,...t}}function Dr(r){let n=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?r.ref:(n=Object.getOwnPropertyDescriptor(r,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}function Ke(r){var n,t,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(n=0;n<s;n++)r[n]&&(t=Ke(r[n]))&&(o&&(o+=" "),o+=t)}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function He(){for(var r,n,t=0,o="",s=arguments.length;t<s;t++)(r=arguments[t])&&(n=Ke(r))&&(o&&(o+=" "),o+=n);return o}const Xe=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Ze=He,Wr=(r,n)=>t=>{var o;if(n?.variants==null)return Ze(r,t?.class,t?.className);const{variants:s,defaultVariants:l}=n,f=Object.keys(s).map(h=>{const y=t?.[h],R=l?.[h];if(y===null)return null;const S=Xe(y)||Xe(R);return s[h][S]}),b=t&&Object.entries(t).reduce((h,y)=>{let[R,S]=y;return S===void 0||(h[R]=S),h},{}),d=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((h,y)=>{let{class:R,className:S,...D}=y;return Object.entries(D).every(A=>{let[z,W]=A;return Array.isArray(W)?W.includes({...l,...b}[z]):{...l,...b}[z]===W})?[...h,R,S]:h},[]);return Ze(r,f,d,t?.class,t?.className)},Ie="-",Gr=r=>{const n=$r(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:f=>{const b=f.split(Ie);return b[0]===""&&b.length!==1&&b.shift(),Qe(b,n)||Lr(f)},getConflictingClassGroupIds:(f,b)=>{const d=t[f]||[];return b&&o[f]?[...d,...o[f]]:d}}},Qe=(r,n)=>{if(r.length===0)return n.classGroupId;const t=r[0],o=n.nextPart.get(t),s=o?Qe(r.slice(1),o):void 0;if(s)return s;if(n.validators.length===0)return;const l=r.join(Ie);return n.validators.find(({validator:f})=>f(l))?.classGroupId},er=/^\[(.+)\]$/,Lr=r=>{if(er.test(r)){const n=er.exec(r)[1],t=n?.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},$r=r=>{const{theme:n,classGroups:t}=r,o={nextPart:new Map,validators:[]};for(const s in t)Me(t[s],o,s,n);return o},Me=(r,n,t,o)=>{r.forEach(s=>{if(typeof s=="string"){const l=s===""?n:rr(n,s);l.classGroupId=t;return}if(typeof s=="function"){if(Br(s)){Me(s(o),n,t,o);return}n.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([l,f])=>{Me(f,rr(n,l),t,o)})})},rr=(r,n)=>{let t=r;return n.split(Ie).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Br=r=>r.isThemeGetter,Ur=r=>{if(r<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,o=new Map;const s=(l,f)=>{t.set(l,f),n++,n>r&&(n=0,o=t,t=new Map)};return{get(l){let f=t.get(l);if(f!==void 0)return f;if((f=o.get(l))!==void 0)return s(l,f),f},set(l,f){t.has(l)?t.set(l,f):s(l,f)}}},Fe="!",Ve=":",Yr=Ve.length,qr=r=>{const{prefix:n,experimentalParseClassName:t}=r;let o=s=>{const l=[];let f=0,b=0,d=0,h;for(let A=0;A<s.length;A++){let z=s[A];if(f===0&&b===0){if(z===Ve){l.push(s.slice(d,A)),d=A+Yr;continue}if(z==="/"){h=A;continue}}z==="["?f++:z==="]"?f--:z==="("?b++:z===")"&&b--}const y=l.length===0?s:s.substring(d),R=Jr(y),S=R!==y,D=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:D}};if(n){const s=n+Ve,l=o;o=f=>f.startsWith(s)?l(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(t){const s=o;o=l=>t({className:l,parseClassName:s})}return o},Jr=r=>r.endsWith(Fe)?r.substring(0,r.length-1):r.startsWith(Fe)?r.substring(1):r,Kr=r=>{const n=Object.fromEntries(r.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let l=[];return o.forEach(f=>{f[0]==="["||n[f]?(s.push(...l.sort(),f),l=[]):l.push(f)}),s.push(...l.sort()),s}},Hr=r=>({cache:Ur(r.cacheSize),parseClassName:qr(r),sortModifiers:Kr(r),...Gr(r)}),Xr=/\s+/,Zr=(r,n)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:l}=n,f=[],b=r.trim().split(Xr);let d="";for(let h=b.length-1;h>=0;h-=1){const y=b[h],{isExternal:R,modifiers:S,hasImportantModifier:D,baseClassName:A,maybePostfixModifierPosition:z}=t(y);if(R){d=y+(d.length>0?" "+d:d);continue}let W=!!z,V=o(W?A.substring(0,z):A);if(!V){if(!W){d=y+(d.length>0?" "+d:d);continue}if(V=o(A),!V){d=y+(d.length>0?" "+d:d);continue}W=!1}const P=l(S).join(":"),ne=D?P+Fe:P,Q=ne+V;if(f.includes(Q))continue;f.push(Q);const ee=s(V,W);for(let K=0;K<ee.length;++K){const ae=ee[K];f.push(ne+ae)}d=y+(d.length>0?" "+d:d)}return d};function Qr(){let r=0,n,t,o="";for(;r<arguments.length;)(n=arguments[r++])&&(t=tr(n))&&(o&&(o+=" "),o+=t);return o}const tr=r=>{if(typeof r=="string")return r;let n,t="";for(let o=0;o<r.length;o++)r[o]&&(n=tr(r[o]))&&(t&&(t+=" "),t+=n);return t};function et(r,...n){let t,o,s,l=f;function f(d){const h=n.reduce((y,R)=>R(y),r());return t=Hr(h),o=t.cache.get,s=t.cache.set,l=b,b(d)}function b(d){const h=o(d);if(h)return h;const y=Zr(d,t);return s(d,y),y}return function(){return l(Qr.apply(null,arguments))}}const O=r=>{const n=t=>t[r]||[];return n.isThemeGetter=!0,n},or=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rt=/^\d+\/\d+$/,tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ot=/\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$/,nt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,at=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=r=>rt.test(r),v=r=>!!r&&!Number.isNaN(Number(r)),Z=r=>!!r&&Number.isInteger(Number(r)),Ne=r=>r.endsWith("%")&&v(r.slice(0,-1)),J=r=>tt.test(r),it=()=>!0,lt=r=>ot.test(r)&&!nt.test(r),ar=()=>!1,ct=r=>at.test(r),ut=r=>st.test(r),dt=r=>!c(r)&&!u(r),ft=r=>de(r,ur,ar),c=r=>or.test(r),oe=r=>de(r,dr,lt),De=r=>de(r,vt,v),sr=r=>de(r,lr,ar),pt=r=>de(r,cr,ut),Se=r=>de(r,fr,ct),u=r=>nr.test(r),xe=r=>fe(r,dr),mt=r=>fe(r,ht),ir=r=>fe(r,lr),bt=r=>fe(r,ur),gt=r=>fe(r,cr),Pe=r=>fe(r,fr,!0),de=(r,n,t)=>{const o=or.exec(r);return o?o[1]?n(o[1]):t(o[2]):!1},fe=(r,n,t=!1)=>{const o=nr.exec(r);return o?o[1]?n(o[1]):t:!1},lr=r=>r==="position"||r==="percentage",cr=r=>r==="image"||r==="url",ur=r=>r==="length"||r==="size"||r==="bg-size",dr=r=>r==="length",vt=r=>r==="number",ht=r=>r==="family-name",fr=r=>r==="shadow",yt=et(()=>{const r=O("color"),n=O("font"),t=O("text"),o=O("font-weight"),s=O("tracking"),l=O("leading"),f=O("breakpoint"),b=O("container"),d=O("spacing"),h=O("radius"),y=O("shadow"),R=O("inset-shadow"),S=O("text-shadow"),D=O("drop-shadow"),A=O("blur"),z=O("perspective"),W=O("aspect"),V=O("ease"),P=O("animate"),ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...Q(),u,c],K=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto","contain","none"],g=()=>[u,c,d],G=()=>[ue,"full","auto",...g()],Te=()=>[Z,"none","subgrid",u,c],Oe=()=>["auto",{span:["full",Z,u,c]},Z,u,c],se=()=>[Z,"auto",u,c],U=()=>["auto","min","max","fr",u,c],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...g()],q=()=>[ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],p=()=>[r,u,c],we=()=>[...Q(),ir,sr,{position:[u,c]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Re=()=>["auto","cover","contain",bt,ft,{size:[u,c]}],pe=()=>[Ne,xe,oe],j=()=>["","none","full",h,u,c],I=()=>["",v,xe,oe],me=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[v,Ne,ir,sr],ie=()=>["","none",A,u,c],re=()=>["none",v,u,c],H=()=>["none",v,u,c],Ee=()=>[v,u,c],le=()=>[ue,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[J],breakpoint:[J],color:[it],container:[J],"drop-shadow":[J],ease:["in","out","in-out"],font:[dt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[J],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[J],shadow:[J],spacing:["px",v],text:[J],"text-shadow":[J],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ue,c,u,W]}],container:["container"],columns:[{columns:[v,c,u,b]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Z,"auto",u,c]}],basis:[{basis:[ue,"full","auto",b,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,ue,"auto","initial","none",c]}],grow:[{grow:["",v,u,c]}],shrink:[{shrink:["",v,u,c]}],order:[{order:[Z,"first","last","none",u,c]}],"grid-cols":[{"grid-cols":Te()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":Te()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[b,"screen",...q()]}],"min-w":[{"min-w":[b,"screen","none",...q()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[f]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",t,xe,oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u,De]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ne,c]}],"font-family":[{font:[mt,c,n]}],"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:[s,u,c]}],"line-clamp":[{"line-clamp":[v,"none",u,De]}],leading:[{leading:[l,...g()]}],"list-image":[{"list-image":["none",u,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",u,oe]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[v,"auto",u,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:Re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Z,u,c],radial:["",u,c],conic:[Z,u,c]},gt,pt]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,u,c]}],"outline-w":[{outline:["",v,xe,oe]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",y,Pe,Se]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",R,Pe,Se]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[v,oe]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",S,Pe,Se]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[v,u,c]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[u,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:Re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,c]}],filter:[{filter:["","none",u,c]}],blur:[{blur:ie()}],brightness:[{brightness:[v,u,c]}],contrast:[{contrast:[v,u,c]}],"drop-shadow":[{"drop-shadow":["","none",D,Pe,Se]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",v,u,c]}],"hue-rotate":[{"hue-rotate":[v,u,c]}],invert:[{invert:["",v,u,c]}],saturate:[{saturate:[v,u,c]}],sepia:[{sepia:["",v,u,c]}],"backdrop-filter":[{"backdrop-filter":["","none",u,c]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[v,u,c]}],"backdrop-contrast":[{"backdrop-contrast":[v,u,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,u,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,u,c]}],"backdrop-invert":[{"backdrop-invert":["",v,u,c]}],"backdrop-opacity":[{"backdrop-opacity":[v,u,c]}],"backdrop-saturate":[{"backdrop-saturate":[v,u,c]}],"backdrop-sepia":[{"backdrop-sepia":["",v,u,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",u,c]}],ease:[{ease:["linear","initial",V,u,c]}],delay:[{delay:[v,u,c]}],animate:[{animate:["none",P,u,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,u,c]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[u,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"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",u,c]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[v,xe,oe,De]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),xt=(...r)=>yt(He(r)),wt=Wr("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-duration-150 volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 volt-ui-[&_svg]:shrink-0 volt-ui-[&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent"},size:{sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-has-[>svg]:px-2.5",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-8 volt-ui-text-base volt-ui-has-[>svg]:px-3",large:"volt-ui-px-5 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-has-[>svg]:px-4"}},defaultVariants:{variant:"primary",size:"base"}}),pr=X.forwardRef(({variant:r,size:n,asChild:t=!1,className:o,type:s="button",children:l,...f},b)=>{const d=t?Ir:"button";return ze.jsx(d,{className:xt(wt({variant:r,size:n}),o),ref:b,type:t?void 0:s,...f,children:l})});pr.displayName="Button",te.Button=pr,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})}));
|
|
30
|
+
<%s key={someKey} {...props} />`,Be,ce,$t,ce),Cr[ce+Be]=!0}}return e===o?Nt(T):Vt(T),T}}function Dt(e,a,i){return Sr(e,a,i,!0)}function Wt(e,a,i){return Sr(e,a,i,!1)}var Gt=Wt,Lt=Dt;ye.Fragment=o,ye.jsx=Gt,ye.jsxs=Lt})()),ye}var qe;function jr(){return qe||(qe=1,process.env.NODE_ENV==="production"?Ce.exports=Tr():Ce.exports=Or()),Ce.exports}var ze=jr();function Je(r,n){if(typeof r=="function")return r(n);r!=null&&(r.current=n)}function Ar(...r){return n=>{let t=!1;const o=r.map(s=>{const l=Je(s,n);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let s=0;s<o.length;s++){const l=o[s];typeof l=="function"?l():Je(r[s],null)}}}}function zr(r){const n=Mr(r),t=F.forwardRef((o,s)=>{const{children:l,...f}=o,b=F.Children.toArray(l),d=b.find(Vr);if(d){const h=d.props.children,y=b.map(R=>R===d?F.Children.count(h)>1?F.Children.only(null):F.isValidElement(h)?h.props.children:null:R);return ze.jsx(n,{...f,ref:s,children:F.isValidElement(h)?F.cloneElement(h,void 0,y):null})}return ze.jsx(n,{...f,ref:s,children:l})});return t.displayName=`${r}.Slot`,t}var Ir=zr("Slot");function Mr(r){const n=F.forwardRef((t,o)=>{const{children:s,...l}=t;if(F.isValidElement(s)){const f=Dr(s),b=Nr(l,s.props);return s.type!==F.Fragment&&(b.ref=o?Ar(o,f):f),F.cloneElement(s,b)}return F.Children.count(s)>1?F.Children.only(null):null});return n.displayName=`${r}.SlotClone`,n}var Fr=Symbol("radix.slottable");function Vr(r){return F.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Fr}function Nr(r,n){const t={...n};for(const o in n){const s=r[o],l=n[o];/^on[A-Z]/.test(o)?s&&l?t[o]=(...b)=>{const d=l(...b);return s(...b),d}:s&&(t[o]=s):o==="style"?t[o]={...s,...l}:o==="className"&&(t[o]=[s,l].filter(Boolean).join(" "))}return{...r,...t}}function Dr(r){let n=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?r.ref:(n=Object.getOwnPropertyDescriptor(r,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}function Ke(r){var n,t,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(n=0;n<s;n++)r[n]&&(t=Ke(r[n]))&&(o&&(o+=" "),o+=t)}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function He(){for(var r,n,t=0,o="",s=arguments.length;t<s;t++)(r=arguments[t])&&(n=Ke(r))&&(o&&(o+=" "),o+=n);return o}const Ie="-",Wr=r=>{const n=Lr(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:f=>{const b=f.split(Ie);return b[0]===""&&b.length!==1&&b.shift(),Xe(b,n)||Gr(f)},getConflictingClassGroupIds:(f,b)=>{const d=t[f]||[];return b&&o[f]?[...d,...o[f]]:d}}},Xe=(r,n)=>{if(r.length===0)return n.classGroupId;const t=r[0],o=n.nextPart.get(t),s=o?Xe(r.slice(1),o):void 0;if(s)return s;if(n.validators.length===0)return;const l=r.join(Ie);return n.validators.find(({validator:f})=>f(l))?.classGroupId},Ze=/^\[(.+)\]$/,Gr=r=>{if(Ze.test(r)){const n=Ze.exec(r)[1],t=n?.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},Lr=r=>{const{theme:n,classGroups:t}=r,o={nextPart:new Map,validators:[]};for(const s in t)Me(t[s],o,s,n);return o},Me=(r,n,t,o)=>{r.forEach(s=>{if(typeof s=="string"){const l=s===""?n:Qe(n,s);l.classGroupId=t;return}if(typeof s=="function"){if($r(s)){Me(s(o),n,t,o);return}n.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([l,f])=>{Me(f,Qe(n,l),t,o)})})},Qe=(r,n)=>{let t=r;return n.split(Ie).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},$r=r=>r.isThemeGetter,Br=r=>{if(r<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,o=new Map;const s=(l,f)=>{t.set(l,f),n++,n>r&&(n=0,o=t,t=new Map)};return{get(l){let f=t.get(l);if(f!==void 0)return f;if((f=o.get(l))!==void 0)return s(l,f),f},set(l,f){t.has(l)?t.set(l,f):s(l,f)}}},Fe="!",Ve=":",Ur=Ve.length,Yr=r=>{const{prefix:n,experimentalParseClassName:t}=r;let o=s=>{const l=[];let f=0,b=0,d=0,h;for(let A=0;A<s.length;A++){let z=s[A];if(f===0&&b===0){if(z===Ve){l.push(s.slice(d,A)),d=A+Ur;continue}if(z==="/"){h=A;continue}}z==="["?f++:z==="]"?f--:z==="("?b++:z===")"&&b--}const y=l.length===0?s:s.substring(d),R=qr(y),S=R!==y,D=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:D}};if(n){const s=n+Ve,l=o;o=f=>f.startsWith(s)?l(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(t){const s=o;o=l=>t({className:l,parseClassName:s})}return o},qr=r=>r.endsWith(Fe)?r.substring(0,r.length-1):r.startsWith(Fe)?r.substring(1):r,Jr=r=>{const n=Object.fromEntries(r.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let l=[];return o.forEach(f=>{f[0]==="["||n[f]?(s.push(...l.sort(),f),l=[]):l.push(f)}),s.push(...l.sort()),s}},Kr=r=>({cache:Br(r.cacheSize),parseClassName:Yr(r),sortModifiers:Jr(r),...Wr(r)}),Hr=/\s+/,Xr=(r,n)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:l}=n,f=[],b=r.trim().split(Hr);let d="";for(let h=b.length-1;h>=0;h-=1){const y=b[h],{isExternal:R,modifiers:S,hasImportantModifier:D,baseClassName:A,maybePostfixModifierPosition:z}=t(y);if(R){d=y+(d.length>0?" "+d:d);continue}let W=!!z,V=o(W?A.substring(0,z):A);if(!V){if(!W){d=y+(d.length>0?" "+d:d);continue}if(V=o(A),!V){d=y+(d.length>0?" "+d:d);continue}W=!1}const P=l(S).join(":"),ne=D?P+Fe:P,Q=ne+V;if(f.includes(Q))continue;f.push(Q);const ee=s(V,W);for(let K=0;K<ee.length;++K){const ae=ee[K];f.push(ne+ae)}d=y+(d.length>0?" "+d:d)}return d};function Zr(){let r=0,n,t,o="";for(;r<arguments.length;)(n=arguments[r++])&&(t=er(n))&&(o&&(o+=" "),o+=t);return o}const er=r=>{if(typeof r=="string")return r;let n,t="";for(let o=0;o<r.length;o++)r[o]&&(n=er(r[o]))&&(t&&(t+=" "),t+=n);return t};function Qr(r,...n){let t,o,s,l=f;function f(d){const h=n.reduce((y,R)=>R(y),r());return t=Kr(h),o=t.cache.get,s=t.cache.set,l=b,b(d)}function b(d){const h=o(d);if(h)return h;const y=Xr(d,t);return s(d,y),y}return function(){return l(Zr.apply(null,arguments))}}const O=r=>{const n=t=>t[r]||[];return n.isThemeGetter=!0,n},rr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,et=/^\d+\/\d+$/,rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tt=/\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$/,ot=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,at=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=r=>et.test(r),v=r=>!!r&&!Number.isNaN(Number(r)),Z=r=>!!r&&Number.isInteger(Number(r)),Ne=r=>r.endsWith("%")&&v(r.slice(0,-1)),J=r=>rt.test(r),st=()=>!0,it=r=>tt.test(r)&&!ot.test(r),or=()=>!1,lt=r=>nt.test(r),ct=r=>at.test(r),ut=r=>!c(r)&&!u(r),dt=r=>de(r,lr,or),c=r=>rr.test(r),oe=r=>de(r,cr,it),De=r=>de(r,gt,v),nr=r=>de(r,sr,or),ft=r=>de(r,ir,ct),Se=r=>de(r,ur,lt),u=r=>tr.test(r),xe=r=>fe(r,cr),pt=r=>fe(r,vt),ar=r=>fe(r,sr),mt=r=>fe(r,lr),bt=r=>fe(r,ir),Pe=r=>fe(r,ur,!0),de=(r,n,t)=>{const o=rr.exec(r);return o?o[1]?n(o[1]):t(o[2]):!1},fe=(r,n,t=!1)=>{const o=tr.exec(r);return o?o[1]?n(o[1]):t:!1},sr=r=>r==="position"||r==="percentage",ir=r=>r==="image"||r==="url",lr=r=>r==="length"||r==="size"||r==="bg-size",cr=r=>r==="length",gt=r=>r==="number",vt=r=>r==="family-name",ur=r=>r==="shadow",ht=Qr(()=>{const r=O("color"),n=O("font"),t=O("text"),o=O("font-weight"),s=O("tracking"),l=O("leading"),f=O("breakpoint"),b=O("container"),d=O("spacing"),h=O("radius"),y=O("shadow"),R=O("inset-shadow"),S=O("text-shadow"),D=O("drop-shadow"),A=O("blur"),z=O("perspective"),W=O("aspect"),V=O("ease"),P=O("animate"),ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...Q(),u,c],K=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto","contain","none"],g=()=>[u,c,d],G=()=>[ue,"full","auto",...g()],Te=()=>[Z,"none","subgrid",u,c],Oe=()=>["auto",{span:["full",Z,u,c]},Z,u,c],se=()=>[Z,"auto",u,c],U=()=>["auto","min","max","fr",u,c],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...g()],q=()=>[ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],p=()=>[r,u,c],we=()=>[...Q(),ar,nr,{position:[u,c]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Re=()=>["auto","cover","contain",mt,dt,{size:[u,c]}],pe=()=>[Ne,xe,oe],j=()=>["","none","full",h,u,c],I=()=>["",v,xe,oe],me=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[v,Ne,ar,nr],ie=()=>["","none",A,u,c],re=()=>["none",v,u,c],H=()=>["none",v,u,c],Ee=()=>[v,u,c],le=()=>[ue,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[J],breakpoint:[J],color:[st],container:[J],"drop-shadow":[J],ease:["in","out","in-out"],font:[ut],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[J],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[J],shadow:[J],spacing:["px",v],text:[J],"text-shadow":[J],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ue,c,u,W]}],container:["container"],columns:[{columns:[v,c,u,b]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Z,"auto",u,c]}],basis:[{basis:[ue,"full","auto",b,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,ue,"auto","initial","none",c]}],grow:[{grow:["",v,u,c]}],shrink:[{shrink:["",v,u,c]}],order:[{order:[Z,"first","last","none",u,c]}],"grid-cols":[{"grid-cols":Te()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":Te()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[b,"screen",...q()]}],"min-w":[{"min-w":[b,"screen","none",...q()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[f]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",t,xe,oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u,De]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ne,c]}],"font-family":[{font:[pt,c,n]}],"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:[s,u,c]}],"line-clamp":[{"line-clamp":[v,"none",u,De]}],leading:[{leading:[l,...g()]}],"list-image":[{"list-image":["none",u,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",u,oe]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[v,"auto",u,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:Re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Z,u,c],radial:["",u,c],conic:[Z,u,c]},bt,ft]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,u,c]}],"outline-w":[{outline:["",v,xe,oe]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",y,Pe,Se]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",R,Pe,Se]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[v,oe]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",S,Pe,Se]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[v,u,c]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[u,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:Re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,c]}],filter:[{filter:["","none",u,c]}],blur:[{blur:ie()}],brightness:[{brightness:[v,u,c]}],contrast:[{contrast:[v,u,c]}],"drop-shadow":[{"drop-shadow":["","none",D,Pe,Se]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",v,u,c]}],"hue-rotate":[{"hue-rotate":[v,u,c]}],invert:[{invert:["",v,u,c]}],saturate:[{saturate:[v,u,c]}],sepia:[{sepia:["",v,u,c]}],"backdrop-filter":[{"backdrop-filter":["","none",u,c]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[v,u,c]}],"backdrop-contrast":[{"backdrop-contrast":[v,u,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,u,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,u,c]}],"backdrop-invert":[{"backdrop-invert":["",v,u,c]}],"backdrop-opacity":[{"backdrop-opacity":[v,u,c]}],"backdrop-saturate":[{"backdrop-saturate":[v,u,c]}],"backdrop-sepia":[{"backdrop-sepia":["",v,u,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",u,c]}],ease:[{ease:["linear","initial",V,u,c]}],delay:[{delay:[v,u,c]}],animate:[{animate:["none",P,u,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,u,c]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[u,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"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",u,c]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[v,xe,oe,De]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),yt=(...r)=>ht(He(r)),dr=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,fr=He,xt=((r,n)=>t=>{var o;if(n?.variants==null)return fr(r,t?.class,t?.className);const{variants:s,defaultVariants:l}=n,f=Object.keys(s).map(h=>{const y=t?.[h],R=l?.[h];if(y===null)return null;const S=dr(y)||dr(R);return s[h][S]}),b=t&&Object.entries(t).reduce((h,y)=>{let[R,S]=y;return S===void 0||(h[R]=S),h},{}),d=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((h,y)=>{let{class:R,className:S,...D}=y;return Object.entries(D).every(A=>{let[z,W]=A;return Array.isArray(W)?W.includes({...l,...b}[z]):{...l,...b}[z]===W})?[...h,R,S]:h},[]);return fr(r,f,d,t?.class,t?.className)})("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-duration-150 volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 volt-ui-[&_svg]:shrink-0 volt-ui-[&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent"},size:{sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-has-[>svg]:px-2.5",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-8 volt-ui-text-base volt-ui-has-[>svg]:px-3",large:"volt-ui-px-5 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-has-[>svg]:px-4"}},defaultVariants:{variant:"primary",size:"base"}}),pr=X.forwardRef(({variant:r,size:n,asChild:t=!1,className:o,type:s="button",children:l,...f},b)=>{const d=t?Ir:"button";return ze.jsx(d,{className:yt(xt({variant:r,size:n}),o),ref:b,type:t?void 0:s,...f,children:l})});pr.displayName="Button",te.Button=pr,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Result, Root } from "postcss";
|
|
2
|
+
/**
|
|
3
|
+
* PostCSS plugin to prefix CSS variables with a custom prefix
|
|
4
|
+
* Transforms: --blue-1 -> --volt-ui-blue-1
|
|
5
|
+
*/
|
|
6
|
+
export declare function prefixVariables(prefix: string): {
|
|
7
|
+
postcssPlugin: string;
|
|
8
|
+
Once(root: Root, { result }: {
|
|
9
|
+
result: Result;
|
|
10
|
+
}): void;
|
|
11
|
+
};
|
|
12
|
+
export declare namespace prefixVariables {
|
|
13
|
+
var postcss: boolean;
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "tertiary" | null | undefined;
|
|
5
5
|
size?: "sm" | "base" | "large" | null | undefined;
|