@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.
Files changed (46) hide show
  1. package/dist/Calendar.module-AHlPlLw_.js +362 -0
  2. package/dist/Calendar.module-AHlPlLw_.js.map +1 -0
  3. package/dist/DateInput-D3AUs_l2.js +224 -0
  4. package/dist/DateInput-D3AUs_l2.js.map +1 -0
  5. package/dist/components/Badge/Badge.d.ts +2 -1
  6. package/dist/components/Button/Button.d.ts +2 -1
  7. package/dist/components/Calendar/Calendar.d.ts +6 -0
  8. package/dist/components/IconButton/IconButton.d.ts +2 -1
  9. package/dist/components/Input/Input.d.ts +2 -1
  10. package/dist/components/componentIds.d.ts +1 -0
  11. package/dist/dateFormat-CdClN4CU.js +200 -0
  12. package/dist/dateFormat-CdClN4CU.js.map +1 -0
  13. package/dist/dateInput-4sdYyWq0.js +551 -0
  14. package/dist/dateInput-4sdYyWq0.js.map +1 -0
  15. package/dist/finance.js +382 -478
  16. package/dist/finance.js.map +1 -1
  17. package/dist/hooks/useClickOutside.d.ts +6 -0
  18. package/dist/hooks/useControlledValue.d.ts +11 -0
  19. package/dist/hooks/useDisclosure.d.ts +18 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.js +889 -1135
  22. package/dist/index.js.map +1 -1
  23. package/dist/logic/calendar.d.ts +27 -0
  24. package/dist/logic/combobox.d.ts +23 -0
  25. package/dist/logic/cx.d.ts +6 -0
  26. package/dist/logic/dateInput.d.ts +13 -0
  27. package/dist/styles.css +2 -1
  28. package/dist/tenor-GS2kfKqC.js +111 -0
  29. package/dist/tenor-GS2kfKqC.js.map +1 -0
  30. package/dist/types/variants.d.ts +6 -0
  31. package/dist/unstyled/Calendar/Calendar.d.ts +2 -8
  32. package/dist/unstyled/ComboBox/ComboBox.d.ts +1 -1
  33. package/dist/unstyled/FormField/FormField.d.ts +2 -1
  34. package/dist/unstyled.js +164 -223
  35. package/dist/unstyled.js.map +1 -1
  36. package/dist/utils.js +3 -98
  37. package/package.json +13 -14
  38. package/dist/Calendar-EtS0i3_l.js +0 -664
  39. package/dist/Calendar-EtS0i3_l.js.map +0 -1
  40. package/dist/Calendar.module-D02DGwqf.js +0 -374
  41. package/dist/Calendar.module-D02DGwqf.js.map +0 -1
  42. package/dist/DateInput-DhLq-Jah.js +0 -230
  43. package/dist/DateInput-DhLq-Jah.js.map +0 -1
  44. package/dist/dateFormat-CGZCSpqw.js +0 -77
  45. package/dist/dateFormat-CGZCSpqw.js.map +0 -1
  46. package/dist/utils.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,1147 +1,901 @@
