cattle-care-ui 0.1.47 → 0.1.49

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
@@ -93,24 +93,24 @@ function E(e, t, n = !0) {
93
93
  }, [e, n]);
94
94
  }
95
95
  var D = {
96
- primary: "_primary_qj8vq_1",
97
- secondary: "_secondary_qj8vq_2",
98
- tertiary: "_tertiary_qj8vq_3",
99
- onDark: "_onDark_qj8vq_4",
100
- dangerous: "_dangerous_qj8vq_5",
101
- xs: "_xs_qj8vq_45",
102
- sm: "_sm_qj8vq_51",
103
- base: "_base_qj8vq_57",
104
- lg: "_lg_qj8vq_63",
105
- icon: "_icon_qj8vq_70",
106
- leadingIcon: "_leadingIcon_qj8vq_78",
107
- trailingIcon: "_trailingIcon_qj8vq_81",
108
- iconOnly: "_iconOnly_qj8vq_89",
109
- fullWidth: "_fullWidth_qj8vq_105",
110
- link: "_link_qj8vq_229",
111
- underlineHover: "_underlineHover_qj8vq_253",
112
- shortcut: "_shortcut_qj8vq_268",
113
- kbd: "_kbd_qj8vq_276"
96
+ primary: "_primary_8bnf3_1",
97
+ secondary: "_secondary_8bnf3_2",
98
+ tertiary: "_tertiary_8bnf3_3",
99
+ onDark: "_onDark_8bnf3_4",
100
+ dangerous: "_dangerous_8bnf3_5",
101
+ xs: "_xs_8bnf3_45",
102
+ sm: "_sm_8bnf3_51",
103
+ base: "_base_8bnf3_57",
104
+ lg: "_lg_8bnf3_63",
105
+ icon: "_icon_8bnf3_70",
106
+ leadingIcon: "_leadingIcon_8bnf3_78",
107
+ trailingIcon: "_trailingIcon_8bnf3_81",
108
+ iconOnly: "_iconOnly_8bnf3_89",
109
+ fullWidth: "_fullWidth_8bnf3_105",
110
+ link: "_link_8bnf3_229",
111
+ underlineHover: "_underlineHover_8bnf3_253",
112
+ shortcut: "_shortcut_8bnf3_268",
113
+ kbd: "_kbd_8bnf3_276"
114
114
  };
115
115
  //#endregion
116
116
  //#region src/components/Button.tsx
@@ -277,7 +277,7 @@ function R(e, t = {}) {
277
277
  }
278
278
  //#endregion
