@vlrc-fe/components 2.2.0 → 2.3.0
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/CHANGELOG.md +27 -0
- package/dist/DataTable/DataTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
- package/dist/Form/Form.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +4 -3
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimeInput.d.ts +3 -4
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.d.ts +3 -3
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/types.d.ts +1 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/useFormDatePicker.d.ts +2 -2
- package/dist/Form/FormDatePicker/useFormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.d.ts +2 -2
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/assets/stylex.css +450 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -25
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +120 -91
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +32 -15
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +245 -132
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +319 -138
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +230 -95
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +62 -35
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +71 -32
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +201 -79
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +661 -288
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -5
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +33 -22
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +95 -92
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +56 -56
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +87 -3
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +321 -85
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +160 -287
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +198 -162
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +24 -125
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +8 -25
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +13 -5
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +18 -13
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +12 -16
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +5 -17
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +6 -5
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -5
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +5 -6
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +5 -5
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +7 -5
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +68 -8
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +9 -67
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +201 -10
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +101 -179
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +24 -116
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +18 -30
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +66 -17
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +30 -67
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +10 -31
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +279 -10
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +125 -248
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +18 -155
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +9 -19
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +12 -8
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +6 -12
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +6 -6
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +9 -6
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +8 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +4 -8
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +6 -4
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +6 -6
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +8 -6
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +9 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +12 -8
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -11
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +7 -7
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +4 -9
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +42 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +375 -29
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +35 -386
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +22 -37
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +56 -20
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +36 -54
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +102 -54
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +76 -54
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +68 -66
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +147 -63
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +69 -91
- package/dist/index205.cjs +9 -1
- package/dist/index205.js +585 -62
- package/dist/index206.cjs +1 -9
- package/dist/index206.js +65 -586
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +42 -41
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +64 -46
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +48 -64
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +75 -47
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +173 -69
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +24 -180
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +25 -24
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +61 -24
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +408 -49
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +25 -422
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +123 -65
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +175 -88
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +252 -124
- package/dist/ui/calendar.d.ts +5 -2
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/carousel.d.ts +19 -5
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +37 -12
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/form.d.ts +15 -4
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/hover-card.d.ts +5 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/item.d.ts +43 -18
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts +45 -14
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/navigation-menu.d.ts +34 -10
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/resizable.d.ts +9 -3
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/scroll-area.d.ts +9 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/select.d.ts +19 -5
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/sidebar.d.ts +99 -37
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sonner.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index217.cjs +0 -1
- package/dist/index217.js +0 -25
package/dist/index151.js
CHANGED
|
@@ -20,40 +20,49 @@ var S = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, C = /^(0|\+84)(3|5|7|8|9)[0-9]{8}$/, w = (
|
|
|
20
20
|
if (t === "tel" || n.includes("phone")) return "tel";
|
|
21
21
|
if (n.includes("name")) return "name";
|
|
22
22
|
if (n.includes("username")) return "username";
|
|
23
|
+
}, T = {
|
|
24
|
+
fieldHorizontalTop: {
|
|
25
|
+
kGNEyG: "x1cy8zhl",
|
|
26
|
+
$$css: !0
|
|
27
|
+
},
|
|
28
|
+
controlTopOffset: {
|
|
29
|
+
keoZOQ: "x72edsj",
|
|
30
|
+
$$css: !0
|
|
31
|
+
}
|
|
23
32
|
};
|
|
24
|
-
function
|
|
25
|
-
let n = x(21), { children: r, label: u, control: d, name: f, htmlType: p, description: m, controlFirst: h, horizontal: g, rules: _, className: w, width:
|
|
33
|
+
function E(e) {
|
|
34
|
+
let n = x(21), { children: r, label: u, control: d, name: f, htmlType: p, description: m, controlFirst: h, horizontal: g, rules: _, className: w, width: E } = e, D;
|
|
26
35
|
if (n[0] !== p || n[1] !== _) {
|
|
27
|
-
if (
|
|
36
|
+
if (D = { ..._ }, p === "email" && !_?.pattern) {
|
|
28
37
|
let e;
|
|
29
38
|
n[3] === Symbol.for("react.memo_cache_sentinel") ? (e = {
|
|
30
39
|
value: S,
|
|
31
40
|
message: "Invalid email address"
|
|
32
|
-
}, n[3] = e) : e = n[3],
|
|
41
|
+
}, n[3] = e) : e = n[3], D.pattern = e;
|
|
33
42
|
}
|
|
34
43
|
if (p === "tel" && !_?.pattern) {
|
|
35
44
|
let e;
|
|
36
45
|
n[4] === Symbol.for("react.memo_cache_sentinel") ? (e = {
|
|
37
46
|
value: C,
|
|
38
47
|
message: "Invalid phone number"
|
|
39
|
-
}, n[4] = e) : e = n[4],
|
|
48
|
+
}, n[4] = e) : e = n[4], D.pattern = e;
|
|
40
49
|
}
|
|
41
50
|
if (_?.required !== void 0 && _.required !== !1) {
|
|
42
|
-
if (typeof _.required == "string")
|
|
51
|
+
if (typeof _.required == "string") D.required = _.required;
|
|
43
52
|
else if (typeof _.required == "object") {
|
|
44
53
|
if (!_.required.message) {
|
|
45
54
|
let e;
|
|
46
55
|
n[5] === _.required ? e = n[6] : (e = {
|
|
47
56
|
..._.required,
|
|
48
57
|
message: "This field is required"
|
|
49
|
-
}, n[5] = _.required, n[6] = e),
|
|
58
|
+
}, n[5] = _.required, n[6] = e), D.required = e;
|
|
50
59
|
}
|
|
51
|
-
} else
|
|
60
|
+
} else D.required = "This field is required";
|
|
52
61
|
}
|
|
53
|
-
n[0] = p, n[1] = _, n[2] =
|
|
54
|
-
} else
|
|
55
|
-
let
|
|
56
|
-
n[7] !== r || n[8] !== w || n[9] !== h || n[10] !== m || n[11] !== g || n[12] !== u || n[13] !== _?.required || n[14] !==
|
|
62
|
+
n[0] = p, n[1] = _, n[2] = D;
|
|
63
|
+
} else D = n[2];
|
|
64
|
+
let O = D, k;
|
|
65
|
+
n[7] !== r || n[8] !== w || n[9] !== h || n[10] !== m || n[11] !== g || n[12] !== u || n[13] !== _?.required || n[14] !== E ? (k = (e) => {
|
|
57
66
|
let { field: n, fieldState: l } = e, d = /* @__PURE__ */ b(v, { children: [u && /* @__PURE__ */ y(c, {
|
|
58
67
|
htmlFor: n.name,
|
|
59
68
|
children: /* @__PURE__ */ y(t, {
|
|
@@ -70,27 +79,28 @@ function T(e) {
|
|
|
70
79
|
}), p = l.invalid && /* @__PURE__ */ y(s, { errors: [l.error] });
|
|
71
80
|
return /* @__PURE__ */ y(i, {
|
|
72
81
|
className: w,
|
|
73
|
-
width:
|
|
82
|
+
width: E,
|
|
74
83
|
"data-invalid": l.invalid,
|
|
75
84
|
orientation: g ? "horizontal" : void 0,
|
|
85
|
+
sx: g && m ? T.fieldHorizontalTop : void 0,
|
|
76
86
|
children: h ? /* @__PURE__ */ b(v, { children: [f, /* @__PURE__ */ b(a, { children: [d, p] })] }) : /* @__PURE__ */ b(v, { children: [
|
|
77
87
|
/* @__PURE__ */ y(a, { children: d }),
|
|
78
88
|
f,
|
|
79
89
|
p
|
|
80
90
|
] })
|
|
81
91
|
});
|
|
82
|
-
}, n[7] = r, n[8] = w, n[9] = h, n[10] = m, n[11] = g, n[12] = u, n[13] = _?.required, n[14] =
|
|
83
|
-
let
|
|
84
|
-
return n[16] !== d || n[17] !== f || n[18] !==
|
|
92
|
+
}, n[7] = r, n[8] = w, n[9] = h, n[10] = m, n[11] = g, n[12] = u, n[13] = _?.required, n[14] = E, n[15] = k) : k = n[15];
|
|
93
|
+
let A;
|
|
94
|
+
return n[16] !== d || n[17] !== f || n[18] !== O || n[19] !== k ? (A = /* @__PURE__ */ y(l, {
|
|
85
95
|
control: d,
|
|
86
96
|
name: f,
|
|
87
|
-
rules:
|
|
88
|
-
render:
|
|
89
|
-
}), n[16] = d, n[17] = f, n[18] =
|
|
97
|
+
rules: O,
|
|
98
|
+
render: k
|
|
99
|
+
}), n[16] = d, n[17] = f, n[18] = O, n[19] = k, n[20] = A) : A = n[20], A;
|
|
90
100
|
}
|
|
91
|
-
var
|
|
92
|
-
let r = x(55), i, a, o, s, c, l, d, f, p, m, h, g, v, b, S, C,
|
|
93
|
-
r[0] === t ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6], d = r[7], f = r[8], p = r[9], m = r[10], h = r[11], g = r[12], v = r[13], b = r[14], S = r[15], C = r[16],
|
|
101
|
+
var D = (t) => {
|
|
102
|
+
let r = x(55), i, a, o, s, c, l, d, f, p, m, h, g, v, b, S, C, T, D, O;
|
|
103
|
+
r[0] === t ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6], d = r[7], f = r[8], p = r[9], m = r[10], h = r[11], g = r[12], v = r[13], b = r[14], S = r[15], C = r[16], T = r[17], D = r[18], O = r[19]) : ({inputClassName: d, wrapperClassName: O, className: o, leftIcon: f, rightIcon: v, prefix: p, prefixIcon: h, prefixButton: m, suffix: b, suffixIcon: C, suffixButton: S, buttonSize: a, iconSize: l, autoComplete: i, htmlType: c, htmlSize: s, sx: T, width: D, ...g} = t, r[0] = t, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l, r[7] = d, r[8] = f, r[9] = p, r[10] = m, r[11] = h, r[12] = g, r[13] = v, r[14] = b, r[15] = S, r[16] = C, r[17] = T, r[18] = D, r[19] = O);
|
|
94
104
|
let [k, A] = _(!1), j = c ?? g.type, M = j === "password", N;
|
|
95
105
|
r[20] !== i || r[21] !== j || r[22] !== g.name ? (N = i ?? w(String(g.name), j), r[20] = i, r[21] = j, r[22] = g.name, r[23] = N) : N = r[23];
|
|
96
106
|
let P = N, F = p ?? h ?? f, I = b ?? C ?? v, L;
|
|
@@ -104,7 +114,7 @@ var E = (t) => {
|
|
|
104
114
|
children: y(k ? e.EyeOff : e.Eye, { className: "xcdlrvm x1l36t39" })
|
|
105
115
|
}) : void 0, r[24] = a, r[25] = M, r[26] = k, r[27] = L) : L = r[27];
|
|
106
116
|
let R = S ?? L, z;
|
|
107
|
-
r[28] !== a || r[29] !== o || r[30] !== s || r[31] !== l || r[32] !== d || r[33] !== j || r[34] !== M || r[35] !== m || r[36] !== g || r[37] !== P || r[38] !== F || r[39] !== I || r[40] !== R || r[41] !== k || r[42] !==
|
|
117
|
+
r[28] !== a || r[29] !== o || r[30] !== s || r[31] !== l || r[32] !== d || r[33] !== j || r[34] !== M || r[35] !== m || r[36] !== g || r[37] !== P || r[38] !== F || r[39] !== I || r[40] !== R || r[41] !== k || r[42] !== T || r[43] !== D ? (z = (e) => /* @__PURE__ */ y(u, {
|
|
108
118
|
...e,
|
|
109
119
|
...g,
|
|
110
120
|
width: D,
|
|
@@ -119,10 +129,10 @@ var E = (t) => {
|
|
|
119
129
|
suffix: I,
|
|
120
130
|
suffixButton: R,
|
|
121
131
|
className: d ?? o,
|
|
122
|
-
sx:
|
|
123
|
-
}), r[28] = a, r[29] = o, r[30] = s, r[31] = l, r[32] = d, r[33] = j, r[34] = M, r[35] = m, r[36] = g, r[37] = P, r[38] = F, r[39] = I, r[40] = R, r[41] = k, r[42] =
|
|
132
|
+
sx: T
|
|
133
|
+
}), r[28] = a, r[29] = o, r[30] = s, r[31] = l, r[32] = d, r[33] = j, r[34] = M, r[35] = m, r[36] = g, r[37] = P, r[38] = F, r[39] = I, r[40] = R, r[41] = k, r[42] = T, r[43] = D, r[44] = z) : z = r[44];
|
|
124
134
|
let B;
|
|
125
|
-
return r[45] !== j || r[46] !== g.control || r[47] !== g.description || r[48] !== g.label || r[49] !== g.name || r[50] !== g.rules || r[51] !== z || r[52] !== D || r[53] !== O ? (B = /* @__PURE__ */ y(
|
|
135
|
+
return r[45] !== j || r[46] !== g.control || r[47] !== g.description || r[48] !== g.label || r[49] !== g.name || r[50] !== g.rules || r[51] !== z || r[52] !== D || r[53] !== O ? (B = /* @__PURE__ */ y(E, {
|
|
126
136
|
name: g.name,
|
|
127
137
|
control: g.control,
|
|
128
138
|
label: g.label,
|
|
@@ -133,7 +143,7 @@ var E = (t) => {
|
|
|
133
143
|
width: D,
|
|
134
144
|
children: z
|
|
135
145
|
}), r[45] = j, r[46] = g.control, r[47] = g.description, r[48] = g.label, r[49] = g.name, r[50] = g.rules, r[51] = z, r[52] = D, r[53] = O, r[54] = B) : B = r[54], B;
|
|
136
|
-
},
|
|
146
|
+
}, O = (e) => {
|
|
137
147
|
let t = x(22), n, r, i, a, o, s;
|
|
138
148
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6]) : ({textareaClassName: a, wrapperClassName: s, className: n, sx: i, width: o, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s);
|
|
139
149
|
let c;
|
|
@@ -145,7 +155,7 @@ var E = (t) => {
|
|
|
145
155
|
sx: i
|
|
146
156
|
}), t[7] = n, t[8] = r, t[9] = i, t[10] = a, t[11] = o, t[12] = c) : c = t[12];
|
|
147
157
|
let l;
|
|
148
|
-
return t[13] !== r.control || t[14] !== r.description || t[15] !== r.label || t[16] !== r.name || t[17] !== r.rules || t[18] !== c || t[19] !== o || t[20] !== s ? (l = /* @__PURE__ */ y(
|
|
158
|
+
return t[13] !== r.control || t[14] !== r.description || t[15] !== r.label || t[16] !== r.name || t[17] !== r.rules || t[18] !== c || t[19] !== o || t[20] !== s ? (l = /* @__PURE__ */ y(E, {
|
|
149
159
|
name: r.name,
|
|
150
160
|
control: r.control,
|
|
151
161
|
label: r.label,
|
|
@@ -155,31 +165,21 @@ var E = (t) => {
|
|
|
155
165
|
width: o,
|
|
156
166
|
children: c
|
|
157
167
|
}), t[13] = r.control, t[14] = r.description, t[15] = r.label, t[16] = r.name, t[17] = r.rules, t[18] = c, t[19] = o, t[20] = s, t[21] = l) : l = t[21], l;
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}), /* @__PURE__ */ y(f, { children: n })]
|
|
174
|
-
});
|
|
175
|
-
}, t[4] = n, t[5] = i, t[6] = a) : a = t[6];
|
|
176
|
-
let o;
|
|
177
|
-
return t[7] !== r || t[8] !== a || t[9] !== i ? (o = /* @__PURE__ */ y(T, {
|
|
178
|
-
...r,
|
|
179
|
-
width: i,
|
|
180
|
-
children: a
|
|
181
|
-
}), t[7] = r, t[8] = a, t[9] = i, t[10] = o) : o = t[10], o;
|
|
182
|
-
}, k = ({ checkboxClassName: e, wrapperClassName: t, className: n, sx: i, disabled: a, size: o = "md", ...s }) => /* @__PURE__ */ y(T, {
|
|
168
|
+
}, k = ({ children: e, width: t = "full", ...n }) => /* @__PURE__ */ y(E, {
|
|
169
|
+
...n,
|
|
170
|
+
width: t,
|
|
171
|
+
children: ({ onChange: n, onBlur: r, ...i }) => /* @__PURE__ */ b(d, {
|
|
172
|
+
...i,
|
|
173
|
+
onValueChange: n,
|
|
174
|
+
children: [/* @__PURE__ */ y(p, {
|
|
175
|
+
"aria-invalid": i["aria-invalid"],
|
|
176
|
+
id: i.id,
|
|
177
|
+
onBlur: r,
|
|
178
|
+
width: t,
|
|
179
|
+
children: /* @__PURE__ */ y(m, {})
|
|
180
|
+
}), /* @__PURE__ */ y(f, { children: e })]
|
|
181
|
+
})
|
|
182
|
+
}), A = ({ checkboxClassName: e, wrapperClassName: t, className: n, sx: i, disabled: a, size: o = "md", ...s }) => /* @__PURE__ */ y(E, {
|
|
183
183
|
name: s.name,
|
|
184
184
|
control: s.control,
|
|
185
185
|
label: s.label,
|
|
@@ -196,9 +196,9 @@ var E = (t) => {
|
|
|
196
196
|
disabled: a,
|
|
197
197
|
size: o,
|
|
198
198
|
className: e ?? n,
|
|
199
|
-
sx: i
|
|
199
|
+
sx: s.description ? [T.controlTopOffset, i] : i
|
|
200
200
|
})
|
|
201
|
-
}),
|
|
201
|
+
}), j = ({ switchClassName: e, wrapperClassName: t, className: n, sx: r, disabled: i, size: a = "md", ...o }) => /* @__PURE__ */ y(E, {
|
|
202
202
|
name: o.name,
|
|
203
203
|
control: o.control,
|
|
204
204
|
label: o.label,
|
|
@@ -218,4 +218,4 @@ var E = (t) => {
|
|
|
218
218
|
sx: r
|
|
219
219
|
})
|
|
220
220
|
});
|
|
221
|
-
export {
|
|
221
|
+
export { E as FormBase, A as FormCheckbox, D as FormInput, k as FormSimpleSelect, j as FormSwitch, O as FormTextarea };
|
package/dist/index152.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=e=>e?.
|
|
1
|
+
var e=e=>Array.isArray(e)&&e.length>0&&`heading`in e[0],t=(e,t)=>{if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>e===r[t])},n=(t,n)=>{if(t.length===0)return{options:[],duplicates:[]};let r=e(t)?t.flatMap(e=>e.options):t,i=new Set,a=[],o=[];return r.forEach(e=>{i.has(e.value)?(a.push(e.value),n||o.push(e)):(i.add(e.value),o.push(e))}),{options:n?o:r,duplicates:a}},r=(e,t,n)=>{if(!e)return{maxCount:t,hideIcons:!1,compactMode:!1};if(e===!0){let e={mobile:{maxCount:2,hideIcons:!1,compactMode:!0},tablet:{maxCount:4,hideIcons:!1,compactMode:!1},desktop:{maxCount:6,hideIcons:!1,compactMode:!1}}[n];return{maxCount:e?.maxCount??t,hideIcons:e?.hideIcons??!1,compactMode:e?.compactMode??!1}}let r=e[n];return{maxCount:r?.maxCount??t,hideIcons:r?.hideIcons??!1,compactMode:r?.compactMode??!1}},i=(e,t)=>{if(t?.badgeAnimation)switch(t.badgeAnimation){case`bounce`:return e?`animate-bounce`:`hover:-translate-y-1 hover:scale-110`;case`pulse`:return`hover:animate-pulse`;case`wiggle`:return`hover:animate-wiggle`;case`fade`:return`hover:opacity-80`;case`slide`:return`hover:translate-x-1`;case`none`:return``;default:return``}return e?`animate-bounce`:``},a=e=>{if(e?.popoverAnimation)switch(e.popoverAnimation){case`scale`:return`animate-scaleIn`;case`slide`:return`animate-slideInDown`;case`fade`:return`animate-fadeIn`;case`flip`:return`animate-flipIn`;case`none`:return``;default:return``}return``},o=(t,n,r)=>!r||!n?t:t.length===0?[]:e(t)?t.map(e=>({...e,options:e.options.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())||e.value.toLowerCase().includes(n.toLowerCase()))})).filter(e=>e.options.length>0):t.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())||e.value.toLowerCase().includes(n.toLowerCase())),s=(e,t,n,r)=>({minWidth:n||(e===`mobile`?`0px`:`200px`),maxWidth:r||`100%`,width:t?`auto`:`100%`}),c=(e,t)=>{if(!t)return e.length;let n=t.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(n)||e.value.toLowerCase().includes(n)).length};exports.arraysEqual=t,exports.buildAllOptions=n,exports.buildBadgeAnimationClass=i,exports.buildPopoverAnimationClass=a,exports.buildWidthConstraints=s,exports.computeResponsiveSettings=r,exports.countMatchingOptions=c,exports.filterOptions=o,exports.isGroupedOptions=e;
|
package/dist/index152.js
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
// src/MultiSelect/
|
|
2
|
-
var e = (e) => e
|
|
3
|
-
|
|
1
|
+
// src/MultiSelect/utils.ts
|
|
2
|
+
var e = (e) => Array.isArray(e) && e.length > 0 && "heading" in e[0], t = (e, t) => {
|
|
3
|
+
if (e.length !== t.length) return !1;
|
|
4
|
+
let n = [...e].sort(), r = [...t].sort();
|
|
5
|
+
return n.every((e, t) => e === r[t]);
|
|
6
|
+
}, n = (t, n) => {
|
|
7
|
+
if (t.length === 0) return {
|
|
8
|
+
options: [],
|
|
9
|
+
duplicates: []
|
|
10
|
+
};
|
|
11
|
+
let r = e(t) ? t.flatMap((e) => e.options) : t, i = /* @__PURE__ */ new Set(), a = [], o = [];
|
|
12
|
+
return r.forEach((e) => {
|
|
13
|
+
i.has(e.value) ? (a.push(e.value), n || o.push(e)) : (i.add(e.value), o.push(e));
|
|
14
|
+
}), {
|
|
15
|
+
options: n ? o : r,
|
|
16
|
+
duplicates: a
|
|
17
|
+
};
|
|
18
|
+
}, r = (e, t, n) => {
|
|
19
|
+
if (!e) return {
|
|
20
|
+
maxCount: t,
|
|
21
|
+
hideIcons: !1,
|
|
22
|
+
compactMode: !1
|
|
23
|
+
};
|
|
24
|
+
if (e === !0) {
|
|
25
|
+
let e = {
|
|
26
|
+
mobile: {
|
|
27
|
+
maxCount: 2,
|
|
28
|
+
hideIcons: !1,
|
|
29
|
+
compactMode: !0
|
|
30
|
+
},
|
|
31
|
+
tablet: {
|
|
32
|
+
maxCount: 4,
|
|
33
|
+
hideIcons: !1,
|
|
34
|
+
compactMode: !1
|
|
35
|
+
},
|
|
36
|
+
desktop: {
|
|
37
|
+
maxCount: 6,
|
|
38
|
+
hideIcons: !1,
|
|
39
|
+
compactMode: !1
|
|
40
|
+
}
|
|
41
|
+
}[n];
|
|
42
|
+
return {
|
|
43
|
+
maxCount: e?.maxCount ?? t,
|
|
44
|
+
hideIcons: e?.hideIcons ?? !1,
|
|
45
|
+
compactMode: e?.compactMode ?? !1
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
let r = e[n];
|
|
49
|
+
return {
|
|
50
|
+
maxCount: r?.maxCount ?? t,
|
|
51
|
+
hideIcons: r?.hideIcons ?? !1,
|
|
52
|
+
compactMode: r?.compactMode ?? !1
|
|
53
|
+
};
|
|
54
|
+
}, i = (e, t) => {
|
|
55
|
+
if (t?.badgeAnimation) switch (t.badgeAnimation) {
|
|
56
|
+
case "bounce": return e ? "animate-bounce" : "hover:-translate-y-1 hover:scale-110";
|
|
57
|
+
case "pulse": return "hover:animate-pulse";
|
|
58
|
+
case "wiggle": return "hover:animate-wiggle";
|
|
59
|
+
case "fade": return "hover:opacity-80";
|
|
60
|
+
case "slide": return "hover:translate-x-1";
|
|
61
|
+
case "none": return "";
|
|
62
|
+
default: return "";
|
|
63
|
+
}
|
|
64
|
+
return e ? "animate-bounce" : "";
|
|
65
|
+
}, a = (e) => {
|
|
66
|
+
if (e?.popoverAnimation) switch (e.popoverAnimation) {
|
|
67
|
+
case "scale": return "animate-scaleIn";
|
|
68
|
+
case "slide": return "animate-slideInDown";
|
|
69
|
+
case "fade": return "animate-fadeIn";
|
|
70
|
+
case "flip": return "animate-flipIn";
|
|
71
|
+
case "none": return "";
|
|
72
|
+
default: return "";
|
|
73
|
+
}
|
|
74
|
+
return "";
|
|
75
|
+
}, o = (t, n, r) => !r || !n ? t : t.length === 0 ? [] : e(t) ? t.map((e) => ({
|
|
76
|
+
...e,
|
|
77
|
+
options: e.options.filter((e) => e.label.toLowerCase().includes(n.toLowerCase()) || e.value.toLowerCase().includes(n.toLowerCase()))
|
|
78
|
+
})).filter((e) => e.options.length > 0) : t.filter((e) => e.label.toLowerCase().includes(n.toLowerCase()) || e.value.toLowerCase().includes(n.toLowerCase())), s = (e, t, n, r) => ({
|
|
79
|
+
minWidth: n || (e === "mobile" ? "0px" : "200px"),
|
|
80
|
+
maxWidth: r || "100%",
|
|
81
|
+
width: t ? "auto" : "100%"
|
|
82
|
+
}), c = (e, t) => {
|
|
83
|
+
if (!t) return e.length;
|
|
84
|
+
let n = t.toLowerCase();
|
|
85
|
+
return e.filter((e) => e.label.toLowerCase().includes(n) || e.value.toLowerCase().includes(n)).length;
|
|
86
|
+
};
|
|
87
|
+
export { t as arraysEqual, n as buildAllOptions, i as buildBadgeAnimationClass, a as buildPopoverAnimationClass, s as buildWidthConstraints, r as computeResponsiveSettings, c as countMatchingOptions, o as filterOptions, e as isGroupedOptions };
|
package/dist/index153.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=e=>Array.isArray(e)&&e.length>0&&`heading`in e[0],t=(e,t)=>{if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>e===r[t])},n=(t,n)=>{if(t.length===0)return{options:[],duplicates:[]};let r=e(t)?t.flatMap(e=>e.options):t,i=new Set,a=[],o=[];return r.forEach(e=>{i.has(e.value)?(a.push(e.value),n||o.push(e)):(i.add(e.value),o.push(e))}),{options:n?o:r,duplicates:a}},r=(e,t,n)=>{if(!e)return{maxCount:t,hideIcons:!1,compactMode:!1};if(e===!0){let e={mobile:{maxCount:2,hideIcons:!1,compactMode:!0},tablet:{maxCount:4,hideIcons:!1,compactMode:!1},desktop:{maxCount:6,hideIcons:!1,compactMode:!1}}[n];return{maxCount:e?.maxCount??t,hideIcons:e?.hideIcons??!1,compactMode:e?.compactMode??!1}}let r=e[n];return{maxCount:r?.maxCount??t,hideIcons:r?.hideIcons??!1,compactMode:r?.compactMode??!1}},i=(e,t)=>{if(t?.badgeAnimation)switch(t.badgeAnimation){case`bounce`:return e?`animate-bounce`:`hover:-translate-y-1 hover:scale-110`;case`pulse`:return`hover:animate-pulse`;case`wiggle`:return`hover:animate-wiggle`;case`fade`:return`hover:opacity-80`;case`slide`:return`hover:translate-x-1`;case`none`:return``;default:return``}return e?`animate-bounce`:``},a=e=>{if(e?.popoverAnimation)switch(e.popoverAnimation){case`scale`:return`animate-scaleIn`;case`slide`:return`animate-slideInDown`;case`fade`:return`animate-fadeIn`;case`flip`:return`animate-flipIn`;case`none`:return``;default:return``}return``},o=(t,n,r)=>!r||!n?t:t.length===0?[]:e(t)?t.map(e=>({...e,options:e.options.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())||e.value.toLowerCase().includes(n.toLowerCase()))})).filter(e=>e.options.length>0):t.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())||e.value.toLowerCase().includes(n.toLowerCase())),s=(e,t,n,r)=>({minWidth:n||(e===`mobile`?`0px`:`200px`),maxWidth:r||`100%`,width:t?`auto`:`100%`}),c=(e,t)=>{if(!t)return e.length;let n=t.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(n)||e.value.toLowerCase().includes(n)).length};exports.arraysEqual=t,exports.buildAllOptions=n,exports.buildBadgeAnimationClass=i,exports.buildPopoverAnimationClass=a,exports.buildWidthConstraints=s,exports.computeResponsiveSettings=r,exports.countMatchingOptions=c,exports.filterOptions=o,exports.isGroupedOptions=e;
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index34.cjs"),n=require("./index36.cjs"),r=require("./index51.cjs"),i=require("./index96.cjs"),a=require("./index152.cjs");require("react");let o=require("@stylexjs/stylex");o=e.__toESM(o,1);let s=require("lucide-react"),c=require("react/jsx-runtime"),l=require("react/compiler-runtime");var u={extraBadge:{kWkggS:`xjbqb8w`,kMwMTN:`x84br7x`,kVAM5u:`xb30jbz`,kGzVvX:`x1n5bzlp`,$$css:!0},separator:{k1xSpc:`x78zum5`,kAzted:`x1rqwxy8`,kZKoxP:`x5yr21d`,$$css:!0},footerActionItem:{kUk6DE:`x98rzlu`,kjj79g:`xl56j7k`,kkrTdU:`x1ypdohk`,$$css:!0}},d=e=>{let t=(0,l.c)(7),{politeMessage:n,assertiveMessage:r}=e,i;t[0]===n?i=t[1]:(i=(0,c.jsx)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,role:`status`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=(0,c.jsx)(`div`,{"aria-live":`assertive`,"aria-atomic":`true`,role:`alert`,children:r}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,c.jsxs)(`div`,{className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o},f=e=>{let r=(0,l.c)(51),{selectedValues:a,responsiveSettings:o,singleLine:d,animation:f,animationConfig:p,badgeAnimationClass:m,variant:h,getOptionByValue:g,toggleOption:_,clearExtraOptions:v,handleClear:y}=e,b;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={0:{className:`x78zum5 x6s0dn4 xvh977a x1a02dak`},2:{className:`x78zum5 x6s0dn4 xvh977a xw2csxc xes99ow`},1:{className:`x78zum5 x6s0dn4 x1a02dak x1enigpx`},3:{className:`x78zum5 x6s0dn4 xw2csxc xes99ow x1enigpx`}},r[0]=b):b=r[0];let x=b[!!d<<1|!!o.compactMode],S;if(r[1]!==f||r[2]!==p?.delay||r[3]!==p?.duration||r[4]!==m||r[5]!==g||r[6]!==o.compactMode||r[7]!==o.hideIcons||r[8]!==o.maxCount||r[9]!==a||r[10]!==_||r[11]!==h){let e;r[13]!==f||r[14]!==p?.delay||r[15]!==p?.duration||r[16]!==m||r[17]!==g||r[18]!==o.compactMode||r[19]!==o.hideIcons||r[20]!==_||r[21]!==h?(e=e=>{let r=g(e),i=r?.icon,a=r?.style;if(!r)return null;let l={animationDuration:`${f}s`,...a?.badgeColor&&{backgroundColor:a.badgeColor},...a?.gradient&&{background:a.gradient,color:`white`}};return(0,c.jsxs)(t.Badge,{variant:h||`secondary`,className:n.cn(m),style:{...l,animationDuration:`${p?.duration||f}s`,animationDelay:`${p?.delay||0}s`},children:[i&&!o.hideIcons&&(0,c.jsx)(i,{...{0:{className:`x1l36t39 xcdlrvm xpoiemb`},1:{className:`xvle69y x1jw3ynk xj17ml3`}}[!!o.compactMode|0],...a?.iconColor&&{style:{color:a.iconColor}}}),(0,c.jsx)(`span`,{children:r.label}),(0,c.jsx)(`div`,{role:`button`,tabIndex:0,onClick:t=>{t.stopPropagation(),_(e)},onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),t.stopPropagation(),_(e))},"aria-label":`Remove ${r.label} from selection`,className:`x13zjp5t x1l36t39 xcdlrvm x1ypdohk x1q0v2j7 x1ngqb6p x1a2a7pz x17iuh41`,children:(0,c.jsx)(s.XCircle,{...{0:{className:`xvle69y x1jw3ynk`},1:{className:`x1qa65zt x1e7hgle`}}[!!o.compactMode|0]})})]},e)},r[13]=f,r[14]=p?.delay,r[15]=p?.duration,r[16]=m,r[17]=g,r[18]=o.compactMode,r[19]=o.hideIcons,r[20]=_,r[21]=h,r[22]=e):e=r[22],S=a.slice(0,o.maxCount).map(e).filter(Boolean),r[1]=f,r[2]=p?.delay,r[3]=p?.duration,r[4]=m,r[5]=g,r[6]=o.compactMode,r[7]=o.hideIcons,r[8]=o.maxCount,r[9]=a,r[10]=_,r[11]=h,r[12]=S}else S=r[12];let C;r[23]!==f||r[24]!==p?.delay||r[25]!==p?.duration||r[26]!==m||r[27]!==v||r[28]!==o.compactMode||r[29]!==o.maxCount||r[30]!==a.length?(C=a.length>o.maxCount&&(0,c.jsxs)(t.Badge,{sx:u.extraBadge,className:n.cn(m),style:{animationDuration:`${p?.duration||f}s`,animationDelay:`${p?.delay||0}s`},children:[`+ ${a.length-o.maxCount} more`,(0,c.jsx)(s.XCircle,{...{0:{className:`x13zjp5t x1l36t39 xcdlrvm x1ypdohk`},1:{className:`x4aigyd xvle69y x1jw3ynk`}}[!!o.compactMode|0],onClick:e=>{e.stopPropagation(),v()}})]}),r[23]=f,r[24]=p?.delay,r[25]=p?.duration,r[26]=m,r[27]=v,r[28]=o.compactMode,r[29]=o.maxCount,r[30]=a.length,r[31]=C):C=r[31];let w;r[32]!==x||r[33]!==S||r[34]!==C?(w=(0,c.jsxs)(`div`,{...x,children:[S,C]}),r[32]=x,r[33]=S,r[34]=C,r[35]=w):w=r[35];let T,E;r[36]===y?(T=r[37],E=r[38]):(T=e=>{e.stopPropagation(),y()},E=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),y())},r[36]=y,r[37]=T,r[38]=E);let D=`Clear all ${a.length} selected options`,O;r[39]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,c.jsx)(s.XIcon,{className:`x1l36t39 xcdlrvm`}),r[39]=O):O=r[39];let k;r[40]!==T||r[41]!==E||r[42]!==D?(k=(0,c.jsx)(`div`,{role:`button`,tabIndex:0,onClick:T,onKeyDown:E,"aria-label":D,className:`x78zum5 x6s0dn4 xl56j7k x1l36t39 xcdlrvm x1wboj75 x1ypdohk xw3nh4a x1q0v2j7 x1a2a7pz x8aud5w`,children:O}),r[40]=T,r[41]=E,r[42]=D,r[43]=k):k=r[43];let A,j;r[44]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,c.jsx)(i.Separator,{orientation:`vertical`,sx:u.separator}),j=(0,c.jsx)(s.ChevronDown,{className:`x1l36t39 xcdlrvm x1wboj75 x1ypdohk xw3nh4a`,"aria-hidden":`true`}),r[44]=A,r[45]=j):(A=r[44],j=r[45]);let M;r[46]===k?M=r[47]:(M=(0,c.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1qughib`,children:[k,A,j]}),r[46]=k,r[47]=M);let N;return r[48]!==M||r[49]!==w?(N=(0,c.jsxs)(`div`,{className:`x78zum5 x1qughib x6s0dn4 xh8yej3`,children:[w,M]}),r[48]=M,r[49]=w,r[50]=N):N=r[50],N},p=e=>{let t=(0,l.c)(5),{placeholder:n}=e,r;t[0]===n?r=t[1]:(r=(0,c.jsx)(`span`,{className:`xkpwil5 xw3nh4a x1acpp9h`,children:n}),t[0]=n,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,c.jsx)(s.ChevronDown,{className:`x1l36t39 xcdlrvm x1ypdohk xw3nh4a x1wboj75`}),t[2]=i):i=t[2];let a;return t[3]===r?a=t[4]:(a=(0,c.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1qughib xh8yej3 xvueqy4`,children:[r,i]}),t[3]=r,t[4]=a),a},m=e=>{let t=(0,l.c)(39),{filteredOptions:n,hideSelectAll:o,searchValue:d,searchable:f,selectedValues:p,getAllOptions:m,toggleAll:_,toggleOption:v,handleClear:y,setIsPopoverOpen:b,handleInputKeyDown:x,setSearchValue:S,multiSelectId:C,emptyIndicator:w}=e,T;t[0]!==x||t[1]!==C||t[2]!==d||t[3]!==f||t[4]!==S?(T=f&&(0,c.jsx)(r.CommandInput,{placeholder:`Search options...`,onKeyDown:x,value:d,onValueChange:S,"aria-label":`Search through available options`,"aria-describedby":`${C}-search-help`}),t[0]=x,t[1]=C,t[2]=d,t[3]=f,t[4]=S,t[5]=T):T=t[5];let E;t[6]!==C||t[7]!==f?(E=f&&(0,c.jsx)(`div`,{id:`${C}-search-help`,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`,children:`Type to filter options. Use arrow keys to navigate results.`}),t[6]=C,t[7]=f,t[8]=E):E=t[8];let D=w||`No results found.`,O;t[9]===D?O=t[10]:(O=(0,c.jsx)(r.CommandEmpty,{children:D}),t[9]=D,t[10]=O);let k;t[11]!==m||t[12]!==o||t[13]!==d||t[14]!==p.length||t[15]!==_?(k=!o&&!d&&(0,c.jsx)(r.CommandGroup,{children:(0,c.jsxs)(r.CommandItem,{onSelect:_,role:`option`,"aria-selected":p.length===m().filter(h).length,"aria-label":`Select all ${m().length} options`,children:[(0,c.jsx)(`div`,{...{0:{className:`xpoiemb x78zum5 x1l36t39 xcdlrvm x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 x1khvrlk xbyyjgo`},1:{className:`xpoiemb x78zum5 x1l36t39 xcdlrvm x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 x1khvrlk x1j7ufkg xstwp1q`}}[p.length===m().filter(g).length|0],"aria-hidden":`true`,children:(0,c.jsx)(s.CheckIcon,{className:`x1l36t39 xcdlrvm`})}),(0,c.jsxs)(`span`,{children:[`(Select All`,m().length>20?` - ${m().length} options`:``,`)`]})]},`all`)}),t[11]=m,t[12]=o,t[13]=d,t[14]=p.length,t[15]=_,t[16]=k):k=t[16];let A;t[17]!==n||t[18]!==p||t[19]!==v?(A=a.isGroupedOptions(n)?n.map(e=>(0,c.jsx)(r.CommandGroup,{heading:e.heading,children:e.options.map(e=>{let t=p.includes(e.value);return(0,c.jsxs)(r.CommandItem,{onSelect:()=>v(e.value),role:`option`,"aria-selected":t,"aria-disabled":e.disabled,"aria-label":`${e.label}${t?`, selected`:`, not selected`}${e.disabled?`, disabled`:``}`,disabled:e.disabled,children:[(0,c.jsx)(`div`,{...{0:{className:`xpoiemb x78zum5 x1l36t39 xcdlrvm x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 x1khvrlk xbyyjgo`},1:{className:`xpoiemb x78zum5 x1l36t39 xcdlrvm x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 x1khvrlk x1j7ufkg xstwp1q`}}[!!t|0],"aria-hidden":`true`,children:(0,c.jsx)(s.CheckIcon,{className:`x1l36t39 xcdlrvm`})}),e.icon&&(0,c.jsx)(e.icon,{className:`xpoiemb x1l36t39 xcdlrvm xw3nh4a`,"aria-hidden":`true`}),(0,c.jsx)(`span`,{children:e.label})]},e.value)})},e.heading)):(0,c.jsx)(r.CommandGroup,{children:n.map(e=>{let t=p.includes(e.value);return(0,c.jsxs)(r.CommandItem,{onSelect:()=>v(e.value),role:`option`,"aria-selected":t,"aria-disabled":e.disabled,"aria-label":`${e.label}${t?`, selected`:`, not selected`}${e.disabled?`, disabled`:``}`,disabled:e.disabled,children:[(0,c.jsx)(`div`,{...{0:{className:`xpoiemb x78zum5 x1l36t39 xcdlrvm x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 x1khvrlk xbyyjgo`},1:{className:`xpoiemb x78zum5 x1l36t39 xcdlrvm x6s0dn4 xl56j7k x1q0v2j7 xmkeg23 x1y0btm7 x1khvrlk x1j7ufkg xstwp1q`}}[!!t|0],"aria-hidden":`true`,children:(0,c.jsx)(s.CheckIcon,{className:`x1l36t39 xcdlrvm`})}),e.icon&&(0,c.jsx)(e.icon,{className:`xpoiemb x1l36t39 xcdlrvm xw3nh4a`,"aria-hidden":`true`}),(0,c.jsx)(`span`,{children:e.label})]},e.value)})}),t[17]=n,t[18]=p,t[19]=v,t[20]=A):A=t[20];let j;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,c.jsx)(r.CommandSeparator,{}),t[21]=j):j=t[21];let M;t[22]!==y||t[23]!==p.length?(M=p.length>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.CommandItem,{onSelect:y,sx:u.footerActionItem,children:`Clear`}),(0,c.jsx)(i.Separator,{orientation:`vertical`,sx:u.separator})]}),t[22]=y,t[23]=p.length,t[24]=M):M=t[24];let N;t[25]===b?N=t[26]:(N=(0,c.jsx)(r.CommandItem,{onSelect:()=>b(!1),sx:u.footerActionItem,children:`Close`}),t[25]=b,t[26]=N);let P;t[27]!==M||t[28]!==N?(P=(0,c.jsx)(r.CommandGroup,{children:(0,c.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1qughib`,children:[M,N]})}),t[27]=M,t[28]=N,t[29]=P):P=t[29];let F;t[30]!==P||t[31]!==O||t[32]!==k||t[33]!==A?(F=(0,c.jsxs)(r.CommandList,{children:[O,` `,k,A,j,P]}),t[30]=P,t[31]=O,t[32]=k,t[33]=A,t[34]=F):F=t[34];let I;return t[35]!==T||t[36]!==F||t[37]!==E?(I=(0,c.jsxs)(r.Command,{children:[T,E,F]}),t[35]=T,t[36]=F,t[37]=E,t[38]=I):I=t[38],I};function h(e){return!e.disabled}function g(e){return!e.disabled}exports.LiveRegion=d,exports.OptionsContent=m,exports.PlaceholderContent=p,exports.SelectedValuesContent=f;
|