@purpurds/checkbox 4.1.1 → 4.2.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 b, isValidElement as x, createElement as p, cloneElement as E, useEffect as k, Fragment as re, useCallback as Z, createContext as V, useMemo as P, useContext as _e, useRef as $, useState as I, useLayoutEffect as ge, useReducer as $e } from "react";
1
+ import { jsxs as B, jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as _, Children as v, isValidElement as x, createElement as p, cloneElement as z, useEffect as O, Fragment as re, useCallback as Z, createContext as V, useMemo as k, useContext as ge, useRef as $, useState as q, 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;
@@ -15,8 +15,8 @@ var te = { exports: {} };
15
15
  var n = {}.hasOwnProperty;
16
16
  function t() {
17
17
  for (var r = "", o = 0; o < arguments.length; o++) {
18
- var u = arguments[o];
19
- u && (r = i(r, a.call(this, u)));
18
+ var i = arguments[o];
19
+ i && (r = u(r, a.call(this, i)));
20
20
  }
21
21
  return r;
22
22
  }
@@ -30,11 +30,11 @@ var te = { exports: {} };
30
30
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
31
31
  return r.toString();
32
32
  var o = "";
33
- for (var u in r)
34
- n.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
33
+ for (var i in r)
34
+ n.call(r, i) && r[i] && (o = u(o, this && this[i] || i));
35
35
  return o;
36
36
  }
37
- function i(r, o) {
37
+ function u(r, o) {
38
38
  return o ? r ? r + " " + o : r + o : r;
39
39
  }
40
40
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
@@ -49,36 +49,36 @@ const Ne = /* @__PURE__ */ xe(we), Se = {
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
- }, ke = {
52
+ }, Oe = {
53
53
  name: "error-filled",
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", Pe = "md", Ae = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Ce = ({ content: e = "", title: n } = {}) => {
57
+ }, Pe = Ne.bind(Se), G = "purpur-icon", Ae = "md", Ce = (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" },
61
61
  { name: "viewBox", value: "0 0 24 24" },
62
62
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
63
63
  ], a = n ? `<title>${n}</title>` : "";
64
- return `<svg ${Ae(t)}>${a}${e}</svg>`;
64
+ return `<svg ${Ce(t)}>${a}${e}</svg>`;
65
65
  }, je = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ee = ({
66
66
  ["data-testid"]: e,
67
67
  svg: n,
68
68
  allyTitle: t,
69
69
  className: a = "",
70
- size: i = Pe,
70
+ size: u = Ae,
71
71
  ...r
72
72
  }) => {
73
- const o = Ce({
73
+ const o = ke({
74
74
  content: je(n.svg),
75
75
  title: t
76
- }), u = Oe(a, G, `${G}--${i}`);
76
+ }), i = Pe(a, G, `${G}--${u}`);
77
77
  return /* @__PURE__ */ f(
78
78
  "span",
79
79
  {
80
80
  "aria-label": t,
81
- className: u,
81
+ className: i,
82
82
  "data-testid": e,
83
83
  dangerouslySetInnerHTML: { __html: o },
84
84
  ...r
@@ -99,8 +99,8 @@ var ne = { exports: {} };
99
99
  var n = {}.hasOwnProperty;
100
100
  function t() {
101
101
  for (var r = "", o = 0; o < arguments.length; o++) {
102
- var u = arguments[o];
103
- u && (r = i(r, a(u)));
102
+ var i = arguments[o];
103
+ i && (r = u(r, a(i)));
104
104
  }
105
105
  return r;
106
106
  }
@@ -114,41 +114,41 @@ var ne = { exports: {} };
114
114
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
115
115
  return r.toString();
116
116
  var o = "";
117
- for (var u in r)
118
- n.call(r, u) && r[u] && (o = i(o, u));
117
+ for (var i in r)
118
+ n.call(r, i) && r[i] && (o = u(o, i));
119
119
  return o;
120
120
  }
121
- function i(r, o) {
121
+ function u(r, o) {
122
122
  return o ? r ? r + " " + o : r + o : r;
123
123
  }
124
124
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
125
125
  })();
126
126
  })(ne);
127
- var Re = ne.exports;
128
- const De = /* @__PURE__ */ Me(Re), K = {
127
+ var ze = ne.exports;
128
+ const Re = /* @__PURE__ */ Me(ze), K = {
129
129
  "purpur-field-error-text": "_purpur-field-error-text_1h4gy_1",
130
130
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1h4gy_12"
131
- }, W = "purpur-field-error-text", qe = ({
131
+ }, W = "purpur-field-error-text", De = ({
132
132
  ["data-testid"]: e,
133
133
  children: n,
134
134
  className: t,
135
135
  relevant: a = "additions text",
136
- ...i
137
- }) => /* @__PURE__ */ z(
136
+ ...u
137
+ }) => /* @__PURE__ */ B(
138
138
  "div",
139
139
  {
140
- className: De([t, K[W]]),
140
+ className: Re([t, K[W]]),
141
141
  "data-testid": e,
142
142
  "aria-live": "assertive",
143
143
  "aria-relevant": a,
144
- ...i,
144
+ ...u,
145
145
  children: [
146
- /* @__PURE__ */ f(Ee, { svg: ke, size: "xs", className: K[`${W}__icon`] }),
146
+ /* @__PURE__ */ f(Ee, { svg: Oe, size: "xs", className: K[`${W}__icon`] }),
147
147
  n
148
148
  ]
149
149
  }
150
150
  );
151
- function Ie(e) {
151
+ function qe(e) {
152
152
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
153
153
  }
154
154
  var oe = { exports: {} };
@@ -162,8 +162,8 @@ var oe = { exports: {} };
162
162
  var n = {}.hasOwnProperty;
163
163
  function t() {
164
164
  for (var r = "", o = 0; o < arguments.length; o++) {
165
- var u = arguments[o];
166
- u && (r = i(r, a.call(this, u)));
165
+ var i = arguments[o];
166
+ i && (r = u(r, a.call(this, i)));
167
167
  }
168
168
  return r;
169
169
  }
@@ -177,18 +177,18 @@ var oe = { exports: {} };
177
177
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
178
178
  return r.toString();
179
179
  var o = "";
180
- for (var u in r)
181
- n.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
180
+ for (var i in r)
181
+ n.call(r, i) && r[i] && (o = u(o, this && this[i] || i));
182
182
  return o;
183
183
  }
184
- function i(r, o) {
184
+ function u(r, o) {
185
185
  return o ? r ? r + " " + o : r + o : r;
186
186
  }
187
187
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
188
188
  })();
