@purpurds/quantity-selector 5.35.0 → 6.0.1

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,5 +1,5 @@
1
1
  import { jsx as o, jsxs as q, Fragment as Hr } from "react/jsx-runtime";
2
- import { forwardRef as N, Children as Q, isValidElement as Y, createElement as J, cloneElement as br, useEffect as tr, useId as Rr, Fragment as Tr, useRef as Qr, useState as pr } from "react";
2
+ import { forwardRef as N, Children as Q, isValidElement as U, createElement as J, cloneElement as br, useEffect as tr, useId as Rr, Fragment as Tr, useRef as Qr, useState as pr } from "react";
3
3
  import "react-dom";
4
4
  function Jr(t) {
5
5
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -40,20 +40,20 @@ var yr = { exports: {} };
40
40
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
41
41
  })();
42
42
  })(yr);
43
- var Ur = yr.exports;
44
- const ar = /* @__PURE__ */ Jr(Ur), Yr = "_rotate_1xozj_1", Kr = "_dash_1xozj_1", I = {
43
+ var Kr = yr.exports;
44
+ const ar = /* @__PURE__ */ Jr(Kr), Ur = "_rotate_1xozj_1", Wr = "_dash_1xozj_1", I = {
45
45
  "purpur-spinner": "_purpur-spinner_1xozj_1",
46
- rotate: Yr,
46
+ rotate: Ur,
47
47
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
48
48
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
49
49
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
50
50
  "purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
51
51
  "purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
52
52
  "purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
53
- dash: Kr,
53
+ dash: Wr,
54
54
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
55
55
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
56
- }, F = "purpur-spinner", Wr = {
56
+ }, F = "purpur-spinner", Yr = {
57
57
  XXS: "xxs",
58
58
  XS: "xs",
59
59
  SM: "sm",
@@ -63,7 +63,7 @@ const ar = /* @__PURE__ */ Jr(Ur), Yr = "_rotate_1xozj_1", Kr = "_dash_1xozj_1",
63
63
  ["data-testid"]: t,
64
64
  disabled: i = !1,
65
65
  negative: n = !1,
66
- size: p = Wr.SM,
66
+ size: p = Yr.SM,
67
67
  ...a
68
68
  }) => /* @__PURE__ */ o(
69
69
  "div",
@@ -336,31 +336,26 @@ const vt = /* @__PURE__ */ ft(gt), xt = {
336
336
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
337
337
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
338
338
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
339
- }, mt = {
340
- name: "error-filled",
341
- 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>',
342
- keywords: ["error-filled"],
343
- category: "status"
344
- }, bt = vt.bind(xt), sr = "purpur-icon", yt = "md", ht = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), wt = ({ content: t = "", title: i } = {}) => {
339
+ }, mt = vt.bind(xt), sr = "purpur-icon", bt = "md", yt = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), ht = ({ content: t = "", title: i } = {}) => {
345
340
  const n = [
346
341
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
347
342
  { name: "fill", value: "currentColor" },
348
343
  { name: "viewBox", value: "0 0 24 24" },
349
344
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
350
345
  ], p = i ? `<title>${i}</title>` : "";
351
- return `<svg ${ht(n)}>${p}${t}</svg>`;
352
- }, $t = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Sr = ({
346
+ return `<svg ${yt(n)}>${p}${t}</svg>`;
347
+ }, wt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Sr = ({
353
348
  ["data-testid"]: t,
354
349
  svg: i,
355
350
  allyTitle: n,
356
351
  className: p,
357
- size: a = yt,
352
+ size: a = bt,
358
353
  ...r
359
354
  }) => {
360
- const e = wt({
361
- content: $t(i.svg),
355
+ const e = ht({
356
+ content: wt(i.svg),
362
357
  title: n
363
- }), u = bt(p, sr, `${sr}--${a}`);
358
+ }), u = mt(p, sr, `${sr}--${a}`);
364
359
  return /* @__PURE__ */ o(
365
360
  "span",
366
361
  {
@@ -373,6 +368,12 @@ const vt = /* @__PURE__ */ ft(gt), xt = {
373
368
  );
374
369
  };
375
370
  Sr.displayName = "Icon";
371
+ const $t = {
372
+ name: "error-filled",
373
+ 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>',
374
+ keywords: ["error-filled"],
375
+ category: "status"
376
+ };
376
377
  function jt(t) {
377
378
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
378
379
  }
@@ -431,7 +432,7 @@ const qt = /* @__PURE__ */ jt(St), lr = {
431
432
  "aria-relevant": p,
432
433
  ...a,
433
434
  children: [
434
- /* @__PURE__ */ o(Sr, { svg: mt, size: "xs", className: lr[`${cr}__icon`] }),
435
+ /* @__PURE__ */ o(Sr, { svg: $t, size: "xs", className: lr[`${cr}__icon`] }),
435
436
  i
436
437
  ]
437
438
  }
@@ -544,52 +545,26 @@ const Bt = /* @__PURE__ */ Pt(Ct), Dt = {
544
545
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
545
546
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
546
547
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
547
- }, Lt = {
548
- name: "check-circle-filled",
549
- 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>',
550
- keywords: ["check-circle-filled"],
551
- category: "status"
552
- }, Xt = {
553
- name: "close",
554
- 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>',
555
- keywords: ["close"],
556
- category: "utility"
557
- }, Or = (t) => /* @__PURE__ */ o(
558
- nr,
559
- {
560
- ...t,
561
- svg: Lt
562
- }
563
- );
564
- Or.displayName = "IconCheckCircleFilled";
565
- const Mr = (t) => /* @__PURE__ */ o(
566
- nr,
567
- {
568
- ...t,
569
- svg: Xt
570
- }
571
- );
572
- Mr.displayName = "IconClose";
573
- const kt = Bt.bind(Dt), fr = "purpur-icon", It = "md", Ft = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), Et = ({ content: t = "", title: i } = {}) => {
548
+ }, Lt = Bt.bind(Dt), fr = "purpur-icon", kt = "md", Xt = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), It = ({ content: t = "", title: i } = {}) => {
574
549
  const n = [
575
550
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
576
551
  { name: "fill", value: "currentColor" },
577
552
  { name: "viewBox", value: "0 0 24 24" },
578
553
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
579
554
  ], p = i ? `<title>${i}</title>` : "";
580
- return `<svg ${Ft(n)}>${p}${t}</svg>`;
581
- }, Vt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({
555
+ return `<svg ${Xt(n)}>${p}${t}</svg>`;
556
+ }, Ft = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({
582
557
  ["data-testid"]: t,
583
558
  svg: i,
584
559
  allyTitle: n,
585
560
  className: p,
586
- size: a = It,
561
+ size: a = kt,
587
562
  ...r
588
563
  }) => {
589
- const e = Et({
590
- content: Vt(i.svg),
564
+ const e = It({
565
+ content: Ft(i.svg),
591
566
  title: n
592
- }), u = kt(p, fr, `${fr}--${a}`);
567
+ }), u = Lt(p, fr, `${fr}--${a}`);
593
568
  return /* @__PURE__ */ o(
594
569
  "span",
595
570
  {
@@ -602,14 +577,28 @@ const kt = Bt.bind(Dt), fr = "purpur-icon", It = "md", Ft = (t) => t.filter((i)
602
577
  );
603
578
  };
604
579
  nr.displayName = "Icon";
605
- function X() {
606
- return X = Object.assign ? Object.assign.bind() : function(t) {
580
+ const Et = {
581
+ name: "check-circle-filled",
582
+ 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>',
583
+ keywords: ["check-circle-filled"],
584
+ category: "status"
585
+ }, Or = (t) => /* @__PURE__ */ o(nr, { ...t, svg: Et });
586
+ Or.displayName = "IconCheckCircleFilled";
587
+ const Vt = {
588
+ name: "close",
589
+ 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>',
590
+ keywords: ["close"],
591
+ category: "utility"
592
+ }, Mr = (t) => /* @__PURE__ */ o(nr, { ...t, svg: Vt });
593
+ Mr.displayName = "IconClose";
594
+ function k() {
595
+ return k = Object.assign ? Object.assign.bind() : function(t) {
607
596
  for (var i = 1; i < arguments.length; i++) {
608
597
  var n = arguments[i];
609
598
  for (var p in n) ({}).hasOwnProperty.call(n, p) && (t[p] = n[p]);
610
599
  }
611
600
  return t;
612
- }, X.apply(null, arguments);
601
+ }, k.apply(null, arguments);
613
602
  }
614
603
  function Zt(t, i) {
615
604
  typeof t == "function" ? t(i) : t != null && (t.current = i);
@@ -622,19 +611,19 @@ function Gt(...t) {
622
611
  const Ar = /* @__PURE__ */ N((t, i) => {
623
612
  const { children: n, ...p } = t, a = Q.toArray(n), r = a.find(Rt);
624
613
  if (r) {
625
- const e = r.props.children, u = a.map((d) => d === r ? Q.count(e) > 1 ? Q.only(null) : /* @__PURE__ */ Y(e) ? e.props.children : null : d);
626
- return /* @__PURE__ */ J(er, X({}, p, {
614
+ const e = r.props.children, u = a.map((d) => d === r ? Q.count(e) > 1 ? Q.only(null) : /* @__PURE__ */ U(e) ? e.props.children : null : d);
615
+ return /* @__PURE__ */ J(er, k({}, p, {
627
616
  ref: i
628
- }), /* @__PURE__ */ Y(e) ? /* @__PURE__ */ br(e, void 0, u) : null);
617
+ }), /* @__PURE__ */ U(e) ? /* @__PURE__ */ br(e, void 0, u) : null);
629
618
  }
630
- return /* @__PURE__ */ J(er, X({}, p, {
619
+ return /* @__PURE__ */ J(er, k({}, p, {
631
620
  ref: i
632
621
  }), n);
633
622
  });
634
623
  Ar.displayName = "Slot";
635
624
  const er = /* @__PURE__ */ N((t, i) => {
636
625
  const { children: n, ...p } = t;
637
- return /* @__PURE__ */ Y(n) ? /* @__PURE__ */ br(n, {
626
+ return /* @__PURE__ */ U(n) ? /* @__PURE__ */ br(n, {
638
627
  ...Tt(p, n.props),
639
628
  ref: i ? Gt(i, n.ref) : n.ref
640
629
  }) : Q.count(n) > 1 ? Q.only(null) : null;
@@ -642,7 +631,7 @@ const er = /* @__PURE__ */ N((t, i) => {
642
631
  er.displayName = "SlotClone";
643
632
  const Ht = ({ children: t }) => /* @__PURE__ */ J(Tr, null, t);
644
633
  function Rt(t) {
645
- return /* @__PURE__ */ Y(t) && t.type === Ht;
634
+ return /* @__PURE__ */ U(t) && t.type === Ht;
646
635
  }
647
636
  function Tt(t, i) {
648
637
  const n = {
@@ -687,7 +676,7 @@ const Qt = [
687
676
  const { asChild: r, ...e } = p, u = r ? Ar : i;
688
677
  return tr(() => {
689
678
  window[Symbol.for("radix-ui")] = !0;
690
- }, []), /* @__PURE__ */ J(u, X({}, e, {
679
+ }, []), /* @__PURE__ */ J(u, k({}, e, {
691
680
  ref: a
692
681
  }));
693
682
  });
@@ -695,14 +684,14 @@ const Qt = [
695
684
  ...t,
696
685
  [i]: n
697
686
  };
698
- }, {}), Ut = /* @__PURE__ */ N((t, i) => /* @__PURE__ */ J(Jt.label, X({}, t, {
687
+ }, {}), Kt = /* @__PURE__ */ N((t, i) => /* @__PURE__ */ J(Jt.label, k({}, t, {
699
688
  ref: i,
700
689
  onMouseDown: (n) => {
701
690
  var p;
702
691
  (p = t.onMouseDown) === null || p === void 0 || p.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault();
703
692
  }
704
- }))), Yt = Ut;
705
- function Kt(t) {
693
+ }))), Ut = Kt;
694
+ function Wt(t) {
706
695
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
707
696
  }
708
697
  var Pr = { exports: {} };
@@ -741,8 +730,8 @@ var Pr = { exports: {} };
741
730
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
742
731
  })();
743
732
  })(Pr);
744
- var Wt = Pr.exports;
745
- const re = /* @__PURE__ */ Kt(Wt), W = {
733
+ var Yt = Pr.exports;
734
+ const re = /* @__PURE__ */ Wt(Yt), Y = {
746
735
  "purpur-label": "_purpur-label_12cfi_1",
747
736
  "purpur-label--negative": "_purpur-label--negative_12cfi_9",
748
737
  "purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
@@ -757,13 +746,13 @@ const re = /* @__PURE__ */ Kt(Wt), W = {
757
746
  }) => {
758
747
  const u = re([
759
748
  i,
760
- W[rr],
749
+ Y[rr],
761
750
  {
762
- [W[`${rr}--disabled`]]: a,
763
- [W[`${rr}--negative`]]: r
751
+ [Y[`${rr}--disabled`]]: a,
752
+ [Y[`${rr}--negative`]]: r
764
753
  }
765
754
  ]);
766
- return /* @__PURE__ */ o(Yt, { className: u, "data-testid": p, htmlFor: n, ...e, children: t });
755
+ return /* @__PURE__ */ o(Ut, { className: u, "data-testid": p, htmlFor: n, ...e, children: t });
767
756
  };
768
757
  function ee(t) {
769
758
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -928,7 +917,7 @@ const le = /* @__PURE__ */ oe(se), ce = {
928
917
  }, M = () => {
929
918
  var _;
930
919
  f == null || f(), (_ = D.current) == null || _.focus();
931
- }, k = [
920
+ }, X = [
932
921
  v && /* @__PURE__ */ o(
933
922
  ae,
934
923
  {
@@ -959,11 +948,11 @@ const le = /* @__PURE__ */ oe(se), ce = {
959
948
  },
960
949
  "valid-icon"
961
950
  )
962
- ].filter((_) => !!_), K = j([
951
+ ].filter((_) => !!_), W = j([
963
952
  `${c}__input-container`,
964
953
  {
965
954
  [`${c}__input-container--start-adornment`]: b.length,
966
- [`${c}__input-container--end-adornment`]: k.length || r,
955
+ [`${c}__input-container--end-adornment`]: X.length || r,
967
956
  [`${c}__input-container--disabled`]: s.disabled,
968
957
  [`${c}__input-container--has-clear-button`]: B,
969
958
  [`${c}__input-container--readonly`]: s.readOnly && !s.disabled
@@ -982,7 +971,7 @@ const le = /* @__PURE__ */ oe(se), ce = {
982
971
  ),
983
972
  /* @__PURE__ */ q("div", { className: j(`${c}__field-row`), children: [
984
973
  !!p && p,
985
- /* @__PURE__ */ q("div", { className: K, children: [
974
+ /* @__PURE__ */ q("div", { className: W, children: [
986
975
  !!b.length && /* @__PURE__ */ o(
987
976
  "div",
988
977
  {
@@ -1010,13 +999,13 @@ const le = /* @__PURE__ */ oe(se), ce = {
1010
999
  }
1011
1000
  ),
1012
1001
  /* @__PURE__ */ o("div", { className: j(`${c}__frame`) }),
1013
- (!!k.length || r) && /* @__PURE__ */ q(
1002
+ (!!X.length || r) && /* @__PURE__ */ q(
1014
1003
  "div",
1015
1004
  {
1016
1005
  "data-testid": l("end-adornments"),
1017
1006
  className: j(`${c}__adornment-container`),
1018
1007
  children: [
1019
- k,
1008
+ X,
1020
1009
  r
1021
1010
  ]
1022
1011
  }
@@ -1069,7 +1058,7 @@ var Lr = { exports: {} };
1069
1058
  })();
1070
1059
  })(Lr);
1071
1060
  var ge = Lr.exports;
1072
- const Xr = /* @__PURE__ */ fe(ge), ve = {
1061
+ const kr = /* @__PURE__ */ fe(ge), ve = {
1073
1062
  "purpur-quantity-selector": "_purpur-quantity-selector_lzxe3_1",
1074
1063
  "purpur-quantity-selector--full-width": "_purpur-quantity-selector--full-width_lzxe3_21",
1075
1064
  "purpur-quantity-selector--loading": "_purpur-quantity-selector--loading_lzxe3_27",
@@ -1089,7 +1078,7 @@ const Xr = /* @__PURE__ */ fe(ge), ve = {
1089
1078
  function me(t) {
1090
1079
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1091
1080
  }
1092
- var kr = { exports: {} };
1081
+ var Xr = { exports: {} };
1093
1082
  /*!
1094
1083
  Copyright (c) 2018 Jed Watson.
1095
1084
  Licensed under the MIT License (MIT), see
@@ -1124,8 +1113,8 @@ var kr = { exports: {} };
1124
1113
  }
1125
1114
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1126
1115
  })();
1127
- })(kr);
1128
- var be = kr.exports;
1116
+ })(Xr);
1117
+ var be = Xr.exports;
1129
1118
  const vr = /* @__PURE__ */ me(be), ye = "_rotate_1xozj_1", he = "_dash_1xozj_1", H = {
1130
1119
  "purpur-spinner": "_purpur-spinner_1xozj_1",
1131
1120
  rotate: ye,
@@ -1332,52 +1321,26 @@ const Pe = /* @__PURE__ */ Me(Ae), Ce = {
1332
1321
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
1333
1322
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
1334
1323
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
1335
- }, Be = {
1336
- name: "minus",
1337
- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.1 12a.9.9 0 0 1 .9-.9h14a.9.9 0 1 1 0 1.8H5a.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',
1338
- keywords: ["minus"],
1339
- category: "utility"
1340
- }, De = {
1341
- name: "plus",
1342
- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 4.1a.9.9 0 0 1 .9.9v6.1H19a.9.9 0 1 1 0 1.8h-6.1V19a.9.9 0 0 1-1.8 0v-6.1H5a.9.9 0 0 1 0-1.8h6.1V5a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/></svg>',
1343
- keywords: ["plus"],
1344
- category: "utility"
1345
- }, Vr = (t) => /* @__PURE__ */ o(
1346
- ur,
1347
- {
1348
- ...t,
1349
- svg: Be
1350
- }
1351
- );
1352
- Vr.displayName = "IconMinus";
1353
- const Zr = (t) => /* @__PURE__ */ o(
1354
- ur,
1355
- {
1356
- ...t,
1357
- svg: De
1358
- }
1359
- );
1360
- Zr.displayName = "IconPlus";
1361
- const Le = Pe.bind(Ce), xr = "purpur-icon", Xe = "md", ke = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), Ie = ({ content: t = "", title: i } = {}) => {
1324
+ }, Be = Pe.bind(Ce), xr = "purpur-icon", De = "md", Le = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), ke = ({ content: t = "", title: i } = {}) => {
1362
1325
  const n = [
1363
1326
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1364
1327
  { name: "fill", value: "currentColor" },
1365
1328
  { name: "viewBox", value: "0 0 24 24" },
1366
1329
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1367
1330
  ], p = i ? `<title>${i}</title>` : "";
1368
- return `<svg ${ke(n)}>${p}${t}</svg>`;
1369
- }, Fe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ur = ({
1331
+ return `<svg ${Le(n)}>${p}${t}</svg>`;
1332
+ }, Xe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ur = ({
1370
1333
  ["data-testid"]: t,
1371
1334
  svg: i,
1372
1335
  allyTitle: n,
1373
1336
  className: p,
1374
- size: a = Xe,
1337
+ size: a = De,
1375
1338
  ...r
1376
1339
  }) => {
1377
- const e = Ie({
1378
- content: Fe(i.svg),
1340
+ const e = ke({
1341
+ content: Xe(i.svg),
1379
1342
  title: n
1380
- }), u = Le(p, xr, `${xr}--${a}`);
1343
+ }), u = Be(p, xr, `${xr}--${a}`);
1381
1344
  return /* @__PURE__ */ o(
1382
1345
  "span",
1383
1346
  {
@@ -1390,13 +1353,27 @@ const Le = Pe.bind(Ce), xr = "purpur-icon", Xe = "md", ke = (t) => t.filter((i)
1390
1353
  );
1391
1354
  };
1392
1355
  ur.displayName = "Icon";
1356
+ const Ie = {
1357
+ name: "minus",
1358
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.1 12a.9.9 0 0 1 .9-.9h14a.9.9 0 1 1 0 1.8H5a.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',
1359
+ keywords: ["minus"],
1360
+ category: "utility"
1361
+ }, Vr = (t) => /* @__PURE__ */ o(ur, { ...t, svg: Ie });
1362
+ Vr.displayName = "IconMinus";
1363
+ const Fe = {
1364
+ name: "plus",
1365
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 4.1a.9.9 0 0 1 .9.9v6.1H19a.9.9 0 1 1 0 1.8h-6.1V19a.9.9 0 0 1-1.8 0v-6.1H5a.9.9 0 0 1 0-1.8h6.1V5a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/></svg>',
1366
+ keywords: ["plus"],
1367
+ category: "utility"
1368
+ }, Zr = (t) => /* @__PURE__ */ o(ur, { ...t, svg: Fe });
1369
+ Zr.displayName = "IconPlus";
1393
1370
  const Ee = {
1394
1371
  "purpur-quantity-selector-button": "_purpur-quantity-selector-button_qjlbs_1",
1395
1372
  "purpur-quantity-selector-button--gap-left": "_purpur-quantity-selector-button--gap-left_qjlbs_4",
1396
1373
  "purpur-quantity-selector-button--gap-right": "_purpur-quantity-selector-button--gap-right_qjlbs_7",
1397
1374
  "purpur-quantity-selector-button--no-gap-right": "_purpur-quantity-selector-button--no-gap-right_qjlbs_10",
1398
1375
  "purpur-quantity-selector-button--no-gap-left": "_purpur-quantity-selector-button--no-gap-left_qjlbs_13"
1399
- }, Ve = Xr.bind(Ee), T = "purpur-quantity-selector-button", Ze = ({
1376
+ }, Ve = kr.bind(Ee), T = "purpur-quantity-selector-button", Ze = ({
1400
1377
  ["data-testid"]: t,
1401
1378
  disabled: i,
1402
1379
  hasGap: n,
@@ -1428,7 +1405,7 @@ const Ee = {
1428
1405
  children: a === "increment" ? /* @__PURE__ */ o(Zr, { size: "xs" }) : /* @__PURE__ */ o(Vr, { size: "xs" })
1429
1406
  }
1430
1407
  );
1431
- }, mr = Xr.bind(ve), Qe = ["attached", "separated"], Je = ["primary", "secondary"], h = "purpur-quantity-selector", Ge = N(
1408
+ }, mr = kr.bind(ve), Qe = ["attached", "separated"], Je = ["primary", "secondary"], h = "purpur-quantity-selector", Ge = N(
1432
1409
  ({
1433
1410
  ["data-testid"]: t,
1434
1411
  className: i,
@@ -1455,7 +1432,7 @@ const Ee = {
1455
1432
  return () => clearTimeout(g);
1456
1433
  }
1457
1434
  }, [m, l, a]);
1458
- const k = mr([
1435
+ const X = mr([
1459
1436
  i,
1460
1437
  h,
1461
1438
  {
@@ -1466,11 +1443,11 @@ const Ee = {
1466
1443
  [`${h}--full-width`]: u,
1467
1444
  [`${h}--loading`]: v
1468
1445
  }
1469
- ]), K = (g) => {
1446
+ ]), W = (g) => {
1470
1447
  if (!/^[0-9]*$/.test(g.target.value))
1471
1448
  return;
1472
- const U = +g.target.value;
1473
- U < B || U > D || (l || x(U), a(U));
1449
+ const K = +g.target.value;
1450
+ K < B || K > D || (l || x(K), a(K));
1474
1451
  }, _ = (g) => {
1475
1452
  const L = g === "increment" ? S + 1 : S - 1;
1476
1453
  L < 0 || (l || x(L), a(L));
@@ -1517,9 +1494,9 @@ const Ee = {
1517
1494
  value: S,
1518
1495
  type: "number",
1519
1496
  ref: s,
1520
- className: k,
1497
+ className: X,
1521
1498
  "data-testid": t,
1522
- onChange: K,
1499
+ onChange: W,
1523
1500
  beforeField: Gr,
1524
1501
  afterField: ir("increment"),
1525
1502
  disabled: b,