@utk09/finra-ui 0.0.4 → 0.0.5
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/ComboBox-CbLG-Ss1.js +471 -0
- package/dist/ComboBox-CbLG-Ss1.js.map +1 -0
- package/dist/assets/icons/CheckIcon.d.ts +2 -0
- package/dist/assets/icons/ChevronDownIcon.d.ts +2 -0
- package/dist/assets/icons/CloseIcon.d.ts +2 -0
- package/dist/assets/icons/CloseSmallIcon.d.ts +2 -0
- package/dist/assets/icons/DashIcon.d.ts +2 -0
- package/dist/assets/icons/MinusIcon.d.ts +2 -0
- package/dist/assets/icons/PlusIcon.d.ts +2 -0
- package/dist/assets/icons/SpinnerIcon.d.ts +2 -0
- package/dist/assets/icons/UploadIcon.d.ts +2 -0
- package/dist/assets/icons/index.d.ts +9 -0
- package/dist/components/ComboBox/ComboBox.d.ts +36 -0
- package/dist/components/componentIds.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +900 -731
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/unstyled/ComboBox/ComboBox.d.ts +108 -0
- package/dist/unstyled.d.ts +2 -0
- package/dist/unstyled.js +131 -142
- package/dist/unstyled.js.map +1 -1
- package/dist/utils/mergeRefs.d.ts +2 -0
- package/package.json +1 -1
- package/dist/Slider-BXQjDfhb.js +0 -73
- package/dist/Slider-BXQjDfhb.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as C, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { B as
|
|
1
|
+
import { jsxs as C, jsx as e, Fragment as ln } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as D, useRef as Z, useCallback as k, useState as J, useEffect as X, useId as mn, Children as vn, isValidElement as hn, cloneElement as fn, useMemo as yn } from "react";
|
|
3
|
+
import { B as bn, I as gn, C as $n, m as tn, S as xn, R as kn, a as wn, b as Nn } from "./ComboBox-CbLG-Ss1.js";
|
|
4
4
|
const f = "data-finra-ui", y = {
|
|
5
5
|
// Button family
|
|
6
6
|
button: "button",
|
|
@@ -37,68 +37,70 @@ const f = "data-finra-ui", y = {
|
|
|
37
37
|
fileDropZone: "file-drop-zone",
|
|
38
38
|
// Badge
|
|
39
39
|
badge: "badge",
|
|
40
|
+
// ComboBox
|
|
41
|
+
comboBox: "combo-box",
|
|
40
42
|
// Divider
|
|
41
43
|
divider: "divider"
|
|
42
44
|
};
|
|
43
|
-
function
|
|
44
|
-
var
|
|
45
|
-
if (typeof
|
|
46
|
-
else if (typeof
|
|
47
|
-
var
|
|
48
|
-
for (
|
|
49
|
-
} else for (t in
|
|
50
|
-
return
|
|
45
|
+
function un(n) {
|
|
46
|
+
var a, t, r = "";
|
|
47
|
+
if (typeof n == "string" || typeof n == "number") r += n;
|
|
48
|
+
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
49
|
+
var i = n.length;
|
|
50
|
+
for (a = 0; a < i; a++) n[a] && (t = un(n[a])) && (r && (r += " "), r += t);
|
|
51
|
+
} else for (t in n) n[t] && (r && (r += " "), r += t);
|
|
52
|
+
return r;
|
|
51
53
|
}
|
|
52
|
-
function
|
|
53
|
-
for (var
|
|
54
|
-
return
|
|
54
|
+
function w() {
|
|
55
|
+
for (var n, a, t = 0, r = "", i = arguments.length; t < i; t++) (n = arguments[t]) && (a = un(n)) && (r && (r += " "), r += a);
|
|
56
|
+
return r;
|
|
55
57
|
}
|
|
56
|
-
const
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
const { variants:
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
return
|
|
64
|
-
}), p = t && Object.entries(t).reduce((
|
|
65
|
-
let [
|
|
66
|
-
return
|
|
67
|
-
}, {}),
|
|
68
|
-
let { class:
|
|
69
|
-
return Object.entries(N).every((
|
|
70
|
-
let [
|
|
71
|
-
return Array.isArray(
|
|
72
|
-
...
|
|
58
|
+
const on = (n) => typeof n == "boolean" ? `${n}` : n === 0 ? "0" : n, sn = w, H = (n, a) => (t) => {
|
|
59
|
+
var r;
|
|
60
|
+
if (a?.variants == null) return sn(n, t?.class, t?.className);
|
|
61
|
+
const { variants: i, defaultVariants: s } = a, l = Object.keys(i).map((c) => {
|
|
62
|
+
const $ = t?.[c], _ = s?.[c];
|
|
63
|
+
if ($ === null) return null;
|
|
64
|
+
const v = on($) || on(_);
|
|
65
|
+
return i[c][v];
|
|
66
|
+
}), p = t && Object.entries(t).reduce((c, $) => {
|
|
67
|
+
let [_, v] = $;
|
|
68
|
+
return v === void 0 || (c[_] = v), c;
|
|
69
|
+
}, {}), m = a == null || (r = a.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((c, $) => {
|
|
70
|
+
let { class: _, className: v, ...N } = $;
|
|
71
|
+
return Object.entries(N).every((h) => {
|
|
72
|
+
let [I, b] = h;
|
|
73
|
+
return Array.isArray(b) ? b.includes({
|
|
74
|
+
...s,
|
|
73
75
|
...p
|
|
74
|
-
}[
|
|
75
|
-
...
|
|
76
|
+
}[I]) : {
|
|
77
|
+
...s,
|
|
76
78
|
...p
|
|
77
|
-
}[
|
|
79
|
+
}[I] === b;
|
|
78
80
|
}) ? [
|
|
79
|
-
...
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
] :
|
|
81
|
+
...c,
|
|
82
|
+
_,
|
|
83
|
+
v
|
|
84
|
+
] : c;
|
|
83
85
|
}, []);
|
|
84
|
-
return
|
|
85
|
-
},
|
|
86
|
-
button:
|
|
87
|
-
variantPrimary:
|
|
88
|
-
variantSecondary:
|
|
89
|
-
variantTertiary:
|
|
90
|
-
sentimentDanger:
|
|
91
|
-
sentimentSuccess:
|
|
92
|
-
sentimentWarning:
|
|
93
|
-
sentimentInfo:
|
|
94
|
-
fullWidth:
|
|
95
|
-
icon:
|
|
96
|
-
},
|
|
86
|
+
return sn(n, l, m, t?.class, t?.className);
|
|
87
|
+
}, In = "_button_nw9o1_1", Cn = "_variantPrimary_nw9o1_40", Sn = "_variantSecondary_nw9o1_53", Wn = "_variantTertiary_nw9o1_66", Bn = "_sentimentDanger_nw9o1_78", Dn = "_sentimentSuccess_nw9o1_84", Tn = "_sentimentWarning_nw9o1_90", Pn = "_sentimentInfo_nw9o1_96", Fn = "_fullWidth_nw9o1_102", Vn = "_icon_nw9o1_106", E = {
|
|
88
|
+
button: In,
|
|
89
|
+
variantPrimary: Cn,
|
|
90
|
+
variantSecondary: Sn,
|
|
91
|
+
variantTertiary: Wn,
|
|
92
|
+
sentimentDanger: Bn,
|
|
93
|
+
sentimentSuccess: Dn,
|
|
94
|
+
sentimentWarning: Tn,
|
|
95
|
+
sentimentInfo: Pn,
|
|
96
|
+
fullWidth: Fn,
|
|
97
|
+
icon: Vn
|
|
98
|
+
}, En = {
|
|
97
99
|
danger: E.sentimentDanger,
|
|
98
100
|
success: E.sentimentSuccess,
|
|
99
101
|
warning: E.sentimentWarning,
|
|
100
102
|
info: E.sentimentInfo
|
|
101
|
-
},
|
|
103
|
+
}, Rn = H(E.button, {
|
|
102
104
|
variants: {
|
|
103
105
|
variant: {
|
|
104
106
|
primary: E.variantPrimary,
|
|
@@ -112,216 +114,331 @@ const rt = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, at = x, G
|
|
|
112
114
|
defaultVariants: {
|
|
113
115
|
variant: "primary"
|
|
114
116
|
}
|
|
115
|
-
}),
|
|
116
|
-
({ className:
|
|
117
|
-
|
|
117
|
+
}), qn = D(
|
|
118
|
+
({ className: n, variant: a, fullWidth: t, sentiment: r, startIcon: i, endIcon: s, children: l, ...p }, m) => /* @__PURE__ */ C(
|
|
119
|
+
bn,
|
|
118
120
|
{
|
|
119
|
-
ref:
|
|
121
|
+
ref: m,
|
|
120
122
|
type: "button",
|
|
121
123
|
[f]: y.button,
|
|
122
|
-
className:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
className: w(
|
|
125
|
+
Rn({ variant: a, fullWidth: t }),
|
|
126
|
+
r && En[r],
|
|
127
|
+
n
|
|
126
128
|
),
|
|
127
129
|
...p,
|
|
128
130
|
children: [
|
|
129
|
-
|
|
131
|
+
i ? /* @__PURE__ */ e("span", { className: E.icon, children: i }) : null,
|
|
130
132
|
l,
|
|
131
|
-
|
|
133
|
+
s ? /* @__PURE__ */ e("span", { className: E.icon, children: s }) : null
|
|
132
134
|
]
|
|
133
135
|
}
|
|
134
136
|
)
|
|
135
137
|
);
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
iconButton:
|
|
139
|
-
variantPrimary:
|
|
140
|
-
variantSecondary:
|
|
141
|
-
variantTertiary:
|
|
142
|
-
sentimentDanger:
|
|
143
|
-
sentimentSuccess:
|
|
144
|
-
sentimentWarning:
|
|
145
|
-
sentimentInfo:
|
|
146
|
-
},
|
|
147
|
-
danger:
|
|
148
|
-
success:
|
|
149
|
-
warning:
|
|
150
|
-
info:
|
|
151
|
-
},
|
|
138
|
+
qn.displayName = "Button";
|
|
139
|
+
const Ln = "_iconButton_wgr1d_1", Mn = "_variantPrimary_wgr1d_37", jn = "_variantSecondary_wgr1d_50", Hn = "_variantTertiary_wgr1d_63", On = "_sentimentDanger_wgr1d_75", An = "_sentimentSuccess_wgr1d_81", Kn = "_sentimentWarning_wgr1d_87", Gn = "_sentimentInfo_wgr1d_93", R = {
|
|
140
|
+
iconButton: Ln,
|
|
141
|
+
variantPrimary: Mn,
|
|
142
|
+
variantSecondary: jn,
|
|
143
|
+
variantTertiary: Hn,
|
|
144
|
+
sentimentDanger: On,
|
|
145
|
+
sentimentSuccess: An,
|
|
146
|
+
sentimentWarning: Kn,
|
|
147
|
+
sentimentInfo: Gn
|
|
148
|
+
}, Zn = {
|
|
149
|
+
danger: R.sentimentDanger,
|
|
150
|
+
success: R.sentimentSuccess,
|
|
151
|
+
warning: R.sentimentWarning,
|
|
152
|
+
info: R.sentimentInfo
|
|
153
|
+
}, zn = H(R.iconButton, {
|
|
152
154
|
variants: {
|
|
153
155
|
variant: {
|
|
154
|
-
primary:
|
|
155
|
-
secondary:
|
|
156
|
-
tertiary:
|
|
156
|
+
primary: R.variantPrimary,
|
|
157
|
+
secondary: R.variantSecondary,
|
|
158
|
+
tertiary: R.variantTertiary
|
|
157
159
|
}
|
|
158
160
|
},
|
|
159
161
|
defaultVariants: {
|
|
160
162
|
variant: "primary"
|
|
161
163
|
}
|
|
162
|
-
}),
|
|
163
|
-
({ className:
|
|
164
|
-
|
|
164
|
+
}), Un = D(
|
|
165
|
+
({ className: n, variant: a, sentiment: t, ...r }, i) => /* @__PURE__ */ e(
|
|
166
|
+
gn,
|
|
165
167
|
{
|
|
166
|
-
ref:
|
|
168
|
+
ref: i,
|
|
167
169
|
type: "button",
|
|
168
170
|
[f]: y.iconButton,
|
|
169
|
-
className:
|
|
170
|
-
|
|
171
|
-
t &&
|
|
172
|
-
|
|
171
|
+
className: w(
|
|
172
|
+
zn({ variant: a }),
|
|
173
|
+
t && Zn[t],
|
|
174
|
+
n
|
|
173
175
|
),
|
|
174
|
-
...
|
|
176
|
+
...r
|
|
175
177
|
}
|
|
176
178
|
)
|
|
177
179
|
);
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
buttonGroup:
|
|
181
|
-
vertical:
|
|
182
|
-
},
|
|
183
|
-
({ className:
|
|
180
|
+
Un.displayName = "IconButton";
|
|
181
|
+
const Yn = "_buttonGroup_vy66t_1", Jn = "_vertical_vy66t_22", cn = {
|
|
182
|
+
buttonGroup: Yn,
|
|
183
|
+
vertical: Jn
|
|
184
|
+
}, Qn = D(
|
|
185
|
+
({ className: n, orientation: a = "horizontal", children: t, ...r }, i) => /* @__PURE__ */ e(
|
|
184
186
|
"div",
|
|
185
187
|
{
|
|
186
|
-
ref:
|
|
188
|
+
ref: i,
|
|
187
189
|
role: "group",
|
|
188
190
|
[f]: y.buttonGroup,
|
|
189
|
-
className:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
className: w(
|
|
192
|
+
cn.buttonGroup,
|
|
193
|
+
a === "vertical" && cn.vertical,
|
|
194
|
+
n
|
|
193
195
|
),
|
|
194
|
-
...
|
|
196
|
+
...r,
|
|
195
197
|
children: t
|
|
196
198
|
}
|
|
197
199
|
)
|
|
198
200
|
);
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
201
|
+
Qn.displayName = "ButtonGroup";
|
|
202
|
+
function dn(n) {
|
|
203
|
+
return /* @__PURE__ */ e(
|
|
204
|
+
"svg",
|
|
205
|
+
{
|
|
206
|
+
viewBox: "0 0 12 12",
|
|
207
|
+
fill: "none",
|
|
208
|
+
stroke: "currentColor",
|
|
209
|
+
strokeWidth: "2",
|
|
210
|
+
strokeLinecap: "round",
|
|
211
|
+
strokeLinejoin: "round",
|
|
212
|
+
...n,
|
|
213
|
+
children: /* @__PURE__ */ e("path", { d: "M2.5 6l2.5 2.5 4.5-5" })
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
function Xn(n) {
|
|
218
|
+
return /* @__PURE__ */ e(
|
|
219
|
+
"svg",
|
|
220
|
+
{
|
|
221
|
+
viewBox: "0 0 12 12",
|
|
222
|
+
fill: "none",
|
|
223
|
+
stroke: "currentColor",
|
|
224
|
+
strokeWidth: "2",
|
|
225
|
+
strokeLinecap: "round",
|
|
226
|
+
...n,
|
|
227
|
+
children: /* @__PURE__ */ e("path", { d: "M2.5 6h7" })
|
|
228
|
+
}
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
function _n(n) {
|
|
232
|
+
return /* @__PURE__ */ e(
|
|
233
|
+
"svg",
|
|
234
|
+
{
|
|
235
|
+
viewBox: "0 0 12 12",
|
|
236
|
+
fill: "none",
|
|
237
|
+
stroke: "currentColor",
|
|
238
|
+
strokeWidth: "2",
|
|
239
|
+
strokeLinecap: "round",
|
|
240
|
+
...n,
|
|
241
|
+
children: /* @__PURE__ */ e("path", { d: "M3 3l6 6M9 3l-6 6" })
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
function nt(n) {
|
|
246
|
+
return /* @__PURE__ */ e(
|
|
247
|
+
"svg",
|
|
248
|
+
{
|
|
249
|
+
viewBox: "0 0 24 24",
|
|
250
|
+
fill: "none",
|
|
251
|
+
stroke: "currentColor",
|
|
252
|
+
strokeWidth: "2",
|
|
253
|
+
strokeLinecap: "round",
|
|
254
|
+
strokeLinejoin: "round",
|
|
255
|
+
...n,
|
|
256
|
+
children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
function tt(n) {
|
|
261
|
+
return /* @__PURE__ */ e(
|
|
262
|
+
"svg",
|
|
263
|
+
{
|
|
264
|
+
viewBox: "0 0 12 12",
|
|
265
|
+
fill: "none",
|
|
266
|
+
stroke: "currentColor",
|
|
267
|
+
strokeWidth: "1.5",
|
|
268
|
+
strokeLinecap: "round",
|
|
269
|
+
strokeLinejoin: "round",
|
|
270
|
+
...n,
|
|
271
|
+
children: /* @__PURE__ */ e("path", { d: "M3 4.5l3 3 3-3" })
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
function et(n) {
|
|
276
|
+
return /* @__PURE__ */ C(
|
|
277
|
+
"svg",
|
|
278
|
+
{
|
|
279
|
+
viewBox: "0 0 24 24",
|
|
280
|
+
fill: "none",
|
|
281
|
+
stroke: "currentColor",
|
|
282
|
+
strokeWidth: "1.5",
|
|
283
|
+
strokeLinecap: "round",
|
|
284
|
+
strokeLinejoin: "round",
|
|
285
|
+
...n,
|
|
286
|
+
children: [
|
|
287
|
+
/* @__PURE__ */ e("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
288
|
+
/* @__PURE__ */ e("polyline", { points: "17 8 12 3 7 8" }),
|
|
289
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "3", x2: "12", y2: "15" })
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
function rt(n) {
|
|
295
|
+
return /* @__PURE__ */ C("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", ...n, children: [
|
|
296
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10", opacity: "0.25" }),
|
|
297
|
+
/* @__PURE__ */ e("path", { d: "M12 2a10 10 0 0 1 10 10" })
|
|
298
|
+
] });
|
|
299
|
+
}
|
|
300
|
+
function at(n) {
|
|
301
|
+
return /* @__PURE__ */ e(
|
|
302
|
+
"svg",
|
|
303
|
+
{
|
|
304
|
+
viewBox: "0 0 24 24",
|
|
305
|
+
fill: "none",
|
|
306
|
+
stroke: "currentColor",
|
|
307
|
+
strokeWidth: "2",
|
|
308
|
+
strokeLinecap: "round",
|
|
309
|
+
...n,
|
|
310
|
+
children: /* @__PURE__ */ e("path", { d: "M5 12h14" })
|
|
311
|
+
}
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
function it(n) {
|
|
315
|
+
return /* @__PURE__ */ e(
|
|
316
|
+
"svg",
|
|
317
|
+
{
|
|
318
|
+
viewBox: "0 0 24 24",
|
|
319
|
+
fill: "none",
|
|
320
|
+
stroke: "currentColor",
|
|
321
|
+
strokeWidth: "2",
|
|
322
|
+
strokeLinecap: "round",
|
|
323
|
+
...n,
|
|
324
|
+
children: /* @__PURE__ */ e("path", { d: "M12 5v14M5 12h14" })
|
|
325
|
+
}
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
const ot = "_wrapper_qx7i5_1", st = "_disabled_qx7i5_25", ct = "_fullWidth_qx7i5_30", lt = "_variantPrimary_qx7i5_33", ut = "_variantSecondary_qx7i5_36", dt = "_variantTertiary_qx7i5_40", _t = "_statusError_qx7i5_49", pt = "_statusWarning_qx7i5_52", mt = "_statusSuccess_qx7i5_55", vt = "_field_qx7i5_59", ht = "_adornment_qx7i5_76", ft = "_clearButton_qx7i5_88", P = {
|
|
329
|
+
wrapper: ot,
|
|
330
|
+
disabled: st,
|
|
331
|
+
fullWidth: ct,
|
|
332
|
+
variantPrimary: lt,
|
|
333
|
+
variantSecondary: ut,
|
|
334
|
+
variantTertiary: dt,
|
|
335
|
+
statusError: _t,
|
|
336
|
+
statusWarning: pt,
|
|
337
|
+
statusSuccess: mt,
|
|
338
|
+
field: vt,
|
|
339
|
+
adornment: ht,
|
|
340
|
+
clearButton: ft
|
|
341
|
+
}, yt = H(P.wrapper, {
|
|
214
342
|
variants: {
|
|
215
343
|
variant: {
|
|
216
|
-
primary:
|
|
217
|
-
secondary:
|
|
218
|
-
tertiary:
|
|
344
|
+
primary: P.variantPrimary,
|
|
345
|
+
secondary: P.variantSecondary,
|
|
346
|
+
tertiary: P.variantTertiary
|
|
219
347
|
}
|
|
220
348
|
},
|
|
221
349
|
defaultVariants: {
|
|
222
350
|
variant: "primary"
|
|
223
351
|
}
|
|
224
|
-
}),
|
|
225
|
-
error:
|
|
226
|
-
warning:
|
|
227
|
-
success:
|
|
228
|
-
},
|
|
352
|
+
}), bt = {
|
|
353
|
+
error: P.statusError,
|
|
354
|
+
warning: P.statusWarning,
|
|
355
|
+
success: P.statusSuccess
|
|
356
|
+
}, gt = D(
|
|
229
357
|
({
|
|
230
|
-
className:
|
|
231
|
-
variant:
|
|
358
|
+
className: n,
|
|
359
|
+
variant: a,
|
|
232
360
|
validationStatus: t,
|
|
233
|
-
startAdornment:
|
|
234
|
-
endAdornment:
|
|
235
|
-
clearable:
|
|
361
|
+
startAdornment: r,
|
|
362
|
+
endAdornment: i,
|
|
363
|
+
clearable: s,
|
|
236
364
|
onClear: l,
|
|
237
365
|
fullWidth: p,
|
|
238
|
-
disabled:
|
|
239
|
-
readOnly:
|
|
240
|
-
value:
|
|
241
|
-
defaultValue:
|
|
242
|
-
onChange:
|
|
366
|
+
disabled: m,
|
|
367
|
+
readOnly: c,
|
|
368
|
+
value: $,
|
|
369
|
+
defaultValue: _,
|
|
370
|
+
onChange: v,
|
|
243
371
|
...N
|
|
244
|
-
},
|
|
245
|
-
const
|
|
246
|
-
(
|
|
247
|
-
|
|
372
|
+
}, h) => {
|
|
373
|
+
const I = Z(null), b = h || I, x = k(
|
|
374
|
+
(S) => {
|
|
375
|
+
S.preventDefault(), l ? l() : b.current && (Object.getOwnPropertyDescriptor(
|
|
248
376
|
HTMLInputElement.prototype,
|
|
249
377
|
"value"
|
|
250
|
-
)?.set?.call(
|
|
378
|
+
)?.set?.call(b.current, ""), b.current.dispatchEvent(new Event("input", { bubbles: !0 }))), b.current?.focus();
|
|
251
379
|
},
|
|
252
|
-
[l,
|
|
253
|
-
),
|
|
380
|
+
[l, b]
|
|
381
|
+
), d = s && !m && !c && ($ ?? _ ?? "") !== "";
|
|
254
382
|
return /* @__PURE__ */ C(
|
|
255
383
|
"div",
|
|
256
384
|
{
|
|
257
385
|
[f]: y.input,
|
|
258
|
-
className:
|
|
259
|
-
|
|
260
|
-
t &&
|
|
261
|
-
|
|
262
|
-
p &&
|
|
263
|
-
|
|
386
|
+
className: w(
|
|
387
|
+
yt({ variant: a }),
|
|
388
|
+
t && bt[t],
|
|
389
|
+
m && P.disabled,
|
|
390
|
+
p && P.fullWidth,
|
|
391
|
+
n
|
|
264
392
|
),
|
|
265
393
|
children: [
|
|
266
|
-
|
|
267
|
-
/* @__PURE__ */
|
|
394
|
+
r ? /* @__PURE__ */ e("span", { className: P.adornment, children: r }) : null,
|
|
395
|
+
/* @__PURE__ */ e(
|
|
268
396
|
"input",
|
|
269
397
|
{
|
|
270
|
-
ref:
|
|
398
|
+
ref: b,
|
|
271
399
|
[f]: y.inputField,
|
|
272
|
-
className:
|
|
273
|
-
disabled:
|
|
274
|
-
readOnly:
|
|
275
|
-
value:
|
|
276
|
-
defaultValue:
|
|
277
|
-
onChange:
|
|
400
|
+
className: P.field,
|
|
401
|
+
disabled: m,
|
|
402
|
+
readOnly: c,
|
|
403
|
+
value: $,
|
|
404
|
+
defaultValue: _,
|
|
405
|
+
onChange: v,
|
|
278
406
|
...N
|
|
279
407
|
}
|
|
280
408
|
),
|
|
281
|
-
|
|
409
|
+
d ? /* @__PURE__ */ e(
|
|
282
410
|
"button",
|
|
283
411
|
{
|
|
284
412
|
type: "button",
|
|
285
|
-
className:
|
|
286
|
-
onClick:
|
|
413
|
+
className: P.clearButton,
|
|
414
|
+
onClick: x,
|
|
287
415
|
"aria-label": "Clear input",
|
|
288
416
|
tabIndex: -1,
|
|
289
|
-
children: /* @__PURE__ */
|
|
290
|
-
"svg",
|
|
291
|
-
{
|
|
292
|
-
viewBox: "0 0 24 24",
|
|
293
|
-
fill: "none",
|
|
294
|
-
stroke: "currentColor",
|
|
295
|
-
strokeWidth: "2",
|
|
296
|
-
strokeLinecap: "round",
|
|
297
|
-
strokeLinejoin: "round",
|
|
298
|
-
children: /* @__PURE__ */ i("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
299
|
-
}
|
|
300
|
-
)
|
|
417
|
+
children: /* @__PURE__ */ e(nt, {})
|
|
301
418
|
}
|
|
302
419
|
) : null,
|
|
303
|
-
|
|
420
|
+
i ? /* @__PURE__ */ e("span", { className: P.adornment, children: i }) : null
|
|
304
421
|
]
|
|
305
422
|
}
|
|
306
423
|
);
|
|
307
424
|
}
|
|
308
425
|
);
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
wrapper:
|
|
312
|
-
disabled:
|
|
313
|
-
fullWidth:
|
|
314
|
-
variantPrimary:
|
|
315
|
-
variantSecondary:
|
|
316
|
-
variantTertiary:
|
|
317
|
-
statusError:
|
|
318
|
-
statusWarning:
|
|
319
|
-
statusSuccess:
|
|
320
|
-
field:
|
|
321
|
-
charCount:
|
|
322
|
-
charCountWarning:
|
|
323
|
-
charCountError:
|
|
324
|
-
},
|
|
426
|
+
gt.displayName = "Input";
|
|
427
|
+
const $t = "_wrapper_16m4i_1", xt = "_disabled_16m4i_21", kt = "_fullWidth_16m4i_26", wt = "_variantPrimary_16m4i_29", Nt = "_variantSecondary_16m4i_32", It = "_variantTertiary_16m4i_36", Ct = "_statusError_16m4i_45", St = "_statusWarning_16m4i_48", Wt = "_statusSuccess_16m4i_51", Bt = "_field_16m4i_55", Dt = "_charCount_16m4i_74", Tt = "_charCountWarning_16m4i_84", Pt = "_charCountError_16m4i_88", F = {
|
|
428
|
+
wrapper: $t,
|
|
429
|
+
disabled: xt,
|
|
430
|
+
fullWidth: kt,
|
|
431
|
+
variantPrimary: wt,
|
|
432
|
+
variantSecondary: Nt,
|
|
433
|
+
variantTertiary: It,
|
|
434
|
+
statusError: Ct,
|
|
435
|
+
statusWarning: St,
|
|
436
|
+
statusSuccess: Wt,
|
|
437
|
+
field: Bt,
|
|
438
|
+
charCount: Dt,
|
|
439
|
+
charCountWarning: Tt,
|
|
440
|
+
charCountError: Pt
|
|
441
|
+
}, Ft = H(F.wrapper, {
|
|
325
442
|
variants: {
|
|
326
443
|
variant: {
|
|
327
444
|
primary: F.variantPrimary,
|
|
@@ -332,90 +449,90 @@ const on = "_wrapper_16m4i_1", cn = "_disabled_16m4i_21", ln = "_fullWidth_16m4i
|
|
|
332
449
|
defaultVariants: {
|
|
333
450
|
variant: "primary"
|
|
334
451
|
}
|
|
335
|
-
}),
|
|
452
|
+
}), Vt = {
|
|
336
453
|
error: F.statusError,
|
|
337
454
|
warning: F.statusWarning,
|
|
338
455
|
success: F.statusSuccess
|
|
339
|
-
},
|
|
456
|
+
}, Et = D(
|
|
340
457
|
({
|
|
341
|
-
className:
|
|
342
|
-
variant:
|
|
458
|
+
className: n,
|
|
459
|
+
variant: a,
|
|
343
460
|
validationStatus: t,
|
|
344
|
-
showCharCount:
|
|
345
|
-
warningThreshold:
|
|
346
|
-
autoResize:
|
|
461
|
+
showCharCount: r,
|
|
462
|
+
warningThreshold: i,
|
|
463
|
+
autoResize: s,
|
|
347
464
|
minRows: l = 3,
|
|
348
465
|
maxRows: p,
|
|
349
|
-
fullWidth:
|
|
350
|
-
maxLength:
|
|
351
|
-
disabled:
|
|
352
|
-
readOnly:
|
|
353
|
-
value:
|
|
466
|
+
fullWidth: m,
|
|
467
|
+
maxLength: c,
|
|
468
|
+
disabled: $,
|
|
469
|
+
readOnly: _,
|
|
470
|
+
value: v,
|
|
354
471
|
defaultValue: N,
|
|
355
|
-
onChange:
|
|
356
|
-
...
|
|
357
|
-
},
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}, [
|
|
362
|
-
const
|
|
363
|
-
const
|
|
364
|
-
if (!
|
|
365
|
-
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
}, [
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}, [
|
|
372
|
-
const
|
|
373
|
-
(
|
|
374
|
-
|
|
472
|
+
onChange: h,
|
|
473
|
+
...I
|
|
474
|
+
}, b) => {
|
|
475
|
+
const x = Z(null), d = b || x, [S, W] = J(() => (v ?? N ?? "").length);
|
|
476
|
+
X(() => {
|
|
477
|
+
v !== void 0 && W(v.length);
|
|
478
|
+
}, [v]);
|
|
479
|
+
const u = k(() => {
|
|
480
|
+
const g = d.current;
|
|
481
|
+
if (!g || !s) return;
|
|
482
|
+
g.style.height = "auto";
|
|
483
|
+
const L = parseFloat(getComputedStyle(g).lineHeight), pn = L * l, rn = p ? L * p : 1 / 0, an = g.scrollHeight;
|
|
484
|
+
g.style.height = `${Math.min(Math.max(an, pn), rn)}px`, g.style.overflowY = an > rn ? "auto" : "hidden";
|
|
485
|
+
}, [s, l, p, d]);
|
|
486
|
+
X(() => {
|
|
487
|
+
u();
|
|
488
|
+
}, [v, u]);
|
|
489
|
+
const T = k(
|
|
490
|
+
(g) => {
|
|
491
|
+
W(g.target.value.length), u(), h?.(g);
|
|
375
492
|
},
|
|
376
|
-
[
|
|
377
|
-
),
|
|
493
|
+
[h, u]
|
|
494
|
+
), z = i !== void 0 && c !== void 0 && S >= i, U = c !== void 0 && S >= c ? "error" : z ? "warning" : void 0, B = t ?? U;
|
|
378
495
|
return /* @__PURE__ */ C(
|
|
379
496
|
"div",
|
|
380
497
|
{
|
|
381
498
|
[f]: y.textarea,
|
|
382
|
-
className:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
499
|
+
className: w(
|
|
500
|
+
Ft({ variant: a }),
|
|
501
|
+
B && Vt[B],
|
|
502
|
+
$ && F.disabled,
|
|
503
|
+
m && F.fullWidth,
|
|
504
|
+
n
|
|
388
505
|
),
|
|
389
506
|
children: [
|
|
390
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ e(
|
|
391
508
|
"textarea",
|
|
392
509
|
{
|
|
393
|
-
ref:
|
|
510
|
+
ref: d,
|
|
394
511
|
[f]: y.textareaField,
|
|
395
512
|
className: F.field,
|
|
396
513
|
rows: l,
|
|
397
|
-
maxLength:
|
|
398
|
-
disabled:
|
|
399
|
-
readOnly:
|
|
400
|
-
value:
|
|
514
|
+
maxLength: c,
|
|
515
|
+
disabled: $,
|
|
516
|
+
readOnly: _,
|
|
517
|
+
value: v,
|
|
401
518
|
defaultValue: N,
|
|
402
|
-
onChange:
|
|
403
|
-
...
|
|
519
|
+
onChange: T,
|
|
520
|
+
...I
|
|
404
521
|
}
|
|
405
522
|
),
|
|
406
|
-
|
|
523
|
+
r && c !== void 0 ? /* @__PURE__ */ C(
|
|
407
524
|
"span",
|
|
408
525
|
{
|
|
409
526
|
[f]: y.textareaCount,
|
|
410
|
-
className:
|
|
527
|
+
className: w(
|
|
411
528
|
F.charCount,
|
|
412
|
-
|
|
413
|
-
|
|
529
|
+
U === "warning" && F.charCountWarning,
|
|
530
|
+
U === "error" && F.charCountError
|
|
414
531
|
),
|
|
415
532
|
children: [
|
|
416
|
-
|
|
533
|
+
S,
|
|
417
534
|
"/",
|
|
418
|
-
|
|
535
|
+
c
|
|
419
536
|
]
|
|
420
537
|
}
|
|
421
538
|
) : null
|
|
@@ -424,173 +541,153 @@ const on = "_wrapper_16m4i_1", cn = "_disabled_16m4i_21", ln = "_fullWidth_16m4i
|
|
|
424
541
|
);
|
|
425
542
|
}
|
|
426
543
|
);
|
|
427
|
-
|
|
428
|
-
const
|
|
429
|
-
wrapper:
|
|
430
|
-
disabled:
|
|
431
|
-
fullWidth:
|
|
432
|
-
variantPrimary:
|
|
433
|
-
variantSecondary:
|
|
434
|
-
variantTertiary:
|
|
435
|
-
statusError:
|
|
436
|
-
statusWarning:
|
|
437
|
-
statusSuccess:
|
|
438
|
-
field:
|
|
439
|
-
stepButton:
|
|
440
|
-
},
|
|
544
|
+
Et.displayName = "Textarea";
|
|
545
|
+
const Rt = "_wrapper_1k2cc_1", qt = "_disabled_1k2cc_22", Lt = "_fullWidth_1k2cc_27", Mt = "_variantPrimary_1k2cc_30", jt = "_variantSecondary_1k2cc_33", Ht = "_variantTertiary_1k2cc_37", Ot = "_statusError_1k2cc_46", At = "_statusWarning_1k2cc_49", Kt = "_statusSuccess_1k2cc_52", Gt = "_field_1k2cc_56", Zt = "_stepButton_1k2cc_79", V = {
|
|
546
|
+
wrapper: Rt,
|
|
547
|
+
disabled: qt,
|
|
548
|
+
fullWidth: Lt,
|
|
549
|
+
variantPrimary: Mt,
|
|
550
|
+
variantSecondary: jt,
|
|
551
|
+
variantTertiary: Ht,
|
|
552
|
+
statusError: Ot,
|
|
553
|
+
statusWarning: At,
|
|
554
|
+
statusSuccess: Kt,
|
|
555
|
+
field: Gt,
|
|
556
|
+
stepButton: Zt
|
|
557
|
+
}, zt = H(V.wrapper, {
|
|
441
558
|
variants: {
|
|
442
559
|
variant: {
|
|
443
|
-
primary:
|
|
444
|
-
secondary:
|
|
445
|
-
tertiary:
|
|
560
|
+
primary: V.variantPrimary,
|
|
561
|
+
secondary: V.variantSecondary,
|
|
562
|
+
tertiary: V.variantTertiary
|
|
446
563
|
}
|
|
447
564
|
},
|
|
448
565
|
defaultVariants: {
|
|
449
566
|
variant: "primary"
|
|
450
567
|
}
|
|
451
|
-
}),
|
|
452
|
-
error:
|
|
453
|
-
warning:
|
|
454
|
-
success:
|
|
568
|
+
}), Ut = {
|
|
569
|
+
error: V.statusError,
|
|
570
|
+
warning: V.statusWarning,
|
|
571
|
+
success: V.statusSuccess
|
|
455
572
|
};
|
|
456
|
-
function
|
|
457
|
-
let
|
|
458
|
-
return
|
|
573
|
+
function Yt(n, a, t) {
|
|
574
|
+
let r = n;
|
|
575
|
+
return a !== void 0 && (r = Math.max(r, a)), t !== void 0 && (r = Math.min(r, t)), r;
|
|
459
576
|
}
|
|
460
|
-
function
|
|
461
|
-
return
|
|
577
|
+
function Q(n, a) {
|
|
578
|
+
return a !== void 0 ? n.toFixed(a) : String(n);
|
|
462
579
|
}
|
|
463
|
-
const
|
|
580
|
+
const Jt = D(
|
|
464
581
|
({
|
|
465
|
-
className:
|
|
466
|
-
variant:
|
|
582
|
+
className: n,
|
|
583
|
+
variant: a,
|
|
467
584
|
validationStatus: t,
|
|
468
|
-
value:
|
|
469
|
-
defaultValue:
|
|
470
|
-
min:
|
|
585
|
+
value: r,
|
|
586
|
+
defaultValue: i,
|
|
587
|
+
min: s,
|
|
471
588
|
max: l,
|
|
472
589
|
step: p = 1,
|
|
473
|
-
precision:
|
|
474
|
-
onChange:
|
|
475
|
-
fullWidth:
|
|
476
|
-
disabled:
|
|
477
|
-
readOnly:
|
|
590
|
+
precision: m,
|
|
591
|
+
onChange: c,
|
|
592
|
+
fullWidth: $,
|
|
593
|
+
disabled: _,
|
|
594
|
+
readOnly: v,
|
|
478
595
|
...N
|
|
479
|
-
},
|
|
480
|
-
const
|
|
481
|
-
() =>
|
|
482
|
-
),
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}, [
|
|
486
|
-
const
|
|
487
|
-
(
|
|
488
|
-
const
|
|
489
|
-
|
|
596
|
+
}, h) => {
|
|
597
|
+
const I = Z(null), b = h || I, x = r !== void 0, [d, S] = J(
|
|
598
|
+
() => i !== void 0 ? Q(i, m) : ""
|
|
599
|
+
), W = x ? r === "" ? "" : Q(r, m) : d;
|
|
600
|
+
X(() => {
|
|
601
|
+
x && r !== "" && S(Q(r, m));
|
|
602
|
+
}, [r, m, x]);
|
|
603
|
+
const u = k(
|
|
604
|
+
(B) => {
|
|
605
|
+
const g = Yt(B, s, l), L = Q(g, m);
|
|
606
|
+
x || S(L), c?.(g);
|
|
490
607
|
},
|
|
491
|
-
[
|
|
492
|
-
),
|
|
493
|
-
(
|
|
494
|
-
const
|
|
495
|
-
|
|
608
|
+
[s, l, m, x, c]
|
|
609
|
+
), T = k(
|
|
610
|
+
(B) => {
|
|
611
|
+
const g = parseFloat(W) || 0;
|
|
612
|
+
u(g + p * B);
|
|
496
613
|
},
|
|
497
|
-
[
|
|
498
|
-
),
|
|
499
|
-
(
|
|
500
|
-
const
|
|
501
|
-
if (
|
|
502
|
-
|
|
614
|
+
[W, p, u]
|
|
615
|
+
), z = k(
|
|
616
|
+
(B) => {
|
|
617
|
+
const g = B.target.value;
|
|
618
|
+
if (g === "" || g === "-" || g === ".") {
|
|
619
|
+
x || S(g), g === "" && c?.(void 0);
|
|
503
620
|
return;
|
|
504
621
|
}
|
|
505
|
-
const
|
|
506
|
-
isNaN(
|
|
622
|
+
const L = parseFloat(g);
|
|
623
|
+
isNaN(L) || (x || S(g), c?.(L));
|
|
507
624
|
},
|
|
508
|
-
[
|
|
509
|
-
),
|
|
510
|
-
const
|
|
511
|
-
isNaN(
|
|
512
|
-
}, [
|
|
513
|
-
(
|
|
514
|
-
|
|
625
|
+
[x, c]
|
|
626
|
+
), en = k(() => {
|
|
627
|
+
const B = parseFloat(W);
|
|
628
|
+
isNaN(B) ? (x || S(""), c?.(void 0)) : u(B);
|
|
629
|
+
}, [W, x, c, u]), U = k(
|
|
630
|
+
(B) => {
|
|
631
|
+
B.key === "ArrowUp" ? (B.preventDefault(), T(1)) : B.key === "ArrowDown" && (B.preventDefault(), T(-1));
|
|
515
632
|
},
|
|
516
|
-
[
|
|
633
|
+
[T]
|
|
517
634
|
);
|
|
518
635
|
return /* @__PURE__ */ C(
|
|
519
636
|
"div",
|
|
520
637
|
{
|
|
521
638
|
[f]: y.numberInput,
|
|
522
|
-
className:
|
|
523
|
-
|
|
524
|
-
t &&
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
639
|
+
className: w(
|
|
640
|
+
zt({ variant: a }),
|
|
641
|
+
t && Ut[t],
|
|
642
|
+
_ && V.disabled,
|
|
643
|
+
$ && V.fullWidth,
|
|
644
|
+
n
|
|
528
645
|
),
|
|
529
646
|
children: [
|
|
530
|
-
/* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ e(
|
|
531
648
|
"button",
|
|
532
649
|
{
|
|
533
650
|
type: "button",
|
|
534
651
|
[f]: y.numberInputDecrement,
|
|
535
|
-
className:
|
|
536
|
-
onClick: () =>
|
|
537
|
-
disabled:
|
|
652
|
+
className: V.stepButton,
|
|
653
|
+
onClick: () => T(-1),
|
|
654
|
+
disabled: _ || v || s !== void 0 && (parseFloat(W) || 0) <= s,
|
|
538
655
|
"aria-label": "Decrement",
|
|
539
656
|
tabIndex: -1,
|
|
540
|
-
children: /* @__PURE__ */
|
|
541
|
-
"svg",
|
|
542
|
-
{
|
|
543
|
-
viewBox: "0 0 24 24",
|
|
544
|
-
fill: "none",
|
|
545
|
-
stroke: "currentColor",
|
|
546
|
-
strokeWidth: "2",
|
|
547
|
-
strokeLinecap: "round",
|
|
548
|
-
children: /* @__PURE__ */ i("path", { d: "M5 12h14" })
|
|
549
|
-
}
|
|
550
|
-
)
|
|
657
|
+
children: /* @__PURE__ */ e(at, {})
|
|
551
658
|
}
|
|
552
659
|
),
|
|
553
|
-
/* @__PURE__ */
|
|
660
|
+
/* @__PURE__ */ e(
|
|
554
661
|
"input",
|
|
555
662
|
{
|
|
556
|
-
ref:
|
|
663
|
+
ref: b,
|
|
557
664
|
[f]: y.numberInputField,
|
|
558
|
-
className:
|
|
665
|
+
className: V.field,
|
|
559
666
|
inputMode: "decimal",
|
|
560
|
-
value:
|
|
561
|
-
onChange:
|
|
562
|
-
onBlur:
|
|
563
|
-
onKeyDown:
|
|
564
|
-
disabled:
|
|
565
|
-
readOnly:
|
|
667
|
+
value: W,
|
|
668
|
+
onChange: z,
|
|
669
|
+
onBlur: en,
|
|
670
|
+
onKeyDown: U,
|
|
671
|
+
disabled: _,
|
|
672
|
+
readOnly: v,
|
|
566
673
|
role: "spinbutton",
|
|
567
|
-
"aria-valuemin":
|
|
674
|
+
"aria-valuemin": s,
|
|
568
675
|
"aria-valuemax": l,
|
|
569
|
-
"aria-valuenow": typeof
|
|
676
|
+
"aria-valuenow": typeof W == "string" ? parseFloat(W) || void 0 : W,
|
|
570
677
|
...N
|
|
571
678
|
}
|
|
572
679
|
),
|
|
573
|
-
/* @__PURE__ */
|
|
680
|
+
/* @__PURE__ */ e(
|
|
574
681
|
"button",
|
|
575
682
|
{
|
|
576
683
|
type: "button",
|
|
577
684
|
[f]: y.numberInputIncrement,
|
|
578
|
-
className:
|
|
579
|
-
onClick: () =>
|
|
580
|
-
disabled:
|
|
685
|
+
className: V.stepButton,
|
|
686
|
+
onClick: () => T(1),
|
|
687
|
+
disabled: _ || v || l !== void 0 && (parseFloat(W) || 0) >= l,
|
|
581
688
|
"aria-label": "Increment",
|
|
582
689
|
tabIndex: -1,
|
|
583
|
-
children: /* @__PURE__ */
|
|
584
|
-
"svg",
|
|
585
|
-
{
|
|
586
|
-
viewBox: "0 0 24 24",
|
|
587
|
-
fill: "none",
|
|
588
|
-
stroke: "currentColor",
|
|
589
|
-
strokeWidth: "2",
|
|
590
|
-
strokeLinecap: "round",
|
|
591
|
-
children: /* @__PURE__ */ i("path", { d: "M12 5v14M5 12h14" })
|
|
592
|
-
}
|
|
593
|
-
)
|
|
690
|
+
children: /* @__PURE__ */ e(it, {})
|
|
594
691
|
}
|
|
595
692
|
)
|
|
596
693
|
]
|
|
@@ -598,74 +695,74 @@ const jn = B(
|
|
|
598
695
|
);
|
|
599
696
|
}
|
|
600
697
|
);
|
|
601
|
-
|
|
602
|
-
const
|
|
603
|
-
formField:
|
|
604
|
-
fullWidth:
|
|
605
|
-
disabled:
|
|
606
|
-
label:
|
|
607
|
-
required:
|
|
608
|
-
helperText:
|
|
609
|
-
errorMessage:
|
|
610
|
-
},
|
|
698
|
+
Jt.displayName = "NumberInput";
|
|
699
|
+
const Qt = "_formField_bdanr_1", Xt = "_fullWidth_bdanr_6", ne = "_disabled_bdanr_12", te = "_label_bdanr_17", ee = "_required_bdanr_24", re = "_helperText_bdanr_29", ae = "_errorMessage_bdanr_37", M = {
|
|
700
|
+
formField: Qt,
|
|
701
|
+
fullWidth: Xt,
|
|
702
|
+
disabled: ne,
|
|
703
|
+
label: te,
|
|
704
|
+
required: ee,
|
|
705
|
+
helperText: re,
|
|
706
|
+
errorMessage: ae
|
|
707
|
+
}, ie = D(
|
|
611
708
|
({
|
|
612
|
-
className:
|
|
613
|
-
label:
|
|
709
|
+
className: n,
|
|
710
|
+
label: a,
|
|
614
711
|
helperText: t,
|
|
615
|
-
errorMessage:
|
|
616
|
-
validationStatus:
|
|
617
|
-
required:
|
|
712
|
+
errorMessage: r,
|
|
713
|
+
validationStatus: i,
|
|
714
|
+
required: s,
|
|
618
715
|
fullWidth: l,
|
|
619
716
|
disabled: p,
|
|
620
|
-
htmlFor:
|
|
621
|
-
children:
|
|
622
|
-
|
|
623
|
-
},
|
|
624
|
-
const
|
|
717
|
+
htmlFor: m,
|
|
718
|
+
children: c,
|
|
719
|
+
...$
|
|
720
|
+
}, _) => {
|
|
721
|
+
const v = mn(), N = m ?? v, h = `${N}-helper`, I = `${N}-error`, b = i === "error" && r, x = [b ? I : void 0, t ? h : void 0].filter(Boolean).join(" ") || void 0, d = vn.map(c, (S) => hn(S) ? fn(S, {
|
|
625
722
|
id: N,
|
|
626
|
-
"aria-describedby":
|
|
627
|
-
"aria-invalid":
|
|
723
|
+
"aria-describedby": x,
|
|
724
|
+
"aria-invalid": i === "error" ? !0 : void 0,
|
|
628
725
|
disabled: p || void 0
|
|
629
|
-
}) :
|
|
726
|
+
}) : S);
|
|
630
727
|
return /* @__PURE__ */ C(
|
|
631
728
|
"div",
|
|
632
729
|
{
|
|
633
|
-
ref:
|
|
730
|
+
ref: _,
|
|
634
731
|
[f]: y.formField,
|
|
635
|
-
className:
|
|
636
|
-
|
|
637
|
-
l &&
|
|
638
|
-
p &&
|
|
639
|
-
|
|
732
|
+
className: w(
|
|
733
|
+
M.formField,
|
|
734
|
+
l && M.fullWidth,
|
|
735
|
+
p && M.disabled,
|
|
736
|
+
n
|
|
640
737
|
),
|
|
641
|
-
|
|
738
|
+
...$,
|
|
642
739
|
children: [
|
|
643
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ e(
|
|
644
741
|
"label",
|
|
645
742
|
{
|
|
646
743
|
[f]: y.formFieldLabel,
|
|
647
744
|
htmlFor: N,
|
|
648
|
-
className:
|
|
649
|
-
children:
|
|
745
|
+
className: w(M.label, s && M.required),
|
|
746
|
+
children: a
|
|
650
747
|
}
|
|
651
748
|
),
|
|
652
|
-
|
|
653
|
-
|
|
749
|
+
d,
|
|
750
|
+
b ? /* @__PURE__ */ e(
|
|
654
751
|
"p",
|
|
655
752
|
{
|
|
656
753
|
[f]: y.formFieldError,
|
|
657
|
-
id:
|
|
658
|
-
className:
|
|
754
|
+
id: I,
|
|
755
|
+
className: M.errorMessage,
|
|
659
756
|
role: "alert",
|
|
660
|
-
children:
|
|
757
|
+
children: r
|
|
661
758
|
}
|
|
662
759
|
) : null,
|
|
663
|
-
t ? /* @__PURE__ */
|
|
760
|
+
t ? /* @__PURE__ */ e(
|
|
664
761
|
"p",
|
|
665
762
|
{
|
|
666
763
|
[f]: y.formFieldHelper,
|
|
667
|
-
id:
|
|
668
|
-
className:
|
|
764
|
+
id: h,
|
|
765
|
+
className: M.helperText,
|
|
669
766
|
children: t
|
|
670
767
|
}
|
|
671
768
|
) : null
|
|
@@ -674,142 +771,114 @@ const Vn = "_formField_bdanr_1", Rn = "_fullWidth_bdanr_6", Mn = "_disabled_bdan
|
|
|
674
771
|
);
|
|
675
772
|
}
|
|
676
773
|
);
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
checkbox:
|
|
680
|
-
disabled:
|
|
681
|
-
input:
|
|
682
|
-
indicator:
|
|
683
|
-
label:
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
typeof t == "function" ? t(n) : t && typeof t == "object" && (t.current = n);
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
const Qn = B(
|
|
692
|
-
({ className: r, label: n, indeterminate: t, disabled: e, ...a }, o) => {
|
|
693
|
-
const l = K(null);
|
|
694
|
-
return Q(() => {
|
|
774
|
+
ie.displayName = "FormField";
|
|
775
|
+
const oe = "_checkbox_q1fn9_1", se = "_disabled_q1fn9_11", ce = "_input_q1fn9_16", le = "_indicator_q1fn9_25", ue = "_label_q1fn9_70", Y = {
|
|
776
|
+
checkbox: oe,
|
|
777
|
+
disabled: se,
|
|
778
|
+
input: ce,
|
|
779
|
+
indicator: le,
|
|
780
|
+
label: ue
|
|
781
|
+
}, de = D(
|
|
782
|
+
({ className: n, label: a, indeterminate: t, disabled: r, ...i }, s) => {
|
|
783
|
+
const l = Z(null);
|
|
784
|
+
return X(() => {
|
|
695
785
|
l.current && (l.current.indeterminate = t ?? !1);
|
|
696
786
|
}, [t]), /* @__PURE__ */ C(
|
|
697
787
|
"label",
|
|
698
788
|
{
|
|
699
789
|
[f]: y.checkbox,
|
|
700
|
-
className:
|
|
790
|
+
className: w(Y.checkbox, r && Y.disabled, n),
|
|
701
791
|
children: [
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
|
|
792
|
+
/* @__PURE__ */ e(
|
|
793
|
+
$n,
|
|
704
794
|
{
|
|
705
|
-
ref:
|
|
706
|
-
className:
|
|
707
|
-
disabled:
|
|
795
|
+
ref: tn(s, l),
|
|
796
|
+
className: Y.input,
|
|
797
|
+
disabled: r,
|
|
708
798
|
"data-indeterminate": t || void 0,
|
|
709
|
-
...
|
|
799
|
+
...i
|
|
710
800
|
}
|
|
711
801
|
),
|
|
712
|
-
/* @__PURE__ */
|
|
713
|
-
|
|
714
|
-
{
|
|
715
|
-
viewBox: "0 0 12 12",
|
|
716
|
-
fill: "none",
|
|
717
|
-
stroke: "currentColor",
|
|
718
|
-
strokeWidth: "2",
|
|
719
|
-
strokeLinecap: "round",
|
|
720
|
-
children: /* @__PURE__ */ i("path", { d: "M2.5 6h7" })
|
|
721
|
-
}
|
|
722
|
-
) : /* @__PURE__ */ i(
|
|
723
|
-
"svg",
|
|
724
|
-
{
|
|
725
|
-
viewBox: "0 0 12 12",
|
|
726
|
-
fill: "none",
|
|
727
|
-
stroke: "currentColor",
|
|
728
|
-
strokeWidth: "2",
|
|
729
|
-
strokeLinecap: "round",
|
|
730
|
-
strokeLinejoin: "round",
|
|
731
|
-
children: /* @__PURE__ */ i("path", { d: "M2.5 6l2.5 2.5 4.5-5" })
|
|
732
|
-
}
|
|
733
|
-
) }),
|
|
734
|
-
n ? /* @__PURE__ */ i("span", { className: U.label, children: n }) : null
|
|
802
|
+
/* @__PURE__ */ e("span", { className: Y.indicator, "aria-hidden": "true", children: t ? /* @__PURE__ */ e(Xn, {}) : /* @__PURE__ */ e(dn, {}) }),
|
|
803
|
+
a ? /* @__PURE__ */ e("span", { className: Y.label, children: a }) : null
|
|
735
804
|
]
|
|
736
805
|
}
|
|
737
806
|
);
|
|
738
807
|
}
|
|
739
808
|
);
|
|
740
|
-
|
|
741
|
-
const
|
|
809
|
+
de.displayName = "Checkbox";
|
|
810
|
+
const _e = "_disabled_19daj_11", pe = "_input_19daj_16", me = "_track_19daj_25", ve = "_thumb_19daj_29", he = "_label_19daj_71", O = {
|
|
742
811
|
switch: "_switch_19daj_1",
|
|
743
|
-
disabled:
|
|
744
|
-
input:
|
|
745
|
-
track:
|
|
746
|
-
thumb:
|
|
747
|
-
label:
|
|
748
|
-
},
|
|
749
|
-
({ className:
|
|
812
|
+
disabled: _e,
|
|
813
|
+
input: pe,
|
|
814
|
+
track: me,
|
|
815
|
+
thumb: ve,
|
|
816
|
+
label: he
|
|
817
|
+
}, fe = D(
|
|
818
|
+
({ className: n, label: a, disabled: t, ...r }, i) => /* @__PURE__ */ C(
|
|
750
819
|
"label",
|
|
751
820
|
{
|
|
752
821
|
[f]: y.switch,
|
|
753
|
-
className:
|
|
822
|
+
className: w(O.switch, t && O.disabled, n),
|
|
754
823
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
-
|
|
824
|
+
/* @__PURE__ */ e(xn, { ref: i, className: O.input, disabled: t, ...r }),
|
|
825
|
+
/* @__PURE__ */ e("span", { className: O.track, "aria-hidden": "true", children: /* @__PURE__ */ e("span", { className: O.thumb }) }),
|
|
826
|
+
a ? /* @__PURE__ */ e("span", { className: O.label, children: a }) : null
|
|
758
827
|
]
|
|
759
828
|
}
|
|
760
829
|
)
|
|
761
830
|
);
|
|
762
|
-
|
|
763
|
-
const
|
|
764
|
-
radio:
|
|
765
|
-
disabled:
|
|
766
|
-
input:
|
|
767
|
-
indicator:
|
|
768
|
-
dot:
|
|
769
|
-
label:
|
|
770
|
-
},
|
|
771
|
-
({ className:
|
|
831
|
+
fe.displayName = "Switch";
|
|
832
|
+
const ye = "_radio_1ra61_1", be = "_disabled_1ra61_11", ge = "_input_1ra61_16", $e = "_indicator_1ra61_25", xe = "_dot_1ra61_28", ke = "_label_1ra61_68", A = {
|
|
833
|
+
radio: ye,
|
|
834
|
+
disabled: be,
|
|
835
|
+
input: ge,
|
|
836
|
+
indicator: $e,
|
|
837
|
+
dot: xe,
|
|
838
|
+
label: ke
|
|
839
|
+
}, we = D(
|
|
840
|
+
({ className: n, label: a, disabled: t, ...r }, i) => /* @__PURE__ */ C(
|
|
772
841
|
"label",
|
|
773
842
|
{
|
|
774
843
|
[f]: y.radioButton,
|
|
775
|
-
className:
|
|
844
|
+
className: w(A.radio, t && A.disabled, n),
|
|
776
845
|
children: [
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
|
|
846
|
+
/* @__PURE__ */ e(kn, { ref: i, className: A.input, disabled: t, ...r }),
|
|
847
|
+
/* @__PURE__ */ e("span", { className: A.indicator, "aria-hidden": "true", children: /* @__PURE__ */ e("span", { className: A.dot }) }),
|
|
848
|
+
a ? /* @__PURE__ */ e("span", { className: A.label, children: a }) : null
|
|
780
849
|
]
|
|
781
850
|
}
|
|
782
851
|
)
|
|
783
852
|
);
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
slider:
|
|
787
|
-
disabled:
|
|
788
|
-
header:
|
|
789
|
-
label:
|
|
790
|
-
value:
|
|
791
|
-
input:
|
|
792
|
-
},
|
|
793
|
-
({ className:
|
|
794
|
-
const
|
|
853
|
+
we.displayName = "RadioButton";
|
|
854
|
+
const Ne = "_slider_q8xxv_1", Ie = "_disabled_q8xxv_11", Ce = "_header_q8xxv_16", Se = "_label_q8xxv_23", We = "_value_q8xxv_27", Be = "_input_q8xxv_33", K = {
|
|
855
|
+
slider: Ne,
|
|
856
|
+
disabled: Ie,
|
|
857
|
+
header: Ce,
|
|
858
|
+
label: Se,
|
|
859
|
+
value: We,
|
|
860
|
+
input: Be
|
|
861
|
+
}, De = D(
|
|
862
|
+
({ className: n, label: a, showValue: t, disabled: r, value: i, defaultValue: s, ...l }, p) => {
|
|
863
|
+
const m = i ?? s ?? "";
|
|
795
864
|
return /* @__PURE__ */ C(
|
|
796
865
|
"label",
|
|
797
866
|
{
|
|
798
867
|
[f]: y.slider,
|
|
799
|
-
className:
|
|
868
|
+
className: w(K.slider, r && K.disabled, n),
|
|
800
869
|
children: [
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
t ? /* @__PURE__ */
|
|
870
|
+
a || t ? /* @__PURE__ */ C("span", { className: K.header, children: [
|
|
871
|
+
a ? /* @__PURE__ */ e("span", { className: K.label, children: a }) : null,
|
|
872
|
+
t ? /* @__PURE__ */ e("span", { className: K.value, children: m }) : null
|
|
804
873
|
] }) : null,
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
|
|
874
|
+
/* @__PURE__ */ e(
|
|
875
|
+
wn,
|
|
807
876
|
{
|
|
808
877
|
ref: p,
|
|
809
|
-
className:
|
|
810
|
-
disabled:
|
|
811
|
-
value:
|
|
812
|
-
defaultValue:
|
|
878
|
+
className: K.input,
|
|
879
|
+
disabled: r,
|
|
880
|
+
value: i,
|
|
881
|
+
defaultValue: s,
|
|
813
882
|
...l
|
|
814
883
|
}
|
|
815
884
|
)
|
|
@@ -818,116 +887,99 @@ const _e = "_slider_q8xxv_1", me = "_disabled_q8xxv_11", pe = "_header_q8xxv_16"
|
|
|
818
887
|
);
|
|
819
888
|
}
|
|
820
889
|
);
|
|
821
|
-
|
|
822
|
-
const
|
|
823
|
-
pillInput:
|
|
824
|
-
disabled:
|
|
825
|
-
pill:
|
|
826
|
-
pillText:
|
|
827
|
-
pillRemove:
|
|
828
|
-
input:
|
|
829
|
-
}
|
|
830
|
-
function xe(...r) {
|
|
831
|
-
return (n) => {
|
|
832
|
-
for (const t of r)
|
|
833
|
-
typeof t == "function" ? t(n) : t && typeof t == "object" && (t.current = n);
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
const Ie = B(
|
|
890
|
+
De.displayName = "Slider";
|
|
891
|
+
const Te = "_pillInput_1tv9n_1", Pe = "_disabled_1tv9n_26", Fe = "_pill_1tv9n_1", Ve = "_pillText_1tv9n_48", Ee = "_pillRemove_1tv9n_55", Re = "_input_1tv9n_75", G = {
|
|
892
|
+
pillInput: Te,
|
|
893
|
+
disabled: Pe,
|
|
894
|
+
pill: Fe,
|
|
895
|
+
pillText: Ve,
|
|
896
|
+
pillRemove: Ee,
|
|
897
|
+
input: Re
|
|
898
|
+
}, qe = D(
|
|
837
899
|
({
|
|
838
|
-
className:
|
|
839
|
-
values:
|
|
900
|
+
className: n,
|
|
901
|
+
values: a,
|
|
840
902
|
onChange: t,
|
|
841
|
-
placeholder:
|
|
842
|
-
disabled:
|
|
843
|
-
maxPills:
|
|
903
|
+
placeholder: r,
|
|
904
|
+
disabled: i,
|
|
905
|
+
maxPills: s,
|
|
844
906
|
delimiters: l = [],
|
|
845
907
|
...p
|
|
846
|
-
},
|
|
847
|
-
const [
|
|
848
|
-
(
|
|
849
|
-
|
|
908
|
+
}, m) => {
|
|
909
|
+
const [c, $] = J([]), [_, v] = J(""), N = Z(null), h = a ?? c, I = k(
|
|
910
|
+
(u) => {
|
|
911
|
+
a || $(u), t?.(u);
|
|
850
912
|
},
|
|
851
|
-
[
|
|
852
|
-
),
|
|
853
|
-
(
|
|
854
|
-
const
|
|
855
|
-
|
|
913
|
+
[a, t]
|
|
914
|
+
), b = k(
|
|
915
|
+
(u) => {
|
|
916
|
+
const T = u.trim();
|
|
917
|
+
T && (h.includes(T) || s != null && h.length >= s || (I([...h, T]), v("")));
|
|
856
918
|
},
|
|
857
|
-
[
|
|
858
|
-
),
|
|
859
|
-
(
|
|
860
|
-
|
|
919
|
+
[h, s, I]
|
|
920
|
+
), x = k(
|
|
921
|
+
(u) => {
|
|
922
|
+
I(h.filter((T, z) => z !== u)), N.current?.focus();
|
|
861
923
|
},
|
|
862
|
-
[
|
|
863
|
-
),
|
|
864
|
-
(
|
|
865
|
-
if (
|
|
866
|
-
|
|
924
|
+
[h, I]
|
|
925
|
+
), d = k(
|
|
926
|
+
(u) => {
|
|
927
|
+
if (u.key === "Enter") {
|
|
928
|
+
u.preventDefault(), b(_);
|
|
867
929
|
return;
|
|
868
930
|
}
|
|
869
|
-
if (
|
|
870
|
-
|
|
931
|
+
if (u.key === "Backspace" && _ === "" && h.length > 0) {
|
|
932
|
+
x(h.length - 1);
|
|
871
933
|
return;
|
|
872
934
|
}
|
|
873
|
-
l.includes(
|
|
935
|
+
l.includes(u.key) && (u.preventDefault(), b(_));
|
|
874
936
|
},
|
|
875
|
-
[
|
|
876
|
-
),
|
|
877
|
-
|
|
878
|
-
}, [
|
|
879
|
-
(
|
|
880
|
-
!
|
|
937
|
+
[_, h, l, b, x]
|
|
938
|
+
), S = k(() => {
|
|
939
|
+
i || N.current?.focus();
|
|
940
|
+
}, [i]), W = k(
|
|
941
|
+
(u) => {
|
|
942
|
+
!i && (u.key === "Enter" || u.key === " ") && N.current?.focus();
|
|
881
943
|
},
|
|
882
|
-
[
|
|
944
|
+
[i]
|
|
883
945
|
);
|
|
884
946
|
return /* @__PURE__ */ C(
|
|
885
947
|
"div",
|
|
886
948
|
{
|
|
887
949
|
[f]: y.pillInput,
|
|
888
950
|
role: "toolbar",
|
|
889
|
-
className:
|
|
890
|
-
onClick:
|
|
891
|
-
onKeyDown:
|
|
951
|
+
className: w(G.pillInput, i && G.disabled, n),
|
|
952
|
+
onClick: S,
|
|
953
|
+
onKeyDown: W,
|
|
892
954
|
...p,
|
|
893
955
|
children: [
|
|
894
|
-
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
|
|
956
|
+
h.map((u) => /* @__PURE__ */ C("span", { className: G.pill, children: [
|
|
957
|
+
/* @__PURE__ */ e("span", { className: G.pillText, children: u }),
|
|
958
|
+
i ? null : /* @__PURE__ */ e(
|
|
897
959
|
"button",
|
|
898
960
|
{
|
|
899
961
|
type: "button",
|
|
900
|
-
className:
|
|
901
|
-
onClick: (
|
|
902
|
-
|
|
962
|
+
className: G.pillRemove,
|
|
963
|
+
onClick: (T) => {
|
|
964
|
+
T.stopPropagation(), x(h.indexOf(u));
|
|
903
965
|
},
|
|
904
|
-
"aria-label": `Remove ${
|
|
966
|
+
"aria-label": `Remove ${u}`,
|
|
905
967
|
tabIndex: -1,
|
|
906
|
-
children: /* @__PURE__ */
|
|
907
|
-
"svg",
|
|
908
|
-
{
|
|
909
|
-
viewBox: "0 0 12 12",
|
|
910
|
-
fill: "none",
|
|
911
|
-
stroke: "currentColor",
|
|
912
|
-
strokeWidth: "2",
|
|
913
|
-
strokeLinecap: "round",
|
|
914
|
-
children: /* @__PURE__ */ i("path", { d: "M3 3l6 6M9 3l-6 6" })
|
|
915
|
-
}
|
|
916
|
-
)
|
|
968
|
+
children: /* @__PURE__ */ e(_n, {})
|
|
917
969
|
}
|
|
918
970
|
)
|
|
919
|
-
] },
|
|
920
|
-
/* @__PURE__ */
|
|
971
|
+
] }, u)),
|
|
972
|
+
/* @__PURE__ */ e(
|
|
921
973
|
"input",
|
|
922
974
|
{
|
|
923
|
-
ref:
|
|
924
|
-
className:
|
|
975
|
+
ref: tn(m, N),
|
|
976
|
+
className: G.input,
|
|
925
977
|
type: "text",
|
|
926
|
-
value:
|
|
927
|
-
onChange: (
|
|
928
|
-
onKeyDown:
|
|
929
|
-
placeholder:
|
|
930
|
-
disabled:
|
|
978
|
+
value: _,
|
|
979
|
+
onChange: (u) => v(u.target.value),
|
|
980
|
+
onKeyDown: d,
|
|
981
|
+
placeholder: h.length === 0 ? r : void 0,
|
|
982
|
+
disabled: i,
|
|
931
983
|
"aria-label": p["aria-label"],
|
|
932
984
|
"aria-labelledby": p["aria-labelledby"]
|
|
933
985
|
}
|
|
@@ -937,195 +989,312 @@ const Ie = B(
|
|
|
937
989
|
);
|
|
938
990
|
}
|
|
939
991
|
);
|
|
940
|
-
|
|
941
|
-
const
|
|
942
|
-
dropZone:
|
|
943
|
-
dragOver:
|
|
944
|
-
disabled:
|
|
945
|
-
input:
|
|
946
|
-
content:
|
|
947
|
-
icon:
|
|
948
|
-
text:
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
const Ee = B(
|
|
957
|
-
({ className: r, onChange: n, accept: t, multiple: e, disabled: a, children: o, ...l }, p) => {
|
|
958
|
-
const [v, s] = Y(!1), g = K(null), d = $(
|
|
959
|
-
(u) => {
|
|
960
|
-
!u || u.length === 0 || n?.(Array.from(u));
|
|
961
|
-
},
|
|
962
|
-
[n]
|
|
963
|
-
), _ = $(
|
|
964
|
-
(u) => {
|
|
965
|
-
u.preventDefault(), a || s(!0);
|
|
992
|
+
qe.displayName = "PillInput";
|
|
993
|
+
const Le = "_dropZone_7sw02_1", Me = "_dragOver_7sw02_31", je = "_disabled_7sw02_35", He = "_input_7sw02_44", Oe = "_content_7sw02_53", Ae = "_icon_7sw02_61", Ke = "_text_7sw02_67", j = {
|
|
994
|
+
dropZone: Le,
|
|
995
|
+
dragOver: Me,
|
|
996
|
+
disabled: je,
|
|
997
|
+
input: He,
|
|
998
|
+
content: Oe,
|
|
999
|
+
icon: Ae,
|
|
1000
|
+
text: Ke
|
|
1001
|
+
}, Ge = D(
|
|
1002
|
+
({ className: n, onChange: a, accept: t, multiple: r, disabled: i, children: s, ...l }, p) => {
|
|
1003
|
+
const [m, c] = J(!1), $ = Z(null), _ = k(
|
|
1004
|
+
(d) => {
|
|
1005
|
+
!d || d.length === 0 || a?.(Array.from(d));
|
|
966
1006
|
},
|
|
967
1007
|
[a]
|
|
968
|
-
),
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
(u) => {
|
|
972
|
-
u.preventDefault(), s(!1), a || d(u.dataTransfer.files);
|
|
1008
|
+
), v = k(
|
|
1009
|
+
(d) => {
|
|
1010
|
+
d.preventDefault(), i || c(!0);
|
|
973
1011
|
},
|
|
974
|
-
[
|
|
975
|
-
),
|
|
976
|
-
(
|
|
977
|
-
|
|
1012
|
+
[i]
|
|
1013
|
+
), N = k((d) => {
|
|
1014
|
+
d.preventDefault(), c(!1);
|
|
1015
|
+
}, []), h = k(
|
|
1016
|
+
(d) => {
|
|
1017
|
+
d.preventDefault(), c(!1), i || _(d.dataTransfer.files);
|
|
978
1018
|
},
|
|
979
|
-
[
|
|
980
|
-
),
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
(u) => {
|
|
984
|
-
!a && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), g.current?.click());
|
|
1019
|
+
[i, _]
|
|
1020
|
+
), I = k(
|
|
1021
|
+
(d) => {
|
|
1022
|
+
_(d.target.files), d.target.value = "";
|
|
985
1023
|
},
|
|
986
|
-
[
|
|
1024
|
+
[_]
|
|
1025
|
+
), b = k(() => {
|
|
1026
|
+
i || $.current?.click();
|
|
1027
|
+
}, [i]), x = k(
|
|
1028
|
+
(d) => {
|
|
1029
|
+
!i && (d.key === "Enter" || d.key === " ") && (d.preventDefault(), $.current?.click());
|
|
1030
|
+
},
|
|
1031
|
+
[i]
|
|
987
1032
|
);
|
|
988
|
-
return /* @__PURE__ */ C(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
multiple: e,
|
|
1016
|
-
disabled: a,
|
|
1017
|
-
onChange: w,
|
|
1018
|
-
tabIndex: -1,
|
|
1019
|
-
"aria-hidden": "true"
|
|
1020
|
-
}
|
|
1033
|
+
return /* @__PURE__ */ C(ln, { children: [
|
|
1034
|
+
/* @__PURE__ */ e(
|
|
1035
|
+
"input",
|
|
1036
|
+
{
|
|
1037
|
+
ref: tn(p, $),
|
|
1038
|
+
type: "file",
|
|
1039
|
+
className: j.input,
|
|
1040
|
+
accept: t,
|
|
1041
|
+
multiple: r,
|
|
1042
|
+
disabled: i,
|
|
1043
|
+
onChange: I,
|
|
1044
|
+
tabIndex: -1,
|
|
1045
|
+
"aria-hidden": "true"
|
|
1046
|
+
}
|
|
1047
|
+
),
|
|
1048
|
+
/* @__PURE__ */ e(
|
|
1049
|
+
"div",
|
|
1050
|
+
{
|
|
1051
|
+
[f]: y.fileDropZone,
|
|
1052
|
+
role: "button",
|
|
1053
|
+
tabIndex: i ? -1 : 0,
|
|
1054
|
+
"aria-disabled": i || void 0,
|
|
1055
|
+
className: w(
|
|
1056
|
+
j.dropZone,
|
|
1057
|
+
m && j.dragOver,
|
|
1058
|
+
i && j.disabled,
|
|
1059
|
+
n
|
|
1021
1060
|
),
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
strokeLinecap: "round",
|
|
1032
|
-
strokeLinejoin: "round",
|
|
1033
|
-
"aria-hidden": "true",
|
|
1034
|
-
children: [
|
|
1035
|
-
/* @__PURE__ */ i("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
1036
|
-
/* @__PURE__ */ i("polyline", { points: "17 8 12 3 7 8" }),
|
|
1037
|
-
/* @__PURE__ */ i("line", { x1: "12", y1: "3", x2: "12", y2: "15" })
|
|
1038
|
-
]
|
|
1039
|
-
}
|
|
1040
|
-
),
|
|
1041
|
-
/* @__PURE__ */ i("span", { className: M.text, children: "Drop files here or click to browse" })
|
|
1061
|
+
onClick: b,
|
|
1062
|
+
onKeyDown: x,
|
|
1063
|
+
onDragOver: v,
|
|
1064
|
+
onDragLeave: N,
|
|
1065
|
+
onDrop: h,
|
|
1066
|
+
...l,
|
|
1067
|
+
children: s ?? /* @__PURE__ */ C("div", { className: j.content, children: [
|
|
1068
|
+
/* @__PURE__ */ e(et, { className: j.icon, "aria-hidden": "true" }),
|
|
1069
|
+
/* @__PURE__ */ e("span", { className: j.text, children: "Drop files here or click to browse" })
|
|
1042
1070
|
] })
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
);
|
|
1071
|
+
}
|
|
1072
|
+
)
|
|
1073
|
+
] });
|
|
1046
1074
|
}
|
|
1047
1075
|
);
|
|
1048
|
-
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1076
|
+
Ge.displayName = "FileDropZone";
|
|
1077
|
+
const Ze = "_comboBox_1en1h_1", ze = "_fullWidth_1en1h_6", Ue = "_wrapper_1en1h_10", Ye = "_disabled_1en1h_34", Je = "_open_1en1h_39", Qe = "_variantPrimary_1en1h_43", Xe = "_variantSecondary_1en1h_46", nr = "_variantTertiary_1en1h_50", tr = "_statusError_1en1h_58", er = "_statusWarning_1en1h_61", rr = "_statusSuccess_1en1h_64", ar = "_input_1en1h_68", ir = "_inputHidden_1en1h_84", or = "_singleValue_1en1h_91", sr = "_multiValueContainer_1en1h_100", cr = "_pill_1en1h_109", lr = "_pillText_1en1h_124", ur = "_pillRemove_1en1h_131", dr = "_indicator_1en1h_151", _r = "_indicatorOpen_1en1h_168", pr = "_listbox_1en1h_172", mr = "_options_1en1h_189", vr = "_option_1en1h_189", hr = "_optionHighlighted_1en1h_215", fr = "_optionSelected_1en1h_218", yr = "_optionDisabled_1en1h_221", br = "_optionCreate_1en1h_225", gr = "_optionLabel_1en1h_230", $r = "_checkIcon_1en1h_238", xr = "_group_1en1h_245", kr = "_groupLabel_1en1h_249", wr = "_header_1en1h_261", Nr = "_footer_1en1h_262", Ir = "_loading_1en1h_276", Cr = "_spinner_1en1h_287", Sr = "_empty_1en1h_306", o = {
|
|
1078
|
+
comboBox: Ze,
|
|
1079
|
+
fullWidth: ze,
|
|
1080
|
+
wrapper: Ue,
|
|
1081
|
+
disabled: Ye,
|
|
1082
|
+
open: Je,
|
|
1083
|
+
variantPrimary: Qe,
|
|
1084
|
+
variantSecondary: Xe,
|
|
1085
|
+
variantTertiary: nr,
|
|
1086
|
+
statusError: tr,
|
|
1087
|
+
statusWarning: er,
|
|
1088
|
+
statusSuccess: rr,
|
|
1089
|
+
input: ar,
|
|
1090
|
+
inputHidden: ir,
|
|
1091
|
+
singleValue: or,
|
|
1092
|
+
multiValueContainer: sr,
|
|
1093
|
+
pill: cr,
|
|
1094
|
+
pillText: lr,
|
|
1095
|
+
pillRemove: ur,
|
|
1096
|
+
indicator: dr,
|
|
1097
|
+
indicatorOpen: _r,
|
|
1098
|
+
listbox: pr,
|
|
1099
|
+
options: mr,
|
|
1100
|
+
option: vr,
|
|
1101
|
+
optionHighlighted: hr,
|
|
1102
|
+
optionSelected: fr,
|
|
1103
|
+
optionDisabled: yr,
|
|
1104
|
+
optionCreate: br,
|
|
1105
|
+
optionLabel: gr,
|
|
1106
|
+
checkIcon: $r,
|
|
1107
|
+
group: xr,
|
|
1108
|
+
groupLabel: kr,
|
|
1109
|
+
header: wr,
|
|
1110
|
+
footer: Nr,
|
|
1111
|
+
loading: Ir,
|
|
1112
|
+
spinner: Cr,
|
|
1113
|
+
empty: Sr
|
|
1114
|
+
}, Wr = H(o.wrapper, {
|
|
1064
1115
|
variants: {
|
|
1065
1116
|
variant: {
|
|
1066
|
-
primary:
|
|
1067
|
-
secondary:
|
|
1068
|
-
tertiary:
|
|
1117
|
+
primary: o.variantPrimary,
|
|
1118
|
+
secondary: o.variantSecondary,
|
|
1119
|
+
tertiary: o.variantTertiary
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
defaultVariants: {
|
|
1123
|
+
variant: "primary"
|
|
1124
|
+
}
|
|
1125
|
+
}), Br = {
|
|
1126
|
+
error: o.statusError,
|
|
1127
|
+
warning: o.statusWarning,
|
|
1128
|
+
success: o.statusSuccess
|
|
1129
|
+
};
|
|
1130
|
+
function Dr() {
|
|
1131
|
+
return /* @__PURE__ */ e(dn, { className: o.checkIcon, "aria-hidden": "true" });
|
|
1132
|
+
}
|
|
1133
|
+
function Tr(n) {
|
|
1134
|
+
return /* @__PURE__ */ e(
|
|
1135
|
+
"span",
|
|
1136
|
+
{
|
|
1137
|
+
className: w(o.indicator, n && o.indicatorOpen),
|
|
1138
|
+
"aria-hidden": "true",
|
|
1139
|
+
children: /* @__PURE__ */ e(tt, {})
|
|
1140
|
+
}
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
function Pr() {
|
|
1144
|
+
return /* @__PURE__ */ e(_n, {});
|
|
1145
|
+
}
|
|
1146
|
+
function Fr() {
|
|
1147
|
+
return /* @__PURE__ */ C(ln, { children: [
|
|
1148
|
+
/* @__PURE__ */ e(rt, { className: o.spinner, "aria-hidden": "true" }),
|
|
1149
|
+
"Loading..."
|
|
1150
|
+
] });
|
|
1151
|
+
}
|
|
1152
|
+
const Vr = { [f]: y.comboBox };
|
|
1153
|
+
function Er({
|
|
1154
|
+
className: n,
|
|
1155
|
+
variant: a,
|
|
1156
|
+
validationStatus: t,
|
|
1157
|
+
fullWidth: r,
|
|
1158
|
+
disabled: i = !1,
|
|
1159
|
+
open: s,
|
|
1160
|
+
...l
|
|
1161
|
+
}, p) {
|
|
1162
|
+
const m = yn(
|
|
1163
|
+
() => ({
|
|
1164
|
+
root: w(o.comboBox, r && o.fullWidth, n),
|
|
1165
|
+
wrapper: w(
|
|
1166
|
+
Wr({ variant: a }),
|
|
1167
|
+
i && o.disabled,
|
|
1168
|
+
t && Br[t],
|
|
1169
|
+
s && o.open
|
|
1170
|
+
),
|
|
1171
|
+
multiValueContainer: o.multiValueContainer,
|
|
1172
|
+
pill: o.pill,
|
|
1173
|
+
pillText: o.pillText,
|
|
1174
|
+
pillRemove: o.pillRemove,
|
|
1175
|
+
singleValue: o.singleValue,
|
|
1176
|
+
input: o.input,
|
|
1177
|
+
inputHidden: o.inputHidden,
|
|
1178
|
+
indicator: o.indicator,
|
|
1179
|
+
indicatorOpen: o.indicatorOpen,
|
|
1180
|
+
listbox: o.listbox,
|
|
1181
|
+
header: o.header,
|
|
1182
|
+
footer: o.footer,
|
|
1183
|
+
options: o.options,
|
|
1184
|
+
option: o.option,
|
|
1185
|
+
optionHighlighted: o.optionHighlighted,
|
|
1186
|
+
optionSelected: o.optionSelected,
|
|
1187
|
+
optionDisabled: o.optionDisabled,
|
|
1188
|
+
optionCreate: o.optionCreate,
|
|
1189
|
+
optionLabel: o.optionLabel,
|
|
1190
|
+
checkIcon: o.checkIcon,
|
|
1191
|
+
group: o.group,
|
|
1192
|
+
groupLabel: o.groupLabel,
|
|
1193
|
+
loading: o.loading,
|
|
1194
|
+
spinner: o.spinner,
|
|
1195
|
+
empty: o.empty
|
|
1196
|
+
}),
|
|
1197
|
+
[n, a, t, r, i, s]
|
|
1198
|
+
);
|
|
1199
|
+
return /* @__PURE__ */ e(
|
|
1200
|
+
Nn,
|
|
1201
|
+
{
|
|
1202
|
+
ref: p,
|
|
1203
|
+
disabled: i,
|
|
1204
|
+
open: s,
|
|
1205
|
+
classNames: m,
|
|
1206
|
+
dataAttributes: Vr,
|
|
1207
|
+
renderCheckIcon: Dr,
|
|
1208
|
+
renderIndicator: Tr,
|
|
1209
|
+
renderPillRemoveIcon: Pr,
|
|
1210
|
+
renderLoading: Fr,
|
|
1211
|
+
...l
|
|
1212
|
+
}
|
|
1213
|
+
);
|
|
1214
|
+
}
|
|
1215
|
+
const Rr = D(Er);
|
|
1216
|
+
Rr.displayName = "ComboBox";
|
|
1217
|
+
const qr = "_badge_11y0a_1", Lr = "_variantPrimary_11y0a_17", Mr = "_variantSecondary_11y0a_22", jr = "_variantTertiary_11y0a_27", Hr = "_sentimentDanger_11y0a_32", Or = "_sentimentSuccess_11y0a_37", Ar = "_sentimentWarning_11y0a_41", Kr = "_sentimentInfo_11y0a_45", q = {
|
|
1218
|
+
badge: qr,
|
|
1219
|
+
variantPrimary: Lr,
|
|
1220
|
+
variantSecondary: Mr,
|
|
1221
|
+
variantTertiary: jr,
|
|
1222
|
+
sentimentDanger: Hr,
|
|
1223
|
+
sentimentSuccess: Or,
|
|
1224
|
+
sentimentWarning: Ar,
|
|
1225
|
+
sentimentInfo: Kr
|
|
1226
|
+
}, Gr = {
|
|
1227
|
+
danger: q.sentimentDanger,
|
|
1228
|
+
success: q.sentimentSuccess,
|
|
1229
|
+
warning: q.sentimentWarning,
|
|
1230
|
+
info: q.sentimentInfo
|
|
1231
|
+
}, Zr = H(q.badge, {
|
|
1232
|
+
variants: {
|
|
1233
|
+
variant: {
|
|
1234
|
+
primary: q.variantPrimary,
|
|
1235
|
+
secondary: q.variantSecondary,
|
|
1236
|
+
tertiary: q.variantTertiary
|
|
1069
1237
|
}
|
|
1070
1238
|
},
|
|
1071
1239
|
defaultVariants: {
|
|
1072
1240
|
variant: "primary"
|
|
1073
1241
|
}
|
|
1074
|
-
}),
|
|
1075
|
-
({ className:
|
|
1242
|
+
}), zr = D(
|
|
1243
|
+
({ className: n, variant: a, sentiment: t, children: r, ...i }, s) => /* @__PURE__ */ e(
|
|
1076
1244
|
"span",
|
|
1077
1245
|
{
|
|
1078
|
-
ref:
|
|
1246
|
+
ref: s,
|
|
1079
1247
|
[f]: y.badge,
|
|
1080
|
-
className:
|
|
1081
|
-
|
|
1082
|
-
t &&
|
|
1083
|
-
|
|
1248
|
+
className: w(
|
|
1249
|
+
Zr({ variant: a }),
|
|
1250
|
+
t && Gr[t],
|
|
1251
|
+
n
|
|
1084
1252
|
),
|
|
1085
|
-
...
|
|
1086
|
-
children:
|
|
1253
|
+
...i,
|
|
1254
|
+
children: r
|
|
1087
1255
|
}
|
|
1088
1256
|
)
|
|
1089
1257
|
);
|
|
1090
|
-
|
|
1091
|
-
const
|
|
1092
|
-
divider:
|
|
1093
|
-
horizontal:
|
|
1094
|
-
vertical:
|
|
1095
|
-
},
|
|
1096
|
-
({ className:
|
|
1258
|
+
zr.displayName = "Badge";
|
|
1259
|
+
const Ur = "_divider_1kyjw_1", Yr = "_horizontal_1kyjw_7", Jr = "_vertical_1kyjw_11", nn = {
|
|
1260
|
+
divider: Ur,
|
|
1261
|
+
horizontal: Yr,
|
|
1262
|
+
vertical: Jr
|
|
1263
|
+
}, Qr = D(
|
|
1264
|
+
({ className: n, orientation: a = "horizontal", decorative: t = !1, ...r }, i) => /* @__PURE__ */ e(
|
|
1097
1265
|
"hr",
|
|
1098
1266
|
{
|
|
1099
|
-
ref:
|
|
1267
|
+
ref: i,
|
|
1100
1268
|
[f]: y.divider,
|
|
1101
|
-
className:
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1269
|
+
className: w(
|
|
1270
|
+
nn.divider,
|
|
1271
|
+
a === "vertical" ? nn.vertical : nn.horizontal,
|
|
1272
|
+
n
|
|
1105
1273
|
),
|
|
1106
|
-
...t ? { "aria-hidden": !0 } : { role: "separator", "aria-orientation":
|
|
1107
|
-
...
|
|
1274
|
+
...t ? { "aria-hidden": !0 } : { role: "separator", "aria-orientation": a },
|
|
1275
|
+
...r
|
|
1108
1276
|
}
|
|
1109
1277
|
)
|
|
1110
1278
|
);
|
|
1111
|
-
|
|
1279
|
+
Qr.displayName = "Divider";
|
|
1112
1280
|
export {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1281
|
+
zr as Badge,
|
|
1282
|
+
qn as Button,
|
|
1283
|
+
Qn as ButtonGroup,
|
|
1284
|
+
de as Checkbox,
|
|
1285
|
+
Rr as ComboBox,
|
|
1286
|
+
Qr as Divider,
|
|
1118
1287
|
f as FINRA_UI_ATTR,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1288
|
+
Ge as FileDropZone,
|
|
1289
|
+
ie as FormField,
|
|
1290
|
+
Un as IconButton,
|
|
1291
|
+
gt as Input,
|
|
1292
|
+
Jt as NumberInput,
|
|
1293
|
+
qe as PillInput,
|
|
1294
|
+
we as RadioButton,
|
|
1295
|
+
De as Slider,
|
|
1296
|
+
fe as Switch,
|
|
1297
|
+
Et as Textarea,
|
|
1129
1298
|
y as componentIds
|
|
1130
1299
|
};
|
|
1131
1300
|
//# sourceMappingURL=index.js.map
|