@utk09/finra-ui 0.0.4 → 0.0.5

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