@purpurds/checkbox 5.35.0 → 6.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,10 +1,10 @@
1
1
  import { jsxs as z, jsx as h } from "react/jsx-runtime";
2
- import { forwardRef as g, Children as b, isValidElement as N, createElement as p, cloneElement as j, useEffect as A, Fragment as Y, useCallback as Z, createContext as V, useMemo as M, useContext as _e, useRef as $, useState as I, useLayoutEffect as ve, useReducer as ge } from "react";
2
+ import { forwardRef as g, Children as b, isValidElement as N, createElement as p, cloneElement as j, useEffect as A, Fragment as Q, useCallback as Z, createContext as V, useMemo as M, useContext as _e, useRef as $, useState as I, useLayoutEffect as ve, useReducer as ge } from "react";
3
3
  import { flushSync as $e } from "react-dom";
4
4
  function xe(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
- var Q = { exports: {} };
7
+ var Y = { exports: {} };
8
8
  /*!
9
9
  Copyright (c) 2018 Jed Watson.
10
10
  Licensed under the MIT License (MIT), see
@@ -12,8 +12,8 @@ var Q = { exports: {} };
12
12
  */
13
13
  (function(e) {
14
14
  (function() {
15
- var n = {}.hasOwnProperty;
16
- function t() {
15
+ var t = {}.hasOwnProperty;
16
+ function n() {
17
17
  for (var r = "", o = 0; o < arguments.length; o++) {
18
18
  var u = arguments[o];
19
19
  u && (r = i(r, a.call(this, u)));
@@ -26,21 +26,21 @@ var Q = { exports: {} };
26
26
  if (typeof r != "object")
27
27
  return "";
28
28
  if (Array.isArray(r))
29
- return t.apply(this, r);
29
+ return n.apply(this, r);
30
30
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
31
31
  return r.toString();
32
32
  var o = "";
33
33
  for (var u in r)
34
- n.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
34
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
35
35
  return o;
36
36
  }
37
37
  function i(r, o) {
38
38
  return o ? r ? r + " " + o : r + o : r;
39
39
  }
40
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
40
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
41
41
  })();
42
- })(Q);
43
- var ye = Q.exports;
42
+ })(Y);
43
+ var ye = Y.exports;
44
44
  const Ne = /* @__PURE__ */ xe(ye), we = {
45
45
  "purpur-icon": "_purpur-icon_8u1lq_1",
46
46
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
@@ -49,35 +49,30 @@ const Ne = /* @__PURE__ */ xe(ye), we = {
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
- }, Se = {
53
- name: "error-filled",
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
- keywords: ["error-filled"],
56
- category: "status"
57
- }, Ae = Ne.bind(we), G = "purpur-icon", Ce = "md", ke = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Pe = ({ content: e = "", title: n } = {}) => {
58
- const t = [
52
+ }, Se = Ne.bind(we), G = "purpur-icon", Ae = "md", Ce = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), ke = ({ content: e = "", title: t } = {}) => {
53
+ const n = [
59
54
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
60
55
  { name: "fill", value: "currentColor" },
61
56
  { name: "viewBox", value: "0 0 24 24" },
62
- n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
63
- ], a = n ? `<title>${n}</title>` : "";
64
- return `<svg ${ke(t)}>${a}${e}</svg>`;
65
- }, Oe = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ee = ({
57
+ t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
58
+ ], a = t ? `<title>${t}</title>` : "";
59
+ return `<svg ${Ce(n)}>${a}${e}</svg>`;
60
+ }, Pe = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ee = ({
66
61
  ["data-testid"]: e,
67
- svg: n,
68
- allyTitle: t,
62
+ svg: t,
63
+ allyTitle: n,
69
64
  className: a,
70
- size: i = Ce,
65
+ size: i = Ae,
71
66
  ...r
72
67
  }) => {
73
- const o = Pe({
74
- content: Oe(n.svg),
75
- title: t
76
- }), u = Ae(a, G, `${G}--${i}`);
68
+ const o = ke({
69
+ content: Pe(t.svg),
70
+ title: n
71
+ }), u = Se(a, G, `${G}--${i}`);
77
72
  return /* @__PURE__ */ h(
78
73
  "span",
79
74
  {
80
- "aria-label": t,
75
+ "aria-label": n,
81
76
  className: u,
82
77
  "data-testid": e,
83
78
  dangerouslySetInnerHTML: { __html: o },
@@ -86,6 +81,12 @@ const Ne = /* @__PURE__ */ xe(ye), we = {
86
81
  );
87
82
  };
88
83
  ee.displayName = "Icon";
84
+ const Oe = {
85
+ name: "error-filled",
86
+ 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>',
87
+ keywords: ["error-filled"],
88
+ category: "status"
89
+ };
89
90
  function Ee(e) {
90
91
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
91
92
  }
@@ -97,8 +98,8 @@ var re = { exports: {} };
97
98
  */
98
99
  (function(e) {
99
100
  (function() {
100
- var n = {}.hasOwnProperty;
101
- function t() {
101
+ var t = {}.hasOwnProperty;
102
+ function n() {
102
103
  for (var r = "", o = 0; o < arguments.length; o++) {
103
104
  var u = arguments[o];
104
105
  u && (r = i(r, a(u)));
@@ -111,48 +112,48 @@ var re = { exports: {} };
111
112
  if (typeof r != "object")
112
113
  return "";
113
114
  if (Array.isArray(r))
114
- return t.apply(null, r);
115
+ return n.apply(null, r);
115
116
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
116
117
  return r.toString();
117
118
  var o = "";
118
119
  for (var u in r)
119
- n.call(r, u) && r[u] && (o = i(o, u));
120
+ t.call(r, u) && r[u] && (o = i(o, u));
120
121
  return o;
121
122
  }
122
123
  function i(r, o) {
123
124
  return o ? r ? r + " " + o : r + o : r;
124
125
  }
125
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
126
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
126
127
  })();
127
128
  })(re);
128
129
  var Me = re.exports;
129
130
  const je = /* @__PURE__ */ Ee(Me), K = {
130
131
  "purpur-field-error-text": "_purpur-field-error-text_1u768_1",
131
132
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"
132
- }, X = "purpur-field-error-text", Re = ({
133
+ }, W = "purpur-field-error-text", Re = ({
133
134
  ["data-testid"]: e,
134
- children: n,
135
- className: t,
135
+ children: t,
136
+ className: n,
136
137
  relevant: a = "additions text",
137
138
  ...i
138
139
  }) => /* @__PURE__ */ z(
139
140
  "div",
140
141
  {
141
- className: je([t, K[X]]),
142
+ className: je([n, K[W]]),
142
143
  "data-testid": e,
143
144
  "aria-live": "assertive",
144
145
  "aria-relevant": a,
145
146
  ...i,
146
147
  children: [
147
- /* @__PURE__ */ h(ee, { svg: Se, size: "xs", className: K[`${X}__icon`] }),
148
- n
148
+ /* @__PURE__ */ h(ee, { svg: Oe, size: "xs", className: K[`${W}__icon`] }),
149
+ t
149
150
  ]
150
151
  }
151
152
  );
152
153
  function De(e) {
153
154
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
154
155
  }
155
- var te = { exports: {} };
156
+ var ne = { exports: {} };
156
157
  /*!
157
158
  Copyright (c) 2018 Jed Watson.
158
159
  Licensed under the MIT License (MIT), see
@@ -160,8 +161,8 @@ var te = { exports: {} };
160
161
  */
161
162
  (function(e) {
162
163
  (function() {
163
- var n = {}.hasOwnProperty;
164
- function t() {
164
+ var t = {}.hasOwnProperty;
165
+ function n() {
165
166
  for (var r = "", o = 0; o < arguments.length; o++) {
166
167
  var u = arguments[o];
167
168
  u && (r = i(r, a.call(this, u)));
@@ -174,22 +175,22 @@ var te = { exports: {} };
174
175
  if (typeof r != "object")
175
176
  return "";
176
177
  if (Array.isArray(r))
177
- return t.apply(this, r);
178
+ return n.apply(this, r);
178
179
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
179
180
  return r.toString();
180
181
  var o = "";
181
182
  for (var u in r)
182
- n.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
183
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
183
184
  return o;
184
185
  }
185
186
  function i(r, o) {
186
187
  return o ? r ? r + " " + o : r + o : r;
187
188
  }
188
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
189
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
189
190
  })();
190
- })(te);
191
- var Ie = te.exports;
192
- const Le = /* @__PURE__ */ De(Ie), qe = {
191
+ })(ne);
192
+ var Ie = ne.exports;
193
+ const qe = /* @__PURE__ */ De(Ie), Le = {
193
194
  "purpur-icon": "_purpur-icon_8u1lq_1",
194
195
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
195
196
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -197,40 +198,30 @@ const Le = /* @__PURE__ */ De(Ie), qe = {
197
198
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
198
199
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
199
200
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
200
- }, Be = {
201
- name: "checkmark-bold",
202
- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',
203
- keywords: ["checkmark-bold"],
204
- category: "utility"
205
- }, ze = {
206
- name: "minus-bold",
207
- 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>',
208
- keywords: ["minus-bold"],
209
- category: "utility"
210
- }, Te = Le.bind(qe), W = "purpur-icon", Ue = "md", He = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Fe = ({ content: e = "", title: n } = {}) => {
211
- const t = [
201
+ }, Be = qe.bind(Le), X = "purpur-icon", ze = "md", Te = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Ue = ({ content: e = "", title: t } = {}) => {
202
+ const n = [
212
203
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
213
204
  { name: "fill", value: "currentColor" },
214
205
  { name: "viewBox", value: "0 0 24 24" },
215
- n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
216
- ], a = n ? `<title>${n}</title>` : "";
217
- return `<svg ${He(t)}>${a}${e}</svg>`;
218
- }, Ze = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), T = ({
206
+ t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
207
+ ], a = t ? `<title>${t}</title>` : "";
208
+ return `<svg ${Te(n)}>${a}${e}</svg>`;
209
+ }, He = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), T = ({
219
210
  ["data-testid"]: e,
220
- svg: n,
221
- allyTitle: t,
211
+ svg: t,
212
+ allyTitle: n,
222
213
  className: a,
223
- size: i = Ue,
214
+ size: i = ze,
224
215
  ...r
225
216
  }) => {
226
- const o = Fe({
227
- content: Ze(n.svg),
228
- title: t
229
- }), u = Te(a, W, `${W}--${i}`);
217
+ const o = Ue({
218
+ content: He(t.svg),
219
+ title: n
220
+ }), u = Be(a, X, `${X}--${i}`);
230
221
  return /* @__PURE__ */ h(
231
222
  "span",
232
223
  {
233
- "aria-label": t,
224
+ "aria-label": n,
234
225
  className: u,
235
226
  "data-testid": e,
236
227
  dangerouslySetInnerHTML: { __html: o },
@@ -239,67 +230,78 @@ const Le = /* @__PURE__ */ De(Ie), qe = {
239
230
  );
240
231
  };
241
232
  T.displayName = "Icon";
233
+ const Fe = {
234
+ name: "checkmark-bold",
235
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',
236
+ keywords: ["checkmark-bold"],
237
+ category: "utility"
238
+ }, Ze = {
239
+ name: "minus-bold",
240
+ 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>',
241
+ keywords: ["minus-bold"],
242
+ category: "utility"
243
+ };
242
244
  function k() {
243
245
  return k = Object.assign ? Object.assign.bind() : function(e) {
244
- for (var n = 1; n < arguments.length; n++) {
245
- var t = arguments[n];
246
- for (var a in t) ({}).hasOwnProperty.call(t, a) && (e[a] = t[a]);
246
+ for (var t = 1; t < arguments.length; t++) {
247
+ var n = arguments[t];
248
+ for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
247
249
  }
248
250
  return e;
249
251
  }, k.apply(null, arguments);
250
252
  }
251
- function Ve(e, n) {
252
- typeof e == "function" ? e(n) : e != null && (e.current = n);
253
+ function Ve(e, t) {
254
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
253
255
  }
254
256
  function Ge(...e) {
255
- return (n) => e.forEach(
256
- (t) => Ve(t, n)
257
+ return (t) => e.forEach(
258
+ (n) => Ve(n, t)
257
259
  );
258
260
  }
259
- const ne = /* @__PURE__ */ g((e, n) => {
260
- const { children: t, ...a } = e, i = b.toArray(t), r = i.find(Xe);
261
+ const te = /* @__PURE__ */ g((e, t) => {
262
+ const { children: n, ...a } = e, i = b.toArray(n), r = i.find(We);
261
263
  if (r) {
262
264
  const o = r.props.children, u = i.map((c) => c === r ? b.count(o) > 1 ? b.only(null) : /* @__PURE__ */ N(o) ? o.props.children : null : c);
263
265
  return /* @__PURE__ */ p(U, k({}, a, {
264
- ref: n
266
+ ref: t
265
267
  }), /* @__PURE__ */ N(o) ? /* @__PURE__ */ j(o, void 0, u) : null);
266
268
  }
267
269
  return /* @__PURE__ */ p(U, k({}, a, {
268
- ref: n
269
- }), t);
270
+ ref: t
271
+ }), n);
270
272
  });
271
- ne.displayName = "Slot";
272
- const U = /* @__PURE__ */ g((e, n) => {
273
- const { children: t, ...a } = e;
274
- return /* @__PURE__ */ N(t) ? /* @__PURE__ */ j(t, {
275
- ...We(a, t.props),
276
- ref: n ? Ge(n, t.ref) : t.ref
277
- }) : b.count(t) > 1 ? b.only(null) : null;
273
+ te.displayName = "Slot";
274
+ const U = /* @__PURE__ */ g((e, t) => {
275
+ const { children: n, ...a } = e;
276
+ return /* @__PURE__ */ N(n) ? /* @__PURE__ */ j(n, {
277
+ ...Xe(a, n.props),
278
+ ref: t ? Ge(t, n.ref) : n.ref
279
+ }) : b.count(n) > 1 ? b.only(null) : null;
278
280
  });
279
281
  U.displayName = "SlotClone";
280
- const Ke = ({ children: e }) => /* @__PURE__ */ p(Y, null, e);
281
- function Xe(e) {
282
+ const Ke = ({ children: e }) => /* @__PURE__ */ p(Q, null, e);
283
+ function We(e) {
282
284
  return /* @__PURE__ */ N(e) && e.type === Ke;
283
285
  }
284
- function We(e, n) {
285
- const t = {
286
- ...n
286
+ function Xe(e, t) {
287
+ const n = {
288
+ ...t
287
289
  };
288
- for (const a in n) {
289
- const i = e[a], r = n[a];
290
- /^on[A-Z]/.test(a) ? i && r ? t[a] = (...o) => {
290
+ for (const a in t) {
291
+ const i = e[a], r = t[a];
292
+ /^on[A-Z]/.test(a) ? i && r ? n[a] = (...o) => {
291
293
  r(...o), i(...o);
292
- } : i && (t[a] = i) : a === "style" ? t[a] = {
294
+ } : i && (n[a] = i) : a === "style" ? n[a] = {
293
295
  ...i,
294
296
  ...r
295
- } : a === "className" && (t[a] = [
297
+ } : a === "className" && (n[a] = [
296
298
  i,
297
299
  r
298
300
  ].filter(Boolean).join(" "));
299
301
  }
300
302
  return {
301
303
  ...e,
302
- ...t
304
+ ...n
303
305
  };
304
306
  }
305
307
  const Je = [
@@ -319,26 +321,26 @@ const Je = [
319
321
  "span",
320
322
  "svg",
321
323
  "ul"
322
- ], Ye = Je.reduce((e, n) => {
323
- const t = /* @__PURE__ */ g((a, i) => {
324
- const { asChild: r, ...o } = a, u = r ? ne : n;
324
+ ], Qe = Je.reduce((e, t) => {
325
+ const n = /* @__PURE__ */ g((a, i) => {
326
+ const { asChild: r, ...o } = a, u = r ? te : t;
325
327
  return A(() => {
326
328
  window[Symbol.for("radix-ui")] = !0;
327
329
  }, []), /* @__PURE__ */ p(u, k({}, o, {
328
330
  ref: i
329
331
  }));
330
332
  });
331
- return t.displayName = `Primitive.${n}`, {
333
+ return n.displayName = `Primitive.${t}`, {
332
334
  ...e,
333
- [n]: t
335
+ [t]: n
334
336
  };
335
- }, {}), Qe = /* @__PURE__ */ g((e, n) => /* @__PURE__ */ p(Ye.label, k({}, e, {
336
- ref: n,
337
- onMouseDown: (t) => {
337
+ }, {}), Ye = /* @__PURE__ */ g((e, t) => /* @__PURE__ */ p(Qe.label, k({}, e, {
338
+ ref: t,
339
+ onMouseDown: (n) => {
338
340
  var a;
339
- (a = e.onMouseDown) === null || a === void 0 || a.call(e, t), !t.defaultPrevented && t.detail > 1 && t.preventDefault();
341
+ (a = e.onMouseDown) === null || a === void 0 || a.call(e, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault();
340
342
  }
341
- }))), er = Qe;
343
+ }))), er = Ye;
342
344
  function rr(e) {
343
345
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
344
346
  }
@@ -350,8 +352,8 @@ var oe = { exports: {} };
350
352
  */
351
353
  (function(e) {
352
354
  (function() {
353
- var n = {}.hasOwnProperty;
354
- function t() {
355
+ var t = {}.hasOwnProperty;
356
+ function n() {
355
357
  for (var r = "", o = 0; o < arguments.length; o++) {
356
358
  var u = arguments[o];
357
359
  u && (r = i(r, a(u)));
@@ -364,43 +366,43 @@ var oe = { exports: {} };
364
366
  if (typeof r != "object")
365
367
  return "";
366
368
  if (Array.isArray(r))
367
- return t.apply(null, r);
369
+ return n.apply(null, r);
368
370
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
369
371
  return r.toString();
370
372
  var o = "";
371
373
  for (var u in r)
372
- n.call(r, u) && r[u] && (o = i(o, u));
374
+ t.call(r, u) && r[u] && (o = i(o, u));
373
375
  return o;
374
376
  }
375
377
  function i(r, o) {
376
378
  return o ? r ? r + " " + o : r + o : r;
377
379
  }
378
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
380
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
379
381
  })();
380
382
  })(oe);
381
- var tr = oe.exports;
382
- const nr = /* @__PURE__ */ rr(tr), q = {
383
+ var nr = oe.exports;
384
+ const tr = /* @__PURE__ */ rr(nr), L = {
383
385
  "purpur-label": "_purpur-label_12cfi_1",
384
386
  "purpur-label--negative": "_purpur-label--negative_12cfi_9",
385
387
  "purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
386
388
  }, B = "purpur-label", or = ({
387
389
  children: e,
388
- className: n,
389
- htmlFor: t,
390
+ className: t,
391
+ htmlFor: n,
390
392
  "data-testid": a,
391
393
  disabled: i,
392
394
  negative: r = !1,
393
395
  ...o
394
396
  }) => {
395
- const u = nr([
396
- n,
397
- q[B],
397
+ const u = tr([
398
+ t,
399
+ L[B],
398
400
  {
399
- [q[`${B}--disabled`]]: i,
400
- [q[`${B}--negative`]]: r
401
+ [L[`${B}--disabled`]]: i,
402
+ [L[`${B}--negative`]]: r
401
403
  }
402
404
  ]);
403
- return /* @__PURE__ */ h(er, { className: u, "data-testid": a, htmlFor: t, ...o, children: e });
405
+ return /* @__PURE__ */ h(er, { className: u, "data-testid": a, htmlFor: n, ...o, children: e });
404
406
  };
405
407
  function ar(e) {
406
408
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -413,8 +415,8 @@ var ae = { exports: {} };
413
415
  */
414
416
  (function(e) {
415
417
  (function() {
416
- var n = {}.hasOwnProperty;
417
- function t() {
418
+ var t = {}.hasOwnProperty;
419
+ function n() {
418
420
  for (var r = "", o = 0; o < arguments.length; o++) {
419
421
  var u = arguments[o];
420
422
  u && (r = i(r, a(u)));
@@ -427,18 +429,18 @@ var ae = { exports: {} };
427
429
  if (typeof r != "object")
428
430
  return "";
429
431
  if (Array.isArray(r))
430
- return t.apply(null, r);
432
+ return n.apply(null, r);
431
433
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
432
434
  return r.toString();
433
435
  var o = "";
434
436
  for (var u in r)
435
- n.call(r, u) && r[u] && (o = i(o, u));
437
+ t.call(r, u) && r[u] && (o = i(o, u));
436
438
  return o;
437
439
  }
438
440
  function i(r, o) {
439
441
  return o ? r ? r + " " + o : r + o : r;
440
442
  }
441
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
443
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
442
444
  })();
443
445
  })(ae);
444
446
  var ur = ae.exports;
@@ -470,8 +472,8 @@ const ir = /* @__PURE__ */ ar(ur), O = {
470
472
  OVERLINE200: "overline-200"
471
473
  }, E = "purpur-paragraph", ue = ({
472
474
  ["data-testid"]: e,
473
- children: n,
474
- className: t,
475
+ children: t,
476
+ className: n,
475
477
  disabled: a,
476
478
  enableHyphenation: i = !1,
477
479
  negative: r = !1,
@@ -479,7 +481,7 @@ const ir = /* @__PURE__ */ ar(ur), O = {
479
481
  ...u
480
482
  }) => {
481
483
  const c = ir([
482
- t,
484
+ n,
483
485
  O[E],
484
486
  O[`${E}--${o}`],
485
487
  {
@@ -488,35 +490,35 @@ const ir = /* @__PURE__ */ ar(ur), O = {
488
490
  [O[`${E}--negative`]]: r
489
491
  }
490
492
  ]);
491
- return /* @__PURE__ */ h("p", { ...u, className: c, "data-testid": e, children: n });
493
+ return /* @__PURE__ */ h("p", { ...u, className: c, "data-testid": e, children: t });
492
494
  };
493
495
  ue.displayName = "Paragraph";
494
496
  function w() {
495
497
  return w = Object.assign ? Object.assign.bind() : function(e) {
496
- for (var n = 1; n < arguments.length; n++) {
497
- var t = arguments[n];
498
- for (var a in t) ({}).hasOwnProperty.call(t, a) && (e[a] = t[a]);
498
+ for (var t = 1; t < arguments.length; t++) {
499
+ var n = arguments[t];
500
+ for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
499
501
  }
500
502
  return e;
501
503
  }, w.apply(null, arguments);
502
504
  }
503
- function sr(e, n) {
504
- typeof e == "function" ? e(n) : e != null && (e.current = n);
505
+ function sr(e, t) {
506
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
505
507
  }
506
508
  function ie(...e) {
507
- return (n) => e.forEach(
508
- (t) => sr(t, n)
509
+ return (t) => e.forEach(
510
+ (n) => sr(n, t)
509
511
  );
510
512
  }
511
513
  function ce(...e) {
512
514
  return Z(ie(...e), e);
513
515
  }
514
- function lr(e, n = []) {
515
- let t = [];
516
+ function lr(e, t = []) {
517
+ let n = [];
516
518
  function a(r, o) {
517
- const u = /* @__PURE__ */ V(o), c = t.length;
518
- t = [
519
- ...t,
519
+ const u = /* @__PURE__ */ V(o), c = n.length;
520
+ n = [
521
+ ...n,
520
522
  o
521
523
  ];
522
524
  function s(l) {
@@ -540,7 +542,7 @@ function lr(e, n = []) {
540
542
  ];
541
543
  }
542
544
  const i = () => {
543
- const r = t.map((o) => /* @__PURE__ */ V(o));
545
+ const r = n.map((o) => /* @__PURE__ */ V(o));
544
546
  return function(u) {
545
547
  const c = (u == null ? void 0 : u[e]) || r;
546
548
  return M(
@@ -559,13 +561,13 @@ function lr(e, n = []) {
559
561
  };
560
562
  return i.scopeName = e, [
561
563
  a,
562
- pr(i, ...n)
564
+ pr(i, ...t)
563
565
  ];
564
566
  }
565
567
  function pr(...e) {
566
- const n = e[0];
567
- if (e.length === 1) return n;
568
- const t = () => {
568
+ const t = e[0];
569
+ if (e.length === 1) return t;
570
+ const n = () => {
569
571
  const a = e.map(
570
572
  (i) => ({
571
573
  useScope: i(),
@@ -582,7 +584,7 @@ function pr(...e) {
582
584
  }, {});
583
585
  return M(
584
586
  () => ({
585
- [`__scope${n.scopeName}`]: o
587
+ [`__scope${t.scopeName}`]: o
586
588
  }),
587
589
  [
588
590
  o
@@ -590,31 +592,31 @@ function pr(...e) {
590
592
  );
591
593
  };
592
594
  };
593
- return t.scopeName = n.scopeName, t;
595
+ return n.scopeName = t.scopeName, n;
594
596
  }
595
- function J(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
597
+ function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
596
598
  return function(i) {
597
- if (e == null || e(i), t === !1 || !i.defaultPrevented) return n == null ? void 0 : n(i);
599
+ if (e == null || e(i), n === !1 || !i.defaultPrevented) return t == null ? void 0 : t(i);
598
600
  };
599
601
  }
600
602
  function se(e) {
601
- const n = $(e);
603
+ const t = $(e);
602
604
  return A(() => {
603
- n.current = e;
605
+ t.current = e;
604
606
  }), M(
605
- () => (...t) => {
607
+ () => (...n) => {
606
608
  var a;
607
- return (a = n.current) === null || a === void 0 ? void 0 : a.call(n, ...t);
609
+ return (a = t.current) === null || a === void 0 ? void 0 : a.call(t, ...n);
608
610
  },
609
611
  []
610
612
  );
611
613
  }
612
- function dr({ prop: e, defaultProp: n, onChange: t = () => {
614
+ function dr({ prop: e, defaultProp: t, onChange: n = () => {
613
615
  } }) {
614
616
  const [a, i] = fr({
615
- defaultProp: n,
616
- onChange: t
617
- }), r = e !== void 0, o = r ? e : a, u = se(t), c = Z((s) => {
617
+ defaultProp: t,
618
+ onChange: n
619
+ }), r = e !== void 0, o = r ? e : a, u = se(n), c = Z((s) => {
618
620
  if (r) {
619
621
  const l = typeof s == "function" ? s(e) : s;
620
622
  l !== e && u(l);
@@ -630,32 +632,32 @@ function dr({ prop: e, defaultProp: n, onChange: t = () => {
630
632
  c
631
633
  ];
632
634
  }
633
- function fr({ defaultProp: e, onChange: n }) {
634
- const t = I(e), [a] = t, i = $(a), r = se(n);
635
+ function fr({ defaultProp: e, onChange: t }) {
636
+ const n = I(e), [a] = n, i = $(a), r = se(t);
635
637
  return A(() => {
636
638
  i.current !== a && (r(a), i.current = a);
637
639
  }, [
638
640
  a,
639
641
  i,
640
642
  r
641
- ]), t;
643
+ ]), n;
642
644
  }
643
645
  function hr(e) {
644
- const n = $({
646
+ const t = $({
645
647
  value: e,
646
648
  previous: e
647
649
  });
648
- return M(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
650
+ return M(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [
649
651
  e
650
652
  ]);
651
653
  }
652
654
  const H = globalThis != null && globalThis.document ? ve : () => {
653
655
  };
654
656
  function mr(e) {
655
- const [n, t] = I(void 0);
657
+ const [t, n] = I(void 0);
656
658
  return H(() => {
657
659
  if (e) {
658
- t({
660
+ n({
659
661
  width: e.offsetWidth,
660
662
  height: e.offsetHeight
661
663
  });
@@ -668,7 +670,7 @@ function mr(e) {
668
670
  o = s.inlineSize, u = s.blockSize;
669
671
  } else
670
672
  o = e.offsetWidth, u = e.offsetHeight;
671
- t({
673
+ n({
672
674
  width: o,
673
675
  height: u
674
676
  });
@@ -677,28 +679,28 @@ function mr(e) {
677
679
  box: "border-box"
678
680
  }), () => a.unobserve(e);
679
681
  } else
680
- t(void 0);
682
+ n(void 0);
681
683
  }, [
682
684
  e
683
- ]), n;
685
+ ]), t;
684
686
  }
685
- function br(e, n) {
686
- return ge((t, a) => {
687
- const i = n[t][a];
688
- return i ?? t;
687
+ function br(e, t) {
688
+ return ge((n, a) => {
689
+ const i = t[n][a];
690
+ return i ?? n;
689
691
  }, e);
690
692
  }
691
693
  const le = (e) => {
692
- const { present: n, children: t } = e, a = _r(n), i = typeof t == "function" ? t({
694
+ const { present: t, children: n } = e, a = _r(t), i = typeof n == "function" ? n({
693
695
  present: a.isPresent
694
- }) : b.only(t), r = ce(a.ref, i.ref);
695
- return typeof t == "function" || a.isPresent ? /* @__PURE__ */ j(i, {
696
+ }) : b.only(n), r = ce(a.ref, i.ref);
697
+ return typeof n == "function" || a.isPresent ? /* @__PURE__ */ j(i, {
696
698
  ref: r
697
699
  }) : null;
698
700
  };
699
701
  le.displayName = "Presence";
700
702
  function _r(e) {
701
- const [n, t] = I(), a = $({}), i = $(e), r = $("none"), o = e ? "mounted" : "unmounted", [u, c] = br(o, {
703
+ const [t, n] = I(), a = $({}), i = $(e), r = $("none"), o = e ? "mounted" : "unmounted", [u, c] = br(o, {
702
704
  mounted: {
703
705
  UNMOUNT: "unmounted",
704
706
  ANIMATION_OUT: "unmountSuspended"
@@ -726,22 +728,22 @@ function _r(e) {
726
728
  e,
727
729
  c
728
730
  ]), H(() => {
729
- if (n) {
731
+ if (t) {
730
732
  const s = (l) => {
731
733
  const _ = D(a.current).includes(l.animationName);
732
- l.target === n && _ && $e(
734
+ l.target === t && _ && $e(
733
735
  () => c("ANIMATION_END")
734
736
  );
735
737
  }, d = (l) => {
736
- l.target === n && (r.current = D(a.current));
738
+ l.target === t && (r.current = D(a.current));
737
739
  };
738
- return n.addEventListener("animationstart", d), n.addEventListener("animationcancel", s), n.addEventListener("animationend", s), () => {
739
- n.removeEventListener("animationstart", d), n.removeEventListener("animationcancel", s), n.removeEventListener("animationend", s);
740
+ return t.addEventListener("animationstart", d), t.addEventListener("animationcancel", s), t.addEventListener("animationend", s), () => {
741
+ t.removeEventListener("animationstart", d), t.removeEventListener("animationcancel", s), t.removeEventListener("animationend", s);
740
742
  };
741
743
  } else
742
744
  c("ANIMATION_END");
743
745
  }, [
744
- n,
746
+ t,
745
747
  c
746
748
  ]), {
747
749
  isPresent: [
@@ -749,57 +751,57 @@ function _r(e) {
749
751
  "unmountSuspended"
750
752
  ].includes(u),
751
753
  ref: Z((s) => {
752
- s && (a.current = getComputedStyle(s)), t(s);
754
+ s && (a.current = getComputedStyle(s)), n(s);
753
755
  }, [])
754
756
  };
755
757
  }
756
758
  function D(e) {
757
759
  return (e == null ? void 0 : e.animationName) || "none";
758
760
  }
759
- const pe = /* @__PURE__ */ g((e, n) => {
760
- const { children: t, ...a } = e, i = b.toArray(t), r = i.find(gr);
761
+ const pe = /* @__PURE__ */ g((e, t) => {
762
+ const { children: n, ...a } = e, i = b.toArray(n), r = i.find(gr);
761
763
  if (r) {
762
764
  const o = r.props.children, u = i.map((c) => c === r ? b.count(o) > 1 ? b.only(null) : /* @__PURE__ */ N(o) ? o.props.children : null : c);
763
765
  return /* @__PURE__ */ p(F, w({}, a, {
764
- ref: n
766
+ ref: t
765
767
  }), /* @__PURE__ */ N(o) ? /* @__PURE__ */ j(o, void 0, u) : null);
766
768
  }
767
769
  return /* @__PURE__ */ p(F, w({}, a, {
768
- ref: n
769
- }), t);
770
+ ref: t
771
+ }), n);
770
772
  });
771
773
  pe.displayName = "Slot";
772
- const F = /* @__PURE__ */ g((e, n) => {
773
- const { children: t, ...a } = e;
774
- return /* @__PURE__ */ N(t) ? /* @__PURE__ */ j(t, {
775
- ...$r(a, t.props),
776
- ref: n ? ie(n, t.ref) : t.ref
777
- }) : b.count(t) > 1 ? b.only(null) : null;
774
+ const F = /* @__PURE__ */ g((e, t) => {
775
+ const { children: n, ...a } = e;
776
+ return /* @__PURE__ */ N(n) ? /* @__PURE__ */ j(n, {
777
+ ...$r(a, n.props),
778
+ ref: t ? ie(t, n.ref) : n.ref
779
+ }) : b.count(n) > 1 ? b.only(null) : null;
778
780
  });
779
781
  F.displayName = "SlotClone";
780
- const vr = ({ children: e }) => /* @__PURE__ */ p(Y, null, e);
782
+ const vr = ({ children: e }) => /* @__PURE__ */ p(Q, null, e);
781
783
  function gr(e) {
782
784
  return /* @__PURE__ */ N(e) && e.type === vr;
783
785
  }
784
- function $r(e, n) {
785
- const t = {
786
- ...n
786
+ function $r(e, t) {
787
+ const n = {
788
+ ...t
787
789
  };
788
- for (const a in n) {
789
- const i = e[a], r = n[a];
790
- /^on[A-Z]/.test(a) ? i && r ? t[a] = (...u) => {
790
+ for (const a in t) {
791
+ const i = e[a], r = t[a];
792
+ /^on[A-Z]/.test(a) ? i && r ? n[a] = (...u) => {
791
793
  r(...u), i(...u);
792
- } : i && (t[a] = i) : a === "style" ? t[a] = {
794
+ } : i && (n[a] = i) : a === "style" ? n[a] = {
793
795
  ...i,
794
796
  ...r
795
- } : a === "className" && (t[a] = [
797
+ } : a === "className" && (n[a] = [
796
798
  i,
797
799
  r
798
800
  ].filter(Boolean).join(" "));
799
801
  }
800
802
  return {
801
803
  ...e,
802
- ...t
804
+ ...n
803
805
  };
804
806
  }
805
807
  const xr = [
@@ -819,24 +821,24 @@ const xr = [
819
821
  "span",
820
822
  "svg",
821
823
  "ul"
822
- ], de = xr.reduce((e, n) => {
823
- const t = /* @__PURE__ */ g((a, i) => {
824
- const { asChild: r, ...o } = a, u = r ? pe : n;
824
+ ], de = xr.reduce((e, t) => {
825
+ const n = /* @__PURE__ */ g((a, i) => {
826
+ const { asChild: r, ...o } = a, u = r ? pe : t;
825
827
  return A(() => {
826
828
  window[Symbol.for("radix-ui")] = !0;
827
829
  }, []), /* @__PURE__ */ p(u, w({}, o, {
828
830
  ref: i
829
831
  }));
830
832
  });
831
- return t.displayName = `Primitive.${n}`, {
833
+ return n.displayName = `Primitive.${t}`, {
832
834
  ...e,
833
- [n]: t
835
+ [t]: n
834
836
  };
835
- }, {}), fe = "Checkbox", [yr, zr] = lr(fe), [Nr, wr] = yr(fe), Sr = /* @__PURE__ */ g((e, n) => {
836
- const { __scopeCheckbox: t, name: a, checked: i, defaultChecked: r, required: o, disabled: u, value: c = "on", onCheckedChange: s, ...d } = e, [l, f] = I(null), _ = ce(
837
- n,
837
+ }, {}), fe = "Checkbox", [yr, zr] = lr(fe), [Nr, wr] = yr(fe), Sr = /* @__PURE__ */ g((e, t) => {
838
+ const { __scopeCheckbox: n, name: a, checked: i, defaultChecked: r, required: o, disabled: u, value: c = "on", onCheckedChange: s, ...d } = e, [l, f] = I(null), _ = ce(
839
+ t,
838
840
  (m) => f(m)
839
- ), v = $(!1), R = l ? !!l.closest("form") : !0, [x = !1, L] = dr({
841
+ ), v = $(!1), R = l ? !!l.closest("form") : !0, [x = !1, q] = dr({
840
842
  prop: i,
841
843
  defaultProp: r,
842
844
  onChange: s
@@ -844,14 +846,14 @@ const xr = [
844
846
  return A(() => {
845
847
  const m = l == null ? void 0 : l.form;
846
848
  if (m) {
847
- const P = () => L(be.current);
849
+ const P = () => q(be.current);
848
850
  return m.addEventListener("reset", P), () => m.removeEventListener("reset", P);
849
851
  }
850
852
  }, [
851
853
  l,
852
- L
854
+ q
853
855
  ]), /* @__PURE__ */ p(Nr, {
854
- scope: t,
856
+ scope: n,
855
857
  state: x,
856
858
  disabled: u
857
859
  }, /* @__PURE__ */ p(de.button, w({
@@ -869,7 +871,7 @@ const xr = [
869
871
  m.key === "Enter" && m.preventDefault();
870
872
  }),
871
873
  onClick: J(e.onClick, (m) => {
872
- L(
874
+ q(
873
875
  (P) => S(P) ? !0 : !P
874
876
  ), R && (v.current = m.isPropagationStopped(), v.current || m.stopPropagation());
875
877
  })
@@ -885,38 +887,38 @@ const xr = [
885
887
  transform: "translateX(-100%)"
886
888
  }
887
889
  }));
888
- }), Ar = "CheckboxIndicator", Cr = /* @__PURE__ */ g((e, n) => {
889
- const { __scopeCheckbox: t, forceMount: a, ...i } = e, r = wr(Ar, t);
890
+ }), Ar = "CheckboxIndicator", Cr = /* @__PURE__ */ g((e, t) => {
891
+ const { __scopeCheckbox: n, forceMount: a, ...i } = e, r = wr(Ar, n);
890
892
  return /* @__PURE__ */ p(le, {
891
893
  present: a || S(r.state) || r.state === !0
892
894
  }, /* @__PURE__ */ p(de.span, w({
893
895
  "data-state": he(r.state),
894
896
  "data-disabled": r.disabled ? "" : void 0
895
897
  }, i, {
896
- ref: n,
898
+ ref: t,
897
899
  style: {
898
900
  pointerEvents: "none",
899
901
  ...e.style
900
902
  }
901
903
  })));
902
904
  }), kr = (e) => {
903
- const { control: n, checked: t, bubbles: a = !0, ...i } = e, r = $(null), o = hr(t), u = mr(n);
905
+ const { control: t, checked: n, bubbles: a = !0, ...i } = e, r = $(null), o = hr(n), u = mr(t);
904
906
  return A(() => {
905
907
  const c = r.current, s = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(s, "checked").set;
906
- if (o !== t && l) {
908
+ if (o !== n && l) {
907
909
  const f = new Event("click", {
908
910
  bubbles: a
909
911
  });
910
- c.indeterminate = S(t), l.call(c, S(t) ? !1 : t), c.dispatchEvent(f);
912
+ c.indeterminate = S(n), l.call(c, S(n) ? !1 : n), c.dispatchEvent(f);
911
913
  }
912
914
  }, [
913
915
  o,
914
- t,
916
+ n,
915
917
  a
916
918
  ]), /* @__PURE__ */ p("input", w({
917
919
  type: "checkbox",
918
920
  "aria-hidden": !0,
919
- defaultChecked: S(t) ? !1 : t
921
+ defaultChecked: S(n) ? !1 : n
920
922
  }, i, {
921
923
  tabIndex: -1,
922
924
  ref: r,
@@ -948,8 +950,8 @@ var me = { exports: {} };
948
950
  */
949
951
  (function(e) {
950
952
  (function() {
951
- var n = {}.hasOwnProperty;
952
- function t() {
953
+ var t = {}.hasOwnProperty;
954
+ function n() {
953
955
  for (var r = "", o = 0; o < arguments.length; o++) {
954
956
  var u = arguments[o];
955
957
  u && (r = i(r, a.call(this, u)));
@@ -962,18 +964,18 @@ var me = { exports: {} };
962
964
  if (typeof r != "object")
963
965
  return "";
964
966
  if (Array.isArray(r))
965
- return t.apply(this, r);
967
+ return n.apply(this, r);
966
968
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
967
969
  return r.toString();
968
970
  var o = "";
969
971
  for (var u in r)
970
- n.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
972
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
971
973
  return o;
972
974
  }
973
975
  function i(r, o) {
974
976
  return o ? r ? r + " " + o : r + o : r;
975
977
  }
976
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
978
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
977
979
  })();
978
980
  })(me);
979
981
  var Mr = me.exports;
@@ -988,22 +990,22 @@ const jr = /* @__PURE__ */ Er(Mr), Rr = {
988
990
  "purpur-checkbox__container": "_purpur-checkbox__container_m4999_79"
989
991
  }, C = jr.bind(Rr), Tr = ["indeterminate", !0, !1], y = "purpur-checkbox", Dr = ({
990
992
  ["data-testid"]: e,
991
- checked: n,
992
- className: t,
993
+ checked: t,
994
+ className: n,
993
995
  error: a = !1,
994
996
  errorText: i,
995
997
  label: r,
996
998
  onChange: o,
997
999
  ...u
998
1000
  }, c) => {
999
- const s = i && !n, d = a && !n;
1000
- return /* @__PURE__ */ z("div", { className: C([t, `${y}__wrapper`]), children: [
1001
- /* @__PURE__ */ z("div", { className: C([t, `${y}__container`]), children: [
1001
+ const s = i && !t, d = a && !t;
1002
+ return /* @__PURE__ */ z("div", { className: C([n, `${y}__wrapper`]), children: [
1003
+ /* @__PURE__ */ z("div", { className: C([n, `${y}__container`]), children: [
1002
1004
  /* @__PURE__ */ h(
1003
1005
  Pr,
1004
1006
  {
1005
1007
  ...u,
1006
- checked: n,
1008
+ checked: t,
1007
1009
  className: C([
1008
1010
  y,
1009
1011
  {
@@ -1014,19 +1016,19 @@ const jr = /* @__PURE__ */ Er(Mr), Rr = {
1014
1016
  "data-testid": e,
1015
1017
  onCheckedChange: o,
1016
1018
  ref: c,
1017
- children: /* @__PURE__ */ h("span", { className: C(`${y}__box`), children: /* @__PURE__ */ h(Or, { className: C(`${y}__indicator`), children: n === "indeterminate" ? /* @__PURE__ */ h(
1019
+ children: /* @__PURE__ */ h("span", { className: C(`${y}__box`), children: /* @__PURE__ */ h(Or, { className: C(`${y}__indicator`), children: t === "indeterminate" ? /* @__PURE__ */ h(
1018
1020
  T,
1019
1021
  {
1020
1022
  "data-testid": e && `${e}-checked-icon`,
1021
1023
  size: "xs",
1022
- svg: ze
1024
+ svg: Ze
1023
1025
  }
1024
1026
  ) : /* @__PURE__ */ h(
1025
1027
  T,
1026
1028
  {
1027
1029
  "data-testid": e && `${e}-indeterminate-icon`,
1028
1030
  size: "xs",
1029
- svg: Be
1031
+ svg: Fe
1030
1032
  }
1031
1033
  ) }) })
1032
1034
  }