1
- import { c as i, a as N, F as o, d as L, i as ct, j as lt, b as T, e as dt, f as ut, h as _t } from "./Calendar.module-D02DGwqf.js";
2
- import { C as Pe } from "./Calendar.module-D02DGwqf.js";
3
- import { jsxs as S, jsx as t, Fragment as pt } from "react/jsx-runtime";
4
- import { forwardRef as W, useRef as z, useCallback as b, useState as Q, useEffect as tt, useId as mt, Children as vt, isValidElement as yt, cloneElement as ht, useMemo as ft } from "react";
5
- import { B as bt, I as gt, C as wt, b as $t, R as Nt, a as It, D as kt } from "./DateInput-DhLq-Jah.js";
6
- import { m as at } from "./dateFormat-CGZCSpqw.js";
7
- const xt = "_button_nw9o1_1", St = "_variantPrimary_nw9o1_40", Wt = "_variantSecondary_nw9o1_53", Ct = "_variantTertiary_nw9o1_66", Dt = "_sentimentDanger_nw9o1_78", Bt = "_sentimentSuccess_nw9o1_84", Tt = "_sentimentWarning_nw9o1_90", Pt = "_sentimentInfo_nw9o1_96", Et = "_fullWidth_nw9o1_102", jt = "_icon_nw9o1_106", q = {
8
- button: xt,
9
- variantPrimary: St,
10
- variantSecondary: Wt,
11
- variantTertiary: Ct,
12
- sentimentDanger: Dt,
13
- sentimentSuccess: Bt,
14
- sentimentWarning: Tt,
15
- sentimentInfo: Pt,
16
- fullWidth: Et,
17
- icon: jt
18
- }, Ft = {
19
- danger: q.sentimentDanger,
20
- success: q.sentimentSuccess,
21
- warning: q.sentimentWarning,
22
- info: q.sentimentInfo
23
- }, qt = L(q.button, {
24
- variants: {
25
- variant: {
26
- primary: q.variantPrimary,
27
- secondary: q.variantSecondary,
28
- tertiary: q.variantTertiary
29
- },
30
- fullWidth: {
31
- true: q.fullWidth
32
- }
33
- },
34
- defaultVariants: {
35
- variant: "primary"
36
- }
37
- }), Rt = W(
38
- ({ className: r, variant: s, fullWidth: a, sentiment: e, startIcon: n, endIcon: l, children: d, ...m }, y) => /* @__PURE__ */ S(
39
- bt,
40
- {
41
- ref: y,
42
- type: "button",
43
- [o]: i.button,
44
- className: N(
45
- qt({ variant: s, fullWidth: a }),
46
- e && Ft[e],
47
- r
48
- ),
49
- ...m,
50
- children: [
51
- n ? /* @__PURE__ */ t("span", { className: q.icon, children: n }) : null,
52
- d,
53
- l ? /* @__PURE__ */ t("span", { className: q.icon, children: l }) : null
54
- ]
55
- }
56
- )
57
- );
58
- Rt.displayName = "Button";
59
- const Vt = "_iconButton_wgr1d_1", Mt = "_variantPrimary_wgr1d_37", Ot = "_variantSecondary_wgr1d_50", Ht = "_variantTertiary_wgr1d_63", Lt = "_sentimentDanger_wgr1d_75", Kt = "_sentimentSuccess_wgr1d_81", Zt = "_sentimentWarning_wgr1d_87", Gt = "_sentimentInfo_wgr1d_93", R = {
60
- iconButton: Vt,
61
- variantPrimary: Mt,
62
- variantSecondary: Ot,
63
- variantTertiary: Ht,
64
- sentimentDanger: Lt,
65
- sentimentSuccess: Kt,
66
- sentimentWarning: Zt,
67
- sentimentInfo: Gt
68
- }, At = {
69
- danger: R.sentimentDanger,
70
- success: R.sentimentSuccess,
71
- warning: R.sentimentWarning,
72
- info: R.sentimentInfo
73
- }, zt = L(R.iconButton, {
74
- variants: {
75
- variant: {
76
- primary: R.variantPrimary,
77
- secondary: R.variantSecondary,
78
- tertiary: R.variantTertiary
79
- }
80
- },
81
- defaultVariants: {
82
- variant: "primary"
83
- }
84
- }), Ut = W(
85
- ({ className: r, variant: s, sentiment: a, ...e }, n) => /* @__PURE__ */ t(
86
- gt,
87
- {
88
- ref: n,
89
- type: "button",
90
- [o]: i.iconButton,
91
- className: N(
92
- zt({ variant: s }),
93
- a && At[a],
94
- r
95
- ),
96
- ...e
97
- }
98
- )
99
- );
100
- Ut.displayName = "IconButton";
101
- const Yt = "_buttonGroup_vy66t_1", Jt = "_vertical_vy66t_22", it = {
102
- buttonGroup: Yt,
103
- vertical: Jt
104
- }, Qt = W(
105
- ({ className: r, orientation: s = "horizontal", children: a, ...e }, n) => /* @__PURE__ */ t(
106
- "div",
107
- {
108
- ref: n,
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
- function tn(r) {
138
- return /* @__PURE__ */ t(
139
- "svg",
140
- {
141
- viewBox: "0 0 12 12",
142
- fill: "none",
143
- stroke: "currentColor",
144
- strokeWidth: "2",
145
- strokeLinecap: "round",
146
- ...r,
147
- children: /* @__PURE__ */ t("path", { d: "M2.5 6h7" })
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
- function nn(r) {
152
- return /* @__PURE__ */ t(
153
- "svg",
154
- {
155
- viewBox: "0 0 24 24",
156
- fill: "none",
157
- stroke: "currentColor",
158
- strokeWidth: "2",
159
- strokeLinecap: "round",
160
- ...r,
161
- children: /* @__PURE__ */ t("path", { d: "M5 12h14" })
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
- function an(r) {
166
- return /* @__PURE__ */ t(
167
- "svg",
168
- {
169
- viewBox: "0 0 24 24",
170
- fill: "none",
171
- stroke: "currentColor",
172
- strokeWidth: "2",
173
- strokeLinecap: "round",
174
- ...r,
175
- children: /* @__PURE__ */ t("path", { d: "M12 5v14M5 12h14" })
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
- function en(r) {
180
- return /* @__PURE__ */ S(
181
- "svg",
182
- {
183
- viewBox: "0 0 24 24",
184
- fill: "none",
185
- stroke: "currentColor",
186
- strokeWidth: "1.5",
187
- strokeLinecap: "round",
188
- strokeLinejoin: "round",
189
- ...r,
190
- children: [
191
- /* @__PURE__ */ t("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
192
- /* @__PURE__ */ t("polyline", { points: "17 8 12 3 7 8" }),
193
- /* @__PURE__ */ t("line", { x1: "12", y1: "3", x2: "12", y2: "15" })
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
- const rn = "_wrapper_qx7i5_1", sn = "_disabled_qx7i5_25", on = "_fullWidth_qx7i5_30", cn = "_variantPrimary_qx7i5_33", ln = "_variantSecondary_qx7i5_36", dn = "_variantTertiary_qx7i5_40", un = "_statusError_qx7i5_49", _n = "_statusWarning_qx7i5_52", pn = "_statusSuccess_qx7i5_55", mn = "_field_qx7i5_59", vn = "_adornment_qx7i5_76", yn = "_clearButton_qx7i5_88", P = {
199
- wrapper: rn,
200
- disabled: sn,
201
- fullWidth: on,
202
- variantPrimary: cn,
203
- variantSecondary: ln,
204
- variantTertiary: dn,
205
- statusError: un,
206
- statusWarning: _n,
207
- statusSuccess: pn,
208
- field: mn,
209
- adornment: vn,
210
- clearButton: yn
211
- }, hn = L(P.wrapper, {
212
- variants: {
213
- variant: {
214
- primary: P.variantPrimary,
215
- secondary: P.variantSecondary,
216
- tertiary: P.variantTertiary
217
- }
218
- },
219
- defaultVariants: {
220
- variant: "primary"
221
- }
222
- }), fn = {
223
- error: P.statusError,
224
- warning: P.statusWarning,
225
- success: P.statusSuccess
226
- }, bn = W(
227
- ({
228
- className: r,
229
- variant: s,
230
- validationStatus: a,
231
- startAdornment: e,
232
- endAdornment: n,
233
- clearable: l,
234
- onClear: d,
235
- fullWidth: m,
236
- disabled: y,
237
- readOnly: _,
238
- value: C,
239
- defaultValue: h,
240
- onChange: g,
241
- ...$
242
- }, p) => {
243
- const D = z(null), w = p || D, f = b(
244
- (I) => {
245
- I.preventDefault(), d ? d() : w.current && (Object.getOwnPropertyDescriptor(
246
- HTMLInputElement.prototype,
247
- "value"
248
- )?.set?.call(w.current, ""), w.current.dispatchEvent(new Event("input", { bubbles: !0 }))), w.current?.focus();
249
- },
250
- [d, w]
251
- ), u = l && !y && !_ && (C ?? h ?? "") !== "";
252
- return /* @__PURE__ */ S(
253
- "div",
254
- {
255
- [o]: i.input,
256
- className: N(
257
- hn({ variant: s }),
258
- a && fn[a],
259
- y && P.disabled,
260
- m && P.fullWidth,
261
- r
262
- ),
263
- children: [
264
- e ? /* @__PURE__ */ t("span", { className: P.adornment, children: e }) : null,
265
- /* @__PURE__ */ t(
266
- "input",
267
- {
268
- ref: w,
269
- [o]: i.inputField,
270
- className: P.field,
271
- disabled: y,
272
- readOnly: _,
273
- value: C,
274
- defaultValue: h,
275
- onChange: g,
276
- ...$
277
- }
278
- ),
279
- u ? /* @__PURE__ */ t(
280
- "button",
281
- {
282
- type: "button",
283
- className: P.clearButton,
284
- onClick: f,
285
- "aria-label": "Clear input",
286
- tabIndex: -1,
287
- children: /* @__PURE__ */ t(Xt, {})
288
- }
289
- ) : null,
290
- n ? /* @__PURE__ */ t("span", { className: P.adornment, children: n }) : null
291
- ]
292
- }
293
- );
294
- }
295
- );
296
- bn.displayName = "Input";
297
- const gn = "_wrapper_16m4i_1", wn = "_disabled_16m4i_21", $n = "_fullWidth_16m4i_26", Nn = "_variantPrimary_16m4i_29", In = "_variantSecondary_16m4i_32", kn = "_variantTertiary_16m4i_36", xn = "_statusError_16m4i_45", Sn = "_statusWarning_16m4i_48", Wn = "_statusSuccess_16m4i_51", Cn = "_field_16m4i_55", Dn = "_charCount_16m4i_74", Bn = "_charCountWarning_16m4i_84", Tn = "_charCountError_16m4i_88", E = {
298
- wrapper: gn,
299
- disabled: wn,
300
- fullWidth: $n,
301
- variantPrimary: Nn,
302
- variantSecondary: In,
303
- variantTertiary: kn,
304
- statusError: xn,
305
- statusWarning: Sn,
306
- statusSuccess: Wn,
307
- field: Cn,
308
- charCount: Dn,
309
- charCountWarning: Bn,
310
- charCountError: Tn
311
- }, Pn = L(E.wrapper, {
312
- variants: {
313
- variant: {
314
- primary: E.variantPrimary,
315
- secondary: E.variantSecondary,
316
- tertiary: E.variantTertiary
317
- }
318
- },
319
- defaultVariants: {
320
- variant: "primary"
321
- }
322
- }), En = {
323
- error: E.statusError,
324
- warning: E.statusWarning,
325
- success: E.statusSuccess
326
- }, jn = W(
327
- ({
328
- className: r,
329
- variant: s,
330
- validationStatus: a,
331
- showCharCount: e,
332
- warningThreshold: n,
333
- autoResize: l,
334
- minRows: d = 3,
335
- maxRows: m,
336
- fullWidth: y,
337
- maxLength: _,
338
- disabled: C,
339
- readOnly: h,
340
- value: g,
341
- defaultValue: $,
342
- onChange: p,
343
- ...D
344
- }, w) => {
345
- const f = z(null), u = w || f, [I, k] = Q(() => (g ?? $ ?? "").length);
346
- tt(() => {
347
- g !== void 0 && k(g.length);
348
- }, [g]);
349
- const c = b(() => {
350
- const v = u.current;
351
- if (!v || !l) return;
352
- v.style.height = "auto";
353
- const M = parseFloat(getComputedStyle(v).lineHeight), ot = M * d, rt = m ? M * m : 1 / 0, st = v.scrollHeight;
354
- v.style.height = `${Math.min(Math.max(st, ot), rt)}px`, v.style.overflowY = st > rt ? "auto" : "hidden";
355
- }, [l, d, m, u]);
356
- tt(() => {
357
- c();
358
- }, [g, c]);
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 Un(r, s, a) {
444
- let e = r;
445
- return s !== void 0 && (e = Math.max(e, s)), a !== void 0 && (e = Math.min(e, a)), e;
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 X(r, s) {
448
- return s !== void 0 ? r.toFixed(s) : String(r);
338
+ function V(e, t) {
339
+ return t === void 0 ? String(e) : e.toFixed(t);
449
340
  }
450
- const Yn = W(
451
- ({
452
- className: r,
453
- variant: s,
454
- validationStatus: a,
455
- value: e,
456
- defaultValue: n,
457
- min: l,
458
- max: d,
459
- step: m = 1,
460
- precision: y,
461
- onChange: _,
462
- fullWidth: C,
463
- disabled: h,
464
- readOnly: g,
465
- ...$
466
- }, p) => {
467
- const D = z(null), w = p || D, f = e !== void 0, [u, I] = Q(
468
- () => n !== void 0 ? X(n, y) : ""
469
- ), k = f ? e === "" ? "" : X(e, y) : u;
470
- tt(() => {
471
- f && e !== "" && I(X(e, y));
472
- }, [e, y, f]);
473
- const c = b(
474
- (x) => {
475
- const v = Un(x, l, d), M = X(v, y);
476
- f || I(M), _?.(v);
477
- },
478
- [l, d, y, f, _]
479
- ), B = b(
480
- (x) => {
481
- const v = parseFloat(k) || 0;
482
- c(v + m * x);
483
- },
484
- [k, m, c]
485
- ), U = b(
486
- (x) => {
487
- const v = x.target.value;
488
- if (v === "" || v === "-" || v === ".") {
489
- f || I(v), v === "" && _?.(void 0);
490
- return;
491
- }
492
- const M = parseFloat(v);
493
- isNaN(M) || (f || I(v), _?.(M));
494
- },
495
- [f, _]
496
- ), et = b(() => {
497
- const x = parseFloat(k);
498
- isNaN(x) ? (f || I(""), _?.(void 0)) : c(x);
499
- }, [k, f, _, c]), Y = b(
500
- (x) => {
501
- x.key === "ArrowUp" ? (x.preventDefault(), B(1)) : x.key === "ArrowDown" && (x.preventDefault(), B(-1));
502
- },
503
- [B]
504
- );
505
- return /* @__PURE__ */ S(
506
- "div",
507
- {
508
- [o]: i.numberInput,
509
- className: N(
510
- An({ variant: s }),
511
- a && zn[a],
512
- h && F.disabled,
513
- C && F.fullWidth,
514
- r
515
- ),
516
- children: [
517
- /* @__PURE__ */ t(
518
- "button",
519
- {
520
- type: "button",
521
- [o]: i.numberInputDecrement,
522
- className: F.stepButton,
523
- onClick: () => B(-1),
524
- disabled: h || g || l !== void 0 && (parseFloat(k) || 0) <= l,
525
- "aria-label": "Decrement",
526
- tabIndex: -1,
527
- children: /* @__PURE__ */ t(nn, {})
528
- }
529
- ),
530
- /* @__PURE__ */ t(
531
- "input",
532
- {
533
- ref: w,
534
- [o]: i.numberInputField,
535
- className: F.field,
536
- inputMode: "decimal",
537
- value: k,
538
- onChange: U,
539
- onBlur: et,
540
- onKeyDown: Y,
541
- disabled: h,
542
- readOnly: g,
543
- role: "spinbutton",
544
- "aria-valuemin": l,
545
- "aria-valuemax": d,
546
- "aria-valuenow": typeof k == "string" ? parseFloat(k) || void 0 : k,
547
- ...$
548
- }
549
- ),
550
- /* @__PURE__ */ t(
551
- "button",
552
- {
553
- type: "button",
554
- [o]: i.numberInputIncrement,
555
- className: F.stepButton,
556
- onClick: () => B(1),
557
- disabled: h || g || d !== void 0 && (parseFloat(k) || 0) >= d,
558
- "aria-label": "Increment",
559
- tabIndex: -1,
560
- children: /* @__PURE__ */ t(an, {})
561
- }
562
- )
563
- ]
564
- }
565
- );
566
- }
567
- );
568
- Yn.displayName = "NumberInput";
569
- const Jn = "_formField_bdanr_1", Qn = "_fullWidth_bdanr_6", Xn = "_disabled_bdanr_12", ta = "_label_bdanr_17", na = "_required_bdanr_24", aa = "_helperText_bdanr_29", ea = "_errorMessage_bdanr_37", O = {
570
- formField: Jn,
571
- fullWidth: Qn,
572
- disabled: Xn,
573
- label: ta,
574
- required: na,
575
- helperText: aa,
576
- errorMessage: ea
577
- }, ra = W(
578
- ({
579
- className: r,
580
- label: s,
581
- helperText: a,
582
- errorMessage: e,
583
- validationStatus: n,
584
- required: l,
585
- fullWidth: d,
586
- disabled: m,
587
- htmlFor: y,
588
- children: _,
589
- ...C
590
- }, h) => {
591
- const g = mt(), $ = y ?? g, p = `${$}-helper`, D = `${$}-error`, w = n === "error" && e, f = [w ? D : void 0, a ? p : void 0].filter(Boolean).join(" ") || void 0, u = vt.map(_, (I) => yt(I) ? ht(I, {
592
- id: $,
593
- "aria-describedby": f,
594
- "aria-invalid": n === "error" ? !0 : void 0,
595
- disabled: m || void 0
596
- }) : I);
597
- return /* @__PURE__ */ S(
598
- "div",
599
- {
600
- ref: h,
601
- [o]: i.formField,
602
- className: N(
603
- O.formField,
604
- d && O.fullWidth,
605
- m && O.disabled,
606
- r
607
- ),
608
- ...C,
609
- children: [
610
- /* @__PURE__ */ t(
611
- "label",
612
- {
613
- [o]: i.formFieldLabel,
614
- htmlFor: $,
615
- className: N(O.label, l && O.required),
616
- children: s
617
- }
618
- ),
619
- u,
620
- w ? /* @__PURE__ */ t(
621
- "p",
622
- {
623
- [o]: i.formFieldError,
624
- id: D,
625
- className: O.errorMessage,
626
- role: "alert",
627
- children: e
628
- }
629
- ) : null,
630
- a ? /* @__PURE__ */ t(
631
- "p",
632
- {
633
- [o]: i.formFieldHelper,
634
- id: p,
635
- className: O.helperText,
636
- children: a
637
- }
638
- ) : null
639
- ]
640
- }
641
- );
642
- }
643
- );
644
- ra.displayName = "FormField";
645
- const sa = "_checkbox_q1fn9_1", ia = "_disabled_q1fn9_11", oa = "_input_q1fn9_16", ca = "_indicator_q1fn9_25", la = "_label_q1fn9_70", J = {
646
- checkbox: sa,
647
- disabled: ia,
648
- input: oa,
649
- indicator: ca,
650
- label: la
651
- }, da = W(
652
- ({ className: r, label: s, indeterminate: a, disabled: e, ...n }, l) => {
653
- const d = z(null);
654
- return tt(() => {
655
- d.current && (d.current.indeterminate = a ?? !1);
656
- }, [a]), /* @__PURE__ */ S(
657
- "label",
658
- {
659
- [o]: i.checkbox,
660
- className: N(J.checkbox, e && J.disabled, r),
661
- children: [
662
- /* @__PURE__ */ t(
663
- wt,
664
- {
665
- ref: at(l, d),
666
- className: J.input,
667
- disabled: e,
668
- "data-indeterminate": a || void 0,
669
- ...n
670
- }
671
- ),
672
- /* @__PURE__ */ t(
673
- "span",
674
- {
675
- className: J.indicator,
676
- "aria-hidden": "true",
677
- [o]: i.checkboxIndicator,
678
- children: a ? /* @__PURE__ */ t(tn, {}) : /* @__PURE__ */ t(ct, {})
679
- }
680
- ),
681
- s ? /* @__PURE__ */ t("span", { className: J.label, [o]: i.checkboxLabel, children: s }) : null
682
- ]
683
- }
684
- );
685
- }
686
- );
687
- da.displayName = "Checkbox";
688
- const ua = "_disabled_19daj_11", _a = "_input_19daj_16", pa = "_track_19daj_25", ma = "_thumb_19daj_29", va = "_label_19daj_71", K = {
689
- switch: "_switch_19daj_1",
690
- disabled: ua,
691
- input: _a,
692
- track: pa,
693
- thumb: ma,
694
- label: va
695
- }, ya = W(
696
- ({ className: r, label: s, disabled: a, ...e }, n) => /* @__PURE__ */ S(
697
- "label",
698
- {
699
- [o]: i.switch,
700
- className: N(K.switch, a && K.disabled, r),
701
- children: [
702
- /* @__PURE__ */ t($t, { ref: n, className: K.input, disabled: a, ...e }),
703
- /* @__PURE__ */ t(
704
- "span",
705
- {
706
- className: K.track,
707
- "aria-hidden": "true",
708
- [o]: i.switchTrack,
709
- children: /* @__PURE__ */ t("span", { className: K.thumb, [o]: i.switchThumb })
710
- }
711
- ),
712
- s ? /* @__PURE__ */ t("span", { className: K.label, [o]: i.switchLabel, children: s }) : null
713
- ]
714
- }
715
- )
716
- );
717
- ya.displayName = "Switch";
718
- const ha = "_radio_1ra61_1", fa = "_disabled_1ra61_11", ba = "_input_1ra61_16", ga = "_indicator_1ra61_25", wa = "_dot_1ra61_28", $a = "_label_1ra61_68", Z = {
719
- radio: ha,
720
- disabled: fa,
721
- input: ba,
722
- indicator: ga,
723
- dot: wa,
724
- label: $a
725
- }, Na = W(
726
- ({ className: r, label: s, disabled: a, ...e }, n) => /* @__PURE__ */ S(
727
- "label",
728
- {
729
- [o]: i.radioButton,
730
- className: N(Z.radio, a && Z.disabled, r),
731
- children: [
732
- /* @__PURE__ */ t(Nt, { ref: n, className: Z.input, disabled: a, ...e }),
733
- /* @__PURE__ */ t(
734
- "span",
735
- {
736
- className: Z.indicator,
737
- "aria-hidden": "true",
738
- [o]: i.radioButtonIndicator,
739
- children: /* @__PURE__ */ t("span", { className: Z.dot })
740
- }
741
- ),
742
- s ? /* @__PURE__ */ t("span", { className: Z.label, [o]: i.radioButtonLabel, children: s }) : null
743
- ]
744
- }
745
- )
746
- );
747
- Na.displayName = "RadioButton";
748
- const Ia = "_slider_q8xxv_1", ka = "_disabled_q8xxv_11", xa = "_header_q8xxv_16", Sa = "_label_q8xxv_23", Wa = "_value_q8xxv_27", Ca = "_input_q8xxv_33", G = {
749
- slider: Ia,
750
- disabled: ka,
751
- header: xa,
752
- label: Sa,
753
- value: Wa,
754
- input: Ca
755
- }, Da = W(
756
- ({ className: r, label: s, showValue: a, disabled: e, value: n, defaultValue: l, ...d }, m) => {
757
- const y = n ?? l ?? "";
758
- return /* @__PURE__ */ S(
759
- "label",
760
- {
761
- [o]: i.slider,
762
- className: N(G.slider, e && G.disabled, r),
763
- children: [
764
- s || a ? /* @__PURE__ */ S("span", { className: G.header, [o]: i.sliderHeader, children: [
765
- s ? /* @__PURE__ */ t("span", { className: G.label, children: s }) : null,
766
- a ? /* @__PURE__ */ t("span", { className: G.value, children: y }) : null
767
- ] }) : null,
768
- /* @__PURE__ */ t(
769
- It,
770
- {
771
- ref: m,
772
- className: G.input,
773
- disabled: e,
774
- value: n,
775
- defaultValue: l,
776
- ...d
777
- }
778
- )
779
- ]
780
- }
781
- );
782
- }
783
- );
784
- Da.displayName = "Slider";
785
- const Ba = "_pillInput_1tv9n_1", Ta = "_disabled_1tv9n_26", Pa = "_pill_1tv9n_1", Ea = "_pillText_1tv9n_48", ja = "_pillRemove_1tv9n_55", Fa = "_input_1tv9n_75", A = {
786
- pillInput: Ba,
787
- disabled: Ta,
788
- pill: Pa,
789
- pillText: Ea,
790
- pillRemove: ja,
791
- input: Fa
792
- }, qa = W(
793
- ({
794
- className: r,
795
- values: s,
796
- onChange: a,
797
- placeholder: e,
798
- disabled: n,
799
- maxPills: l,
800
- delimiters: d = [],
801
- ...m
802
- }, y) => {
803
- const [_, C] = Q([]), [h, g] = Q(""), $ = z(null), p = s ?? _, D = b(
804
- (c) => {
805
- s || C(c), a?.(c);
806
- },
807
- [s, a]
808
- ), w = b(
809
- (c) => {
810
- const B = c.trim();
811
- B && (p.includes(B) || l != null && p.length >= l || (D([...p, B]), g("")));
812
- },
813
- [p, l, D]
814
- ), f = b(
815
- (c) => {
816
- D(p.filter((B, U) => U !== c)), $.current?.focus();
817
- },
818
- [p, D]
819
- ), u = b(
820
- (c) => {
821
- if (c.key === "Enter") {
822
- c.preventDefault(), w(h);
823
- return;
824
- }
825
- if (c.key === "Backspace" && h === "" && p.length > 0) {
826
- f(p.length - 1);
827
- return;
828
- }
829
- d.includes(c.key) && (c.preventDefault(), w(h));
830
- },
831
- [h, p, d, w, f]
832
- ), I = b(() => {
833
- n || $.current?.focus();
834
- }, [n]), k = b(
835
- (c) => {
836
- !n && (c.key === "Enter" || c.key === " ") && $.current?.focus();
837
- },
838
- [n]
839
- );
840
- return /* @__PURE__ */ S(
841
- "div",
842
- {
843
- [o]: i.pillInput,
844
- role: "toolbar",
845
- className: N(A.pillInput, n && A.disabled, r),
846
- onClick: I,
847
- onKeyDown: k,
848
- ...m,
849
- children: [
850
- p.map((c) => /* @__PURE__ */ S("span", { className: A.pill, children: [
851
- /* @__PURE__ */ t("span", { className: A.pillText, children: c }),
852
- n ? null : /* @__PURE__ */ t(
853
- "button",
854
- {
855
- type: "button",
856
- className: A.pillRemove,
857
- onClick: (B) => {
858
- B.stopPropagation(), f(p.indexOf(c));
859
- },
860
- "aria-label": `Remove ${c}`,
861
- tabIndex: -1,
862
- children: /* @__PURE__ */ t(lt, {})
863
- }
864
- )
865
- ] }, c)),
866
- /* @__PURE__ */ t(
867
- "input",
868
- {
869
- ref: at(y, $),
870
- className: A.input,
871
- type: "text",
872
- value: h,
873
- onChange: (c) => g(c.target.value),
874
- onKeyDown: u,
875
- placeholder: p.length === 0 ? e : void 0,
876
- disabled: n,
877
- "aria-label": m["aria-label"],
878
- "aria-labelledby": m["aria-labelledby"]
879
- }
880
- )
881
- ]
882
- }
883
- );
884
- }
885
- );
886
- qa.displayName = "PillInput";
887
- const Ra = "_dropZone_7sw02_1", Va = "_dragOver_7sw02_31", Ma = "_disabled_7sw02_35", Oa = "_input_7sw02_44", Ha = "_content_7sw02_53", La = "_icon_7sw02_61", Ka = "_text_7sw02_67", H = {
888
- dropZone: Ra,
889
- dragOver: Va,
890
- disabled: Ma,
891
- input: Oa,
892
- content: Ha,
893
- icon: La,
894
- text: Ka
895
- }, Za = W(
896
- ({ className: r, onChange: s, accept: a, multiple: e, disabled: n, children: l, ...d }, m) => {
897
- const [y, _] = Q(!1), C = z(null), h = b(
898
- (u) => {
899
- !u || u.length === 0 || s?.(Array.from(u));
900
- },
901
- [s]
902
- ), g = b(
903
- (u) => {
904
- u.preventDefault(), n || _(!0);
905
- },
906
- [n]
907
- ), $ = b((u) => {
908
- u.preventDefault(), _(!1);
909
- }, []), p = b(
910
- (u) => {
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 oe() {
1003
- return /* @__PURE__ */ t(_t, { "aria-hidden": "true", [o]: i.calendarIcon });
803
+ function ke() {
804
+ return /* @__PURE__ */ j(t, {
805
+ "aria-hidden": "true",
806
+ [n]: r.calendarIcon
807
+ });
1004
808
  }
1005
- function ce() {
1006
- return /* @__PURE__ */ t(ut, { "aria-hidden": "true" });
809
+ function Ae() {
810
+ return /* @__PURE__ */ j(e, { "aria-hidden": "true" });
1007
811
  }
1008
- function le() {
1009
- return /* @__PURE__ */ t(dt, { "aria-hidden": "true" });
812
+ function je() {
813
+ return /* @__PURE__ */ j(i, { "aria-hidden": "true" });
1010
814
  }
1011
- const de = W(
1012
- ({ className: r, variant: s, validationStatus: a, fullWidth: e, disabled: n, ...l }, d) => {
1013
- const m = ft(
1014
- () => ({
1015
- root: N(
1016
- se({ variant: s }),
1017
- a && ie[a],
1018
- n && j.disabled,
1019
- e && j.fullWidth,
1020
- r
1021
- ),
1022
- calendarOpen: j.calendarOpen,
1023
- input: j.field,
1024
- adornment: j.adornment,
1025
- popup: j.popup,
1026
- calendar: {
1027
- root: T.root,
1028
- header: T.header,
1029
- navButton: T.navButton,
1030
- title: T.title,
1031
- weekdayRow: T.weekdayRow,
1032
- weekday: T.weekday,
1033
- grid: T.grid,
1034
- row: T.row,
1035
- day: T.day,
1036
- dayToday: T.dayToday,
1037
- daySelected: T.daySelected,
1038
- dayDisabled: T.dayDisabled,
1039
- dayOutside: T.dayOutside,
1040
- footer: T.footer
1041
- }
1042
- }),
1043
- [r, s, a, e, n]
1044
- );
1045
- return /* @__PURE__ */ t(
1046
- kt,
1047
- {
1048
- ref: d,
1049
- disabled: n,
1050
- classNames: m,
1051
- dataAttributes: {
1052
- [o]: i.dateInput
1053
- },
1054
- renderCalendarIcon: oe,
1055
- renderCalendarNavPrev: ce,
1056
- renderCalendarNavNext: le,
1057
- ...l
1058
- }
1059
- );
1060
- }
1061
- );
1062
- de.displayName = "DateInput";
1063
- const ue = "_badge_11y0a_1", _e = "_variantPrimary_11y0a_17", pe = "_variantSecondary_11y0a_22", me = "_variantTertiary_11y0a_27", ve = "_sentimentDanger_11y0a_32", ye = "_sentimentSuccess_11y0a_37", he = "_sentimentWarning_11y0a_41", fe = "_sentimentInfo_11y0a_45", V = {
1064
- badge: ue,
1065
- variantPrimary: _e,
1066
- variantSecondary: pe,
1067
- variantTertiary: me,
1068
- sentimentDanger: ve,
1069
- sentimentSuccess: ye,
1070
- sentimentWarning: he,
1071
- sentimentInfo: fe
1072
- }, be = {
1073
- danger: V.sentimentDanger,
1074
- success: V.sentimentSuccess,
1075
- warning: V.sentimentWarning,
1076
- info: V.sentimentInfo
1077
- }, ge = L(V.badge, {
1078
- variants: {
1079
- variant: {
1080
- primary: V.variantPrimary,
1081
- secondary: V.variantSecondary,
1082
- tertiary: V.variantTertiary
1083
- }
1084
- },
1085
- defaultVariants: {
1086
- variant: "primary"
1087
- }
1088
- }), we = W(
1089
- ({ className: r, variant: s, sentiment: a, children: e, ...n }, l) => /* @__PURE__ */ t(
1090
- "span",
1091
- {
1092
- ref: l,
1093
- [o]: i.badge,
1094
- className: N(
1095
- ge({ variant: s }),
1096
- a && be[a],
1097
- r
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