@purpurds/checkbox 4.6.0 → 5.0.0

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
- import { jsxs as z, jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as g, Children as v, isValidElement as x, createElement as p, cloneElement as R, useEffect as A, Fragment as re, useCallback as Z, createContext as V, useMemo as k, useContext as _e, useRef as $, useState as I, useLayoutEffect as ge, useReducer as $e } from "react";
1
+ import { jsxs as U, jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as _, Children as v, isValidElement as x, createElement as p, cloneElement as R, useEffect as A, Fragment as re, useCallback as G, createContext as K, useMemo as k, useContext as ge, useRef as $, useState as I, useLayoutEffect as _e, useReducer as $e } from "react";
3
3
  import { flushSync as ye } from "react-dom";
4
4
  function xe(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -54,7 +54,7 @@ const Ne = /* @__PURE__ */ xe(we), Se = {
54
54
  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>',
55
55
  keywords: ["error-filled"],
56
56
  category: "status"
57
- }, Oe = Ne.bind(Se), G = "purpur-icon", Ce = "md", Pe = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ke = ({ content: e = "", title: n } = {}) => {
57
+ }, Oe = Ne.bind(Se), W = "purpur-icon", Ce = "md", Pe = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ke = ({ content: e = "", title: n } = {}) => {
58
58
  const t = [
59
59
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
60
60
  { name: "fill", value: "currentColor" },
@@ -73,7 +73,7 @@ const Ne = /* @__PURE__ */ xe(we), Se = {
73
73
  const o = ke({
74
74
  content: Ee(n.svg),
75
75
  title: t
76
- }), i = Oe(a, G, `${G}--${u}`);
76
+ }), i = Oe(a, W, `${W}--${u}`);
77
77
  return /* @__PURE__ */ f(
78
78
  "span",
79
79
  {
@@ -125,25 +125,25 @@ var ne = { exports: {} };
125
125
  })();
126
126
  })(ne);
127
127
  var Re = ne.exports;