279
279
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
280
- function z(e, t = {}) {
280
+ function ee(e, t = {}) {
281
281
  return R(e, {
282
282
  ...t,
283
283
  attributeNames: {
@@ -292,15 +292,15 @@ function z(e, t = {}) {
292
292
  }
293
293
  //#endregion
294
294
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
295
- var B = (e) => {
295
+ var te = (e) => {
296
296
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
297
297
  return !1;
298
- }, V = r({}), ee = () => c(V), te = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
298
+ }, z = r({}), ne = () => c(z), re = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
299
299
  node: u,
300
300
  aliases: [],
301
301
  size: 24
302
302
  }, ...f }, p) => {
303
- let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = ee() ?? {}, b = !!l || B(f), [x, S, C = []] = z(d, {
303
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = ne() ?? {}, b = !!l || te(f), [x, S, C = []] = ee(d, {
304
304
  color: e ?? v,
305
305
  width: n ?? t ?? m,
306
306
  height: r ?? t ?? m,
@@ -318,8 +318,8 @@ var B = (e) => {
318
318
  });
319
319
  //#endregion
320
320
  //#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
321
- function H(e, t = [], n = []) {
322
- let r = typeof e == "string" ? M(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(te, {
321
+ function B(e, t = [], n = []) {
322
+ let r = typeof e == "string" ? M(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(re, {
323
323
  ref: n,
324
324
  icon: r,
325
325
  className: e,
@@ -329,7 +329,7 @@ function H(e, t = [], n = []) {
329
329
  }
330
330
  //#endregion
331
331
  //#region node_modules/lucide-react/dist/esm/icons/archive.mjs
332
- var ne = {
332
+ var ie = {
333
333
  name: "archive",
334
334
  size: 24,
335
335
  node: [
@@ -351,8 +351,8 @@ var ne = {
351
351
  }]
352
352
  ]
353
353
  };
354
- ne.node;
355
- var re = H(ne), ie = {
354
+ ie.node;
355
+ var ae = B(ie), oe = {
356
356
  name: "check",
357
357
  size: 24,
358
358
  node: [["path", {
@@ -360,8 +360,8 @@ var re = H(ne), ie = {
360
360
  key: "1gmf2c"
361
361
  }]]
362
362
  };
363
- ie.node;
364
- var ae = H(ie), oe = {
363
+ oe.node;
364
+ var se = B(oe), ce = {
365
365
  name: "chevron-down",
366
366
  size: 24,
367
367
  node: [["path", {
@@ -369,8 +369,8 @@ var ae = H(ie), oe = {
369
369
  key: "qrunsl"
370
370
  }]]
371
371
  };
372
- oe.node;
373
- var se = H(oe), ce = {
372
+ ce.node;
373
+ var le = B(ce), ue = {
374
374
  name: "chevron-left",
375
375
  size: 24,
376
376
  node: [["path", {
@@ -378,8 +378,8 @@ var se = H(oe), ce = {
378
378
  key: "1wnfg3"
379
379
  }]]
380
380
  };
381
- ce.node;
382
- var le = H(ce), U = {
381
+ ue.node;
382
+ var de = B(ue), fe = {
383
383
  name: "chevron-right",
384
384
  size: 24,
385
385
  node: [["path", {
@@ -387,8 +387,8 @@ var le = H(ce), U = {
387
387
  key: "mthhwq"
388
388
  }]]
389
389
  };
390
- U.node;
391
- var ue = H(U), de = {
390
+ fe.node;
391
+ var pe = B(fe), V = {
392
392
  name: "eye-off",
393
393
  size: 24,
394
394
  node: [
@@ -410,8 +410,8 @@ var ue = H(U), de = {
410
410
  }]
411
411
  ]
412
412
  };
413
- de.node;
414
- var fe = H(de), pe = {
413
+ V.node;
414
+ var H = B(V), me = {
415
415
  name: "eye",
416
416
  size: 24,
417
417
  node: [["path", {
@@ -424,8 +424,8 @@ var fe = H(de), pe = {
424
424
  key: "1v7zrd"
425
425
  }]]
426
426
  };
427
- pe.node;
428
- var me = H(pe), he = {
427
+ me.node;
428
+ var he = B(me), ge = {
429
429
  name: "lock",
430
430
  size: 24,
431
431
  node: [["rect", {
@@ -441,8 +441,8 @@ var me = H(pe), he = {
441
441
  key: "fwvmzm"
442
442
  }]]
443
443
  };
444
- he.node;
445
- var ge = H(he), _e = {
444
+ ge.node;
445
+ var _e = B(ge), ve = {
446
446
  name: "play",
447
447
  size: 24,
448
448
  node: [["path", {
@@ -450,8 +450,8 @@ var ge = H(he), _e = {
450
450
  key: "10ikf1"
451
451
  }]]
452
452
  };
453
- _e.node;
454
- var ve = H(_e), ye = {
453
+ ve.node;
454
+ var ye = B(ve), be = {
455
455
  name: "search",
456
456
  size: 24,
457
457
  node: [["path", {
@@ -464,8 +464,8 @@ var ve = H(_e), ye = {
464
464
  key: "4ej97u"
465
465
  }]]
466
466
  };
467
- ye.node;
468
- var be = H(ye), xe = {
467
+ be.node;
468
+ var xe = B(be), Se = {
469
469
  name: "user",
470
470
  size: 24,
471
471
  node: [["path", {
@@ -478,8 +478,8 @@ var be = H(ye), xe = {
478
478
  key: "17ys0d"
479
479
  }]]
480
480
  };
481
- xe.node;
482
- var Se = H(xe), Ce = {
481
+ Se.node;
482
+ var Ce = B(Se), we = {
483
483
  name: "x",
484
484
  size: 24,
485
485
  node: [["path", {
@@ -490,8 +490,8 @@ var Se = H(xe), Ce = {
490
490
  key: "d8bk6v"
491
491
  }]]
492
492
  };
493
- Ce.node;
494
- var we = H(Ce), W = {
493
+ we.node;
494
+ var Te = B(we), U = {
495
495
  neutral: "_neutral_13wj2_1",
496
496
  pill: "_pill_13wj2_2",
497
497
  accent: "_accent_13wj2_3",
@@ -509,53 +509,53 @@ var we = H(Ce), W = {
509
509
  main: "_main_13wj2_161",
510
510
  remove: "_remove_13wj2_162",
511
511
  removable: "_removable_13wj2_189"
512
- }, Te = {
512
+ }, Ee = {
513
513
  chip: "_chip_1vf29_5",
514
514
  disabled: "_disabled_1vf29_15",
515
515
  selected: "_selected_1vf29_28"
516
516
  };
517
517
  //#endregion
518
518
  //#region src/components/Tag.tsx
519
- function Ee(...e) {
519
+ function De(...e) {
520
520
  return e.filter(Boolean).join(" ");
521
521
  }
522
- function De(e) {
522
+ function Oe(e) {
523
523
  if (e.variant === "count") {
524
524
  let { variant: t, children: n, ...r } = e;
525
525
  return /* @__PURE__ */ _("span", {
526
- className: W[t],
526
+ className: U[t],
527
527
  ...r,
528
528
  children: n
529
529
  });
530
530
  }
531
- let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = Ee(W[t], f && Te.chip, f && p && Te.selected, f && a && Te.disabled, (u || d) && W.interactive, p && W.pressed, a && W.disabled, (o != null || d) && W.slots), h = /* @__PURE__ */ v(g, { children: [o != null && /* @__PURE__ */ _("span", {
532
- className: W.leading,
531
+ let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = De(U[t], f && Ee.chip, f && p && Ee.selected, f && a && Ee.disabled, (u || d) && U.interactive, p && U.pressed, a && U.disabled, (o != null || d) && U.slots), h = /* @__PURE__ */ v(g, { children: [o != null && /* @__PURE__ */ _("span", {
532
+ className: U.leading,
533
533
  children: o
534
534
  }), n] });
535
535
  return d ? /* @__PURE__ */ v("span", {
536
- className: Ee(m, W.removable),
536
+ className: De(m, U.removable),
537
537
  ...l,
538
538
  children: [u ? /* @__PURE__ */ _("button", {
539
539
  type: "button",
540
- className: Ee(W.main, W.slots),
540
+ className: De(U.main, U.slots),
541
541
  "aria-pressed": i,
542
542
  disabled: a,
543
543
  onClick: r,
544
544
  children: h
545
545
  }) : h, /* @__PURE__ */ _("button", {
546
546
  type: "button",
547
- className: W.remove,
547
+ className: U.remove,
548
548
  "aria-label": c,
549
549
  disabled: a,
550
550
  onClick: () => s(),
551
- children: /* @__PURE__ */ _(we, {
551
+ children: /* @__PURE__ */ _(Te, {
552
552
  size: 12,
553
553
  "aria-hidden": "true"
554
554
  })
555
555
  })]
556
556
  }) : u ? /* @__PURE__ */ _("button", {
557
557
  type: "button",
558
- className: Ee(m, W.button),
558
+ className: De(m, U.button),
559
559
  "aria-pressed": i,
560
560
  disabled: a,
561
561
  onClick: r,
@@ -567,20 +567,20 @@ function De(e) {
567
567
  children: h
568
568
  });
569
569
  }
570
- var Oe = {
570
+ var ke = {
571
571
  group: "_group_rrzc7_1",
572
572
  sm: "_sm_rrzc7_9",
573
573
  chip: "_chip_rrzc7_13 _chip_1vf29_5",
574
574
  base: "_base_rrzc7_28",
575
575
  selected: "_selected_rrzc7_44 _selected_1vf29_28"
576
- }, ke = {
576
+ }, Ae = {
577
577
  group: "_group_16vyf_1",
578
578
  groupLabel: "_groupLabel_16vyf_7"
579
- }, Ae = { label: "_label_tef1a_1" };
579
+ }, je = { label: "_label_tef1a_1" };
580
580
  //#endregion
581
581
  //#region src/components/FieldLabel.tsx
582
- function je({ children: e, htmlFor: t, className: n }) {
583
- let r = `${Ae.label} ${n ?? ""}`.trim();
582
+ function W({ children: e, htmlFor: t, className: n }) {
583
+ let r = `${je.label} ${n ?? ""}`.trim();
584
584
  return t ? /* @__PURE__ */ _("label", {
585
585
  className: r,
586
586
  htmlFor: t,
@@ -599,24 +599,24 @@ function Me({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !
599
599
  let c = /* @__PURE__ */ _("div", {
600
600
  role: "group",
601
601
  "aria-label": a ? void 0 : o["aria-label"],
602
- className: `${Oe.group} ${Oe[r]}`,
602
+ className: `${ke.group} ${ke[r]}`,
603
603
  children: e.map((e) => {
604
604
  let n = t.includes(e.value), r = i || e.disabled;
605
605
  return /* @__PURE__ */ _("button", {
606
606
  type: "button",
607
607
  "aria-pressed": n,
608
608
  disabled: r,
609
- className: [Oe.chip, n && Oe.selected].filter(Boolean).join(" "),
609
+ className: [ke.chip, n && ke.selected].filter(Boolean).join(" "),
610
610
  onClick: () => !r && s(e.value),
611
611
  children: e.label
612
612
  }, e.value);
613
613
  })
614
614
  });
615
615
  return a ? /* @__PURE__ */ v("div", {
616
- className: ke.group,
616
+ className: Ae.group,
617
617
  ...o,
618
- children: [/* @__PURE__ */ _(je, {
619
- className: ke.groupLabel,
618
+ children: [/* @__PURE__ */ _(W, {
619
+ className: Ae.groupLabel,
620
620
  children: a
621
621
  }), c]
622
622
  }) : c;
@@ -645,7 +645,7 @@ function Pe({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", s
645
645
  children: [
646
646
  /* @__PURE__ */ _("span", {
647
647
  className: Ne.searchIcon,
648
- children: /* @__PURE__ */ _(be, {})
648
+ children: /* @__PURE__ */ _(xe, {})
649
649
  }),
650
650
  /* @__PURE__ */ _("input", {
651
651
  ref: o,
@@ -800,9 +800,9 @@ function He({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
800
800
  return /* @__PURE__ */ v("div", {
801
801
  role: "group",
802
802
  "aria-label": e ? void 0 : a["aria-label"],
803
- className: ke.group,
804
- children: [e && /* @__PURE__ */ _(je, {
805
- className: ke.groupLabel,
803
+ className: Ae.group,
804
+ children: [e && /* @__PURE__ */ _(W, {
805
+ className: Ae.groupLabel,
806
806
  children: e
807
807
  }), t.map((e) => /* @__PURE__ */ _(Be, {
808
808
  checked: n.includes(e.value),
@@ -852,9 +852,9 @@ function Ge({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
852
852
  return /* @__PURE__ */ v("div", {
853
853
  role: "radiogroup",
854
854
  "aria-label": e ? void 0 : o["aria-label"],
855
- className: ke.group,
856
- children: [e && /* @__PURE__ */ _(je, {
857
- className: ke.groupLabel,
855
+ className: Ae.group,
856
+ children: [e && /* @__PURE__ */ _(W, {
857
+ className: Ae.groupLabel,
858
858
  children: e
859
859
  }), n.map((e) => /* @__PURE__ */ _(We, {
860
860
  name: t,
@@ -926,7 +926,7 @@ function Je({ label: e, helperText: t, error: n, size: r = "base", variant: i =
926
926
  return E(o, () => h.current?.focus()), /* @__PURE__ */ v("div", {
927
927
  className: [G.field, c].filter(Boolean).join(" "),
928
928
  children: [
929
- e && /* @__PURE__ */ _(je, {
929
+ e && /* @__PURE__ */ _(W, {
930
930
  htmlFor: m,
931
931
  children: e
932
932
  }),
@@ -1019,33 +1019,33 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1019
1019
  j || N(e.target.value.length), w?.(e);
1020
1020
  }, L = (e) => {
1021
1021
  j || (N(e.currentTarget.value.length), F()), T?.(e);
1022
- }, R = `${k}-helper`, z = `${k}-error`, B = `${k}-count`, V = [
1022
+ }, R = `${k}-helper`, ee = `${k}-error`, te = `${k}-count`, z = [
1023
1023
  E,
1024
- n ? z : t ? R : null,
1025
- c ? B : null
1026
- ].filter(Boolean).join(" ") || void 0, ee = x ? P / x : 0, te = ee >= 1 ? K.countLimit : ee >= .9 ? K.countNear : "", H = [
1024
+ n ? ee : t ? R : null,
1025
+ c ? te : null
1026
+ ].filter(Boolean).join(" ") || void 0, ne = x ? P / x : 0, re = ne >= 1 ? K.countLimit : ne >= .9 ? K.countNear : "", B = [
1027
1027
  K.wrap,
1028
1028
  K[r],
1029
1029
  n ? K.errorWrap : "",
1030
1030
  S ? K.disabled : "",
1031
1031
  C ? K.readOnly : ""
1032
- ].filter(Boolean).join(" "), ne = a ? "none" : i;
1032
+ ].filter(Boolean).join(" "), ie = a ? "none" : i;
1033
1033
  return /* @__PURE__ */ v("div", {
1034
1034
  className: [K.field, f].filter(Boolean).join(" "),
1035
1035
  children: [
1036
- e && /* @__PURE__ */ _(je, {
1036
+ e && /* @__PURE__ */ _(W, {
1037
1037
  htmlFor: k,
1038
1038
  children: e
1039
1039
  }),
1040
1040
  /* @__PURE__ */ _("div", {
1041
- className: H,
1041
+ className: B,
1042
1042
  children: /* @__PURE__ */ _("textarea", {
1043
1043
  ...D,
1044
1044
  ref: (e) => {
1045
1045
  A.current = e, Ye(h, e);
1046
1046
  },
1047
1047
  id: k,
1048
- className: `${K.textarea} ${K[`resize-${ne}`]}`,
1048
+ className: `${K.textarea} ${K[`resize-${ie}`]}`,
1049
1049
  rows: g,
1050
1050
  value: y,
1051
1051
  defaultValue: b,
@@ -1053,7 +1053,7 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1053
1053
  disabled: S,
1054
1054
  readOnly: C,
1055
1055
  "aria-invalid": n ? !0 : D["aria-invalid"],
1056
- "aria-describedby": V,
1056
+ "aria-describedby": z,
1057
1057
  onChange: I,
1058
1058
  onInput: L
1059
1059
  })
@@ -1061,7 +1061,7 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1061
1061
  (n || t || c) && /* @__PURE__ */ v("div", {
1062
1062
  className: K.footer,
1063
1063
  children: [n ? /* @__PURE__ */ _("span", {
1064
- id: z,
1064
+ id: ee,
1065
1065
  className: K.errorText,
1066
1066
  children: n
1067
1067
  }) : t ? /* @__PURE__ */ _("span", {
@@ -1069,8 +1069,8 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1069
1069
  className: K.helperText,
1070
1070
  children: t
1071
1071
  }) : null, c && /* @__PURE__ */ _("span", {
1072
- id: B,
1073
- className: `${K.count} ${te}`,
1072
+ id: te,
1073
+ className: `${K.count} ${re}`,
1074
1074
  children: x ? `${P} / ${x}` : P
1075
1075
  })]
1076
1076
  })
@@ -1084,7 +1084,7 @@ function Ze({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
1084
1084
  return /* @__PURE__ */ v("div", {
1085
1085
  className: [G.field, c].filter(Boolean).join(" "),
1086
1086
  children: [
1087
- e && /* @__PURE__ */ _(je, {
1087
+ e && /* @__PURE__ */ _(W, {
1088
1088
  htmlFor: h,
1089
1089
  children: e
1090
1090
  }),
@@ -1106,7 +1106,7 @@ function Ze({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
1106
1106
  "aria-controls": h,
1107
1107
  disabled: d,
1108
1108
  onClick: () => y((e) => !e),
1109
- children: _(g ? fe : me, {})
1109
+ children: _(g ? H : he, {})
1110
1110
  })]
1111
1111
  }),
1112
1112
  n ? /* @__PURE__ */ _("span", {
@@ -1126,7 +1126,7 @@ function Qe({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
1126
1126
  return /* @__PURE__ */ v("div", {
1127
1127
  className: [G.field, o].filter(Boolean).join(" "),
1128
1128
  children: [
1129
- e && /* @__PURE__ */ _(je, {
1129
+ e && /* @__PURE__ */ _(W, {
1130
1130
  htmlFor: p,
1131
1131
  children: e
1132
1132
  }),
@@ -1145,7 +1145,7 @@ function Qe({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
1145
1145
  }), /* @__PURE__ */ _("span", {
1146
1146
  className: `${G.pickerChevron} ${r === "sm" ? G.pickerChevronSm : ""}`,
1147
1147
  "aria-hidden": !0,
1148
- children: /* @__PURE__ */ _(se, {})
1148
+ children: /* @__PURE__ */ _(le, {})
1149
1149
  })]
1150
1150
  }),
1151
1151
  n ? /* @__PURE__ */ _("span", {
@@ -1282,7 +1282,7 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1282
1282
  }
1283
1283
  t && (e.preventDefault(), I(t));
1284
1284
  }
1285
- function z(e) {
1285
+ function ee(e) {
1286
1286
  let n = $e(e);
1287
1287
  g(n), t(n);
1288
1288
  }
@@ -1295,7 +1295,7 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1295
1295
  variant: "tertiary",
1296
1296
  size: "sm",
1297
1297
  className: q.navButton,
1298
- leadingIcon: /* @__PURE__ */ _(le, {}),
1298
+ leadingIcon: /* @__PURE__ */ _(de, {}),
1299
1299
  "aria-label": s,
1300
1300
  disabled: P,
1301
1301
  onClick: () => L(-1)
@@ -1310,7 +1310,7 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1310
1310
  variant: "tertiary",
1311
1311
  size: "sm",
1312
1312
  className: q.navButton,
1313
- leadingIcon: /* @__PURE__ */ _(ue, {}),
1313
+ leadingIcon: /* @__PURE__ */ _(pe, {}),
1314
1314
  "aria-label": c,
1315
1315
  disabled: F,
1316
1316
  onClick: () => L(1)
@@ -1353,7 +1353,7 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1353
1353
  a && q.disabled
1354
1354
  ].filter(Boolean).join(" "),
1355
1355
  onMouseDown: a ? (e) => e.preventDefault() : void 0,
1356
- onClick: a ? void 0 : () => z(t),
1356
+ onClick: a ? void 0 : () => ee(t),
1357
1357
  children: t.getDate()
1358
1358
  }, dt(t));
1359
1359
  })
@@ -1411,10 +1411,10 @@ function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1411
1411
  window.removeEventListener("pointerdown", t), window.removeEventListener("keydown", n);
1412
1412
  };
1413
1413
  }, [P, L]);
1414
- function z(e) {
1414
+ function ee(e) {
1415
1415
  (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), i || A(!0));
1416
1416
  }
1417
- function B(e) {
1417
+ function te(e) {
1418
1418
  t(e), A(!1), j.current?.focus();
1419
1419
  }
1420
1420
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Qe, {
@@ -1434,7 +1434,7 @@ function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1434
1434
  "aria-expanded": P,
1435
1435
  "aria-controls": P ? N : void 0,
1436
1436
  onClick: () => !i && A((e) => !e),
1437
- onKeyDown: z
1437
+ onKeyDown: ee
1438
1438
  }), P && h(/* @__PURE__ */ _("div", {
1439
1439
  ref: M,
1440
1440
  id: N,
@@ -1444,7 +1444,7 @@ function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1444
1444
  children: /* @__PURE__ */ _(pt, {
1445
1445
  autoFocus: !0,
1446
1446
  value: e,
1447
- onChange: B,
1447
+ onChange: te,
1448
1448
  minDate: n,
1449
1449
  maxDate: r,
1450
1450
  locale: a,
@@ -1471,7 +1471,7 @@ function bt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, su
1471
1471
  return /* @__PURE__ */ v("div", {
1472
1472
  className: yt.field,
1473
1473
  children: [
1474
- e && /* @__PURE__ */ _(je, {
1474
+ e && /* @__PURE__ */ _(W, {
1475
1475
  htmlFor: l,
1476
1476
  children: e
1477
1477
  }),
@@ -1567,45 +1567,45 @@ function Tt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
1567
1567
  }),
1568
1568
  r && /* @__PURE__ */ _("span", {
1569
1569
  className: wt.check,
1570
- children: /* @__PURE__ */ _(ae, {})
1570
+ children: /* @__PURE__ */ _(se, {})
1571
1571
  })
1572
1572
  ]
1573
1573
  });
1574
1574
  }
1575
1575
  var J = {
1576
- field: "_field_2n7jr_1",
1577
- fieldInline: "_fieldInline_2n7jr_2",
1578
- trigger: "_trigger_2n7jr_19",
1579
- errorWrap: "_errorWrap_2n7jr_43",
1580
- sm: "_sm_2n7jr_62",
1581
- base: "_base_2n7jr_70",
1582
- icon: "_icon_2n7jr_79",
1583
- value: "_value_2n7jr_93",
1584
- placeholder: "_placeholder_2n7jr_101",
1585
- chevron: "_chevron_2n7jr_104",
1586
- chevronOpen: "_chevronOpen_2n7jr_119",
1587
- menuWrap: "_menuWrap_2n7jr_123",
1588
- menuIn: "_menuIn_2n7jr_1",
1589
- menuWrapAuto: "_menuWrapAuto_2n7jr_134",
1590
- menuWrapEnd: "_menuWrapEnd_2n7jr_141",
1591
- menuWrapUp: "_menuWrapUp_2n7jr_146",
1592
- menuWrapClosing: "_menuWrapClosing_2n7jr_158",
1593
- menuOut: "_menuOut_2n7jr_1",
1594
- list: "_list_2n7jr_182",
1595
- itemIn: "_itemIn_2n7jr_1",
1596
- highlight: "_highlight_2n7jr_210",
1597
- highlightInstant: "_highlightInstant_2n7jr_223",
1598
- pillChevron: "_pillChevron_2n7jr_248",
1599
- buttonChevron: "_buttonChevron_2n7jr_249",
1600
- pillTrigger: "_pillTrigger_2n7jr_255",
1601
- pillIcon: "_pillIcon_2n7jr_291",
1602
- buttonTriggerBase: "_buttonTriggerBase_2n7jr_303",
1603
- search: "_search_2n7jr_326",
1604
- noResults: "_noResults_2n7jr_344",
1605
- helperText: "_helperText_2n7jr_349",
1606
- errorText: "_errorText_2n7jr_354",
1607
- prefix: "_prefix_2n7jr_359",
1608
- menuWrapMultiple: "_menuWrapMultiple_2n7jr_363"
1576
+ field: "_field_bvnz3_1",
1577
+ fieldInline: "_fieldInline_bvnz3_2",
1578
+ trigger: "_trigger_bvnz3_19",
1579
+ errorWrap: "_errorWrap_bvnz3_43",
1580
+ sm: "_sm_bvnz3_62",
1581
+ base: "_base_bvnz3_70",
1582
+ icon: "_icon_bvnz3_79",
1583
+ value: "_value_bvnz3_93",
1584
+ placeholder: "_placeholder_bvnz3_101",
1585
+ chevron: "_chevron_bvnz3_104",
1586
+ chevronOpen: "_chevronOpen_bvnz3_119",
1587
+ menuWrap: "_menuWrap_bvnz3_123",
1588
+ menuIn: "_menuIn_bvnz3_1",
1589
+ menuWrapAuto: "_menuWrapAuto_bvnz3_134",
1590
+ menuWrapEnd: "_menuWrapEnd_bvnz3_141",
1591
+ menuWrapUp: "_menuWrapUp_bvnz3_146",
1592
+ menuWrapClosing: "_menuWrapClosing_bvnz3_158",
1593
+ menuOut: "_menuOut_bvnz3_1",
1594
+ list: "_list_bvnz3_182",
1595
+ itemIn: "_itemIn_bvnz3_1",
1596
+ highlight: "_highlight_bvnz3_210",
1597
+ highlightInstant: "_highlightInstant_bvnz3_223",
1598
+ pillChevron: "_pillChevron_bvnz3_248",
1599
+ buttonChevron: "_buttonChevron_bvnz3_249",
1600
+ pillTrigger: "_pillTrigger_bvnz3_255",
1601
+ pillIcon: "_pillIcon_bvnz3_291",
1602
+ buttonTriggerBase: "_buttonTriggerBase_bvnz3_303",
1603
+ search: "_search_bvnz3_333",
1604
+ noResults: "_noResults_bvnz3_351",
1605
+ helperText: "_helperText_bvnz3_356",
1606
+ errorText: "_errorText_bvnz3_361",
1607
+ prefix: "_prefix_bvnz3_366",
1608
+ menuWrapMultiple: "_menuWrapMultiple_bvnz3_370"
1609
1609
  };
1610
1610
  //#endregion
1611
1611
  //#region src/components/Dropdown.tsx
@@ -1617,233 +1617,245 @@ function Dt(e) {
1617
1617
  }
1618
1618
  var Ot = (e) => `and ${e} more`;
1619
1619
  function kt(e) {
1620
- let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: s = "base", placeholder: c = "Select…", options: f, disabled: h, searchable: y, searchPlaceholder: b = "Search…", noResultsText: x = "No matches", defaultOpen: S = !1, autoFocus: C, className: w, labelClassName: T, "aria-label": E, "data-testid": D } = e, k = e.multiple === !0, [A, j] = m(S), [M, N] = m(S), [P, F] = m(""), [I, L] = m(!1), [R, z] = m(null), B = p(null), V = p(null), ee = p(null), te = p(null), H = u(), ne = u(), re = e.multiple ? void 0 : e.value, ie = e.multiple && e.value || [], ae = ie.map((e) => f.find((t) => t.value === e)).filter((e) => e !== void 0), oe = k ? void 0 : f.find((e) => e.value === re), ce = P.trim().toLowerCase(), le = y && ce ? f.filter((e) => Et(e).toLowerCase().includes(ce)) : f, U = le.filter((e) => !e.disabled).map((e) => e.value), ue = t === "field";
1621
- function de() {
1622
- N(!0), j(!0);
1620
+ let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: y, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": k } = e, A = e.multiple === !0, [j, M] = m(C), [N, P] = m(C), [F, I] = m(""), [L, R] = m(!1), [ee, te] = m(null), z = p(null), ne = p(null), re = p(null), B = p(null), ie = s((e) => {
1621
+ if (!e) return;
1622
+ let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
1623
+ t();
1624
+ let n = new ResizeObserver(t);
1625
+ n.observe(e);
1626
+ for (let t of Array.from(e.children)) n.observe(t);
1627
+ let r = new MutationObserver(t);
1628
+ return r.observe(e, { childList: !0 }), () => {
1629
+ n.disconnect(), r.disconnect();
1630
+ };
1631
+ }, []), ae = u(), oe = u(), se = e.multiple ? void 0 : e.value, ce = e.multiple && e.value || [], ue = ce.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), de = A ? void 0 : h.find((e) => e.value === se), fe = F.trim().toLowerCase(), pe = b && fe ? h.filter((e) => Et(e).toLowerCase().includes(fe)) : h, V = pe.filter((e) => !e.disabled).map((e) => e.value), H = t === "field";
1632
+ function me() {
1633
+ P(!0), M(!0);
1623
1634
  }
1624
- function fe() {
1625
- j(!1), F("");
1635
+ function he() {
1636
+ M(!1), I("");
1626
1637
  }
1627
1638
  l(() => {
1628
- if (!A) return;
1629
- if (y) {
1630
- te.current?.focus();
1639
+ if (!j) return;
1640
+ if (b) {
1641
+ B.current?.focus();
1631
1642
  return;
1632
1643
  }
1633
- let e = (k ? ae.find((e) => !e.disabled)?.value : re) ?? U[0];
1634
- (B.current?.querySelector(`[data-value="${e}"]`))?.focus();
1635
- }, [A]), d(() => {
1636
- if (!A || !ee.current || !B.current) return;
1637
- let e = B.current.getBoundingClientRect(), t = ee.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
1638
- L(n < t + 8 && r > n);
1639
- }, [A]), l(() => {
1640
- if (!A) return;
1644
+ let e = (A ? ue.find((e) => !e.disabled)?.value : se) ?? V[0];
1645
+ (z.current?.querySelector(`[data-value="${e}"]`))?.focus();
1646
+ }, [j]), d(() => {
1647
+ if (!j || !re.current || !z.current) return;
1648
+ let e = z.current.getBoundingClientRect(), t = re.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
1649
+ R(n < t + 8 && r > n);
1650
+ }, [j]), l(() => {
1651
+ if (!j) return;
1641
1652
  function e(e) {
1642
- B.current?.contains(e.target) || fe();
1653
+ z.current?.contains(e.target) || he();
1643
1654
  }
1644
1655
  function t(e) {
1645
- e.key === "Escape" && (fe(), V.current?.focus()), e.key === "Tab" && k && fe();
1656
+ e.key === "Escape" && (he(), ne.current?.focus()), e.key === "Tab" && A && he();
1646
1657
  }
1647
1658
  return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
1648
1659
  window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
1649
1660
  };
1650
- }, [A, k]);
1651
- function pe(e) {
1652
- e !== void 0 && B.current?.querySelector(`[data-value="${e}"]`)?.focus();
1661
+ }, [j, A]);
1662
+ function ge(e) {
1663
+ e !== void 0 && z.current?.querySelector(`[data-value="${e}"]`)?.focus();
1653
1664
  }
1654
- function me(e) {
1655
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), de());
1665
+ function _e(e) {
1666
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), me());
1656
1667
  }
1657
- function he(e) {
1658
- e.key === "ArrowDown" && (e.preventDefault(), pe(U[0])), e.key === "Enter" && U.length === 1 && (e.preventDefault(), ve(U[0]));
1668
+ function ve(e) {
1669
+ e.key === "ArrowDown" && (e.preventDefault(), ge(V[0])), e.key === "Enter" && V.length === 1 && (e.preventDefault(), xe(V[0]));
1659
1670
  }
1660
- function ge(e, t) {
1661
- let n = U.indexOf(t);
1671
+ function ye(e, t) {
1672
+ let n = V.indexOf(t);
1662
1673
  if (n === -1) return;
1663
1674
  let r = null;
1664
- if (e.key === "ArrowDown" && (r = (n + 1) % U.length), e.key === "ArrowUp") {
1665
- if (y && n === 0) {
1666
- e.preventDefault(), te.current?.focus();
1675
+ if (e.key === "ArrowDown" && (r = (n + 1) % V.length), e.key === "ArrowUp") {
1676
+ if (b && n === 0) {
1677
+ e.preventDefault(), B.current?.focus();
1667
1678
  return;
1668
1679
  }
1669
- r = (n - 1 + U.length) % U.length;
1680
+ r = (n - 1 + V.length) % V.length;
1670
1681
  }
1671
- e.key === "Home" && (r = 0), e.key === "End" && (r = U.length - 1), r !== null && (e.preventDefault(), pe(U[r]));
1682
+ e.key === "Home" && (r = 0), e.key === "End" && (r = V.length - 1), r !== null && (e.preventDefault(), ge(V[r]));
1672
1683
  }
1673
- function _e(e) {
1674
- z((t) => ({
1684
+ function be(e) {
1685
+ te((t) => ({
1675
1686
  top: e.offsetTop,
1676
1687
  height: e.offsetHeight,
1677
1688
  instant: !t
1678
1689
  }));
1679
1690
  }
1680
- function ve(t) {
1691
+ function xe(t) {
1681
1692
  if (e.multiple) {
1682
1693
  let n = e.value ?? [];
1683
1694
  e.onChange(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
1684
1695
  return;
1685
1696
  }
1686
- e.onChange(t), fe(), V.current?.focus();
1697
+ e.onChange(t), he(), ne.current?.focus();
1687
1698
  }
1688
- function ye() {
1689
- if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ae);
1690
- let t = ae[0];
1691
- if (ae.length === 1) return t.label;
1699
+ function Se() {
1700
+ if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ue);
1701
+ let t = ue[0];
1702
+ if (ue.length === 1) return t.label;
1692
1703
  let n = Dt(t);
1693
- return n === void 0 ? `${ae.length} selected` : `${n} ${(e.multiple && e.moreText || Ot)(ae.length - 1)}`;
1704
+ return n === void 0 ? `${ue.length} selected` : `${n} ${(e.multiple && e.moreText || Ot)(ue.length - 1)}`;
1694
1705
  }
1695
- let be = n === void 0 && (k ? ae.length === 0 : !oe), xe = k && e.triggerPrefix ? /* @__PURE__ */ v("span", {
1706
+ let Ce = n === void 0 && (A ? ue.length === 0 : !de), we = A && e.triggerPrefix ? /* @__PURE__ */ v("span", {
1696
1707
  className: J.prefix,
1697
1708
  children: [e.triggerPrefix, " "]
1698
- }) : null, Se = n ?? (be ? c : k ? ye() : oe?.label), Ce = /* @__PURE__ */ v(g, { children: [xe, Se] }), we = {
1709
+ }) : null, Te = n ?? (Ce ? f : A ? Se() : de?.label), U = /* @__PURE__ */ v(g, { children: [we, Te] }), Ee = {
1699
1710
  "aria-haspopup": "listbox",
1700
- "aria-expanded": A,
1701
- "aria-controls": A ? ne : void 0,
1702
- "aria-label": i ? void 0 : E,
1703
- autoFocus: C,
1704
- disabled: h,
1705
- onClick: () => A ? fe() : de(),
1706
- onKeyDown: me
1711
+ "aria-expanded": j,
1712
+ "aria-controls": j ? oe : void 0,
1713
+ "aria-label": i ? void 0 : D,
1714
+ autoFocus: w,
1715
+ disabled: y,
1716
+ onClick: () => j ? he() : me(),
1717
+ onKeyDown: _e
1707
1718
  };
1708
1719
  return /* @__PURE__ */ v("div", {
1709
- className: [ue ? J.field : J.fieldInline, w].filter(Boolean).join(" "),
1710
- ref: B,
1711
- "data-testid": D,
1720
+ className: [H ? J.field : J.fieldInline, T].filter(Boolean).join(" "),
1721
+ ref: z,
1722
+ "data-testid": k,
1712
1723
  children: [
1713
- ue && i && /* @__PURE__ */ _(je, {
1714
- htmlFor: H,
1715
- className: T,
1724
+ H && i && /* @__PURE__ */ _(W, {
1725
+ htmlFor: ae,
1726
+ className: E,
1716
1727
  children: i
1717
1728
  }),
1718
- ue ? /* @__PURE__ */ v("button", {
1719
- ref: V,
1720
- id: H,
1729
+ H ? /* @__PURE__ */ v("button", {
1730
+ ref: ne,
1731
+ id: ae,
1721
1732
  type: "button",
1722
1733
  role: "combobox",
1723
- className: `${J.trigger} ${J[s]} ${o ? J.errorWrap : ""}`,
1724
- ...we,
1734
+ className: `${J.trigger} ${J[c]} ${o ? J.errorWrap : ""}`,
1735
+ ...Ee,
1725
1736
  children: [
1726
- oe?.icon && /* @__PURE__ */ _("span", {
1737
+ de?.icon && /* @__PURE__ */ _("span", {
1727
1738
  className: J.icon,
1728
- children: oe.icon
1739
+ children: de.icon
1729
1740
  }),
1730
1741
  /* @__PURE__ */ _("span", {
1731
- className: `${J.value} ${be ? J.placeholder : ""}`,
1732
- children: Ce
1742
+ className: `${J.value} ${Ce ? J.placeholder : ""}`,
1743
+ children: U
1733
1744
  }),
1734
1745
  /* @__PURE__ */ _("span", {
1735
- className: `${J.chevron} ${A ? J.chevronOpen : ""}`,
1736
- children: /* @__PURE__ */ _(se, {})
1746
+ className: `${J.chevron} ${j ? J.chevronOpen : ""}`,
1747
+ children: /* @__PURE__ */ _(le, {})
1737
1748
  })
1738
1749
  ]
1739
1750
  }) : t === "pill" ? /* @__PURE__ */ v("button", {
1740
- ref: V,
1741
- id: H,
1751
+ ref: ne,
1752
+ id: ae,
1742
1753
  type: "button",
1743
1754
  className: J.pillTrigger,
1744
- ...we,
1755
+ ...Ee,
1745
1756
  children: [
1746
- oe?.icon && /* @__PURE__ */ _("span", {
1757
+ de?.icon && /* @__PURE__ */ _("span", {
1747
1758
  className: J.pillIcon,
1748
- children: oe.icon
1759
+ children: de.icon
1749
1760
  }),
1750
- Ce,
1761
+ U,
1751
1762
  /* @__PURE__ */ _("span", {
1752
- className: `${J.pillChevron} ${A ? J.chevronOpen : ""}`,
1753
- children: /* @__PURE__ */ _(se, {})
1763
+ className: `${J.pillChevron} ${j ? J.chevronOpen : ""}`,
1764
+ children: /* @__PURE__ */ _(le, {})
1754
1765
  })
1755
1766
  ]
1756
1767
  }) : /* @__PURE__ */ _(O, {
1757
- ref: V,
1758
- id: H,
1768
+ ref: ne,
1769
+ id: ae,
1759
1770
  variant: t,
1760
- size: s,
1761
- className: s === "base" ? J.buttonTriggerBase : void 0,
1762
- leadingIcon: oe?.icon,
1771
+ size: c,
1772
+ className: c === "base" ? J.buttonTriggerBase : void 0,
1773
+ leadingIcon: de?.icon,
1763
1774
  trailingIcon: /* @__PURE__ */ _("span", {
1764
- className: `${J.buttonChevron} ${A ? J.chevronOpen : ""}`,
1765
- children: /* @__PURE__ */ _(se, {})
1775
+ className: `${J.buttonChevron} ${j ? J.chevronOpen : ""}`,
1776
+ children: /* @__PURE__ */ _(le, {})
1766
1777
  }),
1767
- ...we,
1768
- children: Ce
1778
+ ...Ee,
1779
+ children: U
1769
1780
  }),
1770
- M && /* @__PURE__ */ _("div", {
1771
- ref: ee,
1781
+ N && /* @__PURE__ */ _("div", {
1782
+ ref: re,
1772
1783
  className: [
1773
1784
  J.menuWrap,
1774
- !ue && J.menuWrapAuto,
1775
- !ue && k && J.menuWrapMultiple,
1776
- !ue && r === "end" && J.menuWrapEnd,
1777
- I && J.menuWrapUp,
1778
- !A && J.menuWrapClosing
1785
+ !H && J.menuWrapAuto,
1786
+ !H && A && J.menuWrapMultiple,
1787
+ !H && r === "end" && J.menuWrapEnd,
1788
+ L && J.menuWrapUp,
1789
+ !j && J.menuWrapClosing
1779
1790
  ].filter(Boolean).join(" "),
1780
1791
  onAnimationEnd: (e) => {
1781
- A || e.target !== e.currentTarget || (N(!1), L(!1));
1792
+ j || e.target !== e.currentTarget || (P(!1), R(!1));
1782
1793
  },
1783
1794
  children: /* @__PURE__ */ v(St, {
1784
1795
  role: "presentation",
1785
- style: ue ? { width: "100%" } : void 0,
1786
- children: [y && /* @__PURE__ */ _("input", {
1787
- ref: te,
1796
+ style: H ? { width: "100%" } : void 0,
1797
+ children: [b && /* @__PURE__ */ _("input", {
1798
+ ref: B,
1788
1799
  type: "text",
1789
1800
  className: J.search,
1790
- value: P,
1791
- placeholder: b,
1792
- "aria-label": b,
1793
- "aria-controls": ne,
1801
+ value: F,
1802
+ placeholder: x,
1803
+ "aria-label": x,
1804
+ "aria-controls": oe,
1794
1805
  autoComplete: "off",
1795
1806
  spellCheck: !1,
1796
1807
  onChange: (e) => {
1797
- F(e.target.value), z(null);
1808
+ I(e.target.value), te(null);
1798
1809
  },
1799
- onKeyDown: he
1810
+ onKeyDown: ve
1800
1811
  }), /* @__PURE__ */ v("div", {
1801
- id: ne,
1812
+ id: oe,
1802
1813
  role: "listbox",
1803
- "aria-multiselectable": k || void 0,
1804
- "aria-label": i ?? E,
1814
+ "aria-multiselectable": A || void 0,
1815
+ "aria-label": i ?? D,
1816
+ ref: ie,
1805
1817
  className: J.list,
1806
- onMouseLeave: () => z(null),
1818
+ onMouseLeave: () => te(null),
1807
1819
  onBlur: (e) => {
1808
- e.currentTarget.contains(e.relatedTarget) || z(null);
1820
+ e.currentTarget.contains(e.relatedTarget) || te(null);
1809
1821
  },
1810
- children: [R && le.length > 0 && /* @__PURE__ */ _("span", {
1822
+ children: [ee && pe.length > 0 && /* @__PURE__ */ _("span", {
1811
1823
  "aria-hidden": "true",
1812
- className: `${J.highlight} ${R.instant ? J.highlightInstant : ""}`,
1824
+ className: `${J.highlight} ${ee.instant ? J.highlightInstant : ""}`,
1813
1825
  style: {
1814
- transform: `translateY(${R.top}px)`,
1815
- height: R.height
1826
+ transform: `translateY(${ee.top}px)`,
1827
+ height: ee.height
1816
1828
  }
1817
- }), le.length === 0 ? /* @__PURE__ */ _("div", {
1829
+ }), pe.length === 0 ? /* @__PURE__ */ _("div", {
1818
1830
  className: J.noResults,
1819
1831
  role: "presentation",
1820
- children: x
1821
- }) : le.map((e, n) => /* @__PURE__ */ _(Tt, {
1832
+ children: S
1833
+ }) : pe.map((e, n) => /* @__PURE__ */ _(Tt, {
1822
1834
  style: { "--i": Math.min(n, 8) },
1823
1835
  "data-value": e.value,
1824
1836
  role: "option",
1825
- "aria-selected": k ? ie.includes(e.value) : e.value === re,
1826
- size: t === "pill" ? "sm" : s,
1837
+ "aria-selected": A ? ce.includes(e.value) : e.value === se,
1838
+ size: t === "pill" ? "sm" : c,
1827
1839
  icon: e.icon,
1828
- leading: k ? /* @__PURE__ */ _(Ve, {
1829
- checked: ie.includes(e.value),
1840
+ leading: A ? /* @__PURE__ */ _(Ve, {
1841
+ checked: ce.includes(e.value),
1830
1842
  disabled: e.disabled
1831
1843
  }) : void 0,
1832
- selected: !k && e.value === re,
1844
+ selected: !A && e.value === se,
1833
1845
  disabled: e.disabled,
1834
- onClick: () => ve(e.value),
1835
- onMouseEnter: (t) => !e.disabled && _e(t.currentTarget),
1836
- onFocus: (e) => _e(e.currentTarget),
1837
- onKeyDown: (t) => ge(t, e.value),
1846
+ onClick: () => xe(e.value),
1847
+ onMouseEnter: (t) => !e.disabled && be(t.currentTarget),
1848
+ onFocus: (e) => be(e.currentTarget),
1849
+ onKeyDown: (t) => ye(t, e.value),
1838
1850
  children: e.label
1839
1851
  }, e.value))]
1840
1852
  })]
1841
1853
  })
1842
1854
  }),
1843
- ue && o ? /* @__PURE__ */ _("span", {
1855
+ H && o ? /* @__PURE__ */ _("span", {
1844
1856
  className: J.errorText,
1845
1857
  children: o
1846
- }) : ue && a ? /* @__PURE__ */ _("span", {
1858
+ }) : H && a ? /* @__PURE__ */ _("span", {
1847
1859
  className: J.helperText,
1848
1860
  children: a
1849
1861
  }) : null
@@ -2329,11 +2341,11 @@ function nn(e) {
2329
2341
  }, [e]), t;
2330
2342
  }
2331
2343
  function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", onSubmit: i, dismissible: a = !0, instantInitialOpen: o = !1, portalSelector: c = "#container", isTop: d = !0, role: f = "dialog", "aria-labelledby": g, "data-testid": v, className: y, children: b }) {
2332
- let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = nn(Xt), N = nn(Zt), P = p(null), F = p(null), I = p(!1), L = p(!1), R = p(Symbol("modal")), z = p(e), B = p(t);
2333
- B.current = t, l(() => T(!0), []), l(() => {
2344
+ let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = nn(Xt), N = nn(Zt), P = p(null), F = p(null), I = p(!1), L = p(!1), R = p(Symbol("modal")), ee = p(e), te = p(t);
2345
+ te.current = t, l(() => T(!0), []), l(() => {
2334
2346
  if (e) {
2335
2347
  if (I.current) return;
2336
- if (F.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), z.current && o) {
2348
+ if (F.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), ee.current && o) {
2337
2349
  k(!0);
2338
2350
  return;
2339
2351
  }
@@ -2346,18 +2358,18 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2346
2358
  }, [e]), l(() => {
2347
2359
  !E && F.current && (F.current.focus?.(), F.current = null);
2348
2360
  }, [E]);
2349
- let V = s(() => {
2361
+ let z = s(() => {
2350
2362
  if (!a || I.current) return;
2351
2363
  I.current = !0, k(!1);
2352
2364
  let e = N ? 0 : Yt;
2353
- window.setTimeout(() => B.current(), e);
2365
+ window.setTimeout(() => te.current(), e);
2354
2366
  }, [a, N]);
2355
2367
  l(() => {
2356
2368
  if (!E) return;
2357
2369
  let e = R.current;
2358
2370
  d && tn.push(e);
2359
2371
  let t = (t) => {
2360
- t.key === "Escape" && tn[tn.length - 1] === e && (t.preventDefault(), V());
2372
+ t.key === "Escape" && tn[tn.length - 1] === e && (t.preventDefault(), z());
2361
2373
  };
2362
2374
  document.addEventListener("keydown", t);
2363
2375
  let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
@@ -2369,9 +2381,9 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2369
2381
  }, [
2370
2382
  E,
2371
2383
  d,
2372
- V
2384
+ z
2373
2385
  ]);
2374
- let ee = (e) => {
2386
+ let ne = (e) => {
2375
2387
  if (e.key !== "Tab" || !P.current) return;
2376
2388
  let t = Array.from(P.current.querySelectorAll(Qt));
2377
2389
  if (t.length === 0) {
@@ -2382,53 +2394,53 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2382
2394
  e.shiftKey && (i === n || i === P.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
2383
2395
  };
2384
2396
  if (!w || !E) return null;
2385
- let te = document.querySelector(c) ?? document.body, H = [
2397
+ let re = document.querySelector(c) ?? document.body, B = [
2386
2398
  Z.modal,
2387
2399
  Z[n],
2388
2400
  Z[r],
2389
2401
  O && Z.visible,
2390
2402
  o && Z.instant,
2391
2403
  y
2392
- ].filter(Boolean).join(" "), ne = {
2404
+ ].filter(Boolean).join(" "), ie = {
2393
2405
  role: f,
2394
2406
  "aria-modal": !0,
2395
2407
  "aria-labelledby": g ?? S,
2396
2408
  "aria-describedby": A ? C : void 0,
2397
2409
  tabIndex: -1,
2398
- className: H,
2410
+ className: B,
2399
2411
  "data-testid": v,
2400
- onKeyDown: ee
2401
- }, re = {
2412
+ onKeyDown: ne
2413
+ }, ae = {
2402
2414
  layout: n,
2403
2415
  titleId: g ?? S,
2404
2416
  descriptionId: C,
2405
2417
  isMobile: M,
2406
2418
  dismissible: a,
2407
2419
  setHasDescription: j,
2408
- requestClose: V
2420
+ requestClose: z
2409
2421
  };
2410
2422
  return h(/* @__PURE__ */ _($t.Provider, {
2411
- value: re,
2423
+ value: ae,
2412
2424
  children: /* @__PURE__ */ _("div", {
2413
2425
  className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
2414
2426
  onPointerDown: (e) => {
2415
2427
  L.current = e.target !== e.currentTarget;
2416
2428
  },
2417
2429
  onClick: (e) => {
2418
- e.target === e.currentTarget && !L.current && V(), L.current = !1;
2430
+ e.target === e.currentTarget && !L.current && z(), L.current = !1;
2419
2431
  },
2420
2432
  children: i ? /* @__PURE__ */ _("form", {
2421
2433
  ref: P,
2422
2434
  onSubmit: i,
2423
- ...ne,
2435
+ ...ie,
2424
2436
  children: b
2425
2437
  }) : /* @__PURE__ */ _("div", {
2426
2438
  ref: P,
2427
- ...ne,
2439
+ ...ie,
2428
2440
  children: b
2429
2441
  })
2430
2442
  })
2431
- }), te);
2443
+ }), re);
2432
2444
  }
2433
2445
  function rn({ children: e, onClose: t }) {
2434
2446
  let { requestClose: n, dismissible: r } = en("Modal.Cover");
@@ -2436,7 +2448,7 @@ function rn({ children: e, onClose: t }) {
2436
2448
  className: Z.cover,
2437
2449
  children: [e, t && /* @__PURE__ */ _(O, {
2438
2450
  variant: "tertiary",
2439
- leadingIcon: /* @__PURE__ */ _(we, {}),
2451
+ leadingIcon: /* @__PURE__ */ _(Te, {}),
2440
2452
  "aria-label": "Close",
2441
2453
  "data-testid": "modal-close",
2442
2454
  className: Z.closeButton,
@@ -2723,12 +2735,12 @@ function wn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
2723
2735
  }
2724
2736
  }) : /* @__PURE__ */ _("div", {
2725
2737
  className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
2726
- children: t === "play" ? /* @__PURE__ */ _(ve, {
2738
+ children: t === "play" ? /* @__PURE__ */ _(ye, {
2727
2739
  size: 20,
2728
2740
  "aria-hidden": "true"
2729
2741
  }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
2730
2742
  className: $.icon,
2731
- children: _(t === "archived" ? re : ge, {
2743
+ children: _(t === "archived" ? ae : _e, {
2732
2744
  size: 12,
2733
2745
  strokeWidth: 1,
2734
2746
  "aria-hidden": "true"
@@ -2784,7 +2796,7 @@ function wn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
2784
2796
  }) : /* @__PURE__ */ _("div", {
2785
2797
  className: `${$.photo} ${$.emptyPhoto}`,
2786
2798
  "aria-hidden": "true",
2787
- children: /* @__PURE__ */ _(Se, { size: 20 })
2799
+ children: /* @__PURE__ */ _(Ce, { size: 20 })
2788
2800
  }), /* @__PURE__ */ v("div", {
2789
2801
  className: $.workerText,
2790
2802
  children: [/* @__PURE__ */ _("div", {
@@ -2858,6 +2870,6 @@ function On(e, t) {
2858
2870
  return `${i(n)}:${i(r)}:${i(t)}`;
2859
2871
  }
2860
2872
  //#endregion
2861
- export { O as Button, pt as Calendar, A as Card, Be as Checkbox, He as CheckboxGroup, fn as ConfirmDialog, Qe as DateField, vt as DatePicker, kt as Dropdown, gn as EmptyState, je as FieldLabel, Ut as FilterSection, Vt as HighlightText, Rt as LanguageSwitch, Ft as Logo, St as Menu, Ct as MenuDivider, Tt as MenuItem, Q as Modal, Nt as NavItem, Pt as NavList, bt as NumberField, Ze as PasswordField, Sn as PhotoPreview, We as RadioButton, Ge as RadioGroup, It as Sidebar, Lt as SidebarFooter, mn as Skeleton, Jt as Spinner, qe as Switch, Wt as Tabs, De as Tag, Me as TagGroup, Xe as TextArea, Je as TextField, Kt as Toggle, Pe as Toolbar, Re as ToolbarAdaptive, S as Tooltip, En as VideoCard, Dn as formatDuration, On as formatDurationHMS };
2873
+ export { O as Button, pt as Calendar, A as Card, Be as Checkbox, He as CheckboxGroup, fn as ConfirmDialog, Qe as DateField, vt as DatePicker, kt as Dropdown, gn as EmptyState, W as FieldLabel, Ut as FilterSection, Vt as HighlightText, Rt as LanguageSwitch, Ft as Logo, St as Menu, Ct as MenuDivider, Tt as MenuItem, Q as Modal, Nt as NavItem, Pt as NavList, bt as NumberField, Ze as PasswordField, Sn as PhotoPreview, We as RadioButton, Ge as RadioGroup, It as Sidebar, Lt as SidebarFooter, mn as Skeleton, Jt as Spinner, qe as Switch, Wt as Tabs, Oe as Tag, Me as TagGroup, Xe as TextArea, Je as TextField, Kt as Toggle, Pe as Toolbar, Re as ToolbarAdaptive, S as Tooltip, En as VideoCard, Dn as formatDuration, On as formatDurationHMS };
2862
2874
 
2863
2875
  //# sourceMappingURL=index.js.map