189
189
  })(oe);
190
- var Le = oe.exports;
191
- const Be = /* @__PURE__ */ Ie(Le), ze = {
190
+ var Ie = oe.exports;
191
+ const Le = /* @__PURE__ */ qe(Ie), Be = {
192
192
  "purpur-icon": "_purpur-icon_8u1lq_1",
193
193
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
194
194
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -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 = Le.bind(Be), 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 } = {}) => {
210
210
  const t = [
211
211
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
212
212
  { name: "fill", value: "currentColor" },
@@ -219,18 +219,18 @@ const Be = /* @__PURE__ */ Ie(Le), ze = {
219
219
  svg: n,
220
220
  allyTitle: t,
221
221
  className: a = "",
222
- size: i = Fe,
222
+ size: u = Fe,
223
223
  ...r
224
224
  }) => {
225
225
  const o = Ve({
226
226
  content: Ge(n.svg),
227
227
  title: t
228
- }), u = He(a, X, `${X}--${i}`);
228
+ }), i = He(a, X, `${X}--${u}`);
229
229
  return /* @__PURE__ */ f(
230
230
  "span",
231
231
  {
232
232
  "aria-label": t,
233
- className: u,
233
+ className: i,
234
234
  "data-testid": e,
235
235
  dangerouslySetInnerHTML: { __html: o },
236
236
  ...r
@@ -247,15 +247,15 @@ function T() {
247
247
  return e;
248
248
  }, T.apply(this, arguments);
249
249
  }
250
- function A() {
251
- return A = Object.assign ? Object.assign.bind() : function(e) {
250
+ function j() {
251
+ return j = Object.assign ? Object.assign.bind() : function(e) {
252
252
  for (var n = 1; n < arguments.length; n++) {
253
253
  var t = arguments[n];
254
254
  for (var a in t)
255
255
  Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
256
256
  }
257
257
  return e;
258
- }, A.apply(this, arguments);
258
+ }, j.apply(this, arguments);
259
259
  }
260
260
  function Ke(e, n) {
261
261
  typeof e == "function" ? e(n) : e != null && (e.current = n);
@@ -265,25 +265,25 @@ function We(...e) {
265
265
  (t) => Ke(t, n)
266
266
  );
267
267
  }
268
- const ae = /* @__PURE__ */ g((e, n) => {
269
- const { children: t, ...a } = e, i = b.toArray(t), r = i.find(Je);
268
+ const ae = /* @__PURE__ */ _((e, n) => {
269
+ const { children: t, ...a } = e, u = v.toArray(t), r = u.find(Je);
270
270
  if (r) {
271
- const o = r.props.children, u = i.map((c) => c === r ? b.count(o) > 1 ? b.only(null) : /* @__PURE__ */ x(o) ? o.props.children : null : c);
272
- return /* @__PURE__ */ p(U, A({}, a, {
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, j({}, a, {
273
273
  ref: n
274
- }), /* @__PURE__ */ x(o) ? /* @__PURE__ */ E(o, void 0, u) : null);
274
+ }), /* @__PURE__ */ x(o) ? /* @__PURE__ */ z(o, void 0, i) : null);
275
275
  }
276
- return /* @__PURE__ */ p(U, A({}, a, {
276
+ return /* @__PURE__ */ p(U, j({}, a, {
277
277
  ref: n
278
278
  }), t);
279
279
  });
280
280
  ae.displayName = "Slot";
281
- const U = /* @__PURE__ */ g((e, n) => {
281
+ const U = /* @__PURE__ */ _((e, n) => {
282
282
  const { children: t, ...a } = e;
283
- return /* @__PURE__ */ x(t) ? /* @__PURE__ */ E(t, {
283
+ return /* @__PURE__ */ x(t) ? /* @__PURE__ */ z(t, {
284
284
  ...Qe(a, t.props),
285
285
  ref: n ? We(n, t.ref) : t.ref
286
- }) : b.count(t) > 1 ? b.only(null) : null;
286
+ }) : v.count(t) > 1 ? v.only(null) : null;
287
287
  });
288
288
  U.displayName = "SlotClone";
289
289
  const Xe = ({ children: e }) => /* @__PURE__ */ p(re, null, e);
@@ -295,14 +295,14 @@ function Qe(e, n) {
295
295
  ...n
296
296
  };
297
297
  for (const a in n) {
298
- const i = e[a], r = n[a];
299
- /^on[A-Z]/.test(a) ? i && r ? t[a] = (...o) => {
300
- r(...o), i(...o);
301
- } : i && (t[a] = i) : a === "style" ? t[a] = {
302
- ...i,
298
+ const u = e[a], r = n[a];
299
+ /^on[A-Z]/.test(a) ? u && r ? t[a] = (...o) => {
300
+ r(...o), u(...o);
301
+ } : u && (t[a] = u) : a === "style" ? t[a] = {
302
+ ...u,
303
303
  ...r
304
304
  } : a === "className" && (t[a] = [
305
- i,
305
+ u,
306
306
  r
307
307
  ].filter(Boolean).join(" "));
308
308
  }
@@ -329,19 +329,19 @@ const Ye = [
329
329
  "svg",
330
330
  "ul"
331
331
  ], er = Ye.reduce((e, n) => {
332
- const t = /* @__PURE__ */ g((a, i) => {
333
- const { asChild: r, ...o } = a, u = r ? ae : n;
334
- return k(() => {
332
+ const t = /* @__PURE__ */ _((a, u) => {
333
+ const { asChild: r, ...o } = a, i = r ? ae : n;
334
+ return O(() => {
335
335
  window[Symbol.for("radix-ui")] = !0;
336
- }, []), /* @__PURE__ */ p(u, A({}, o, {
337
- ref: i
336
+ }, []), /* @__PURE__ */ p(i, j({}, o, {
337
+ ref: u
338
338
  }));
339
339
  });
340
340
  return t.displayName = `Primitive.${n}`, {
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, T({}, 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 ie = { exports: {} };
354
+ var ue = { exports: {} };
355
355
  /*!
356
356
  Copyright (c) 2018 Jed Watson.
357
357
  Licensed under the MIT License (MIT), see
@@ -362,8 +362,8 @@ var ie = { exports: {} };
362
362
  var n = {}.hasOwnProperty;
363
363
  function t() {
364
364
  for (var r = "", o = 0; o < arguments.length; o++) {
365
- var u = arguments[o];
366
- u && (r = i(r, a(u)));
365
+ var i = arguments[o];
366
+ i && (r = u(r, a(i)));
367
367
  }
368
368
  return r;
369
369
  }
@@ -377,39 +377,39 @@ var ie = { exports: {} };
377
377
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
378
378
  return r.toString();
379
379
  var o = "";
380
- for (var u in r)
381
- n.call(r, u) && r[u] && (o = i(o, u));
380
+ for (var i in r)
381
+ n.call(r, i) && r[i] && (o = u(o, i));
382
382
  return o;
383
383
  }
384
- function i(r, o) {
384
+ function u(r, o) {
385
385
  return o ? r ? r + " " + o : r + o : r;
386
386
  }
387
387
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
388
388
  })();
389
- })(ie);
390
- var or = ie.exports;
389
+ })(ue);
390
+ var or = ue.exports;
391
391
  const ar = /* @__PURE__ */ nr(or), Q = {
392
392
  "purpur-label": "_purpur-label_1jub8_1",
393
393
  "purpur-label--disabled": "_purpur-label--disabled_1jub8_9"
394
- }, Y = "purpur-label", ir = ({
394
+ }, Y = "purpur-label", ur = ({
395
395
  children: e,
396
396
  className: n,
397
397
  htmlFor: t,
398
398
  "data-testid": a,
399
- disabled: i,
399
+ disabled: u,
400
400
  ...r
401
401
  }) => {
402
402
  const o = ar([
403
403
  n,
404
404
  Q[Y],
405
- { [Q[`${Y}--disabled`]]: i }
405
+ { [Q[`${Y}--disabled`]]: u }
406
406
  ]);
407
407
  return /* @__PURE__ */ f(tr, { className: o, "data-testid": a, htmlFor: t, ...r, children: e });
408
408
  };
409
- function ur(e) {
409
+ function ir(e) {
410
410
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
411
411
  }
412
- var ue = { exports: {} };
412
+ var ie = { exports: {} };
413
413
  /*!
414
414
  Copyright (c) 2018 Jed Watson.
415
415
  Licensed under the MIT License (MIT), see
@@ -420,8 +420,8 @@ var ue = { exports: {} };
420
420
  var n = {}.hasOwnProperty;
421
421
  function t() {
422
422
  for (var r = "", o = 0; o < arguments.length; o++) {
423
- var u = arguments[o];
424
- u && (r = i(r, a(u)));
423
+ var i = arguments[o];
424
+ i && (r = u(r, a(i)));
425
425
  }
426
426
  return r;
427
427
  }
@@ -435,31 +435,32 @@ var ue = { exports: {} };
435
435
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
436
436
  return r.toString();
437
437
  var o = "";
438
- for (var u in r)
439
- n.call(r, u) && r[u] && (o = i(o, u));
438
+ for (var i in r)
439
+ n.call(r, i) && r[i] && (o = u(o, i));
440
440
  return o;
441
441
  }
442
- function i(r, o) {
442
+ function u(r, o) {
443
443
  return o ? r ? r + " " + o : r + o : r;
444
444
  }
445
445
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
446
446
  })();
447
- })(ue);
448
- var cr = ue.exports;
449
- const sr = /* @__PURE__ */ ur(cr), R = {
450
- "purpur-paragraph": "_purpur-paragraph_5wbko_1",
451
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_5wbko_7",
452
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_5wbko_10",
453
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_5wbko_13",
454
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_5wbko_19",
455
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_5wbko_26",
456
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_5wbko_33",
457
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_5wbko_39",
458
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_5wbko_45",
459
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_5wbko_51",
460
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_5wbko_57",
461
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_5wbko_64",
462
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_5wbko_72"
447
+ })(ie);
448
+ var cr = ie.exports;
449
+ const sr = /* @__PURE__ */ ir(cr), A = {
450
+ "purpur-paragraph": "_purpur-paragraph_15yuz_1",
451
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
452
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
453
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
454
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
455
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
456
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
457
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
458
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
459
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
460
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
461
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
462
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
463
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
463
464
  }, lr = {
464
465
  PARAGRAPH100: "paragraph-100",
465
466
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
@@ -471,35 +472,37 @@ const sr = /* @__PURE__ */ ur(cr), R = {
471
472
  ADDITIONAL100MEDIUM: "additional-100-medium",
472
473
  OVERLINE100: "overline-100",
473
474
  OVERLINE200: "overline-200"
474
- }, D = "purpur-paragraph", pr = ({
475
+ }, C = "purpur-paragraph", pr = ({
475
476
  ["data-testid"]: e,
476
477
  children: n,
477
478
  className: t = "",
478
479
  disabled: a,
479
- enableHyphenation: i = !1,
480
- variant: r = lr.PARAGRAPH100,
481
- ...o
480
+ enableHyphenation: u = !1,
481
+ negative: r = !1,
482
+ variant: o = lr.PARAGRAPH100,
483
+ ...i
482
484
  }) => {
483
- const u = sr([
485
+ const c = sr([
484
486
  t,
485
- R[D],
486
- R[`${D}--${r}`],
487
+ A[C],
488
+ A[`${C}--${o}`],
487
489
  {
488
- [R[`${D}--hyphens`]]: i,
489
- [R[`${D}--disabled`]]: a
490
+ [A[`${C}--hyphens`]]: u,
491
+ [A[`${C}--disabled`]]: a,
492
+ [A[`${C}--negative`]]: r
490
493
  }
491
494
  ]);
492
- return /* @__PURE__ */ f("p", { ...o, className: u, "data-testid": e, children: n });
495
+ return /* @__PURE__ */ f("p", { ...i, className: c, "data-testid": e, children: n });
493
496
  };
494
- function C() {
495
- return C = Object.assign ? Object.assign.bind() : function(e) {
497
+ function E() {
498
+ return E = Object.assign ? Object.assign.bind() : function(e) {
496
499
  for (var n = 1; n < arguments.length; n++) {
497
500
  var t = arguments[n];
498
501
  for (var a in t)
499
502
  Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
500
503
  }
501
504
  return e;
502
- }, C.apply(this, arguments);
505
+ }, E.apply(this, arguments);
503
506
  }
504
507
  function dr(e, n) {
505
508
  typeof e == "function" ? e(n) : e != null && (e.current = n);
@@ -515,24 +518,24 @@ function se(...e) {
515
518
  function fr(e, n = []) {
516
519
  let t = [];
517
520
  function a(r, o) {
518
- const u = /* @__PURE__ */ V(o), c = t.length;
521
+ const i = /* @__PURE__ */ V(o), c = t.length;
519
522
  t = [
520
523
  ...t,
521
524
  o
522
525
  ];
523
526
  function s(l) {
524
- const { scope: d, children: v, ..._ } = l, M = (d == null ? void 0 : d[e][c]) || u, y = P(
525
- () => _,
526
- Object.values(_)
527
+ const { scope: d, children: b, ...g } = l, R = (d == null ? void 0 : d[e][c]) || i, y = k(
528
+ () => g,
529
+ Object.values(g)
527
530
  );
528
- return /* @__PURE__ */ p(M.Provider, {
531
+ return /* @__PURE__ */ p(R.Provider, {
529
532
  value: y
530
- }, v);
533
+ }, b);
531
534
  }
532
535
  function h(l, d) {
533
- const v = (d == null ? void 0 : d[e][c]) || u, _ = _e(v);
534
- if (_)
535
- return _;
536
+ const b = (d == null ? void 0 : d[e][c]) || i, g = ge(b);
537
+ if (g)
538
+ return g;
536
539
  if (o !== void 0)
537
540
  return o;
538
541
  throw new Error(`\`${l}\` must be used within \`${r}\``);
@@ -542,27 +545,27 @@ function fr(e, n = []) {
542
545
  h
543
546
  ];
544
547
  }
545
- const i = () => {
548
+ const u = () => {
546
549
  const r = t.map((o) => /* @__PURE__ */ V(o));
547
- return function(u) {
548
- const c = (u == null ? void 0 : u[e]) || r;
549
- return P(
550
+ return function(i) {
551
+ const c = (i == null ? void 0 : i[e]) || r;
552
+ return k(
550
553
  () => ({
551
554
  [`__scope${e}`]: {
552
- ...u,
555
+ ...i,
553
556
  [e]: c
554
557
  }
555
558
  }),
556
559
  [
557
- u,
560
+ i,
558
561
  c
559
562
  ]
560
563
  );
561
564
  };
562
565
  };
563
- return i.scopeName = e, [
566
+ return u.scopeName = e, [
564
567
  a,
565
- hr(i, ...n)
568
+ hr(u, ...n)
566
569
  ];
567
570
  }
568
571
  function hr(...e) {
@@ -571,20 +574,20 @@ function hr(...e) {
571
574
  return n;
572
575
  const t = () => {
573
576
  const a = e.map(
574
- (i) => ({
575
- useScope: i(),
576
- scopeName: i.scopeName
577
+ (u) => ({
578
+ useScope: u(),
579
+ scopeName: u.scopeName
577
580
  })
578
581
  );
579
582
  return function(r) {
580
- const o = a.reduce((u, { useScope: c, scopeName: s }) => {
583
+ const o = a.reduce((i, { useScope: c, scopeName: s }) => {
581
584
  const l = c(r)[`__scope${s}`];
582
585
  return {
583
- ...u,
586
+ ...i,
584
587
  ...l
585
588
  };
586
589
  }, {});
587
- return P(
590
+ return k(
588
591
  () => ({
589
592
  [`__scope${n.scopeName}`]: o
590
593
  }),
@@ -597,16 +600,16 @@ function hr(...e) {
597
600
  return t.scopeName = n.scopeName, t;
598
601
  }
599
602
  function ee(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
600
- return function(i) {
601
- if (e == null || e(i), t === !1 || !i.defaultPrevented)
602
- return n == null ? void 0 : n(i);
603
+ return function(u) {
604
+ if (e == null || e(u), t === !1 || !u.defaultPrevented)
605
+ return n == null ? void 0 : n(u);
603
606
  };
604
607
  }
605
608
  function le(e) {
606
609
  const n = $(e);
607
- return k(() => {
610
+ return O(() => {
608
611
  n.current = e;
609
- }), P(
612
+ }), k(
610
613
  () => (...t) => {
611
614
  var a;
612
615
  return (a = n.current) === null || a === void 0 ? void 0 : a.call(n, ...t);
@@ -616,68 +619,68 @@ function le(e) {
616
619
  }
617
620
  function mr({ prop: e, defaultProp: n, onChange: t = () => {
618
621
  } }) {
619
- const [a, i] = br({
622
+ const [a, u] = vr({
620
623
  defaultProp: n,
621
624
  onChange: t
622
- }), r = e !== void 0, o = r ? e : a, u = le(t), c = Z((s) => {
625
+ }), r = e !== void 0, o = r ? e : a, i = le(t), c = Z((s) => {
623
626
  if (r) {
624
627
  const l = typeof s == "function" ? s(e) : s;
625
- l !== e && u(l);
628
+ l !== e && i(l);
626
629
  } else
627
- i(s);
630
+ u(s);
628
631
  }, [
629
632
  r,
630
633
  e,
631
- i,
632
- u
634
+ u,
635
+ i
633
636
  ]);
634
637
  return [
635
638
  o,
636
639
  c
637
640
  ];
638
641
  }
639
- function br({ defaultProp: e, onChange: n }) {
640
- const t = I(e), [a] = t, i = $(a), r = le(n);
641
- return k(() => {
642
- i.current !== a && (r(a), i.current = a);
642
+ function vr({ defaultProp: e, onChange: n }) {
643
+ const t = q(e), [a] = t, u = $(a), r = le(n);
644
+ return O(() => {
645
+ u.current !== a && (r(a), u.current = a);
643
646
  }, [
644
647
  a,
645
- i,
648
+ u,
646
649
  r
647
650
  ]), t;
648
651
  }
649
- function vr(e) {
652
+ function br(e) {
650
653
  const n = $({
651
654
  value: e,
652
655
  previous: e
653
656
  });
654
- return P(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
657
+ return k(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
655
658
  e
656
659
  ]);
657
660
  }
658
- const H = globalThis != null && globalThis.document ? ge : () => {
661
+ const H = globalThis != null && globalThis.document ? _e : () => {
659
662
  };
660
- function _r(e) {
661
- const [n, t] = I(void 0);
663
+ function gr(e) {
664
+ const [n, t] = q(void 0);
662
665
  return H(() => {
663
666
  if (e) {
664
667
  t({
665
668
  width: e.offsetWidth,
666
669
  height: e.offsetHeight
667
670
  });
668
- const a = new ResizeObserver((i) => {
669
- if (!Array.isArray(i) || !i.length)
671
+ const a = new ResizeObserver((u) => {
672
+ if (!Array.isArray(u) || !u.length)
670
673
  return;
671
- const r = i[0];
672
- let o, u;
674
+ const r = u[0];
675
+ let o, i;
673
676
  if ("borderBoxSize" in r) {
674
677
  const c = r.borderBoxSize, s = Array.isArray(c) ? c[0] : c;
675
- o = s.inlineSize, u = s.blockSize;
678
+ o = s.inlineSize, i = s.blockSize;
676
679
  } else
677
- o = e.offsetWidth, u = e.offsetHeight;
680
+ o = e.offsetWidth, i = e.offsetHeight;
678
681
  t({
679
682
  width: o,
680
- height: u
683
+ height: i
681
684
  });
682
685
  });
683
686
  return a.observe(e, {
@@ -689,23 +692,23 @@ function _r(e) {
689
692
  e
690
693
  ]), n;
691
694
  }
692
- function gr(e, n) {
695
+ function _r(e, n) {
693
696
  return $e((t, a) => {
694
- const i = n[t][a];
695
- return i ?? t;
697
+ const u = n[t][a];
698
+ return u ?? t;
696
699
  }, e);
697
700
  }
698
701
  const pe = (e) => {
699
- const { present: n, children: t } = e, a = $r(n), i = typeof t == "function" ? t({
702
+ const { present: n, children: t } = e, a = $r(n), u = typeof t == "function" ? t({
700
703
  present: a.isPresent
701
- }) : b.only(t), r = se(a.ref, i.ref);
702
- return typeof t == "function" || a.isPresent ? /* @__PURE__ */ E(i, {
704
+ }) : v.only(t), r = se(a.ref, u.ref);
705
+ return typeof t == "function" || a.isPresent ? /* @__PURE__ */ z(u, {
703
706
  ref: r
704
707
  }) : null;
705
708
  };
706
709
  pe.displayName = "Presence";
707
710
  function $r(e) {
708
- const [n, t] = I(), a = $({}), i = $(e), r = $("none"), o = e ? "mounted" : "unmounted", [u, c] = gr(o, {
711
+ const [n, t] = q(), a = $({}), u = $(e), r = $("none"), o = e ? "mounted" : "unmounted", [i, c] = _r(o, {
709
712
  mounted: {
710
713
  UNMOUNT: "unmounted",
711
714
  ANIMATION_OUT: "unmountSuspended"
@@ -718,16 +721,16 @@ function $r(e) {
718
721
  MOUNT: "mounted"
719
722
  }
720
723
  });
721
- return k(() => {
722
- const s = q(a.current);
723
- r.current = u === "mounted" ? s : "none";
724
+ return O(() => {
725
+ const s = D(a.current);
726
+ r.current = i === "mounted" ? s : "none";
724
727
  }, [
725
- u
728
+ i
726
729
  ]), H(() => {
727
- const s = a.current, h = i.current;
730
+ const s = a.current, h = u.current;
728
731
  if (h !== e) {
729
- const d = r.current, v = q(s);
730
- e ? c("MOUNT") : v === "none" || (s == null ? void 0 : s.display) === "none" ? c("UNMOUNT") : c(h && d !== v ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
732
+ const d = r.current, b = D(s);
733
+ e ? c("MOUNT") : b === "none" || (s == null ? void 0 : s.display) === "none" ? c("UNMOUNT") : c(h && d !== b ? "ANIMATION_OUT" : "UNMOUNT"), u.current = e;
731
734
  }
732
735
  }, [
733
736
  e,
@@ -735,12 +738,12 @@ function $r(e) {
735
738
  ]), H(() => {
736
739
  if (n) {
737
740
  const s = (l) => {
738
- const v = q(a.current).includes(l.animationName);
739
- l.target === n && v && ye(
741
+ const b = D(a.current).includes(l.animationName);
742
+ l.target === n && b && ye(
740
743
  () => c("ANIMATION_END")
741
744
  );
742
745
  }, h = (l) => {
743
- l.target === n && (r.current = q(a.current));
746
+ l.target === n && (r.current = D(a.current));
744
747
  };
745
748
  return n.addEventListener("animationstart", h), n.addEventListener("animationcancel", s), n.addEventListener("animationend", s), () => {
746
749
  n.removeEventListener("animationstart", h), n.removeEventListener("animationcancel", s), n.removeEventListener("animationend", s);
@@ -754,44 +757,44 @@ function $r(e) {
754
757
  isPresent: [
755
758
  "mounted",
756
759
  "unmountSuspended"
757
- ].includes(u),
760
+ ].includes(i),
758
761
  ref: Z((s) => {
759
762
  s && (a.current = getComputedStyle(s)), t(s);
760
763
  }, [])
761
764
  };
762
765
  }
763
- function q(e) {
766
+ function D(e) {
764
767
  return (e == null ? void 0 : e.animationName) || "none";
765
768
  }
766
- function j() {
767
- return j = Object.assign ? Object.assign.bind() : function(e) {
769
+ function M() {
770
+ return M = Object.assign ? Object.assign.bind() : function(e) {
768
771
  for (var n = 1; n < arguments.length; n++) {
769
772
  var t = arguments[n];
770
773
  for (var a in t)
771
774
  Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
772
775
  }
773
776
  return e;
774
- }, j.apply(this, arguments);
777
+ }, M.apply(this, arguments);
775
778
  }
776
- const de = /* @__PURE__ */ g((e, n) => {
777
- const { children: t, ...a } = e, i = b.toArray(t), r = i.find(xr);
779
+ const de = /* @__PURE__ */ _((e, n) => {
780
+ const { children: t, ...a } = e, u = v.toArray(t), r = u.find(xr);
778
781
  if (r) {
779
- const o = r.props.children, u = i.map((c) => c === r ? b.count(o) > 1 ? b.only(null) : /* @__PURE__ */ x(o) ? o.props.children : null : c);
780
- return /* @__PURE__ */ p(F, j({}, a, {
782
+ 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, {
781
784
  ref: n
782
- }), /* @__PURE__ */ x(o) ? /* @__PURE__ */ E(o, void 0, u) : null);
785
+ }), /* @__PURE__ */ x(o) ? /* @__PURE__ */ z(o, void 0, i) : null);
783
786
  }
784
- return /* @__PURE__ */ p(F, j({}, a, {
787
+ return /* @__PURE__ */ p(F, M({}, a, {
785
788
  ref: n
786
789
  }), t);
787
790
  });
788
791
  de.displayName = "Slot";
789
- const F = /* @__PURE__ */ g((e, n) => {
792
+ const F = /* @__PURE__ */ _((e, n) => {
790
793
  const { children: t, ...a } = e;
791
- return /* @__PURE__ */ x(t) ? /* @__PURE__ */ E(t, {
794
+ return /* @__PURE__ */ x(t) ? /* @__PURE__ */ z(t, {
792
795
  ...wr(a, t.props),
793
796
  ref: n ? ce(n, t.ref) : t.ref
794
- }) : b.count(t) > 1 ? b.only(null) : null;
797
+ }) : v.count(t) > 1 ? v.only(null) : null;
795
798
  });
796
799
  F.displayName = "SlotClone";
797
800
  const yr = ({ children: e }) => /* @__PURE__ */ p(re, null, e);
@@ -803,14 +806,14 @@ function wr(e, n) {
803
806
  ...n
804
807
  };
805
808
  for (const a in n) {
806
- const i = e[a], r = n[a];
807
- /^on[A-Z]/.test(a) ? i && r ? t[a] = (...u) => {
808
- r(...u), i(...u);
809
- } : i && (t[a] = i) : a === "style" ? t[a] = {
810
- ...i,
809
+ const u = e[a], r = n[a];
810
+ /^on[A-Z]/.test(a) ? u && r ? t[a] = (...i) => {
811
+ r(...i), u(...i);
812
+ } : u && (t[a] = u) : a === "style" ? t[a] = {
813
+ ...u,
811
814
  ...r
812
815
  } : a === "className" && (t[a] = [
813
- i,
816
+ u,
814
817
  r
815
818
  ].filter(Boolean).join(" "));
816
819
  }
@@ -837,79 +840,79 @@ const Nr = [
837
840
  "svg",
838
841
  "ul"
839
842
  ], fe = Nr.reduce((e, n) => {
840
- const t = /* @__PURE__ */ g((a, i) => {
841
- const { asChild: r, ...o } = a, u = r ? de : n;
842
- return k(() => {
843
+ const t = /* @__PURE__ */ _((a, u) => {
844
+ const { asChild: r, ...o } = a, i = r ? de : n;
845
+ return O(() => {
843
846
  window[Symbol.for("radix-ui")] = !0;
844
- }, []), /* @__PURE__ */ p(u, j({}, o, {
845
- ref: i
847
+ }, []), /* @__PURE__ */ p(i, M({}, o, {
848
+ ref: u
846
849
  }));
847
850
  });
848
851
  return t.displayName = `Primitive.${n}`, {
849
852
  ...e,
850
853
  [n]: t
851
854
  };
852
- }, {}), he = "Checkbox", [Sr, Tr] = fr(he), [kr, Or] = Sr(he), Pr = /* @__PURE__ */ g((e, n) => {
853
- const { __scopeCheckbox: t, name: a, checked: i, defaultChecked: r, required: o, disabled: u, value: c = "on", onCheckedChange: s, ...h } = e, [l, d] = I(null), v = se(
855
+ }, {}), he = "Checkbox", [Sr, Tr] = fr(he), [Or, Pr] = Sr(he), Ar = /* @__PURE__ */ _((e, n) => {
856
+ const { __scopeCheckbox: t, name: a, checked: u, defaultChecked: r, required: o, disabled: i, value: c = "on", onCheckedChange: s, ...h } = e, [l, d] = q(null), b = se(
854
857
  n,
855
858
  (m) => d(m)
856
- ), _ = $(!1), M = l ? !!l.closest("form") : !0, [y = !1, L] = mr({
857
- prop: i,
859
+ ), g = $(!1), R = l ? !!l.closest("form") : !0, [y = !1, I] = mr({
860
+ prop: u,
858
861
  defaultProp: r,
859
862
  onChange: s
860
- }), ve = $(y);
861
- return k(() => {
863
+ }), be = $(y);
864
+ return O(() => {
862
865
  const m = l == null ? void 0 : l.form;
863
866
  if (m) {
864
- const O = () => L(ve.current);
865
- return m.addEventListener("reset", O), () => m.removeEventListener("reset", O);
867
+ const P = () => I(be.current);
868
+ return m.addEventListener("reset", P), () => m.removeEventListener("reset", P);
866
869
  }
867
870
  }, [
868
871
  l,
869
- L
870
- ]), /* @__PURE__ */ p(kr, {
872
+ I
873
+ ]), /* @__PURE__ */ p(Or, {
871
874
  scope: t,
872
875
  state: y,
873
- disabled: u
874
- }, /* @__PURE__ */ p(fe.button, C({
876
+ disabled: i
877
+ }, /* @__PURE__ */ p(fe.button, E({
875
878
  type: "button",
876
879
  role: "checkbox",
877
880
  "aria-checked": S(y) ? "mixed" : y,
878
881
  "aria-required": o,
879
882
  "data-state": me(y),
880
- "data-disabled": u ? "" : void 0,
881
- disabled: u,
883
+ "data-disabled": i ? "" : void 0,
884
+ disabled: i,
882
885
  value: c
883
886
  }, h, {
884
- ref: v,
887
+ ref: b,
885
888
  onKeyDown: ee(e.onKeyDown, (m) => {
886
889
  m.key === "Enter" && m.preventDefault();
887
890
  }),
888
891
  onClick: ee(e.onClick, (m) => {
889
- L(
890
- (O) => S(O) ? !0 : !O
891
- ), M && (_.current = m.isPropagationStopped(), _.current || m.stopPropagation());
892
+ I(
893
+ (P) => S(P) ? !0 : !P
894
+ ), R && (g.current = m.isPropagationStopped(), g.current || m.stopPropagation());
892
895
  })
893
- })), M && /* @__PURE__ */ p(jr, {
896
+ })), R && /* @__PURE__ */ p(jr, {
894
897
  control: l,
895
- bubbles: !_.current,
898
+ bubbles: !g.current,
896
899
  name: a,
897
900
  value: c,
898
901
  checked: y,
899
902
  required: o,
900
- disabled: u,
903
+ disabled: i,
901
904
  style: {
902
905
  transform: "translateX(-100%)"
903
906
  }
904
907
  }));
905
- }), Ar = "CheckboxIndicator", Cr = /* @__PURE__ */ g((e, n) => {
906
- const { __scopeCheckbox: t, forceMount: a, ...i } = e, r = Or(Ar, t);
908
+ }), Cr = "CheckboxIndicator", kr = /* @__PURE__ */ _((e, n) => {
909
+ const { __scopeCheckbox: t, forceMount: a, ...u } = e, r = Pr(Cr, t);
907
910
  return /* @__PURE__ */ p(pe, {
908
911
  present: a || S(r.state) || r.state === !0
909
- }, /* @__PURE__ */ p(fe.span, C({
912
+ }, /* @__PURE__ */ p(fe.span, E({
910
913
  "data-state": me(r.state),
911
914
  "data-disabled": r.disabled ? "" : void 0
912
- }, i, {
915
+ }, u, {
913
916
  ref: n,
914
917
  style: {
915
918
  pointerEvents: "none",
@@ -917,8 +920,8 @@ const Nr = [
917
920
  }
918
921
  })));
919
922
  }), jr = (e) => {
920
- const { control: n, checked: t, bubbles: a = !0, ...i } = e, r = $(null), o = vr(t), u = _r(n);
921
- return k(() => {
923
+ const { control: n, checked: t, bubbles: a = !0, ...u } = e, r = $(null), o = br(t), i = gr(n);
924
+ return O(() => {
922
925
  const c = r.current, s = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(s, "checked").set;
923
926
  if (o !== t && l) {
924
927
  const d = new Event("click", {
@@ -930,16 +933,16 @@ const Nr = [
930
933
  o,
931
934
  t,
932
935
  a
933
- ]), /* @__PURE__ */ p("input", C({
936
+ ]), /* @__PURE__ */ p("input", E({
934
937
  type: "checkbox",
935
938
  "aria-hidden": !0,
936
939
  defaultChecked: S(t) ? !1 : t
937
- }, i, {
940
+ }, u, {
938
941
  tabIndex: -1,
939
942
  ref: r,
940
943
  style: {
941
944
  ...e.style,
942
- ...u,
945
+ ...i,
943
946
  position: "absolute",
944
947
  pointerEvents: "none",
945
948
  opacity: 0,
@@ -953,11 +956,11 @@ function S(e) {
953
956
  function me(e) {
954
957
  return S(e) ? "indeterminate" : e ? "checked" : "unchecked";
955
958
  }
956
- const Er = Pr, Mr = Cr;
957
- function Rr(e) {
959
+ const Er = Ar, Mr = kr;
960
+ function zr(e) {
958
961
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
959
962
  }
960
- var be = { exports: {} };
963
+ var ve = { exports: {} };
961
964
  /*!
962
965
  Copyright (c) 2018 Jed Watson.
963
966
  Licensed under the MIT License (MIT), see
@@ -968,8 +971,8 @@ var be = { exports: {} };
968
971
  var n = {}.hasOwnProperty;
969
972
  function t() {
970
973
  for (var r = "", o = 0; o < arguments.length; o++) {
971
- var u = arguments[o];
972
- u && (r = i(r, a(u)));
974
+ var i = arguments[o];
975
+ i && (r = u(r, a(i)));
973
976
  }
974
977
  return r;
975
978
  }
@@ -983,18 +986,18 @@ var be = { exports: {} };
983
986
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
984
987
  return r.toString();
985
988
  var o = "";
986
- for (var u in r)
987
- n.call(r, u) && r[u] && (o = i(o, u));
989
+ for (var i in r)
990
+ n.call(r, i) && r[i] && (o = u(o, i));
988
991
  return o;
989
992
  }
990
- function i(r, o) {
993
+ function u(r, o) {
991
994
  return o ? r ? r + " " + o : r + o : r;
992
995
  }
993
996
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
994
997
  })();
995
- })(be);
996
- var Dr = be.exports;
997
- const B = /* @__PURE__ */ Rr(Dr), w = {
998
+ })(ve);
999
+ var Rr = ve.exports;
1000
+ const L = /* @__PURE__ */ zr(Rr), w = {
998
1001
  "purpur-checkbox": "_purpur-checkbox_10fl8_1",
999
1002
  "purpur-checkbox__box": "_purpur-checkbox__box_10fl8_7",
1000
1003
  "purpur-checkbox--error": "_purpur-checkbox--error_10fl8_16",
@@ -1002,29 +1005,29 @@ const B = /* @__PURE__ */ Rr(Dr), w = {
1002
1005
  "purpur-checkbox__label": "_purpur-checkbox__label_10fl8_70",
1003
1006
  "purpur-checkbox__wrapper": "_purpur-checkbox__wrapper_10fl8_73",
1004
1007
  "purpur-checkbox__container": "_purpur-checkbox__container_10fl8_79"
1005
- }, N = "purpur-checkbox", qr = ({
1008
+ }, N = "purpur-checkbox", Dr = ({
1006
1009
  ["data-testid"]: e,
1007
1010
  checked: n,
1008
1011
  className: t,
1009
1012
  errorText: a,
1010
- label: i,
1013
+ label: u,
1011
1014
  onChange: r,
1012
1015
  ...o
1013
- }, u) => {
1016
+ }, i) => {
1014
1017
  const c = a && !n;
1015
- return /* @__PURE__ */ z("div", { className: B([t, w[`${N}__wrapper`]]), children: [
1016
- /* @__PURE__ */ z("div", { className: B([t, w[`${N}__container`]]), children: [
1018
+ return /* @__PURE__ */ B("div", { className: L([t, w[`${N}__wrapper`]]), children: [
1019
+ /* @__PURE__ */ B("div", { className: L([t, w[`${N}__container`]]), children: [
1017
1020
  /* @__PURE__ */ f(
1018
1021
  Er,
1019
1022
  {
1020
1023
  ...o,
1021
1024
  checked: n,
1022
- className: B(w[N], {
1025
+ className: L(w[N], {
1023
1026
  [w[`${N}--error`]]: c
1024
1027
  }),
1025
1028
  "data-testid": e,
1026
1029
  onCheckedChange: r,
1027
- ref: u,
1030
+ ref: i,
1028
1031
  children: /* @__PURE__ */ f("span", { className: w[`${N}__box`], children: /* @__PURE__ */ f(Mr, { className: w[`${N}__indicator`], children: n === "indeterminate" ? /* @__PURE__ */ f(
1029
1032
  J,
1030
1033
  {
@@ -1042,22 +1045,22 @@ const B = /* @__PURE__ */ Rr(Dr), w = {
1042
1045
  ) }) })
1043
1046
  }
1044
1047
  ),
1045
- i && /* @__PURE__ */ f(
1046
- ir,
1048
+ u && /* @__PURE__ */ f(
1049
+ ur,
1047
1050
  {
1048
1051
  htmlFor: o.id,
1049
1052
  "data-testid": e && `${e}-label`,
1050
1053
  disabled: o.disabled,
1051
1054
  className: w[`${N}__label`],
1052
- children: /* @__PURE__ */ f(pr, { variant: "paragraph-100", disabled: o.disabled, children: `${o.required ? "* " : ""}${i}` })
1055
+ children: /* @__PURE__ */ f(pr, { variant: "paragraph-100", disabled: o.disabled, children: `${o.required ? "* " : ""}${u}` })
1053
1056
  }
1054
1057
  )
1055
1058
  ] }),
1056
- c && /* @__PURE__ */ f(qe, { "data-testid": e && `${e}-error-text`, children: a })
1059
+ c && /* @__PURE__ */ f(De, { "data-testid": e && `${e}-error-text`, children: a })
1057
1060
  ] });
1058
- }, Ir = g(qr);
1059
- Ir.displayName = "Checkbox";
1061
+ }, qr = _(Dr);
1062
+ qr.displayName = "Checkbox";
1060
1063
  export {
1061
- Ir as Checkbox
1064
+ qr as Checkbox
1062
1065
  };
1063
1066
  //# sourceMappingURL=checkbox.es.js.map