128
- const De = /* @__PURE__ */ Me(Re), K = {
128
+ const De = /* @__PURE__ */ Me(Re), X = {
129
129
  "purpur-field-error-text": "_purpur-field-error-text_1u768_1",
130
130
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"
131
- }, W = "purpur-field-error-text", qe = ({
131
+ }, J = "purpur-field-error-text", qe = ({
132
132
  ["data-testid"]: e,
133
133
  children: n,
134
134
  className: t,
135
135
  relevant: a = "additions text",
136
136
  ...u
137
- }) => /* @__PURE__ */ z(
137
+ }) => /* @__PURE__ */ U(
138
138
  "div",
139
139
  {
140
- className: De([t, K[W]]),
140
+ className: De([t, X[J]]),
141
141
  "data-testid": e,
142
142
  "aria-live": "assertive",
143
143
  "aria-relevant": a,
144
144
  ...u,
145
145
  children: [
146
- /* @__PURE__ */ f(je, { svg: Ae, size: "xs", className: K[`${W}__icon`] }),
146
+ /* @__PURE__ */ f(je, { svg: Ae, size: "xs", className: X[`${J}__icon`] }),
147
147
  n
148
148
  ]
149
149
  }
@@ -206,7 +206,7 @@ const Be = /* @__PURE__ */ Ie(Le), ze = {
206
206
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 12c0-1.105.711-2 1.588-2h14.824c.877 0 1.588.895 1.588 2s-.711 2-1.588 2H4.588C3.711 14 3 13.105 3 12Z" clip-rule="evenodd"/></svg>',
207
207
  keywords: ["minus-bold"],
208
208
  category: "utility"
209
- }, He = Be.bind(ze), X = "purpur-icon", Fe = "md", Ze = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Ve = ({ content: e = "", title: n } = {}) => {
209
+ }, He = Be.bind(ze), Q = "purpur-icon", Fe = "md", Ze = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Ve = ({ content: e = "", title: n } = {}) => {
210
210
  const t = [
211
211
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
212
212
  { name: "fill", value: "currentColor" },
@@ -214,7 +214,7 @@ const Be = /* @__PURE__ */ Ie(Le), ze = {
214
214
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
215
215
  ], a = n ? `<title>${n}</title>` : "";
216
216
  return `<svg ${Ze(t)}>${a}${e}</svg>`;
217
- }, Ge = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
217
+ }, Ge = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Y = ({
218
218
  ["data-testid"]: e,
219
219
  svg: n,
220
220
  allyTitle: t,
@@ -225,7 +225,7 @@ const Be = /* @__PURE__ */ Ie(Le), ze = {
225
225
  const o = Ve({
226
226
  content: Ge(n.svg),
227
227
  title: t
228
- }), i = He(a, X, `${X}--${u}`);
228
+ }), i = He(a, Q, `${Q}--${u}`);
229
229
  return /* @__PURE__ */ f(
230
230
  "span",
231
231
  {
@@ -237,15 +237,15 @@ const Be = /* @__PURE__ */ Ie(Le), ze = {
237
237
  }
238
238
  );
239
239
  };
240
- function T() {
241
- return T = Object.assign ? Object.assign.bind() : function(e) {
240
+ function H() {
241
+ return H = Object.assign ? Object.assign.bind() : function(e) {
242
242
  for (var n = 1; n < arguments.length; n++) {
243
243
  var t = arguments[n];
244
244
  for (var a in t)
245
245
  Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
246
246
  }
247
247
  return e;
248
- }, T.apply(this, arguments);
248
+ }, H.apply(this, arguments);
249
249
  }
250
250
  function E() {
251
251
  return E = Object.assign ? Object.assign.bind() : function(e) {
@@ -265,27 +265,27 @@ function We(...e) {
265
265
  (t) => Ke(t, n)
266
266
  );
267
267
  }
268
- const ae = /* @__PURE__ */ g((e, n) => {
268
+ const ae = /* @__PURE__ */ _((e, n) => {
269
269
  const { children: t, ...a } = e, u = v.toArray(t), r = u.find(Je);
270
270
  if (r) {
271
271
  const o = r.props.children, i = u.map((c) => c === r ? v.count(o) > 1 ? v.only(null) : /* @__PURE__ */ x(o) ? o.props.children : null : c);
272
- return /* @__PURE__ */ p(U, E({}, a, {
272
+ return /* @__PURE__ */ p(F, E({}, a, {
273
273
  ref: n
274
274
  }), /* @__PURE__ */ x(o) ? /* @__PURE__ */ R(o, void 0, i) : null);
275
275
  }
276
- return /* @__PURE__ */ p(U, E({}, a, {
276
+ return /* @__PURE__ */ p(F, E({}, a, {
277
277
  ref: n
278
278
  }), t);
279
279
  });
280
280
  ae.displayName = "Slot";
281
- const U = /* @__PURE__ */ g((e, n) => {
281
+ const F = /* @__PURE__ */ _((e, n) => {
282
282
  const { children: t, ...a } = e;
283
283
  return /* @__PURE__ */ x(t) ? /* @__PURE__ */ R(t, {
284
284
  ...Qe(a, t.props),
285
285
  ref: n ? We(n, t.ref) : t.ref
286
286
  }) : v.count(t) > 1 ? v.only(null) : null;
287
287
  });
288
- U.displayName = "SlotClone";
288
+ F.displayName = "SlotClone";
289
289
  const Xe = ({ children: e }) => /* @__PURE__ */ p(re, null, e);
290
290
  function Je(e) {
291
291
  return /* @__PURE__ */ x(e) && e.type === Xe;
@@ -329,7 +329,7 @@ const Ye = [
329
329
  "svg",
330
330
  "ul"
331
331
  ], er = Ye.reduce((e, n) => {
332
- const t = /* @__PURE__ */ g((a, u) => {
332
+ const t = /* @__PURE__ */ _((a, u) => {
333
333
  const { asChild: r, ...o } = a, i = r ? ae : n;
334
334
  return A(() => {
335
335
  window[Symbol.for("radix-ui")] = !0;
@@ -341,7 +341,7 @@ const Ye = [
341
341
  ...e,
342
342
  [n]: t
343
343
  };
344
- }, {}), rr = /* @__PURE__ */ g((e, n) => /* @__PURE__ */ p(er.label, T({}, e, {
344
+ }, {}), rr = /* @__PURE__ */ _((e, n) => /* @__PURE__ */ p(er.label, H({}, e, {
345
345
  ref: n,
346
346
  onMouseDown: (t) => {
347
347
  var a;
@@ -351,7 +351,7 @@ const Ye = [
351
351
  function nr(e) {
352
352
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
353
353
  }
354
- var ue = { exports: {} };
354
+ var ie = { exports: {} };
355
355
  /*!
356
356
  Copyright (c) 2018 Jed Watson.
357
357
  Licensed under the MIT License (MIT), see
@@ -386,30 +386,35 @@ var ue = { exports: {} };
386
386
  }
387
387
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
388
388
  })();
389
- })(ue);
390
- var or = ue.exports;
391
- const ar = /* @__PURE__ */ nr(or), Q = {
392
- "purpur-label": "_purpur-label_1tkut_1",
393
- "purpur-label--disabled": "_purpur-label--disabled_1tkut_9"
394
- }, Y = "purpur-label", ur = ({
389
+ })(ie);
390
+ var or = ie.exports;
391
+ const ar = /* @__PURE__ */ nr(or), B = {
392
+ "purpur-label": "_purpur-label_12cfi_1",
393
+ "purpur-label--negative": "_purpur-label--negative_12cfi_9",
394
+ "purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
395
+ }, z = "purpur-label", ir = ({
395
396
  children: e,
396
397
  className: n,
397
398
  htmlFor: t,
398
399
  "data-testid": a,
399
400
  disabled: u,
400
- ...r
401
+ negative: r = !1,
402
+ ...o
401
403
  }) => {
402
- const o = ar([
404
+ const i = ar([
403
405
  n,
404
- Q[Y],
405
- { [Q[`${Y}--disabled`]]: u }
406
+ B[z],
407
+ {
408
+ [B[`${z}--disabled`]]: u,
409
+ [B[`${z}--negative`]]: r
410
+ }
406
411
  ]);
407
- return /* @__PURE__ */ f(tr, { className: o, "data-testid": a, htmlFor: t, ...r, children: e });
412
+ return /* @__PURE__ */ f(tr, { className: i, "data-testid": a, htmlFor: t, ...o, children: e });
408
413
  };
409
- function ir(e) {
414
+ function ur(e) {
410
415
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
411
416
  }
412
- var ie = { exports: {} };
417
+ var ue = { exports: {} };
413
418
  /*!
414
419
  Copyright (c) 2018 Jed Watson.
415
420
  Licensed under the MIT License (MIT), see
@@ -444,9 +449,9 @@ var ie = { exports: {} };
444
449
  }
445
450
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
446
451
  })();
447
- })(ie);
448
- var cr = ie.exports;
449
- const sr = /* @__PURE__ */ ir(cr), C = {
452
+ })(ue);
453
+ var cr = ue.exports;
454
+ const sr = /* @__PURE__ */ ur(cr), C = {
450
455
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
451
456
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
452
457
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -513,29 +518,29 @@ function ce(...e) {
513
518
  );
514
519
  }
515
520
  function se(...e) {
516
- return Z(ce(...e), e);
521
+ return G(ce(...e), e);
517
522
  }
518
523
  function fr(e, n = []) {
519
524
  let t = [];
520
525
  function a(r, o) {
521
- const i = /* @__PURE__ */ V(o), c = t.length;
526
+ const i = /* @__PURE__ */ K(o), c = t.length;
522
527
  t = [
523
528
  ...t,
524
529
  o
525
530
  ];
526
531
  function s(l) {
527
- const { scope: d, children: b, ..._ } = l, D = (d == null ? void 0 : d[e][c]) || i, y = k(
528
- () => _,
529
- Object.values(_)
532
+ const { scope: d, children: b, ...g } = l, D = (d == null ? void 0 : d[e][c]) || i, y = k(
533
+ () => g,
534
+ Object.values(g)
530
535
  );
531
536
  return /* @__PURE__ */ p(D.Provider, {
532
537
  value: y
533
538
  }, b);
534
539
  }
535
540
  function h(l, d) {
536
- const b = (d == null ? void 0 : d[e][c]) || i, _ = _e(b);
537
- if (_)
538
- return _;
541
+ const b = (d == null ? void 0 : d[e][c]) || i, g = ge(b);
542
+ if (g)
543
+ return g;
539
544
  if (o !== void 0)
540
545
  return o;
541
546
  throw new Error(`\`${l}\` must be used within \`${r}\``);
@@ -546,7 +551,7 @@ function fr(e, n = []) {
546
551
  ];
547
552
  }
548
553
  const u = () => {
549
- const r = t.map((o) => /* @__PURE__ */ V(o));
554
+ const r = t.map((o) => /* @__PURE__ */ K(o));
550
555
  return function(i) {
551
556
  const c = (i == null ? void 0 : i[e]) || r;
552
557
  return k(
@@ -622,7 +627,7 @@ function mr({ prop: e, defaultProp: n, onChange: t = () => {
622
627
  const [a, u] = vr({
623
628
  defaultProp: n,
624
629
  onChange: t
625
- }), r = e !== void 0, o = r ? e : a, i = le(t), c = Z((s) => {
630
+ }), r = e !== void 0, o = r ? e : a, i = le(t), c = G((s) => {
626
631
  if (r) {
627
632
  const l = typeof s == "function" ? s(e) : s;
628
633
  l !== e && i(l);
@@ -658,11 +663,11 @@ function br(e) {
658
663
  e
659
664
  ]);
660
665
  }
661
- const H = globalThis != null && globalThis.document ? ge : () => {
666
+ const Z = globalThis != null && globalThis.document ? _e : () => {
662
667
  };
663
- function _r(e) {
668
+ function gr(e) {
664
669
  const [n, t] = I(void 0);
665
- return H(() => {
670
+ return Z(() => {
666
671
  if (e) {
667
672
  t({
668
673
  width: e.offsetWidth,
@@ -692,7 +697,7 @@ function _r(e) {
692
697
  e
693
698
  ]), n;
694
699
  }
695
- function gr(e, n) {
700
+ function _r(e, n) {
696
701
  return $e((t, a) => {
697
702
  const u = n[t][a];
698
703
  return u ?? t;
@@ -708,7 +713,7 @@ const pe = (e) => {
708
713
  };
709
714
  pe.displayName = "Presence";
710
715
  function $r(e) {
711
- const [n, t] = I(), a = $({}), u = $(e), r = $("none"), o = e ? "mounted" : "unmounted", [i, c] = gr(o, {
716
+ const [n, t] = I(), a = $({}), u = $(e), r = $("none"), o = e ? "mounted" : "unmounted", [i, c] = _r(o, {
712
717
  mounted: {
713
718
  UNMOUNT: "unmounted",
714
719
  ANIMATION_OUT: "unmountSuspended"
@@ -726,7 +731,7 @@ function $r(e) {
726
731
  r.current = i === "mounted" ? s : "none";
727
732
  }, [
728
733
  i
729
- ]), H(() => {
734
+ ]), Z(() => {
730
735
  const s = a.current, h = u.current;
731
736
  if (h !== e) {
732
737
  const d = r.current, b = q(s);
@@ -735,7 +740,7 @@ function $r(e) {
735
740
  }, [
736
741
  e,
737
742
  c
738
- ]), H(() => {
743
+ ]), Z(() => {
739
744
  if (n) {
740
745
  const s = (l) => {
741
746
  const b = q(a.current).includes(l.animationName);
@@ -758,7 +763,7 @@ function $r(e) {
758
763
  "mounted",
759
764
  "unmountSuspended"
760
765
  ].includes(i),
761
- ref: Z((s) => {
766
+ ref: G((s) => {
762
767
  s && (a.current = getComputedStyle(s)), t(s);
763
768
  }, [])
764
769
  };
@@ -776,27 +781,27 @@ function M() {
776
781
  return e;
777
782
  }, M.apply(this, arguments);
778
783
  }
779
- const de = /* @__PURE__ */ g((e, n) => {
784
+ const de = /* @__PURE__ */ _((e, n) => {
780
785
  const { children: t, ...a } = e, u = v.toArray(t), r = u.find(xr);
781
786
  if (r) {
782
787
  const o = r.props.children, i = u.map((c) => c === r ? v.count(o) > 1 ? v.only(null) : /* @__PURE__ */ x(o) ? o.props.children : null : c);
783
- return /* @__PURE__ */ p(F, M({}, a, {
788
+ return /* @__PURE__ */ p(V, M({}, a, {
784
789
  ref: n
785
790
  }), /* @__PURE__ */ x(o) ? /* @__PURE__ */ R(o, void 0, i) : null);
786
791
  }
787
- return /* @__PURE__ */ p(F, M({}, a, {
792
+ return /* @__PURE__ */ p(V, M({}, a, {
788
793
  ref: n
789
794
  }), t);
790
795
  });
791
796
  de.displayName = "Slot";
792
- const F = /* @__PURE__ */ g((e, n) => {
797
+ const V = /* @__PURE__ */ _((e, n) => {
793
798
  const { children: t, ...a } = e;
794
799
  return /* @__PURE__ */ x(t) ? /* @__PURE__ */ R(t, {
795
800
  ...wr(a, t.props),
796
801
  ref: n ? ce(n, t.ref) : t.ref
797
802
  }) : v.count(t) > 1 ? v.only(null) : null;
798
803
  });
799
- F.displayName = "SlotClone";
804
+ V.displayName = "SlotClone";
800
805
  const yr = ({ children: e }) => /* @__PURE__ */ p(re, null, e);
801
806
  function xr(e) {
802
807
  return /* @__PURE__ */ x(e) && e.type === yr;
@@ -840,7 +845,7 @@ const Nr = [
840
845
  "svg",
841
846
  "ul"
842
847
  ], fe = Nr.reduce((e, n) => {
843
- const t = /* @__PURE__ */ g((a, u) => {
848
+ const t = /* @__PURE__ */ _((a, u) => {
844
849
  const { asChild: r, ...o } = a, i = r ? de : n;
845
850
  return A(() => {
846
851
  window[Symbol.for("radix-ui")] = !0;
@@ -852,11 +857,11 @@ const Nr = [
852
857
  ...e,
853
858
  [n]: t
854
859
  };
855
- }, {}), he = "Checkbox", [Sr, Tr] = fr(he), [Ar, Or] = Sr(he), Cr = /* @__PURE__ */ g((e, n) => {
860
+ }, {}), he = "Checkbox", [Sr, Tr] = fr(he), [Ar, Or] = Sr(he), Cr = /* @__PURE__ */ _((e, n) => {
856
861
  const { __scopeCheckbox: t, name: a, checked: u, defaultChecked: r, required: o, disabled: i, value: c = "on", onCheckedChange: s, ...h } = e, [l, d] = I(null), b = se(
857
862
  n,
858
863
  (m) => d(m)
859
- ), _ = $(!1), D = l ? !!l.closest("form") : !0, [y = !1, L] = mr({
864
+ ), g = $(!1), D = l ? !!l.closest("form") : !0, [y = !1, L] = mr({
860
865
  prop: u,
861
866
  defaultProp: r,
862
867
  onChange: s
@@ -891,11 +896,11 @@ const Nr = [
891
896
  onClick: ee(e.onClick, (m) => {
892
897
  L(
893
898
  (O) => S(O) ? !0 : !O
894
- ), D && (_.current = m.isPropagationStopped(), _.current || m.stopPropagation());
899
+ ), D && (g.current = m.isPropagationStopped(), g.current || m.stopPropagation());
895
900
  })
896
901
  })), D && /* @__PURE__ */ p(Er, {
897
902
  control: l,
898
- bubbles: !_.current,
903
+ bubbles: !g.current,
899
904
  name: a,
900
905
  value: c,
901
906
  checked: y,
@@ -905,7 +910,7 @@ const Nr = [
905
910
  transform: "translateX(-100%)"
906
911
  }
907
912
  }));
908
- }), Pr = "CheckboxIndicator", kr = /* @__PURE__ */ g((e, n) => {
913
+ }), Pr = "CheckboxIndicator", kr = /* @__PURE__ */ _((e, n) => {
909
914
  const { __scopeCheckbox: t, forceMount: a, ...u } = e, r = Or(Pr, t);
910
915
  return /* @__PURE__ */ p(pe, {
911
916
  present: a || S(r.state) || r.state === !0
@@ -920,7 +925,7 @@ const Nr = [
920
925
  }
921
926
  })));
922
927
  }), Er = (e) => {
923
- const { control: n, checked: t, bubbles: a = !0, ...u } = e, r = $(null), o = br(t), i = _r(n);
928
+ const { control: n, checked: t, bubbles: a = !0, ...u } = e, r = $(null), o = br(t), i = gr(n);
924
929
  return A(() => {
925
930
  const c = r.current, s = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(s, "checked").set;
926
931
  if (o !== t && l) {
@@ -997,7 +1002,7 @@ var ve = { exports: {} };
997
1002
  })();
998
1003
  })(ve);
999
1004
  var Dr = ve.exports;
1000
- const B = /* @__PURE__ */ Rr(Dr), w = {
1005
+ const T = /* @__PURE__ */ Rr(Dr), w = {
1001
1006
  "purpur-checkbox": "_purpur-checkbox_10fl8_1",
1002
1007
  "purpur-checkbox__box": "_purpur-checkbox__box_10fl8_7",
1003
1008
  "purpur-checkbox--error": "_purpur-checkbox--error_10fl8_16",
@@ -1015,28 +1020,28 @@ const B = /* @__PURE__ */ Rr(Dr), w = {
1015
1020
  ...o
1016
1021
  }, i) => {
1017
1022
  const c = a && !n;
1018
- return /* @__PURE__ */ z("div", { className: B([t, w[`${N}__wrapper`]]), children: [
1019
- /* @__PURE__ */ z("div", { className: B([t, w[`${N}__container`]]), children: [
1023
+ return /* @__PURE__ */ U("div", { className: T([t, w[`${N}__wrapper`]]), children: [
1024
+ /* @__PURE__ */ U("div", { className: T([t, w[`${N}__container`]]), children: [
1020
1025
  /* @__PURE__ */ f(
1021
1026
  jr,
1022
1027
  {
1023
1028
  ...o,
1024
1029
  checked: n,
1025
- className: B(w[N], {
1030
+ className: T(w[N], {
1026
1031
  [w[`${N}--error`]]: c
1027
1032
  }),
1028
1033
  "data-testid": e,
1029
1034
  onCheckedChange: r,
1030
1035
  ref: i,
1031
1036
  children: /* @__PURE__ */ f("span", { className: w[`${N}__box`], children: /* @__PURE__ */ f(Mr, { className: w[`${N}__indicator`], children: n === "indeterminate" ? /* @__PURE__ */ f(
1032
- J,
1037
+ Y,
1033
1038
  {
1034
1039
  "data-testid": e && `${e}-checked-icon`,
1035
1040
  size: "xs",
1036
1041
  svg: Ue
1037
1042
  }
1038
1043
  ) : /* @__PURE__ */ f(
1039
- J,
1044
+ Y,
1040
1045
  {
1041
1046
  "data-testid": e && `${e}-indeterminate-icon`,
1042
1047
  size: "xs",
@@ -1046,7 +1051,7 @@ const B = /* @__PURE__ */ Rr(Dr), w = {
1046
1051
  }
1047
1052
  ),
1048
1053
  u && /* @__PURE__ */ f(
1049
- ur,
1054
+ ir,
1050
1055
  {
1051
1056
  htmlFor: o.id,
1052
1057
  "data-testid": e && `${e}-label`,
@@ -1058,7 +1063,7 @@ const B = /* @__PURE__ */ Rr(Dr), w = {
1058
1063
  ] }),
1059
1064
  c && /* @__PURE__ */ f(qe, { "data-testid": e && `${e}-error-text`, children: a })
1060
1065
  ] });
1061
- }, Ir = g(qr);
1066
+ }, Ir = _(qr);
1062
1067
  Ir.displayName = "Checkbox";
1063
1068
  export {
1064
1069
  Ir as Checkbox