@utk09/finra-ui 0.0.6 → 0.0.7
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/Calendar.module-AHlPlLw_.js +362 -0
- package/dist/Calendar.module-AHlPlLw_.js.map +1 -0
- package/dist/DateInput-D3AUs_l2.js +224 -0
- package/dist/DateInput-D3AUs_l2.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Calendar/Calendar.d.ts +6 -0
- package/dist/components/IconButton/IconButton.d.ts +2 -1
- package/dist/components/Input/Input.d.ts +2 -1
- package/dist/components/componentIds.d.ts +1 -0
- package/dist/dateFormat-CdClN4CU.js +200 -0
- package/dist/dateFormat-CdClN4CU.js.map +1 -0
- package/dist/dateInput-4sdYyWq0.js +551 -0
- package/dist/dateInput-4sdYyWq0.js.map +1 -0
- package/dist/finance.js +382 -478
- package/dist/finance.js.map +1 -1
- package/dist/hooks/useClickOutside.d.ts +6 -0
- package/dist/hooks/useControlledValue.d.ts +11 -0
- package/dist/hooks/useDisclosure.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +889 -1135
- package/dist/index.js.map +1 -1
- package/dist/logic/calendar.d.ts +27 -0
- package/dist/logic/combobox.d.ts +23 -0
- package/dist/logic/cx.d.ts +6 -0
- package/dist/logic/dateInput.d.ts +13 -0
- package/dist/styles.css +2 -1
- package/dist/tenor-GS2kfKqC.js +111 -0
- package/dist/tenor-GS2kfKqC.js.map +1 -0
- package/dist/types/variants.d.ts +6 -0
- package/dist/unstyled/Calendar/Calendar.d.ts +2 -8
- package/dist/unstyled/ComboBox/ComboBox.d.ts +1 -1
- package/dist/unstyled/FormField/FormField.d.ts +2 -1
- package/dist/unstyled.js +164 -223
- package/dist/unstyled.js.map +1 -1
- package/dist/utils.js +3 -98
- package/package.json +13 -14
- package/dist/Calendar-EtS0i3_l.js +0 -664
- package/dist/Calendar-EtS0i3_l.js.map +0 -1
- package/dist/Calendar.module-D02DGwqf.js +0 -374
- package/dist/Calendar.module-D02DGwqf.js.map +0 -1
- package/dist/DateInput-DhLq-Jah.js +0 -230
- package/dist/DateInput-DhLq-Jah.js.map +0 -1
- package/dist/dateFormat-CGZCSpqw.js +0 -77
- package/dist/dateFormat-CGZCSpqw.js.map +0 -1
- package/dist/utils.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,1147 +1,901 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
role: "group",
|
|
110
|
-
[o]: i.buttonGroup,
|
|
111
|
-
className: N(
|
|
112
|
-
it.buttonGroup,
|
|
113
|
-
s === "vertical" && it.vertical,
|
|
114
|
-
r
|
|
115
|
-
),
|
|
116
|
-
...e,
|
|
117
|
-
children: a
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
);
|
|
121
|
-
Qt.displayName = "ButtonGroup";
|
|
122
|
-
function Xt(r) {
|
|
123
|
-
return /* @__PURE__ */ t(
|
|
124
|
-
"svg",
|
|
125
|
-
{
|
|
126
|
-
viewBox: "0 0 24 24",
|
|
127
|
-
fill: "none",
|
|
128
|
-
stroke: "currentColor",
|
|
129
|
-
strokeWidth: "2",
|
|
130
|
-
strokeLinecap: "round",
|
|
131
|
-
strokeLinejoin: "round",
|
|
132
|
-
...r,
|
|
133
|
-
children: /* @__PURE__ */ t("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
134
|
-
}
|
|
135
|
-
);
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, r as s, s as c, t as l, u } from "./Calendar.module-AHlPlLw_.js";
|
|
2
|
+
import { g as d } from "./dateFormat-CdClN4CU.js";
|
|
3
|
+
import { a as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./DateInput-D3AUs_l2.js";
|
|
4
|
+
import { r as y } from "./dateInput-4sdYyWq0.js";
|
|
5
|
+
import { Children as b, cloneElement as x, forwardRef as S, isValidElement as C, useCallback as w, useEffect as T, useId as E, useMemo as D, useRef as O, useState as k } from "react";
|
|
6
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
7
|
+
var N = {
|
|
8
|
+
button: "_button_vrgvv_1",
|
|
9
|
+
variantPrimary: "_variantPrimary_vrgvv_46",
|
|
10
|
+
variantSecondary: "_variantSecondary_vrgvv_59",
|
|
11
|
+
variantTertiary: "_variantTertiary_vrgvv_72",
|
|
12
|
+
sentimentDanger: "_sentimentDanger_vrgvv_84",
|
|
13
|
+
sentimentSuccess: "_sentimentSuccess_vrgvv_91",
|
|
14
|
+
sentimentWarning: "_sentimentWarning_vrgvv_98",
|
|
15
|
+
sentimentInfo: "_sentimentInfo_vrgvv_105",
|
|
16
|
+
fullWidth: "_fullWidth_vrgvv_112",
|
|
17
|
+
icon: "_icon_vrgvv_116"
|
|
18
|
+
}, P = {
|
|
19
|
+
danger: N.sentimentDanger,
|
|
20
|
+
success: N.sentimentSuccess,
|
|
21
|
+
warning: N.sentimentWarning,
|
|
22
|
+
info: N.sentimentInfo
|
|
23
|
+
}, ee = a(N.button, {
|
|
24
|
+
variants: {
|
|
25
|
+
variant: {
|
|
26
|
+
primary: N.variantPrimary,
|
|
27
|
+
secondary: N.variantSecondary,
|
|
28
|
+
tertiary: N.variantTertiary
|
|
29
|
+
},
|
|
30
|
+
fullWidth: { true: N.fullWidth }
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: { variant: "primary" }
|
|
33
|
+
}), F = S(({ className: e, variant: t, fullWidth: i, sentiment: a, startIcon: o, endIcon: s, children: c, ...l }, d) => /* @__PURE__ */ M(_, {
|
|
34
|
+
ref: d,
|
|
35
|
+
type: "button",
|
|
36
|
+
[n]: r.button,
|
|
37
|
+
className: u(ee({
|
|
38
|
+
variant: t,
|
|
39
|
+
fullWidth: i
|
|
40
|
+
}), a && P[a], e),
|
|
41
|
+
...l,
|
|
42
|
+
children: [
|
|
43
|
+
o ? /* @__PURE__ */ j("span", {
|
|
44
|
+
className: N.icon,
|
|
45
|
+
children: o
|
|
46
|
+
}) : null,
|
|
47
|
+
c,
|
|
48
|
+
s ? /* @__PURE__ */ j("span", {
|
|
49
|
+
className: N.icon,
|
|
50
|
+
children: s
|
|
51
|
+
}) : null
|
|
52
|
+
]
|
|
53
|
+
}));
|
|
54
|
+
F.displayName = "Button";
|
|
55
|
+
var I = {
|
|
56
|
+
iconButton: "_iconButton_ccgdf_1",
|
|
57
|
+
variantPrimary: "_variantPrimary_ccgdf_43",
|
|
58
|
+
variantSecondary: "_variantSecondary_ccgdf_56",
|
|
59
|
+
variantTertiary: "_variantTertiary_ccgdf_69",
|
|
60
|
+
sentimentDanger: "_sentimentDanger_ccgdf_81",
|
|
61
|
+
sentimentSuccess: "_sentimentSuccess_ccgdf_88",
|
|
62
|
+
sentimentWarning: "_sentimentWarning_ccgdf_95",
|
|
63
|
+
sentimentInfo: "_sentimentInfo_ccgdf_102"
|
|
64
|
+
}, te = {
|
|
65
|
+
danger: I.sentimentDanger,
|
|
66
|
+
success: I.sentimentSuccess,
|
|
67
|
+
warning: I.sentimentWarning,
|
|
68
|
+
info: I.sentimentInfo
|
|
69
|
+
}, ne = a(I.iconButton, {
|
|
70
|
+
variants: { variant: {
|
|
71
|
+
primary: I.variantPrimary,
|
|
72
|
+
secondary: I.variantSecondary,
|
|
73
|
+
tertiary: I.variantTertiary
|
|
74
|
+
} },
|
|
75
|
+
defaultVariants: { variant: "primary" }
|
|
76
|
+
}), re = S(({ className: e, variant: t, sentiment: i, ...a }, o) => /* @__PURE__ */ j(h, {
|
|
77
|
+
ref: o,
|
|
78
|
+
type: "button",
|
|
79
|
+
[n]: r.iconButton,
|
|
80
|
+
className: u(ne({ variant: t }), i && te[i], e),
|
|
81
|
+
...a
|
|
82
|
+
}));
|
|
83
|
+
re.displayName = "IconButton";
|
|
84
|
+
var ie = {
|
|
85
|
+
buttonGroup: "_buttonGroup_kt24a_1",
|
|
86
|
+
vertical: "_vertical_kt24a_22"
|
|
87
|
+
}, ae = S(({ className: e, orientation: t = "horizontal", children: i, ...a }, o) => /* @__PURE__ */ j("div", {
|
|
88
|
+
ref: o,
|
|
89
|
+
role: "group",
|
|
90
|
+
[n]: r.buttonGroup,
|
|
91
|
+
className: u(ie.buttonGroup, t === "vertical" && ie.vertical, e),
|
|
92
|
+
...a,
|
|
93
|
+
children: i
|
|
94
|
+
}));
|
|
95
|
+
ae.displayName = "ButtonGroup";
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/assets/icons/CloseIcon.tsx
|
|
98
|
+
function oe(e) {
|
|
99
|
+
return /* @__PURE__ */ j("svg", {
|
|
100
|
+
viewBox: "0 0 24 24",
|
|
101
|
+
fill: "none",
|
|
102
|
+
stroke: "currentColor",
|
|
103
|
+
strokeWidth: "2",
|
|
104
|
+
strokeLinecap: "round",
|
|
105
|
+
strokeLinejoin: "round",
|
|
106
|
+
...e,
|
|
107
|
+
children: /* @__PURE__ */ j("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
108
|
+
});
|
|
136
109
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
);
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/assets/icons/DashIcon.tsx
|
|
112
|
+
function se(e) {
|
|
113
|
+
return /* @__PURE__ */ j("svg", {
|
|
114
|
+
viewBox: "0 0 12 12",
|
|
115
|
+
fill: "none",
|
|
116
|
+
stroke: "currentColor",
|
|
117
|
+
strokeWidth: "2",
|
|
118
|
+
strokeLinecap: "round",
|
|
119
|
+
...e,
|
|
120
|
+
children: /* @__PURE__ */ j("path", { d: "M2.5 6h7" })
|
|
121
|
+
});
|
|
150
122
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
);
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/assets/icons/MinusIcon.tsx
|
|
125
|
+
function ce(e) {
|
|
126
|
+
return /* @__PURE__ */ j("svg", {
|
|
127
|
+
viewBox: "0 0 24 24",
|
|
128
|
+
fill: "none",
|
|
129
|
+
stroke: "currentColor",
|
|
130
|
+
strokeWidth: "2",
|
|
131
|
+
strokeLinecap: "round",
|
|
132
|
+
...e,
|
|
133
|
+
children: /* @__PURE__ */ j("path", { d: "M5 12h14" })
|
|
134
|
+
});
|
|
164
135
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
);
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/assets/icons/PlusIcon.tsx
|
|
138
|
+
function le(e) {
|
|
139
|
+
return /* @__PURE__ */ j("svg", {
|
|
140
|
+
viewBox: "0 0 24 24",
|
|
141
|
+
fill: "none",
|
|
142
|
+
stroke: "currentColor",
|
|
143
|
+
strokeWidth: "2",
|
|
144
|
+
strokeLinecap: "round",
|
|
145
|
+
...e,
|
|
146
|
+
children: /* @__PURE__ */ j("path", { d: "M12 5v14M5 12h14" })
|
|
147
|
+
});
|
|
178
148
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/assets/icons/UploadIcon.tsx
|
|
151
|
+
function ue(e) {
|
|
152
|
+
return /* @__PURE__ */ M("svg", {
|
|
153
|
+
viewBox: "0 0 24 24",
|
|
154
|
+
fill: "none",
|
|
155
|
+
stroke: "currentColor",
|
|
156
|
+
strokeWidth: "1.5",
|
|
157
|
+
strokeLinecap: "round",
|
|
158
|
+
strokeLinejoin: "round",
|
|
159
|
+
...e,
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ j("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
162
|
+
/* @__PURE__ */ j("polyline", { points: "17 8 12 3 7 8" }),
|
|
163
|
+
/* @__PURE__ */ j("line", {
|
|
164
|
+
x1: "12",
|
|
165
|
+
y1: "3",
|
|
166
|
+
x2: "12",
|
|
167
|
+
y2: "15"
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
});
|
|
197
171
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
);
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const B = b(
|
|
360
|
-
(v) => {
|
|
361
|
-
k(v.target.value.length), c(), p?.(v);
|
|
362
|
-
},
|
|
363
|
-
[p, c]
|
|
364
|
-
), U = n !== void 0 && _ !== void 0 && I >= n, Y = _ !== void 0 && I >= _ ? "error" : U ? "warning" : void 0, x = a ?? Y;
|
|
365
|
-
return /* @__PURE__ */ S(
|
|
366
|
-
"div",
|
|
367
|
-
{
|
|
368
|
-
[o]: i.textarea,
|
|
369
|
-
className: N(
|
|
370
|
-
Pn({ variant: s }),
|
|
371
|
-
x && En[x],
|
|
372
|
-
C && E.disabled,
|
|
373
|
-
y && E.fullWidth,
|
|
374
|
-
r
|
|
375
|
-
),
|
|
376
|
-
children: [
|
|
377
|
-
/* @__PURE__ */ t(
|
|
378
|
-
"textarea",
|
|
379
|
-
{
|
|
380
|
-
ref: u,
|
|
381
|
-
[o]: i.textareaField,
|
|
382
|
-
className: E.field,
|
|
383
|
-
rows: d,
|
|
384
|
-
maxLength: _,
|
|
385
|
-
disabled: C,
|
|
386
|
-
readOnly: h,
|
|
387
|
-
value: g,
|
|
388
|
-
defaultValue: $,
|
|
389
|
-
onChange: B,
|
|
390
|
-
...D
|
|
391
|
-
}
|
|
392
|
-
),
|
|
393
|
-
e && _ !== void 0 ? /* @__PURE__ */ S(
|
|
394
|
-
"span",
|
|
395
|
-
{
|
|
396
|
-
[o]: i.textareaCount,
|
|
397
|
-
className: N(
|
|
398
|
-
E.charCount,
|
|
399
|
-
Y === "warning" && E.charCountWarning,
|
|
400
|
-
Y === "error" && E.charCountError
|
|
401
|
-
),
|
|
402
|
-
children: [
|
|
403
|
-
I,
|
|
404
|
-
"/",
|
|
405
|
-
_
|
|
406
|
-
]
|
|
407
|
-
}
|
|
408
|
-
) : null
|
|
409
|
-
]
|
|
410
|
-
}
|
|
411
|
-
);
|
|
412
|
-
}
|
|
413
|
-
);
|
|
414
|
-
jn.displayName = "Textarea";
|
|
415
|
-
const Fn = "_wrapper_1k2cc_1", qn = "_disabled_1k2cc_22", Rn = "_fullWidth_1k2cc_27", Vn = "_variantPrimary_1k2cc_30", Mn = "_variantSecondary_1k2cc_33", On = "_variantTertiary_1k2cc_37", Hn = "_statusError_1k2cc_46", Ln = "_statusWarning_1k2cc_49", Kn = "_statusSuccess_1k2cc_52", Zn = "_field_1k2cc_56", Gn = "_stepButton_1k2cc_79", F = {
|
|
416
|
-
wrapper: Fn,
|
|
417
|
-
disabled: qn,
|
|
418
|
-
fullWidth: Rn,
|
|
419
|
-
variantPrimary: Vn,
|
|
420
|
-
variantSecondary: Mn,
|
|
421
|
-
variantTertiary: On,
|
|
422
|
-
statusError: Hn,
|
|
423
|
-
statusWarning: Ln,
|
|
424
|
-
statusSuccess: Kn,
|
|
425
|
-
field: Zn,
|
|
426
|
-
stepButton: Gn
|
|
427
|
-
}, An = L(F.wrapper, {
|
|
428
|
-
variants: {
|
|
429
|
-
variant: {
|
|
430
|
-
primary: F.variantPrimary,
|
|
431
|
-
secondary: F.variantSecondary,
|
|
432
|
-
tertiary: F.variantTertiary
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
defaultVariants: {
|
|
436
|
-
variant: "primary"
|
|
437
|
-
}
|
|
438
|
-
}), zn = {
|
|
439
|
-
error: F.statusError,
|
|
440
|
-
warning: F.statusWarning,
|
|
441
|
-
success: F.statusSuccess
|
|
172
|
+
var L = {
|
|
173
|
+
wrapper: "_wrapper_3mrtn_1",
|
|
174
|
+
disabled: "_disabled_3mrtn_25",
|
|
175
|
+
fullWidth: "_fullWidth_3mrtn_30",
|
|
176
|
+
variantPrimary: "_variantPrimary_3mrtn_33",
|
|
177
|
+
variantSecondary: "_variantSecondary_3mrtn_36",
|
|
178
|
+
variantTertiary: "_variantTertiary_3mrtn_40",
|
|
179
|
+
statusError: "_statusError_3mrtn_49",
|
|
180
|
+
statusWarning: "_statusWarning_3mrtn_52",
|
|
181
|
+
statusSuccess: "_statusSuccess_3mrtn_55",
|
|
182
|
+
field: "_field_3mrtn_59",
|
|
183
|
+
adornment: "_adornment_3mrtn_79",
|
|
184
|
+
clearButton: "_clearButton_3mrtn_91"
|
|
185
|
+
}, de = a(L.wrapper, {
|
|
186
|
+
variants: { variant: {
|
|
187
|
+
primary: L.variantPrimary,
|
|
188
|
+
secondary: L.variantSecondary,
|
|
189
|
+
tertiary: L.variantTertiary
|
|
190
|
+
} },
|
|
191
|
+
defaultVariants: { variant: "primary" }
|
|
192
|
+
}), fe = {
|
|
193
|
+
error: L.statusError,
|
|
194
|
+
warning: L.statusWarning,
|
|
195
|
+
success: L.statusSuccess
|
|
196
|
+
}, pe = S(({ className: e, variant: t, validationStatus: i, startAdornment: a, endAdornment: o, clearable: s, onClear: c, fullWidth: l, disabled: d, readOnly: f, value: p, defaultValue: m, onChange: h, ...g }, _) => {
|
|
197
|
+
let v = O(null), y = _ || v, b = w((e) => {
|
|
198
|
+
e.preventDefault(), c ? c() : y.current && ((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set)?.call(y.current, ""), y.current.dispatchEvent(new Event("input", { bubbles: !0 }))), y.current?.focus();
|
|
199
|
+
}, [c, y]), x = s && !d && !f && (p ?? m ?? "") !== "";
|
|
200
|
+
return /* @__PURE__ */ M("div", {
|
|
201
|
+
[n]: r.input,
|
|
202
|
+
className: u(de({ variant: t }), i && fe[i], d && L.disabled, l && L.fullWidth, e),
|
|
203
|
+
children: [
|
|
204
|
+
a ? /* @__PURE__ */ j("span", {
|
|
205
|
+
className: L.adornment,
|
|
206
|
+
children: a
|
|
207
|
+
}) : null,
|
|
208
|
+
/* @__PURE__ */ j("input", {
|
|
209
|
+
ref: y,
|
|
210
|
+
[n]: r.inputField,
|
|
211
|
+
className: L.field,
|
|
212
|
+
disabled: d,
|
|
213
|
+
readOnly: f,
|
|
214
|
+
value: p,
|
|
215
|
+
defaultValue: m,
|
|
216
|
+
onChange: h,
|
|
217
|
+
...g
|
|
218
|
+
}),
|
|
219
|
+
x ? /* @__PURE__ */ j("button", {
|
|
220
|
+
type: "button",
|
|
221
|
+
className: L.clearButton,
|
|
222
|
+
onClick: b,
|
|
223
|
+
"aria-label": "Clear input",
|
|
224
|
+
tabIndex: -1,
|
|
225
|
+
children: /* @__PURE__ */ j(oe, {})
|
|
226
|
+
}) : null,
|
|
227
|
+
o ? /* @__PURE__ */ j("span", {
|
|
228
|
+
className: L.adornment,
|
|
229
|
+
children: o
|
|
230
|
+
}) : null
|
|
231
|
+
]
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
pe.displayName = "Input";
|
|
235
|
+
var R = {
|
|
236
|
+
wrapper: "_wrapper_1a7tg_1",
|
|
237
|
+
disabled: "_disabled_1a7tg_21",
|
|
238
|
+
fullWidth: "_fullWidth_1a7tg_26",
|
|
239
|
+
variantPrimary: "_variantPrimary_1a7tg_29",
|
|
240
|
+
variantSecondary: "_variantSecondary_1a7tg_32",
|
|
241
|
+
variantTertiary: "_variantTertiary_1a7tg_36",
|
|
242
|
+
statusError: "_statusError_1a7tg_45",
|
|
243
|
+
statusWarning: "_statusWarning_1a7tg_48",
|
|
244
|
+
statusSuccess: "_statusSuccess_1a7tg_51",
|
|
245
|
+
field: "_field_1a7tg_55",
|
|
246
|
+
charCount: "_charCount_1a7tg_77",
|
|
247
|
+
charCountWarning: "_charCountWarning_1a7tg_87",
|
|
248
|
+
charCountError: "_charCountError_1a7tg_91"
|
|
249
|
+
}, me = a(R.wrapper, {
|
|
250
|
+
variants: { variant: {
|
|
251
|
+
primary: R.variantPrimary,
|
|
252
|
+
secondary: R.variantSecondary,
|
|
253
|
+
tertiary: R.variantTertiary
|
|
254
|
+
} },
|
|
255
|
+
defaultVariants: { variant: "primary" }
|
|
256
|
+
}), he = {
|
|
257
|
+
error: R.statusError,
|
|
258
|
+
warning: R.statusWarning,
|
|
259
|
+
success: R.statusSuccess
|
|
260
|
+
}, z = S(({ className: e, variant: t, validationStatus: i, showCharCount: a, warningThreshold: o, autoResize: s, minRows: c = 3, maxRows: l, fullWidth: d, maxLength: f, disabled: p, readOnly: m, value: h, defaultValue: g, onChange: _, ...v }, y) => {
|
|
261
|
+
let b = O(null), x = y || b, [S, C] = k(() => (h ?? g ?? "").length);
|
|
262
|
+
T(() => {
|
|
263
|
+
h !== void 0 && C(h.length);
|
|
264
|
+
}, [h]);
|
|
265
|
+
let E = w(() => {
|
|
266
|
+
let e = x.current;
|
|
267
|
+
if (!e || !s) return;
|
|
268
|
+
e.style.height = "auto";
|
|
269
|
+
let t = parseFloat(getComputedStyle(e).lineHeight), n = t * c, r = l ? t * l : Infinity, i = e.scrollHeight;
|
|
270
|
+
e.style.height = `${Math.min(Math.max(i, n), r)}px`, e.style.overflowY = i > r ? "auto" : "hidden";
|
|
271
|
+
}, [
|
|
272
|
+
s,
|
|
273
|
+
c,
|
|
274
|
+
l,
|
|
275
|
+
x
|
|
276
|
+
]);
|
|
277
|
+
T(() => {
|
|
278
|
+
E();
|
|
279
|
+
}, [h, E]);
|
|
280
|
+
let D = w((e) => {
|
|
281
|
+
C(e.target.value.length), E(), _?.(e);
|
|
282
|
+
}, [_, E]), A = f !== void 0 && S >= f ? "error" : o !== void 0 && f !== void 0 && S >= o ? "warning" : void 0, N = i ?? A;
|
|
283
|
+
return /* @__PURE__ */ M("div", {
|
|
284
|
+
[n]: r.textarea,
|
|
285
|
+
className: u(me({ variant: t }), N && he[N], p && R.disabled, d && R.fullWidth, e),
|
|
286
|
+
children: [/* @__PURE__ */ j("textarea", {
|
|
287
|
+
ref: x,
|
|
288
|
+
[n]: r.textareaField,
|
|
289
|
+
className: R.field,
|
|
290
|
+
rows: c,
|
|
291
|
+
maxLength: f,
|
|
292
|
+
disabled: p,
|
|
293
|
+
readOnly: m,
|
|
294
|
+
value: h,
|
|
295
|
+
defaultValue: g,
|
|
296
|
+
onChange: D,
|
|
297
|
+
...v
|
|
298
|
+
}), a && f !== void 0 ? /* @__PURE__ */ M("span", {
|
|
299
|
+
[n]: r.textareaCount,
|
|
300
|
+
className: u(R.charCount, A === "warning" && R.charCountWarning, A === "error" && R.charCountError),
|
|
301
|
+
children: [
|
|
302
|
+
S,
|
|
303
|
+
"/",
|
|
304
|
+
f
|
|
305
|
+
]
|
|
306
|
+
}) : null]
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
z.displayName = "Textarea";
|
|
310
|
+
var B = {
|
|
311
|
+
wrapper: "_wrapper_jj8ms_1",
|
|
312
|
+
disabled: "_disabled_jj8ms_22",
|
|
313
|
+
fullWidth: "_fullWidth_jj8ms_27",
|
|
314
|
+
variantPrimary: "_variantPrimary_jj8ms_30",
|
|
315
|
+
variantSecondary: "_variantSecondary_jj8ms_33",
|
|
316
|
+
variantTertiary: "_variantTertiary_jj8ms_37",
|
|
317
|
+
statusError: "_statusError_jj8ms_46",
|
|
318
|
+
statusWarning: "_statusWarning_jj8ms_49",
|
|
319
|
+
statusSuccess: "_statusSuccess_jj8ms_52",
|
|
320
|
+
field: "_field_jj8ms_56",
|
|
321
|
+
stepButton: "_stepButton_jj8ms_82"
|
|
322
|
+
}, ge = a(B.wrapper, {
|
|
323
|
+
variants: { variant: {
|
|
324
|
+
primary: B.variantPrimary,
|
|
325
|
+
secondary: B.variantSecondary,
|
|
326
|
+
tertiary: B.variantTertiary
|
|
327
|
+
} },
|
|
328
|
+
defaultVariants: { variant: "primary" }
|
|
329
|
+
}), _e = {
|
|
330
|
+
error: B.statusError,
|
|
331
|
+
warning: B.statusWarning,
|
|
332
|
+
success: B.statusSuccess
|
|
442
333
|
};
|
|
443
|
-
function
|
|
444
|
-
|
|
445
|
-
|
|
334
|
+
function ve(e, t, n) {
|
|
335
|
+
let r = e;
|
|
336
|
+
return t !== void 0 && (r = Math.max(r, t)), n !== void 0 && (r = Math.min(r, n)), r;
|
|
446
337
|
}
|
|
447
|
-
function
|
|
448
|
-
|
|
338
|
+
function V(e, t) {
|
|
339
|
+
return t === void 0 ? String(e) : e.toFixed(t);
|
|
449
340
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
)
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
u.preventDefault(), _(!1), n || h(u.dataTransfer.files);
|
|
912
|
-
},
|
|
913
|
-
[n, h]
|
|
914
|
-
), D = b(
|
|
915
|
-
(u) => {
|
|
916
|
-
h(u.target.files), u.target.value = "";
|
|
917
|
-
},
|
|
918
|
-
[h]
|
|
919
|
-
), w = b(() => {
|
|
920
|
-
n || C.current?.click();
|
|
921
|
-
}, [n]), f = b(
|
|
922
|
-
(u) => {
|
|
923
|
-
!n && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), C.current?.click());
|
|
924
|
-
},
|
|
925
|
-
[n]
|
|
926
|
-
);
|
|
927
|
-
return /* @__PURE__ */ S(pt, { children: [
|
|
928
|
-
/* @__PURE__ */ t(
|
|
929
|
-
"input",
|
|
930
|
-
{
|
|
931
|
-
ref: at(m, C),
|
|
932
|
-
type: "file",
|
|
933
|
-
className: H.input,
|
|
934
|
-
accept: a,
|
|
935
|
-
multiple: e,
|
|
936
|
-
disabled: n,
|
|
937
|
-
onChange: D,
|
|
938
|
-
tabIndex: -1,
|
|
939
|
-
"aria-hidden": "true",
|
|
940
|
-
[o]: i.fileDropZoneInput
|
|
941
|
-
}
|
|
942
|
-
),
|
|
943
|
-
/* @__PURE__ */ t(
|
|
944
|
-
"div",
|
|
945
|
-
{
|
|
946
|
-
[o]: i.fileDropZone,
|
|
947
|
-
role: "button",
|
|
948
|
-
tabIndex: n ? -1 : 0,
|
|
949
|
-
"aria-disabled": n || void 0,
|
|
950
|
-
className: N(
|
|
951
|
-
H.dropZone,
|
|
952
|
-
y && H.dragOver,
|
|
953
|
-
n && H.disabled,
|
|
954
|
-
r
|
|
955
|
-
),
|
|
956
|
-
onClick: w,
|
|
957
|
-
onKeyDown: f,
|
|
958
|
-
onDragOver: g,
|
|
959
|
-
onDragLeave: $,
|
|
960
|
-
onDrop: p,
|
|
961
|
-
...d,
|
|
962
|
-
children: l ?? /* @__PURE__ */ S("div", { className: H.content, children: [
|
|
963
|
-
/* @__PURE__ */ t(en, { className: H.icon, "aria-hidden": "true" }),
|
|
964
|
-
/* @__PURE__ */ t("span", { className: H.text, children: "Drop files here or click to browse" })
|
|
965
|
-
] })
|
|
966
|
-
}
|
|
967
|
-
)
|
|
968
|
-
] });
|
|
969
|
-
}
|
|
970
|
-
);
|
|
971
|
-
Za.displayName = "FileDropZone";
|
|
972
|
-
const Ga = "_wrapper_shywj_1", Aa = "_disabled_shywj_26", za = "_fullWidth_shywj_31", Ua = "_calendarOpen_shywj_34", Ya = "_variantPrimary_shywj_38", Ja = "_variantSecondary_shywj_41", Qa = "_variantTertiary_shywj_45", Xa = "_statusError_shywj_54", te = "_statusWarning_shywj_57", ne = "_statusSuccess_shywj_60", ae = "_field_shywj_64", ee = "_adornment_shywj_81", re = "_popup_shywj_114", j = {
|
|
973
|
-
wrapper: Ga,
|
|
974
|
-
disabled: Aa,
|
|
975
|
-
fullWidth: za,
|
|
976
|
-
calendarOpen: Ua,
|
|
977
|
-
variantPrimary: Ya,
|
|
978
|
-
variantSecondary: Ja,
|
|
979
|
-
variantTertiary: Qa,
|
|
980
|
-
statusError: Xa,
|
|
981
|
-
statusWarning: te,
|
|
982
|
-
statusSuccess: ne,
|
|
983
|
-
field: ae,
|
|
984
|
-
adornment: ee,
|
|
985
|
-
popup: re
|
|
986
|
-
}, se = L(j.wrapper, {
|
|
987
|
-
variants: {
|
|
988
|
-
variant: {
|
|
989
|
-
primary: j.variantPrimary,
|
|
990
|
-
secondary: j.variantSecondary,
|
|
991
|
-
tertiary: j.variantTertiary
|
|
992
|
-
}
|
|
993
|
-
},
|
|
994
|
-
defaultVariants: {
|
|
995
|
-
variant: "primary"
|
|
996
|
-
}
|
|
997
|
-
}), ie = {
|
|
998
|
-
error: j.statusError,
|
|
999
|
-
warning: j.statusWarning,
|
|
1000
|
-
success: j.statusSuccess
|
|
341
|
+
var ye = S(({ className: e, variant: t, validationStatus: i, value: a, defaultValue: o, min: s, max: c, step: l = 1, precision: d, onChange: f, fullWidth: p, disabled: m, readOnly: h, ...g }, _) => {
|
|
342
|
+
let v = O(null), y = _ || v, b = a !== void 0, [x, S] = k(() => o === void 0 ? "" : V(o, d)), C = b ? a === "" ? "" : V(a, d) : x;
|
|
343
|
+
T(() => {
|
|
344
|
+
b && a !== "" && S(V(a, d));
|
|
345
|
+
}, [
|
|
346
|
+
a,
|
|
347
|
+
d,
|
|
348
|
+
b
|
|
349
|
+
]);
|
|
350
|
+
let E = w((e) => {
|
|
351
|
+
let t = ve(e, s, c), n = V(t, d);
|
|
352
|
+
b || S(n), f?.(t);
|
|
353
|
+
}, [
|
|
354
|
+
s,
|
|
355
|
+
c,
|
|
356
|
+
d,
|
|
357
|
+
b,
|
|
358
|
+
f
|
|
359
|
+
]), D = w((e) => {
|
|
360
|
+
E((parseFloat(C) || 0) + l * e);
|
|
361
|
+
}, [
|
|
362
|
+
C,
|
|
363
|
+
l,
|
|
364
|
+
E
|
|
365
|
+
]), A = w((e) => {
|
|
366
|
+
let t = e.target.value;
|
|
367
|
+
if (t === "" || t === "-" || t === ".") {
|
|
368
|
+
b || S(t), t === "" && f?.(void 0);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
let n = parseFloat(t);
|
|
372
|
+
isNaN(n) || (b || S(t), f?.(n));
|
|
373
|
+
}, [b, f]), N = w(() => {
|
|
374
|
+
let e = parseFloat(C);
|
|
375
|
+
isNaN(e) ? (b || S(""), f?.(void 0)) : E(e);
|
|
376
|
+
}, [
|
|
377
|
+
C,
|
|
378
|
+
b,
|
|
379
|
+
f,
|
|
380
|
+
E
|
|
381
|
+
]), P = w((e) => {
|
|
382
|
+
e.key === "ArrowUp" ? (e.preventDefault(), D(1)) : e.key === "ArrowDown" && (e.preventDefault(), D(-1));
|
|
383
|
+
}, [D]);
|
|
384
|
+
return /* @__PURE__ */ M("div", {
|
|
385
|
+
[n]: r.numberInput,
|
|
386
|
+
className: u(ge({ variant: t }), i && _e[i], m && B.disabled, p && B.fullWidth, e),
|
|
387
|
+
children: [
|
|
388
|
+
/* @__PURE__ */ j("button", {
|
|
389
|
+
type: "button",
|
|
390
|
+
[n]: r.numberInputDecrement,
|
|
391
|
+
className: B.stepButton,
|
|
392
|
+
onClick: () => D(-1),
|
|
393
|
+
disabled: m || h || s !== void 0 && (parseFloat(C) || 0) <= s,
|
|
394
|
+
"aria-label": "Decrement",
|
|
395
|
+
tabIndex: -1,
|
|
396
|
+
children: /* @__PURE__ */ j(ce, {})
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ j("input", {
|
|
399
|
+
ref: y,
|
|
400
|
+
[n]: r.numberInputField,
|
|
401
|
+
className: B.field,
|
|
402
|
+
inputMode: "decimal",
|
|
403
|
+
value: C,
|
|
404
|
+
onChange: A,
|
|
405
|
+
onBlur: N,
|
|
406
|
+
onKeyDown: P,
|
|
407
|
+
disabled: m,
|
|
408
|
+
readOnly: h,
|
|
409
|
+
role: "spinbutton",
|
|
410
|
+
"aria-valuemin": s,
|
|
411
|
+
"aria-valuemax": c,
|
|
412
|
+
"aria-valuenow": typeof C == "string" ? parseFloat(C) || void 0 : C,
|
|
413
|
+
...g
|
|
414
|
+
}),
|
|
415
|
+
/* @__PURE__ */ j("button", {
|
|
416
|
+
type: "button",
|
|
417
|
+
[n]: r.numberInputIncrement,
|
|
418
|
+
className: B.stepButton,
|
|
419
|
+
onClick: () => D(1),
|
|
420
|
+
disabled: m || h || c !== void 0 && (parseFloat(C) || 0) >= c,
|
|
421
|
+
"aria-label": "Increment",
|
|
422
|
+
tabIndex: -1,
|
|
423
|
+
children: /* @__PURE__ */ j(le, {})
|
|
424
|
+
})
|
|
425
|
+
]
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
ye.displayName = "NumberInput";
|
|
429
|
+
var H = {
|
|
430
|
+
formField: "_formField_oj32b_1",
|
|
431
|
+
fullWidth: "_fullWidth_oj32b_6",
|
|
432
|
+
disabled: "_disabled_oj32b_12",
|
|
433
|
+
label: "_label_oj32b_17",
|
|
434
|
+
required: "_required_oj32b_24",
|
|
435
|
+
helperText: "_helperText_oj32b_29",
|
|
436
|
+
errorMessage: "_errorMessage_oj32b_37"
|
|
437
|
+
}, be = S(({ className: e, label: t, helperText: i, errorMessage: a, validationStatus: o, required: s, fullWidth: c, disabled: l, htmlFor: d, children: f, ...p }, m) => {
|
|
438
|
+
let h = E(), g = d ?? h, _ = `${g}-helper`, v = `${g}-error`, y = o === "error" && a, S = [y ? v : void 0, i ? _ : void 0].filter(Boolean).join(" ") || void 0, w = b.map(f, (e) => C(e) ? x(e, {
|
|
439
|
+
id: g,
|
|
440
|
+
"aria-describedby": S,
|
|
441
|
+
"aria-invalid": o === "error" ? !0 : void 0,
|
|
442
|
+
disabled: l || void 0
|
|
443
|
+
}) : e);
|
|
444
|
+
return /* @__PURE__ */ M("div", {
|
|
445
|
+
ref: m,
|
|
446
|
+
[n]: r.formField,
|
|
447
|
+
className: u(H.formField, c && H.fullWidth, l && H.disabled, e),
|
|
448
|
+
...p,
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ j("label", {
|
|
451
|
+
[n]: r.formFieldLabel,
|
|
452
|
+
htmlFor: g,
|
|
453
|
+
className: u(H.label, s && H.required),
|
|
454
|
+
children: t
|
|
455
|
+
}),
|
|
456
|
+
w,
|
|
457
|
+
y ? /* @__PURE__ */ j("p", {
|
|
458
|
+
[n]: r.formFieldError,
|
|
459
|
+
id: v,
|
|
460
|
+
className: H.errorMessage,
|
|
461
|
+
role: "alert",
|
|
462
|
+
children: a
|
|
463
|
+
}) : null,
|
|
464
|
+
i ? /* @__PURE__ */ j("p", {
|
|
465
|
+
[n]: r.formFieldHelper,
|
|
466
|
+
id: _,
|
|
467
|
+
className: H.helperText,
|
|
468
|
+
children: i
|
|
469
|
+
}) : null
|
|
470
|
+
]
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
be.displayName = "FormField";
|
|
474
|
+
var U = {
|
|
475
|
+
checkbox: "_checkbox_16jsr_1",
|
|
476
|
+
disabled: "_disabled_16jsr_11",
|
|
477
|
+
input: "_input_16jsr_16",
|
|
478
|
+
indicator: "_indicator_16jsr_25",
|
|
479
|
+
label: "_label_16jsr_70"
|
|
480
|
+
}, xe = S(({ className: e, label: t, indeterminate: i, disabled: a, ...o }, s) => {
|
|
481
|
+
let l = O(null);
|
|
482
|
+
return T(() => {
|
|
483
|
+
l.current && (l.current.indeterminate = i ?? !1);
|
|
484
|
+
}, [i]), /* @__PURE__ */ M("label", {
|
|
485
|
+
[n]: r.checkbox,
|
|
486
|
+
className: u(U.checkbox, a && U.disabled, e),
|
|
487
|
+
children: [
|
|
488
|
+
/* @__PURE__ */ j(f, {
|
|
489
|
+
ref: d(s, l),
|
|
490
|
+
className: U.input,
|
|
491
|
+
disabled: a,
|
|
492
|
+
"data-indeterminate": i || void 0,
|
|
493
|
+
...o
|
|
494
|
+
}),
|
|
495
|
+
/* @__PURE__ */ j("span", {
|
|
496
|
+
className: U.indicator,
|
|
497
|
+
"aria-hidden": "true",
|
|
498
|
+
[n]: r.checkboxIndicator,
|
|
499
|
+
children: j(i ? se : c, {})
|
|
500
|
+
}),
|
|
501
|
+
t ? /* @__PURE__ */ j("span", {
|
|
502
|
+
className: U.label,
|
|
503
|
+
[n]: r.checkboxLabel,
|
|
504
|
+
children: t
|
|
505
|
+
}) : null
|
|
506
|
+
]
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
xe.displayName = "Checkbox";
|
|
510
|
+
var W = {
|
|
511
|
+
switch: "_switch_4ebr9_1",
|
|
512
|
+
disabled: "_disabled_4ebr9_11",
|
|
513
|
+
input: "_input_4ebr9_16",
|
|
514
|
+
track: "_track_4ebr9_25",
|
|
515
|
+
thumb: "_thumb_4ebr9_29",
|
|
516
|
+
label: "_label_4ebr9_71"
|
|
517
|
+
}, Se = S(({ className: e, label: t, disabled: i, ...a }, o) => /* @__PURE__ */ M("label", {
|
|
518
|
+
[n]: r.switch,
|
|
519
|
+
className: u(W.switch, i && W.disabled, e),
|
|
520
|
+
children: [
|
|
521
|
+
/* @__PURE__ */ j(p, {
|
|
522
|
+
ref: o,
|
|
523
|
+
className: W.input,
|
|
524
|
+
disabled: i,
|
|
525
|
+
...a
|
|
526
|
+
}),
|
|
527
|
+
/* @__PURE__ */ j("span", {
|
|
528
|
+
className: W.track,
|
|
529
|
+
"aria-hidden": "true",
|
|
530
|
+
[n]: r.switchTrack,
|
|
531
|
+
children: /* @__PURE__ */ j("span", {
|
|
532
|
+
className: W.thumb,
|
|
533
|
+
[n]: r.switchThumb
|
|
534
|
+
})
|
|
535
|
+
}),
|
|
536
|
+
t ? /* @__PURE__ */ j("span", {
|
|
537
|
+
className: W.label,
|
|
538
|
+
[n]: r.switchLabel,
|
|
539
|
+
children: t
|
|
540
|
+
}) : null
|
|
541
|
+
]
|
|
542
|
+
}));
|
|
543
|
+
Se.displayName = "Switch";
|
|
544
|
+
var G = {
|
|
545
|
+
radio: "_radio_160az_1",
|
|
546
|
+
disabled: "_disabled_160az_11",
|
|
547
|
+
input: "_input_160az_16",
|
|
548
|
+
indicator: "_indicator_160az_25",
|
|
549
|
+
dot: "_dot_160az_28",
|
|
550
|
+
label: "_label_160az_68"
|
|
551
|
+
}, Ce = S(({ className: e, label: t, disabled: i, ...a }, o) => /* @__PURE__ */ M("label", {
|
|
552
|
+
[n]: r.radioButton,
|
|
553
|
+
className: u(G.radio, i && G.disabled, e),
|
|
554
|
+
children: [
|
|
555
|
+
/* @__PURE__ */ j(g, {
|
|
556
|
+
ref: o,
|
|
557
|
+
className: G.input,
|
|
558
|
+
disabled: i,
|
|
559
|
+
...a
|
|
560
|
+
}),
|
|
561
|
+
/* @__PURE__ */ j("span", {
|
|
562
|
+
className: G.indicator,
|
|
563
|
+
"aria-hidden": "true",
|
|
564
|
+
[n]: r.radioButtonIndicator,
|
|
565
|
+
children: /* @__PURE__ */ j("span", { className: G.dot })
|
|
566
|
+
}),
|
|
567
|
+
t ? /* @__PURE__ */ j("span", {
|
|
568
|
+
className: G.label,
|
|
569
|
+
[n]: r.radioButtonLabel,
|
|
570
|
+
children: t
|
|
571
|
+
}) : null
|
|
572
|
+
]
|
|
573
|
+
}));
|
|
574
|
+
Ce.displayName = "RadioButton";
|
|
575
|
+
var K = {
|
|
576
|
+
slider: "_slider_fo9xz_1",
|
|
577
|
+
disabled: "_disabled_fo9xz_11",
|
|
578
|
+
header: "_header_fo9xz_16",
|
|
579
|
+
label: "_label_fo9xz_23",
|
|
580
|
+
value: "_value_fo9xz_27",
|
|
581
|
+
input: "_input_fo9xz_33"
|
|
582
|
+
}, we = S(({ className: e, label: t, showValue: i, disabled: a, value: o, defaultValue: s, ...c }, l) => {
|
|
583
|
+
let d = o ?? s ?? "";
|
|
584
|
+
return /* @__PURE__ */ M("label", {
|
|
585
|
+
[n]: r.slider,
|
|
586
|
+
className: u(K.slider, a && K.disabled, e),
|
|
587
|
+
children: [t || i ? /* @__PURE__ */ M("span", {
|
|
588
|
+
className: K.header,
|
|
589
|
+
[n]: r.sliderHeader,
|
|
590
|
+
children: [t ? /* @__PURE__ */ j("span", {
|
|
591
|
+
className: K.label,
|
|
592
|
+
children: t
|
|
593
|
+
}) : null, i ? /* @__PURE__ */ j("span", {
|
|
594
|
+
className: K.value,
|
|
595
|
+
children: d
|
|
596
|
+
}) : null]
|
|
597
|
+
}) : null, /* @__PURE__ */ j(m, {
|
|
598
|
+
ref: l,
|
|
599
|
+
className: K.input,
|
|
600
|
+
disabled: a,
|
|
601
|
+
value: o,
|
|
602
|
+
defaultValue: s,
|
|
603
|
+
...c
|
|
604
|
+
})]
|
|
605
|
+
});
|
|
606
|
+
});
|
|
607
|
+
we.displayName = "Slider";
|
|
608
|
+
var q = {
|
|
609
|
+
pillInput: "_pillInput_vxb9y_1",
|
|
610
|
+
disabled: "_disabled_vxb9y_26",
|
|
611
|
+
pill: "_pill_vxb9y_1",
|
|
612
|
+
pillText: "_pillText_vxb9y_48",
|
|
613
|
+
pillRemove: "_pillRemove_vxb9y_55",
|
|
614
|
+
input: "_input_vxb9y_75"
|
|
615
|
+
}, Te = S(({ className: e, values: t, onChange: i, placeholder: a, disabled: o, maxPills: c, delimiters: l = [], ...f }, p) => {
|
|
616
|
+
let [m, h] = k([]), [g, _] = k(""), v = O(null), y = t ?? m, b = w((e) => {
|
|
617
|
+
t || h(e), i?.(e);
|
|
618
|
+
}, [t, i]), x = w((e) => {
|
|
619
|
+
let t = e.trim();
|
|
620
|
+
t && (y.includes(t) || c != null && y.length >= c || (b([...y, t]), _("")));
|
|
621
|
+
}, [
|
|
622
|
+
y,
|
|
623
|
+
c,
|
|
624
|
+
b
|
|
625
|
+
]), S = w((e) => {
|
|
626
|
+
b(y.filter((t, n) => n !== e)), v.current?.focus();
|
|
627
|
+
}, [y, b]), C = w((e) => {
|
|
628
|
+
if (e.key === "Enter") {
|
|
629
|
+
e.preventDefault(), x(g);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
if (e.key === "Backspace" && g === "" && y.length > 0) {
|
|
633
|
+
S(y.length - 1);
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
l.includes(e.key) && (e.preventDefault(), x(g));
|
|
637
|
+
}, [
|
|
638
|
+
g,
|
|
639
|
+
y,
|
|
640
|
+
l,
|
|
641
|
+
x,
|
|
642
|
+
S
|
|
643
|
+
]), T = w(() => {
|
|
644
|
+
o || v.current?.focus();
|
|
645
|
+
}, [o]), E = w((e) => {
|
|
646
|
+
!o && (e.key === "Enter" || e.key === " ") && v.current?.focus();
|
|
647
|
+
}, [o]);
|
|
648
|
+
return /* @__PURE__ */ M("div", {
|
|
649
|
+
[n]: r.pillInput,
|
|
650
|
+
role: "toolbar",
|
|
651
|
+
className: u(q.pillInput, o && q.disabled, e),
|
|
652
|
+
onClick: T,
|
|
653
|
+
onKeyDown: E,
|
|
654
|
+
...f,
|
|
655
|
+
children: [y.map((e) => /* @__PURE__ */ M("span", {
|
|
656
|
+
className: q.pill,
|
|
657
|
+
children: [/* @__PURE__ */ j("span", {
|
|
658
|
+
className: q.pillText,
|
|
659
|
+
children: e
|
|
660
|
+
}), o ? null : /* @__PURE__ */ j("button", {
|
|
661
|
+
type: "button",
|
|
662
|
+
className: q.pillRemove,
|
|
663
|
+
onClick: (t) => {
|
|
664
|
+
t.stopPropagation(), S(y.indexOf(e));
|
|
665
|
+
},
|
|
666
|
+
"aria-label": `Remove ${e}`,
|
|
667
|
+
tabIndex: -1,
|
|
668
|
+
children: /* @__PURE__ */ j(s, {})
|
|
669
|
+
})]
|
|
670
|
+
}, e)), /* @__PURE__ */ j("input", {
|
|
671
|
+
ref: d(p, v),
|
|
672
|
+
className: q.input,
|
|
673
|
+
type: "text",
|
|
674
|
+
value: g,
|
|
675
|
+
onChange: (e) => _(e.target.value),
|
|
676
|
+
onKeyDown: C,
|
|
677
|
+
placeholder: y.length === 0 ? a : void 0,
|
|
678
|
+
disabled: o,
|
|
679
|
+
"aria-label": f["aria-label"],
|
|
680
|
+
"aria-labelledby": f["aria-labelledby"]
|
|
681
|
+
})]
|
|
682
|
+
});
|
|
683
|
+
});
|
|
684
|
+
Te.displayName = "PillInput";
|
|
685
|
+
var J = {
|
|
686
|
+
dropZone: "_dropZone_1uic8_1",
|
|
687
|
+
dragOver: "_dragOver_1uic8_31",
|
|
688
|
+
disabled: "_disabled_1uic8_35",
|
|
689
|
+
input: "_input_1uic8_44",
|
|
690
|
+
content: "_content_1uic8_53",
|
|
691
|
+
icon: "_icon_1uic8_61",
|
|
692
|
+
text: "_text_1uic8_67"
|
|
693
|
+
}, Ee = S(({ className: e, onChange: t, accept: i, multiple: a, disabled: o, children: s, ...c }, l) => {
|
|
694
|
+
let [f, p] = k(!1), m = O(null), h = w((e) => {
|
|
695
|
+
!e || e.length === 0 || t?.(Array.from(e));
|
|
696
|
+
}, [t]), g = w((e) => {
|
|
697
|
+
e.preventDefault(), o || p(!0);
|
|
698
|
+
}, [o]), _ = w((e) => {
|
|
699
|
+
e.preventDefault(), p(!1);
|
|
700
|
+
}, []), v = w((e) => {
|
|
701
|
+
e.preventDefault(), p(!1), o || h(e.dataTransfer.files);
|
|
702
|
+
}, [o, h]), y = w((e) => {
|
|
703
|
+
h(e.target.files), e.target.value = "";
|
|
704
|
+
}, [h]), b = w(() => {
|
|
705
|
+
o || m.current?.click();
|
|
706
|
+
}, [o]), x = w((e) => {
|
|
707
|
+
!o && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), m.current?.click());
|
|
708
|
+
}, [o]);
|
|
709
|
+
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("input", {
|
|
710
|
+
ref: d(l, m),
|
|
711
|
+
type: "file",
|
|
712
|
+
className: J.input,
|
|
713
|
+
accept: i,
|
|
714
|
+
multiple: a,
|
|
715
|
+
disabled: o,
|
|
716
|
+
onChange: y,
|
|
717
|
+
tabIndex: -1,
|
|
718
|
+
"aria-hidden": "true",
|
|
719
|
+
[n]: r.fileDropZoneInput
|
|
720
|
+
}), /* @__PURE__ */ j("div", {
|
|
721
|
+
[n]: r.fileDropZone,
|
|
722
|
+
role: "button",
|
|
723
|
+
tabIndex: o ? -1 : 0,
|
|
724
|
+
"aria-disabled": o || void 0,
|
|
725
|
+
className: u(J.dropZone, f && J.dragOver, o && J.disabled, e),
|
|
726
|
+
onClick: b,
|
|
727
|
+
onKeyDown: x,
|
|
728
|
+
onDragOver: g,
|
|
729
|
+
onDragLeave: _,
|
|
730
|
+
onDrop: v,
|
|
731
|
+
...c,
|
|
732
|
+
children: s ?? /* @__PURE__ */ M("div", {
|
|
733
|
+
className: J.content,
|
|
734
|
+
children: [/* @__PURE__ */ j(ue, {
|
|
735
|
+
className: J.icon,
|
|
736
|
+
"aria-hidden": "true"
|
|
737
|
+
}), /* @__PURE__ */ j("span", {
|
|
738
|
+
className: J.text,
|
|
739
|
+
children: "Drop files here or click to browse"
|
|
740
|
+
})]
|
|
741
|
+
})
|
|
742
|
+
})] });
|
|
743
|
+
});
|
|
744
|
+
Ee.displayName = "FileDropZone";
|
|
745
|
+
//#endregion
|
|
746
|
+
//#region src/components/Calendar/Calendar.tsx
|
|
747
|
+
var Y = {
|
|
748
|
+
root: l.root,
|
|
749
|
+
header: l.header,
|
|
750
|
+
navButton: l.navButton,
|
|
751
|
+
title: l.title,
|
|
752
|
+
weekdayRow: l.row,
|
|
753
|
+
weekday: l.weekday,
|
|
754
|
+
grid: l.grid,
|
|
755
|
+
row: l.row,
|
|
756
|
+
day: l.day,
|
|
757
|
+
dayToday: l.dayToday,
|
|
758
|
+
daySelected: l.daySelected,
|
|
759
|
+
dayDisabled: l.dayDisabled,
|
|
760
|
+
dayOutside: l.dayOutside,
|
|
761
|
+
footer: l.footer
|
|
762
|
+
}, X = S(({ className: e, classNames: t, ...i }, a) => /* @__PURE__ */ j(y, {
|
|
763
|
+
ref: a,
|
|
764
|
+
classNames: D(() => {
|
|
765
|
+
if (!t) return {
|
|
766
|
+
...Y,
|
|
767
|
+
root: u(Y.root, e)
|
|
768
|
+
};
|
|
769
|
+
let n = {};
|
|
770
|
+
for (let e of Object.keys(Y)) n[e] = u(Y[e], t[e]);
|
|
771
|
+
return n.root = u(n.root, e), n;
|
|
772
|
+
}, [e, t]),
|
|
773
|
+
dataAttributes: { [n]: r.calendar },
|
|
774
|
+
...i
|
|
775
|
+
}));
|
|
776
|
+
X.displayName = "Calendar";
|
|
777
|
+
var Z = {
|
|
778
|
+
wrapper: "_wrapper_1lnj7_1",
|
|
779
|
+
disabled: "_disabled_1lnj7_26",
|
|
780
|
+
fullWidth: "_fullWidth_1lnj7_31",
|
|
781
|
+
calendarOpen: "_calendarOpen_1lnj7_34",
|
|
782
|
+
variantPrimary: "_variantPrimary_1lnj7_38",
|
|
783
|
+
variantSecondary: "_variantSecondary_1lnj7_41",
|
|
784
|
+
variantTertiary: "_variantTertiary_1lnj7_45",
|
|
785
|
+
statusError: "_statusError_1lnj7_54",
|
|
786
|
+
statusWarning: "_statusWarning_1lnj7_57",
|
|
787
|
+
statusSuccess: "_statusSuccess_1lnj7_60",
|
|
788
|
+
field: "_field_1lnj7_64",
|
|
789
|
+
adornment: "_adornment_1lnj7_84",
|
|
790
|
+
popup: "_popup_1lnj7_117"
|
|
791
|
+
}, De = a(Z.wrapper, {
|
|
792
|
+
variants: { variant: {
|
|
793
|
+
primary: Z.variantPrimary,
|
|
794
|
+
secondary: Z.variantSecondary,
|
|
795
|
+
tertiary: Z.variantTertiary
|
|
796
|
+
} },
|
|
797
|
+
defaultVariants: { variant: "primary" }
|
|
798
|
+
}), Oe = {
|
|
799
|
+
error: Z.statusError,
|
|
800
|
+
warning: Z.statusWarning,
|
|
801
|
+
success: Z.statusSuccess
|
|
1001
802
|
};
|
|
1002
|
-
function
|
|
1003
|
-
|
|
803
|
+
function ke() {
|
|
804
|
+
return /* @__PURE__ */ j(t, {
|
|
805
|
+
"aria-hidden": "true",
|
|
806
|
+
[n]: r.calendarIcon
|
|
807
|
+
});
|
|
1004
808
|
}
|
|
1005
|
-
function
|
|
1006
|
-
|
|
809
|
+
function Ae() {
|
|
810
|
+
return /* @__PURE__ */ j(e, { "aria-hidden": "true" });
|
|
1007
811
|
}
|
|
1008
|
-
function
|
|
1009
|
-
|
|
812
|
+
function je() {
|
|
813
|
+
return /* @__PURE__ */ j(i, { "aria-hidden": "true" });
|
|
1010
814
|
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
),
|
|
1099
|
-
...n,
|
|
1100
|
-
children: e
|
|
1101
|
-
}
|
|
1102
|
-
)
|
|
1103
|
-
);
|
|
1104
|
-
we.displayName = "Badge";
|
|
1105
|
-
const $e = "_divider_1kyjw_1", Ne = "_horizontal_1kyjw_7", Ie = "_vertical_1kyjw_11", nt = {
|
|
1106
|
-
divider: $e,
|
|
1107
|
-
horizontal: Ne,
|
|
1108
|
-
vertical: Ie
|
|
1109
|
-
}, ke = W(
|
|
1110
|
-
({ className: r, orientation: s = "horizontal", decorative: a = !1, ...e }, n) => /* @__PURE__ */ t(
|
|
1111
|
-
"hr",
|
|
1112
|
-
{
|
|
1113
|
-
ref: n,
|
|
1114
|
-
[o]: i.divider,
|
|
1115
|
-
className: N(
|
|
1116
|
-
nt.divider,
|
|
1117
|
-
s === "vertical" ? nt.vertical : nt.horizontal,
|
|
1118
|
-
r
|
|
1119
|
-
),
|
|
1120
|
-
...a ? { "aria-hidden": !0 } : { role: "separator", "aria-orientation": s },
|
|
1121
|
-
...e
|
|
1122
|
-
}
|
|
1123
|
-
)
|
|
1124
|
-
);
|
|
1125
|
-
ke.displayName = "Divider";
|
|
1126
|
-
export {
|
|
1127
|
-
we as Badge,
|
|
1128
|
-
Rt as Button,
|
|
1129
|
-
Qt as ButtonGroup,
|
|
1130
|
-
da as Checkbox,
|
|
1131
|
-
Pe as ComboBox,
|
|
1132
|
-
de as DateInput,
|
|
1133
|
-
ke as Divider,
|
|
1134
|
-
o as FINRA_UI_ATTR,
|
|
1135
|
-
Za as FileDropZone,
|
|
1136
|
-
ra as FormField,
|
|
1137
|
-
Ut as IconButton,
|
|
1138
|
-
bn as Input,
|
|
1139
|
-
Yn as NumberInput,
|
|
1140
|
-
qa as PillInput,
|
|
1141
|
-
Na as RadioButton,
|
|
1142
|
-
Da as Slider,
|
|
1143
|
-
ya as Switch,
|
|
1144
|
-
jn as Textarea,
|
|
1145
|
-
i as componentIds
|
|
1146
|
-
};
|
|
1147
|
-
//# sourceMappingURL=index.js.map
|
|
815
|
+
var Me = S(({ className: e, variant: t, validationStatus: i, fullWidth: a, disabled: o, ...s }, c) => /* @__PURE__ */ j(v, {
|
|
816
|
+
ref: c,
|
|
817
|
+
disabled: o,
|
|
818
|
+
classNames: D(() => ({
|
|
819
|
+
root: u(De({ variant: t }), i && Oe[i], o && Z.disabled, a && Z.fullWidth, e),
|
|
820
|
+
calendarOpen: Z.calendarOpen,
|
|
821
|
+
input: Z.field,
|
|
822
|
+
adornment: Z.adornment,
|
|
823
|
+
popup: Z.popup,
|
|
824
|
+
calendar: {
|
|
825
|
+
root: l.root,
|
|
826
|
+
header: l.header,
|
|
827
|
+
navButton: l.navButton,
|
|
828
|
+
title: l.title,
|
|
829
|
+
weekdayRow: l.weekdayRow,
|
|
830
|
+
weekday: l.weekday,
|
|
831
|
+
grid: l.grid,
|
|
832
|
+
row: l.row,
|
|
833
|
+
day: l.day,
|
|
834
|
+
dayToday: l.dayToday,
|
|
835
|
+
daySelected: l.daySelected,
|
|
836
|
+
dayDisabled: l.dayDisabled,
|
|
837
|
+
dayOutside: l.dayOutside,
|
|
838
|
+
footer: l.footer
|
|
839
|
+
}
|
|
840
|
+
}), [
|
|
841
|
+
e,
|
|
842
|
+
t,
|
|
843
|
+
i,
|
|
844
|
+
a,
|
|
845
|
+
o
|
|
846
|
+
]),
|
|
847
|
+
dataAttributes: { [n]: r.dateInput },
|
|
848
|
+
renderCalendarIcon: ke,
|
|
849
|
+
renderCalendarNavPrev: Ae,
|
|
850
|
+
renderCalendarNavNext: je,
|
|
851
|
+
...s
|
|
852
|
+
}));
|
|
853
|
+
Me.displayName = "DateInput";
|
|
854
|
+
var Q = {
|
|
855
|
+
badge: "_badge_1mq4h_1",
|
|
856
|
+
variantPrimary: "_variantPrimary_1mq4h_23",
|
|
857
|
+
variantSecondary: "_variantSecondary_1mq4h_28",
|
|
858
|
+
variantTertiary: "_variantTertiary_1mq4h_33",
|
|
859
|
+
sentimentDanger: "_sentimentDanger_1mq4h_38",
|
|
860
|
+
sentimentSuccess: "_sentimentSuccess_1mq4h_44",
|
|
861
|
+
sentimentWarning: "_sentimentWarning_1mq4h_49",
|
|
862
|
+
sentimentInfo: "_sentimentInfo_1mq4h_54"
|
|
863
|
+
}, Ne = {
|
|
864
|
+
danger: Q.sentimentDanger,
|
|
865
|
+
success: Q.sentimentSuccess,
|
|
866
|
+
warning: Q.sentimentWarning,
|
|
867
|
+
info: Q.sentimentInfo
|
|
868
|
+
}, Pe = a(Q.badge, {
|
|
869
|
+
variants: { variant: {
|
|
870
|
+
primary: Q.variantPrimary,
|
|
871
|
+
secondary: Q.variantSecondary,
|
|
872
|
+
tertiary: Q.variantTertiary
|
|
873
|
+
} },
|
|
874
|
+
defaultVariants: { variant: "primary" }
|
|
875
|
+
}), Fe = S(({ className: e, variant: t, sentiment: i, children: a, ...o }, s) => /* @__PURE__ */ j("span", {
|
|
876
|
+
ref: s,
|
|
877
|
+
[n]: r.badge,
|
|
878
|
+
className: u(Pe({ variant: t }), i && Ne[i], e),
|
|
879
|
+
...o,
|
|
880
|
+
children: a
|
|
881
|
+
}));
|
|
882
|
+
Fe.displayName = "Badge";
|
|
883
|
+
var $ = {
|
|
884
|
+
divider: "_divider_qn523_1",
|
|
885
|
+
horizontal: "_horizontal_qn523_7",
|
|
886
|
+
vertical: "_vertical_qn523_11"
|
|
887
|
+
}, Ie = S(({ className: e, orientation: t = "horizontal", decorative: i = !1, ...a }, o) => /* @__PURE__ */ j("hr", {
|
|
888
|
+
ref: o,
|
|
889
|
+
[n]: r.divider,
|
|
890
|
+
className: u($.divider, t === "vertical" ? $.vertical : $.horizontal, e),
|
|
891
|
+
...i ? { "aria-hidden": !0 } : {
|
|
892
|
+
role: "separator",
|
|
893
|
+
"aria-orientation": t
|
|
894
|
+
},
|
|
895
|
+
...a
|
|
896
|
+
}));
|
|
897
|
+
Ie.displayName = "Divider";
|
|
898
|
+
//#endregion
|
|
899
|
+
export { Fe as Badge, F as Button, ae as ButtonGroup, X as Calendar, xe as Checkbox, o as ComboBox, Me as DateInput, Ie as Divider, n as FINRA_UI_ATTR, Ee as FileDropZone, be as FormField, re as IconButton, pe as Input, ye as NumberInput, Te as PillInput, Ce as RadioButton, we as Slider, Se as Switch, z as Textarea, r as componentIds };
|
|
900
|
+
|
|
901
|
+
//# sourceMappingURL=index.js.map
|