beth-clarity 1.1.22 → 1.1.23

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