@purpurds/autocomplete 5.27.3 → 5.27.4

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.
@@ -1,10 +1,10 @@
1
- import { jsx as s, jsxs as O, Fragment as dt } from "react/jsx-runtime";
2
- import { forwardRef as A, Children as T, isValidElement as D, createElement as W, Fragment as _t, cloneElement as sr, useEffect as Or, useId as ft, useRef as J, useCallback as vt, useState as ar } from "react";
1
+ import { jsx as s, jsxs as A, Fragment as dt } from "react/jsx-runtime";
2
+ import { forwardRef as O, Children as D, isValidElement as T, createElement as W, cloneElement as sr, useEffect as Ar, useId as _t, Fragment as ft, useRef as Y, useCallback as vt, useState as ar } from "react";
3
3
  import "react-dom";
4
4
  function mt(t) {
5
5
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6
6
  }
7
- var Ar = { exports: {} };
7
+ var Or = { exports: {} };
8
8
  /*!
9
9
  Copyright (c) 2018 Jed Watson.
10
10
  Licensed under the MIT License (MIT), see
@@ -39,9 +39,9 @@ var Ar = { exports: {} };
39
39
  }
40
40
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
41
41
  })();
42
- })(Ar);
43
- var gt = Ar.exports;
44
- const xt = /* @__PURE__ */ mt(gt), ht = {
42
+ })(Or);
43
+ var gt = Or.exports;
44
+ const xt = /* @__PURE__ */ mt(gt), bt = {
45
45
  "purpur-icon": "_purpur-icon_8u1lq_1",
46
46
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
47
47
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -49,20 +49,20 @@ const xt = /* @__PURE__ */ mt(gt), ht = {
49
49
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
50
50
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
51
51
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
52
- }, bt = {
52
+ }, ht = {
53
53
  name: "chevron-down",
54
54
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',
55
55
  keywords: ["chevron-down"],
56
56
  category: "utility"
57
- }, Cr = (t) => /* @__PURE__ */ s(
58
- Pr,
57
+ }, Pr = (t) => /* @__PURE__ */ s(
58
+ Mr,
59
59
  {
60
60
  ...t,
61
- svg: bt
61
+ svg: ht
62
62
  }
63
63
  );
64
- Cr.displayName = "IconChevronDown";
65
- const yt = xt.bind(ht), mr = "purpur-icon", wt = "md", $t = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), jt = ({ content: t = "", title: a } = {}) => {
64
+ Pr.displayName = "IconChevronDown";
65
+ const yt = xt.bind(bt), mr = "purpur-icon", wt = "md", $t = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), jt = ({ content: t = "", title: a } = {}) => {
66
66
  const n = [
67
67
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
68
68
  { name: "fill", value: "currentColor" },
@@ -70,7 +70,7 @@ const yt = xt.bind(ht), mr = "purpur-icon", wt = "md", $t = (t) => t.filter((a)
70
70
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
71
71
  ], i = a ? `<title>${a}</title>` : "";
72
72
  return `<svg ${$t(n)}>${i}${t}</svg>`;
73
- }, St = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Pr = ({
73
+ }, St = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Mr = ({
74
74
  ["data-testid"]: t,
75
75
  svg: a,
76
76
  allyTitle: n,
@@ -93,11 +93,11 @@ const yt = xt.bind(ht), mr = "purpur-icon", wt = "md", $t = (t) => t.filter((a)
93
93
  }
94
94
  );
95
95
  };
96
- Pr.displayName = "Icon";
96
+ Mr.displayName = "Icon";
97
97
  function Nt(t) {
98
98
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
99
99
  }
100
- var qr = { exports: {} };
100
+ var Cr = { exports: {} };
101
101
  /*!
102
102
  Copyright (c) 2018 Jed Watson.
103
103
  Licensed under the MIT License (MIT), see
@@ -132,9 +132,9 @@ var qr = { exports: {} };
132
132
  }
133
133
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
134
134
  })();
135
- })(qr);
136
- var Ot = qr.exports;
137
- const kr = /* @__PURE__ */ Nt(Ot), Ir = {
135
+ })(Cr);
136
+ var At = Cr.exports;
137
+ const Ir = /* @__PURE__ */ Nt(At), Lr = {
138
138
  "purpur-listbox": "_purpur-listbox_qhoi7_1",
139
139
  "purpur-listbox-item": "_purpur-listbox-item_qhoi7_15",
140
140
  "purpur-listbox-item--hovered": "_purpur-listbox-item--hovered_qhoi7_29",
@@ -143,10 +143,10 @@ const kr = /* @__PURE__ */ Nt(Ot), Ir = {
143
143
  "purpur-listbox-item--disabled": "_purpur-listbox-item--disabled_qhoi7_44",
144
144
  "purpur-listbox-item__icon": "_purpur-listbox-item__icon_qhoi7_51"
145
145
  };
146
- function At(t) {
146
+ function Ot(t) {
147
147
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
148
148
  }
149
- var Mr = { exports: {} };
149
+ var qr = { exports: {} };
150
150
  /*!
151
151
  Copyright (c) 2018 Jed Watson.
152
152
  Licensed under the MIT License (MIT), see
@@ -181,9 +181,9 @@ var Mr = { exports: {} };
181
181
  }
182
182
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
183
183
  })();
184
- })(Mr);
185
- var Ct = Mr.exports;
186
- const Pt = /* @__PURE__ */ At(Ct), qt = {
184
+ })(qr);
185
+ var Pt = qr.exports;
186
+ const Mt = /* @__PURE__ */ Ot(Pt), Ct = {
187
187
  "purpur-icon": "_purpur-icon_8u1lq_1",
188
188
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
189
189
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -191,39 +191,39 @@ const Pt = /* @__PURE__ */ At(Ct), qt = {
191
191
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
192
192
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
193
193
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
194
- }, kt = {
194
+ }, It = {
195
195
  name: "checkmark",
196
196
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
197
197
  keywords: ["checkmark"],
198
198
  category: "utility"
199
- }, zr = (t) => /* @__PURE__ */ s(
200
- Br,
199
+ }, kr = (t) => /* @__PURE__ */ s(
200
+ zr,
201
201
  {
202
202
  ...t,
203
- svg: kt
203
+ svg: It
204
204
  }
205
205
  );
206
- zr.displayName = "IconCheckmark";
207
- const It = Pt.bind(qt), gr = "purpur-icon", Mt = "md", zt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Bt = ({ content: t = "", title: a } = {}) => {
206
+ kr.displayName = "IconCheckmark";
207
+ const Lt = Mt.bind(Ct), gr = "purpur-icon", qt = "md", kt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), zt = ({ content: t = "", title: a } = {}) => {
208
208
  const n = [
209
209
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
210
210
  { name: "fill", value: "currentColor" },
211
211
  { name: "viewBox", value: "0 0 24 24" },
212
212
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
213
213
  ], i = a ? `<title>${a}</title>` : "";
214
- return `<svg ${zt(n)}>${i}${t}</svg>`;
215
- }, Lt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Br = ({
214
+ return `<svg ${kt(n)}>${i}${t}</svg>`;
215
+ }, Bt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), zr = ({
216
216
  ["data-testid"]: t,
217
217
  svg: a,
218
218
  allyTitle: n,
219
219
  className: i,
220
- size: o = Mt,
220
+ size: o = qt,
221
221
  ...r
222
222
  }) => {
223
- const e = Bt({
224
- content: Lt(a.svg),
223
+ const e = zt({
224
+ content: Bt(a.svg),
225
225
  title: n
226
- }), u = It(i, gr, `${gr}--${o}`);
226
+ }), u = Lt(i, gr, `${gr}--${o}`);
227
227
  return /* @__PURE__ */ s(
228
228
  "span",
229
229
  {
@@ -235,11 +235,11 @@ const It = Pt.bind(qt), gr = "purpur-icon", Mt = "md", zt = (t) => t.filter((a)
235
235
  }
236
236
  );
237
237
  };
238
- Br.displayName = "Icon";
238
+ zr.displayName = "Icon";
239
239
  function Et(t) {
240
240
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
241
241
  }
242
- var Lr = { exports: {} };
242
+ var Br = { exports: {} };
243
243
  /*!
244
244
  Copyright (c) 2018 Jed Watson.
245
245
  Licensed under the MIT License (MIT), see
@@ -274,9 +274,9 @@ var Lr = { exports: {} };
274
274
  }
275
275
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
276
276
  })();
277
- })(Lr);
278
- var Rt = Lr.exports;
279
- const Tt = /* @__PURE__ */ Et(Rt), Z = {
277
+ })(Br);
278
+ var Rt = Br.exports;
279
+ const Dt = /* @__PURE__ */ Et(Rt), G = {
280
280
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
281
281
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
282
282
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -291,76 +291,87 @@ const Tt = /* @__PURE__ */ Et(Rt), Z = {
291
291
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
292
292
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
293
293
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
294
- }, Dt = {
295
- PARAGRAPH100: "paragraph-100"
296
- }, V = "purpur-paragraph", Er = ({
294
+ }, Tt = {
295
+ PARAGRAPH100: "paragraph-100",
296
+ PARAGRAPH100MEDIUM: "paragraph-100-medium",
297
+ PARAGRAPH100BOLD: "paragraph-100-bold",
298
+ PARAGRAPH200: "paragraph-200",
299
+ PREAMBLE100: "preamble-100",
300
+ PREAMBLE200: "preamble-200",
301
+ ADDITIONAL100: "additional-100",
302
+ ADDITIONAL100MEDIUM: "additional-100-medium",
303
+ OVERLINE100: "overline-100",
304
+ OVERLINE200: "overline-200"
305
+ }, H = "purpur-paragraph", Er = ({
297
306
  ["data-testid"]: t,
298
307
  children: a,
299
308
  className: n,
300
309
  disabled: i,
301
310
  enableHyphenation: o = !1,
302
311
  negative: r = !1,
303
- variant: e = Dt.PARAGRAPH100,
312
+ variant: e = Tt.PARAGRAPH100,
304
313
  ...u
305
314
  }) => {
306
- const f = Tt([
315
+ const f = Dt([
307
316
  n,
308
- Z[V],
309
- Z[`${V}--${e}`],
317
+ G[H],
318
+ G[`${H}--${e}`],
310
319
  {
311
- [Z[`${V}--hyphens`]]: o,
312
- [Z[`${V}--disabled`]]: i,
313
- [Z[`${V}--negative`]]: r
320
+ [G[`${H}--hyphens`]]: o,
321
+ [G[`${H}--disabled`]]: i,
322
+ [G[`${H}--negative`]]: r
314
323
  }
315
324
  ]);
316
325
  return /* @__PURE__ */ s("p", { ...u, className: f, "data-testid": t, children: a });
317
326
  };
318
327
  Er.displayName = "Paragraph";
319
- const xr = kr.bind(Ir), z = "purpur-listbox", lr = A(
328
+ const xr = Ir.bind(Lr), k = "purpur-listbox", lr = O(
320
329
  (t, a) => {
321
- const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...f } = t, b = xr(`${z}-item`, f.className, {
322
- [`${z}-item--highlighted`]: i,
323
- [`${z}-item--selected`]: r,
324
- [`${z}-item--hovered`]: o,
325
- [`${z}-item--disabled`]: n,
326
- [`${z}-item--noninteractive`]: u
330
+ const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...f } = t, h = xr(`${k}-item`, f.className, {
331
+ [`${k}-item--highlighted`]: i,
332
+ [`${k}-item--selected`]: r,
333
+ [`${k}-item--hovered`]: o,
334
+ [`${k}-item--disabled`]: n,
335
+ [`${k}-item--noninteractive`]: u
327
336
  });
328
- return /* @__PURE__ */ O(
337
+ return /* @__PURE__ */ A(
329
338
  "li",
330
339
  {
331
340
  ...f,
332
341
  ref: a,
333
- className: b,
342
+ className: h,
334
343
  "aria-selected": !!r,
335
344
  role: "option",
336
345
  "aria-disabled": !!n,
337
346
  children: [
338
347
  typeof e == "string" ? /* @__PURE__ */ s(Er, { children: e }) : e,
339
- r && /* @__PURE__ */ s(zr, { size: "xs", className: xr(`${z}-item__icon`) })
348
+ r && /* @__PURE__ */ s(kr, { size: "xs", className: xr(`${k}-item__icon`) })
340
349
  ]
341
350
  }
342
351
  );
343
352
  }
344
- ), Ft = (t) => D(t) && (t == null ? void 0 : t.type) === lr;
353
+ ), Ft = (t) => T(t) && (t == null ? void 0 : t.type) === lr;
345
354
  lr.displayName = "ListBoxItem";
346
- const Zt = kr.bind(Ir), Vt = "purpur-listbox", X = A(
355
+ const Gt = Ir.bind(Lr), Ht = "purpur-listbox", J = O(
347
356
  ({ children: t, ...a }, n) => /* @__PURE__ */ s(
348
357
  "ul",
349
358
  {
350
359
  ...a,
351
360
  ref: n,
352
- className: Zt(Vt, a.className),
361
+ className: Gt(Ht, a.className),
353
362
  role: "listbox",
354
- children: T.toArray(t).filter(Ft)
363
+ children: D.toArray(t).filter(Ft)
355
364
  }
356
365
  )
357
366
  );
358
- X.Item = lr;
359
- X.displayName = "ListBox";
360
- const Ht = {
367
+ J.Item = lr;
368
+ J.displayName = "ListBox";
369
+ const Vt = {
370
+ SM: "sm",
371
+ MD: "md",
361
372
  LG: "lg"
362
373
  };
363
- function Kt(t) {
374
+ function Zt(t) {
364
375
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
365
376
  }
366
377
  var Rr = { exports: {} };
@@ -399,10 +410,10 @@ var Rr = { exports: {} };
399
410
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
400
411
  })();
401
412
  })(Rr);
402
- var Yt = Rr.exports;
403
- const hr = /* @__PURE__ */ Kt(Yt), Gt = "_rotate_1xozj_1", Ut = "_dash_1xozj_1", H = {
413
+ var Xt = Rr.exports;
414
+ const br = /* @__PURE__ */ Zt(Xt), Kt = "_rotate_1xozj_1", Ut = "_dash_1xozj_1", V = {
404
415
  "purpur-spinner": "_purpur-spinner_1xozj_1",
405
- rotate: Gt,
416
+ rotate: Kt,
406
417
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
407
418
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
408
419
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
@@ -412,26 +423,30 @@ const hr = /* @__PURE__ */ Kt(Yt), Gt = "_rotate_1xozj_1", Ut = "_dash_1xozj_1",
412
423
  dash: Ut,
413
424
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
414
425
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
415
- }, K = "purpur-spinner", Jt = {
416
- SM: "sm"
417
- }, Xt = ({
426
+ }, Z = "purpur-spinner", Yt = {
427
+ XXS: "xxs",
428
+ XS: "xs",
429
+ SM: "sm",
430
+ MD: "md",
431
+ LG: "lg"
432
+ }, Jt = ({
418
433
  ["data-testid"]: t,
419
434
  disabled: a = !1,
420
435
  negative: n = !1,
421
- size: i = Jt.SM,
436
+ size: i = Yt.SM,
422
437
  ...o
423
438
  }) => /* @__PURE__ */ s(
424
439
  "div",
425
440
  {
426
- className: hr([H[K], H[`${K}--${i}`]]),
441
+ className: br([V[Z], V[`${Z}--${i}`]]),
427
442
  "data-testid": t,
428
443
  ...o,
429
444
  children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
430
445
  "circle",
431
446
  {
432
- className: hr(H[`${K}__circle`], {
433
- [H[`${K}__circle--disabled`]]: a,
434
- [H[`${K}__circle--negative`]]: n
447
+ className: br(V[`${Z}__circle`], {
448
+ [V[`${Z}__circle--disabled`]]: a,
449
+ [V[`${Z}__circle--negative`]]: n
435
450
  }),
436
451
  cx: "25",
437
452
  cy: "25",
@@ -443,7 +458,7 @@ const hr = /* @__PURE__ */ Kt(Yt), Gt = "_rotate_1xozj_1", Ut = "_dash_1xozj_1",
443
458
  function Wt(t) {
444
459
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
445
460
  }
446
- var Tr = { exports: {} };
461
+ var Dr = { exports: {} };
447
462
  /*!
448
463
  Copyright (c) 2018 Jed Watson.
449
464
  Licensed under the MIT License (MIT), see
@@ -478,8 +493,8 @@ var Tr = { exports: {} };
478
493
  }
479
494
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
480
495
  })();
481
- })(Tr);
482
- var Qt = Tr.exports;
496
+ })(Dr);
497
+ var Qt = Dr.exports;
483
498
  const re = /* @__PURE__ */ Wt(Qt), te = {
484
499
  "purpur-button": "_purpur-button_1acxn_1",
485
500
  "purpur-button--sm": "_purpur-button--sm_1acxn_33",
@@ -501,7 +516,7 @@ const re = /* @__PURE__ */ Wt(Qt), te = {
501
516
  "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
502
517
  "purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
503
518
  "purpur-button--text": "_purpur-button--text_1acxn_175"
504
- }, ee = re.bind(te), B = "purpur-button", ne = ({
519
+ }, ee = re.bind(te), z = "purpur-button", ne = ({
505
520
  children: t,
506
521
  className: a,
507
522
  ["data-testid"]: n,
@@ -511,7 +526,7 @@ const re = /* @__PURE__ */ Wt(Qt), te = {
511
526
  loading: e = !1,
512
527
  negative: u = !1,
513
528
  onClick: f,
514
- size: b = "md",
529
+ size: h = "md",
515
530
  variant: g,
516
531
  type: j = "button",
517
532
  ...x
@@ -520,39 +535,39 @@ const re = /* @__PURE__ */ Wt(Qt), te = {
520
535
  return null;
521
536
  const w = ee(
522
537
  [
523
- B,
524
- `${B}--${u ? `${g}-negative` : g}`,
525
- `${B}--${b}`
538
+ z,
539
+ `${z}--${u ? `${g}-negative` : g}`,
540
+ `${z}--${h}`
526
541
  ],
527
542
  {
528
- [`${B}--icon-only`]: r,
529
- [`${B}--negative`]: u,
530
- [`${B}--full-width`]: o,
531
- [`${B}--disabled`]: i || e
543
+ [`${z}--icon-only`]: r,
544
+ [`${z}--negative`]: u,
545
+ [`${z}--full-width`]: o,
546
+ [`${z}--disabled`]: i || e
532
547
  },
533
548
  a
534
- ), C = (d) => {
549
+ ), P = (d) => {
535
550
  i || e ? d.preventDefault() : f && f(d);
536
- }, P = !!x["aria-disabled"] || i || e;
537
- return /* @__PURE__ */ O(
551
+ }, M = !!x["aria-disabled"] || i || e;
552
+ return /* @__PURE__ */ A(
538
553
  "button",
539
554
  {
540
555
  className: w,
541
556
  "data-testid": n,
542
557
  type: j,
543
558
  ref: c,
544
- "aria-disabled": P,
545
- onClick: C,
559
+ "aria-disabled": M,
560
+ onClick: P,
546
561
  ...x,
547
562
  children: [
548
- e && /* @__PURE__ */ s(Xt, { size: b === Ht.LG ? "xs" : "xxs", negative: u, disabled: P }),
563
+ e && /* @__PURE__ */ s(Jt, { size: h === Vt.LG ? "xs" : "xxs", negative: u, disabled: M }),
549
564
  " ",
550
565
  t
551
566
  ]
552
567
  }
553
568
  );
554
- }, Dr = A(ne);
555
- Dr.displayName = "Button";
569
+ }, Tr = O(ne);
570
+ Tr.displayName = "Button";
556
571
  function ue(t) {
557
572
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
558
573
  }
@@ -606,7 +621,7 @@ const ie = /* @__PURE__ */ ue(ae), oe = {
606
621
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
607
622
  keywords: ["error-filled"],
608
623
  category: "status"
609
- }, se = ie.bind(oe), br = "purpur-icon", le = "md", ce = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), de = ({ content: t = "", title: a } = {}) => {
624
+ }, se = ie.bind(oe), hr = "purpur-icon", le = "md", ce = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), de = ({ content: t = "", title: a } = {}) => {
610
625
  const n = [
611
626
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
612
627
  { name: "fill", value: "currentColor" },
@@ -614,7 +629,7 @@ const ie = /* @__PURE__ */ ue(ae), oe = {
614
629
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
615
630
  ], i = a ? `<title>${a}</title>` : "";
616
631
  return `<svg ${ce(n)}>${i}${t}</svg>`;
617
- }, _e = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Zr = ({
632
+ }, _e = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({
618
633
  ["data-testid"]: t,
619
634
  svg: a,
620
635
  allyTitle: n,
@@ -625,7 +640,7 @@ const ie = /* @__PURE__ */ ue(ae), oe = {
625
640
  const e = de({
626
641
  content: _e(a.svg),
627
642
  title: n
628
- }), u = se(i, br, `${br}--${o}`);
643
+ }), u = se(i, hr, `${hr}--${o}`);
629
644
  return /* @__PURE__ */ s(
630
645
  "span",
631
646
  {
@@ -637,11 +652,11 @@ const ie = /* @__PURE__ */ ue(ae), oe = {
637
652
  }
638
653
  );
639
654
  };
640
- Zr.displayName = "Icon";
655
+ Gr.displayName = "Icon";
641
656
  function fe(t) {
642
657
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
643
658
  }
644
- var Vr = { exports: {} };
659
+ var Hr = { exports: {} };
645
660
  /*!
646
661
  Copyright (c) 2018 Jed Watson.
647
662
  Licensed under the MIT License (MIT), see
@@ -676,8 +691,8 @@ var Vr = { exports: {} };
676
691
  }
677
692
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
678
693
  })();
679
- })(Vr);
680
- var ve = Vr.exports;
694
+ })(Hr);
695
+ var ve = Hr.exports;
681
696
  const me = /* @__PURE__ */ fe(ve), yr = {
682
697
  "purpur-field-error-text": "_purpur-field-error-text_1u768_1",
683
698
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"
@@ -687,7 +702,7 @@ const me = /* @__PURE__ */ fe(ve), yr = {
687
702
  className: n,
688
703
  relevant: i = "additions text",
689
704
  ...o
690
- }) => /* @__PURE__ */ O(
705
+ }) => /* @__PURE__ */ A(
691
706
  "div",
692
707
  {
693
708
  className: me([n, yr[wr]]),
@@ -696,7 +711,7 @@ const me = /* @__PURE__ */ fe(ve), yr = {
696
711
  "aria-relevant": i,
697
712
  ...o,
698
713
  children: [
699
- /* @__PURE__ */ s(Zr, { svg: pe, size: "xs", className: yr[`${wr}__icon`] }),
714
+ /* @__PURE__ */ s(Gr, { svg: pe, size: "xs", className: yr[`${wr}__icon`] }),
700
715
  a
701
716
  ]
702
717
  }
@@ -704,7 +719,7 @@ const me = /* @__PURE__ */ fe(ve), yr = {
704
719
  function xe(t) {
705
720
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
706
721
  }
707
- var Hr = { exports: {} };
722
+ var Vr = { exports: {} };
708
723
  /*!
709
724
  Copyright (c) 2018 Jed Watson.
710
725
  Licensed under the MIT License (MIT), see
@@ -739,9 +754,9 @@ var Hr = { exports: {} };
739
754
  }
740
755
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
741
756
  })();
742
- })(Hr);
743
- var he = Hr.exports;
744
- const be = /* @__PURE__ */ xe(he), $r = {
757
+ })(Vr);
758
+ var be = Vr.exports;
759
+ const he = /* @__PURE__ */ xe(be), $r = {
745
760
  "purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
746
761
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
747
762
  }, jr = "purpur-field-helper-text", ye = ({
@@ -752,7 +767,7 @@ const be = /* @__PURE__ */ xe(he), $r = {
752
767
  id: o,
753
768
  ...r
754
769
  }) => {
755
- const e = be([
770
+ const e = he([
756
771
  n,
757
772
  $r[jr],
758
773
  {
@@ -764,7 +779,7 @@ const be = /* @__PURE__ */ xe(he), $r = {
764
779
  function we(t) {
765
780
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
766
781
  }
767
- var Kr = { exports: {} };
782
+ var Zr = { exports: {} };
768
783
  /*!
769
784
  Copyright (c) 2018 Jed Watson.
770
785
  Licensed under the MIT License (MIT), see
@@ -799,8 +814,8 @@ var Kr = { exports: {} };
799
814
  }
800
815
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
801
816
  })();
802
- })(Kr);
803
- var $e = Kr.exports;
817
+ })(Zr);
818
+ var $e = Zr.exports;
804
819
  const je = /* @__PURE__ */ we($e), Se = {
805
820
  "purpur-icon": "_purpur-icon_8u1lq_1",
806
821
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
@@ -814,47 +829,47 @@ const je = /* @__PURE__ */ we($e), Se = {
814
829
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
815
830
  keywords: ["check-circle-filled"],
816
831
  category: "status"
817
- }, Oe = {
832
+ }, Ae = {
818
833
  name: "close",
819
834
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
820
835
  keywords: ["close"],
821
836
  category: "utility"
822
- }, Yr = (t) => /* @__PURE__ */ s(
837
+ }, Xr = (t) => /* @__PURE__ */ s(
823
838
  cr,
824
839
  {
825
840
  ...t,
826
841
  svg: Ne
827
842
  }
828
843
  );
829
- Yr.displayName = "IconCheckCircleFilled";
830
- const Gr = (t) => /* @__PURE__ */ s(
844
+ Xr.displayName = "IconCheckCircleFilled";
845
+ const Kr = (t) => /* @__PURE__ */ s(
831
846
  cr,
832
847
  {
833
848
  ...t,
834
- svg: Oe
849
+ svg: Ae
835
850
  }
836
851
  );
837
- Gr.displayName = "IconClose";
838
- const Ae = je.bind(Se), Sr = "purpur-icon", Ce = "md", Pe = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), qe = ({ content: t = "", title: a } = {}) => {
852
+ Kr.displayName = "IconClose";
853
+ const Oe = je.bind(Se), Sr = "purpur-icon", Pe = "md", Me = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Ce = ({ content: t = "", title: a } = {}) => {
839
854
  const n = [
840
855
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
841
856
  { name: "fill", value: "currentColor" },
842
857
  { name: "viewBox", value: "0 0 24 24" },
843
858
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
844
859
  ], i = a ? `<title>${a}</title>` : "";
845
- return `<svg ${Pe(n)}>${i}${t}</svg>`;
846
- }, ke = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), cr = ({
860
+ return `<svg ${Me(n)}>${i}${t}</svg>`;
861
+ }, Ie = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), cr = ({
847
862
  ["data-testid"]: t,
848
863
  svg: a,
849
864
  allyTitle: n,
850
865
  className: i,
851
- size: o = Ce,
866
+ size: o = Pe,
852
867
  ...r
853
868
  }) => {
854
- const e = qe({
855
- content: ke(a.svg),
869
+ const e = Ce({
870
+ content: Ie(a.svg),
856
871
  title: n
857
- }), u = Ae(i, Sr, `${Sr}--${o}`);
872
+ }), u = Oe(i, Sr, `${Sr}--${o}`);
858
873
  return /* @__PURE__ */ s(
859
874
  "span",
860
875
  {
@@ -876,40 +891,40 @@ function F() {
876
891
  return t;
877
892
  }, F.apply(null, arguments);
878
893
  }
879
- function Ie(t, a) {
894
+ function Le(t, a) {
880
895
  typeof t == "function" ? t(a) : t != null && (t.current = a);
881
896
  }
882
- function Me(...t) {
897
+ function qe(...t) {
883
898
  return (a) => t.forEach(
884
- (n) => Ie(n, a)
899
+ (n) => Le(n, a)
885
900
  );
886
901
  }
887
- const Ur = /* @__PURE__ */ A((t, a) => {
888
- const { children: n, ...i } = t, o = T.toArray(n), r = o.find(Be);
902
+ const Ur = /* @__PURE__ */ O((t, a) => {
903
+ const { children: n, ...i } = t, o = D.toArray(n), r = o.find(ze);
889
904
  if (r) {
890
- const e = r.props.children, u = o.map((f) => f === r ? T.count(e) > 1 ? T.only(null) : /* @__PURE__ */ D(e) ? e.props.children : null : f);
905
+ const e = r.props.children, u = o.map((f) => f === r ? D.count(e) > 1 ? D.only(null) : /* @__PURE__ */ T(e) ? e.props.children : null : f);
891
906
  return /* @__PURE__ */ W(pr, F({}, i, {
892
907
  ref: a
893
- }), /* @__PURE__ */ D(e) ? /* @__PURE__ */ sr(e, void 0, u) : null);
908
+ }), /* @__PURE__ */ T(e) ? /* @__PURE__ */ sr(e, void 0, u) : null);
894
909
  }
895
910
  return /* @__PURE__ */ W(pr, F({}, i, {
896
911
  ref: a
897
912
  }), n);
898
913
  });
899
914
  Ur.displayName = "Slot";
900
- const pr = /* @__PURE__ */ A((t, a) => {
915
+ const pr = /* @__PURE__ */ O((t, a) => {
901
916
  const { children: n, ...i } = t;
902
- return /* @__PURE__ */ D(n) ? /* @__PURE__ */ sr(n, {
903
- ...Le(i, n.props),
904
- ref: a ? Me(a, n.ref) : n.ref
905
- }) : T.count(n) > 1 ? T.only(null) : null;
917
+ return /* @__PURE__ */ T(n) ? /* @__PURE__ */ sr(n, {
918
+ ...Be(i, n.props),
919
+ ref: a ? qe(a, n.ref) : n.ref
920
+ }) : D.count(n) > 1 ? D.only(null) : null;
906
921
  });
907
922
  pr.displayName = "SlotClone";
908
- const ze = ({ children: t }) => /* @__PURE__ */ W(_t, null, t);
909
- function Be(t) {
910
- return /* @__PURE__ */ D(t) && t.type === ze;
923
+ const ke = ({ children: t }) => /* @__PURE__ */ W(ft, null, t);
924
+ function ze(t) {
925
+ return /* @__PURE__ */ T(t) && t.type === ke;
911
926
  }
912
- function Le(t, a) {
927
+ function Be(t, a) {
913
928
  const n = {
914
929
  ...a
915
930
  };
@@ -948,9 +963,9 @@ const Ee = [
948
963
  "svg",
949
964
  "ul"
950
965
  ], Re = Ee.reduce((t, a) => {
951
- const n = /* @__PURE__ */ A((i, o) => {
966
+ const n = /* @__PURE__ */ O((i, o) => {
952
967
  const { asChild: r, ...e } = i, u = r ? Ur : a;
953
- return Or(() => {
968
+ return Ar(() => {
954
969
  window[Symbol.for("radix-ui")] = !0;
955
970
  }, []), /* @__PURE__ */ W(u, F({}, e, {
956
971
  ref: o
@@ -960,17 +975,17 @@ const Ee = [
960
975
  ...t,
961
976
  [a]: n
962
977
  };
963
- }, {}), Te = /* @__PURE__ */ A((t, a) => /* @__PURE__ */ W(Re.label, F({}, t, {
978
+ }, {}), De = /* @__PURE__ */ O((t, a) => /* @__PURE__ */ W(Re.label, F({}, t, {
964
979
  ref: a,
965
980
  onMouseDown: (n) => {
966
981
  var i;
967
982
  (i = t.onMouseDown) === null || i === void 0 || i.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault();
968
983
  }
969
- }))), De = Te;
984
+ }))), Te = De;
970
985
  function Fe(t) {
971
986
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
972
987
  }
973
- var Jr = { exports: {} };
988
+ var Yr = { exports: {} };
974
989
  /*!
975
990
  Copyright (c) 2018 Jed Watson.
976
991
  Licensed under the MIT License (MIT), see
@@ -1005,13 +1020,13 @@ var Jr = { exports: {} };
1005
1020
  }
1006
1021
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1007
1022
  })();
1008
- })(Jr);
1009
- var Ze = Jr.exports;
1010
- const Ve = /* @__PURE__ */ Fe(Ze), ir = {
1023
+ })(Yr);
1024
+ var Ge = Yr.exports;
1025
+ const He = /* @__PURE__ */ Fe(Ge), ir = {
1011
1026
  "purpur-label": "_purpur-label_12cfi_1",
1012
1027
  "purpur-label--negative": "_purpur-label--negative_12cfi_9",
1013
1028
  "purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
1014
- }, or = "purpur-label", He = ({
1029
+ }, or = "purpur-label", Ve = ({
1015
1030
  children: t,
1016
1031
  className: a,
1017
1032
  htmlFor: n,
@@ -1020,7 +1035,7 @@ const Ve = /* @__PURE__ */ Fe(Ze), ir = {
1020
1035
  negative: r = !1,
1021
1036
  ...e
1022
1037
  }) => {
1023
- const u = Ve([
1038
+ const u = He([
1024
1039
  a,
1025
1040
  ir[or],
1026
1041
  {
@@ -1028,12 +1043,12 @@ const Ve = /* @__PURE__ */ Fe(Ze), ir = {
1028
1043
  [ir[`${or}--negative`]]: r
1029
1044
  }
1030
1045
  ]);
1031
- return /* @__PURE__ */ s(De, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
1046
+ return /* @__PURE__ */ s(Te, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
1032
1047
  };
1033
- function Ke(t) {
1048
+ function Ze(t) {
1034
1049
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1035
1050
  }
1036
- var Xr = { exports: {} };
1051
+ var Jr = { exports: {} };
1037
1052
  /*!
1038
1053
  Copyright (c) 2018 Jed Watson.
1039
1054
  Licensed under the MIT License (MIT), see
@@ -1068,11 +1083,11 @@ var Xr = { exports: {} };
1068
1083
  }
1069
1084
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1070
1085
  })();
1071
- })(Xr);
1072
- var Ye = Xr.exports;
1073
- const Nr = /* @__PURE__ */ Ke(Ye), Ge = "_rotate_1xozj_1", Ue = "_dash_1xozj_1", Y = {
1086
+ })(Jr);
1087
+ var Xe = Jr.exports;
1088
+ const Nr = /* @__PURE__ */ Ze(Xe), Ke = "_rotate_1xozj_1", Ue = "_dash_1xozj_1", X = {
1074
1089
  "purpur-spinner": "_purpur-spinner_1xozj_1",
1075
- rotate: Ge,
1090
+ rotate: Ke,
1076
1091
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
1077
1092
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
1078
1093
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
@@ -1082,26 +1097,30 @@ const Nr = /* @__PURE__ */ Ke(Ye), Ge = "_rotate_1xozj_1", Ue = "_dash_1xozj_1",
1082
1097
  dash: Ue,
1083
1098
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
1084
1099
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
1085
- }, G = "purpur-spinner", Je = {
1086
- SM: "sm"
1087
- }, Xe = ({
1100
+ }, K = "purpur-spinner", Ye = {
1101
+ XXS: "xxs",
1102
+ XS: "xs",
1103
+ SM: "sm",
1104
+ MD: "md",
1105
+ LG: "lg"
1106
+ }, Je = ({
1088
1107
  ["data-testid"]: t,
1089
1108
  disabled: a = !1,
1090
1109
  negative: n = !1,
1091
- size: i = Je.SM,
1110
+ size: i = Ye.SM,
1092
1111
  ...o
1093
1112
  }) => /* @__PURE__ */ s(
1094
1113
  "div",
1095
1114
  {
1096
- className: Nr([Y[G], Y[`${G}--${i}`]]),
1115
+ className: Nr([X[K], X[`${K}--${i}`]]),
1097
1116
  "data-testid": t,
1098
1117
  ...o,
1099
1118
  children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
1100
1119
  "circle",
1101
1120
  {
1102
- className: Nr(Y[`${G}__circle`], {
1103
- [Y[`${G}__circle--disabled`]]: a,
1104
- [Y[`${G}__circle--negative`]]: n
1121
+ className: Nr(X[`${K}__circle`], {
1122
+ [X[`${K}__circle--disabled`]]: a,
1123
+ [X[`${K}__circle--negative`]]: n
1105
1124
  }),
1106
1125
  cx: "25",
1107
1126
  cy: "25",
@@ -1167,7 +1186,7 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1167
1186
  "purpur-text-field__input--error": "_purpur-text-field__input--error_nj9f4_94",
1168
1187
  "purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_nj9f4_106",
1169
1188
  "purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_nj9f4_111"
1170
- }, en = (t) => J(t), N = rn.bind(tn), m = "purpur-text-field", nn = ({
1189
+ }, en = (t) => Y(t), N = rn.bind(tn), m = "purpur-text-field", nn = ({
1171
1190
  ["data-testid"]: t,
1172
1191
  className: a,
1173
1192
  clearButtonAllyLabel: n,
@@ -1177,21 +1196,21 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1177
1196
  errorText: e,
1178
1197
  helperText: u,
1179
1198
  label: f,
1180
- loading: b = !1,
1199
+ loading: h = !1,
1181
1200
  onClear: g,
1182
1201
  startAdornment: j,
1183
1202
  valid: x = !1,
1184
1203
  ...c
1185
1204
  }, w) => {
1186
- var C;
1187
- const P = ft(), d = c.id ?? P, l = (v) => t ? `${t}-${v}` : void 0, h = x && !e, $ = u ? `${d}-helper-text` : void 0, L = [j].filter((v) => !!v), E = (typeof c.value == "number" ? c.value !== void 0 : (C = c.value) == null ? void 0 : C.length) && !c.disabled && !c.readOnly && !b && g && n, k = en(null), Q = (v) => {
1188
- k.current = v, typeof w == "function" ? w(v) : w && (w.current = v);
1205
+ var P;
1206
+ const M = _t(), d = c.id ?? M, l = (v) => t ? `${t}-${v}` : void 0, b = x && !e, $ = u ? `${d}-helper-text` : void 0, B = [j].filter((v) => !!v), E = (typeof c.value == "number" ? c.value !== void 0 : (P = c.value) == null ? void 0 : P.length) && !c.disabled && !c.readOnly && !h && g && n, I = en(null), Q = (v) => {
1207
+ I.current = v, typeof w == "function" ? w(v) : w && (w.current = v);
1189
1208
  }, rr = () => {
1190
1209
  var v;
1191
- g == null || g(), (v = k.current) == null || v.focus();
1192
- }, I = [
1193
- b && /* @__PURE__ */ s(
1194
- Xe,
1210
+ g == null || g(), (v = I.current) == null || v.focus();
1211
+ }, L = [
1212
+ h && /* @__PURE__ */ s(
1213
+ Je,
1195
1214
  {
1196
1215
  disabled: c.disabled,
1197
1216
  size: "xs",
@@ -1200,7 +1219,7 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1200
1219
  "spinner"
1201
1220
  ),
1202
1221
  E && /* @__PURE__ */ s(
1203
- Dr,
1222
+ Tr,
1204
1223
  {
1205
1224
  variant: "tertiary-purple",
1206
1225
  onClick: rr,
@@ -1208,12 +1227,12 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1208
1227
  "aria-label": n ?? "",
1209
1228
  "data-testid": l("clear-button"),
1210
1229
  tabIndex: -1,
1211
- children: /* @__PURE__ */ s(Gr, { size: "xs" })
1230
+ children: /* @__PURE__ */ s(Kr, { size: "xs" })
1212
1231
  },
1213
1232
  "clear-button"
1214
1233
  ),
1215
- h && /* @__PURE__ */ s(
1216
- Yr,
1234
+ b && /* @__PURE__ */ s(
1235
+ Xr,
1217
1236
  {
1218
1237
  "data-testid": l("valid-icon"),
1219
1238
  className: N(`${m}__valid-icon`)
@@ -1223,16 +1242,16 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1223
1242
  ].filter((v) => !!v), R = N([
1224
1243
  `${m}__input-container`,
1225
1244
  {
1226
- [`${m}__input-container--start-adornment`]: L.length,
1227
- [`${m}__input-container--end-adornment`]: I.length || r,
1245
+ [`${m}__input-container--start-adornment`]: B.length,
1246
+ [`${m}__input-container--end-adornment`]: L.length || r,
1228
1247
  [`${m}__input-container--disabled`]: c.disabled,
1229
1248
  [`${m}__input-container--has-clear-button`]: E,
1230
1249
  [`${m}__input-container--readonly`]: c.readOnly && !c.disabled
1231
1250
  }
1232
1251
  ]);
1233
- return /* @__PURE__ */ O("div", { className: N(a, m), children: [
1252
+ return /* @__PURE__ */ A("div", { className: N(a, m), children: [
1234
1253
  f && /* @__PURE__ */ s(
1235
- He,
1254
+ Ve,
1236
1255
  {
1237
1256
  htmlFor: d,
1238
1257
  className: N(`${m}__label`),
@@ -1241,15 +1260,15 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1241
1260
  children: `${c.required ? "* " : ""}${f}`
1242
1261
  }
1243
1262
  ),
1244
- /* @__PURE__ */ O("div", { className: N(`${m}__field-row`), children: [
1263
+ /* @__PURE__ */ A("div", { className: N(`${m}__field-row`), children: [
1245
1264
  !!i && i,
1246
- /* @__PURE__ */ O("div", { className: R, children: [
1247
- !!L.length && /* @__PURE__ */ s(
1265
+ /* @__PURE__ */ A("div", { className: R, children: [
1266
+ !!B.length && /* @__PURE__ */ s(
1248
1267
  "div",
1249
1268
  {
1250
1269
  "data-testid": l("start-adornments"),
1251
1270
  className: N(`${m}__adornment-container`),
1252
- children: L
1271
+ children: B
1253
1272
  }
1254
1273
  ),
1255
1274
  /* @__PURE__ */ s(
@@ -1264,20 +1283,20 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1264
1283
  className: N([
1265
1284
  `${m}__input`,
1266
1285
  {
1267
- [`${m}__input--valid`]: h,
1286
+ [`${m}__input--valid`]: b,
1268
1287
  [`${m}__input--error`]: !!e
1269
1288
  }
1270
1289
  ])
1271
1290
  }
1272
1291
  ),
1273
1292
  /* @__PURE__ */ s("div", { className: N(`${m}__frame`) }),
1274
- (!!I.length || r) && /* @__PURE__ */ O(
1293
+ (!!L.length || r) && /* @__PURE__ */ A(
1275
1294
  "div",
1276
1295
  {
1277
1296
  "data-testid": l("end-adornments"),
1278
1297
  className: N(`${m}__adornment-container`),
1279
1298
  children: [
1280
- I,
1299
+ L,
1281
1300
  r
1282
1301
  ]
1283
1302
  }
@@ -1288,9 +1307,9 @@ const rn = /* @__PURE__ */ We(Qe), tn = {
1288
1307
  $ && /* @__PURE__ */ s(ye, { "data-testid": l("helper-text"), id: $, children: u }),
1289
1308
  e && /* @__PURE__ */ s(ge, { "data-testid": l("error-text"), children: e })
1290
1309
  ] });
1291
- }, Qr = A(nn);
1310
+ }, Qr = O(nn);
1292
1311
  Qr.displayName = "TextField";
1293
- const un = (t) => D(t) && t.type.displayName === Qr.displayName;
1312
+ const un = (t) => T(t) && t.type.displayName === Qr.displayName;
1294
1313
  function an(t) {
1295
1314
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1296
1315
  }
@@ -1337,14 +1356,14 @@ const pn = /* @__PURE__ */ an(on), sn = {
1337
1356
  "purpur-autocomplete__chevron-button": "_purpur-autocomplete__chevron-button_1u8x6_9",
1338
1357
  "purpur-autocomplete__chevron-icon": "_purpur-autocomplete__chevron-icon_1u8x6_15",
1339
1358
  "purpur-autocomplete__chevron-icon--up": "_purpur-autocomplete__chevron-icon--up_1u8x6_19"
1340
- }, ln = (t) => J(t), cn = (t, a) => {
1359
+ }, ln = (t) => Y(t), cn = (t, a) => {
1341
1360
  const n = vt(
1342
1361
  (i) => {
1343
1362
  t && !t.contains(i.target) && a();
1344
1363
  },
1345
1364
  [a, t]
1346
1365
  );
1347
- Or(() => (document.addEventListener("mousedown", n), () => {
1366
+ Ar(() => (document.addEventListener("mousedown", n), () => {
1348
1367
  document.removeEventListener("mousedown", n);
1349
1368
  }), [n]);
1350
1369
  }, dn = ({
@@ -1357,26 +1376,26 @@ const pn = /* @__PURE__ */ an(on), sn = {
1357
1376
  listboxLabel: e,
1358
1377
  listboxMaxHeight: u,
1359
1378
  onInputChange: f,
1360
- openOnFocus: b,
1379
+ openOnFocus: h,
1361
1380
  noOptionsText: g,
1362
1381
  onSelect: j,
1363
1382
  options: x,
1364
1383
  selectedOption: c,
1365
1384
  ["data-testid"]: w
1366
1385
  }) => {
1367
- const [C, P] = ar(
1386
+ const [P, M] = ar(
1368
1387
  ((typeof i == "string" ? i : n) || (c == null ? void 0 : c.label)) ?? ""
1369
- ), d = typeof i == "string" ? i : C, [l, h] = ar(a ? x[0] : void 0), $ = J(null), L = ln(null), E = J(null), k = J({}), [Q, rr] = ar(!1);
1370
- function I(p) {
1388
+ ), d = typeof i == "string" ? i : P, [l, b] = ar(a ? x[0] : void 0), $ = Y(null), B = ln(null), E = Y(null), I = Y({}), [Q, rr] = ar(!1);
1389
+ function L(p) {
1371
1390
  return w ? `${w}-${p}` : void 0;
1372
1391
  }
1373
1392
  const R = () => {
1374
- rr(!1), h(void 0);
1393
+ rr(!1), b(void 0);
1375
1394
  };
1376
- cn(L.current, R);
1395
+ cn(B.current, R);
1377
1396
  const v = ({ eventType: p }) => {
1378
1397
  rr(!0), c && requestAnimationFrame(() => {
1379
- h({ ...c, isSetByClickEvent: p === "CLICK" }), nr(k.current[c.id]);
1398
+ b({ ...c, isSetByClickEvent: p === "CLICK" }), nr(I.current[c.id]);
1380
1399
  });
1381
1400
  }, tt = (p) => {
1382
1401
  if (o)
@@ -1389,8 +1408,8 @@ const pn = /* @__PURE__ */ an(on), sn = {
1389
1408
  (S) => (y.value || y.label).toUpperCase().includes(S)
1390
1409
  )
1391
1410
  );
1392
- }, dr = (p) => c && (c == null ? void 0 : c.label) === p ? x : tt(p), q = dr(d), er = (p) => {
1393
- f == null || f(p), P(p);
1411
+ }, dr = (p) => c && (c == null ? void 0 : c.label) === p ? x : tt(p), C = dr(d), er = (p) => {
1412
+ f == null || f(p), M(p);
1394
1413
  }, nr = (p) => {
1395
1414
  var _;
1396
1415
  if (p) {
@@ -1401,12 +1420,12 @@ const pn = /* @__PURE__ */ an(on), sn = {
1401
1420
  var _;
1402
1421
  p && ((_ = $.current) == null || _.focus(), er(p.label), j == null || j(p)), R();
1403
1422
  }, et = (p) => {
1404
- const _ = a && !l ? 0 : q.findIndex((S) => S && (l == null ? void 0 : l.id) === S.id), y = q.length;
1405
- return p === "ArrowDown" ? q[(_ ?? -1) + 1] || q[0] : q[(_ ?? y) - 1] || q[y - 1];
1406
- }, M = Q && (!!q.length || !!g), nt = (p) => {
1407
- !M && v({ eventType: "KEYBOARD" });
1423
+ const _ = a && !l ? 0 : C.findIndex((S) => S && (l == null ? void 0 : l.id) === S.id), y = C.length;
1424
+ return p === "ArrowDown" ? C[(_ ?? -1) + 1] || C[0] : C[(_ ?? y) - 1] || C[y - 1];
1425
+ }, q = Q && (!!C.length || !!g), nt = (p) => {
1426
+ !q && v({ eventType: "KEYBOARD" });
1408
1427
  const _ = et(p);
1409
- h(_), _ && nr(k.current[_.id]);
1428
+ b(_), _ && nr(I.current[_.id]);
1410
1429
  }, ut = (p) => {
1411
1430
  switch (p.key) {
1412
1431
  case "ArrowUp":
@@ -1415,7 +1434,7 @@ const pn = /* @__PURE__ */ an(on), sn = {
1415
1434
  break;
1416
1435
  case "Enter": {
1417
1436
  const _ = l || (a ? x[0] : void 0);
1418
- M && _r(_), !M && v({ eventType: "KEYBOARD" });
1437
+ q && _r(_), !q && v({ eventType: "KEYBOARD" });
1419
1438
  break;
1420
1439
  }
1421
1440
  case "Escape":
@@ -1425,12 +1444,12 @@ const pn = /* @__PURE__ */ an(on), sn = {
1425
1444
  }
1426
1445
  }, at = (p) => {
1427
1446
  const _ = dr(p.target.value);
1428
- er(p.target.value), h(void 0), !M && v({ eventType: "KEYBOARD" }), a && _[0] && nr(k.current[_[0].id]);
1447
+ er(p.target.value), b(void 0), !q && v({ eventType: "KEYBOARD" }), a && _[0] && nr(I.current[_[0].id]);
1429
1448
  }, it = () => {
1430
- M ? R() : v({ eventType: "CLICK" });
1449
+ q ? R() : v({ eventType: "CLICK" });
1431
1450
  }, ot = () => {
1432
1451
  var p;
1433
- !Q && b && v({ eventType: "KEYBOARD" }), (p = $.current) == null || p.select();
1452
+ !Q && h && v({ eventType: "KEYBOARD" }), (p = $.current) == null || p.select();
1434
1453
  }, pt = () => {
1435
1454
  t && setTimeout(() => {
1436
1455
  var p, _;
@@ -1440,21 +1459,21 @@ const pn = /* @__PURE__ */ an(on), sn = {
1440
1459
  maxHeight: typeof u == "number" ? `${u}px` : u
1441
1460
  }, fr = {
1442
1461
  "aria-label": e,
1443
- "aria-expanded": M,
1444
- "data-testid": I("listbox"),
1462
+ "aria-expanded": q,
1463
+ "data-testid": L("listbox"),
1445
1464
  id: `${r}-listbox`,
1446
1465
  ref: E,
1447
- onMouseLeave: () => h(void 0),
1466
+ onMouseLeave: () => b(void 0),
1448
1467
  style: u ? st : void 0
1449
1468
  }, vr = (p) => `${r}-listbox-item-${p.id}`, lt = (p, _) => {
1450
- const y = () => p.id !== (l == null ? void 0 : l.id) && h({ ...p, isSetByClickEvent: !0 }), S = (p.id === (l == null ? void 0 : l.id) || !!a && !l && _ === 0) && !(l != null && l.isSetByClickEvent);
1469
+ const y = () => p.id !== (l == null ? void 0 : l.id) && b({ ...p, isSetByClickEvent: !0 }), S = (p.id === (l == null ? void 0 : l.id) || !!a && !l && _ === 0) && !(l != null && l.isSetByClickEvent);
1451
1470
  return {
1452
- "data-testid": I(`listbox-item-${p.id}`),
1471
+ "data-testid": L(`listbox-item-${p.id}`),
1453
1472
  id: vr(p),
1454
1473
  key: p.id,
1455
1474
  onMouseMove: y,
1456
1475
  onMouseUp: () => _r(p),
1457
- ref: (ur) => ur && (k.current[p.id] = ur),
1476
+ ref: (ur) => ur && (I.current[p.id] = ur),
1458
1477
  tabIndex: -1,
1459
1478
  selected: p.id === (c == null ? void 0 : c.id),
1460
1479
  disabled: p.disabled,
@@ -1465,7 +1484,7 @@ const pn = /* @__PURE__ */ an(on), sn = {
1465
1484
  "aria-activedescendant": l ? vr(l) : void 0,
1466
1485
  "aria-autocomplete": "list",
1467
1486
  "aria-controls": fr.id,
1468
- "data-testid": I("input"),
1487
+ "data-testid": L("input"),
1469
1488
  autoComplete: "off",
1470
1489
  id: `${r}-input`,
1471
1490
  onChange: at,
@@ -1480,9 +1499,9 @@ const pn = /* @__PURE__ */ an(on), sn = {
1480
1499
  return {
1481
1500
  id: r,
1482
1501
  inputProps: ct,
1483
- internalRef: L,
1484
- optionsToShow: q,
1485
- showListbox: M,
1502
+ internalRef: B,
1503
+ optionsToShow: C,
1504
+ showListbox: q,
1486
1505
  noOptionsText: g,
1487
1506
  combobox: t,
1488
1507
  getListBoxItemProps: lt,
@@ -1494,20 +1513,20 @@ const pn = /* @__PURE__ */ an(on), sn = {
1494
1513
  inputProps: e,
1495
1514
  internalRef: u,
1496
1515
  optionsToShow: f,
1497
- showListbox: b,
1516
+ showListbox: h,
1498
1517
  noOptionsText: g,
1499
1518
  combobox: j,
1500
1519
  getListBoxItemProps: x,
1501
1520
  listboxProps: c
1502
1521
  } = dn(i), w = (d, l) => {
1503
- const { key: h, ...$ } = x(d, l);
1504
- return /* @__PURE__ */ s(X.Item, { ...$, children: n ? n == null ? void 0 : n(d) : d.label }, h);
1505
- }, C = (d) => {
1522
+ const { key: b, ...$ } = x(d, l);
1523
+ return /* @__PURE__ */ s(J.Item, { ...$, children: n ? n == null ? void 0 : n(d) : d.label }, b);
1524
+ }, P = (d) => {
1506
1525
  u.current = d, typeof o == "function" ? o(d) : o && (o.current = d);
1507
- }, P = () => {
1526
+ }, M = () => {
1508
1527
  const d = a(e);
1509
1528
  if (j && g && d && un(d)) {
1510
- const h = /* @__PURE__ */ O(dt, { children: [
1529
+ const b = /* @__PURE__ */ A(dt, { children: [
1511
1530
  d.props.endAdornment,
1512
1531
  /* @__PURE__ */ s(
1513
1532
  "button",
@@ -1520,26 +1539,26 @@ const pn = /* @__PURE__ */ an(on), sn = {
1520
1539
  },
1521
1540
  "aria-hidden": "true",
1522
1541
  children: /* @__PURE__ */ s(
1523
- Cr,
1542
+ Pr,
1524
1543
  {
1525
1544
  size: "sm",
1526
1545
  className: tr(`${U}__chevron-icon`, {
1527
- [`${U}__chevron-icon--up`]: b
1546
+ [`${U}__chevron-icon--up`]: h
1528
1547
  })
1529
1548
  }
1530
1549
  )
1531
1550
  }
1532
1551
  )
1533
1552
  ] });
1534
- return sr(d, { endAdornment: h });
1553
+ return sr(d, { endAdornment: b });
1535
1554
  }
1536
1555
  return d;
1537
1556
  };
1538
- return /* @__PURE__ */ O("div", { id: r, ref: C, className: tr([t, U]), children: [
1539
- P(),
1540
- b && /* @__PURE__ */ s(X, { ...c, className: tr(`${U}__listbox`), children: f.length ? f.filter((d) => !!d).map(w) : /* @__PURE__ */ s(X.Item, { noninteractive: !0, children: g }) })
1557
+ return /* @__PURE__ */ A("div", { id: r, ref: P, className: tr([t, U]), children: [
1558
+ M(),
1559
+ h && /* @__PURE__ */ s(J, { ...c, className: tr(`${U}__listbox`), children: f.length ? f.filter((d) => !!d).map(w) : /* @__PURE__ */ s(J.Item, { noninteractive: !0, children: g }) })
1541
1560
  ] });
1542
- }, fn = A(_n);
1561
+ }, fn = O(_n);
1543
1562
  fn.displayName = "Autocomplete";
1544
1563
  export {
1545
1564
  fn as Autocomplete,