beth-clarity 1.1.27 → 1.1.28

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,7 +1,48 @@
1
- import { jsx as r, jsxs as g, Fragment as mt } from "react/jsx-runtime";
2
- import j, { createContext as Q, useContext as Y, useState as T, useRef as z, useEffect as P, forwardRef as ut, isValidElement as K, cloneElement as G, useMemo as oe, useCallback as de, useLayoutEffect as pt, Children as ft } from "react";
3
- import ht from "react-dom";
4
- const ge = {
1
+ import { jsx as a, jsxs as g, Fragment as ct } from "react/jsx-runtime";
2
+ import L, { useState as B, useRef as z, useEffect as P, forwardRef as dt, isValidElement as Q, createContext as Z, cloneElement as G, useContext as K, useMemo as oe, useCallback as de, useLayoutEffect as mt, Children as ut } from "react";
3
+ import pt from "react-dom";
4
+ const At = ({
5
+ variant: e = "primary",
6
+ product: t,
7
+ tone: s,
8
+ size: r = "medium",
9
+ bgColor: l,
10
+ textColor: o,
11
+ children: d,
12
+ className: c = "",
13
+ rounded: n = !1,
14
+ outlined: i = !1,
15
+ ...m
16
+ }) => {
17
+ const v = "clarity-badge", p = !!l, f = t && s && !p;
18
+ let u = "";
19
+ p ? u = `${v}--custom-bg` : f ? u = `${v}--custom` : u = `${v}--${e}`;
20
+ const h = [
21
+ v,
22
+ u,
23
+ `${v}--${r}`,
24
+ n ? `${v}--rounded` : "",
25
+ i ? `${v}--outlined` : "",
26
+ c
27
+ ].filter(Boolean).join(" "), y = {};
28
+ p && (y.backgroundColor = l, o && (y.color = o));
29
+ const b = f && t && s ? {
30
+ "--custom-bg-color": `var(--clarity-${t}-${s})`,
31
+ "--custom-text-color": s && parseInt(s) >= 500 ? "white" : `var(--clarity-${t}-800)`
32
+ } : {};
33
+ return /* @__PURE__ */ a(
34
+ "span",
35
+ {
36
+ className: h,
37
+ style: {
38
+ ...y,
39
+ ...b
40
+ },
41
+ ...m,
42
+ children: d
43
+ }
44
+ );
45
+ }, Ne = {
5
46
  fontFamily: {
6
47
  sans: ["Inter", "system-ui", "sans-serif"],
7
48
  mono: ["Fira Code", "monospace"]
@@ -28,7 +69,7 @@ const ge = {
28
69
  wide: "0.025em",
29
70
  wider: "0.05em"
30
71
  }
31
- }, fe = (e) => {
72
+ }, pe = (e) => {
32
73
  if (e) {
33
74
  if (e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl") || e === "transparent")
34
75
  return e;
@@ -38,16 +79,16 @@ const ge = {
38
79
  }
39
80
  return `var(--clarity-${e})`;
40
81
  }
41
- }, X = (e) => e !== void 0 ? `var(--clarity-spacing-${e})` : void 0, me = j.forwardRef(
82
+ }, X = (e) => e !== void 0 ? `var(--clarity-spacing-${e})` : void 0, ft = L.forwardRef(
42
83
  (e, t) => {
43
84
  const {
44
85
  children: s,
45
- className: a,
46
- display: n,
86
+ className: r,
87
+ display: l,
47
88
  position: o,
48
89
  flexDirection: d,
49
90
  alignItems: c,
50
- justifyContent: l,
91
+ justifyContent: n,
51
92
  gap: i,
52
93
  m,
53
94
  mt: v,
@@ -57,14 +98,14 @@ const ge = {
57
98
  mx: h,
58
99
  my: y,
59
100
  p: b,
60
- pt: N,
61
- pr: B,
101
+ pt: C,
102
+ pr: T,
62
103
  pb: x,
63
104
  pl: _,
64
105
  px: $,
65
- py: L,
106
+ py: R,
66
107
  bg: k,
67
- color: R,
108
+ color: j,
68
109
  fontSize: S,
69
110
  fontWeight: I,
70
111
  textAlign: E,
@@ -76,60 +117,60 @@ const ge = {
76
117
  borderBottomLeftRadius: q,
77
118
  borderBottomRightRadius: M,
78
119
  boxShadow: A,
79
- borderWidth: Z,
120
+ borderWidth: J,
80
121
  borderTopWidth: se,
81
122
  borderRightWidth: ae,
82
123
  borderBottomWidth: re,
83
- borderLeftWidth: C,
124
+ borderLeftWidth: N,
84
125
  borderXWidth: O,
85
126
  borderYWidth: F,
86
127
  borderColor: D,
87
- overflow: J,
88
- ...it
89
- } = e, ie = (pe, Ne) => {
90
- if (pe === void 0 || pe === 0) return;
91
- const ct = `var(--clarity-border-width-${pe})`, dt = Ne ? fe(Ne) : "currentColor";
92
- return `${ct} solid ${dt}`;
93
- }, ot = j.useMemo(() => ({
94
- display: n,
128
+ overflow: Y,
129
+ ...lt
130
+ } = e, ie = (ue, be) => {
131
+ if (ue === void 0 || ue === 0) return;
132
+ const it = `var(--clarity-border-width-${ue})`, ot = be ? pe(be) : "currentColor";
133
+ return `${it} solid ${ot}`;
134
+ }, nt = L.useMemo(() => ({
135
+ display: l,
95
136
  position: o,
96
137
  flexDirection: d,
97
138
  alignItems: c,
98
- justifyContent: l,
139
+ justifyContent: n,
99
140
  gap: X(i),
100
141
  marginTop: X(v ?? y ?? m),
101
142
  marginRight: X(p ?? h ?? m),
102
143
  marginBottom: X(f ?? y ?? m),
103
144
  marginLeft: X(u ?? h ?? m),
104
- paddingTop: X(N ?? L ?? b),
105
- paddingRight: X(B ?? $ ?? b),
106
- paddingBottom: X(x ?? L ?? b),
145
+ paddingTop: X(C ?? R ?? b),
146
+ paddingRight: X(T ?? $ ?? b),
147
+ paddingBottom: X(x ?? R ?? b),
107
148
  paddingLeft: X(_ ?? $ ?? b),
108
- backgroundColor: k ? fe(k) : void 0,
109
- color: R ? fe(R) : void 0,
149
+ backgroundColor: k ? pe(k) : void 0,
150
+ color: j ? pe(j) : void 0,
110
151
  fontSize: S ? `var(--clarity-font-size-${S})` : void 0,
111
- fontWeight: I ? ge.fontWeight[I] : void 0,
152
+ fontWeight: I ? Ne.fontWeight[I] : void 0,
112
153
  textAlign: E,
113
154
  lineHeight: w,
114
- letterSpacing: H ? ge.letterSpacing[H] : void 0,
155
+ letterSpacing: H ? Ne.letterSpacing[H] : void 0,
115
156
  borderRadius: W ? `var(--clarity-radius-${W})` : void 0,
116
157
  borderTopLeftRadius: V ? `var(--clarity-radius-${V})` : void 0,
117
158
  borderTopRightRadius: U ? `var(--clarity-radius-${U})` : void 0,
118
159
  borderBottomLeftRadius: q ? `var(--clarity-radius-${q})` : void 0,
119
160
  borderBottomRightRadius: M ? `var(--clarity-radius-${M})` : void 0,
120
161
  boxShadow: A ? `var(--clarity-shadow-${A})` : void 0,
121
- border: ie(Z, D),
162
+ border: ie(J, D),
122
163
  borderTop: ie(se ?? F),
123
164
  borderRight: ie(ae ?? O),
124
165
  borderBottom: ie(re ?? F),
125
- borderLeft: ie(C ?? O),
126
- overflow: J
166
+ borderLeft: ie(N ?? O),
167
+ overflow: Y
127
168
  }), [
128
- n,
169
+ l,
129
170
  o,
130
171
  d,
131
172
  c,
132
- l,
173
+ n,
133
174
  i,
134
175
  m,
135
176
  v,
@@ -139,14 +180,14 @@ const ge = {
139
180
  h,
140
181
  y,
141
182
  b,
142
- N,
143
- B,
183
+ C,
184
+ T,
144
185
  x,
145
186
  _,
146
187
  $,
147
- L,
148
- k,
149
188
  R,
189
+ k,
190
+ j,
150
191
  S,
151
192
  I,
152
193
  E,
@@ -158,123 +199,30 @@ const ge = {
158
199
  q,
159
200
  M,
160
201
  A,
161
- Z,
202
+ J,
162
203
  se,
163
204
  ae,
164
205
  re,
165
- C,
206
+ N,
166
207
  O,
167
208
  F,
168
209
  D,
169
- J
210
+ Y
170
211
  ]);
171
- return /* @__PURE__ */ r("div", { ref: t, className: `clarity-box ${a || ""}`.trim(), style: ot, ...it, children: s });
172
- }
173
- ), he = Q({}), _e = ({ children: e, className: t, ...s }) => {
174
- const { borderRadius: a } = Y(he);
175
- return /* @__PURE__ */ r(
176
- me,
177
- {
178
- p: 4,
179
- borderBottomWidth: 1,
180
- borderColor: "gray.200",
181
- className: t,
182
- borderTopLeftRadius: a,
183
- borderTopRightRadius: a,
184
- ...s,
185
- children: e
186
- }
187
- );
188
- };
189
- _e.displayName = "Card.Header";
190
- const we = ({ children: e, className: t, ...s }) => /* @__PURE__ */ r(me, { p: 4, className: t, ...s, children: e });
191
- we.displayName = "Card.Content";
192
- const $e = ({ children: e, className: t, ...s }) => {
193
- const { borderRadius: a } = Y(he);
194
- return /* @__PURE__ */ r(
195
- me,
196
- {
197
- p: 4,
198
- borderTopWidth: 1,
199
- borderColor: "gray.200",
200
- display: "flex",
201
- justifyContent: "flex-end",
202
- gap: 3,
203
- className: t,
204
- borderBottomLeftRadius: a,
205
- borderBottomRightRadius: a,
206
- ...s,
207
- children: e
208
- }
209
- );
210
- };
211
- $e.displayName = "Card.Footer";
212
- const ue = ({ children: e, bg: t = "white", borderRadius: s = 3, ...a }) => /* @__PURE__ */ r(he.Provider, { value: { borderRadius: s }, children: /* @__PURE__ */ r(
213
- me,
214
- {
215
- bg: t,
216
- borderRadius: s,
217
- boxShadow: 1,
218
- overflow: "hidden",
219
- ...a,
220
- children: e
212
+ return /* @__PURE__ */ a("div", { ref: t, className: `clarity-box ${r || ""}`.trim(), style: nt, ...lt, children: s });
221
213
  }
222
- ) });
223
- ue.Header = _e;
224
- ue.Content = we;
225
- ue.Footer = $e;
226
- ue.displayName = "Card";
214
+ );
215
+ ft.displayName = "Box";
227
216
  const Ht = ({
228
- variant: e = "primary",
229
- product: t,
230
- tone: s,
231
- size: a = "medium",
232
- bgColor: n,
233
- textColor: o,
234
- children: d,
235
- className: c = "",
236
- rounded: l = !1,
237
- outlined: i = !1,
238
- ...m
239
- }) => {
240
- const v = "clarity-badge", p = !!n, f = t && s && !p;
241
- let u = "";
242
- p ? u = `${v}--custom-bg` : f ? u = `${v}--custom` : u = `${v}--${e}`;
243
- const h = [
244
- v,
245
- u,
246
- `${v}--${a}`,
247
- l ? `${v}--rounded` : "",
248
- i ? `${v}--outlined` : "",
249
- c
250
- ].filter(Boolean).join(" "), y = {};
251
- p && (y.backgroundColor = n, o && (y.color = o));
252
- const b = f && t && s ? {
253
- "--custom-bg-color": `var(--clarity-${t}-${s})`,
254
- "--custom-text-color": s && parseInt(s) >= 500 ? "white" : `var(--clarity-${t}-800)`
255
- } : {};
256
- return /* @__PURE__ */ r(
257
- "span",
258
- {
259
- className: h,
260
- style: {
261
- ...y,
262
- ...b
263
- },
264
- ...m,
265
- children: d
266
- }
267
- );
268
- }, Vt = ({
269
217
  variant: e = "primary",
270
218
  size: t = "medium",
271
219
  disabled: s = !1,
272
- loading: a = !1,
273
- children: n,
220
+ loading: r = !1,
221
+ children: l,
274
222
  onClick: o,
275
223
  type: d = "button",
276
224
  className: c = "",
277
- title: l,
225
+ title: n,
278
226
  customColor: i,
279
227
  customColorHover: m,
280
228
  ...v
@@ -283,7 +231,7 @@ const Ht = ({
283
231
  p,
284
232
  !i && `${p}--${e}`,
285
233
  `${p}--${t}`,
286
- a && `${p}--loading`,
234
+ r && `${p}--loading`,
287
235
  s && `${p}--disabled`,
288
236
  c
289
237
  ].filter(Boolean).join(" "), u = {};
@@ -292,27 +240,27 @@ const Ht = ({
292
240
  {
293
241
  className: f,
294
242
  style: u,
295
- disabled: s || a,
243
+ disabled: s || r,
296
244
  onClick: o,
297
245
  type: d,
298
- title: l,
246
+ title: n,
299
247
  ...v,
300
248
  children: [
301
- a && /* @__PURE__ */ r("div", { className: `${p}__spinner` }),
302
- n
249
+ r && /* @__PURE__ */ a("div", { className: `${p}__spinner` }),
250
+ l
303
251
  ]
304
252
  }
305
253
  );
306
- }, Mt = ({
254
+ }, Vt = ({
307
255
  variant: e = "primary",
308
256
  size: t = "medium",
309
257
  filled: s = !0,
310
- items: a,
311
- value: n,
258
+ items: r,
259
+ value: l,
312
260
  multiple: o = !1,
313
261
  disabled: d = !1,
314
262
  onChange: c,
315
- className: l = "",
263
+ className: n = "",
316
264
  ...i
317
265
  }) => {
318
266
  const m = "clarity-button-group", v = `${m}--${e}`, p = [
@@ -321,42 +269,42 @@ const Ht = ({
321
269
  `${m}--${t}`,
322
270
  !s && `${m}--outline`,
323
271
  d && `${m}--disabled`,
324
- l
272
+ n
325
273
  ].filter(Boolean).join(" "), f = (h) => {
326
274
  if (d || !c) return;
327
- const y = a.find((b) => b.id === h);
275
+ const y = r.find((b) => b.id === h);
328
276
  if (!(y != null && y.disabled))
329
277
  if (o) {
330
- const b = Array.isArray(n) ? n : [], N = b.includes(h) ? b.filter((B) => B !== h) : [...b, h];
331
- c(N);
278
+ const b = Array.isArray(l) ? l : [], C = b.includes(h) ? b.filter((T) => T !== h) : [...b, h];
279
+ c(C);
332
280
  } else
333
281
  c(h);
334
- }, u = (h) => o ? Array.isArray(n) && n.includes(h) : n === h;
335
- return /* @__PURE__ */ r(
282
+ }, u = (h) => o ? Array.isArray(l) && l.includes(h) : l === h;
283
+ return /* @__PURE__ */ a(
336
284
  "div",
337
285
  {
338
286
  className: p,
339
287
  role: "group",
340
288
  ...i,
341
- children: a.map((h, y) => {
342
- const b = u(h.id), N = [
289
+ children: r.map((h, y) => {
290
+ const b = u(h.id), C = [
343
291
  `${m}__item`,
344
292
  b && `${m}__item--selected`,
345
293
  h.disabled && `${m}__item--disabled`,
346
294
  y === 0 && `${m}__item--first`,
347
- y === a.length - 1 && `${m}__item--last`
295
+ y === r.length - 1 && `${m}__item--last`
348
296
  ].filter(Boolean).join(" ");
349
297
  return /* @__PURE__ */ g(
350
298
  "button",
351
299
  {
352
- className: N,
300
+ className: C,
353
301
  onClick: () => f(h.id),
354
302
  disabled: d || h.disabled,
355
303
  type: "button",
356
304
  "aria-pressed": b,
357
305
  children: [
358
- h.icon && /* @__PURE__ */ r("span", { className: `${m}__item-icon`, children: h.icon }),
359
- /* @__PURE__ */ r("span", { className: `${m}__item-label`, children: h.label })
306
+ h.icon && /* @__PURE__ */ a("span", { className: `${m}__item-icon`, children: h.icon }),
307
+ /* @__PURE__ */ a("span", { className: `${m}__item-label`, children: h.label })
360
308
  ]
361
309
  },
362
310
  h.id
@@ -364,16 +312,16 @@ const Ht = ({
364
312
  })
365
313
  }
366
314
  );
367
- }, yt = j.forwardRef(({
315
+ }, ht = L.forwardRef(({
368
316
  variant: e,
369
317
  size: t = "medium",
370
318
  label: s,
371
- helperText: a,
372
- error: n = !1,
319
+ helperText: r,
320
+ error: l = !1,
373
321
  errorMessage: o,
374
322
  startIcon: d,
375
323
  endIcon: c,
376
- className: l = "",
324
+ className: n = "",
377
325
  disabled: i = !1,
378
326
  value: m,
379
327
  defaultValue: v,
@@ -381,33 +329,33 @@ const Ht = ({
381
329
  onBlur: f,
382
330
  ...u
383
331
  }, h) => {
384
- const [y, b] = T(!1), [N, B] = T(!1), x = z(null);
385
- j.useImperativeHandle(h, () => x.current), P(() => {
332
+ const [y, b] = B(!1), [C, T] = B(!1), x = z(null);
333
+ L.useImperativeHandle(h, () => x.current), P(() => {
386
334
  const k = x.current;
387
- k && B(k.value.length > 0);
335
+ k && T(k.value.length > 0);
388
336
  }, [m, v]);
389
337
  const _ = (k) => {
390
338
  b(!0), p == null || p(k);
391
339
  }, $ = (k) => {
392
- b(!1), B(k.target.value.length > 0), f == null || f(k);
393
- }, L = [
340
+ b(!1), T(k.target.value.length > 0), f == null || f(k);
341
+ }, R = [
394
342
  "clarity-input",
395
343
  "clarity-input--outlined",
396
344
  `clarity-input--${t}`,
397
345
  e && `clarity-input--${e}`,
398
- n && "clarity-input--error",
346
+ l && "clarity-input--error",
399
347
  i && "clarity-input--disabled",
400
348
  y && "clarity-input--focused",
401
- N && "clarity-input--has-value",
349
+ C && "clarity-input--has-value",
402
350
  d && "clarity-input--with-start-icon",
403
351
  c && "clarity-input--with-end-icon",
404
- l
352
+ n
405
353
  ].filter(Boolean).join(" ");
406
354
  return /* @__PURE__ */ g("div", { className: "clarity-input-wrapper", children: [
407
- /* @__PURE__ */ g("div", { className: L, children: [
408
- d && /* @__PURE__ */ r("div", { className: "clarity-input__start-icon", children: d }),
355
+ /* @__PURE__ */ g("div", { className: R, children: [
356
+ d && /* @__PURE__ */ a("div", { className: "clarity-input__start-icon", children: d }),
409
357
  /* @__PURE__ */ g("div", { className: "clarity-input__field", children: [
410
- /* @__PURE__ */ r(
358
+ /* @__PURE__ */ a(
411
359
  "input",
412
360
  {
413
361
  ref: x,
@@ -420,24 +368,24 @@ const Ht = ({
420
368
  ...u
421
369
  }
422
370
  ),
423
- s && /* @__PURE__ */ r("label", { className: "clarity-input__label", children: s })
371
+ s && /* @__PURE__ */ a("label", { className: "clarity-input__label", children: s })
424
372
  ] }),
425
- c && /* @__PURE__ */ r("div", { className: "clarity-input__end-icon", children: c })
373
+ c && /* @__PURE__ */ a("div", { className: "clarity-input__end-icon", children: c })
426
374
  ] }),
427
- (a || n && o) && /* @__PURE__ */ r("div", { className: "clarity-input__helper-text", children: n && o ? o : a })
375
+ (r || l && o) && /* @__PURE__ */ a("div", { className: "clarity-input__helper-text", children: l && o ? o : r })
428
376
  ] });
429
377
  });
430
- yt.displayName = "Input";
431
- const vt = j.forwardRef(({
378
+ ht.displayName = "Input";
379
+ const yt = L.forwardRef(({
432
380
  variant: e,
433
381
  size: t = "medium",
434
382
  label: s,
435
- helperText: a,
436
- error: n = !1,
383
+ helperText: r,
384
+ error: l = !1,
437
385
  errorMessage: o,
438
386
  startIcon: d,
439
387
  endIcon: c,
440
- className: l = "",
388
+ className: n = "",
441
389
  disabled: i = !1,
442
390
  value: m,
443
391
  defaultValue: v,
@@ -447,29 +395,29 @@ const vt = j.forwardRef(({
447
395
  minHeight: h,
448
396
  maxHeight: y,
449
397
  resizable: b = !0,
450
- ...N
451
- }, B) => {
452
- const [x, _] = T(!1), [$, L] = T(!1), k = z(null);
453
- j.useImperativeHandle(B, () => k.current), P(() => {
398
+ ...C
399
+ }, T) => {
400
+ const [x, _] = B(!1), [$, R] = B(!1), k = z(null);
401
+ L.useImperativeHandle(T, () => k.current), P(() => {
454
402
  const w = k.current;
455
- w && L(w.value.length > 0);
403
+ w && R(w.value.length > 0);
456
404
  }, [m, v]);
457
- const R = (w) => {
405
+ const j = (w) => {
458
406
  _(!0), p == null || p(w);
459
407
  }, S = (w) => {
460
- _(!1), L(w.target.value.length > 0), f == null || f(w);
408
+ _(!1), R(w.target.value.length > 0), f == null || f(w);
461
409
  }, I = [
462
410
  "clarity-textarea",
463
411
  "clarity-textarea--outlined",
464
412
  `clarity-textarea--${t}`,
465
413
  e && `clarity-textarea--${e}`,
466
- n && "clarity-textarea--error",
414
+ l && "clarity-textarea--error",
467
415
  i && "clarity-textarea--disabled",
468
416
  x && "clarity-textarea--focused",
469
417
  $ && "clarity-textarea--has-value",
470
418
  d && "clarity-textarea--with-start-icon",
471
419
  c && "clarity-textarea--with-end-icon",
472
- l
420
+ n
473
421
  ].filter(Boolean).join(" "), E = {
474
422
  resize: b ? "vertical" : "none",
475
423
  minHeight: h ? `${h}px` : void 0,
@@ -477,9 +425,9 @@ const vt = j.forwardRef(({
477
425
  };
478
426
  return /* @__PURE__ */ g("div", { className: "clarity-textarea-wrapper", children: [
479
427
  /* @__PURE__ */ g("div", { className: I, children: [
480
- d && /* @__PURE__ */ r("div", { className: "clarity-textarea__start-icon", children: d }),
428
+ d && /* @__PURE__ */ a("div", { className: "clarity-textarea__start-icon", children: d }),
481
429
  /* @__PURE__ */ g("div", { className: "clarity-textarea__field", children: [
482
- /* @__PURE__ */ r(
430
+ /* @__PURE__ */ a(
483
431
  "textarea",
484
432
  {
485
433
  ref: k,
@@ -487,31 +435,31 @@ const vt = j.forwardRef(({
487
435
  disabled: i,
488
436
  value: m,
489
437
  defaultValue: v,
490
- onFocus: R,
438
+ onFocus: j,
491
439
  onBlur: S,
492
440
  rows: u,
493
441
  style: E,
494
- ...N
442
+ ...C
495
443
  }
496
444
  ),
497
- s && /* @__PURE__ */ r("label", { className: "clarity-textarea__label", children: s })
445
+ s && /* @__PURE__ */ a("label", { className: "clarity-textarea__label", children: s })
498
446
  ] }),
499
- c && /* @__PURE__ */ r("div", { className: "clarity-textarea__end-icon", children: c })
447
+ c && /* @__PURE__ */ a("div", { className: "clarity-textarea__end-icon", children: c })
500
448
  ] }),
501
- (a || n && o) && /* @__PURE__ */ r("div", { className: "clarity-textarea__helper-text", children: n && o ? o : a })
449
+ (r || l && o) && /* @__PURE__ */ a("div", { className: "clarity-textarea__helper-text", children: l && o ? o : r })
502
450
  ] });
503
451
  });
504
- vt.displayName = "Textarea";
505
- const bt = j.forwardRef(({
452
+ yt.displayName = "Textarea";
453
+ const vt = L.forwardRef(({
506
454
  variant: e,
507
455
  size: t = "medium",
508
456
  label: s,
509
- helperText: a,
510
- error: n = !1,
457
+ helperText: r,
458
+ error: l = !1,
511
459
  errorMessage: o,
512
460
  startIcon: d,
513
461
  endIcon: c,
514
- className: l = "",
462
+ className: n = "",
515
463
  disabled: i = !1,
516
464
  value: m,
517
465
  defaultValue: v,
@@ -521,47 +469,47 @@ const bt = j.forwardRef(({
521
469
  options: h,
522
470
  placeholder: y = "Selecione uma opção",
523
471
  isClearable: b = !1,
524
- isSearchable: N = !1,
525
- ...B
472
+ isSearchable: C = !1,
473
+ ...T
526
474
  }, x) => {
527
- const [_, $] = T(!1), [L, k] = T(!1), [R, S] = T(m || v || ""), [I, E] = T(""), w = z(null), H = z(null);
528
- j.useImperativeHandle(x, () => w.current), P(() => {
475
+ const [_, $] = B(!1), [R, k] = B(!1), [j, S] = B(m || v || ""), [I, E] = B(""), w = z(null), H = z(null);
476
+ L.useImperativeHandle(x, () => w.current), P(() => {
529
477
  m !== void 0 && S(m);
530
478
  }, [m]), P(() => {
531
- const C = (O) => {
479
+ const N = (O) => {
532
480
  w.current && !w.current.contains(O.target) && ($(!1), k(!1), f == null || f());
533
481
  };
534
- return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
482
+ return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
535
483
  }, [f]);
536
- const W = N && I ? h.filter(
537
- (C) => C.label.toLowerCase().includes(I.toLowerCase())
484
+ const W = C && I ? h.filter(
485
+ (N) => N.label.toLowerCase().includes(I.toLowerCase())
538
486
  ) : h, V = () => {
539
- i || ($(!_), k(!_), _ ? (f == null || f(), N && E("")) : (p == null || p(), N && setTimeout(() => {
540
- var C;
541
- (C = H.current) == null || C.focus();
487
+ i || ($(!_), k(!_), _ ? (f == null || f(), C && E("")) : (p == null || p(), C && setTimeout(() => {
488
+ var N;
489
+ (N = H.current) == null || N.focus();
542
490
  }, 0)));
543
- }, U = (C) => {
544
- C.disabled || (S(C.value), $(!1), k(!1), E(""), u == null || u(C.value), f == null || f());
545
- }, q = (C) => {
546
- E(C.target.value);
547
- }, M = (C) => {
548
- C.key === "Escape" ? ($(!1), k(!1), E("")) : C.key === "Enter" && W.length > 0 && W[0] && U(W[0]);
549
- }, A = h.find((C) => C.value === R), Z = R !== "" && R !== void 0, se = (C) => {
550
- C.stopPropagation(), S(""), u == null || u("");
551
- }, ae = Z || L || y || N && I, re = [
491
+ }, U = (N) => {
492
+ N.disabled || (S(N.value), $(!1), k(!1), E(""), u == null || u(N.value), f == null || f());
493
+ }, q = (N) => {
494
+ E(N.target.value);
495
+ }, M = (N) => {
496
+ N.key === "Escape" ? ($(!1), k(!1), E("")) : N.key === "Enter" && W.length > 0 && W[0] && U(W[0]);
497
+ }, A = h.find((N) => N.value === j), J = j !== "" && j !== void 0, se = (N) => {
498
+ N.stopPropagation(), S(""), u == null || u("");
499
+ }, ae = J || R || y || C && I, re = [
552
500
  "clarity-select",
553
501
  "clarity-select--outlined",
554
502
  `clarity-select--${t}`,
555
503
  e && `clarity-select--${e}`,
556
- n && "clarity-select--error",
504
+ l && "clarity-select--error",
557
505
  i && "clarity-select--disabled",
558
- (L || _) && "clarity-select--focused",
506
+ (R || _) && "clarity-select--focused",
559
507
  ae && "clarity-select--label-up",
560
508
  _ && "clarity-select--open",
561
- N && "clarity-select--searchable",
509
+ C && "clarity-select--searchable",
562
510
  d && "clarity-select--with-start-icon",
563
511
  (c || b) && "clarity-select--with-end-icon",
564
- l
512
+ n
565
513
  ].filter(Boolean).join(" ");
566
514
  return /* @__PURE__ */ g("div", { className: "clarity-select-wrapper", children: [
567
515
  /* @__PURE__ */ g(
@@ -569,16 +517,16 @@ const bt = j.forwardRef(({
569
517
  {
570
518
  ref: w,
571
519
  className: re,
572
- onClick: N ? void 0 : V,
520
+ onClick: C ? void 0 : V,
573
521
  role: "combobox",
574
522
  "aria-expanded": _,
575
523
  "aria-haspopup": "listbox",
576
- tabIndex: i || N ? -1 : 0,
577
- ...B,
524
+ tabIndex: i || C ? -1 : 0,
525
+ ...T,
578
526
  children: [
579
- d && /* @__PURE__ */ r("div", { className: "clarity-select__start-icon", children: d }),
527
+ d && /* @__PURE__ */ a("div", { className: "clarity-select__start-icon", children: d }),
580
528
  /* @__PURE__ */ g("div", { className: "clarity-select__field", children: [
581
- N ? /* @__PURE__ */ r(
529
+ C ? /* @__PURE__ */ a(
582
530
  "input",
583
531
  {
584
532
  ref: H,
@@ -594,24 +542,24 @@ const bt = j.forwardRef(({
594
542
  disabled: i,
595
543
  readOnly: !_
596
544
  }
597
- ) : /* @__PURE__ */ r("div", { className: "clarity-select__display", children: A ? A.label : y }),
598
- s && /* @__PURE__ */ r("label", { className: "clarity-select__label", children: s })
545
+ ) : /* @__PURE__ */ a("div", { className: "clarity-select__display", children: A ? A.label : y }),
546
+ s && /* @__PURE__ */ a("label", { className: "clarity-select__label", children: s })
599
547
  ] }),
600
- b && Z && /* @__PURE__ */ r(
548
+ b && J && /* @__PURE__ */ a(
601
549
  "button",
602
550
  {
603
551
  type: "button",
604
552
  className: "clarity-select__clear-button",
605
553
  onClick: se,
606
554
  "aria-label": "Limpar seleção",
607
- children: /* @__PURE__ */ r(
555
+ children: /* @__PURE__ */ a(
608
556
  "svg",
609
557
  {
610
558
  width: "16",
611
559
  height: "16",
612
560
  viewBox: "0 0 16 16",
613
561
  fill: "none",
614
- children: /* @__PURE__ */ r(
562
+ children: /* @__PURE__ */ a(
615
563
  "path",
616
564
  {
617
565
  d: "M12 4L4 12M4 4L12 12",
@@ -625,12 +573,12 @@ const bt = j.forwardRef(({
625
573
  )
626
574
  }
627
575
  ),
628
- /* @__PURE__ */ r(
576
+ /* @__PURE__ */ a(
629
577
  "div",
630
578
  {
631
579
  className: "clarity-select__end-icon",
632
- onClick: N ? V : void 0,
633
- children: c || /* @__PURE__ */ r(
580
+ onClick: C ? V : void 0,
581
+ children: c || /* @__PURE__ */ a(
634
582
  "svg",
635
583
  {
636
584
  className: "clarity-select__arrow",
@@ -638,7 +586,7 @@ const bt = j.forwardRef(({
638
586
  height: "16",
639
587
  viewBox: "0 0 16 16",
640
588
  fill: "none",
641
- children: /* @__PURE__ */ r(
589
+ children: /* @__PURE__ */ a(
642
590
  "path",
643
591
  {
644
592
  d: "M4 6L8 10L12 6",
@@ -652,38 +600,38 @@ const bt = j.forwardRef(({
652
600
  )
653
601
  }
654
602
  ),
655
- _ && /* @__PURE__ */ r("div", { className: "clarity-select__dropdown", children: /* @__PURE__ */ r("ul", { className: "clarity-select__options", role: "listbox", children: W.length > 0 ? W.map((C) => /* @__PURE__ */ r(
603
+ _ && /* @__PURE__ */ a("div", { className: "clarity-select__dropdown", children: /* @__PURE__ */ a("ul", { className: "clarity-select__options", role: "listbox", children: W.length > 0 ? W.map((N) => /* @__PURE__ */ a(
656
604
  "li",
657
605
  {
658
606
  className: [
659
607
  "clarity-select__option",
660
- C.disabled && "clarity-select__option--disabled",
661
- R === C.value && "clarity-select__option--selected"
608
+ N.disabled && "clarity-select__option--disabled",
609
+ j === N.value && "clarity-select__option--selected"
662
610
  ].filter(Boolean).join(" "),
663
- onClick: () => U(C),
611
+ onClick: () => U(N),
664
612
  role: "option",
665
- "aria-selected": R === C.value,
666
- children: C.label
613
+ "aria-selected": j === N.value,
614
+ children: N.label
667
615
  },
668
- C.value
669
- )) : /* @__PURE__ */ r("li", { className: "clarity-select__option clarity-select__option--no-results", children: "Nenhum resultado encontrado" }) }) })
616
+ N.value
617
+ )) : /* @__PURE__ */ a("li", { className: "clarity-select__option clarity-select__option--no-results", children: "Nenhum resultado encontrado" }) }) })
670
618
  ]
671
619
  }
672
620
  ),
673
- (a || n && o) && /* @__PURE__ */ r("div", { className: "clarity-select__helper-text", children: n && o ? o : a })
621
+ (r || l && o) && /* @__PURE__ */ a("div", { className: "clarity-select__helper-text", children: l && o ? o : r })
674
622
  ] });
675
623
  });
676
- bt.displayName = "Select";
677
- const Ct = ut(({
624
+ vt.displayName = "Select";
625
+ const bt = dt(({
678
626
  options: e = [],
679
627
  value: t = [],
680
628
  onChange: s,
681
- placeholder: a = "Selecione opções",
682
- label: n,
629
+ placeholder: r = "Selecione opções",
630
+ label: l,
683
631
  helperText: o,
684
632
  error: d = !1,
685
633
  errorMessage: c,
686
- disabled: l = !1,
634
+ disabled: n = !1,
687
635
  variant: i = "primary",
688
636
  size: m = "medium",
689
637
  maxSelectedLabels: v = 3,
@@ -693,55 +641,55 @@ const Ct = ut(({
693
641
  name: h,
694
642
  required: y = !1,
695
643
  "data-testid": b,
696
- ...N
697
- }, B) => {
698
- const [x, _] = T(!1), [$, L] = T(""), [k, R] = T(!1), S = z(null), I = z(null), E = z(null), w = (C) => {
699
- S.current = C, B && (typeof B == "function" ? B(C) : B.current = C);
644
+ ...C
645
+ }, T) => {
646
+ const [x, _] = B(!1), [$, R] = B(""), [k, j] = B(!1), S = z(null), I = z(null), E = z(null), w = (N) => {
647
+ S.current = N, T && (typeof T == "function" ? T(N) : T.current = N);
700
648
  };
701
649
  P(() => {
702
- const C = (O) => {
703
- S.current && !S.current.contains(O.target) && (_(!1), R(!1), L(""));
650
+ const N = (O) => {
651
+ S.current && !S.current.contains(O.target) && (_(!1), j(!1), R(""));
704
652
  };
705
- return document.addEventListener("click", C), () => document.removeEventListener("click", C);
653
+ return document.addEventListener("click", N), () => document.removeEventListener("click", N);
706
654
  }, []);
707
655
  const H = e.filter(
708
- (C) => C.label.toLowerCase().includes($.toLowerCase())
656
+ (N) => N.label.toLowerCase().includes($.toLowerCase())
709
657
  ), W = () => {
710
- l || (_(!x), R(!x), x ? L("") : setTimeout(() => {
711
- var C;
712
- (C = I.current) == null || C.focus();
658
+ n || (_(!x), j(!x), x ? R("") : setTimeout(() => {
659
+ var N;
660
+ (N = I.current) == null || N.focus();
713
661
  }, 100));
714
- }, V = (C, O) => {
715
- if (l)
662
+ }, V = (N, O) => {
663
+ if (n)
716
664
  return;
717
665
  O && (O.stopPropagation(), O.preventDefault());
718
- const F = t.includes(C);
666
+ const F = t.includes(N);
719
667
  let D;
720
- F ? D = t.filter((J) => J !== C) : D = [...t, C], s && s(D);
721
- }, U = (C, O) => {
722
- if (O.stopPropagation(), l) return;
723
- const F = t.filter((D) => D !== C);
668
+ F ? D = t.filter((Y) => Y !== N) : D = [...t, N], s && s(D);
669
+ }, U = (N, O) => {
670
+ if (O.stopPropagation(), n) return;
671
+ const F = t.filter((D) => D !== N);
724
672
  s == null || s(F);
725
- }, q = (C) => {
726
- C.stopPropagation(), !l && (s == null || s([]));
727
- }, M = (C) => {
728
- L(C.target.value);
729
- }, A = (C) => {
730
- C.key === "Escape" && (_(!1), R(!1), L(""));
731
- }, Z = k || x || t.length > 0, se = () => {
673
+ }, q = (N) => {
674
+ N.stopPropagation(), !n && (s == null || s([]));
675
+ }, M = (N) => {
676
+ R(N.target.value);
677
+ }, A = (N) => {
678
+ N.key === "Escape" && (_(!1), j(!1), R(""));
679
+ }, J = k || x || t.length > 0, se = () => {
732
680
  if (t.length === 0) return null;
733
- const C = t.map(
734
- (D) => e.find((J) => J.value === D)
735
- ).filter(Boolean), O = C.slice(0, v), F = C.length - v;
681
+ const N = t.map(
682
+ (D) => e.find((Y) => Y.value === D)
683
+ ).filter(Boolean), O = N.slice(0, v), F = N.length - v;
736
684
  return /* @__PURE__ */ g("div", { className: "clarity-multiselect__chips", children: [
737
685
  O.map((D) => /* @__PURE__ */ g("div", { className: "clarity-multiselect__chip", children: [
738
- /* @__PURE__ */ r("span", { className: "clarity-multiselect__chip-label", children: D.label }),
739
- !l && /* @__PURE__ */ r(
686
+ /* @__PURE__ */ a("span", { className: "clarity-multiselect__chip-label", children: D.label }),
687
+ !n && /* @__PURE__ */ a(
740
688
  "button",
741
689
  {
742
690
  type: "button",
743
691
  className: "clarity-multiselect__chip-remove",
744
- onClick: (J) => U(D.value, J),
692
+ onClick: (Y) => U(D.value, Y),
745
693
  "aria-label": `Remover ${D.label}`,
746
694
  children: "×"
747
695
  }
@@ -762,9 +710,9 @@ const Ct = ut(({
762
710
  `clarity-multiselect--${m}`,
763
711
  x && "clarity-multiselect--open",
764
712
  k && "clarity-multiselect--focused",
765
- Z && "clarity-multiselect--label-up",
713
+ J && "clarity-multiselect--label-up",
766
714
  d && "clarity-multiselect--error",
767
- l && "clarity-multiselect--disabled",
715
+ n && "clarity-multiselect--disabled",
768
716
  t.length > 0 && "clarity-multiselect--has-value"
769
717
  ].filter(Boolean).join(" ");
770
718
  return /* @__PURE__ */ g("div", { className: ae, children: [
@@ -774,7 +722,7 @@ const Ct = ut(({
774
722
  ref: w,
775
723
  className: re,
776
724
  "data-testid": b,
777
- ...N,
725
+ ...C,
778
726
  children: [
779
727
  /* @__PURE__ */ g(
780
728
  "div",
@@ -782,13 +730,13 @@ const Ct = ut(({
782
730
  className: "clarity-multiselect__field",
783
731
  onClick: W,
784
732
  children: [
785
- n && /* @__PURE__ */ g("label", { className: "clarity-multiselect__label", children: [
786
- n,
787
- y && /* @__PURE__ */ r("span", { className: "clarity-multiselect__required", children: "*" })
733
+ l && /* @__PURE__ */ g("label", { className: "clarity-multiselect__label", children: [
734
+ l,
735
+ y && /* @__PURE__ */ a("span", { className: "clarity-multiselect__required", children: "*" })
788
736
  ] }),
789
- /* @__PURE__ */ r("div", { className: "clarity-multiselect__content", children: t.length > 0 ? se() : /* @__PURE__ */ r("span", { className: "clarity-multiselect__placeholder", children: a }) }),
737
+ /* @__PURE__ */ a("div", { className: "clarity-multiselect__content", children: t.length > 0 ? se() : /* @__PURE__ */ a("span", { className: "clarity-multiselect__placeholder", children: r }) }),
790
738
  /* @__PURE__ */ g("div", { className: "clarity-multiselect__icons", children: [
791
- t.length > 0 && !l && /* @__PURE__ */ r(
739
+ t.length > 0 && !n && /* @__PURE__ */ a(
792
740
  "button",
793
741
  {
794
742
  type: "button",
@@ -798,7 +746,7 @@ const Ct = ut(({
798
746
  children: "×"
799
747
  }
800
748
  ),
801
- /* @__PURE__ */ r("div", { className: "clarity-multiselect__dropdown-icon", children: /* @__PURE__ */ r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ r(
749
+ /* @__PURE__ */ a("div", { className: "clarity-multiselect__dropdown-icon", children: /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ a(
802
750
  "path",
803
751
  {
804
752
  d: "M4 6L8 10L12 6",
@@ -813,7 +761,7 @@ const Ct = ut(({
813
761
  }
814
762
  ),
815
763
  x && /* @__PURE__ */ g("div", { ref: E, className: "clarity-multiselect__dropdown", children: [
816
- /* @__PURE__ */ r("div", { className: "clarity-multiselect__search", children: /* @__PURE__ */ r(
764
+ /* @__PURE__ */ a("div", { className: "clarity-multiselect__search", children: /* @__PURE__ */ a(
817
765
  "input",
818
766
  {
819
767
  ref: I,
@@ -825,8 +773,8 @@ const Ct = ut(({
825
773
  onKeyDown: A
826
774
  }
827
775
  ) }),
828
- /* @__PURE__ */ r("ul", { className: "clarity-multiselect__options", children: H.length > 0 ? H.map((C) => {
829
- const O = t.includes(C.value), F = C.disabled || l;
776
+ /* @__PURE__ */ a("ul", { className: "clarity-multiselect__options", children: H.length > 0 ? H.map((N) => {
777
+ const O = t.includes(N.value), F = N.disabled || n;
830
778
  return /* @__PURE__ */ g(
831
779
  "li",
832
780
  {
@@ -835,12 +783,12 @@ const Ct = ut(({
835
783
  O && "clarity-multiselect__option--selected",
836
784
  F && "clarity-multiselect__option--disabled"
837
785
  ].filter(Boolean).join(" "),
838
- onClick: (D) => !F && V(C.value, D),
786
+ onClick: (D) => !F && V(N.value, D),
839
787
  children: [
840
- /* @__PURE__ */ r("div", { className: "clarity-multiselect__option-checkbox", children: /* @__PURE__ */ r("div", { className: [
788
+ /* @__PURE__ */ a("div", { className: "clarity-multiselect__option-checkbox", children: /* @__PURE__ */ a("div", { className: [
841
789
  "clarity-multiselect__checkbox",
842
790
  O && "clarity-multiselect__checkbox--checked"
843
- ].filter(Boolean).join(" "), children: O && /* @__PURE__ */ r("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ r(
791
+ ].filter(Boolean).join(" "), children: O && /* @__PURE__ */ a("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ a(
844
792
  "path",
845
793
  {
846
794
  d: "M2 6L5 9L10 3",
@@ -850,249 +798,249 @@ const Ct = ut(({
850
798
  strokeLinejoin: "round"
851
799
  }
852
800
  ) }) }) }),
853
- /* @__PURE__ */ r("span", { className: "clarity-multiselect__option-label", children: C.label })
801
+ /* @__PURE__ */ a("span", { className: "clarity-multiselect__option-label", children: N.label })
854
802
  ]
855
803
  },
856
- C.value
804
+ N.value
857
805
  );
858
- }) : /* @__PURE__ */ r("li", { className: "clarity-multiselect__option clarity-multiselect__option--no-results", children: "Nenhum resultado encontrado" }) })
806
+ }) : /* @__PURE__ */ a("li", { className: "clarity-multiselect__option clarity-multiselect__option--no-results", children: "Nenhum resultado encontrado" }) })
859
807
  ] })
860
808
  ]
861
809
  }
862
810
  ),
863
- (o || d && c) && /* @__PURE__ */ r("div", { className: "clarity-multiselect__helper", children: d && c ? /* @__PURE__ */ r("span", { className: "clarity-multiselect__error-message", children: c }) : o && /* @__PURE__ */ r("span", { className: "clarity-multiselect__helper-text", children: o }) })
811
+ (o || d && c) && /* @__PURE__ */ a("div", { className: "clarity-multiselect__helper", children: d && c ? /* @__PURE__ */ a("span", { className: "clarity-multiselect__error-message", children: c }) : o && /* @__PURE__ */ a("span", { className: "clarity-multiselect__helper-text", children: o }) })
864
812
  ] });
865
813
  });
866
- Ct.displayName = "MultiSelect";
867
- const ke = Q(null), xe = () => {
868
- const e = Y(ke);
814
+ bt.displayName = "MultiSelect";
815
+ const Ce = Z(null), ge = () => {
816
+ const e = K(Ce);
869
817
  if (!e)
870
818
  throw new Error("useModal must be used within a Modal provider");
871
819
  return e;
872
- }, Te = ({
820
+ }, _e = ({
873
821
  children: e,
874
822
  className: t = "",
875
823
  title: s
876
824
  }) => {
877
- const { onClose: a, variant: n, showCloseButton: o } = xe(), d = [
825
+ const { onClose: r, variant: l, showCloseButton: o } = ge(), d = [
878
826
  "clarity-modal-header",
879
827
  t,
880
- n && `clarity-modal-header--${n}`
828
+ l && `clarity-modal-header--${l}`
881
829
  ].filter(Boolean).join(" "), c = [
882
830
  "clarity-modal-close",
883
- n && `clarity-modal-close--${n}`
831
+ l && `clarity-modal-close--${l}`
884
832
  ].filter(Boolean).join(" ");
885
833
  return /* @__PURE__ */ g("div", { className: d, children: [
886
- s && /* @__PURE__ */ r("h2", { className: "clarity-modal-title", children: s }),
834
+ s && /* @__PURE__ */ a("h2", { className: "clarity-modal-title", children: s }),
887
835
  e,
888
- o && /* @__PURE__ */ r("button", { className: c, onClick: (l) => {
889
- l.stopPropagation(), a();
836
+ o && /* @__PURE__ */ a("button", { className: c, onClick: (n) => {
837
+ n.stopPropagation(), r();
890
838
  }, children: "×" })
891
839
  ] });
892
840
  };
893
- Te.displayName = "Modal.Header";
894
- const Be = ({ children: e, className: t = "" }) => /* @__PURE__ */ r("div", { className: `clarity-modal-content ${t}`, children: e });
895
- Be.displayName = "Modal.Content";
896
- const Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ g("div", { className: `clarity-modal-footer ${t}`, children: [
897
- /* @__PURE__ */ r("div", { className: "clarity-modal-scroll-indicator" }),
841
+ _e.displayName = "Modal.Header";
842
+ const we = ({ children: e, className: t = "" }) => /* @__PURE__ */ a("div", { className: `clarity-modal-content ${t}`, children: e });
843
+ we.displayName = "Modal.Content";
844
+ const $e = ({ children: e, className: t = "" }) => /* @__PURE__ */ g("div", { className: `clarity-modal-footer ${t}`, children: [
845
+ /* @__PURE__ */ a("div", { className: "clarity-modal-scroll-indicator" }),
898
846
  e
899
847
  ] });
900
- Re.displayName = "Modal.Footer";
901
- const je = ({ children: e, onClick: t }) => G(e, {
848
+ $e.displayName = "Modal.Footer";
849
+ const ke = ({ children: e, onClick: t }) => G(e, {
902
850
  onClick: (s) => {
903
- var a, n;
904
- t == null || t(), (n = (a = e.props).onClick) == null || n.call(a, s);
851
+ var r, l;
852
+ t == null || t(), (l = (r = e.props).onClick) == null || l.call(r, s);
905
853
  }
906
854
  });
907
- je.displayName = "Modal.Trigger";
908
- const Le = ({ children: e }) => {
909
- const { onClose: t } = xe();
855
+ ke.displayName = "Modal.Trigger";
856
+ const xe = ({ children: e }) => {
857
+ const { onClose: t } = ge();
910
858
  return G(e, {
911
859
  onClick: (s) => {
912
- var a, n;
913
- t(), (n = (a = e.props).onClick) == null || n.call(a, s);
860
+ var r, l;
861
+ t(), (l = (r = e.props).onClick) == null || l.call(r, s);
914
862
  }
915
863
  });
916
864
  };
917
- Le.displayName = "Modal.Close";
865
+ xe.displayName = "Modal.Close";
918
866
  const ee = ({
919
867
  isOpen: e,
920
868
  onClose: t,
921
869
  onOpen: s,
922
- children: a,
923
- className: n = "",
870
+ children: r,
871
+ className: l = "",
924
872
  variant: o,
925
873
  size: d = "medium",
926
874
  showCloseButton: c = !0,
927
- closeOnOverlayClick: l = !0
875
+ closeOnOverlayClick: n = !0
928
876
  }) => {
929
- const [i, m] = T(!1), p = e !== void 0 ? e : i, f = t || (() => {
877
+ const [i, m] = B(!1), p = e !== void 0 ? e : i, f = t || (() => {
930
878
  m(!1);
931
879
  });
932
880
  P(() => {
933
881
  p && (s == null || s());
934
882
  }, [p, s]), P(() => {
935
- const N = (B) => {
936
- B.key === "Escape" && f();
883
+ const C = (T) => {
884
+ T.key === "Escape" && f();
937
885
  };
938
- return p ? (document.addEventListener("keydown", N), document.body.style.overflow = "hidden") : document.body.style.overflow = "unset", () => {
939
- document.removeEventListener("keydown", N), document.body.style.overflow = "unset";
886
+ return p ? (document.addEventListener("keydown", C), document.body.style.overflow = "hidden") : document.body.style.overflow = "unset", () => {
887
+ document.removeEventListener("keydown", C), document.body.style.overflow = "unset";
940
888
  };
941
889
  }, [p, f]);
942
- const u = (N) => {
943
- l && N.target === N.currentTarget && f();
944
- }, h = j.Children.toArray(a).find(
945
- (N) => K(N) && N.type.displayName === "Modal.Trigger"
946
- ), y = j.Children.toArray(a).filter(
947
- (N) => K(N) && N.type.displayName !== "Modal.Trigger"
948
- ), b = ["clarity-modal", n, `clarity-modal--${d}`].filter(Boolean).join(" ");
949
- return /* @__PURE__ */ g(ke.Provider, { value: { onClose: f, variant: o, showCloseButton: c }, children: [
890
+ const u = (C) => {
891
+ n && C.target === C.currentTarget && f();
892
+ }, h = L.Children.toArray(r).find(
893
+ (C) => Q(C) && C.type.displayName === "Modal.Trigger"
894
+ ), y = L.Children.toArray(r).filter(
895
+ (C) => Q(C) && C.type.displayName !== "Modal.Trigger"
896
+ ), b = ["clarity-modal", l, `clarity-modal--${d}`].filter(Boolean).join(" ");
897
+ return /* @__PURE__ */ g(Ce.Provider, { value: { onClose: f, variant: o, showCloseButton: c }, children: [
950
898
  h && G(h, { onClick: () => m(!0) }),
951
- p && /* @__PURE__ */ r("div", { className: "clarity-modal-overlay", onClick: u, children: /* @__PURE__ */ r("div", { className: b, children: y }) })
899
+ p && /* @__PURE__ */ a("div", { className: "clarity-modal-overlay", onClick: u, children: /* @__PURE__ */ a("div", { className: b, children: y }) })
952
900
  ] });
953
901
  };
954
- ee.Header = Te;
955
- ee.Content = Be;
956
- ee.Footer = Re;
957
- ee.Trigger = je;
958
- ee.Close = Le;
902
+ ee.Header = _e;
903
+ ee.Content = we;
904
+ ee.Footer = $e;
905
+ ee.Trigger = ke;
906
+ ee.Close = xe;
959
907
  ee.displayName = "Modal";
960
- const Se = Q(void 0), Ft = () => {
961
- const e = Y(Se);
908
+ const Be = Z(void 0), Mt = () => {
909
+ const e = K(Be);
962
910
  if (!e)
963
911
  throw new Error("useToast must be used within a ToastProvider");
964
912
  return e;
965
- }, Nt = ({ id: e, message: t, variant: s, duration: a, onClose: n, invertColors: o }) => {
966
- const [d, c] = T("entering");
913
+ }, Nt = ({ id: e, message: t, variant: s, duration: r, onClose: l, invertColors: o }) => {
914
+ const [d, c] = B("entering");
967
915
  P(() => {
968
916
  const i = setTimeout(() => {
969
917
  c("visible");
970
918
  }, 10), m = setTimeout(() => {
971
919
  c("exiting");
972
- }, a * 1e3 - 300), v = setTimeout(() => {
973
- n(e);
974
- }, a * 1e3);
920
+ }, r * 1e3 - 300), v = setTimeout(() => {
921
+ l(e);
922
+ }, r * 1e3);
975
923
  return () => {
976
924
  clearTimeout(i), clearTimeout(m), clearTimeout(v);
977
925
  };
978
- }, [e, a, n]);
979
- const l = [
926
+ }, [e, r, l]);
927
+ const n = [
980
928
  "cl-toast",
981
929
  s,
982
930
  o ? "colored-background" : "",
983
931
  `cl-toast-${d}`
984
932
  ].filter(Boolean).join(" ");
985
- return /* @__PURE__ */ g("div", { className: l, children: [
986
- /* @__PURE__ */ r("div", { className: "cl-toast-message", children: t }),
987
- /* @__PURE__ */ r("button", { onClick: () => c("exiting"), className: "cl-toast-close-button", children: "×" }),
988
- /* @__PURE__ */ r(
933
+ return /* @__PURE__ */ g("div", { className: n, children: [
934
+ /* @__PURE__ */ a("div", { className: "cl-toast-message", children: t }),
935
+ /* @__PURE__ */ a("button", { onClick: () => c("exiting"), className: "cl-toast-close-button", children: "×" }),
936
+ /* @__PURE__ */ a(
989
937
  "div",
990
938
  {
991
939
  className: "cl-toast-progress-bar",
992
- style: { animationDuration: `${a}s` }
940
+ style: { animationDuration: `${r}s` }
993
941
  }
994
942
  )
995
943
  ] });
996
- }, zt = ({ children: e }) => {
997
- const [t, s] = T([]), a = oe(() => {
944
+ }, Ft = ({ children: e }) => {
945
+ const [t, s] = B([]), r = oe(() => {
998
946
  if (typeof document < "u") {
999
- const l = document.createElement("div");
1000
- return l.id = "toast-portal-root", l;
947
+ const n = document.createElement("div");
948
+ return n.id = "toast-portal-root", n;
1001
949
  }
1002
950
  return null;
1003
951
  }, []);
1004
952
  P(() => {
1005
- if (a)
1006
- return document.body.appendChild(a), () => {
1007
- document.body.removeChild(a);
953
+ if (r)
954
+ return document.body.appendChild(r), () => {
955
+ document.body.removeChild(r);
1008
956
  };
1009
- }, [a]);
1010
- const n = de((l) => {
957
+ }, [r]);
958
+ const l = de((n) => {
1011
959
  const m = {
1012
960
  id: (/* @__PURE__ */ new Date()).toISOString() + Math.random(),
1013
961
  // duration: 5,
1014
962
  // position: 'right-top',
1015
- ...l
963
+ ...n
1016
964
  };
1017
965
  s((v) => {
1018
966
  const p = [m, ...v];
1019
967
  return p.length > 4 ? p.slice(0, 4) : p;
1020
968
  });
1021
- }, []), o = de((l) => {
1022
- s((i) => i.filter((m) => m.id !== l));
1023
- }, []), d = oe(() => t.reduce((l, i) => (l[i.position] || (l[i.position] = []), l[i.position].push(i), l), {}), [t]), c = oe(() => ({ show: n }), [n]);
1024
- return /* @__PURE__ */ g(Se.Provider, { value: c, children: [
969
+ }, []), o = de((n) => {
970
+ s((i) => i.filter((m) => m.id !== n));
971
+ }, []), d = oe(() => t.reduce((n, i) => (n[i.position] || (n[i.position] = []), n[i.position].push(i), n), {}), [t]), c = oe(() => ({ show: l }), [l]);
972
+ return /* @__PURE__ */ g(Be.Provider, { value: c, children: [
1025
973
  e,
1026
- a && ht.createPortal(
1027
- Object.entries(d).map(([l, i]) => /* @__PURE__ */ r("div", { className: `cl-toast-container ${l}`, children: i.map((m) => /* @__PURE__ */ r(Nt, { ...m, onClose: o }, m.id)) }, l)),
1028
- a
974
+ r && pt.createPortal(
975
+ Object.entries(d).map(([n, i]) => /* @__PURE__ */ a("div", { className: `cl-toast-container ${n}`, children: i.map((m) => /* @__PURE__ */ a(Nt, { ...m, onClose: o }, m.id)) }, n)),
976
+ r
1029
977
  )
1030
978
  ] });
1031
- }, Ee = Q(null), Oe = () => {
1032
- const e = Y(Ee);
979
+ }, Te = Z(null), je = () => {
980
+ const e = K(Te);
1033
981
  if (!e)
1034
982
  throw new Error("useOffcanvas must be used within an Offcanvas provider");
1035
983
  return e;
1036
- }, Ie = ({
984
+ }, Le = ({
1037
985
  children: e,
1038
986
  className: t = ""
1039
987
  }) => {
1040
- const { onClose: s, variant: a, showCloseButton: n, title: o } = Oe(), d = [
988
+ const { onClose: s, variant: r, showCloseButton: l, title: o } = je(), d = [
1041
989
  "clarity-offcanvas-header",
1042
990
  t
1043
991
  ].filter(Boolean).join(" "), c = [
1044
992
  "clarity-offcanvas-close",
1045
- a && `clarity-offcanvas-close--${a}`
1046
- ].filter(Boolean).join(" "), l = [
993
+ r && `clarity-offcanvas-close--${r}`
994
+ ].filter(Boolean).join(" "), n = [
1047
995
  "clarity-offcanvas-title",
1048
- a && `clarity-offcanvas-title--${a}`
996
+ r && `clarity-offcanvas-title--${r}`
1049
997
  ].filter(Boolean).join(" ");
1050
998
  return /* @__PURE__ */ g("div", { className: d, children: [
1051
- o && /* @__PURE__ */ r("h2", { className: l, children: o }),
999
+ o && /* @__PURE__ */ a("h2", { className: n, children: o }),
1052
1000
  e,
1053
- n && /* @__PURE__ */ r("button", { className: c, onClick: (i) => {
1001
+ l && /* @__PURE__ */ a("button", { className: c, onClick: (i) => {
1054
1002
  i.stopPropagation(), s();
1055
1003
  }, children: "×" })
1056
1004
  ] });
1057
1005
  };
1058
- Ie.displayName = "Offcanvas.Header";
1059
- const De = ({ children: e, className: t = "" }) => /* @__PURE__ */ r("div", { className: `clarity-offcanvas-content ${t}`, children: e });
1060
- De.displayName = "Offcanvas.Content";
1061
- const Pe = ({ children: e, onClick: t, variant: s }) => G(e, {
1062
- onClick: (a) => {
1063
- var n, o;
1064
- t == null || t(), (o = (n = e.props).onClick) == null || o.call(n, a);
1006
+ Le.displayName = "Offcanvas.Header";
1007
+ const Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ a("div", { className: `clarity-offcanvas-content ${t}`, children: e });
1008
+ Re.displayName = "Offcanvas.Content";
1009
+ const Se = ({ children: e, onClick: t, variant: s }) => G(e, {
1010
+ onClick: (r) => {
1011
+ var l, o;
1012
+ t == null || t(), (o = (l = e.props).onClick) == null || o.call(l, r);
1065
1013
  },
1066
1014
  variant: s
1067
1015
  });
1068
- Pe.displayName = "Offcanvas.Trigger";
1069
- const ye = ({ children: e, className: t = "" }) => /* @__PURE__ */ r("div", { className: `clarity-offcanvas-footer ${t}`, children: e });
1070
- ye.displayName = "Offcanvas.Footer";
1071
- const We = ({ children: e }) => {
1072
- const { onClose: t } = Oe();
1016
+ Se.displayName = "Offcanvas.Trigger";
1017
+ const fe = ({ children: e, className: t = "" }) => /* @__PURE__ */ a("div", { className: `clarity-offcanvas-footer ${t}`, children: e });
1018
+ fe.displayName = "Offcanvas.Footer";
1019
+ const Ee = ({ children: e }) => {
1020
+ const { onClose: t } = je();
1073
1021
  return G(e, {
1074
1022
  onClick: (s) => {
1075
- var a, n;
1076
- t(), (n = (a = e.props).onClick) == null || n.call(a, s);
1023
+ var r, l;
1024
+ t(), (l = (r = e.props).onClick) == null || l.call(r, s);
1077
1025
  }
1078
1026
  });
1079
1027
  };
1080
- We.displayName = "Offcanvas.Close";
1081
- const ne = ({
1028
+ Ee.displayName = "Offcanvas.Close";
1029
+ const le = ({
1082
1030
  isOpen: e,
1083
1031
  onClose: t,
1084
1032
  onOpen: s,
1085
- children: a,
1086
- className: n = "",
1033
+ children: r,
1034
+ className: l = "",
1087
1035
  variant: o,
1088
1036
  placement: d = "right",
1089
1037
  closeOnOverlayClick: c = !0,
1090
- showCloseButton: l = !0,
1038
+ showCloseButton: n = !0,
1091
1039
  title: i
1092
1040
  }) => {
1093
- const [m, v] = T(!1), [p, f] = T(!1), [u, h] = T(!1), y = e !== void 0, b = y ? e : m, N = de(() => {
1041
+ const [m, v] = B(!1), [p, f] = B(!1), [u, h] = B(!1), y = e !== void 0, b = y ? e : m, C = de(() => {
1094
1042
  t ? t() : v(!1);
1095
- }, [t]), B = de(() => {
1043
+ }, [t]), T = de(() => {
1096
1044
  y || v(!0), s == null || s();
1097
1045
  }, [y, s]);
1098
1046
  P(() => {
@@ -1111,36 +1059,36 @@ const ne = ({
1111
1059
  }
1112
1060
  }, [b]), P(() => {
1113
1061
  const w = (H) => {
1114
- H.key === "Escape" && N();
1062
+ H.key === "Escape" && C();
1115
1063
  };
1116
1064
  return b ? (document.addEventListener("keydown", w), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", w), document.body.style.overflow = "unset"), () => {
1117
1065
  document.removeEventListener("keydown", w), document.body.style.overflow = "unset";
1118
1066
  };
1119
- }, [b, N]);
1067
+ }, [b, C]);
1120
1068
  const x = (w) => {
1121
- c && w.target === w.currentTarget && N();
1122
- }, _ = j.Children.toArray(a);
1123
- let $, L, k, R, S;
1069
+ c && w.target === w.currentTarget && C();
1070
+ }, _ = L.Children.toArray(r);
1071
+ let $, R, k, j, S;
1124
1072
  _.forEach((w) => {
1125
- if (K(w))
1073
+ if (Q(w))
1126
1074
  if (w.type.displayName === "Offcanvas.Trigger")
1127
1075
  $ = w;
1128
1076
  else if (w.type.displayName === "Offcanvas.Header")
1129
- L = w;
1077
+ R = w;
1130
1078
  else if (w.type.displayName === "Offcanvas.Content") {
1131
1079
  k = w;
1132
- const W = j.Children.toArray(k.props.children).filter((V) => K(V) && V.type.displayName === "Offcanvas.Close" ? (S = V, !1) : !0);
1080
+ const W = L.Children.toArray(k.props.children).filter((V) => Q(V) && V.type.displayName === "Offcanvas.Close" ? (S = V, !1) : !0);
1133
1081
  k = G(k, { children: W });
1134
- } else w.type.displayName === "Offcanvas.Footer" && (R = w);
1135
- }), S && (R ? R = G(R, {
1136
- children: /* @__PURE__ */ g(mt, { children: [
1137
- R.props.children,
1082
+ } else w.type.displayName === "Offcanvas.Footer" && (j = w);
1083
+ }), S && (j ? j = G(j, {
1084
+ children: /* @__PURE__ */ g(ct, { children: [
1085
+ j.props.children,
1138
1086
  S
1139
1087
  ] })
1140
- }) : R = /* @__PURE__ */ r(ye, { children: S }));
1088
+ }) : j = /* @__PURE__ */ a(fe, { children: S }));
1141
1089
  const I = [
1142
1090
  "clarity-offcanvas",
1143
- n,
1091
+ l,
1144
1092
  `clarity-offcanvas--${d}`,
1145
1093
  o && `clarity-offcanvas--${o}`,
1146
1094
  p ? "clarity-offcanvas--open" : "clarity-offcanvas--closed"
@@ -1148,34 +1096,34 @@ const ne = ({
1148
1096
  "clarity-offcanvas-overlay",
1149
1097
  p ? "clarity-offcanvas-overlay--visible" : ""
1150
1098
  ].filter(Boolean).join(" ");
1151
- return /* @__PURE__ */ g(Ee.Provider, { value: { onClose: N, variant: o, showCloseButton: l, placement: d, title: i }, children: [
1152
- $ && G($, { onClick: B, variant: o }),
1099
+ return /* @__PURE__ */ g(Te.Provider, { value: { onClose: C, variant: o, showCloseButton: n, placement: d, title: i }, children: [
1100
+ $ && G($, { onClick: T, variant: o }),
1153
1101
  u && // Only render if shouldRender is true
1154
- /* @__PURE__ */ r("div", { className: E, onClick: x, children: /* @__PURE__ */ g("div", { className: I, children: [
1155
- L,
1102
+ /* @__PURE__ */ a("div", { className: E, onClick: x, children: /* @__PURE__ */ g("div", { className: I, children: [
1103
+ R,
1156
1104
  k,
1157
- R && /* @__PURE__ */ r("div", { className: "clarity-offcanvas-scroll-indicator" }),
1105
+ j && /* @__PURE__ */ a("div", { className: "clarity-offcanvas-scroll-indicator" }),
1158
1106
  " ",
1159
- R
1107
+ j
1160
1108
  ] }) })
1161
1109
  ] });
1162
1110
  };
1163
- ne.Header = Ie;
1164
- ne.Content = De;
1165
- ne.Footer = ye;
1166
- ne.Trigger = Pe;
1167
- ne.Close = We;
1168
- ne.displayName = "Offcanvas";
1169
- const gt = j.forwardRef(({
1111
+ le.Header = Le;
1112
+ le.Content = Re;
1113
+ le.Footer = fe;
1114
+ le.Trigger = Se;
1115
+ le.Close = Ee;
1116
+ le.displayName = "Offcanvas";
1117
+ const Ct = L.forwardRef(({
1170
1118
  type: e,
1171
1119
  variant: t = "primary",
1172
1120
  size: s = "medium",
1173
- label: a,
1174
- helperText: n,
1121
+ label: r,
1122
+ helperText: l,
1175
1123
  error: o = !1,
1176
1124
  errorMessage: d,
1177
1125
  labelPosition: c = "right",
1178
- className: l = "",
1126
+ className: n = "",
1179
1127
  disabled: i = !1,
1180
1128
  checked: m,
1181
1129
  id: v,
@@ -1193,7 +1141,7 @@ const gt = j.forwardRef(({
1193
1141
  t && `clarity-check-input--${t}`,
1194
1142
  o && "clarity-check-input--error",
1195
1143
  i && "clarity-check-input--disabled",
1196
- l
1144
+ n
1197
1145
  ].filter(Boolean).join(" "), b = [
1198
1146
  "clarity-check-input__label",
1199
1147
  `clarity-check-input__label--${s}`,
@@ -1201,7 +1149,7 @@ const gt = j.forwardRef(({
1201
1149
  ].filter(Boolean).join(" ");
1202
1150
  return /* @__PURE__ */ g("div", { className: "clarity-check-input-container", children: [
1203
1151
  /* @__PURE__ */ g("label", { className: h, htmlFor: u, children: [
1204
- /* @__PURE__ */ r(
1152
+ /* @__PURE__ */ a(
1205
1153
  "input",
1206
1154
  {
1207
1155
  ref: f,
@@ -1214,14 +1162,14 @@ const gt = j.forwardRef(({
1214
1162
  }
1215
1163
  ),
1216
1164
  /* @__PURE__ */ g("div", { className: "clarity-check-input__custom", children: [
1217
- e === "checkbox" && /* @__PURE__ */ r(
1165
+ e === "checkbox" && /* @__PURE__ */ a(
1218
1166
  "svg",
1219
1167
  {
1220
1168
  className: "clarity-check-input__icon",
1221
1169
  viewBox: "0 0 16 16",
1222
1170
  fill: "none",
1223
1171
  xmlns: "http://www.w3.org/2000/svg",
1224
- children: /* @__PURE__ */ r(
1172
+ children: /* @__PURE__ */ a(
1225
1173
  "path",
1226
1174
  {
1227
1175
  d: "M13.5 4.5L6 12L2.5 8.5",
@@ -1233,24 +1181,24 @@ const gt = j.forwardRef(({
1233
1181
  )
1234
1182
  }
1235
1183
  ),
1236
- e === "radio" && /* @__PURE__ */ r("div", { className: "clarity-check-input__radio-dot" })
1184
+ e === "radio" && /* @__PURE__ */ a("div", { className: "clarity-check-input__radio-dot" })
1237
1185
  ] }),
1238
- a && /* @__PURE__ */ r("span", { className: b, children: a })
1186
+ r && /* @__PURE__ */ a("span", { className: b, children: r })
1239
1187
  ] }),
1240
- (n || o && d) && /* @__PURE__ */ r("div", { className: "clarity-check-input__helper-text", children: o && d ? d : n })
1188
+ (l || o && d) && /* @__PURE__ */ a("div", { className: "clarity-check-input__helper-text", children: o && d ? d : l })
1241
1189
  ] });
1242
1190
  });
1243
- gt.displayName = "CheckInput";
1244
- const _t = j.forwardRef(({
1191
+ Ct.displayName = "CheckInput";
1192
+ const gt = L.forwardRef(({
1245
1193
  variant: e = "primary",
1246
1194
  size: t = "medium",
1247
1195
  label: s,
1248
- helperText: a,
1249
- error: n = !1,
1196
+ helperText: r,
1197
+ error: l = !1,
1250
1198
  errorMessage: o,
1251
1199
  labelPosition: d = "right",
1252
1200
  className: c = "",
1253
- disabled: l = !1,
1201
+ disabled: n = !1,
1254
1202
  checked: i,
1255
1203
  id: m,
1256
1204
  ...v
@@ -1258,90 +1206,90 @@ const _t = j.forwardRef(({
1258
1206
  const f = m || `input-switch-${Math.random().toString(36).substr(2, 9)}`, u = [
1259
1207
  "clarity-input-switch-wrapper",
1260
1208
  `clarity-input-switch-wrapper--${d}`,
1261
- l && "clarity-input-switch-wrapper--disabled",
1262
- n && "clarity-input-switch-wrapper--error"
1209
+ n && "clarity-input-switch-wrapper--disabled",
1210
+ l && "clarity-input-switch-wrapper--error"
1263
1211
  ].filter(Boolean).join(" "), h = [
1264
1212
  "clarity-input-switch",
1265
1213
  `clarity-input-switch--${t}`,
1266
1214
  e && `clarity-input-switch--${e}`,
1267
- n && "clarity-input-switch--error",
1268
- l && "clarity-input-switch--disabled",
1215
+ l && "clarity-input-switch--error",
1216
+ n && "clarity-input-switch--disabled",
1269
1217
  c
1270
1218
  ].filter(Boolean).join(" "), y = [
1271
1219
  "clarity-input-switch__label",
1272
1220
  `clarity-input-switch__label--${t}`,
1273
- l && "clarity-input-switch__label--disabled"
1221
+ n && "clarity-input-switch__label--disabled"
1274
1222
  ].filter(Boolean).join(" ");
1275
1223
  return /* @__PURE__ */ g("div", { className: "clarity-input-switch-container", children: [
1276
1224
  /* @__PURE__ */ g("label", { className: u, htmlFor: f, children: [
1277
- /* @__PURE__ */ r(
1225
+ /* @__PURE__ */ a(
1278
1226
  "input",
1279
1227
  {
1280
1228
  ref: p,
1281
1229
  id: f,
1282
1230
  type: "checkbox",
1283
1231
  className: h,
1284
- disabled: l,
1232
+ disabled: n,
1285
1233
  checked: i,
1286
1234
  ...v
1287
1235
  }
1288
1236
  ),
1289
- /* @__PURE__ */ r("div", { className: "clarity-input-switch__track", children: /* @__PURE__ */ r("div", { className: "clarity-input-switch__thumb" }) }),
1290
- s && /* @__PURE__ */ r("span", { className: y, children: s })
1237
+ /* @__PURE__ */ a("div", { className: "clarity-input-switch__track", children: /* @__PURE__ */ a("div", { className: "clarity-input-switch__thumb" }) }),
1238
+ s && /* @__PURE__ */ a("span", { className: y, children: s })
1291
1239
  ] }),
1292
- (a || n && o) && /* @__PURE__ */ r("div", { className: "clarity-input-switch__helper-text", children: n && o ? o : a })
1240
+ (r || l && o) && /* @__PURE__ */ a("div", { className: "clarity-input-switch__helper-text", children: l && o ? o : r })
1293
1241
  ] });
1294
1242
  });
1295
- _t.displayName = "InputSwitch";
1296
- const Ae = Q(null), ve = () => {
1297
- const e = Y(Ae);
1243
+ gt.displayName = "InputSwitch";
1244
+ const Oe = Z(null), he = () => {
1245
+ const e = K(Oe);
1298
1246
  if (!e)
1299
1247
  throw new Error("useConfirmationDialog must be used within a ConfirmationDialog provider");
1300
1248
  return e;
1301
- }, He = ({ children: e, className: t = "" }) => {
1302
- const { variant: s } = ve(), a = `clarity-confirmation-dialog-header ${t} clarity-confirmation-dialog-header--${s}`;
1303
- return /* @__PURE__ */ r("div", { className: a, children: e });
1249
+ }, Ie = ({ children: e, className: t = "" }) => {
1250
+ const { variant: s } = he(), r = `clarity-confirmation-dialog-header ${t} clarity-confirmation-dialog-header--${s}`;
1251
+ return /* @__PURE__ */ a("div", { className: r, children: e });
1304
1252
  };
1305
- He.displayName = "ConfirmationDialog.Header";
1306
- const Ve = ({ children: e, className: t = "" }) => /* @__PURE__ */ r("div", { className: `clarity-confirmation-dialog-content ${t}`, children: e });
1307
- Ve.displayName = "ConfirmationDialog.Content";
1308
- const Me = ({ children: e, className: t = "" }) => /* @__PURE__ */ r("div", { className: `clarity-confirmation-dialog-footer ${t}`, children: e });
1309
- Me.displayName = "ConfirmationDialog.Footer";
1310
- const Fe = ({ children: e }) => G(e, {
1253
+ Ie.displayName = "ConfirmationDialog.Header";
1254
+ const De = ({ children: e, className: t = "" }) => /* @__PURE__ */ a("div", { className: `clarity-confirmation-dialog-content ${t}`, children: e });
1255
+ De.displayName = "ConfirmationDialog.Content";
1256
+ const Pe = ({ children: e, className: t = "" }) => /* @__PURE__ */ a("div", { className: `clarity-confirmation-dialog-footer ${t}`, children: e });
1257
+ Pe.displayName = "ConfirmationDialog.Footer";
1258
+ const We = ({ children: e }) => G(e, {
1311
1259
  onClick: (t) => {
1312
- var s, a;
1313
- (a = (s = e.props).onClick) == null || a.call(s, t);
1260
+ var s, r;
1261
+ (r = (s = e.props).onClick) == null || r.call(s, t);
1314
1262
  }
1315
1263
  });
1316
- Fe.displayName = "ConfirmationDialog.Trigger";
1317
- const ze = ({ children: e }) => {
1318
- const { onClose: t } = ve();
1264
+ We.displayName = "ConfirmationDialog.Trigger";
1265
+ const Ae = ({ children: e }) => {
1266
+ const { onClose: t } = he();
1319
1267
  return G(e, {
1320
1268
  onClick: (s) => {
1321
- var a, n;
1322
- t(), (n = (a = e.props).onClick) == null || n.call(a, s);
1269
+ var r, l;
1270
+ t(), (l = (r = e.props).onClick) == null || l.call(r, s);
1323
1271
  }
1324
1272
  });
1325
1273
  };
1326
- ze.displayName = "ConfirmationDialog.Close";
1327
- const Ge = ({ children: e }) => {
1328
- const { onConfirm: t } = ve();
1274
+ Ae.displayName = "ConfirmationDialog.Close";
1275
+ const He = ({ children: e }) => {
1276
+ const { onConfirm: t } = he();
1329
1277
  return G(e, {
1330
1278
  onClick: (s) => {
1331
- var a, n;
1332
- t(), (n = (a = e.props).onClick) == null || n.call(a, s);
1279
+ var r, l;
1280
+ t(), (l = (r = e.props).onClick) == null || l.call(r, s);
1333
1281
  }
1334
1282
  });
1335
1283
  };
1336
- Ge.displayName = "ConfirmationDialog.Confirm";
1284
+ He.displayName = "ConfirmationDialog.Confirm";
1337
1285
  const te = ({
1338
1286
  isOpen: e,
1339
1287
  onClose: t,
1340
1288
  onConfirm: s,
1341
- variant: a = "clarity-primary",
1342
- children: n
1289
+ variant: r = "clarity-primary",
1290
+ children: l
1343
1291
  }) => {
1344
- const [o, d] = T(!1), c = e !== void 0, l = c ? e : o, i = () => {
1292
+ const [o, d] = B(!1), c = e !== void 0, n = c ? e : o, i = () => {
1345
1293
  c || d(!0);
1346
1294
  }, m = () => {
1347
1295
  t ? t() : d(!1);
@@ -1352,37 +1300,37 @@ const te = ({
1352
1300
  const h = (y) => {
1353
1301
  y.key === "Escape" && m();
1354
1302
  };
1355
- return l ? (document.addEventListener("keydown", h), document.body.style.overflow = "hidden") : document.body.style.overflow = "unset", () => {
1303
+ return n ? (document.addEventListener("keydown", h), document.body.style.overflow = "hidden") : document.body.style.overflow = "unset", () => {
1356
1304
  document.removeEventListener("keydown", h), document.body.style.overflow = "unset";
1357
1305
  };
1358
- }, [l, m]);
1359
- const p = j.Children.toArray(n).find(
1360
- (h) => K(h) && h.type.displayName === "ConfirmationDialog.Trigger"
1361
- ), f = j.Children.toArray(n).filter(
1362
- (h) => K(h) && h.type.displayName !== "ConfirmationDialog.Trigger"
1363
- ), u = `clarity-confirmation-dialog clarity-confirmation-dialog--${a}`;
1364
- return /* @__PURE__ */ g(Ae.Provider, { value: { variant: a, onClose: m, onConfirm: v, onOpen: i }, children: [
1306
+ }, [n, m]);
1307
+ const p = L.Children.toArray(l).find(
1308
+ (h) => Q(h) && h.type.displayName === "ConfirmationDialog.Trigger"
1309
+ ), f = L.Children.toArray(l).filter(
1310
+ (h) => Q(h) && h.type.displayName !== "ConfirmationDialog.Trigger"
1311
+ ), u = `clarity-confirmation-dialog clarity-confirmation-dialog--${r}`;
1312
+ return /* @__PURE__ */ g(Oe.Provider, { value: { variant: r, onClose: m, onConfirm: v, onOpen: i }, children: [
1365
1313
  p,
1366
- l && /* @__PURE__ */ r("div", { className: "clarity-modal-overlay", children: /* @__PURE__ */ r("div", { className: u, children: f }) })
1314
+ n && /* @__PURE__ */ a("div", { className: "clarity-modal-overlay", children: /* @__PURE__ */ a("div", { className: u, children: f }) })
1367
1315
  ] });
1368
1316
  };
1369
- te.Header = He;
1370
- te.Content = Ve;
1371
- te.Footer = Me;
1372
- te.Trigger = Fe;
1373
- te.Close = ze;
1374
- te.Confirm = Ge;
1317
+ te.Header = Ie;
1318
+ te.Content = De;
1319
+ te.Footer = Pe;
1320
+ te.Trigger = We;
1321
+ te.Close = Ae;
1322
+ te.Confirm = He;
1375
1323
  te.displayName = "ConfirmationDialog";
1376
- const Gt = ({
1324
+ const zt = ({
1377
1325
  variant: e = "primary",
1378
1326
  size: t = "medium",
1379
1327
  disabled: s = !1,
1380
- loading: a = !1,
1381
- children: n,
1328
+ loading: r = !1,
1329
+ children: l,
1382
1330
  onClick: o,
1383
1331
  type: d = "button",
1384
1332
  className: c = "",
1385
- "aria-label": l,
1333
+ "aria-label": n,
1386
1334
  title: i,
1387
1335
  customColor: m,
1388
1336
  customColorHover: v,
@@ -1392,7 +1340,7 @@ const Gt = ({
1392
1340
  f,
1393
1341
  !m && `${f}--${e}`,
1394
1342
  `${f}--${t}`,
1395
- a && `${f}--loading`,
1343
+ r && `${f}--loading`,
1396
1344
  s && `${f}--disabled`,
1397
1345
  c
1398
1346
  ].filter(Boolean).join(" "), h = {};
@@ -1400,29 +1348,29 @@ const Gt = ({
1400
1348
  "button",
1401
1349
  {
1402
1350
  className: u,
1403
- disabled: s || a,
1351
+ disabled: s || r,
1404
1352
  onClick: o,
1405
1353
  type: d,
1406
- "aria-label": l,
1354
+ "aria-label": n,
1407
1355
  title: i,
1408
1356
  style: h,
1409
1357
  ...p,
1410
1358
  children: [
1411
- a && /* @__PURE__ */ r("div", { className: `${f}__spinner` }),
1412
- !a && n
1359
+ r && /* @__PURE__ */ a("div", { className: `${f}__spinner` }),
1360
+ !r && l
1413
1361
  ]
1414
1362
  }
1415
1363
  );
1416
- }, Ut = ({
1364
+ }, Gt = ({
1417
1365
  variant: e = "primary",
1418
1366
  product: t,
1419
1367
  tone: s,
1420
- hoverTone: a,
1421
- size: n = "medium",
1368
+ hoverTone: r,
1369
+ size: l = "medium",
1422
1370
  disabled: o = !1,
1423
1371
  children: d,
1424
1372
  onClick: c,
1425
- href: l,
1373
+ href: n,
1426
1374
  target: i,
1427
1375
  rel: m,
1428
1376
  className: v = "",
@@ -1431,72 +1379,72 @@ const Gt = ({
1431
1379
  const f = "clarity-button-link", u = t && s, h = u ? `${f}--custom` : `${f}--${e}`, y = [
1432
1380
  f,
1433
1381
  h,
1434
- `${f}--${n}`,
1382
+ `${f}--${l}`,
1435
1383
  o && `${f}--disabled`,
1436
1384
  v
1437
- ].filter(Boolean).join(" "), b = (B) => {
1438
- const x = parseInt(B);
1385
+ ].filter(Boolean).join(" "), b = (T) => {
1386
+ const x = parseInt(T);
1439
1387
  return x >= 800 ? "900" : x >= 700 ? "800" : x >= 600 ? "700" : x >= 500 ? "600" : x >= 400 ? "500" : x >= 300 ? "400" : x >= 200 ? "300" : "200";
1440
- }, N = u ? {
1388
+ }, C = u ? {
1441
1389
  "--custom-color": `var(--clarity-${t}-${s})`,
1442
- "--custom-hover-color": `var(--clarity-${t}-${a || b(s)})`
1390
+ "--custom-hover-color": `var(--clarity-${t}-${r || b(s)})`
1443
1391
  } : {};
1444
- return l ? /* @__PURE__ */ r(
1392
+ return n ? /* @__PURE__ */ a(
1445
1393
  "a",
1446
1394
  {
1447
- href: l,
1395
+ href: n,
1448
1396
  target: i,
1449
1397
  rel: m || (i === "_blank" ? "noopener noreferrer" : void 0),
1450
1398
  className: y,
1451
- style: N,
1399
+ style: C,
1452
1400
  onClick: o ? void 0 : c,
1453
1401
  ...p,
1454
1402
  children: d
1455
1403
  }
1456
- ) : /* @__PURE__ */ r(
1404
+ ) : /* @__PURE__ */ a(
1457
1405
  "button",
1458
1406
  {
1459
1407
  className: y,
1460
- style: N,
1408
+ style: C,
1461
1409
  disabled: o,
1462
1410
  onClick: c,
1463
1411
  ...p,
1464
1412
  children: d
1465
1413
  }
1466
1414
  );
1467
- }, Ue = Q(void 0), qe = () => {
1468
- const e = Y(Ue);
1415
+ }, Ve = Z(void 0), Me = () => {
1416
+ const e = K(Ve);
1469
1417
  if (!e)
1470
1418
  throw new Error("Accordion components must be used within an Accordion");
1471
1419
  return e;
1472
- }, wt = ({
1420
+ }, _t = ({
1473
1421
  variant: e = "primary",
1474
1422
  product: t,
1475
1423
  tone: s,
1476
- hoverTone: a,
1477
- defaultActiveKey: n,
1424
+ hoverTone: r,
1425
+ defaultActiveKey: l,
1478
1426
  alwaysOpen: o = !1,
1479
1427
  flush: d = !1,
1480
1428
  className: c = "",
1481
- children: l,
1429
+ children: n,
1482
1430
  onSelect: i,
1483
1431
  ...m
1484
1432
  }) => {
1485
- const [v, p] = T(() => n ? Array.isArray(n) ? n : [n] : []), f = (_) => {
1433
+ const [v, p] = B(() => l ? Array.isArray(l) ? l : [l] : []), f = (_) => {
1486
1434
  let $;
1487
- o ? $ = v.includes(_) ? v.filter((L) => L !== _) : [...v, _] : $ = v.includes(_) ? [] : [_], p($), i && i(v.includes(_) ? null : _, {});
1435
+ o ? $ = v.includes(_) ? v.filter((R) => R !== _) : [...v, _] : $ = v.includes(_) ? [] : [_], p($), i && i(v.includes(_) ? null : _, {});
1488
1436
  }, u = "clarity-accordion", h = t && s, y = h ? `${u}--custom` : `${u}--${e}`, b = [
1489
1437
  u,
1490
1438
  y,
1491
1439
  d && `${u}--flush`,
1492
1440
  c
1493
- ].filter(Boolean).join(" "), N = (_) => {
1441
+ ].filter(Boolean).join(" "), C = (_) => {
1494
1442
  const $ = parseInt(_);
1495
1443
  return $ >= 800 ? "900" : $ >= 700 ? "800" : $ >= 600 ? "700" : $ >= 500 ? "600" : $ >= 400 ? "500" : $ >= 300 ? "400" : $ >= 200 ? "300" : "200";
1496
- }, B = h ? {
1444
+ }, T = h ? {
1497
1445
  "--custom-border-color": `var(--clarity-${t}-${s})`,
1498
1446
  "--custom-header-color": `var(--clarity-${t}-${s})`,
1499
- "--custom-hover-color": `var(--clarity-${t}-${a || N(s)})`
1447
+ "--custom-hover-color": `var(--clarity-${t}-${r || C(s)})`
1500
1448
  } : {}, x = {
1501
1449
  activeKeys: v,
1502
1450
  toggleItem: f,
@@ -1504,117 +1452,117 @@ const Gt = ({
1504
1452
  variant: e,
1505
1453
  product: t,
1506
1454
  tone: s,
1507
- hoverTone: a,
1455
+ hoverTone: r,
1508
1456
  flush: d
1509
1457
  };
1510
- return /* @__PURE__ */ r(Ue.Provider, { value: x, children: /* @__PURE__ */ r("div", { className: b, style: B, ...m, children: l }) });
1511
- }, $t = ({
1458
+ return /* @__PURE__ */ a(Ve.Provider, { value: x, children: /* @__PURE__ */ a("div", { className: b, style: T, ...m, children: n }) });
1459
+ }, wt = ({
1512
1460
  eventKey: e,
1513
1461
  disabled: t = !1,
1514
1462
  className: s = "",
1515
- children: a,
1516
- ...n
1463
+ children: r,
1464
+ ...l
1517
1465
  }) => {
1518
- const { activeKeys: o } = qe(), d = "clarity-accordion", c = o.includes(e), l = [
1466
+ const { activeKeys: o } = Me(), d = "clarity-accordion", c = o.includes(e), n = [
1519
1467
  `${d}__item`,
1520
1468
  c && `${d}__item--active`,
1521
1469
  t && `${d}__item--disabled`,
1522
1470
  s
1523
1471
  ].filter(Boolean).join(" ");
1524
- return /* @__PURE__ */ r("div", { className: l, ...n, children: j.Children.map(a, (i) => j.isValidElement(i) ? j.cloneElement(i, {
1472
+ return /* @__PURE__ */ a("div", { className: n, ...l, children: L.Children.map(r, (i) => L.isValidElement(i) ? L.cloneElement(i, {
1525
1473
  ...i.props,
1526
1474
  eventKey: e,
1527
1475
  disabled: t,
1528
1476
  isActive: c
1529
1477
  }) : i) });
1530
- }, kt = ({
1478
+ }, $t = ({
1531
1479
  className: e = "",
1532
1480
  children: t,
1533
1481
  onClick: s,
1534
- eventKey: a,
1535
- disabled: n = !1,
1482
+ eventKey: r,
1483
+ disabled: l = !1,
1536
1484
  isActive: o = !1,
1537
1485
  ...d
1538
1486
  }) => {
1539
- const { toggleItem: c } = qe(), l = "clarity-accordion", i = (m) => {
1540
- !n && a && c(a), s == null || s(m);
1487
+ const { toggleItem: c } = Me(), n = "clarity-accordion", i = (m) => {
1488
+ !l && r && c(r), s == null || s(m);
1541
1489
  };
1542
1490
  return /* @__PURE__ */ g(
1543
1491
  "button",
1544
1492
  {
1545
- className: [`${l}__header`, e].filter(Boolean).join(" "),
1493
+ className: [`${n}__header`, e].filter(Boolean).join(" "),
1546
1494
  onClick: i,
1547
- disabled: n,
1495
+ disabled: l,
1548
1496
  "aria-expanded": o,
1549
- "aria-controls": a ? `${l}-collapse-${a}` : void 0,
1497
+ "aria-controls": r ? `${n}-collapse-${r}` : void 0,
1550
1498
  ...d,
1551
1499
  children: [
1552
- /* @__PURE__ */ r("span", { className: `${l}__title`, children: t }),
1553
- /* @__PURE__ */ r("span", { className: `${l}__icon`, children: /* @__PURE__ */ r(
1500
+ /* @__PURE__ */ a("span", { className: `${n}__title`, children: t }),
1501
+ /* @__PURE__ */ a("span", { className: `${n}__icon`, children: /* @__PURE__ */ a(
1554
1502
  "svg",
1555
1503
  {
1556
1504
  width: "16",
1557
1505
  height: "16",
1558
1506
  viewBox: "0 0 16 16",
1559
1507
  fill: "currentColor",
1560
- className: o ? `${l}__icon--rotated` : "",
1561
- children: /* @__PURE__ */ r("path", { d: "M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z" })
1508
+ className: o ? `${n}__icon--rotated` : "",
1509
+ children: /* @__PURE__ */ a("path", { d: "M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z" })
1562
1510
  }
1563
1511
  ) })
1564
1512
  ]
1565
1513
  }
1566
1514
  );
1567
- }, xt = ({
1515
+ }, kt = ({
1568
1516
  className: e = "",
1569
1517
  children: t,
1570
1518
  eventKey: s,
1571
- isActive: a = !1,
1572
- ...n
1519
+ isActive: r = !1,
1520
+ ...l
1573
1521
  }) => {
1574
1522
  const o = "clarity-accordion";
1575
- return /* @__PURE__ */ r(
1523
+ return /* @__PURE__ */ a(
1576
1524
  "div",
1577
1525
  {
1578
1526
  id: s ? `${o}-collapse-${s}` : void 0,
1579
1527
  className: [
1580
1528
  `${o}__collapse`,
1581
- a && `${o}__collapse--show`
1529
+ r && `${o}__collapse--show`
1582
1530
  ].filter(Boolean).join(" "),
1583
- children: /* @__PURE__ */ r("div", { className: [`${o}__body`, e].filter(Boolean).join(" "), ...n, children: t })
1531
+ children: /* @__PURE__ */ a("div", { className: [`${o}__body`, e].filter(Boolean).join(" "), ...l, children: t })
1584
1532
  }
1585
1533
  );
1586
- }, qt = Object.assign(wt, {
1587
- Item: $t,
1588
- Header: kt,
1589
- Body: xt
1590
- }), Xe = Q(
1534
+ }, Ut = Object.assign(_t, {
1535
+ Item: wt,
1536
+ Header: $t,
1537
+ Body: kt
1538
+ }), Fe = Z(
1591
1539
  void 0
1592
- ), Ye = () => {
1593
- const e = Y(Xe);
1540
+ ), ze = () => {
1541
+ const e = K(Fe);
1594
1542
  if (!e)
1595
1543
  throw new Error("useDropdown must be used within a DropdownProvider");
1596
1544
  return e;
1597
- }, Tt = ({ children: e }) => {
1598
- const { setIsOpen: t, triggerRef: s } = Ye();
1599
- return /* @__PURE__ */ r(
1545
+ }, xt = ({ children: e }) => {
1546
+ const { setIsOpen: t, triggerRef: s } = ze();
1547
+ return /* @__PURE__ */ a(
1600
1548
  "button",
1601
1549
  {
1602
1550
  type: "button",
1603
1551
  ref: s,
1604
1552
  className: "dropdown__trigger",
1605
- onClick: () => t((a) => !a),
1553
+ onClick: () => t((r) => !r),
1606
1554
  "aria-haspopup": "true",
1607
1555
  children: e
1608
1556
  }
1609
1557
  );
1610
1558
  }, Bt = ({ children: e }) => {
1611
- const { isOpen: t, contentRef: s, styles: a } = Ye();
1612
- return t ? /* @__PURE__ */ r("div", { ref: s, className: "dropdown__content", style: a, children: e }) : null;
1613
- }, Rt = ({ children: e }) => /* @__PURE__ */ r("div", { className: "dropdown__menu", children: e }), jt = ({ as: e, children: t, ...s }) => /* @__PURE__ */ r(e || "a", { ...s, className: "dropdown__item", children: t }), Lt = () => /* @__PURE__ */ r("hr", { className: "dropdown__separator" }), ce = ({ title: e, position: t = "bottom", children: s }) => {
1614
- const [a, n] = T(!1), [o, d] = T({}), c = z(null), l = z(null), i = z(null);
1615
- return pt(() => {
1616
- if (a) {
1617
- const m = l.current, v = i.current;
1559
+ const { isOpen: t, contentRef: s, styles: r } = ze();
1560
+ return t ? /* @__PURE__ */ a("div", { ref: s, className: "dropdown__content", style: r, children: e }) : null;
1561
+ }, Tt = ({ children: e }) => /* @__PURE__ */ a("div", { className: "dropdown__menu", children: e }), jt = ({ as: e, children: t, ...s }) => /* @__PURE__ */ a(e || "a", { ...s, className: "dropdown__item", children: t }), Lt = () => /* @__PURE__ */ a("hr", { className: "dropdown__separator" }), ce = ({ title: e, position: t = "bottom", children: s }) => {
1562
+ const [r, l] = B(!1), [o, d] = B({}), c = z(null), n = z(null), i = z(null);
1563
+ return mt(() => {
1564
+ if (r) {
1565
+ const m = n.current, v = i.current;
1618
1566
  if (!m || !v) return;
1619
1567
  const p = m.getBoundingClientRect(), f = v.getBoundingClientRect(), u = window.innerHeight, h = window.innerWidth;
1620
1568
  let y = t;
@@ -1637,14 +1585,14 @@ const Gt = ({
1637
1585
  }
1638
1586
  d(b);
1639
1587
  }
1640
- }, [a, t]), P(() => {
1588
+ }, [r, t]), P(() => {
1641
1589
  const m = (v) => {
1642
- c.current && !c.current.contains(v.target) && n(!1);
1590
+ c.current && !c.current.contains(v.target) && l(!1);
1643
1591
  };
1644
1592
  return document.addEventListener("mousedown", m), () => {
1645
1593
  document.removeEventListener("mousedown", m);
1646
1594
  };
1647
- }, []), /* @__PURE__ */ r(Xe.Provider, { value: { isOpen: a, setIsOpen: n, triggerRef: l, contentRef: i, styles: o }, children: /* @__PURE__ */ r(
1595
+ }, []), /* @__PURE__ */ a(Fe.Provider, { value: { isOpen: r, setIsOpen: l, triggerRef: n, contentRef: i, styles: o }, children: /* @__PURE__ */ a(
1648
1596
  "div",
1649
1597
  {
1650
1598
  ref: c,
@@ -1654,84 +1602,84 @@ const Gt = ({
1654
1602
  }
1655
1603
  ) });
1656
1604
  };
1657
- ce.Trigger = Tt;
1605
+ ce.Trigger = xt;
1658
1606
  ce.Content = Bt;
1659
- ce.Menu = Rt;
1607
+ ce.Menu = Tt;
1660
1608
  ce.Item = jt;
1661
1609
  ce.Separator = Lt;
1662
- const be = ({
1610
+ const ye = ({
1663
1611
  as: e = "button",
1664
1612
  id: t,
1665
1613
  children: s,
1666
- className: a = "",
1667
- isActive: n,
1614
+ className: r = "",
1615
+ isActive: l,
1668
1616
  onClick: o,
1669
1617
  variant: d,
1670
1618
  orientation: c,
1671
- ...l
1619
+ ...n
1672
1620
  }) => {
1673
1621
  const i = [
1674
1622
  "clarity-tab",
1675
- a,
1676
- n ? "active" : "",
1677
- n ? `variant-${d}` : "",
1623
+ r,
1624
+ l ? "active" : "",
1625
+ l ? `variant-${d}` : "",
1678
1626
  `orientation-${c}`
1679
1627
  ].filter(Boolean).join(" ");
1680
- return /* @__PURE__ */ r(
1628
+ return /* @__PURE__ */ a(
1681
1629
  e,
1682
1630
  {
1683
1631
  ...e === "button" ? { type: "button" } : {},
1684
- ...l,
1632
+ ...n,
1685
1633
  className: i,
1686
1634
  onClick: () => {
1687
1635
  o && o(t);
1688
1636
  },
1689
1637
  role: "tab",
1690
- "aria-selected": n,
1638
+ "aria-selected": l,
1691
1639
  children: s
1692
1640
  }
1693
1641
  );
1694
1642
  };
1695
- be.displayName = "Tabs.Tab";
1696
- const Je = ({
1643
+ ye.displayName = "Tabs.Tab";
1644
+ const Ge = ({
1697
1645
  children: e,
1698
1646
  activeTab: t,
1699
1647
  onTabChange: s,
1700
- variant: a = "primary",
1701
- orientation: n = "horizontal",
1648
+ variant: r = "primary",
1649
+ orientation: l = "horizontal",
1702
1650
  className: o = ""
1703
1651
  }) => {
1704
1652
  const d = [
1705
1653
  "clarity-tabs-container",
1706
1654
  o,
1707
- `orientation-${n}`
1708
- ].filter(Boolean).join(" "), c = [], l = [];
1709
- return ft.forEach(e, (i) => {
1710
- K(i) && i.type === be ? c.push(i) : l.push(i);
1655
+ `orientation-${l}`
1656
+ ].filter(Boolean).join(" "), c = [], n = [];
1657
+ return ut.forEach(e, (i) => {
1658
+ Q(i) && i.type === ye ? c.push(i) : n.push(i);
1711
1659
  }), /* @__PURE__ */ g("div", { className: d, children: [
1712
- /* @__PURE__ */ r("div", { className: "clarity-tab-list", role: "tablist", children: c.map(
1660
+ /* @__PURE__ */ a("div", { className: "clarity-tab-list", role: "tablist", children: c.map(
1713
1661
  (i) => G(i, {
1714
1662
  isActive: (i == null ? void 0 : i.props).id === t,
1715
1663
  onClick: s,
1716
- variant: a,
1717
- orientation: n
1664
+ variant: r,
1665
+ orientation: l
1718
1666
  })
1719
1667
  ) }),
1720
- l
1668
+ n
1721
1669
  ] });
1722
1670
  };
1723
- Je.Tab = be;
1724
- Je.displayName = "Tabs";
1725
- const Xt = ({
1671
+ Ge.Tab = ye;
1672
+ Ge.displayName = "Tabs";
1673
+ const qt = ({
1726
1674
  content: e,
1727
1675
  position: t = "top",
1728
1676
  variant: s = "primary",
1729
- product: a,
1730
- tone: n,
1677
+ product: r,
1678
+ tone: l,
1731
1679
  bgColor: o,
1732
1680
  textColor: d,
1733
1681
  children: c,
1734
- className: l = "",
1682
+ className: n = "",
1735
1683
  disabled: i = !1,
1736
1684
  delay: m = 200,
1737
1685
  hideDelay: v = 100,
@@ -1739,19 +1687,19 @@ const Xt = ({
1739
1687
  arrow: f = !0,
1740
1688
  ...u
1741
1689
  }) => {
1742
- const [h, y] = T(!1), [b, N] = T(null), B = z(null), x = z(null), _ = "clarity-tooltip", $ = !!o, L = a && n && !$;
1690
+ const [h, y] = B(!1), [b, C] = B(null), T = z(null), x = z(null), _ = "clarity-tooltip", $ = !!o, R = r && l && !$;
1743
1691
  let k = "";
1744
- $ ? k = `${_}__content--custom-bg` : L ? k = `${_}__content--custom` : k = `${_}__content--${s}`;
1745
- const R = [
1692
+ $ ? k = `${_}__content--custom-bg` : R ? k = `${_}__content--custom` : k = `${_}__content--${s}`;
1693
+ const j = [
1746
1694
  _,
1747
1695
  `${_}--${t}`,
1748
- l
1696
+ n
1749
1697
  ].filter(Boolean).join(" "), S = [
1750
1698
  `${_}__content`,
1751
1699
  k,
1752
1700
  f && `${_}__content--arrow`
1753
1701
  ].filter(Boolean).join(" "), I = {}, E = {};
1754
- $ && o && (E["--tooltip-bg-color"] = o), d && (E["--tooltip-text-color"] = d), L && a && n && (E["--tooltip-product"] = a, E["--tooltip-tone"] = n);
1702
+ $ && o && (E["--tooltip-bg-color"] = o), d && (E["--tooltip-text-color"] = d), R && r && l && (E["--tooltip-product"] = r, E["--tooltip-tone"] = l);
1755
1703
  const w = {
1756
1704
  ...I,
1757
1705
  ...Object.keys(E).length > 0 ? E : {}
@@ -1761,13 +1709,13 @@ const Xt = ({
1761
1709
  const A = setTimeout(() => {
1762
1710
  y(!0);
1763
1711
  }, m);
1764
- N(A);
1712
+ C(A);
1765
1713
  }, W = () => {
1766
1714
  b && clearTimeout(b);
1767
1715
  const A = setTimeout(() => {
1768
1716
  y(!1);
1769
1717
  }, v);
1770
- N(A);
1718
+ C(A);
1771
1719
  }, V = () => {
1772
1720
  i || y(!h);
1773
1721
  }, U = () => {
@@ -1788,193 +1736,193 @@ const Xt = ({
1788
1736
  ...u,
1789
1737
  children: [
1790
1738
  c,
1791
- h && /* @__PURE__ */ r(
1739
+ h && /* @__PURE__ */ a(
1792
1740
  "div",
1793
1741
  {
1794
- ref: B,
1795
- className: R,
1742
+ ref: T,
1743
+ className: j,
1796
1744
  style: w,
1797
1745
  role: "tooltip",
1798
1746
  "aria-hidden": !h,
1799
- children: /* @__PURE__ */ r("div", { className: S, children: e })
1747
+ children: /* @__PURE__ */ a("div", { className: S, children: e })
1800
1748
  }
1801
1749
  )
1802
1750
  ]
1803
1751
  }
1804
1752
  );
1805
- }, Qe = Q(null), le = () => {
1806
- const e = Y(Qe);
1753
+ }, Ue = Z(null), ne = () => {
1754
+ const e = K(Ue);
1807
1755
  if (!e)
1808
1756
  throw new Error("useCommand must be used within a Command provider");
1809
1757
  return e;
1810
- }, Ze = ({
1758
+ }, qe = ({
1811
1759
  children: e,
1812
1760
  className: t = "",
1813
1761
  variant: s = "secondary",
1814
- emptyText: a = "No results found.",
1815
- inputPlaceholder: n = "Search...",
1762
+ emptyText: r = "No results found.",
1763
+ inputPlaceholder: l = "Search...",
1816
1764
  ...o
1817
1765
  }) => {
1818
- const [d, c] = T(""), [l, i] = T(null), [m, v] = T(!1), p = [
1766
+ const [d, c] = B(""), [n, i] = B(null), [m, v] = B(!1), p = [
1819
1767
  "clarity-command",
1820
1768
  `clarity-command--${s}`,
1821
1769
  t
1822
1770
  ].filter(Boolean).join(" "), f = oe(() => ({
1823
1771
  searchTerm: d,
1824
1772
  setSearchTerm: c,
1825
- value: l,
1773
+ value: n,
1826
1774
  setValue: i,
1827
1775
  variant: s,
1828
1776
  texts: {
1829
- empty: a,
1830
- inputPlaceholder: n
1777
+ empty: r,
1778
+ inputPlaceholder: l
1831
1779
  },
1832
1780
  isOpen: m,
1833
1781
  setIsOpen: v
1834
- }), [d, l, s, a, n, m]);
1835
- return /* @__PURE__ */ r(Qe.Provider, { value: f, children: /* @__PURE__ */ r("div", { className: p, ...o, children: e }) });
1782
+ }), [d, n, s, r, l, m]);
1783
+ return /* @__PURE__ */ a(Ue.Provider, { value: f, children: /* @__PURE__ */ a("div", { className: p, ...o, children: e }) });
1836
1784
  };
1837
- Ze.displayName = "Command";
1838
- const Ke = ({ placeholder: e = "Search...", variant: t, onClick: s }) => {
1839
- const { setIsOpen: a, variant: n } = le(), [o, d] = T(!1);
1785
+ qe.displayName = "Command";
1786
+ const Xe = ({ placeholder: e = "Search...", variant: t, onClick: s }) => {
1787
+ const { setIsOpen: r, variant: l } = ne(), [o, d] = B(!1);
1840
1788
  P(() => {
1841
1789
  d(/Mac|iPod|iPhone|iPad/.test(navigator.platform));
1842
1790
  }, []);
1843
- const l = [
1791
+ const n = [
1844
1792
  "clarity-command-button",
1845
- `clarity-command-button--${t || n}`
1793
+ `clarity-command-button--${t || l}`
1846
1794
  ].filter(Boolean).join(" ");
1847
- return /* @__PURE__ */ g("button", { className: l, onClick: (m) => {
1848
- a(!0), s == null || s(m);
1795
+ return /* @__PURE__ */ g("button", { className: n, onClick: (m) => {
1796
+ r(!0), s == null || s(m);
1849
1797
  }, children: [
1850
- /* @__PURE__ */ r("span", { children: e }),
1798
+ /* @__PURE__ */ a("span", { children: e }),
1851
1799
  /* @__PURE__ */ g("kbd", { className: "clarity-command-shortcut", children: [
1852
1800
  o ? "⌘" : "Ctrl+",
1853
1801
  "K"
1854
1802
  ] })
1855
1803
  ] });
1856
1804
  };
1857
- Ke.displayName = "Command.Button";
1858
- const et = ({ children: e, ...t }) => {
1859
- const { isOpen: s, setIsOpen: a, variant: n } = le();
1805
+ Xe.displayName = "Command.Button";
1806
+ const Ye = ({ children: e, ...t }) => {
1807
+ const { isOpen: s, setIsOpen: r, variant: l } = ne();
1860
1808
  return P(() => {
1861
1809
  const o = (d) => {
1862
- d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), a(!s));
1810
+ d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), r(!s));
1863
1811
  };
1864
1812
  return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
1865
- }, [s, a]), /* @__PURE__ */ r(ee, { isOpen: s, onClose: () => a(!1), size: "large", closeOnOverlayClick: !0, children: /* @__PURE__ */ r("div", { className: `clarity-command--${n}`, children: e }) });
1813
+ }, [s, r]), /* @__PURE__ */ a(ee, { isOpen: s, onClose: () => r(!1), size: "large", closeOnOverlayClick: !0, children: /* @__PURE__ */ a("div", { className: `clarity-command--${l}`, children: e }) });
1866
1814
  };
1867
- et.displayName = "Command.Dialog";
1868
- const tt = ({ className: e = "", ...t }) => {
1869
- const { searchTerm: s, setSearchTerm: a, variant: n, texts: o, isOpen: d } = le(), c = z(null);
1815
+ Ye.displayName = "Command.Dialog";
1816
+ const Je = ({ className: e = "", ...t }) => {
1817
+ const { searchTerm: s, setSearchTerm: r, variant: l, texts: o, isOpen: d } = ne(), c = z(null);
1870
1818
  P(() => {
1871
1819
  var i;
1872
1820
  d && ((i = c.current) == null || i.focus());
1873
1821
  }, [d]);
1874
- const l = [
1822
+ const n = [
1875
1823
  "clarity-command-input",
1876
- `clarity-command-input--${n}`,
1824
+ `clarity-command-input--${l}`,
1877
1825
  e
1878
1826
  ].filter(Boolean).join(" ");
1879
- return /* @__PURE__ */ r("div", { className: "clarity-command-input__wrapper", children: /* @__PURE__ */ r(
1827
+ return /* @__PURE__ */ a("div", { className: "clarity-command-input__wrapper", children: /* @__PURE__ */ a(
1880
1828
  "input",
1881
1829
  {
1882
1830
  ref: c,
1883
- className: l,
1831
+ className: n,
1884
1832
  value: s,
1885
- onChange: (i) => a(i.target.value),
1833
+ onChange: (i) => r(i.target.value),
1886
1834
  placeholder: t.placeholder || o.inputPlaceholder,
1887
1835
  ...t
1888
1836
  }
1889
1837
  ) });
1890
1838
  };
1891
- tt.displayName = "Command.Input";
1892
- const st = ({ children: e, className: t = "", ...s }) => {
1893
- const { searchTerm: a } = le();
1894
- let n = !1;
1895
- const o = (l) => j.Children.toArray(l).map((i) => {
1839
+ Je.displayName = "Command.Input";
1840
+ const Qe = ({ children: e, className: t = "", ...s }) => {
1841
+ const { searchTerm: r } = ne();
1842
+ let l = !1;
1843
+ const o = (n) => L.Children.toArray(n).map((i) => {
1896
1844
  var v;
1897
- if (!j.isValidElement(i)) return i;
1845
+ if (!L.isValidElement(i)) return i;
1898
1846
  const m = i.type.displayName;
1899
1847
  if (m === "Command.Empty")
1900
1848
  return null;
1901
1849
  if (m === "Command.Item")
1902
- return (((v = i.props.children) == null ? void 0 : v.toString().toLowerCase()) || "").includes(a.toLowerCase()) ? (n = !0, i) : null;
1850
+ return (((v = i.props.children) == null ? void 0 : v.toString().toLowerCase()) || "").includes(r.toLowerCase()) ? (l = !0, i) : null;
1903
1851
  if (m === "Command.Group") {
1904
1852
  const p = o(i.props.children);
1905
- return j.Children.toArray(p).some((u) => j.isValidElement(u) && u.type.displayName === "Command.Item") ? j.cloneElement(i, { ...i.props, children: p }) : null;
1853
+ return L.Children.toArray(p).some((u) => L.isValidElement(u) && u.type.displayName === "Command.Item") ? L.cloneElement(i, { ...i.props, children: p }) : null;
1906
1854
  }
1907
1855
  return i;
1908
1856
  }).filter(Boolean), d = o(e), c = ["clarity-command-list", t].filter(Boolean).join(" ");
1909
1857
  return /* @__PURE__ */ g("div", { className: c, ...s, children: [
1910
1858
  d,
1911
- !n && /* @__PURE__ */ r(Ce, {})
1859
+ !l && /* @__PURE__ */ a(ve, {})
1912
1860
  ] });
1913
1861
  };
1914
- st.displayName = "Command.List";
1915
- const Ce = ({ children: e, className: t = "", ...s }) => {
1916
- const { texts: a } = le(), n = ["clarity-command-empty", t].filter(Boolean).join(" ");
1917
- return /* @__PURE__ */ r("div", { className: n, ...s, children: e || s.emptyText || a.empty });
1862
+ Qe.displayName = "Command.List";
1863
+ const ve = ({ children: e, className: t = "", ...s }) => {
1864
+ const { texts: r } = ne(), l = ["clarity-command-empty", t].filter(Boolean).join(" ");
1865
+ return /* @__PURE__ */ a("div", { className: l, ...s, children: e || s.emptyText || r.empty });
1918
1866
  };
1919
- Ce.displayName = "Command.Empty";
1920
- const at = ({ children: e, className: t = "", ...s }) => {
1921
- const a = ["clarity-command-group", t].filter(Boolean).join(" ");
1922
- return /* @__PURE__ */ r("div", { className: a, ...s, children: e });
1867
+ ve.displayName = "Command.Empty";
1868
+ const Ze = ({ children: e, className: t = "", ...s }) => {
1869
+ const r = ["clarity-command-group", t].filter(Boolean).join(" ");
1870
+ return /* @__PURE__ */ a("div", { className: r, ...s, children: e });
1923
1871
  };
1924
- at.displayName = "Command.Group";
1925
- const rt = ({ children: e, className: t = "", ...s }) => {
1926
- const { setValue: a, variant: n } = le(), o = ["clarity-command-item", `clarity-command-item--${n}`, t].filter(Boolean).join(" ");
1927
- return /* @__PURE__ */ r("div", { className: o, onClick: () => a((e == null ? void 0 : e.toString()) || ""), ...s, children: e });
1872
+ Ze.displayName = "Command.Group";
1873
+ const Ke = ({ children: e, className: t = "", ...s }) => {
1874
+ const { setValue: r, variant: l } = ne(), o = ["clarity-command-item", `clarity-command-item--${l}`, t].filter(Boolean).join(" ");
1875
+ return /* @__PURE__ */ a("div", { className: o, onClick: () => r((e == null ? void 0 : e.toString()) || ""), ...s, children: e });
1928
1876
  };
1929
- rt.displayName = "Command.Item";
1930
- const nt = ({ className: e = "", ...t }) => {
1877
+ Ke.displayName = "Command.Item";
1878
+ const et = ({ className: e = "", ...t }) => {
1931
1879
  const s = ["clarity-command-separator", e].filter(Boolean).join(" ");
1932
- return /* @__PURE__ */ r("hr", { className: s, ...t });
1880
+ return /* @__PURE__ */ a("hr", { className: s, ...t });
1933
1881
  };
1934
- nt.displayName = "Command.Separator";
1935
- const lt = ({ children: e, className: t = "", ...s }) => {
1936
- const a = ["clarity-command-shortcut", t].filter(Boolean).join(" ");
1937
- return /* @__PURE__ */ r("span", { className: a, ...s, children: e });
1882
+ et.displayName = "Command.Separator";
1883
+ const tt = ({ children: e, className: t = "", ...s }) => {
1884
+ const r = ["clarity-command-shortcut", t].filter(Boolean).join(" ");
1885
+ return /* @__PURE__ */ a("span", { className: r, ...s, children: e });
1938
1886
  };
1939
- lt.displayName = "Command.Shortcut";
1940
- const Yt = Object.assign(Ze, {
1941
- Button: Ke,
1942
- Dialog: et,
1943
- Input: tt,
1944
- List: st,
1945
- Empty: Ce,
1946
- Group: at,
1947
- Item: rt,
1948
- Separator: nt,
1949
- Shortcut: lt
1950
- }), St = ({ columns: e, viewMode: t }) => {
1951
- const s = Array.from({ length: 5 }, (a, n) => n);
1887
+ tt.displayName = "Command.Shortcut";
1888
+ const Xt = Object.assign(qe, {
1889
+ Button: Xe,
1890
+ Dialog: Ye,
1891
+ Input: Je,
1892
+ List: Qe,
1893
+ Empty: ve,
1894
+ Group: Ze,
1895
+ Item: Ke,
1896
+ Separator: et,
1897
+ Shortcut: tt
1898
+ }), Rt = ({ columns: e, viewMode: t }) => {
1899
+ const s = Array.from({ length: 5 }, (r, l) => l);
1952
1900
  return t === "card" ? /* @__PURE__ */ g("div", { className: "card-view-wrapper is-loading", children: [
1953
- /* @__PURE__ */ r("div", { className: "skeleton card-view-header" }),
1954
- /* @__PURE__ */ r("div", { className: "card-view-body", children: s.map((a) => /* @__PURE__ */ r("div", { className: "skeleton card-view-row" }, a)) })
1955
- ] }) : /* @__PURE__ */ r("div", { className: "table-wrapper is-loading", children: /* @__PURE__ */ g("table", { children: [
1956
- /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { className: "table-row", children: e.map((a) => /* @__PURE__ */ r("th", { className: "table-header-cell", children: /* @__PURE__ */ r("div", { className: "skeleton skeleton-text" }) }, a.key)) }) }),
1957
- /* @__PURE__ */ r("tbody", { children: s.map((a) => /* @__PURE__ */ r("tr", { className: "table-row", children: e.map((n) => /* @__PURE__ */ r("td", { className: "table-cell", children: /* @__PURE__ */ r("div", { className: "skeleton skeleton-text" }) }, n.key)) }, a)) })
1901
+ /* @__PURE__ */ a("div", { className: "skeleton card-view-header" }),
1902
+ /* @__PURE__ */ a("div", { className: "card-view-body", children: s.map((r) => /* @__PURE__ */ a("div", { className: "skeleton card-view-row" }, r)) })
1903
+ ] }) : /* @__PURE__ */ a("div", { className: "table-wrapper is-loading", children: /* @__PURE__ */ g("table", { children: [
1904
+ /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { className: "table-row", children: e.map((r) => /* @__PURE__ */ a("th", { className: "table-header-cell", children: /* @__PURE__ */ a("div", { className: "skeleton skeleton-text" }) }, r.key)) }) }),
1905
+ /* @__PURE__ */ a("tbody", { children: s.map((r) => /* @__PURE__ */ a("tr", { className: "table-row", children: e.map((l) => /* @__PURE__ */ a("td", { className: "table-cell", children: /* @__PURE__ */ a("div", { className: "skeleton skeleton-text" }) }, l.key)) }, r)) })
1958
1906
  ] }) });
1959
- }, Jt = ({
1907
+ }, Yt = ({
1960
1908
  variant: e = "secondary",
1961
1909
  columns: t,
1962
1910
  data: s,
1963
- viewMode: a = "table",
1964
- isScrollable: n = !1,
1911
+ viewMode: r = "table",
1912
+ isScrollable: l = !1,
1965
1913
  isLoading: o = !1
1966
1914
  }) => {
1967
- const [d, c] = T(null), [l, i] = T("none"), m = (u) => {
1915
+ const [d, c] = B(null), [n, i] = B("none"), m = (u) => {
1968
1916
  u.sortable && (d === u.key ? i((h) => h === "asc" ? "desc" : h === "desc" ? "none" : "asc") : (c(u.key), i("asc")));
1969
- }, v = oe(() => l === "none" || !d ? s : [...s].sort((u, h) => {
1917
+ }, v = oe(() => n === "none" || !d ? s : [...s].sort((u, h) => {
1970
1918
  const y = u[d], b = h[d];
1971
- return y < b ? l === "asc" ? -1 : 1 : y > b ? l === "asc" ? 1 : -1 : 0;
1972
- }), [s, d, l]), p = (u) => u.sortable ? d !== u.key || l === "none" ? /* @__PURE__ */ r("span", { className: "sort-icon", children: "↕" }) : l === "asc" ? /* @__PURE__ */ r("span", { className: "sort-icon", children: "↑" }) : /* @__PURE__ */ r("span", { className: "sort-icon", children: "↓" }) : null;
1919
+ return y < b ? n === "asc" ? -1 : 1 : y > b ? n === "asc" ? 1 : -1 : 0;
1920
+ }), [s, d, n]), p = (u) => u.sortable ? d !== u.key || n === "none" ? /* @__PURE__ */ a("span", { className: "sort-icon", children: "↕" }) : n === "asc" ? /* @__PURE__ */ a("span", { className: "sort-icon", children: "↑" }) : /* @__PURE__ */ a("span", { className: "sort-icon", children: "↓" }) : null;
1973
1921
  if (o)
1974
- return /* @__PURE__ */ r(St, { columns: t, viewMode: a });
1975
- const f = `table-variant-${e} ${n ? "is-scrollable" : ""}`;
1976
- return a === "card" ? /* @__PURE__ */ g("div", { className: `card-view-wrapper ${f}`, children: [
1977
- /* @__PURE__ */ r("div", { className: `card-view-header table-header-cell-${e}`, children: t.map((u) => /* @__PURE__ */ g(
1922
+ return /* @__PURE__ */ a(Rt, { columns: t, viewMode: r });
1923
+ const f = `table-variant-${e} ${l ? "is-scrollable" : ""}`;
1924
+ return r === "card" ? /* @__PURE__ */ g("div", { className: `card-view-wrapper ${f}`, children: [
1925
+ /* @__PURE__ */ a("div", { className: `card-view-header table-header-cell-${e}`, children: t.map((u) => /* @__PURE__ */ g(
1978
1926
  "div",
1979
1927
  {
1980
1928
  className: `card-view-header-cell ${u.sortable ? "sortable" : ""}`,
@@ -1987,9 +1935,9 @@ const Yt = Object.assign(Ze, {
1987
1935
  },
1988
1936
  u.key
1989
1937
  )) }),
1990
- /* @__PURE__ */ r("div", { className: "card-view-body", children: v.map((u, h) => /* @__PURE__ */ r("div", { className: `card-view-row table-row-${e}`, children: t.map((y) => /* @__PURE__ */ r("div", { className: `card-view-cell ${y.align ? `table-cell-align-${y.align}` : ""}`, style: { minWidth: y.minWidth }, children: y.render ? y.render(u) : u[y.key] }, y.key)) }, h)) })
1991
- ] }) : /* @__PURE__ */ r("div", { className: `table-wrapper ${f}`, children: /* @__PURE__ */ g("table", { children: [
1992
- /* @__PURE__ */ r("thead", { className: "table-header", children: /* @__PURE__ */ r("tr", { className: "table-row", children: t.map((u) => /* @__PURE__ */ g(
1938
+ /* @__PURE__ */ a("div", { className: "card-view-body", children: v.map((u, h) => /* @__PURE__ */ a("div", { className: `card-view-row table-row-${e}`, children: t.map((y) => /* @__PURE__ */ a("div", { className: `card-view-cell ${y.align ? `table-cell-align-${y.align}` : ""}`, style: { minWidth: y.minWidth }, children: y.render ? y.render(u) : u[y.key] }, y.key)) }, h)) })
1939
+ ] }) : /* @__PURE__ */ a("div", { className: `table-wrapper ${f}`, children: /* @__PURE__ */ g("table", { children: [
1940
+ /* @__PURE__ */ a("thead", { className: "table-header", children: /* @__PURE__ */ a("tr", { className: "table-row", children: t.map((u) => /* @__PURE__ */ g(
1993
1941
  "th",
1994
1942
  {
1995
1943
  className: `table-header-cell ${u.sortable ? "sortable" : ""} table-header-cell-${e}`,
@@ -2002,25 +1950,25 @@ const Yt = Object.assign(Ze, {
2002
1950
  },
2003
1951
  u.key
2004
1952
  )) }) }),
2005
- /* @__PURE__ */ r("tbody", { children: v.map((u, h) => /* @__PURE__ */ r("tr", { className: `table-row table-row-${e}`, children: t.map((y) => /* @__PURE__ */ r("td", { className: `table-cell ${y.align ? `table-cell-align-${y.align}` : ""}`, style: { minWidth: y.minWidth }, children: y.render ? y.render(u) : u[y.key] }, y.key)) }, h)) })
1953
+ /* @__PURE__ */ a("tbody", { children: v.map((u, h) => /* @__PURE__ */ a("tr", { className: `table-row table-row-${e}`, children: t.map((y) => /* @__PURE__ */ a("td", { className: `table-cell ${y.align ? `table-cell-align-${y.align}` : ""}`, style: { minWidth: y.minWidth }, children: y.render ? y.render(u) : u[y.key] }, y.key)) }, h)) })
2006
1954
  ] }) });
2007
- }, Qt = ({
1955
+ }, Jt = ({
2008
1956
  variant: e = "primary",
2009
1957
  product: t,
2010
1958
  tone: s,
2011
- size: a = "medium",
2012
- color: n,
1959
+ size: r = "medium",
1960
+ color: l,
2013
1961
  className: o = "",
2014
1962
  "aria-label": d = "Carregando...",
2015
1963
  ...c
2016
1964
  }) => {
2017
- const l = "clarity-spinner", v = n ? `${l}--custom` : t && s ? `${l}--custom` : `${l}--${e}`, p = [
2018
- l,
2019
- `${l}--${a}`,
1965
+ const n = "clarity-spinner", v = l ? `${n}--custom` : t && s ? `${n}--custom` : `${n}--${e}`, p = [
1966
+ n,
1967
+ `${n}--${r}`,
2020
1968
  v,
2021
1969
  o
2022
1970
  ].filter(Boolean).join(" "), f = {};
2023
- return n ? f["--spinner-color"] = n : t && s && (f["--spinner-color"] = `var(--clarity-${t}-${s})`), /* @__PURE__ */ r(
1971
+ return l ? f["--spinner-color"] = l : t && s && (f["--spinner-color"] = `var(--clarity-${t}-${s})`), /* @__PURE__ */ a(
2024
1972
  "div",
2025
1973
  {
2026
1974
  className: p,
@@ -2028,16 +1976,16 @@ const Yt = Object.assign(Ze, {
2028
1976
  role: "status",
2029
1977
  "aria-label": d,
2030
1978
  ...c,
2031
- children: /* @__PURE__ */ r("div", { className: `${l}__container`, children: /* @__PURE__ */ r(
1979
+ children: /* @__PURE__ */ a("div", { className: `${n}__container`, children: /* @__PURE__ */ a(
2032
1980
  "svg",
2033
1981
  {
2034
- className: `${l}__svg`,
1982
+ className: `${n}__svg`,
2035
1983
  viewBox: "0 0 50 50",
2036
1984
  xmlns: "http://www.w3.org/2000/svg",
2037
- children: /* @__PURE__ */ r(
1985
+ children: /* @__PURE__ */ a(
2038
1986
  "circle",
2039
1987
  {
2040
- className: `${l}__circle`,
1988
+ className: `${n}__circle`,
2041
1989
  cx: "25",
2042
1990
  cy: "25",
2043
1991
  r: "20",
@@ -2049,12 +1997,12 @@ const Yt = Object.assign(Ze, {
2049
1997
  ) })
2050
1998
  }
2051
1999
  );
2052
- }, Et = ({
2000
+ }, St = ({
2053
2001
  className: e = "",
2054
2002
  noGutters: t,
2055
2003
  justify: s,
2056
- align: a,
2057
- children: n,
2004
+ align: r,
2005
+ children: l,
2058
2006
  as: o = "div",
2059
2007
  ...d
2060
2008
  }) => {
@@ -2062,41 +2010,52 @@ const Yt = Object.assign(Ze, {
2062
2010
  "clarity-row",
2063
2011
  t ? "clarity-row--no-gutters" : "",
2064
2012
  s ? `clarity-row--justify-${s}` : "",
2065
- a ? `clarity-row--align-${a}` : "",
2013
+ r ? `clarity-row--align-${r}` : "",
2066
2014
  e
2067
2015
  ].filter(Boolean).join(" ");
2068
- return j.createElement(o, { className: c, ...d }, n);
2016
+ return L.createElement(o, { className: c, ...d }, l);
2069
2017
  };
2070
- Et.displayName = "Row";
2071
- const Ot = (e) => `${e / 12 * 100}%`, It = (e) => `${e / 12 * 100}%`, Dt = ({
2018
+ St.displayName = "Row";
2019
+ const Et = (e) => `${e / 12 * 100}%`, Ot = (e) => `${e / 12 * 100}%`, It = ({
2072
2020
  className: e = "",
2073
2021
  xs: t,
2074
2022
  sm: s,
2075
- md: a,
2076
- lg: n,
2023
+ md: r,
2024
+ lg: l,
2077
2025
  xl: o,
2078
2026
  xxl: d,
2079
2027
  offset: c,
2080
- children: l,
2028
+ children: n,
2081
2029
  as: i = "div",
2082
2030
  style: m,
2083
2031
  ...v
2084
2032
  }) => {
2085
2033
  const p = { ...m }, f = (y, b) => {
2086
2034
  if (b === void 0) return;
2087
- const N = `--clarity-col-width-${y}`;
2088
- p[N] = typeof b == "number" ? Ot(b) : "auto";
2035
+ const C = `--clarity-col-width-${y}`;
2036
+ p[C] = typeof b == "number" ? Et(b) : "auto";
2089
2037
  }, u = (y, b) => {
2090
2038
  if (b === void 0) return;
2091
- const N = `--clarity-col-offset-${y}`;
2092
- p[N] = It(b);
2039
+ const C = `--clarity-col-offset-${y}`;
2040
+ p[C] = Ot(b);
2093
2041
  };
2094
- f("xs", t), f("sm", s), f("md", a), f("lg", n), f("xl", o), f("xxl", d), u("xs", c == null ? void 0 : c.xs), u("sm", c == null ? void 0 : c.sm), u("md", c == null ? void 0 : c.md), u("lg", c == null ? void 0 : c.lg), u("xl", c == null ? void 0 : c.xl), u("xxl", c == null ? void 0 : c.xxl);
2042
+ f("xs", t), f("sm", s), f("md", r), f("lg", l), f("xl", o), f("xxl", d), u("xs", c == null ? void 0 : c.xs), u("sm", c == null ? void 0 : c.sm), u("md", c == null ? void 0 : c.md), u("lg", c == null ? void 0 : c.lg), u("xl", c == null ? void 0 : c.xl), u("xxl", c == null ? void 0 : c.xxl);
2095
2043
  const h = ["clarity-col", e].filter(Boolean).join(" ");
2096
- return j.createElement(i, { className: h, style: p, ...v }, l);
2044
+ return L.createElement(i, { className: h, style: p, ...v }, n);
2097
2045
  };
2098
- Dt.displayName = "Col";
2099
- const Zt = {
2046
+ It.displayName = "Col";
2047
+ const st = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: t, children: e });
2048
+ st.displayName = "Card.Header";
2049
+ const at = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: t, children: e });
2050
+ at.displayName = "Card.Content";
2051
+ const rt = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: t, children: e });
2052
+ rt.displayName = "Card.Footer";
2053
+ const me = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: t, children: e });
2054
+ me.Header = st;
2055
+ me.Content = at;
2056
+ me.Footer = rt;
2057
+ me.displayName = "Card";
2058
+ const Qt = {
2100
2059
  primary: {
2101
2060
  50: "#f0f9ff",
2102
2061
  100: "#e0f2fe",
@@ -2145,7 +2104,7 @@ const Zt = {
2145
2104
  800: "#065f46",
2146
2105
  900: "#064e3b"
2147
2106
  }
2148
- }, Kt = {
2107
+ }, Zt = {
2149
2108
  xs: "4px",
2150
2109
  sm: "8px",
2151
2110
  md: "16px",
@@ -2153,38 +2112,38 @@ const Zt = {
2153
2112
  xl: "32px",
2154
2113
  "2xl": "48px",
2155
2114
  "3xl": "64px"
2156
- }, es = (...e) => e.filter(Boolean).join(" "), ts = () => Math.random().toString(36).substr(2, 9);
2115
+ }, Kt = (...e) => e.filter(Boolean).join(" "), es = () => Math.random().toString(36).substr(2, 9);
2157
2116
  export {
2158
- qt as Accordion,
2159
- Ht as Badge,
2160
- me as Box,
2161
- Vt as Button,
2162
- Mt as ButtonGroup,
2163
- Gt as ButtonIcon,
2164
- Ut as ButtonLink,
2165
- ue as Card,
2166
- gt as CheckInput,
2167
- Dt as Col,
2168
- Yt as Command,
2117
+ Ut as Accordion,
2118
+ At as Badge,
2119
+ ft as Box,
2120
+ Ht as Button,
2121
+ Vt as ButtonGroup,
2122
+ zt as ButtonIcon,
2123
+ Gt as ButtonLink,
2124
+ me as Card,
2125
+ Ct as CheckInput,
2126
+ It as Col,
2127
+ Xt as Command,
2169
2128
  te as ConfirmationDialog,
2170
2129
  ce as Dropdown,
2171
- yt as Input,
2172
- _t as InputSwitch,
2130
+ ht as Input,
2131
+ gt as InputSwitch,
2173
2132
  ee as Modal,
2174
- Ct as MultiSelect,
2175
- ne as Offcanvas,
2176
- Et as Row,
2177
- bt as Select,
2178
- Qt as Spinner,
2179
- Jt as Table,
2180
- Je as Tabs,
2181
- vt as Textarea,
2182
- zt as ToastProvider,
2183
- Xt as Tooltip,
2184
- es as cn,
2185
- Zt as colors,
2186
- ts as generateId,
2187
- Kt as spacing,
2188
- ge as typography,
2189
- Ft as useToast
2133
+ bt as MultiSelect,
2134
+ le as Offcanvas,
2135
+ St as Row,
2136
+ vt as Select,
2137
+ Jt as Spinner,
2138
+ Yt as Table,
2139
+ Ge as Tabs,
2140
+ yt as Textarea,
2141
+ Ft as ToastProvider,
2142
+ qt as Tooltip,
2143
+ Kt as cn,
2144
+ Qt as colors,
2145
+ es as generateId,
2146
+ Zt as spacing,
2147
+ Ne as typography,
2148
+ Mt as useToast
2190
2149
  };