@purpurds/checkbox 8.2.1 → 8.2.3

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,51 +1,51 @@
1
- import { jsxs as S, jsx as p, Fragment as ne } from "react/jsx-runtime";
1
+ import { jsxs as S, jsx as p } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
- import { forwardRef as be } from "react";
3
+ import { forwardRef as he } from "react";
4
4
  import "react-dom";
5
- function ye(r) {
6
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5
+ function me(e) {
6
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var B = { exports: {} };
8
+ var I = { exports: {} };
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
13
  */
14
- var W;
15
- function xe() {
16
- return W || (W = 1, function(r) {
14
+ var q;
15
+ function _e() {
16
+ return q || (q = 1, (function(e) {
17
17
  (function() {
18
- var n = {}.hasOwnProperty;
19
- function t() {
20
- for (var e = "", o = 0; o < arguments.length; o++) {
18
+ var t = {}.hasOwnProperty;
19
+ function n() {
20
+ for (var r = "", o = 0; o < arguments.length; o++) {
21
21
  var u = arguments[o];
22
- u && (e = a(e, i.call(this, u)));
22
+ u && (r = i(r, a.call(this, u)));
23
23
  }
24
- return e;
24
+ return r;
25
25
  }
26
- function i(e) {
27
- if (typeof e == "string" || typeof e == "number")
28
- return this && this[e] || e;
29
- if (typeof e != "object")
26
+ function a(r) {
27
+ if (typeof r == "string" || typeof r == "number")
28
+ return this && this[r] || r;
29
+ if (typeof r != "object")
30
30
  return "";
31
- if (Array.isArray(e))
32
- return t.apply(this, e);
33
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
34
- return e.toString();
31
+ if (Array.isArray(r))
32
+ return n.apply(this, r);
33
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
34
+ return r.toString();
35
35
  var o = "";
36
- for (var u in e)
37
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
36
+ for (var u in r)
37
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
38
38
  return o;
39
39
  }
40
- function a(e, o) {
41
- return o ? e ? e + " " + o : e + o : e;
40
+ function i(r, o) {
41
+ return o ? r ? r + " " + o : r + o : r;
42
42
  }
43
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
43
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
44
44
  })();
45
- }(B)), B.exports;
45
+ })(I)), I.exports;
46
46
  }
47
- var we = xe();
48
- const $e = /* @__PURE__ */ ye(we), Se = {
47
+ var ge = _e();
48
+ const ve = /* @__PURE__ */ me(ge), be = {
49
49
  "purpur-icon": "_purpur-icon_8u1lq_1",
50
50
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
51
51
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -53,201 +53,201 @@ const $e = /* @__PURE__ */ ye(we), Se = {
53
53
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
54
54
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
55
55
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
56
- }, Ne = $e.bind(Se), I = "purpur-icon", Ce = "md", ke = (r) => r.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Oe = ({ content: r = "", title: n } = {}) => {
57
- const t = [
56
+ }, ye = ve.bind(be), B = "purpur-icon", xe = "md", $e = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), we = ({ content: e = "", title: t } = {}) => {
57
+ const n = [
58
58
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
59
59
  { name: "fill", value: "currentColor" },
60
60
  { name: "viewBox", value: "0 0 24 24" },
61
- n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
62
- ], i = n ? `<title>${n}</title>` : "";
63
- return `<svg ${ke(t)}>${i}${r}</svg>`;
64
- }, Pe = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), oe = ({ svg: r, allyTitle: n, className: t, size: i = Ce, ...a }) => {
65
- const e = Oe({
66
- content: Pe(r.svg),
67
- title: n
68
- }), o = Ne(t, I, `${I}--${i}`);
69
- return /* @__PURE__ */ p("span", { className: o, dangerouslySetInnerHTML: { __html: e }, ...a });
61
+ t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
62
+ ], a = t ? `<title>${t}</title>` : "";
63
+ return `<svg ${$e(n)}>${a}${e}</svg>`;
64
+ }, Se = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), re = ({ svg: e, allyTitle: t, className: n, size: a = xe, ...i }) => {
65
+ const r = we({
66
+ content: Se(e.svg),
67
+ title: t
68
+ }), o = ye(n, B, `${B}--${a}`);
69
+ return /* @__PURE__ */ p("span", { className: o, dangerouslySetInnerHTML: { __html: r }, ...i });
70
70
  };
71
- oe.displayName = "Icon";
72
- const Ae = {
71
+ re.displayName = "Icon";
72
+ const Ce = {
73
73
  name: "error-filled",
74
74
  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>',
75
75
  keywords: ["error-filled"],
76
76
  category: "status"
77
77
  };
78
- function Re(r) {
79
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
78
+ function Ne(e) {
79
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
80
80
  }
81
- var L = { exports: {} };
81
+ var z = { exports: {} };
82
82
  /*!
83
83
  Copyright (c) 2018 Jed Watson.
84
84
  Licensed under the MIT License (MIT), see
85
85
  http://jedwatson.github.io/classnames
86
86
  */
87
- var U;
88
- function Ee() {
89
- return U || (U = 1, function(r) {
87
+ var W;
88
+ function ke() {
89
+ return W || (W = 1, (function(e) {
90
90
  (function() {
91
- var n = {}.hasOwnProperty;
92
- function t() {
93
- for (var e = "", o = 0; o < arguments.length; o++) {
91
+ var t = {}.hasOwnProperty;
92
+ function n() {
93
+ for (var r = "", o = 0; o < arguments.length; o++) {
94
94
  var u = arguments[o];
95
- u && (e = a(e, i.call(this, u)));
95
+ u && (r = i(r, a.call(this, u)));
96
96
  }
97
- return e;
97
+ return r;
98
98
  }
99
- function i(e) {
100
- if (typeof e == "string" || typeof e == "number")
101
- return this && this[e] || e;
102
- if (typeof e != "object")
99
+ function a(r) {
100
+ if (typeof r == "string" || typeof r == "number")
101
+ return this && this[r] || r;
102
+ if (typeof r != "object")
103
103
  return "";
104
- if (Array.isArray(e))
105
- return t.apply(this, e);
106
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
107
- return e.toString();
104
+ if (Array.isArray(r))
105
+ return n.apply(this, r);
106
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
107
+ return r.toString();
108
108
  var o = "";
109
- for (var u in e)
110
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
109
+ for (var u in r)
110
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
111
111
  return o;
112
112
  }
113
- function a(e, o) {
114
- return o ? e ? e + " " + o : e + o : e;
113
+ function i(r, o) {
114
+ return o ? r ? r + " " + o : r + o : r;
115
115
  }
116
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
116
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
117
117
  })();
118
- }(L)), L.exports;
118
+ })(z)), z.exports;
119
119
  }
120
- var Me = Ee();
121
- const je = /* @__PURE__ */ Re(Me), De = {
120
+ var Oe = ke();
121
+ const Pe = /* @__PURE__ */ Ne(Oe), Ae = {
122
122
  "purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
123
123
  "purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
124
124
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
125
- }, V = je.bind(De), P = "purpur-field-error-text", qe = ({
126
- children: r,
127
- className: n,
128
- negative: t = !1,
129
- ["aria-relevant"]: i = "additions text",
130
- ...a
125
+ }, L = Pe.bind(Ae), P = "purpur-field-error-text", Re = ({
126
+ children: e,
127
+ className: t,
128
+ negative: n = !1,
129
+ ["aria-relevant"]: a = "additions text",
130
+ ...i
131
131
  }) => /* @__PURE__ */ S(
132
132
  "div",
133
133
  {
134
- className: V(n, P, {
135
- [`${P}--negative`]: t
134
+ className: L(t, P, {
135
+ [`${P}--negative`]: n
136
136
  }),
137
137
  "aria-live": "assertive",
138
- "aria-relevant": i,
139
- ...a,
138
+ "aria-relevant": a,
139
+ ...i,
140
140
  children: [
141
- /* @__PURE__ */ p(oe, { svg: Ae, size: "xs", className: V(`${P}__icon`) }),
142
- r
141
+ /* @__PURE__ */ p(re, { svg: Ce, size: "xs", className: L(`${P}__icon`) }),
142
+ e
143
143
  ]
144
144
  }
145
145
  );
146
- function ze(r) {
147
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
146
+ function Ee(e) {
147
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
148
148
  }
149
- var F = { exports: {} };
149
+ var T = { exports: {} };
150
150
  /*!
151
151
  Copyright (c) 2018 Jed Watson.
152
152
  Licensed under the MIT License (MIT), see
153
153
  http://jedwatson.github.io/classnames
154
154
  */
155
- var T;
156
- function Be() {
157
- return T || (T = 1, function(r) {
155
+ var U;
156
+ function Me() {
157
+ return U || (U = 1, (function(e) {
158
158
  (function() {
159
- var n = {}.hasOwnProperty;
160
- function t() {
161
- for (var e = "", o = 0; o < arguments.length; o++) {
159
+ var t = {}.hasOwnProperty;
160
+ function n() {
161
+ for (var r = "", o = 0; o < arguments.length; o++) {
162
162
  var u = arguments[o];
163
- u && (e = a(e, i.call(this, u)));
163
+ u && (r = i(r, a.call(this, u)));
164
164
  }
165
- return e;
165
+ return r;
166
166
  }
167
- function i(e) {
168
- if (typeof e == "string" || typeof e == "number")
169
- return this && this[e] || e;
170
- if (typeof e != "object")
167
+ function a(r) {
168
+ if (typeof r == "string" || typeof r == "number")
169
+ return this && this[r] || r;
170
+ if (typeof r != "object")
171
171
  return "";
172
- if (Array.isArray(e))
173
- return t.apply(this, e);
174
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
175
- return e.toString();
172
+ if (Array.isArray(r))
173
+ return n.apply(this, r);
174
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
175
+ return r.toString();
176
176
  var o = "";
177
- for (var u in e)
178
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
177
+ for (var u in r)
178
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
179
179
  return o;
180
180
  }
181
- function a(e, o) {
182
- return o ? e ? e + " " + o : e + o : e;
181
+ function i(r, o) {
182
+ return o ? r ? r + " " + o : r + o : r;
183
183
  }
184
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
184
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
185
185
  })();
186
- }(F)), F.exports;
186
+ })(T)), T.exports;
187
187
  }
188
- var We = Be();
189
- const Ie = /* @__PURE__ */ ze(We), Le = {
188
+ var je = Me();
189
+ const De = /* @__PURE__ */ Ee(je), Ie = {
190
190
  "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
191
191
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
192
192
  "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
193
- }, Ue = Ie.bind(Le), A = "purpur-field-helper-text", Ve = ({
194
- children: r,
195
- className: n,
196
- disabled: t,
197
- id: i,
198
- negative: a,
199
- ...e
193
+ }, qe = De.bind(Ie), A = "purpur-field-helper-text", Be = ({
194
+ children: e,
195
+ className: t,
196
+ disabled: n,
197
+ id: a,
198
+ negative: i,
199
+ ...r
200
200
  }) => {
201
- const o = Ue(n, A, {
202
- [`${A}--disabled`]: t,
203
- [`${A}--negative`]: a
201
+ const o = qe(t, A, {
202
+ [`${A}--disabled`]: n,
203
+ [`${A}--negative`]: i
204
204
  });
205
- return /* @__PURE__ */ p("span", { id: i, className: o, ...e, children: r });
205
+ return /* @__PURE__ */ p("span", { id: a, className: o, ...r, children: e });
206
206
  };
207
- function Fe(r) {
208
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
207
+ function ze(e) {
208
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
209
209
  }
210
- var Z = { exports: {} };
210
+ var V = { exports: {} };
211
211
  /*!
212
212
  Copyright (c) 2018 Jed Watson.
213
213
  Licensed under the MIT License (MIT), see
214
214
  http://jedwatson.github.io/classnames
215
215
  */
216
- var H;
217
- function Te() {
218
- return H || (H = 1, function(r) {
216
+ var F;
217
+ function We() {
218
+ return F || (F = 1, (function(e) {
219
219
  (function() {
220
- var n = {}.hasOwnProperty;
221
- function t() {
222
- for (var e = "", o = 0; o < arguments.length; o++) {
220
+ var t = {}.hasOwnProperty;
221
+ function n() {
222
+ for (var r = "", o = 0; o < arguments.length; o++) {
223
223
  var u = arguments[o];
224
- u && (e = a(e, i.call(this, u)));
224
+ u && (r = i(r, a.call(this, u)));
225
225
  }
226
- return e;
226
+ return r;
227
227
  }
228
- function i(e) {
229
- if (typeof e == "string" || typeof e == "number")
230
- return this && this[e] || e;
231
- if (typeof e != "object")
228
+ function a(r) {
229
+ if (typeof r == "string" || typeof r == "number")
230
+ return this && this[r] || r;
231
+ if (typeof r != "object")
232
232
  return "";
233
- if (Array.isArray(e))
234
- return t.apply(this, e);
235
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
236
- return e.toString();
233
+ if (Array.isArray(r))
234
+ return n.apply(this, r);
235
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
236
+ return r.toString();
237
237
  var o = "";
238
- for (var u in e)
239
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
238
+ for (var u in r)
239
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
240
240
  return o;
241
241
  }
242
- function a(e, o) {
243
- return o ? e ? e + " " + o : e + o : e;
242
+ function i(r, o) {
243
+ return o ? r ? r + " " + o : r + o : r;
244
244
  }
245
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
245
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
246
246
  })();
247
- }(Z)), Z.exports;
247
+ })(V)), V.exports;
248
248
  }
249
- var Ze = Te();
250
- const He = /* @__PURE__ */ Fe(Ze), Ke = {
249
+ var Le = We();
250
+ const Te = /* @__PURE__ */ ze(Le), Ue = {
251
251
  "purpur-icon": "_purpur-icon_8u1lq_1",
252
252
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
253
253
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -255,92 +255,99 @@ const He = /* @__PURE__ */ Fe(Ze), Ke = {
255
255
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
256
256
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
257
257
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
258
- }, Ge = He.bind(Ke), K = "purpur-icon", Xe = "md", Je = (r) => r.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Qe = ({ content: r = "", title: n } = {}) => {
259
- const t = [
258
+ }, Ve = Te.bind(Ue), Z = "purpur-icon", Fe = "md", Ze = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), He = ({ content: e = "", title: t } = {}) => {
259
+ const n = [
260
260
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
261
261
  { name: "fill", value: "currentColor" },
262
262
  { name: "viewBox", value: "0 0 24 24" },
263
- n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
264
- ], i = n ? `<title>${n}</title>` : "";
265
- return `<svg ${Je(t)}>${i}${r}</svg>`;
266
- }, Ye = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), M = ({ svg: r, allyTitle: n, className: t, size: i = Xe, ...a }) => {
267
- const e = Qe({
268
- content: Ye(r.svg),
269
- title: n
270
- }), o = Ge(t, K, `${K}--${i}`);
271
- return /* @__PURE__ */ p("span", { className: o, dangerouslySetInnerHTML: { __html: e }, ...a });
263
+ t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
264
+ ], a = t ? `<title>${t}</title>` : "";
265
+ return `<svg ${Ze(n)}>${a}${e}</svg>`;
266
+ }, Ke = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), M = ({ svg: e, allyTitle: t, className: n, size: a = Fe, ...i }) => {
267
+ const r = He({
268
+ content: Ke(e.svg),
269
+ title: t
270
+ }), o = Ve(n, Z, `${Z}--${a}`);
271
+ return /* @__PURE__ */ p("span", { className: o, dangerouslySetInnerHTML: { __html: r }, ...i });
272
272
  };
273
273
  M.displayName = "Icon";
274
- const er = {
274
+ const Ge = {
275
275
  name: "checkmark-bold",
276
276
  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>',
277
277
  keywords: ["checkmark-bold"],
278
278
  category: "utility"
279
- }, rr = {
279
+ }, Xe = {
280
280
  name: "minus-bold",
281
281
  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>',
282
282
  keywords: ["minus-bold"],
283
283
  category: "utility"
284
284
  };
285
- function G(r, n) {
286
- if (typeof r == "function")
287
- return r(n);
288
- r != null && (r.current = n);
285
+ function H(e, t) {
286
+ if (typeof e == "function")
287
+ return e(t);
288
+ e != null && (e.current = t);
289
289
  }
290
- function tr(...r) {
291
- return (n) => {
292
- let t = !1;
293
- const i = r.map((a) => {
294
- const e = G(a, n);
295
- return !t && typeof e == "function" && (t = !0), e;
290
+ function Je(...e) {
291
+ return (t) => {
292
+ let n = !1;
293
+ const a = e.map((i) => {
294
+ const r = H(i, t);
295
+ return !n && typeof r == "function" && (n = !0), r;
296
296
  });
297
- if (t)
297
+ if (n)
298
298
  return () => {
299
- for (let a = 0; a < i.length; a++) {
300
- const e = i[a];
301
- typeof e == "function" ? e() : G(r[a], null);
299
+ for (let i = 0; i < a.length; i++) {
300
+ const r = a[i];
301
+ typeof r == "function" ? r() : H(e[i], null);
302
302
  }
303
303
  };
304
304
  };
305
305
  }
306
- var ie = s.forwardRef((r, n) => {
307
- const { children: t, ...i } = r, a = s.Children.toArray(t), e = a.find(or);
308
- if (e) {
309
- const o = e.props.children, u = a.map((c) => c === e ? s.Children.count(o) > 1 ? s.Children.only(null) : s.isValidElement(o) ? o.props.children : null : c);
310
- return /* @__PURE__ */ p(j, { ...i, ref: n, children: s.isValidElement(o) ? s.cloneElement(o, void 0, u) : null });
311
- }
312
- return /* @__PURE__ */ p(j, { ...i, ref: n, children: t });
313
- });
314
- ie.displayName = "Slot";
315
- var j = s.forwardRef((r, n) => {
316
- const { children: t, ...i } = r;
317
- if (s.isValidElement(t)) {
318
- const a = ar(t), e = ir(i, t.props);
319
- return t.type !== s.Fragment && (e.ref = n ? tr(n, a) : a), s.cloneElement(t, e);
320
- }
321
- return s.Children.count(t) > 1 ? s.Children.only(null) : null;
322
- });
323
- j.displayName = "SlotClone";
324
- var nr = ({ children: r }) => /* @__PURE__ */ p(ne, { children: r });
325
- function or(r) {
326
- return s.isValidElement(r) && r.type === nr;
306
+ // @__NO_SIDE_EFFECTS__
307
+ function Qe(e) {
308
+ const t = /* @__PURE__ */ Ye(e), n = s.forwardRef((a, i) => {
309
+ const { children: r, ...o } = a, u = s.Children.toArray(r), c = u.find(rr);
310
+ if (c) {
311
+ const l = c.props.children, d = u.map((f) => f === c ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : f);
312
+ return /* @__PURE__ */ p(t, { ...o, ref: i, children: s.isValidElement(l) ? s.cloneElement(l, void 0, d) : null });
313
+ }
314
+ return /* @__PURE__ */ p(t, { ...o, ref: i, children: r });
315
+ });
316
+ return n.displayName = `${e}.Slot`, n;
317
+ }
318
+ // @__NO_SIDE_EFFECTS__
319
+ function Ye(e) {
320
+ const t = s.forwardRef((n, a) => {
321
+ const { children: i, ...r } = n;
322
+ if (s.isValidElement(i)) {
323
+ const o = nr(i), u = tr(r, i.props);
324
+ return i.type !== s.Fragment && (u.ref = a ? Je(a, o) : o), s.cloneElement(i, u);
325
+ }
326
+ return s.Children.count(i) > 1 ? s.Children.only(null) : null;
327
+ });
328
+ return t.displayName = `${e}.SlotClone`, t;
327
329
  }
328
- function ir(r, n) {
329
- const t = { ...n };
330
- for (const i in n) {
331
- const a = r[i], e = n[i];
332
- /^on[A-Z]/.test(i) ? a && e ? t[i] = (...o) => {
333
- e(...o), a(...o);
334
- } : a && (t[i] = a) : i === "style" ? t[i] = { ...a, ...e } : i === "className" && (t[i] = [a, e].filter(Boolean).join(" "));
330
+ var er = Symbol("radix.slottable");
331
+ function rr(e) {
332
+ return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === er;
333
+ }
334
+ function tr(e, t) {
335
+ const n = { ...t };
336
+ for (const a in t) {
337
+ const i = e[a], r = t[a];
338
+ /^on[A-Z]/.test(a) ? i && r ? n[a] = (...o) => {
339
+ const u = r(...o);
340
+ return i(...o), u;
341
+ } : i && (n[a] = i) : a === "style" ? n[a] = { ...i, ...r } : a === "className" && (n[a] = [i, r].filter(Boolean).join(" "));
335
342
  }
336
- return { ...r, ...t };
343
+ return { ...e, ...n };
337
344
  }
338
- function ar(r) {
339
- var n, t;
340
- let i = (n = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : n.get, a = i && "isReactWarning" in i && i.isReactWarning;
341
- return a ? r.ref : (i = (t = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : t.get, a = i && "isReactWarning" in i && i.isReactWarning, a ? r.props.ref : r.props.ref || r.ref);
345
+ function nr(e) {
346
+ var t, n;
347
+ let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, i = a && "isReactWarning" in a && a.isReactWarning;
348
+ return i ? e.ref : (a = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, i = a && "isReactWarning" in a && a.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
342
349
  }
343
- var ur = [
350
+ var or = [
344
351
  "a",
345
352
  "button",
346
353
  "div",
@@ -354,132 +361,133 @@ var ur = [
354
361
  "nav",
355
362
  "ol",
356
363
  "p",
364
+ "select",
357
365
  "span",
358
366
  "svg",
359
367
  "ul"
360
- ], sr = ur.reduce((r, n) => {
361
- const t = s.forwardRef((i, a) => {
362
- const { asChild: e, ...o } = i, u = e ? ie : n;
363
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(u, { ...o, ref: a });
368
+ ], ir = or.reduce((e, t) => {
369
+ const n = /* @__PURE__ */ Qe(`Primitive.${t}`), a = s.forwardRef((i, r) => {
370
+ const { asChild: o, ...u } = i, c = o ? n : t;
371
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...u, ref: r });
364
372
  });
365
- return t.displayName = `Primitive.${n}`, { ...r, [n]: t };
366
- }, {}), cr = "Label", ae = s.forwardRef((r, n) => /* @__PURE__ */ p(
367
- sr.label,
373
+ return a.displayName = `Primitive.${t}`, { ...e, [t]: a };
374
+ }, {}), ar = "Label", te = s.forwardRef((e, t) => /* @__PURE__ */ p(
375
+ ir.label,
368
376
  {
369
- ...r,
370
- ref: n,
371
- onMouseDown: (t) => {
372
- var i;
373
- t.target.closest("button, input, select, textarea") || ((i = r.onMouseDown) == null || i.call(r, t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
377
+ ...e,
378
+ ref: t,
379
+ onMouseDown: (n) => {
380
+ var a;
381
+ n.target.closest("button, input, select, textarea") || ((a = e.onMouseDown) == null || a.call(e, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
374
382
  }
375
383
  }
376
384
  ));
377
- ae.displayName = cr;
378
- var lr = ae;
379
- function pr(r) {
380
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
385
+ te.displayName = ar;
386
+ var ur = te;
387
+ function sr(e) {
388
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
381
389
  }
382
- var X = { exports: {} };
390
+ var K = { exports: {} };
383
391
  /*!
384
392
  Copyright (c) 2018 Jed Watson.
385
393
  Licensed under the MIT License (MIT), see
386
394
  http://jedwatson.github.io/classnames
387
395
  */
388
- var J;
389
- function fr() {
390
- return J || (J = 1, function(r) {
396
+ var G;
397
+ function cr() {
398
+ return G || (G = 1, (function(e) {
391
399
  (function() {
392
- var n = {}.hasOwnProperty;
393
- function t() {
394
- for (var e = "", o = 0; o < arguments.length; o++) {
400
+ var t = {}.hasOwnProperty;
401
+ function n() {
402
+ for (var r = "", o = 0; o < arguments.length; o++) {
395
403
  var u = arguments[o];
396
- u && (e = a(e, i.call(this, u)));
404
+ u && (r = i(r, a.call(this, u)));
397
405
  }
398
- return e;
406
+ return r;
399
407
  }
400
- function i(e) {
401
- if (typeof e == "string" || typeof e == "number")
402
- return this && this[e] || e;
403
- if (typeof e != "object")
408
+ function a(r) {
409
+ if (typeof r == "string" || typeof r == "number")
410
+ return this && this[r] || r;
411
+ if (typeof r != "object")
404
412
  return "";
405
- if (Array.isArray(e))
406
- return t.apply(this, e);
407
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
408
- return e.toString();
413
+ if (Array.isArray(r))
414
+ return n.apply(this, r);
415
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
416
+ return r.toString();
409
417
  var o = "";
410
- for (var u in e)
411
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
418
+ for (var u in r)
419
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
412
420
  return o;
413
421
  }
414
- function a(e, o) {
415
- return o ? e ? e + " " + o : e + o : e;
422
+ function i(r, o) {
423
+ return o ? r ? r + " " + o : r + o : r;
416
424
  }
417
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
425
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
418
426
  })();
419
- }(X)), X.exports;
427
+ })(K)), K.exports;
420
428
  }
421
- var dr = fr();
422
- const hr = /* @__PURE__ */ pr(dr), mr = {
429
+ var lr = cr();
430
+ const pr = /* @__PURE__ */ sr(lr), fr = {
423
431
  "purpur-label": "_purpur-label_1x80u_1",
424
432
  "purpur-label--negative": "_purpur-label--negative_1x80u_8",
425
433
  "purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
426
- }, gr = hr.bind(mr), R = "purpur-label", vr = ({
427
- children: r,
428
- className: n,
429
- disabled: t,
430
- negative: i = !1,
431
- ...a
434
+ }, dr = pr.bind(fr), R = "purpur-label", hr = ({
435
+ children: e,
436
+ className: t,
437
+ disabled: n,
438
+ negative: a = !1,
439
+ ...i
432
440
  }) => {
433
- const e = gr(n, R, {
434
- [`${R}--disabled`]: t,
435
- [`${R}--negative`]: i
441
+ const r = dr(t, R, {
442
+ [`${R}--disabled`]: n,
443
+ [`${R}--negative`]: a
436
444
  });
437
- return /* @__PURE__ */ p(lr, { className: e, ...a, children: r });
445
+ return /* @__PURE__ */ p(ur, { className: r, ...i, children: e });
438
446
  };
439
- function _r(r) {
440
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
447
+ function mr(e) {
448
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
441
449
  }
442
- var Q = { exports: {} };
450
+ var X = { exports: {} };
443
451
  /*!
444
452
  Copyright (c) 2018 Jed Watson.
445
453
  Licensed under the MIT License (MIT), see
446
454
  http://jedwatson.github.io/classnames
447
455
  */
448
- var Y;
449
- function br() {
450
- return Y || (Y = 1, function(r) {
456
+ var J;
457
+ function _r() {
458
+ return J || (J = 1, (function(e) {
451
459
  (function() {
452
- var n = {}.hasOwnProperty;
453
- function t() {
454
- for (var e = "", o = 0; o < arguments.length; o++) {
460
+ var t = {}.hasOwnProperty;
461
+ function n() {
462
+ for (var r = "", o = 0; o < arguments.length; o++) {
455
463
  var u = arguments[o];
456
- u && (e = a(e, i.call(this, u)));
464
+ u && (r = i(r, a.call(this, u)));
457
465
  }
458
- return e;
466
+ return r;
459
467
  }
460
- function i(e) {
461
- if (typeof e == "string" || typeof e == "number")
462
- return this && this[e] || e;
463
- if (typeof e != "object")
468
+ function a(r) {
469
+ if (typeof r == "string" || typeof r == "number")
470
+ return this && this[r] || r;
471
+ if (typeof r != "object")
464
472
  return "";
465
- if (Array.isArray(e))
466
- return t.apply(this, e);
467
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
468
- return e.toString();
473
+ if (Array.isArray(r))
474
+ return n.apply(this, r);
475
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
476
+ return r.toString();
469
477
  var o = "";
470
- for (var u in e)
471
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
478
+ for (var u in r)
479
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
472
480
  return o;
473
481
  }
474
- function a(e, o) {
475
- return o ? e ? e + " " + o : e + o : e;
482
+ function i(r, o) {
483
+ return o ? r ? r + " " + o : r + o : r;
476
484
  }
477
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
485
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
478
486
  })();
479
- }(Q)), Q.exports;
487
+ })(X)), X.exports;
480
488
  }
481
- var yr = br();
482
- const xr = /* @__PURE__ */ _r(yr), wr = {
489
+ var gr = _r();
490
+ const vr = /* @__PURE__ */ mr(gr), br = {
483
491
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
484
492
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
485
493
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -494,179 +502,179 @@ const xr = /* @__PURE__ */ _r(yr), wr = {
494
502
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
495
503
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
496
504
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
497
- }, $r = xr.bind(wr), Sr = {
505
+ }, yr = vr.bind(br), xr = {
498
506
  PARAGRAPH100: "paragraph-100"
499
- }, C = "purpur-paragraph", ue = ({
500
- children: r,
501
- className: n,
502
- disabled: t,
503
- enableHyphenation: i = !1,
504
- negative: a = !1,
505
- variant: e = Sr.PARAGRAPH100,
507
+ }, N = "purpur-paragraph", ne = ({
508
+ children: e,
509
+ className: t,
510
+ disabled: n,
511
+ enableHyphenation: a = !1,
512
+ negative: i = !1,
513
+ variant: r = xr.PARAGRAPH100,
506
514
  ...o
507
515
  }) => {
508
- const u = $r(n, C, `${C}--${e}`, {
509
- [`${C}--hyphens`]: i,
510
- [`${C}--disabled`]: t,
511
- [`${C}--negative`]: a
516
+ const u = yr(t, N, `${N}--${r}`, {
517
+ [`${N}--hyphens`]: a,
518
+ [`${N}--disabled`]: n,
519
+ [`${N}--negative`]: i
512
520
  });
513
- return /* @__PURE__ */ p("p", { ...o, className: u, children: r });
521
+ return /* @__PURE__ */ p("p", { ...o, className: u, children: e });
514
522
  };
515
- ue.displayName = "Paragraph";
516
- function ee(r, n) {
517
- if (typeof r == "function")
518
- return r(n);
519
- r != null && (r.current = n);
523
+ ne.displayName = "Paragraph";
524
+ function Q(e, t) {
525
+ if (typeof e == "function")
526
+ return e(t);
527
+ e != null && (e.current = t);
520
528
  }
521
- function se(...r) {
522
- return (n) => {
523
- let t = !1;
524
- const i = r.map((a) => {
525
- const e = ee(a, n);
526
- return !t && typeof e == "function" && (t = !0), e;
529
+ function oe(...e) {
530
+ return (t) => {
531
+ let n = !1;
532
+ const a = e.map((i) => {
533
+ const r = Q(i, t);
534
+ return !n && typeof r == "function" && (n = !0), r;
527
535
  });
528
- if (t)
536
+ if (n)
529
537
  return () => {
530
- for (let a = 0; a < i.length; a++) {
531
- const e = i[a];
532
- typeof e == "function" ? e() : ee(r[a], null);
538
+ for (let i = 0; i < a.length; i++) {
539
+ const r = a[i];
540
+ typeof r == "function" ? r() : Q(e[i], null);
533
541
  }
534
542
  };
535
543
  };
536
544
  }
537
- function ce(...r) {
538
- return s.useCallback(se(...r), r);
545
+ function ie(...e) {
546
+ return s.useCallback(oe(...e), e);
539
547
  }
540
- function Nr(r, n = []) {
541
- let t = [];
542
- function i(e, o) {
543
- const u = s.createContext(o), c = t.length;
544
- t = [...t, o];
545
- const l = (d) => {
548
+ function $r(e, t = []) {
549
+ let n = [];
550
+ function a(r, o) {
551
+ const u = s.createContext(o), c = n.length;
552
+ n = [...n, o];
553
+ const l = (f) => {
546
554
  var b;
547
- const { scope: f, children: m, ...g } = d, _ = ((b = f == null ? void 0 : f[r]) == null ? void 0 : b[c]) || u, $ = s.useMemo(() => g, Object.values(g));
548
- return /* @__PURE__ */ p(_.Provider, { value: $, children: m });
555
+ const { scope: h, children: m, ..._ } = f, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[c]) || u, w = s.useMemo(() => _, Object.values(_));
556
+ return /* @__PURE__ */ p(v.Provider, { value: w, children: m });
549
557
  };
550
- l.displayName = e + "Provider";
551
- function h(d, f) {
552
- var _;
553
- const m = ((_ = f == null ? void 0 : f[r]) == null ? void 0 : _[c]) || u, g = s.useContext(m);
554
- if (g) return g;
558
+ l.displayName = r + "Provider";
559
+ function d(f, h) {
560
+ var v;
561
+ const m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[c]) || u, _ = s.useContext(m);
562
+ if (_) return _;
555
563
  if (o !== void 0) return o;
556
- throw new Error(`\`${d}\` must be used within \`${e}\``);
564
+ throw new Error(`\`${f}\` must be used within \`${r}\``);
557
565
  }
558
- return [l, h];
566
+ return [l, d];
559
567
  }
560
- const a = () => {
561
- const e = t.map((o) => s.createContext(o));
568
+ const i = () => {
569
+ const r = n.map((o) => s.createContext(o));
562
570
  return function(u) {
563
- const c = (u == null ? void 0 : u[r]) || e;
571
+ const c = (u == null ? void 0 : u[e]) || r;
564
572
  return s.useMemo(
565
- () => ({ [`__scope${r}`]: { ...u, [r]: c } }),
573
+ () => ({ [`__scope${e}`]: { ...u, [e]: c } }),
566
574
  [u, c]
567
575
  );
568
576
  };
569
577
  };
570
- return a.scopeName = r, [i, Cr(a, ...n)];
578
+ return i.scopeName = e, [a, wr(i, ...t)];
571
579
  }
572
- function Cr(...r) {
573
- const n = r[0];
574
- if (r.length === 1) return n;
575
- const t = () => {
576
- const i = r.map((a) => ({
577
- useScope: a(),
578
- scopeName: a.scopeName
580
+ function wr(...e) {
581
+ const t = e[0];
582
+ if (e.length === 1) return t;
583
+ const n = () => {
584
+ const a = e.map((i) => ({
585
+ useScope: i(),
586
+ scopeName: i.scopeName
579
587
  }));
580
- return function(e) {
581
- const o = i.reduce((u, { useScope: c, scopeName: l }) => {
582
- const d = c(e)[`__scope${l}`];
583
- return { ...u, ...d };
588
+ return function(r) {
589
+ const o = a.reduce((u, { useScope: c, scopeName: l }) => {
590
+ const f = c(r)[`__scope${l}`];
591
+ return { ...u, ...f };
584
592
  }, {});
585
- return s.useMemo(() => ({ [`__scope${n.scopeName}`]: o }), [o]);
593
+ return s.useMemo(() => ({ [`__scope${t.scopeName}`]: o }), [o]);
586
594
  };
587
595
  };
588
- return t.scopeName = n.scopeName, t;
596
+ return n.scopeName = t.scopeName, n;
589
597
  }
590
- function re(r, n, { checkForDefaultPrevented: t = !0 } = {}) {
591
- return function(a) {
592
- if (r == null || r(a), t === !1 || !a.defaultPrevented)
593
- return n == null ? void 0 : n(a);
598
+ function Y(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
599
+ return function(i) {
600
+ if (e == null || e(i), n === !1 || !i.defaultPrevented)
601
+ return t == null ? void 0 : t(i);
594
602
  };
595
603
  }
596
- function le(r) {
597
- const n = s.useRef(r);
604
+ function ae(e) {
605
+ const t = s.useRef(e);
598
606
  return s.useEffect(() => {
599
- n.current = r;
600
- }), s.useMemo(() => (...t) => {
601
- var i;
602
- return (i = n.current) == null ? void 0 : i.call(n, ...t);
607
+ t.current = e;
608
+ }), s.useMemo(() => (...n) => {
609
+ var a;
610
+ return (a = t.current) == null ? void 0 : a.call(t, ...n);
603
611
  }, []);
604
612
  }
605
- function kr({
606
- prop: r,
607
- defaultProp: n,
608
- onChange: t = () => {
613
+ function Sr({
614
+ prop: e,
615
+ defaultProp: t,
616
+ onChange: n = () => {
609
617
  }
610
618
  }) {
611
- const [i, a] = Or({ defaultProp: n, onChange: t }), e = r !== void 0, o = e ? r : i, u = le(t), c = s.useCallback(
619
+ const [a, i] = Cr({ defaultProp: t, onChange: n }), r = e !== void 0, o = r ? e : a, u = ae(n), c = s.useCallback(
612
620
  (l) => {
613
- if (e) {
614
- const d = typeof l == "function" ? l(r) : l;
615
- d !== r && u(d);
621
+ if (r) {
622
+ const f = typeof l == "function" ? l(e) : l;
623
+ f !== e && u(f);
616
624
  } else
617
- a(l);
625
+ i(l);
618
626
  },
619
- [e, r, a, u]
627
+ [r, e, i, u]
620
628
  );
621
629
  return [o, c];
622
630
  }
623
- function Or({
624
- defaultProp: r,
625
- onChange: n
631
+ function Cr({
632
+ defaultProp: e,
633
+ onChange: t
626
634
  }) {
627
- const t = s.useState(r), [i] = t, a = s.useRef(i), e = le(n);
635
+ const n = s.useState(e), [a] = n, i = s.useRef(a), r = ae(t);
628
636
  return s.useEffect(() => {
629
- a.current !== i && (e(i), a.current = i);
630
- }, [i, a, e]), t;
637
+ i.current !== a && (r(a), i.current = a);
638
+ }, [a, i, r]), n;
631
639
  }
632
- function Pr(r) {
633
- const n = s.useRef({ value: r, previous: r });
634
- return s.useMemo(() => (n.current.value !== r && (n.current.previous = n.current.value, n.current.value = r), n.current.previous), [r]);
640
+ function Nr(e) {
641
+ const t = s.useRef({ value: e, previous: e });
642
+ return s.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
635
643
  }
636
- var D = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
644
+ var j = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
637
645
  };
638
- function Ar(r) {
639
- const [n, t] = s.useState(void 0);
640
- return D(() => {
641
- if (r) {
642
- t({ width: r.offsetWidth, height: r.offsetHeight });
643
- const i = new ResizeObserver((a) => {
644
- if (!Array.isArray(a) || !a.length)
646
+ function kr(e) {
647
+ const [t, n] = s.useState(void 0);
648
+ return j(() => {
649
+ if (e) {
650
+ n({ width: e.offsetWidth, height: e.offsetHeight });
651
+ const a = new ResizeObserver((i) => {
652
+ if (!Array.isArray(i) || !i.length)
645
653
  return;
646
- const e = a[0];
654
+ const r = i[0];
647
655
  let o, u;
648
- if ("borderBoxSize" in e) {
649
- const c = e.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
656
+ if ("borderBoxSize" in r) {
657
+ const c = r.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
650
658
  o = l.inlineSize, u = l.blockSize;
651
659
  } else
652
- o = r.offsetWidth, u = r.offsetHeight;
653
- t({ width: o, height: u });
660
+ o = e.offsetWidth, u = e.offsetHeight;
661
+ n({ width: o, height: u });
654
662
  });
655
- return i.observe(r, { box: "border-box" }), () => i.unobserve(r);
663
+ return a.observe(e, { box: "border-box" }), () => a.unobserve(e);
656
664
  } else
657
- t(void 0);
658
- }, [r]), n;
665
+ n(void 0);
666
+ }, [e]), t;
659
667
  }
660
- function Rr(r, n) {
661
- return s.useReducer((t, i) => n[t][i] ?? t, r);
668
+ function Or(e, t) {
669
+ return s.useReducer((n, a) => t[n][a] ?? n, e);
662
670
  }
663
- var pe = (r) => {
664
- const { present: n, children: t } = r, i = Er(n), a = typeof t == "function" ? t({ present: i.isPresent }) : s.Children.only(t), e = ce(i.ref, Mr(a));
665
- return typeof t == "function" || i.isPresent ? s.cloneElement(a, { ref: e }) : null;
671
+ var ue = (e) => {
672
+ const { present: t, children: n } = e, a = Pr(t), i = typeof n == "function" ? n({ present: a.isPresent }) : s.Children.only(n), r = ie(a.ref, Ar(i));
673
+ return typeof n == "function" || a.isPresent ? s.cloneElement(i, { ref: r }) : null;
666
674
  };
667
- pe.displayName = "Presence";
668
- function Er(r) {
669
- const [n, t] = s.useState(), i = s.useRef({}), a = s.useRef(r), e = s.useRef("none"), o = r ? "mounted" : "unmounted", [u, c] = Rr(o, {
675
+ ue.displayName = "Presence";
676
+ function Pr(e) {
677
+ const [t, n] = s.useState(), a = s.useRef({}), i = s.useRef(e), r = s.useRef("none"), o = e ? "mounted" : "unmounted", [u, c] = Or(o, {
670
678
  mounted: {
671
679
  UNMOUNT: "unmounted",
672
680
  ANIMATION_OUT: "unmountSuspended"
@@ -680,86 +688,92 @@ function Er(r) {
680
688
  }
681
689
  });
682
690
  return s.useEffect(() => {
683
- const l = k(i.current);
684
- e.current = u === "mounted" ? l : "none";
685
- }, [u]), D(() => {
686
- const l = i.current, h = a.current;
687
- if (h !== r) {
688
- const f = e.current, m = k(l);
689
- r ? c("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(h && f !== m ? "ANIMATION_OUT" : "UNMOUNT"), a.current = r;
691
+ const l = k(a.current);
692
+ r.current = u === "mounted" ? l : "none";
693
+ }, [u]), j(() => {
694
+ const l = a.current, d = i.current;
695
+ if (d !== e) {
696
+ const h = r.current, m = k(l);
697
+ e ? c("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(d && h !== m ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
690
698
  }
691
- }, [r, c]), D(() => {
692
- if (n) {
699
+ }, [e, c]), j(() => {
700
+ if (t) {
693
701
  let l;
694
- const h = n.ownerDocument.defaultView ?? window, d = (m) => {
695
- const _ = k(i.current).includes(m.animationName);
696
- if (m.target === n && _ && (c("ANIMATION_END"), !a.current)) {
697
- const $ = n.style.animationFillMode;
698
- n.style.animationFillMode = "forwards", l = h.setTimeout(() => {
699
- n.style.animationFillMode === "forwards" && (n.style.animationFillMode = $);
702
+ const d = t.ownerDocument.defaultView ?? window, f = (m) => {
703
+ const v = k(a.current).includes(m.animationName);
704
+ if (m.target === t && v && (c("ANIMATION_END"), !i.current)) {
705
+ const w = t.style.animationFillMode;
706
+ t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
707
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
700
708
  });
701
709
  }
702
- }, f = (m) => {
703
- m.target === n && (e.current = k(i.current));
710
+ }, h = (m) => {
711
+ m.target === t && (r.current = k(a.current));
704
712
  };
705
- return n.addEventListener("animationstart", f), n.addEventListener("animationcancel", d), n.addEventListener("animationend", d), () => {
706
- h.clearTimeout(l), n.removeEventListener("animationstart", f), n.removeEventListener("animationcancel", d), n.removeEventListener("animationend", d);
713
+ return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
714
+ d.clearTimeout(l), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
707
715
  };
708
716
  } else
709
717
  c("ANIMATION_END");
710
- }, [n, c]), {
718
+ }, [t, c]), {
711
719
  isPresent: ["mounted", "unmountSuspended"].includes(u),
712
720
  ref: s.useCallback((l) => {
713
- l && (i.current = getComputedStyle(l)), t(l);
721
+ l && (a.current = getComputedStyle(l)), n(l);
714
722
  }, [])
715
723
  };
716
724
  }
717
- function k(r) {
718
- return (r == null ? void 0 : r.animationName) || "none";
725
+ function k(e) {
726
+ return (e == null ? void 0 : e.animationName) || "none";
719
727
  }
720
- function Mr(r) {
721
- var i, a;
722
- let n = (i = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : i.get, t = n && "isReactWarning" in n && n.isReactWarning;
723
- return t ? r.ref : (n = (a = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : a.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? r.props.ref : r.props.ref || r.ref);
728
+ function Ar(e) {
729
+ var a, i;
730
+ let t = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, n = t && "isReactWarning" in t && t.isReactWarning;
731
+ return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
724
732
  }
725
- var fe = s.forwardRef((r, n) => {
726
- const { children: t, ...i } = r, a = s.Children.toArray(t), e = a.find(Dr);
727
- if (e) {
728
- const o = e.props.children, u = a.map((c) => c === e ? s.Children.count(o) > 1 ? s.Children.only(null) : s.isValidElement(o) ? o.props.children : null : c);
729
- return /* @__PURE__ */ p(q, { ...i, ref: n, children: s.isValidElement(o) ? s.cloneElement(o, void 0, u) : null });
730
- }
731
- return /* @__PURE__ */ p(q, { ...i, ref: n, children: t });
732
- });
733
- fe.displayName = "Slot";
734
- var q = s.forwardRef((r, n) => {
735
- const { children: t, ...i } = r;
736
- if (s.isValidElement(t)) {
737
- const a = zr(t), e = qr(i, t.props);
738
- return t.type !== s.Fragment && (e.ref = n ? se(n, a) : a), s.cloneElement(t, e);
739
- }
740
- return s.Children.count(t) > 1 ? s.Children.only(null) : null;
741
- });
742
- q.displayName = "SlotClone";
743
- var jr = ({ children: r }) => /* @__PURE__ */ p(ne, { children: r });
744
- function Dr(r) {
745
- return s.isValidElement(r) && r.type === jr;
733
+ // @__NO_SIDE_EFFECTS__
734
+ function Rr(e) {
735
+ const t = /* @__PURE__ */ Er(e), n = s.forwardRef((a, i) => {
736
+ const { children: r, ...o } = a, u = s.Children.toArray(r), c = u.find(jr);
737
+ if (c) {
738
+ const l = c.props.children, d = u.map((f) => f === c ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : f);
739
+ return /* @__PURE__ */ p(t, { ...o, ref: i, children: s.isValidElement(l) ? s.cloneElement(l, void 0, d) : null });
740
+ }
741
+ return /* @__PURE__ */ p(t, { ...o, ref: i, children: r });
742
+ });
743
+ return n.displayName = `${e}.Slot`, n;
744
+ }
745
+ // @__NO_SIDE_EFFECTS__
746
+ function Er(e) {
747
+ const t = s.forwardRef((n, a) => {
748
+ const { children: i, ...r } = n;
749
+ if (s.isValidElement(i)) {
750
+ const o = Ir(i), u = Dr(r, i.props);
751
+ return i.type !== s.Fragment && (u.ref = a ? oe(a, o) : o), s.cloneElement(i, u);
752
+ }
753
+ return s.Children.count(i) > 1 ? s.Children.only(null) : null;
754
+ });
755
+ return t.displayName = `${e}.SlotClone`, t;
756
+ }
757
+ var Mr = Symbol("radix.slottable");
758
+ function jr(e) {
759
+ return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Mr;
746
760
  }
747
- function qr(r, n) {
748
- const t = { ...n };
749
- for (const i in n) {
750
- const a = r[i], e = n[i];
751
- /^on[A-Z]/.test(i) ? a && e ? t[i] = (...u) => {
752
- e(...u), a(...u);
753
- } : a && (t[i] = a) : i === "style" ? t[i] = { ...a, ...e } : i === "className" && (t[i] = [a, e].filter(Boolean).join(" "));
761
+ function Dr(e, t) {
762
+ const n = { ...t };
763
+ for (const a in t) {
764
+ const i = e[a], r = t[a];
765
+ /^on[A-Z]/.test(a) ? i && r ? n[a] = (...u) => {
766
+ r(...u), i(...u);
767
+ } : i && (n[a] = i) : a === "style" ? n[a] = { ...i, ...r } : a === "className" && (n[a] = [i, r].filter(Boolean).join(" "));
754
768
  }
755
- return { ...r, ...t };
769
+ return { ...e, ...n };
756
770
  }
757
- function zr(r) {
758
- var i, a;
759
- let n = (i = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : i.get, t = n && "isReactWarning" in n && n.isReactWarning;
760
- return t ? r.ref : (n = (a = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : a.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? r.props.ref : r.props.ref || r.ref);
771
+ function Ir(e) {
772
+ var a, i;
773
+ let t = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, n = t && "isReactWarning" in t && t.isReactWarning;
774
+ return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
761
775
  }
762
- var Br = [
776
+ var qr = [
763
777
  "a",
764
778
  "button",
765
779
  "div",
@@ -776,114 +790,114 @@ var Br = [
776
790
  "span",
777
791
  "svg",
778
792
  "ul"
779
- ], de = Br.reduce((r, n) => {
780
- const t = s.forwardRef((i, a) => {
781
- const { asChild: e, ...o } = i, u = e ? fe : n;
782
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(u, { ...o, ref: a });
793
+ ], se = qr.reduce((e, t) => {
794
+ const n = /* @__PURE__ */ Rr(`Primitive.${t}`), a = s.forwardRef((i, r) => {
795
+ const { asChild: o, ...u } = i, c = o ? n : t;
796
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...u, ref: r });
783
797
  });
784
- return t.displayName = `Primitive.${n}`, { ...r, [n]: t };
785
- }, {}), z = "Checkbox", [Wr, et] = Nr(z), [Ir, Lr] = Wr(z), he = s.forwardRef(
786
- (r, n) => {
798
+ return a.displayName = `Primitive.${t}`, { ...e, [t]: a };
799
+ }, {}), D = "Checkbox", [Br] = $r(D), [zr, Wr] = Br(D), ce = s.forwardRef(
800
+ (e, t) => {
787
801
  const {
788
- __scopeCheckbox: t,
789
- name: i,
790
- checked: a,
791
- defaultChecked: e,
802
+ __scopeCheckbox: n,
803
+ name: a,
804
+ checked: i,
805
+ defaultChecked: r,
792
806
  required: o,
793
807
  disabled: u,
794
808
  value: c = "on",
795
809
  onCheckedChange: l,
796
- form: h,
797
- ...d
798
- } = r, [f, m] = s.useState(null), g = ce(n, (v) => m(v)), _ = s.useRef(!1), $ = f ? h || !!f.closest("form") : !0, [b = !1, O] = kr({
799
- prop: a,
800
- defaultProp: e,
810
+ form: d,
811
+ ...f
812
+ } = e, [h, m] = s.useState(null), _ = ie(t, (g) => m(g)), v = s.useRef(!1), w = h ? d || !!h.closest("form") : !0, [b = !1, O] = Sr({
813
+ prop: i,
814
+ defaultProp: r,
801
815
  onChange: l
802
- }), _e = s.useRef(b);
816
+ }), de = s.useRef(b);
803
817
  return s.useEffect(() => {
804
- const v = f == null ? void 0 : f.form;
805
- if (v) {
806
- const N = () => O(_e.current);
807
- return v.addEventListener("reset", N), () => v.removeEventListener("reset", N);
818
+ const g = h == null ? void 0 : h.form;
819
+ if (g) {
820
+ const C = () => O(de.current);
821
+ return g.addEventListener("reset", C), () => g.removeEventListener("reset", C);
808
822
  }
809
- }, [f, O]), /* @__PURE__ */ S(Ir, { scope: t, state: b, disabled: u, children: [
823
+ }, [h, O]), /* @__PURE__ */ S(zr, { scope: n, state: b, disabled: u, children: [
810
824
  /* @__PURE__ */ p(
811
- de.button,
825
+ se.button,
812
826
  {
813
827
  type: "button",
814
828
  role: "checkbox",
815
829
  "aria-checked": x(b) ? "mixed" : b,
816
830
  "aria-required": o,
817
- "data-state": ve(b),
831
+ "data-state": fe(b),
818
832
  "data-disabled": u ? "" : void 0,
819
833
  disabled: u,
820
834
  value: c,
821
- ...d,
822
- ref: g,
823
- onKeyDown: re(r.onKeyDown, (v) => {
824
- v.key === "Enter" && v.preventDefault();
835
+ ...f,
836
+ ref: _,
837
+ onKeyDown: Y(e.onKeyDown, (g) => {
838
+ g.key === "Enter" && g.preventDefault();
825
839
  }),
826
- onClick: re(r.onClick, (v) => {
827
- O((N) => x(N) ? !0 : !N), $ && (_.current = v.isPropagationStopped(), _.current || v.stopPropagation());
840
+ onClick: Y(e.onClick, (g) => {
841
+ O((C) => x(C) ? !0 : !C), w && (v.current = g.isPropagationStopped(), v.current || g.stopPropagation());
828
842
  })
829
843
  }
830
844
  ),
831
- $ && /* @__PURE__ */ p(
832
- Ur,
845
+ w && /* @__PURE__ */ p(
846
+ Lr,
833
847
  {
834
- control: f,
835
- bubbles: !_.current,
836
- name: i,
848
+ control: h,
849
+ bubbles: !v.current,
850
+ name: a,
837
851
  value: c,
838
852
  checked: b,
839
853
  required: o,
840
854
  disabled: u,
841
- form: h,
855
+ form: d,
842
856
  style: { transform: "translateX(-100%)" },
843
- defaultChecked: x(e) ? !1 : e
857
+ defaultChecked: x(r) ? !1 : r
844
858
  }
845
859
  )
846
860
  ] });
847
861
  }
848
862
  );
849
- he.displayName = z;
850
- var me = "CheckboxIndicator", ge = s.forwardRef(
851
- (r, n) => {
852
- const { __scopeCheckbox: t, forceMount: i, ...a } = r, e = Lr(me, t);
853
- return /* @__PURE__ */ p(pe, { present: i || x(e.state) || e.state === !0, children: /* @__PURE__ */ p(
854
- de.span,
863
+ ce.displayName = D;
864
+ var le = "CheckboxIndicator", pe = s.forwardRef(
865
+ (e, t) => {
866
+ const { __scopeCheckbox: n, forceMount: a, ...i } = e, r = Wr(le, n);
867
+ return /* @__PURE__ */ p(ue, { present: a || x(r.state) || r.state === !0, children: /* @__PURE__ */ p(
868
+ se.span,
855
869
  {
856
- "data-state": ve(e.state),
857
- "data-disabled": e.disabled ? "" : void 0,
858
- ...a,
859
- ref: n,
860
- style: { pointerEvents: "none", ...r.style }
870
+ "data-state": fe(r.state),
871
+ "data-disabled": r.disabled ? "" : void 0,
872
+ ...i,
873
+ ref: t,
874
+ style: { pointerEvents: "none", ...e.style }
861
875
  }
862
876
  ) });
863
877
  }
864
878
  );
865
- ge.displayName = me;
866
- var Ur = (r) => {
867
- const { control: n, checked: t, bubbles: i = !0, defaultChecked: a, ...e } = r, o = s.useRef(null), u = Pr(t), c = Ar(n);
879
+ pe.displayName = le;
880
+ var Lr = (e) => {
881
+ const { control: t, checked: n, bubbles: a = !0, defaultChecked: i, ...r } = e, o = s.useRef(null), u = Nr(n), c = kr(t);
868
882
  s.useEffect(() => {
869
- const h = o.current, d = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(d, "checked").set;
870
- if (u !== t && m) {
871
- const g = new Event("click", { bubbles: i });
872
- h.indeterminate = x(t), m.call(h, x(t) ? !1 : t), h.dispatchEvent(g);
883
+ const d = o.current, f = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(f, "checked").set;
884
+ if (u !== n && m) {
885
+ const _ = new Event("click", { bubbles: a });
886
+ d.indeterminate = x(n), m.call(d, x(n) ? !1 : n), d.dispatchEvent(_);
873
887
  }
874
- }, [u, t, i]);
875
- const l = s.useRef(x(t) ? !1 : t);
888
+ }, [u, n, a]);
889
+ const l = s.useRef(x(n) ? !1 : n);
876
890
  return /* @__PURE__ */ p(
877
891
  "input",
878
892
  {
879
893
  type: "checkbox",
880
894
  "aria-hidden": !0,
881
- defaultChecked: a ?? l.current,
882
- ...e,
895
+ defaultChecked: i ?? l.current,
896
+ ...r,
883
897
  tabIndex: -1,
884
898
  ref: o,
885
899
  style: {
886
- ...r.style,
900
+ ...e.style,
887
901
  ...c,
888
902
  position: "absolute",
889
903
  pointerEvents: "none",
@@ -893,15 +907,15 @@ var Ur = (r) => {
893
907
  }
894
908
  );
895
909
  };
896
- function x(r) {
897
- return r === "indeterminate";
910
+ function x(e) {
911
+ return e === "indeterminate";
898
912
  }
899
- function ve(r) {
900
- return x(r) ? "indeterminate" : r ? "checked" : "unchecked";
913
+ function fe(e) {
914
+ return x(e) ? "indeterminate" : e ? "checked" : "unchecked";
901
915
  }
902
- var Vr = he, Fr = ge;
903
- function Tr(r) {
904
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
916
+ var Tr = ce, Ur = pe;
917
+ function Vr(e) {
918
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
905
919
  }
906
920
  var E = { exports: {} };
907
921
  /*!
@@ -909,41 +923,41 @@ var E = { exports: {} };
909
923
  Licensed under the MIT License (MIT), see
910
924
  http://jedwatson.github.io/classnames
911
925
  */
912
- var te;
913
- function Zr() {
914
- return te || (te = 1, function(r) {
926
+ var ee;
927
+ function Fr() {
928
+ return ee || (ee = 1, (function(e) {
915
929
  (function() {
916
- var n = {}.hasOwnProperty;
917
- function t() {
918
- for (var e = "", o = 0; o < arguments.length; o++) {
930
+ var t = {}.hasOwnProperty;
931
+ function n() {
932
+ for (var r = "", o = 0; o < arguments.length; o++) {
919
933
  var u = arguments[o];
920
- u && (e = a(e, i.call(this, u)));
934
+ u && (r = i(r, a.call(this, u)));
921
935
  }
922
- return e;
936
+ return r;
923
937
  }
924
- function i(e) {
925
- if (typeof e == "string" || typeof e == "number")
926
- return this && this[e] || e;
927
- if (typeof e != "object")
938
+ function a(r) {
939
+ if (typeof r == "string" || typeof r == "number")
940
+ return this && this[r] || r;
941
+ if (typeof r != "object")
928
942
  return "";
929
- if (Array.isArray(e))
930
- return t.apply(this, e);
931
- if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
932
- return e.toString();
943
+ if (Array.isArray(r))
944
+ return n.apply(this, r);
945
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
946
+ return r.toString();
933
947
  var o = "";
934
- for (var u in e)
935
- n.call(e, u) && e[u] && (o = a(o, this && this[u] || u));
948
+ for (var u in r)
949
+ t.call(r, u) && r[u] && (o = i(o, this && this[u] || u));
936
950
  return o;
937
951
  }
938
- function a(e, o) {
939
- return o ? e ? e + " " + o : e + o : e;
952
+ function i(r, o) {
953
+ return o ? r ? r + " " + o : r + o : r;
940
954
  }
941
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
955
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
942
956
  })();
943
- }(E)), E.exports;
957
+ })(E)), E.exports;
944
958
  }
945
- var Hr = Zr();
946
- const Kr = /* @__PURE__ */ Tr(Hr), Gr = {
959
+ var Zr = Fr();
960
+ const Hr = /* @__PURE__ */ Vr(Zr), Kr = {
947
961
  "purpur-checkbox": "_purpur-checkbox_150ck_1",
948
962
  "purpur-checkbox__box": "_purpur-checkbox__box_150ck_7",
949
963
  "purpur-checkbox--error": "_purpur-checkbox--error_150ck_16",
@@ -952,71 +966,71 @@ const Kr = /* @__PURE__ */ Tr(Hr), Gr = {
952
966
  "purpur-checkbox__label-container": "_purpur-checkbox__label-container_150ck_70",
953
967
  "purpur-checkbox__wrapper": "_purpur-checkbox__wrapper_150ck_76",
954
968
  "purpur-checkbox__container": "_purpur-checkbox__container_150ck_82"
955
- }, w = Kr.bind(Gr), rt = ["indeterminate", !0, !1], y = "purpur-checkbox", Xr = be(
969
+ }, $ = Hr.bind(Kr), Yr = ["indeterminate", !0, !1], y = "purpur-checkbox", Gr = he(
956
970
  ({
957
- ["data-testid"]: r,
958
- checked: n,
959
- className: t,
960
- error: i = !1,
961
- errorText: a,
962
- label: e,
971
+ ["data-testid"]: e,
972
+ checked: t,
973
+ className: n,
974
+ error: a = !1,
975
+ errorText: i,
976
+ label: r,
963
977
  helperText: o,
964
978
  onChange: u,
965
979
  ...c
966
980
  }, l) => {
967
- const h = a && !n, d = i && !n;
968
- return /* @__PURE__ */ S("div", { className: w([t, `${y}__wrapper`]), children: [
969
- /* @__PURE__ */ S("div", { className: w([t, `${y}__container`]), children: [
981
+ const d = i && !t, f = a && !t;
982
+ return /* @__PURE__ */ S("div", { className: $([n, `${y}__wrapper`]), children: [
983
+ /* @__PURE__ */ S("div", { className: $([n, `${y}__container`]), children: [
970
984
  /* @__PURE__ */ p(
971
- Vr,
985
+ Tr,
972
986
  {
973
987
  ...c,
974
- checked: n,
975
- className: w([
988
+ checked: t,
989
+ className: $([
976
990
  y,
977
991
  {
978
- [`${y}--error`]: h,
979
- [`${y}--error-checkbox`]: d
992
+ [`${y}--error`]: d,
993
+ [`${y}--error-checkbox`]: f
980
994
  }
981
995
  ]),
982
- "data-testid": r,
996
+ "data-testid": e,
983
997
  onCheckedChange: u,
984
998
  ref: l,
985
- children: /* @__PURE__ */ p("span", { className: w(`${y}__box`), children: /* @__PURE__ */ p(Fr, { className: w(`${y}__indicator`), children: n === "indeterminate" ? /* @__PURE__ */ p(
999
+ children: /* @__PURE__ */ p("span", { className: $(`${y}__box`), children: /* @__PURE__ */ p(Ur, { className: $(`${y}__indicator`), children: t === "indeterminate" ? /* @__PURE__ */ p(
986
1000
  M,
987
1001
  {
988
- "data-testid": r && `${r}-checked-icon`,
1002
+ "data-testid": e && `${e}-checked-icon`,
989
1003
  size: "xs",
990
- svg: rr
1004
+ svg: Xe
991
1005
  }
992
1006
  ) : /* @__PURE__ */ p(
993
1007
  M,
994
1008
  {
995
- "data-testid": r && `${r}-indeterminate-icon`,
1009
+ "data-testid": e && `${e}-indeterminate-icon`,
996
1010
  size: "xs",
997
- svg: er
1011
+ svg: Ge
998
1012
  }
999
1013
  ) }) })
1000
1014
  }
1001
1015
  ),
1002
- /* @__PURE__ */ S("span", { className: w(`${y}__label-container`), children: [
1003
- e && /* @__PURE__ */ p(
1004
- vr,
1016
+ /* @__PURE__ */ S("span", { className: $(`${y}__label-container`), children: [
1017
+ r && /* @__PURE__ */ p(
1018
+ hr,
1005
1019
  {
1006
1020
  htmlFor: c.id,
1007
- "data-testid": r && `${r}-label`,
1021
+ "data-testid": e && `${e}-label`,
1008
1022
  disabled: c.disabled,
1009
- children: /* @__PURE__ */ S(ue, { variant: "paragraph-100", disabled: c.disabled, children: [
1023
+ children: /* @__PURE__ */ S(ne, { variant: "paragraph-100", disabled: c.disabled, children: [
1010
1024
  c.required && /* @__PURE__ */ p("span", { "aria-hidden": !0, children: "* " }),
1011
- e
1025
+ r
1012
1026
  ] })
1013
1027
  }
1014
1028
  ),
1015
1029
  o && /* @__PURE__ */ p(
1016
- Ve,
1030
+ Be,
1017
1031
  {
1018
- className: w(`${y}__helper`),
1019
- "data-testid": r && `${r}-helper-text`,
1032
+ className: $(`${y}__helper`),
1033
+ "data-testid": e && `${e}-helper-text`,
1020
1034
  disabled: c.disabled,
1021
1035
  id: `${c.id}-helper-text`,
1022
1036
  children: o
@@ -1024,13 +1038,13 @@ const Kr = /* @__PURE__ */ Tr(Hr), Gr = {
1024
1038
  )
1025
1039
  ] })
1026
1040
  ] }),
1027
- h && /* @__PURE__ */ p(qe, { "data-testid": r && `${r}-error-text`, children: a })
1041
+ d && /* @__PURE__ */ p(Re, { "data-testid": e && `${e}-error-text`, children: i })
1028
1042
  ] });
1029
1043
  }
1030
1044
  );
1031
- Xr.displayName = "Checkbox";
1045
+ Gr.displayName = "Checkbox";
1032
1046
  export {
1033
- Xr as Checkbox,
1034
- rt as checkedState
1047
+ Gr as Checkbox,
1048
+ Yr as checkedState
1035
1049
  };
1036
1050
  //# sourceMappingURL=checkbox.es.js.map