beth-clarity 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { jsx as e, jsxs as w, Fragment as jt } from "react/jsx-runtime";
2
- import I, { useState as D, useRef as et, useEffect as J, useLayoutEffect as Lt, forwardRef as be, isValidElement as ot, createContext as ct, cloneElement as rt, useContext as dt, useMemo as vt, useCallback as _t, Children as _e } from "react";
3
- import we, { createPortal as Ne } from "react-dom";
4
- const Ke = ({
1
+ import { jsx as e, jsxs as w, Fragment as St } from "react/jsx-runtime";
2
+ import W, { useState as z, useRef as at, useEffect as Q, useLayoutEffect as Et, forwardRef as we, isValidElement as ot, createContext as ct, cloneElement as rt, useContext as dt, useMemo as gt, useCallback as _t, Children as Ne } from "react";
3
+ import Ce, { createPortal as $e } from "react-dom";
4
+ const ta = ({
5
5
  variant: t = "primary",
6
6
  size: a = "medium",
7
7
  bgColor: r,
@@ -13,21 +13,21 @@ const Ke = ({
13
13
  ...d
14
14
  }) => {
15
15
  const i = "clarity-badge", u = !!r;
16
- let g = "";
17
- u ? g = `${i}--custom-bg` : g = `${i}--${t}`;
18
- const f = [
16
+ let y = "";
17
+ u ? y = `${i}--custom-bg` : y = `${i}--${t}`;
18
+ const p = [
19
19
  i,
20
- g,
20
+ y,
21
21
  `${i}--${a}`,
22
22
  s ? `${i}--rounded` : "",
23
23
  c ? `${i}--outlined` : "",
24
24
  o
25
- ].filter(Boolean).join(" "), p = {};
26
- return u && (p.backgroundColor = r, l && (p.color = l)), /* @__PURE__ */ e(
25
+ ].filter(Boolean).join(" "), f = {};
26
+ return u && (f.backgroundColor = r, l && (f.color = l)), /* @__PURE__ */ e(
27
27
  "span",
28
28
  {
29
- className: f,
30
- style: p,
29
+ className: p,
30
+ style: f,
31
31
  ...d,
32
32
  children: n
33
33
  }
@@ -59,7 +59,7 @@ const Ke = ({
59
59
  wide: "0.025em",
60
60
  wider: "0.05em"
61
61
  }
62
- }, Ct = (t) => {
62
+ }, $t = (t) => {
63
63
  if (t) {
64
64
  if (t.startsWith("#") || t.startsWith("rgb") || t.startsWith("hsl") || t === "transparent")
65
65
  return t;
@@ -69,7 +69,7 @@ const Ke = ({
69
69
  }
70
70
  return `var(--clarity-${t})`;
71
71
  }
72
- }, nt = (t) => t !== void 0 ? `var(--clarity-spacing-${t})` : void 0, Ce = I.forwardRef(
72
+ }, nt = (t) => t !== void 0 ? `var(--clarity-spacing-${t})` : void 0, xe = W.forwardRef(
73
73
  (t, a) => {
74
74
  const {
75
75
  children: r,
@@ -81,80 +81,80 @@ const Ke = ({
81
81
  justifyContent: d,
82
82
  gap: i,
83
83
  m: u,
84
- mt: g,
85
- mr: f,
86
- mb: p,
87
- ml: y,
88
- mx: b,
84
+ mt: y,
85
+ mr: p,
86
+ mb: f,
87
+ ml: b,
88
+ mx: v,
89
89
  my: N,
90
90
  p: m,
91
- pt: h,
92
- pr: _,
91
+ pt: g,
92
+ pr: C,
93
93
  pb: x,
94
- pl: E,
95
- px: C,
96
- py: B,
97
- bg: R,
98
- color: $,
99
- fontSize: k,
100
- fontWeight: A,
101
- textAlign: H,
102
- lineHeight: S,
103
- letterSpacing: z,
104
- borderRadius: M,
105
- borderTopLeftRadius: F,
106
- borderTopRightRadius: j,
107
- borderBottomLeftRadius: U,
108
- borderBottomRightRadius: L,
109
- boxShadow: K,
110
- borderWidth: P,
111
- borderTopWidth: Z,
112
- borderRightWidth: q,
113
- borderBottomWidth: tt,
114
- borderLeftWidth: O,
115
- borderXWidth: X,
116
- borderYWidth: V,
117
- borderColor: Y,
118
- overflow: lt,
119
- ...v
120
- } = t, W = (G, Q) => {
121
- if (G === void 0 || G === 0) return;
122
- const at = `var(--clarity-border-width-${G})`, it = Q ? Ct(Q) : "currentColor";
123
- return `${at} solid ${it}`;
124
- }, T = I.useMemo(() => ({
94
+ pl: B,
95
+ px: k,
96
+ py: j,
97
+ bg: $,
98
+ color: S,
99
+ fontSize: _,
100
+ fontWeight: M,
101
+ textAlign: I,
102
+ lineHeight: E,
103
+ letterSpacing: X,
104
+ borderRadius: L,
105
+ borderTopLeftRadius: U,
106
+ borderTopRightRadius: H,
107
+ borderBottomLeftRadius: D,
108
+ borderBottomRightRadius: V,
109
+ boxShadow: F,
110
+ borderWidth: tt,
111
+ borderTopWidth: K,
112
+ borderRightWidth: Y,
113
+ borderBottomWidth: P,
114
+ borderLeftWidth: R,
115
+ borderXWidth: Z,
116
+ borderYWidth: q,
117
+ borderColor: A,
118
+ overflow: et,
119
+ ...lt
120
+ } = t, h = (T, G) => {
121
+ if (T === void 0 || T === 0) return;
122
+ const J = `var(--clarity-border-width-${T})`, it = G ? $t(G) : "currentColor";
123
+ return `${J} solid ${it}`;
124
+ }, O = W.useMemo(() => ({
125
125
  display: n,
126
126
  position: o,
127
127
  flexDirection: s,
128
128
  alignItems: c,
129
129
  justifyContent: d,
130
130
  gap: nt(i),
131
- marginTop: nt(g ?? N ?? u),
132
- marginRight: nt(f ?? b ?? u),
133
- marginBottom: nt(p ?? N ?? u),
134
- marginLeft: nt(y ?? b ?? u),
135
- paddingTop: nt(h ?? B ?? m),
136
- paddingRight: nt(_ ?? C ?? m),
137
- paddingBottom: nt(x ?? B ?? m),
138
- paddingLeft: nt(E ?? C ?? m),
139
- backgroundColor: R ? Ct(R) : void 0,
140
- color: $ ? Ct($) : void 0,
141
- fontSize: k ? `var(--clarity-font-size-${k})` : void 0,
142
- fontWeight: A ? Bt.fontWeight[A] : void 0,
143
- textAlign: H,
144
- lineHeight: S,
145
- letterSpacing: z ? Bt.letterSpacing[z] : void 0,
146
- borderRadius: M ? `var(--clarity-radius-${M})` : void 0,
147
- borderTopLeftRadius: F ? `var(--clarity-radius-${F})` : void 0,
148
- borderTopRightRadius: j ? `var(--clarity-radius-${j})` : void 0,
149
- borderBottomLeftRadius: U ? `var(--clarity-radius-${U})` : void 0,
150
- borderBottomRightRadius: L ? `var(--clarity-radius-${L})` : void 0,
151
- boxShadow: K ? `var(--clarity-shadow-${K})` : void 0,
152
- border: W(P, Y),
153
- borderTop: W(Z ?? V),
154
- borderRight: W(q ?? X),
155
- borderBottom: W(tt ?? V),
156
- borderLeft: W(O ?? X),
157
- overflow: lt
131
+ marginTop: nt(y ?? N ?? u),
132
+ marginRight: nt(p ?? v ?? u),
133
+ marginBottom: nt(f ?? N ?? u),
134
+ marginLeft: nt(b ?? v ?? u),
135
+ paddingTop: nt(g ?? j ?? m),
136
+ paddingRight: nt(C ?? k ?? m),
137
+ paddingBottom: nt(x ?? j ?? m),
138
+ paddingLeft: nt(B ?? k ?? m),
139
+ backgroundColor: $ ? $t($) : void 0,
140
+ color: S ? $t(S) : void 0,
141
+ fontSize: _ ? `var(--clarity-font-size-${_})` : void 0,
142
+ fontWeight: M ? Bt.fontWeight[M] : void 0,
143
+ textAlign: I,
144
+ lineHeight: E,
145
+ letterSpacing: X ? Bt.letterSpacing[X] : void 0,
146
+ borderRadius: L ? `var(--clarity-radius-${L})` : void 0,
147
+ borderTopLeftRadius: U ? `var(--clarity-radius-${U})` : void 0,
148
+ borderTopRightRadius: H ? `var(--clarity-radius-${H})` : void 0,
149
+ borderBottomLeftRadius: D ? `var(--clarity-radius-${D})` : void 0,
150
+ borderBottomRightRadius: V ? `var(--clarity-radius-${V})` : void 0,
151
+ boxShadow: F ? `var(--clarity-shadow-${F})` : void 0,
152
+ border: h(tt, A),
153
+ borderTop: h(K ?? q),
154
+ borderRight: h(Y ?? Z),
155
+ borderBottom: h(P ?? q),
156
+ borderLeft: h(R ?? Z),
157
+ overflow: et
158
158
  }), [
159
159
  n,
160
160
  o,
@@ -163,47 +163,47 @@ const Ke = ({
163
163
  d,
164
164
  i,
165
165
  u,
166
- g,
167
- f,
168
- p,
169
166
  y,
167
+ p,
168
+ f,
170
169
  b,
170
+ v,
171
171
  N,
172
172
  m,
173
- h,
174
- _,
175
- x,
176
- E,
173
+ g,
177
174
  C,
175
+ x,
178
176
  B,
179
- R,
180
- $,
181
177
  k,
182
- A,
183
- H,
178
+ j,
179
+ $,
184
180
  S,
185
- z,
181
+ _,
186
182
  M,
187
- F,
188
- j,
189
- U,
183
+ I,
184
+ E,
185
+ X,
190
186
  L,
187
+ U,
188
+ H,
189
+ D,
190
+ V,
191
+ F,
192
+ tt,
191
193
  K,
194
+ Y,
192
195
  P,
196
+ R,
193
197
  Z,
194
198
  q,
195
- tt,
196
- O,
197
- X,
198
- V,
199
- Y,
200
- lt
199
+ A,
200
+ et
201
201
  ]);
202
- return /* @__PURE__ */ e("div", { ref: a, className: `clarity-box ${l || ""}`.trim(), style: T, ...v, children: r });
202
+ return /* @__PURE__ */ e("div", { ref: a, className: `clarity-box ${l || ""}`.trim(), style: O, ...lt, children: r });
203
203
  }
204
204
  );
205
- Ce.displayName = "Box";
206
- const Pe = ({
205
+ xe.displayName = "Box";
206
+ const ke = ({
207
207
  variant: t = "primary",
208
208
  size: a = "medium",
209
209
  disabled: r = !1,
@@ -215,101 +215,96 @@ const Pe = ({
215
215
  title: d,
216
216
  customColor: i,
217
217
  customColorHover: u,
218
- ...g
218
+ ...y
219
219
  }) => {
220
- const f = "clarity-button", p = [
221
- f,
222
- !i && `${f}--${t}`,
223
- `${f}--${a}`,
224
- l && `${f}--loading`,
225
- r && `${f}--disabled`,
220
+ const p = "clarity-button", f = [
221
+ p,
222
+ !i && `${p}--${t}`,
223
+ `${p}--${a}`,
224
+ l && `${p}--loading`,
225
+ r && `${p}--disabled`,
226
226
  c
227
- ].filter(Boolean).join(" "), y = {};
228
- return i && (y["--button-bg"] = i, y["--button-hover-bg"] = u || `${i}E6`, y["--button-border"] = i, y["--button-hover-border"] = u || `${i}E6`, y["--button-fg"] = "#fff"), /* @__PURE__ */ w(
227
+ ].filter(Boolean).join(" "), b = {};
228
+ return i && (b["--button-bg"] = i, b["--button-hover-bg"] = u || `${i}E6`, b["--button-border"] = i, b["--button-hover-border"] = u || `${i}E6`, b["--button-fg"] = "#fff"), /* @__PURE__ */ w(
229
229
  "button",
230
230
  {
231
- className: p,
232
- style: y,
231
+ className: f,
232
+ style: b,
233
233
  disabled: r || l,
234
234
  onClick: o,
235
235
  type: s,
236
236
  title: d,
237
- ...g,
237
+ ...y,
238
238
  children: [
239
- l && /* @__PURE__ */ e("div", { className: `${f}__spinner` }),
239
+ l && /* @__PURE__ */ e("div", { className: `${p}__spinner` }),
240
240
  n
241
241
  ]
242
242
  }
243
243
  );
244
- }, ta = ({
244
+ }, ea = ({
245
245
  variant: t = "primary",
246
246
  size: a = "medium",
247
- filled: r = !0,
248
- items: l,
249
- value: n,
250
- multiple: o = !1,
251
- disabled: s = !1,
252
- onChange: c,
253
- className: d = "",
254
- ...i
247
+ items: r,
248
+ value: l,
249
+ multiple: n = !1,
250
+ disabled: o = !1,
251
+ onChange: s,
252
+ className: c = "",
253
+ ...d
255
254
  }) => {
256
- const u = "clarity-button-group", g = `${u}--${t}`, f = [
257
- u,
258
- g,
259
- `${u}--${a}`,
260
- !r && `${u}--outline`,
261
- s && `${u}--disabled`,
262
- d
263
- ].filter(Boolean).join(" "), p = (b) => {
264
- if (s || !c) return;
265
- const N = l.find((m) => m.id === b);
266
- if (!(N != null && N.disabled))
267
- if (o) {
268
- const m = Array.isArray(n) ? n : [], h = m.includes(b) ? m.filter((_) => _ !== b) : [...m, b];
269
- c(h);
255
+ const i = "clarity-button-group", u = [
256
+ i,
257
+ c
258
+ ].filter(Boolean).join(" "), y = (f) => {
259
+ if (o || !s) return;
260
+ const b = r.find((v) => v.id === f);
261
+ if (!(b != null && b.disabled))
262
+ if (n) {
263
+ const v = Array.isArray(l) ? l : [], N = v.includes(f) ? v.filter((m) => m !== f) : [...v, f];
264
+ s(N);
270
265
  } else
271
- c(b);
272
- }, y = (b) => o ? Array.isArray(n) && n.includes(b) : n === b;
266
+ s(f);
267
+ }, p = (f) => n ? Array.isArray(l) && l.includes(f) : l === f;
273
268
  return /* @__PURE__ */ e(
274
269
  "div",
275
270
  {
276
- className: f,
271
+ className: u,
277
272
  role: "group",
278
- ...i,
279
- children: l.map((b, N) => {
280
- const m = y(b.id), h = [
281
- `${u}__item`,
282
- m && `${u}__item--selected`,
283
- b.disabled && `${u}__item--disabled`,
284
- N === 0 && `${u}__item--first`,
285
- N === l.length - 1 && `${u}__item--last`
273
+ ...d,
274
+ children: r.map((f, b) => {
275
+ const v = p(f.id), N = v ? t : `${t}-outline`, m = [
276
+ `${i}__item`,
277
+ v && `${i}__item--selected`,
278
+ b === 0 && `${i}__item--first`,
279
+ b === r.length - 1 && `${i}__item--last`
286
280
  ].filter(Boolean).join(" ");
287
281
  return /* @__PURE__ */ w(
288
- "button",
282
+ ke,
289
283
  {
290
- className: h,
291
- onClick: () => p(b.id),
292
- disabled: s || b.disabled,
293
- type: "button",
294
- "aria-pressed": m,
284
+ variant: N,
285
+ size: a,
286
+ className: m,
287
+ onClick: () => y(f.id),
288
+ disabled: o || f.disabled,
289
+ "aria-pressed": v,
295
290
  children: [
296
- b.icon && /* @__PURE__ */ e("span", { className: `${u}__item-icon`, children: b.icon }),
297
- /* @__PURE__ */ e("span", { className: `${u}__item-label`, children: b.label })
291
+ f.icon && /* @__PURE__ */ e("span", { className: `${i}__item-icon`, children: f.icon }),
292
+ /* @__PURE__ */ e("span", { className: `${i}__item-label`, children: f.label })
298
293
  ]
299
294
  },
300
- b.id
295
+ f.id
301
296
  );
302
297
  })
303
298
  }
304
299
  );
305
300
  };
306
- var Et = {
301
+ var Lt = {
307
302
  color: void 0,
308
303
  size: void 0,
309
304
  className: void 0,
310
305
  style: void 0,
311
306
  attr: void 0
312
- }, Tt = I.createContext && I.createContext(Et), st = function() {
307
+ }, jt = W.createContext && W.createContext(Lt), st = function() {
313
308
  return st = Object.assign || function(t) {
314
309
  for (var a, r = 1, l = arguments.length; r < l; r++) {
315
310
  a = arguments[r];
@@ -317,31 +312,31 @@ var Et = {
317
312
  }
318
313
  return t;
319
314
  }, st.apply(this, arguments);
320
- }, $e = function(t, a) {
315
+ }, Te = function(t, a) {
321
316
  var r = {};
322
317
  for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && a.indexOf(l) < 0 && (r[l] = t[l]);
323
318
  if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, l = Object.getOwnPropertySymbols(t); n < l.length; n++)
324
319
  a.indexOf(l[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, l[n]) && (r[l[n]] = t[l[n]]);
325
320
  return r;
326
321
  };
327
- function St(t) {
322
+ function Rt(t) {
328
323
  return t && t.map(function(a, r) {
329
- return I.createElement(a.tag, st({
324
+ return W.createElement(a.tag, st({
330
325
  key: r
331
- }, a.attr), St(a.child));
326
+ }, a.attr), Rt(a.child));
332
327
  });
333
328
  }
334
- function xe(t) {
329
+ function Be(t) {
335
330
  return function(a) {
336
- return I.createElement(ke, st({
331
+ return W.createElement(je, st({
337
332
  attr: st({}, t.attr)
338
- }, a), St(t.child));
333
+ }, a), Rt(t.child));
339
334
  };
340
335
  }
341
- function ke(t) {
336
+ function je(t) {
342
337
  var a = function(r) {
343
- var l = t.attr, n = t.size, o = t.title, s = $e(t, ["attr", "size", "title"]), c = n || r.size || "1em", d;
344
- return r.className && (d = r.className), t.className && (d = (d ? d + " " : "") + t.className), I.createElement("svg", st({
338
+ var l = t.attr, n = t.size, o = t.title, s = Te(t, ["attr", "size", "title"]), c = n || r.size || "1em", d;
339
+ return r.className && (d = r.className), t.className && (d = (d ? d + " " : "") + t.className), W.createElement("svg", st({
345
340
  stroke: "currentColor",
346
341
  fill: "currentColor",
347
342
  strokeWidth: "0"
@@ -353,16 +348,16 @@ function ke(t) {
353
348
  height: c,
354
349
  width: c,
355
350
  xmlns: "http://www.w3.org/2000/svg"
356
- }), o && I.createElement("title", null, o), t.children);
351
+ }), o && W.createElement("title", null, o), t.children);
357
352
  };
358
- return Tt !== void 0 ? I.createElement(Tt.Consumer, null, function(r) {
353
+ return jt !== void 0 ? W.createElement(jt.Consumer, null, function(r) {
359
354
  return a(r);
360
- }) : a(Et);
355
+ }) : a(Lt);
361
356
  }
362
- function Be(t) {
363
- return xe({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z" } }] })(t);
357
+ function pt(t) {
358
+ return Be({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z" } }] })(t);
364
359
  }
365
- const pt = ({
360
+ const yt = ({
366
361
  content: t,
367
362
  position: a = "top",
368
363
  variant: r = "primary",
@@ -374,28 +369,28 @@ const pt = ({
374
369
  disabled: d = !1,
375
370
  delay: i = 200,
376
371
  hideDelay: u = 100,
377
- trigger: g = "hover",
378
- arrow: f = !0,
379
- ...p
372
+ trigger: y = "hover",
373
+ arrow: p = !0,
374
+ ...f
380
375
  }) => {
381
- const [y, b] = D(!1), [N, m] = D(a), [h, _] = D({ top: 0, left: 0 }), [x, E] = D(null), C = et(null), B = et(null), R = "clarity-tooltip", $ = 8, k = !!l || o;
382
- let A = "";
383
- k ? A = `${R}__content--custom-bg` : A = `${R}__content--${r}`;
384
- const H = [
385
- R,
386
- `${R}--${N}`,
376
+ const [b, v] = z(!1), [N, m] = z(a), [g, C] = z({ top: 0, left: 0 }), [x, B] = z(null), k = at(null), j = at(null), $ = "clarity-tooltip", S = 8, _ = !!l || o;
377
+ let M = "";
378
+ _ ? M = `${$}__content--custom-bg` : M = `${$}__content--${r}`;
379
+ const I = [
380
+ $,
381
+ `${$}--${N}`,
387
382
  c
388
- ].filter(Boolean).join(" "), S = [
389
- `${R}__content`,
390
- A,
391
- f && `${R}__content--arrow`
392
- ].filter(Boolean).join(" "), z = {}, M = {};
393
- k && (M["--tooltip-bg-color"] = l || "#FFFFFF"), (n || o) && (M["--tooltip-text-color"] = n || "var(--clarity-gray-900)");
394
- const F = {
395
- ...z,
396
- ...Object.keys(M).length > 0 ? M : {},
397
- top: h.top,
398
- left: h.left,
383
+ ].filter(Boolean).join(" "), E = [
384
+ `${$}__content`,
385
+ M,
386
+ p && `${$}__content--arrow`
387
+ ].filter(Boolean).join(" "), X = {}, L = {};
388
+ _ && (L["--tooltip-bg-color"] = l || "#FFFFFF"), (n || o) && (L["--tooltip-text-color"] = n || "var(--clarity-gray-900)");
389
+ const U = {
390
+ ...X,
391
+ ...Object.keys(L).length > 0 ? L : {},
392
+ top: g.top,
393
+ left: g.left,
399
394
  // Resetar estilos que vêm do CSS para posicionamento relativo
400
395
  position: "absolute",
401
396
  bottom: "auto",
@@ -404,72 +399,72 @@ const pt = ({
404
399
  transform: "none",
405
400
  zIndex: 99999
406
401
  // Garantir que fique acima de modais (geralmente 1000-2000)
407
- }, j = () => {
402
+ }, H = () => {
408
403
  if (d) return;
409
404
  x && clearTimeout(x);
410
- const O = setTimeout(() => {
411
- b(!0);
405
+ const R = setTimeout(() => {
406
+ v(!0);
412
407
  }, i);
413
- E(O);
414
- }, U = () => {
408
+ B(R);
409
+ }, D = () => {
415
410
  x && clearTimeout(x);
416
- const O = setTimeout(() => {
417
- b(!1);
411
+ const R = setTimeout(() => {
412
+ v(!1);
418
413
  }, u);
419
- E(O);
420
- }, L = () => {
421
- d || (y ? U() : j());
422
- }, K = () => {
423
- d || j();
424
- }, P = () => {
425
- U();
414
+ B(R);
415
+ }, V = () => {
416
+ d || (b ? D() : H());
417
+ }, F = () => {
418
+ d || H();
419
+ }, tt = () => {
420
+ D();
426
421
  };
427
- J(() => () => {
422
+ Q(() => () => {
428
423
  x && clearTimeout(x);
429
424
  }, [x]);
430
- const Z = () => {
431
- if (!y || !B.current || !C.current) return;
432
- const O = B.current.getBoundingClientRect(), X = C.current.getBoundingClientRect(), V = window.scrollX, Y = window.scrollY, lt = window.innerWidth, v = window.innerHeight, W = {
425
+ const K = () => {
426
+ if (!b || !j.current || !k.current) return;
427
+ const R = j.current.getBoundingClientRect(), Z = k.current.getBoundingClientRect(), q = window.scrollX, A = window.scrollY, et = window.innerWidth, lt = window.innerHeight, h = {
433
428
  top: {
434
- top: O.top + Y - X.height - $,
435
- left: O.left + V + (O.width - X.width) / 2
429
+ top: R.top + A - Z.height - S,
430
+ left: R.left + q + (R.width - Z.width) / 2
436
431
  },
437
432
  bottom: {
438
- top: O.bottom + Y + $,
439
- left: O.left + V + (O.width - X.width) / 2
433
+ top: R.bottom + A + S,
434
+ left: R.left + q + (R.width - Z.width) / 2
440
435
  },
441
436
  left: {
442
- top: O.top + Y + (O.height - X.height) / 2,
443
- left: O.left + V - X.width - $
437
+ top: R.top + A + (R.height - Z.height) / 2,
438
+ left: R.left + q - Z.width - S
444
439
  },
445
440
  right: {
446
- top: O.top + Y + (O.height - X.height) / 2,
447
- left: O.right + V + $
441
+ top: R.top + A + (R.height - Z.height) / 2,
442
+ left: R.right + q + S
448
443
  },
449
444
  "top-left": {
450
- top: O.top + Y - X.height - $,
451
- left: O.left + V
445
+ top: R.top + A - Z.height - S,
446
+ left: R.left + q
452
447
  },
453
448
  "top-right": {
454
- top: O.top + Y - X.height - $,
455
- left: O.right + V - X.width
449
+ top: R.top + A - Z.height - S,
450
+ left: R.right + q - Z.width
456
451
  },
457
452
  "bottom-left": {
458
- top: O.bottom + Y + $,
459
- left: O.left + V
453
+ top: R.bottom + A + S,
454
+ left: R.left + q
460
455
  },
461
456
  "bottom-right": {
462
- top: O.bottom + Y + $,
463
- left: O.right + V - X.width
457
+ top: R.bottom + A + S,
458
+ left: R.right + q - Z.width
464
459
  }
465
460
  };
466
- let T = a;
467
- const G = (Q) => {
468
- const at = W[Q], it = at.top - Y, ft = at.left - V;
469
- return it >= 0 && it + X.height <= v && ft >= 0 && ft + X.width <= lt;
461
+ let O = a;
462
+ const T = (G) => {
463
+ const J = h[G], it = J.top - A, ft = J.left - q;
464
+ return it >= 0 && it + Z.height <= lt && ft >= 0 && ft + Z.width <= et;
470
465
  };
471
- if (!G(T)) {
472
- const at = {
466
+ if (!T(O)) {
467
+ const J = {
473
468
  top: "bottom",
474
469
  bottom: "top",
475
470
  left: "right",
@@ -478,53 +473,53 @@ const pt = ({
478
473
  "top-right": "bottom-right",
479
474
  "bottom-left": "top-left",
480
475
  "bottom-right": "top-right"
481
- }[T];
482
- at && G(at) && (T = at);
476
+ }[O];
477
+ J && T(J) && (O = J);
483
478
  }
484
- if (m(T), _(W[T]), C.current) {
485
- const Q = Math.round(O.width / 2);
486
- C.current.style.setProperty("--tooltip-arrow-offset", `${Q}px`);
479
+ if (m(O), C(h[O]), k.current) {
480
+ const G = Math.round(R.width / 2);
481
+ k.current.style.setProperty("--tooltip-arrow-offset", `${G}px`);
487
482
  }
488
483
  };
489
- Lt(() => {
490
- if (y)
491
- return Z(), window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z), () => {
492
- window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
484
+ Et(() => {
485
+ if (b)
486
+ return K(), window.addEventListener("scroll", K, !0), window.addEventListener("resize", K), () => {
487
+ window.removeEventListener("scroll", K, !0), window.removeEventListener("resize", K);
493
488
  };
494
- }, [y, a, t]);
495
- const q = {};
496
- let tt = g;
489
+ }, [b, a, t]);
490
+ const Y = {};
491
+ let P = y;
497
492
  if (typeof window < "u") {
498
- const O = "ontouchstart" in window || navigator.maxTouchPoints > 0 || window.matchMedia && window.matchMedia("(pointer: coarse)").matches;
499
- g === "hover" && O && (tt = "focus");
493
+ const R = "ontouchstart" in window || navigator.maxTouchPoints > 0 || window.matchMedia && window.matchMedia("(pointer: coarse)").matches;
494
+ y === "hover" && R && (P = "focus");
500
495
  }
501
- return tt === "hover" ? (q.onMouseEnter = j, q.onMouseLeave = U) : tt === "click" ? q.onClick = L : tt === "focus" && (q.onFocus = K, q.onBlur = P), /* @__PURE__ */ w(jt, { children: [
496
+ return P === "hover" ? (Y.onMouseEnter = H, Y.onMouseLeave = D) : P === "click" ? Y.onClick = V : P === "focus" && (Y.onFocus = F, Y.onBlur = tt), /* @__PURE__ */ w(St, { children: [
502
497
  /* @__PURE__ */ e(
503
498
  "div",
504
499
  {
505
- ref: B,
506
- className: `${R}__trigger`,
507
- ...q,
508
- ...p,
500
+ ref: j,
501
+ className: `${$}__trigger`,
502
+ ...Y,
503
+ ...f,
509
504
  children: s
510
505
  }
511
506
  ),
512
- y && Ne(
507
+ b && $e(
513
508
  /* @__PURE__ */ e(
514
509
  "div",
515
510
  {
516
- ref: C,
517
- className: H,
518
- style: F,
511
+ ref: k,
512
+ className: I,
513
+ style: U,
519
514
  role: "tooltip",
520
- "aria-hidden": !y,
521
- children: /* @__PURE__ */ e("div", { className: S, children: t })
515
+ "aria-hidden": !b,
516
+ children: /* @__PURE__ */ e("div", { className: E, children: t })
522
517
  }
523
518
  ),
524
519
  document.body
525
520
  )
526
521
  ] });
527
- }, Te = I.forwardRef(({
522
+ }, Se = W.forwardRef(({
528
523
  variant: t = "primary",
529
524
  size: a = "medium",
530
525
  label: r,
@@ -536,335 +531,337 @@ const pt = ({
536
531
  helper: d = !1,
537
532
  helperPosition: i = "top-right",
538
533
  className: u = "",
539
- disabled: g = !1,
540
- value: f,
541
- defaultValue: p,
542
- onFocus: y,
543
- onBlur: b,
534
+ disabled: y = !1,
535
+ value: p,
536
+ defaultValue: f,
537
+ onFocus: b,
538
+ onBlur: v,
544
539
  ...N
545
540
  }, m) => {
546
- const [h, _] = D(!1), [x, E] = D(!1), C = et(null), B = N.id || `input-${Math.random().toString(36).substr(2, 9)}`, R = et(null), [$, k] = D(!1);
547
- I.useImperativeHandle(m, () => C.current), J(() => {
548
- const j = C.current;
549
- j && E(j.value.length > 0);
550
- }, [f, p]), J(() => {
551
- const j = R.current;
552
- if (!j) return;
553
- const U = () => {
554
- const K = j.scrollWidth > j.clientWidth;
555
- k((P) => P !== K ? K : P);
541
+ const [g, C] = z(!1), [x, B] = z(!1), k = at(null), j = N.id || `input-${Math.random().toString(36).substr(2, 9)}`, $ = at(null), [S, _] = z(!1);
542
+ W.useImperativeHandle(m, () => k.current), Q(() => {
543
+ const H = k.current;
544
+ H && B(H.value.length > 0);
545
+ }, [p, f]), Q(() => {
546
+ const H = $.current;
547
+ if (!H) return;
548
+ const D = () => {
549
+ const F = H.scrollWidth > H.clientWidth;
550
+ _((tt) => tt !== F ? F : tt);
556
551
  };
557
- U();
558
- const L = new ResizeObserver(() => U());
559
- return L.observe(j), () => L.disconnect();
560
- }, [r, h, x, a, s, c]);
561
- const A = (j) => {
562
- _(!0), y == null || y(j);
563
- }, H = (j) => {
564
- _(!1), E(j.target.value.length > 0), b == null || b(j);
565
- }, S = [
552
+ D();
553
+ const V = new ResizeObserver(() => D());
554
+ return V.observe(H), () => V.disconnect();
555
+ }, [r, g, x, a, s, c]);
556
+ const M = (H) => {
557
+ C(!0), b == null || b(H);
558
+ }, I = (H) => {
559
+ C(!1), B(H.target.value.length > 0), v == null || v(H);
560
+ }, E = [
566
561
  "clarity-input",
567
562
  "clarity-input--outlined",
568
563
  `clarity-input--${a}`,
569
564
  t && `clarity-input--${t}`,
570
565
  n && "clarity-input--error",
571
- g && "clarity-input--disabled",
572
- h && "clarity-input--focused",
566
+ y && "clarity-input--disabled",
567
+ g && "clarity-input--focused",
573
568
  x && "clarity-input--has-value",
574
569
  s && "clarity-input--with-start-icon",
575
570
  c && "clarity-input--with-end-icon",
576
571
  u
577
- ].filter(Boolean).join(" "), z = [
572
+ ].filter(Boolean).join(" "), X = [
578
573
  "clarity-input__label",
579
- $ && "clarity-input__label--truncate"
580
- ].filter(Boolean).join(" "), M = i != null && i.endsWith("left") ? "left" : "right", F = (j, U) => {
574
+ S && "clarity-input__label--truncate"
575
+ ].filter(Boolean).join(" "), L = i != null && i.endsWith("left") ? "left" : "right", U = (H, D) => {
581
576
  if (!d) return null;
582
- const L = typeof d == "object" ? d : void 0, K = (L == null ? void 0 : L.content) ?? "Ajuda", P = (L == null ? void 0 : L.plain) === !0, Z = L == null ? void 0 : L.variant, q = L == null ? void 0 : L.bgColor, tt = L == null ? void 0 : L.textColor;
577
+ const V = typeof d == "object" ? d : void 0, F = (V == null ? void 0 : V.content) ?? "Ajuda", tt = (V == null ? void 0 : V.plain) === !0, K = V == null ? void 0 : V.variant, Y = V == null ? void 0 : V.bgColor, P = V == null ? void 0 : V.textColor;
583
578
  return /* @__PURE__ */ e(
584
- pt,
579
+ yt,
585
580
  {
586
- content: K,
587
- position: j === "middle" ? U === "left" ? "left" : "right" : j === "top" ? U === "left" ? "top-left" : "top-right" : U === "left" ? "bottom-left" : "bottom-right",
581
+ content: F,
582
+ position: H === "middle" ? D === "left" ? "left" : "right" : H === "top" ? D === "left" ? "top-left" : "top-right" : D === "left" ? "bottom-left" : "bottom-right",
588
583
  trigger: "hover",
589
- variant: Z || t,
590
- plain: P,
591
- bgColor: q,
592
- textColor: tt,
593
- children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-input__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(Be, { size: j === "middle" ? 20 : 16 }) })
584
+ variant: K || t,
585
+ plain: tt,
586
+ bgColor: Y,
587
+ textColor: P,
588
+ children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-input__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(pt, { size: H === "middle" ? 20 : 16 }) })
594
589
  }
595
590
  );
596
591
  };
597
592
  return /* @__PURE__ */ w("div", { className: "clarity-input-wrapper", children: [
598
- d && (i == null ? void 0 : i.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-input__helper-row clarity-input__helper-row--top clarity-input__helper-row--${M}`, children: F("top", M) }),
599
- d && (i != null && i.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-input__middle-row clarity-input__middle-row--${M}`, children: [
600
- M === "left" && F("middle", M),
601
- /* @__PURE__ */ w("div", { className: S, children: [
593
+ d && (i == null ? void 0 : i.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-input__helper-row clarity-input__helper-row--top clarity-input__helper-row--${L}`, children: U("top", L) }),
594
+ d && (i != null && i.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-input__middle-row clarity-input__middle-row--${L}`, children: [
595
+ L === "left" && U("middle", L),
596
+ /* @__PURE__ */ w("div", { className: E, children: [
602
597
  s && /* @__PURE__ */ e("div", { className: "clarity-input__start-icon", children: s }),
603
598
  /* @__PURE__ */ w("div", { className: "clarity-input__field", children: [
604
599
  /* @__PURE__ */ e(
605
600
  "input",
606
601
  {
607
- ref: C,
608
- id: B,
602
+ ref: k,
603
+ id: j,
609
604
  className: "clarity-input__element",
610
- disabled: g,
611
- value: f,
612
- defaultValue: p,
613
- onFocus: A,
614
- onBlur: H,
605
+ disabled: y,
606
+ value: p,
607
+ defaultValue: f,
608
+ onFocus: M,
609
+ onBlur: I,
615
610
  "aria-label": l,
616
611
  ...N
617
612
  }
618
613
  ),
619
- r && /* @__PURE__ */ e("label", { ref: R, className: z, htmlFor: B, children: r })
614
+ r && /* @__PURE__ */ e("label", { ref: $, className: X, htmlFor: j, children: r })
620
615
  ] }),
621
616
  c && /* @__PURE__ */ e("div", { className: "clarity-input__end-icon", children: c })
622
617
  ] }),
623
- M === "right" && F("middle", M)
624
- ] }) : /* @__PURE__ */ w("div", { className: S, children: [
618
+ L === "right" && U("middle", L)
619
+ ] }) : /* @__PURE__ */ w("div", { className: E, children: [
625
620
  s && /* @__PURE__ */ e("div", { className: "clarity-input__start-icon", children: s }),
626
621
  /* @__PURE__ */ w("div", { className: "clarity-input__field", children: [
627
622
  /* @__PURE__ */ e(
628
623
  "input",
629
624
  {
630
- ref: C,
631
- id: B,
625
+ ref: k,
626
+ id: j,
632
627
  className: "clarity-input__element",
633
- disabled: g,
634
- value: f,
635
- defaultValue: p,
636
- onFocus: A,
637
- onBlur: H,
628
+ disabled: y,
629
+ value: p,
630
+ defaultValue: f,
631
+ onFocus: M,
632
+ onBlur: I,
638
633
  "aria-label": l,
639
634
  ...N
640
635
  }
641
636
  ),
642
- r && /* @__PURE__ */ e("label", { ref: R, className: z, htmlFor: B, children: r })
637
+ r && /* @__PURE__ */ e("label", { ref: $, className: X, htmlFor: j, children: r })
643
638
  ] }),
644
639
  c && /* @__PURE__ */ e("div", { className: "clarity-input__end-icon", children: c })
645
640
  ] }),
646
- d && (i == null ? void 0 : i.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-input__helper-row clarity-input__helper-row--bottom clarity-input__helper-row--${M}`, children: F("bottom", M) }),
647
- n && o && /* @__PURE__ */ e("div", { className: "clarity-input__helper-text", children: o })
641
+ d && (i == null ? void 0 : i.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-input__helper-row clarity-input__helper-row--bottom clarity-input__helper-row--${L}`, children: U("bottom", L) }),
642
+ (n && o || reserveErrorSpace) && /* @__PURE__ */ e("div", { className: "clarity-input__helper-text", style: o ? void 0 : { minHeight: "1.2em" }, children: o || " " })
648
643
  ] });
649
644
  });
650
- Te.displayName = "Input";
651
- const je = I.forwardRef(({
645
+ Se.displayName = "Input";
646
+ const Ee = W.forwardRef(({
652
647
  variant: t = "primary",
653
648
  size: a = "medium",
654
649
  label: r,
655
650
  helper: l = !1,
656
651
  helperPosition: n = "middle-right",
657
- error: o = !1,
658
- errorMessage: s,
659
- startIcon: c,
660
- endIcon: d,
661
- className: i = "",
662
- disabled: u = !1,
663
- value: g,
652
+ reserveErrorSpace: o = !1,
653
+ error: s = !1,
654
+ errorMessage: c,
655
+ startIcon: d,
656
+ endIcon: i,
657
+ className: u = "",
658
+ disabled: y = !1,
659
+ value: p,
664
660
  defaultValue: f,
665
- onFocus: p,
666
- onBlur: y,
667
- rows: b = 3,
668
- minHeight: N,
669
- maxHeight: m,
670
- resizable: h = !0,
671
- ..._
672
- }, x) => {
673
- const [E, C] = D(!1), [B, R] = D(!1), $ = et(null);
674
- I.useImperativeHandle(x, () => $.current), J(() => {
675
- const j = $.current;
676
- j && R(j.value.length > 0);
677
- }, [g, f]);
678
- const k = (j) => {
679
- C(!0), p == null || p(j);
680
- }, A = (j) => {
681
- C(!1), R(j.target.value.length > 0), y == null || y(j);
682
- }, H = [
661
+ onFocus: b,
662
+ onBlur: v,
663
+ rows: N = 3,
664
+ minHeight: m,
665
+ maxHeight: g,
666
+ resizable: C = !0,
667
+ ...x
668
+ }, B) => {
669
+ const [k, j] = z(!1), [$, S] = z(!1), _ = at(null);
670
+ W.useImperativeHandle(B, () => _.current), Q(() => {
671
+ const D = _.current;
672
+ D && S(D.value.length > 0);
673
+ }, [p, f]);
674
+ const M = (D) => {
675
+ j(!0), b == null || b(D);
676
+ }, I = (D) => {
677
+ j(!1), S(D.target.value.length > 0), v == null || v(D);
678
+ }, E = [
683
679
  "clarity-textarea",
684
680
  "clarity-textarea--outlined",
685
681
  `clarity-textarea--${a}`,
686
682
  t && `clarity-textarea--${t}`,
687
- o && "clarity-textarea--error",
688
- u && "clarity-textarea--disabled",
689
- E && "clarity-textarea--focused",
690
- B && "clarity-textarea--has-value",
691
- c && "clarity-textarea--with-start-icon",
692
- d && "clarity-textarea--with-end-icon",
693
- i
694
- ].filter(Boolean).join(" "), S = {
695
- resize: h ? "vertical" : "none",
696
- minHeight: N ? `${N}px` : void 0,
697
- maxHeight: m ? `${m}px` : void 0
698
- }, z = n != null && n.endsWith("left") ? "left" : "right", M = (j, U) => {
683
+ s && "clarity-textarea--error",
684
+ y && "clarity-textarea--disabled",
685
+ k && "clarity-textarea--focused",
686
+ $ && "clarity-textarea--has-value",
687
+ d && "clarity-textarea--with-start-icon",
688
+ i && "clarity-textarea--with-end-icon",
689
+ u
690
+ ].filter(Boolean).join(" "), X = {
691
+ resize: C ? "vertical" : "none",
692
+ minHeight: m ? `${m}px` : void 0,
693
+ maxHeight: g ? `${g}px` : void 0
694
+ }, L = n != null && n.endsWith("left") ? "left" : "right", U = (D, V) => {
699
695
  if (!l) return null;
700
- const L = typeof l == "object" ? l : void 0, K = (L == null ? void 0 : L.content) ?? "Ajuda", P = (L == null ? void 0 : L.plain) === !0, Z = L == null ? void 0 : L.variant, q = L == null ? void 0 : L.bgColor, tt = L == null ? void 0 : L.textColor, O = j === "middle" ? 20 : 16;
696
+ const F = typeof l == "object" ? l : void 0, tt = (F == null ? void 0 : F.content) ?? "Ajuda", K = (F == null ? void 0 : F.plain) === !0, Y = F == null ? void 0 : F.variant, P = F == null ? void 0 : F.bgColor, R = F == null ? void 0 : F.textColor;
701
697
  return /* @__PURE__ */ e(
702
- pt,
698
+ yt,
703
699
  {
704
- content: K,
705
- position: j === "middle" ? U === "left" ? "left" : "right" : j === "top" ? U === "left" ? "top-left" : "top-right" : U === "left" ? "bottom-left" : "bottom-right",
700
+ content: tt,
701
+ position: D === "middle" ? V === "left" ? "left" : "right" : D === "top" ? V === "left" ? "top-left" : "top-right" : V === "left" ? "bottom-left" : "bottom-right",
706
702
  trigger: "hover",
707
- variant: Z || t,
708
- plain: P,
709
- bgColor: q,
710
- textColor: tt,
711
- children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-textarea__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: O, height: O, fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z" }) }) })
703
+ variant: Y || t,
704
+ plain: K,
705
+ bgColor: P,
706
+ textColor: R,
707
+ children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-textarea__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(pt, { size: D === "middle" ? 20 : 16 }) })
712
708
  }
713
709
  );
714
- }, F = /* @__PURE__ */ w("div", { className: "clarity-textarea-wrapper", children: [
715
- /* @__PURE__ */ w("div", { className: H, children: [
716
- c && /* @__PURE__ */ e("div", { className: "clarity-textarea__start-icon", children: c }),
710
+ }, H = /* @__PURE__ */ w("div", { className: "clarity-textarea-wrapper", children: [
711
+ /* @__PURE__ */ w("div", { className: E, children: [
712
+ d && /* @__PURE__ */ e("div", { className: "clarity-textarea__start-icon", children: d }),
717
713
  /* @__PURE__ */ w("div", { className: "clarity-textarea__field", children: [
718
714
  /* @__PURE__ */ e(
719
715
  "textarea",
720
716
  {
721
- ref: $,
717
+ ref: _,
722
718
  className: "clarity-textarea__element",
723
- disabled: u,
724
- value: g,
719
+ disabled: y,
720
+ value: p,
725
721
  defaultValue: f,
726
- onFocus: k,
727
- onBlur: A,
728
- rows: b,
729
- style: S,
730
- ..._
722
+ onFocus: M,
723
+ onBlur: I,
724
+ rows: N,
725
+ style: X,
726
+ ...x
731
727
  }
732
728
  ),
733
729
  r && /* @__PURE__ */ e("label", { className: "clarity-textarea__label", children: r })
734
730
  ] }),
735
- d && /* @__PURE__ */ e("div", { className: "clarity-textarea__end-icon", children: d })
731
+ i && /* @__PURE__ */ e("div", { className: "clarity-textarea__end-icon", children: i })
736
732
  ] }),
737
- o && s && /* @__PURE__ */ e("div", { className: "clarity-textarea__helper-text", children: s })
733
+ (s && c || o) && /* @__PURE__ */ e("div", { className: "clarity-textarea__helper-text", style: c ? void 0 : { minHeight: "1.2em" }, children: c || " " })
738
734
  ] });
739
735
  return /* @__PURE__ */ w("div", { className: "clarity-textarea-container", children: [
740
- l && (n == null ? void 0 : n.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-textarea__helper-row clarity-textarea__helper-row--top clarity-textarea__helper-row--${z}`, children: M("top", z) }),
741
- l && (n != null && n.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-textarea__middle-row clarity-textarea__middle-row--${z}`, children: [
742
- z === "left" && M("middle", z),
743
- F,
744
- z === "right" && M("middle", z)
745
- ] }) : F,
746
- l && (n == null ? void 0 : n.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-textarea__helper-row clarity-textarea__helper-row--bottom clarity-textarea__helper-row--${z}`, children: M("bottom", z) })
736
+ l && (n == null ? void 0 : n.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-textarea__helper-row clarity-textarea__helper-row--top clarity-textarea__helper-row--${L}`, children: U("top", L) }),
737
+ l && (n != null && n.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-textarea__middle-row clarity-textarea__middle-row--${L}`, children: [
738
+ L === "left" && U("middle", L),
739
+ H,
740
+ L === "right" && U("middle", L)
741
+ ] }) : H,
742
+ l && (n == null ? void 0 : n.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-textarea__helper-row clarity-textarea__helper-row--bottom clarity-textarea__helper-row--${L}`, children: U("bottom", L) })
747
743
  ] });
748
744
  });
749
- je.displayName = "Textarea";
750
- const Le = I.forwardRef(({
745
+ Ee.displayName = "Textarea";
746
+ const Le = W.forwardRef(({
751
747
  variant: t = "primary",
752
748
  size: a = "medium",
753
749
  label: r,
754
750
  helper: l = !1,
755
751
  helperPosition: n = "top-right",
756
- error: o = !1,
757
- errorMessage: s,
758
- startIcon: c,
759
- endIcon: d,
760
- className: i = "",
761
- disabled: u = !1,
762
- value: g,
752
+ reserveErrorSpace: o = !1,
753
+ error: s = !1,
754
+ errorMessage: c,
755
+ startIcon: d,
756
+ endIcon: i,
757
+ className: u = "",
758
+ disabled: y = !1,
759
+ value: p,
763
760
  defaultValue: f,
764
- onFocus: p,
765
- onBlur: y,
766
- onChange: b,
767
- options: N = [],
768
- placeholder: m = "Selecione uma opção",
769
- isClearable: h = !1,
770
- isSearchable: _ = !1,
771
- ...x
772
- }, E) => {
773
- const [C, B] = D(!1), [R, $] = D(!1), [k, A] = D(g || f || ""), [H, S] = D(""), z = et(null), M = et(null), F = Array.isArray(N) ? N : [];
774
- I.useImperativeHandle(E, () => z.current), J(() => {
775
- g !== void 0 && A(g);
776
- }, [g]), J(() => {
777
- const v = (W) => {
778
- z.current && !z.current.contains(W.target) && (B(!1), $(!1), y == null || y());
761
+ onFocus: b,
762
+ onBlur: v,
763
+ onChange: N,
764
+ options: m = [],
765
+ placeholder: g = "Selecione uma opção",
766
+ isClearable: C = !1,
767
+ isSearchable: x = !1,
768
+ ...B
769
+ }, k) => {
770
+ const [j, $] = z(!1), [S, _] = z(!1), [M, I] = z(p || f || ""), [E, X] = z(""), L = at(null), U = at(null), H = Array.isArray(m) ? m : [];
771
+ W.useImperativeHandle(k, () => L.current), Q(() => {
772
+ p !== void 0 && I(p);
773
+ }, [p]), Q(() => {
774
+ const h = (O) => {
775
+ L.current && !L.current.contains(O.target) && ($(!1), _(!1), v == null || v());
779
776
  };
780
- return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
781
- }, [y]);
782
- const j = _ && H ? F.filter(
783
- (v) => v.label.toLowerCase().includes(H.toLowerCase())
784
- ) : F, U = () => {
785
- u || (B(!C), $(!C), C ? (y == null || y(), _ && S("")) : (p == null || p(), _ && setTimeout(() => {
786
- var v;
787
- (v = M.current) == null || v.focus();
777
+ return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
778
+ }, [v]);
779
+ const D = x && E ? H.filter(
780
+ (h) => h.label.toLowerCase().includes(E.toLowerCase())
781
+ ) : H, V = () => {
782
+ y || ($(!j), _(!j), j ? (v == null || v(), x && X("")) : (b == null || b(), x && setTimeout(() => {
783
+ var h;
784
+ (h = U.current) == null || h.focus();
788
785
  }, 0)));
789
- }, L = (v, W) => {
790
- v.disabled || (A(v.value), B(!1), $(!1), S(""), b == null || b(v, W), y == null || y());
791
- }, K = (v) => {
792
- S(v.target.value);
793
- }, P = (v) => {
794
- v.key === "Escape" ? (B(!1), $(!1), S("")) : v.key === "Enter" && j.length > 0 && j[0] && L(j[0], v);
795
- }, Z = F.find((v) => v.value === k), q = k !== "" && k !== void 0, tt = (v) => {
796
- v.stopPropagation(), A("");
797
- const W = { value: "", label: "" };
798
- b == null || b(W, v);
799
- }, O = q || R || m || _ && H, X = [
786
+ }, F = (h, O) => {
787
+ h.disabled || (I(h.value), $(!1), _(!1), X(""), N == null || N(h, O), v == null || v());
788
+ }, tt = (h) => {
789
+ X(h.target.value);
790
+ }, K = (h) => {
791
+ h.key === "Escape" ? ($(!1), _(!1), X("")) : h.key === "Enter" && D.length > 0 && D[0] && F(D[0], h);
792
+ }, Y = H.find((h) => h.value === M), P = M !== "" && M !== void 0, R = (h) => {
793
+ h.stopPropagation(), I("");
794
+ const O = { value: "", label: "" };
795
+ N == null || N(O, h);
796
+ }, Z = P || S || g || x && E, q = [
800
797
  "clarity-select",
801
798
  "clarity-select--outlined",
802
799
  `clarity-select--${a}`,
803
800
  t && `clarity-select--${t}`,
804
- o && "clarity-select--error",
805
- u && "clarity-select--disabled",
806
- (R || C) && "clarity-select--focused",
807
- O && "clarity-select--label-up",
808
- C && "clarity-select--open",
809
- _ && "clarity-select--searchable",
810
- c && "clarity-select--with-start-icon",
811
- (d || h) && "clarity-select--with-end-icon",
812
- i
813
- ].filter(Boolean).join(" "), V = n != null && n.endsWith("left") ? "left" : "right", Y = (v, W) => {
801
+ s && "clarity-select--error",
802
+ y && "clarity-select--disabled",
803
+ (S || j) && "clarity-select--focused",
804
+ Z && "clarity-select--label-up",
805
+ j && "clarity-select--open",
806
+ x && "clarity-select--searchable",
807
+ d && "clarity-select--with-start-icon",
808
+ (i || C) && "clarity-select--with-end-icon",
809
+ u
810
+ ].filter(Boolean).join(" "), A = n != null && n.endsWith("left") ? "left" : "right", et = (h, O) => {
814
811
  if (!l) return null;
815
- const T = typeof l == "object" ? l : void 0, G = (T == null ? void 0 : T.content) ?? "Ajuda", Q = (T == null ? void 0 : T.plain) === !0, at = T == null ? void 0 : T.variant, it = T == null ? void 0 : T.bgColor, ft = T == null ? void 0 : T.textColor, gt = v === "middle" ? 20 : 16;
812
+ const T = typeof l == "object" ? l : void 0, G = (T == null ? void 0 : T.content) ?? "Ajuda", J = (T == null ? void 0 : T.plain) === !0, it = T == null ? void 0 : T.variant, ft = T == null ? void 0 : T.bgColor, Ct = T == null ? void 0 : T.textColor;
816
813
  return /* @__PURE__ */ e(
817
- pt,
814
+ yt,
818
815
  {
819
816
  content: G,
820
- position: v === "middle" ? W === "left" ? "left" : "right" : v === "top" ? W === "left" ? "top-left" : "top-right" : W === "left" ? "bottom-left" : "bottom-right",
817
+ position: h === "middle" ? O === "left" ? "left" : "right" : h === "top" ? O === "left" ? "top-left" : "top-right" : O === "left" ? "bottom-left" : "bottom-right",
821
818
  trigger: "hover",
822
- variant: at || t,
823
- plain: Q,
824
- bgColor: it,
825
- textColor: ft,
826
- children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-select__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: gt, height: gt, fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z" }) }) })
819
+ variant: it || t,
820
+ plain: J,
821
+ bgColor: ft,
822
+ textColor: Ct,
823
+ children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-select__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(pt, { size: h === "middle" ? 20 : 16 }) })
827
824
  }
828
825
  );
829
826
  }, lt = /* @__PURE__ */ w(
830
827
  "div",
831
828
  {
832
- ref: z,
833
- className: X,
834
- onClick: _ ? void 0 : U,
829
+ ref: L,
830
+ className: q,
831
+ onClick: x ? void 0 : V,
835
832
  role: "combobox",
836
- "aria-expanded": C,
833
+ "aria-expanded": j,
837
834
  "aria-haspopup": "listbox",
838
- tabIndex: u || _ ? -1 : 0,
839
- ...x,
835
+ tabIndex: y || x ? -1 : 0,
836
+ ...B,
840
837
  children: [
841
- c && /* @__PURE__ */ e("div", { className: "clarity-select__start-icon", children: c }),
838
+ d && /* @__PURE__ */ e("div", { className: "clarity-select__start-icon", children: d }),
842
839
  /* @__PURE__ */ w("div", { className: "clarity-select__field", children: [
843
- _ ? /* @__PURE__ */ e(
840
+ x ? /* @__PURE__ */ e(
844
841
  "input",
845
842
  {
846
- ref: M,
843
+ ref: U,
847
844
  type: "text",
848
845
  className: "clarity-select__search-input",
849
- value: C ? H : Z ? Z.label : "",
850
- onChange: K,
851
- onKeyDown: P,
846
+ value: j ? E : Y ? Y.label : "",
847
+ onChange: tt,
848
+ onKeyDown: K,
852
849
  onFocus: () => {
853
- C || (B(!0), $(!0), p == null || p());
850
+ j || ($(!0), _(!0), b == null || b());
854
851
  },
855
- placeholder: Z ? Z.label : m,
856
- disabled: u,
857
- readOnly: !C
852
+ placeholder: Y ? Y.label : g,
853
+ disabled: y,
854
+ readOnly: !j
858
855
  }
859
- ) : /* @__PURE__ */ e("div", { className: "clarity-select__display", children: Z ? Z.label : m }),
856
+ ) : /* @__PURE__ */ e("div", { className: "clarity-select__display", children: Y ? Y.label : g }),
860
857
  r && /* @__PURE__ */ e("label", { className: "clarity-select__label", children: r })
861
858
  ] }),
862
- h && q && /* @__PURE__ */ e(
859
+ C && P && /* @__PURE__ */ e(
863
860
  "button",
864
861
  {
865
862
  type: "button",
866
863
  className: "clarity-select__clear-button",
867
- onClick: tt,
864
+ onClick: R,
868
865
  "aria-label": "Limpar seleção",
869
866
  children: /* @__PURE__ */ e(
870
867
  "svg",
@@ -891,8 +888,8 @@ const Le = I.forwardRef(({
891
888
  "div",
892
889
  {
893
890
  className: "clarity-select__end-icon",
894
- onClick: _ ? U : void 0,
895
- children: d || /* @__PURE__ */ e(
891
+ onClick: x ? V : void 0,
892
+ children: i || /* @__PURE__ */ e(
896
893
  "svg",
897
894
  {
898
895
  className: "clarity-select__arrow",
@@ -914,37 +911,37 @@ const Le = I.forwardRef(({
914
911
  )
915
912
  }
916
913
  ),
917
- C && /* @__PURE__ */ e("div", { className: "clarity-select__dropdown", children: /* @__PURE__ */ e("ul", { className: "clarity-select__options", role: "listbox", children: j.length > 0 ? j.map((v) => /* @__PURE__ */ e(
914
+ j && /* @__PURE__ */ e("div", { className: "clarity-select__dropdown", children: /* @__PURE__ */ e("ul", { className: "clarity-select__options", role: "listbox", children: D.length > 0 ? D.map((h) => /* @__PURE__ */ e(
918
915
  "li",
919
916
  {
920
917
  className: [
921
918
  "clarity-select__option",
922
- v.disabled && "clarity-select__option--disabled",
923
- k === v.value && "clarity-select__option--selected"
919
+ h.disabled && "clarity-select__option--disabled",
920
+ M === h.value && "clarity-select__option--selected"
924
921
  ].filter(Boolean).join(" "),
925
- onClick: (W) => L(v, W),
922
+ onClick: (O) => F(h, O),
926
923
  role: "option",
927
- "aria-selected": k === v.value,
928
- children: v.label
924
+ "aria-selected": M === h.value,
925
+ children: h.label
929
926
  },
930
- v.value
927
+ h.value
931
928
  )) : /* @__PURE__ */ e("li", { className: "clarity-select__option clarity-select__option--no-results", children: "Nenhum resultado encontrado" }) }) })
932
929
  ]
933
930
  }
934
931
  );
935
932
  return /* @__PURE__ */ w("div", { className: "clarity-select-wrapper", children: [
936
- l && (n == null ? void 0 : n.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-select__helper-row clarity-select__helper-row--top clarity-select__helper-row--${V}`, children: Y("top", V) }),
937
- l && (n != null && n.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-select__middle-row clarity-select__middle-row--${V}`, children: [
938
- V === "left" && Y("middle", V),
933
+ l && (n == null ? void 0 : n.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-select__helper-row clarity-select__helper-row--top clarity-select__helper-row--${A}`, children: et("top", A) }),
934
+ l && (n != null && n.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-select__middle-row clarity-select__middle-row--${A}`, children: [
935
+ A === "left" && et("middle", A),
939
936
  lt,
940
- V === "right" && Y("middle", V)
937
+ A === "right" && et("middle", A)
941
938
  ] }) : lt,
942
- l && (n == null ? void 0 : n.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-select__helper-row clarity-select__helper-row--bottom clarity-select__helper-row--${V}`, children: Y("bottom", V) }),
943
- o && s && /* @__PURE__ */ e("div", { className: "clarity-select__helper-text", children: s })
939
+ l && (n == null ? void 0 : n.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-select__helper-row clarity-select__helper-row--bottom clarity-select__helper-row--${A}`, children: et("bottom", A) }),
940
+ (s && c || o) && /* @__PURE__ */ e("div", { className: "clarity-select__helper-text", style: c ? void 0 : { minHeight: "1.2em" }, children: c || " " })
944
941
  ] });
945
942
  });
946
943
  Le.displayName = "Select";
947
- const Ee = be(({
944
+ const Re = we(({
948
945
  options: t = [],
949
946
  value: a = [],
950
947
  onChange: r,
@@ -952,67 +949,68 @@ const Ee = be(({
952
949
  label: n,
953
950
  helper: o = !1,
954
951
  helperPosition: s = "top-right",
955
- error: c = !1,
956
- errorMessage: d,
957
- disabled: i = !1,
958
- variant: u = "primary",
959
- size: g = "medium",
952
+ reserveErrorSpace: c = !1,
953
+ error: d = !1,
954
+ errorMessage: i,
955
+ disabled: u = !1,
956
+ variant: y = "primary",
957
+ size: p = "medium",
960
958
  maxSelectedLabels: f = 3,
961
- selectionLimit: p,
962
- className: y = "",
963
- id: b,
964
- name: N,
965
- required: m = !1,
966
- "data-testid": h,
967
- ..._
968
- }, x) => {
969
- const [E, C] = D(!1), [B, R] = D(""), [$, k] = D(!1), A = et(null), H = et(null), S = et(null), z = Array.isArray(t) ? t : [], M = (v) => {
970
- A.current = v, x && (typeof x == "function" ? x(v) : x.current = v);
959
+ selectionLimit: b,
960
+ className: v = "",
961
+ id: N,
962
+ name: m,
963
+ required: g = !1,
964
+ "data-testid": C,
965
+ ...x
966
+ }, B) => {
967
+ const [k, j] = z(!1), [$, S] = z(""), [_, M] = z(!1), I = at(null), E = at(null), X = at(null), L = Array.isArray(t) ? t : [], U = (h) => {
968
+ I.current = h, B && (typeof B == "function" ? B(h) : B.current = h);
971
969
  };
972
- J(() => {
973
- const v = (W) => {
974
- A.current && !A.current.contains(W.target) && (C(!1), k(!1), R(""));
970
+ Q(() => {
971
+ const h = (O) => {
972
+ I.current && !I.current.contains(O.target) && (j(!1), M(!1), S(""));
975
973
  };
976
- return document.addEventListener("click", v), () => document.removeEventListener("click", v);
974
+ return document.addEventListener("click", h), () => document.removeEventListener("click", h);
977
975
  }, []);
978
- const F = z.filter(
979
- (v) => v.label.toLowerCase().includes(B.toLowerCase())
980
- ), j = () => {
981
- i || (C(!E), k(!E), E ? R("") : setTimeout(() => {
982
- var v;
983
- (v = H.current) == null || v.focus();
976
+ const H = L.filter(
977
+ (h) => h.label.toLowerCase().includes($.toLowerCase())
978
+ ), D = () => {
979
+ u || (j(!k), M(!k), k ? S("") : setTimeout(() => {
980
+ var h;
981
+ (h = E.current) == null || h.focus();
984
982
  }, 100));
985
- }, U = (v, W) => {
986
- if (i)
983
+ }, V = (h, O) => {
984
+ if (u)
987
985
  return;
988
- W && (W.stopPropagation(), W.preventDefault());
989
- const T = a.includes(v);
986
+ O && (O.stopPropagation(), O.preventDefault());
987
+ const T = a.includes(h);
990
988
  let G;
991
- T ? G = a.filter((Q) => Q !== v) : G = [...a, v], r && r(G);
992
- }, L = (v, W) => {
993
- if (W.stopPropagation(), i) return;
994
- const T = a.filter((G) => G !== v);
989
+ T ? G = a.filter((J) => J !== h) : G = [...a, h], r && r(G);
990
+ }, F = (h, O) => {
991
+ if (O.stopPropagation(), u) return;
992
+ const T = a.filter((G) => G !== h);
995
993
  r == null || r(T);
996
- }, K = (v) => {
997
- v.stopPropagation(), !i && (r == null || r([]));
998
- }, P = (v) => {
999
- R(v.target.value);
1000
- }, Z = (v) => {
1001
- v.key === "Escape" && (C(!1), k(!1), R(""));
1002
- }, q = $ || E || a.length > 0, tt = () => {
994
+ }, tt = (h) => {
995
+ h.stopPropagation(), !u && (r == null || r([]));
996
+ }, K = (h) => {
997
+ S(h.target.value);
998
+ }, Y = (h) => {
999
+ h.key === "Escape" && (j(!1), M(!1), S(""));
1000
+ }, P = _ || k || a.length > 0, R = () => {
1003
1001
  if (a.length === 0) return null;
1004
- const v = a.map(
1005
- (G) => z.find((Q) => Q.value === G)
1006
- ).filter(Boolean), W = v.slice(0, f), T = v.length - f;
1002
+ const h = a.map(
1003
+ (G) => L.find((J) => J.value === G)
1004
+ ).filter(Boolean), O = h.slice(0, f), T = h.length - f;
1007
1005
  return /* @__PURE__ */ w("div", { className: "clarity-multiselect__chips", children: [
1008
- W.map((G) => /* @__PURE__ */ w("div", { className: "clarity-multiselect__chip", children: [
1006
+ O.map((G) => /* @__PURE__ */ w("div", { className: "clarity-multiselect__chip", children: [
1009
1007
  /* @__PURE__ */ e("span", { className: "clarity-multiselect__chip-label", children: G.label }),
1010
- !i && /* @__PURE__ */ e(
1008
+ !u && /* @__PURE__ */ e(
1011
1009
  "button",
1012
1010
  {
1013
1011
  type: "button",
1014
1012
  className: "clarity-multiselect__chip-remove",
1015
- onClick: (Q) => L(G.value, Q),
1013
+ onClick: (J) => F(G.value, J),
1016
1014
  "aria-label": `Remover ${G.label}`,
1017
1015
  children: "×"
1018
1016
  }
@@ -1024,61 +1022,61 @@ const Ee = be(({
1024
1022
  " mais"
1025
1023
  ] })
1026
1024
  ] });
1027
- }, O = [
1025
+ }, Z = [
1028
1026
  "clarity-multiselect-wrapper",
1029
- y
1030
- ].filter(Boolean).join(" "), X = [
1027
+ v
1028
+ ].filter(Boolean).join(" "), q = [
1031
1029
  "clarity-multiselect",
1032
- `clarity-multiselect--${u}`,
1033
- `clarity-multiselect--${g}`,
1034
- E && "clarity-multiselect--open",
1035
- $ && "clarity-multiselect--focused",
1036
- q && "clarity-multiselect--label-up",
1037
- c && "clarity-multiselect--error",
1038
- i && "clarity-multiselect--disabled",
1030
+ `clarity-multiselect--${y}`,
1031
+ `clarity-multiselect--${p}`,
1032
+ k && "clarity-multiselect--open",
1033
+ _ && "clarity-multiselect--focused",
1034
+ P && "clarity-multiselect--label-up",
1035
+ d && "clarity-multiselect--error",
1036
+ u && "clarity-multiselect--disabled",
1039
1037
  a.length > 0 && "clarity-multiselect--has-value"
1040
- ].filter(Boolean).join(" "), V = s != null && s.endsWith("left") ? "left" : "right", Y = (v, W) => {
1038
+ ].filter(Boolean).join(" "), A = s != null && s.endsWith("left") ? "left" : "right", et = (h, O) => {
1041
1039
  if (!o) return null;
1042
- const T = typeof o == "object" ? o : void 0, G = (T == null ? void 0 : T.content) ?? "Ajuda", Q = (T == null ? void 0 : T.plain) === !0, at = T == null ? void 0 : T.variant, it = T == null ? void 0 : T.bgColor, ft = T == null ? void 0 : T.textColor, gt = v === "middle" ? 20 : 16;
1040
+ const T = typeof o == "object" ? o : void 0, G = (T == null ? void 0 : T.content) ?? "Ajuda", J = (T == null ? void 0 : T.plain) === !0, it = T == null ? void 0 : T.variant, ft = T == null ? void 0 : T.bgColor, Ct = T == null ? void 0 : T.textColor;
1043
1041
  return /* @__PURE__ */ e(
1044
- pt,
1042
+ yt,
1045
1043
  {
1046
1044
  content: G,
1047
- position: v === "middle" ? W === "left" ? "left" : "right" : v === "top" ? W === "left" ? "top-left" : "top-right" : W === "left" ? "bottom-left" : "bottom-right",
1045
+ position: h === "middle" ? O === "left" ? "left" : "right" : h === "top" ? O === "left" ? "top-left" : "top-right" : O === "left" ? "bottom-left" : "bottom-right",
1048
1046
  trigger: "hover",
1049
- variant: at || u,
1050
- plain: Q,
1051
- bgColor: it,
1052
- textColor: ft,
1053
- children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-multiselect__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: gt, height: gt, fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z" }) }) })
1047
+ variant: it || y,
1048
+ plain: J,
1049
+ bgColor: ft,
1050
+ textColor: Ct,
1051
+ children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-multiselect__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(pt, { size: h === "middle" ? 20 : 16 }) })
1054
1052
  }
1055
1053
  );
1056
1054
  }, lt = /* @__PURE__ */ w(
1057
1055
  "div",
1058
1056
  {
1059
- ref: M,
1060
- className: X,
1061
- "data-testid": h,
1062
- ..._,
1057
+ ref: U,
1058
+ className: q,
1059
+ "data-testid": C,
1060
+ ...x,
1063
1061
  children: [
1064
1062
  /* @__PURE__ */ w(
1065
1063
  "div",
1066
1064
  {
1067
1065
  className: "clarity-multiselect__field",
1068
- onClick: j,
1066
+ onClick: D,
1069
1067
  children: [
1070
1068
  n && /* @__PURE__ */ w("label", { className: "clarity-multiselect__label", children: [
1071
1069
  n,
1072
- m && /* @__PURE__ */ e("span", { className: "clarity-multiselect__required", children: "*" })
1070
+ g && /* @__PURE__ */ e("span", { className: "clarity-multiselect__required", children: "*" })
1073
1071
  ] }),
1074
- /* @__PURE__ */ e("div", { className: "clarity-multiselect__content", children: a.length > 0 ? tt() : /* @__PURE__ */ e("span", { className: "clarity-multiselect__placeholder", children: l }) }),
1072
+ /* @__PURE__ */ e("div", { className: "clarity-multiselect__content", children: a.length > 0 ? R() : /* @__PURE__ */ e("span", { className: "clarity-multiselect__placeholder", children: l }) }),
1075
1073
  /* @__PURE__ */ w("div", { className: "clarity-multiselect__icons", children: [
1076
- a.length > 0 && !i && /* @__PURE__ */ e(
1074
+ a.length > 0 && !u && /* @__PURE__ */ e(
1077
1075
  "button",
1078
1076
  {
1079
1077
  type: "button",
1080
1078
  className: "clarity-multiselect__clear-button",
1081
- onClick: K,
1079
+ onClick: tt,
1082
1080
  "aria-label": "Limpar seleção",
1083
1081
  children: "×"
1084
1082
  }
@@ -1097,35 +1095,35 @@ const Ee = be(({
1097
1095
  ]
1098
1096
  }
1099
1097
  ),
1100
- E && /* @__PURE__ */ w("div", { ref: S, className: "clarity-multiselect__dropdown", children: [
1098
+ k && /* @__PURE__ */ w("div", { ref: X, className: "clarity-multiselect__dropdown", children: [
1101
1099
  /* @__PURE__ */ e("div", { className: "clarity-multiselect__search", children: /* @__PURE__ */ e(
1102
1100
  "input",
1103
1101
  {
1104
- ref: H,
1102
+ ref: E,
1105
1103
  type: "text",
1106
1104
  className: "clarity-multiselect__search-input",
1107
1105
  placeholder: "Buscar opções...",
1108
- value: B,
1109
- onChange: P,
1110
- onKeyDown: Z
1106
+ value: $,
1107
+ onChange: K,
1108
+ onKeyDown: Y
1111
1109
  }
1112
1110
  ) }),
1113
- /* @__PURE__ */ e("ul", { className: "clarity-multiselect__options", children: F.length > 0 ? F.map((v) => {
1114
- const W = a.includes(v.value), T = v.disabled || i;
1111
+ /* @__PURE__ */ e("ul", { className: "clarity-multiselect__options", children: H.length > 0 ? H.map((h) => {
1112
+ const O = a.includes(h.value), T = h.disabled || u;
1115
1113
  return /* @__PURE__ */ w(
1116
1114
  "li",
1117
1115
  {
1118
1116
  className: [
1119
1117
  "clarity-multiselect__option",
1120
- W && "clarity-multiselect__option--selected",
1118
+ O && "clarity-multiselect__option--selected",
1121
1119
  T && "clarity-multiselect__option--disabled"
1122
1120
  ].filter(Boolean).join(" "),
1123
- onClick: (G) => !T && U(v.value, G),
1121
+ onClick: (G) => !T && V(h.value, G),
1124
1122
  children: [
1125
1123
  /* @__PURE__ */ e("div", { className: "clarity-multiselect__option-checkbox", children: /* @__PURE__ */ e("div", { className: [
1126
1124
  "clarity-multiselect__checkbox",
1127
- W && "clarity-multiselect__checkbox--checked"
1128
- ].filter(Boolean).join(" "), children: W && /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e(
1125
+ O && "clarity-multiselect__checkbox--checked"
1126
+ ].filter(Boolean).join(" "), children: O && /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e(
1129
1127
  "path",
1130
1128
  {
1131
1129
  d: "M2 6L5 9L10 3",
@@ -1135,39 +1133,39 @@ const Ee = be(({
1135
1133
  strokeLinejoin: "round"
1136
1134
  }
1137
1135
  ) }) }) }),
1138
- /* @__PURE__ */ e("span", { className: "clarity-multiselect__option-label", children: v.label })
1136
+ /* @__PURE__ */ e("span", { className: "clarity-multiselect__option-label", children: h.label })
1139
1137
  ]
1140
1138
  },
1141
- v.value
1139
+ h.value
1142
1140
  );
1143
1141
  }) : /* @__PURE__ */ e("li", { className: "clarity-multiselect__option clarity-multiselect__option--no-results", children: "Nenhum resultado encontrado" }) })
1144
1142
  ] })
1145
1143
  ]
1146
1144
  }
1147
1145
  );
1148
- return /* @__PURE__ */ w("div", { className: O, children: [
1149
- o && (s == null ? void 0 : s.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-multiselect__helper-row clarity-multiselect__helper-row--top clarity-multiselect__helper-row--${V}`, children: Y("top", V) }),
1150
- o && (s != null && s.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-multiselect__middle-row clarity-multiselect__middle-row--${V}`, children: [
1151
- V === "left" && Y("middle", V),
1146
+ return /* @__PURE__ */ w("div", { className: Z, children: [
1147
+ o && (s == null ? void 0 : s.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-multiselect__helper-row clarity-multiselect__helper-row--top clarity-multiselect__helper-row--${A}`, children: et("top", A) }),
1148
+ o && (s != null && s.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-multiselect__middle-row clarity-multiselect__middle-row--${A}`, children: [
1149
+ A === "left" && et("middle", A),
1152
1150
  lt,
1153
- V === "right" && Y("middle", V)
1151
+ A === "right" && et("middle", A)
1154
1152
  ] }) : lt,
1155
- o && (s == null ? void 0 : s.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-multiselect__helper-row clarity-multiselect__helper-row--bottom clarity-multiselect__helper-row--${V}`, children: Y("bottom", V) }),
1156
- c && d && /* @__PURE__ */ e("div", { className: "clarity-multiselect__helper", children: /* @__PURE__ */ e("span", { className: "clarity-multiselect__error-message", children: d }) })
1153
+ o && (s == null ? void 0 : s.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-multiselect__helper-row clarity-multiselect__helper-row--bottom clarity-multiselect__helper-row--${A}`, children: et("bottom", A) }),
1154
+ (d && i || c) && /* @__PURE__ */ e("div", { className: "clarity-multiselect__helper", style: i ? void 0 : { minHeight: "1.2em" }, children: /* @__PURE__ */ e("span", { className: "clarity-multiselect__error-message", children: i || " " }) })
1157
1155
  ] });
1158
1156
  });
1159
- Ee.displayName = "MultiSelect";
1160
- const Rt = ct(null), Ot = () => {
1161
- const t = dt(Rt);
1157
+ Re.displayName = "MultiSelect";
1158
+ const Ot = ct(null), Wt = () => {
1159
+ const t = dt(Ot);
1162
1160
  if (!t)
1163
1161
  throw new Error("useModal must be used within a Modal provider");
1164
1162
  return t;
1165
- }, Wt = ({
1163
+ }, It = ({
1166
1164
  children: t,
1167
1165
  className: a = "",
1168
1166
  title: r
1169
1167
  }) => {
1170
- const { onClose: l, variant: n, showCloseButton: o } = Ot(), s = [
1168
+ const { onClose: l, variant: n, showCloseButton: o } = Wt(), s = [
1171
1169
  "clarity-modal-header",
1172
1170
  a,
1173
1171
  n && `clarity-modal-header--${n}`
@@ -1183,23 +1181,23 @@ const Rt = ct(null), Ot = () => {
1183
1181
  }, children: "×" })
1184
1182
  ] });
1185
1183
  };
1186
- Wt.displayName = "Modal.Header";
1187
- const It = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-modal-content ${a}`, children: t });
1188
- It.displayName = "Modal.Content";
1189
- const Ht = ({ children: t, className: a = "" }) => /* @__PURE__ */ w("div", { className: `clarity-modal-footer ${a}`, children: [
1184
+ It.displayName = "Modal.Header";
1185
+ const Ht = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-modal-content ${a}`, children: t });
1186
+ Ht.displayName = "Modal.Content";
1187
+ const Dt = ({ children: t, className: a = "" }) => /* @__PURE__ */ w("div", { className: `clarity-modal-footer ${a}`, children: [
1190
1188
  /* @__PURE__ */ e("div", { className: "clarity-modal-scroll-indicator" }),
1191
1189
  t
1192
1190
  ] });
1193
- Ht.displayName = "Modal.Footer";
1194
- const Mt = ({ children: t, onClick: a }) => rt(t, {
1191
+ Dt.displayName = "Modal.Footer";
1192
+ const Vt = ({ children: t, onClick: a }) => rt(t, {
1195
1193
  onClick: (r) => {
1196
1194
  var l, n;
1197
1195
  a == null || a(), (n = (l = t.props).onClick) == null || n.call(l, r);
1198
1196
  }
1199
1197
  });
1200
- Mt.displayName = "Modal.Trigger";
1201
- const Vt = ({ children: t }) => {
1202
- const { onClose: a } = Ot();
1198
+ Vt.displayName = "Modal.Trigger";
1199
+ const At = ({ children: t }) => {
1200
+ const { onClose: a } = Wt();
1203
1201
  return rt(t, {
1204
1202
  onClick: (r) => {
1205
1203
  var l, n;
@@ -1207,7 +1205,7 @@ const Vt = ({ children: t }) => {
1207
1205
  }
1208
1206
  });
1209
1207
  };
1210
- Vt.displayName = "Modal.Close";
1208
+ At.displayName = "Modal.Close";
1211
1209
  const mt = ({
1212
1210
  isOpen: t,
1213
1211
  onClose: a,
@@ -1219,54 +1217,54 @@ const mt = ({
1219
1217
  showCloseButton: c = !0,
1220
1218
  closeOnOverlayClick: d = !0
1221
1219
  }) => {
1222
- const [i, u] = D(!1), f = t !== void 0 ? t : i, p = I.useCallback(() => {
1220
+ const [i, u] = z(!1), p = t !== void 0 ? t : i, f = W.useCallback(() => {
1223
1221
  a ? a() : u(!1);
1224
1222
  }, [a]);
1225
- J(() => {
1226
- f && (r == null || r());
1227
- }, [f, r]), J(() => {
1228
- const h = (_) => {
1229
- _.key === "Escape" && p();
1223
+ Q(() => {
1224
+ p && (r == null || r());
1225
+ }, [p, r]), Q(() => {
1226
+ const g = (C) => {
1227
+ C.key === "Escape" && f();
1230
1228
  };
1231
- return f ? (document.addEventListener("keydown", h), document.body.style.overflow = "hidden") : document.body.style.overflow = "unset", () => {
1232
- document.removeEventListener("keydown", h), document.body.style.overflow = "unset";
1229
+ return p ? (document.addEventListener("keydown", g), document.body.style.overflow = "hidden") : document.body.style.overflow = "unset", () => {
1230
+ document.removeEventListener("keydown", g), document.body.style.overflow = "unset";
1233
1231
  };
1234
- }, [f, p]);
1235
- const y = (h) => {
1236
- d && h.target === h.currentTarget && p();
1237
- }, b = I.Children.toArray(l).find(
1238
- (h) => ot(h) && h.type.displayName === "Modal.Trigger"
1239
- ), N = I.Children.toArray(l).filter(
1240
- (h) => ot(h) && h.type.displayName !== "Modal.Trigger"
1232
+ }, [p, f]);
1233
+ const b = (g) => {
1234
+ d && g.target === g.currentTarget && f();
1235
+ }, v = W.Children.toArray(l).find(
1236
+ (g) => ot(g) && g.type.displayName === "Modal.Trigger"
1237
+ ), N = W.Children.toArray(l).filter(
1238
+ (g) => ot(g) && g.type.displayName !== "Modal.Trigger"
1241
1239
  ), m = ["clarity-modal", n, `clarity-modal--${s}`].filter(Boolean).join(" ");
1242
- return /* @__PURE__ */ w(Rt.Provider, { value: { onClose: p, variant: o, showCloseButton: c }, children: [
1243
- b && rt(b, { onClick: () => u(!0) }),
1244
- f && /* @__PURE__ */ e("div", { className: "clarity-modal-overlay", onClick: y, children: /* @__PURE__ */ e("div", { className: m, children: N }) })
1240
+ return /* @__PURE__ */ w(Ot.Provider, { value: { onClose: f, variant: o, showCloseButton: c }, children: [
1241
+ v && rt(v, { onClick: () => u(!0) }),
1242
+ p && /* @__PURE__ */ e("div", { className: "clarity-modal-overlay", onClick: b, children: /* @__PURE__ */ e("div", { className: m, children: N }) })
1245
1243
  ] });
1246
1244
  };
1247
- mt.Header = Wt;
1248
- mt.Content = It;
1249
- mt.Footer = Ht;
1250
- mt.Trigger = Mt;
1251
- mt.Close = Vt;
1245
+ mt.Header = It;
1246
+ mt.Content = Ht;
1247
+ mt.Footer = Dt;
1248
+ mt.Trigger = Vt;
1249
+ mt.Close = At;
1252
1250
  mt.displayName = "Modal";
1253
- const zt = ct(void 0), ea = () => {
1251
+ const zt = ct(void 0), aa = () => {
1254
1252
  const t = dt(zt);
1255
1253
  if (!t)
1256
1254
  throw new Error("useToast must be used within a ToastProvider");
1257
1255
  return t;
1258
- }, Se = ({ id: t, message: a, variant: r, duration: l, onClose: n, invertColors: o }) => {
1259
- const [s, c] = D("entering");
1260
- J(() => {
1256
+ }, Oe = ({ id: t, message: a, variant: r, duration: l, onClose: n, invertColors: o }) => {
1257
+ const [s, c] = z("entering");
1258
+ Q(() => {
1261
1259
  const i = setTimeout(() => {
1262
1260
  c("visible");
1263
1261
  }, 10), u = setTimeout(() => {
1264
1262
  c("exiting");
1265
- }, l * 1e3 - 300), g = setTimeout(() => {
1263
+ }, l * 1e3 - 300), y = setTimeout(() => {
1266
1264
  n(t);
1267
1265
  }, l * 1e3);
1268
1266
  return () => {
1269
- clearTimeout(i), clearTimeout(u), clearTimeout(g);
1267
+ clearTimeout(i), clearTimeout(u), clearTimeout(y);
1270
1268
  };
1271
1269
  }, [t, l, n]);
1272
1270
  const d = [
@@ -1286,15 +1284,15 @@ const zt = ct(void 0), ea = () => {
1286
1284
  }
1287
1285
  )
1288
1286
  ] });
1289
- }, aa = ({ children: t }) => {
1290
- const [a, r] = D([]), l = vt(() => {
1287
+ }, ra = ({ children: t }) => {
1288
+ const [a, r] = z([]), l = gt(() => {
1291
1289
  if (typeof document < "u") {
1292
1290
  const d = document.createElement("div");
1293
1291
  return d.id = "toast-portal-root", d;
1294
1292
  }
1295
1293
  return null;
1296
1294
  }, []);
1297
- J(() => {
1295
+ Q(() => {
1298
1296
  if (l)
1299
1297
  return document.body.appendChild(l), () => {
1300
1298
  document.body.removeChild(l);
@@ -1307,30 +1305,30 @@ const zt = ct(void 0), ea = () => {
1307
1305
  // position: 'right-top',
1308
1306
  ...d
1309
1307
  };
1310
- r((g) => {
1311
- const f = [u, ...g];
1312
- return f.length > 4 ? f.slice(0, 4) : f;
1308
+ r((y) => {
1309
+ const p = [u, ...y];
1310
+ return p.length > 4 ? p.slice(0, 4) : p;
1313
1311
  });
1314
1312
  }, []), o = _t((d) => {
1315
1313
  r((i) => i.filter((u) => u.id !== d));
1316
- }, []), s = vt(() => a.reduce((d, i) => (d[i.position] || (d[i.position] = []), d[i.position].push(i), d), {}), [a]), c = vt(() => ({ show: n }), [n]);
1314
+ }, []), s = gt(() => a.reduce((d, i) => (d[i.position] || (d[i.position] = []), d[i.position].push(i), d), {}), [a]), c = gt(() => ({ show: n }), [n]);
1317
1315
  return /* @__PURE__ */ w(zt.Provider, { value: c, children: [
1318
1316
  t,
1319
- l && we.createPortal(
1320
- Object.entries(s).map(([d, i]) => /* @__PURE__ */ e("div", { className: `cl-toast-container ${d}`, children: i.map((u) => /* @__PURE__ */ e(Se, { ...u, onClose: o }, u.id)) }, d)),
1317
+ l && Ce.createPortal(
1318
+ Object.entries(s).map(([d, i]) => /* @__PURE__ */ e("div", { className: `cl-toast-container ${d}`, children: i.map((u) => /* @__PURE__ */ e(Oe, { ...u, onClose: o }, u.id)) }, d)),
1321
1319
  l
1322
1320
  )
1323
1321
  ] });
1324
- }, Dt = ct(null), At = () => {
1325
- const t = dt(Dt);
1322
+ }, Mt = ct(null), Ft = () => {
1323
+ const t = dt(Mt);
1326
1324
  if (!t)
1327
1325
  throw new Error("useOffcanvas must be used within an Offcanvas provider");
1328
1326
  return t;
1329
- }, Ft = ({
1327
+ }, Gt = ({
1330
1328
  children: t,
1331
1329
  className: a = ""
1332
1330
  }) => {
1333
- const { onClose: r, variant: l, showCloseButton: n, title: o } = At(), s = [
1331
+ const { onClose: r, variant: l, showCloseButton: n, title: o } = Ft(), s = [
1334
1332
  "clarity-offcanvas-header",
1335
1333
  a
1336
1334
  ].filter(Boolean).join(" "), c = [
@@ -1348,21 +1346,21 @@ const zt = ct(void 0), ea = () => {
1348
1346
  }, children: "×" })
1349
1347
  ] });
1350
1348
  };
1351
- Ft.displayName = "Offcanvas.Header";
1352
- const Gt = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-offcanvas-content ${a}`, children: t });
1353
- Gt.displayName = "Offcanvas.Content";
1354
- const Ut = ({ children: t, onClick: a, variant: r }) => rt(t, {
1349
+ Gt.displayName = "Offcanvas.Header";
1350
+ const Ut = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-offcanvas-content ${a}`, children: t });
1351
+ Ut.displayName = "Offcanvas.Content";
1352
+ const Xt = ({ children: t, onClick: a, variant: r }) => rt(t, {
1355
1353
  onClick: (l) => {
1356
1354
  var n, o;
1357
1355
  a == null || a(), (o = (n = t.props).onClick) == null || o.call(n, l);
1358
1356
  },
1359
1357
  variant: r
1360
1358
  });
1361
- Ut.displayName = "Offcanvas.Trigger";
1362
- const $t = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-offcanvas-footer ${a}`, children: t });
1363
- $t.displayName = "Offcanvas.Footer";
1364
- const Xt = ({ children: t }) => {
1365
- const { onClose: a } = At();
1359
+ Xt.displayName = "Offcanvas.Trigger";
1360
+ const xt = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-offcanvas-footer ${a}`, children: t });
1361
+ xt.displayName = "Offcanvas.Footer";
1362
+ const Yt = ({ children: t }) => {
1363
+ const { onClose: a } = Ft();
1366
1364
  return rt(t, {
1367
1365
  onClick: (r) => {
1368
1366
  var l, n;
@@ -1370,7 +1368,7 @@ const Xt = ({ children: t }) => {
1370
1368
  }
1371
1369
  });
1372
1370
  };
1373
- Xt.displayName = "Offcanvas.Close";
1371
+ Yt.displayName = "Offcanvas.Close";
1374
1372
  const ht = ({
1375
1373
  isOpen: t,
1376
1374
  onClose: a,
@@ -1383,83 +1381,83 @@ const ht = ({
1383
1381
  showCloseButton: d = !0,
1384
1382
  title: i
1385
1383
  }) => {
1386
- const [u, g] = D(!1), [f, p] = D(!1), [y, b] = D(!1), N = t !== void 0, m = N ? t : u, h = _t(() => {
1387
- a ? a() : g(!1);
1388
- }, [a]), _ = _t(() => {
1389
- N || g(!0), r == null || r();
1384
+ const [u, y] = z(!1), [p, f] = z(!1), [b, v] = z(!1), N = t !== void 0, m = N ? t : u, g = _t(() => {
1385
+ a ? a() : y(!1);
1386
+ }, [a]), C = _t(() => {
1387
+ N || y(!0), r == null || r();
1390
1388
  }, [N, r]);
1391
- J(() => {
1389
+ Q(() => {
1392
1390
  if (m) {
1393
- b(!0);
1394
- const S = setTimeout(() => {
1395
- p(!0);
1391
+ v(!0);
1392
+ const E = setTimeout(() => {
1393
+ f(!0);
1396
1394
  }, 50);
1397
- return () => clearTimeout(S);
1395
+ return () => clearTimeout(E);
1398
1396
  } else {
1399
- p(!1);
1400
- const S = setTimeout(() => {
1401
- b(!1);
1397
+ f(!1);
1398
+ const E = setTimeout(() => {
1399
+ v(!1);
1402
1400
  }, 300);
1403
- return () => clearTimeout(S);
1401
+ return () => clearTimeout(E);
1404
1402
  }
1405
- }, [m]), J(() => {
1406
- const S = (z) => {
1407
- z.key === "Escape" && h();
1403
+ }, [m]), Q(() => {
1404
+ const E = (X) => {
1405
+ X.key === "Escape" && g();
1408
1406
  };
1409
- return m ? (document.addEventListener("keydown", S), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", S), document.body.style.overflow = "unset"), () => {
1410
- document.removeEventListener("keydown", S), document.body.style.overflow = "unset";
1407
+ return m ? (document.addEventListener("keydown", E), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", E), document.body.style.overflow = "unset"), () => {
1408
+ document.removeEventListener("keydown", E), document.body.style.overflow = "unset";
1411
1409
  };
1412
- }, [m, h]);
1413
- const x = (S) => {
1414
- c && S.target === S.currentTarget && h();
1415
- }, E = I.Children.toArray(l);
1416
- let C, B, R, $, k;
1417
- E.forEach((S) => {
1418
- if (ot(S))
1419
- if (S.type.displayName === "Offcanvas.Trigger")
1420
- C = S;
1421
- else if (S.type.displayName === "Offcanvas.Header")
1422
- B = S;
1423
- else if (S.type.displayName === "Offcanvas.Content") {
1424
- R = S;
1425
- const M = I.Children.toArray(R.props.children).filter((F) => ot(F) && F.type.displayName === "Offcanvas.Close" ? (k = F, !1) : !0);
1426
- R = rt(R, { children: M });
1427
- } else S.type.displayName === "Offcanvas.Footer" && ($ = S);
1428
- }), k && ($ ? $ = rt($, {
1429
- children: /* @__PURE__ */ w(jt, { children: [
1430
- $.props.children,
1431
- k
1410
+ }, [m, g]);
1411
+ const x = (E) => {
1412
+ c && E.target === E.currentTarget && g();
1413
+ }, B = W.Children.toArray(l);
1414
+ let k, j, $, S, _;
1415
+ B.forEach((E) => {
1416
+ if (ot(E))
1417
+ if (E.type.displayName === "Offcanvas.Trigger")
1418
+ k = E;
1419
+ else if (E.type.displayName === "Offcanvas.Header")
1420
+ j = E;
1421
+ else if (E.type.displayName === "Offcanvas.Content") {
1422
+ $ = E;
1423
+ const L = W.Children.toArray($.props.children).filter((U) => ot(U) && U.type.displayName === "Offcanvas.Close" ? (_ = U, !1) : !0);
1424
+ $ = rt($, { children: L });
1425
+ } else E.type.displayName === "Offcanvas.Footer" && (S = E);
1426
+ }), _ && (S ? S = rt(S, {
1427
+ children: /* @__PURE__ */ w(St, { children: [
1428
+ S.props.children,
1429
+ _
1432
1430
  ] })
1433
- }) : $ = /* @__PURE__ */ e($t, { children: k }));
1434
- const A = [
1431
+ }) : S = /* @__PURE__ */ e(xt, { children: _ }));
1432
+ const M = [
1435
1433
  "clarity-offcanvas",
1436
1434
  n,
1437
1435
  `clarity-offcanvas--${s}`,
1438
1436
  o && `clarity-offcanvas--${o}`,
1439
- f ? "clarity-offcanvas--open" : "clarity-offcanvas--closed"
1440
- ].filter(Boolean).join(" "), H = [
1437
+ p ? "clarity-offcanvas--open" : "clarity-offcanvas--closed"
1438
+ ].filter(Boolean).join(" "), I = [
1441
1439
  "clarity-offcanvas-overlay",
1442
- f ? "clarity-offcanvas-overlay--visible" : ""
1440
+ p ? "clarity-offcanvas-overlay--visible" : ""
1443
1441
  ].filter(Boolean).join(" ");
1444
- return /* @__PURE__ */ w(Dt.Provider, { value: { onClose: h, variant: o, showCloseButton: d, placement: s, title: i }, children: [
1445
- C && rt(C, { onClick: _, variant: o }),
1446
- y && // Only render if shouldRender is true
1447
- /* @__PURE__ */ e("div", { className: H, onClick: x, children: /* @__PURE__ */ w("div", { className: A, children: [
1448
- B,
1449
- R,
1450
- $ && /* @__PURE__ */ e("div", { className: "clarity-offcanvas-scroll-indicator" }),
1442
+ return /* @__PURE__ */ w(Mt.Provider, { value: { onClose: g, variant: o, showCloseButton: d, placement: s, title: i }, children: [
1443
+ k && rt(k, { onClick: C, variant: o }),
1444
+ b && // Only render if shouldRender is true
1445
+ /* @__PURE__ */ e("div", { className: I, onClick: x, children: /* @__PURE__ */ w("div", { className: M, children: [
1446
+ j,
1447
+ $,
1448
+ S && /* @__PURE__ */ e("div", { className: "clarity-offcanvas-scroll-indicator" }),
1451
1449
  " ",
1452
- $
1450
+ S
1453
1451
  ] }) })
1454
1452
  ] });
1455
1453
  };
1456
- ht.Header = Ft;
1457
- ht.Content = Gt;
1458
- ht.Footer = $t;
1459
- ht.Trigger = Ut;
1460
- ht.Close = Xt;
1454
+ ht.Header = Gt;
1455
+ ht.Content = Ut;
1456
+ ht.Footer = xt;
1457
+ ht.Trigger = Xt;
1458
+ ht.Close = Yt;
1461
1459
  ht.displayName = "Offcanvas";
1462
- const Re = I.forwardRef(({
1460
+ const We = W.forwardRef(({
1463
1461
  type: t,
1464
1462
  variant: a = "primary",
1465
1463
  size: r = "medium",
@@ -1467,59 +1465,60 @@ const Re = I.forwardRef(({
1467
1465
  helperText: n,
1468
1466
  helper: o = !1,
1469
1467
  helperPosition: s = "middle-right",
1470
- error: c = !1,
1471
- errorMessage: d,
1472
- labelPosition: i = "right",
1473
- className: u = "",
1474
- disabled: g = !1,
1468
+ reserveErrorSpace: c = !1,
1469
+ error: d = !1,
1470
+ errorMessage: i,
1471
+ labelPosition: u = "right",
1472
+ className: y = "",
1473
+ disabled: p = !1,
1475
1474
  checked: f,
1476
- id: p,
1477
- ...y
1478
- }, b) => {
1479
- const N = p || `check-input-${Math.random().toString(36).substr(2, 9)}`, m = [
1475
+ id: b,
1476
+ ...v
1477
+ }, N) => {
1478
+ const m = b || `check-input-${Math.random().toString(36).substr(2, 9)}`, g = [
1480
1479
  "clarity-check-input-wrapper",
1481
- `clarity-check-input-wrapper--${i}`,
1482
- g && "clarity-check-input-wrapper--disabled",
1483
- c && "clarity-check-input-wrapper--error"
1484
- ].filter(Boolean).join(" "), h = [
1480
+ `clarity-check-input-wrapper--${u}`,
1481
+ p && "clarity-check-input-wrapper--disabled",
1482
+ d && "clarity-check-input-wrapper--error"
1483
+ ].filter(Boolean).join(" "), C = [
1485
1484
  "clarity-check-input",
1486
1485
  `clarity-check-input--${t}`,
1487
1486
  `clarity-check-input--${r}`,
1488
1487
  a && `clarity-check-input--${a}`,
1489
- c && "clarity-check-input--error",
1490
- g && "clarity-check-input--disabled",
1491
- u
1492
- ].filter(Boolean).join(" "), _ = [
1488
+ d && "clarity-check-input--error",
1489
+ p && "clarity-check-input--disabled",
1490
+ y
1491
+ ].filter(Boolean).join(" "), x = [
1493
1492
  "clarity-check-input__label",
1494
1493
  `clarity-check-input__label--${r}`,
1495
- g && "clarity-check-input__label--disabled"
1496
- ].filter(Boolean).join(" "), x = s != null && s.endsWith("left") ? "left" : "right", E = (B, R) => {
1494
+ p && "clarity-check-input__label--disabled"
1495
+ ].filter(Boolean).join(" "), B = s != null && s.endsWith("left") ? "left" : "right", k = ($, S) => {
1497
1496
  if (!o) return null;
1498
- const $ = typeof o == "object" ? o : void 0, k = ($ == null ? void 0 : $.content) ?? "Ajuda", A = ($ == null ? void 0 : $.plain) === !0, H = $ == null ? void 0 : $.variant, S = $ == null ? void 0 : $.bgColor, z = $ == null ? void 0 : $.textColor, M = B === "middle" ? 20 : 16;
1497
+ const _ = typeof o == "object" ? o : void 0, M = (_ == null ? void 0 : _.content) ?? "Ajuda", I = (_ == null ? void 0 : _.plain) === !0, E = _ == null ? void 0 : _.variant, X = _ == null ? void 0 : _.bgColor, L = _ == null ? void 0 : _.textColor;
1499
1498
  return /* @__PURE__ */ e(
1500
- pt,
1499
+ yt,
1501
1500
  {
1502
- content: k,
1503
- position: B === "middle" ? R === "left" ? "left" : "right" : B === "top" ? R === "left" ? "top-left" : "top-right" : R === "left" ? "bottom-left" : "bottom-right",
1501
+ content: M,
1502
+ position: $ === "middle" ? S === "left" ? "left" : "right" : $ === "top" ? S === "left" ? "top-left" : "top-right" : S === "left" ? "bottom-left" : "bottom-right",
1504
1503
  trigger: "hover",
1505
- variant: H || a,
1506
- plain: A,
1507
- bgColor: S,
1508
- textColor: z,
1509
- children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-check-input__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: M, height: M, fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z" }) }) })
1504
+ variant: E || a,
1505
+ plain: I,
1506
+ bgColor: X,
1507
+ textColor: L,
1508
+ children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-check-input__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(pt, { size: $ === "middle" ? 20 : 16 }) })
1510
1509
  }
1511
1510
  );
1512
- }, C = /* @__PURE__ */ w("label", { className: m, htmlFor: N, children: [
1511
+ }, j = /* @__PURE__ */ w("label", { className: g, htmlFor: m, children: [
1513
1512
  /* @__PURE__ */ e(
1514
1513
  "input",
1515
1514
  {
1516
- ref: b,
1517
- id: N,
1515
+ ref: N,
1516
+ id: m,
1518
1517
  type: t,
1519
- className: h,
1520
- disabled: g,
1518
+ className: C,
1519
+ disabled: p,
1521
1520
  checked: f,
1522
- ...y
1521
+ ...v
1523
1522
  }
1524
1523
  ),
1525
1524
  /* @__PURE__ */ w("div", { className: "clarity-check-input__custom", children: [
@@ -1544,111 +1543,112 @@ const Re = I.forwardRef(({
1544
1543
  ),
1545
1544
  t === "radio" && /* @__PURE__ */ e("div", { className: "clarity-check-input__radio-dot" })
1546
1545
  ] }),
1547
- l && /* @__PURE__ */ e("span", { className: _, children: l })
1546
+ l && /* @__PURE__ */ e("span", { className: x, children: l })
1548
1547
  ] });
1549
1548
  return /* @__PURE__ */ w("div", { className: "clarity-check-input-container", children: [
1550
- o && (s == null ? void 0 : s.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-check-input__helper-row clarity-check-input__helper-row--top clarity-check-input__helper-row--${x}`, children: E("top", x) }),
1551
- o && (s != null && s.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-check-input__middle-row clarity-check-input__middle-row--${x}`, children: [
1552
- x === "left" && E("middle", x),
1553
- C,
1554
- x === "right" && E("middle", x)
1555
- ] }) : C,
1556
- o && (s == null ? void 0 : s.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-check-input__helper-row clarity-check-input__helper-row--bottom clarity-check-input__helper-row--${x}`, children: E("bottom", x) }),
1557
- (n || c && d) && /* @__PURE__ */ e("div", { className: "clarity-check-input__helper-text", children: c && d ? d : n })
1549
+ o && (s == null ? void 0 : s.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-check-input__helper-row clarity-check-input__helper-row--top clarity-check-input__helper-row--${B}`, children: k("top", B) }),
1550
+ o && (s != null && s.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-check-input__middle-row clarity-check-input__middle-row--${B}`, children: [
1551
+ B === "left" && k("middle", B),
1552
+ j,
1553
+ B === "right" && k("middle", B)
1554
+ ] }) : j,
1555
+ o && (s == null ? void 0 : s.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-check-input__helper-row clarity-check-input__helper-row--bottom clarity-check-input__helper-row--${B}`, children: k("bottom", B) }),
1556
+ (n || d && i || c) && /* @__PURE__ */ e("div", { className: "clarity-check-input__helper-text", style: !n && !i ? { minHeight: "1.2em" } : void 0, children: (d && i ? i : n) || " " })
1558
1557
  ] });
1559
1558
  });
1560
- Re.displayName = "CheckInput";
1561
- const Oe = I.forwardRef(({
1559
+ We.displayName = "CheckInput";
1560
+ const Ie = W.forwardRef(({
1562
1561
  variant: t = "primary",
1563
1562
  size: a = "medium",
1564
1563
  label: r,
1565
1564
  helper: l = !1,
1566
1565
  helperPosition: n = "middle-right",
1567
- error: o = !1,
1568
- errorMessage: s,
1569
- labelPosition: c = "right",
1570
- className: d = "",
1571
- disabled: i = !1,
1572
- checked: u,
1573
- id: g,
1566
+ reserveErrorSpace: o = !1,
1567
+ error: s = !1,
1568
+ errorMessage: c,
1569
+ labelPosition: d = "right",
1570
+ className: i = "",
1571
+ disabled: u = !1,
1572
+ checked: y,
1573
+ id: p,
1574
1574
  ...f
1575
- }, p) => {
1576
- const y = g || `input-switch-${Math.random().toString(36).substr(2, 9)}`, b = [
1575
+ }, b) => {
1576
+ const v = p || `input-switch-${Math.random().toString(36).substr(2, 9)}`, N = [
1577
1577
  "clarity-input-switch-wrapper",
1578
- `clarity-input-switch-wrapper--${c}`,
1579
- i && "clarity-input-switch-wrapper--disabled",
1580
- o && "clarity-input-switch-wrapper--error"
1581
- ].filter(Boolean).join(" "), N = [
1578
+ `clarity-input-switch-wrapper--${d}`,
1579
+ u && "clarity-input-switch-wrapper--disabled",
1580
+ s && "clarity-input-switch-wrapper--error"
1581
+ ].filter(Boolean).join(" "), m = [
1582
1582
  "clarity-input-switch",
1583
1583
  `clarity-input-switch--${a}`,
1584
1584
  t && `clarity-input-switch--${t}`,
1585
- o && "clarity-input-switch--error",
1586
- i && "clarity-input-switch--disabled",
1587
- d
1588
- ].filter(Boolean).join(" "), m = [
1585
+ s && "clarity-input-switch--error",
1586
+ u && "clarity-input-switch--disabled",
1587
+ i
1588
+ ].filter(Boolean).join(" "), g = [
1589
1589
  "clarity-input-switch__label",
1590
1590
  `clarity-input-switch__label--${a}`,
1591
1591
  t && `clarity-input-switch__label--${t}`,
1592
- i && "clarity-input-switch__label--disabled"
1593
- ].filter(Boolean).join(" "), h = n != null && n.endsWith("left") ? "left" : "right", _ = (E, C) => {
1592
+ u && "clarity-input-switch__label--disabled"
1593
+ ].filter(Boolean).join(" "), C = n != null && n.endsWith("left") ? "left" : "right", x = (k, j) => {
1594
1594
  if (!l) return null;
1595
- const B = typeof l == "object" ? l : void 0, R = (B == null ? void 0 : B.content) ?? "Ajuda", $ = (B == null ? void 0 : B.plain) === !0, k = B == null ? void 0 : B.variant, A = B == null ? void 0 : B.bgColor, H = B == null ? void 0 : B.textColor, S = E === "middle" ? 20 : 16;
1595
+ const $ = typeof l == "object" ? l : void 0, S = ($ == null ? void 0 : $.content) ?? "Ajuda", _ = ($ == null ? void 0 : $.plain) === !0, M = $ == null ? void 0 : $.variant, I = $ == null ? void 0 : $.bgColor, E = $ == null ? void 0 : $.textColor;
1596
1596
  return /* @__PURE__ */ e(
1597
- pt,
1597
+ yt,
1598
1598
  {
1599
- content: R,
1600
- position: E === "middle" ? C === "left" ? "left" : "right" : E === "top" ? C === "left" ? "top-left" : "top-right" : C === "left" ? "bottom-left" : "bottom-right",
1599
+ content: S,
1600
+ position: k === "middle" ? j === "left" ? "left" : "right" : k === "top" ? j === "left" ? "top-left" : "top-right" : j === "left" ? "bottom-left" : "bottom-right",
1601
1601
  trigger: "hover",
1602
- variant: k || t,
1603
- plain: $,
1604
- bgColor: A,
1605
- textColor: H,
1606
- children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-input-switch__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: S, height: S, fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z" }) }) })
1602
+ variant: M || t,
1603
+ plain: _,
1604
+ bgColor: I,
1605
+ textColor: E,
1606
+ children: /* @__PURE__ */ e("button", { type: "button", className: "clarity-input-switch__helper-icon", "aria-label": "Helper", children: /* @__PURE__ */ e(pt, { size: k === "middle" ? 20 : 16 }) })
1607
1607
  }
1608
1608
  );
1609
- }, x = /* @__PURE__ */ w("label", { className: b, htmlFor: y, children: [
1609
+ }, B = /* @__PURE__ */ w("label", { className: N, htmlFor: v, children: [
1610
1610
  /* @__PURE__ */ e(
1611
1611
  "input",
1612
1612
  {
1613
- ref: p,
1614
- id: y,
1613
+ ref: b,
1614
+ id: v,
1615
1615
  type: "checkbox",
1616
- className: N,
1617
- disabled: i,
1618
- checked: u,
1616
+ className: m,
1617
+ disabled: u,
1618
+ checked: y,
1619
1619
  ...f
1620
1620
  }
1621
1621
  ),
1622
1622
  /* @__PURE__ */ e("div", { className: "clarity-input-switch__track", children: /* @__PURE__ */ e("div", { className: "clarity-input-switch__thumb" }) }),
1623
- r && /* @__PURE__ */ e("span", { className: m, children: r })
1623
+ r && /* @__PURE__ */ e("span", { className: g, children: r })
1624
1624
  ] });
1625
1625
  return /* @__PURE__ */ w("div", { className: "clarity-input-switch-container", children: [
1626
- l && (n == null ? void 0 : n.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-input-switch__helper-row clarity-input-switch__helper-row--top clarity-input-switch__helper-row--${h}`, children: _("top", h) }),
1627
- l && (n != null && n.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-input-switch__middle-row clarity-input-switch__middle-row--${h}`, children: [
1628
- h === "left" && _("middle", h),
1629
- x,
1630
- h === "right" && _("middle", h)
1631
- ] }) : x,
1632
- l && (n == null ? void 0 : n.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-input-switch__helper-row clarity-input-switch__helper-row--bottom clarity-input-switch__helper-row--${h}`, children: _("bottom", h) }),
1633
- o && s && /* @__PURE__ */ e("div", { className: "clarity-input-switch__error-text", children: s })
1626
+ l && (n == null ? void 0 : n.startsWith("top")) && /* @__PURE__ */ e("div", { className: `clarity-input-switch__helper-row clarity-input-switch__helper-row--top clarity-input-switch__helper-row--${C}`, children: x("top", C) }),
1627
+ l && (n != null && n.startsWith("middle")) ? /* @__PURE__ */ w("div", { className: `clarity-input-switch__middle-row clarity-input-switch__middle-row--${C}`, children: [
1628
+ C === "left" && x("middle", C),
1629
+ B,
1630
+ C === "right" && x("middle", C)
1631
+ ] }) : B,
1632
+ l && (n == null ? void 0 : n.startsWith("bottom")) && /* @__PURE__ */ e("div", { className: `clarity-input-switch__helper-row clarity-input-switch__helper-row--bottom clarity-input-switch__helper-row--${C}`, children: x("bottom", C) }),
1633
+ (s && c || o) && /* @__PURE__ */ e("div", { className: "clarity-input-switch__error-text", style: c ? void 0 : { minHeight: "1.2em" }, children: c || " " })
1634
1634
  ] });
1635
1635
  });
1636
- Oe.displayName = "InputSwitch";
1637
- const Yt = ct(null), wt = () => {
1638
- const t = dt(Yt);
1636
+ Ie.displayName = "InputSwitch";
1637
+ const Zt = ct(null), wt = () => {
1638
+ const t = dt(Zt);
1639
1639
  if (!t)
1640
1640
  throw new Error("useConfirmationDialog must be used within a ConfirmationDialog provider");
1641
1641
  return t;
1642
- }, Zt = ({ children: t, className: a = "" }) => {
1642
+ }, qt = ({ children: t, className: a = "" }) => {
1643
1643
  const { variant: r } = wt(), l = `clarity-confirmation-dialog-header ${a} clarity-confirmation-dialog-header--${r}`;
1644
1644
  return /* @__PURE__ */ e("div", { className: l, children: t });
1645
1645
  };
1646
- Zt.displayName = "ConfirmationDialog.Header";
1647
- const qt = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-confirmation-dialog-content ${a}`, children: t });
1648
- qt.displayName = "ConfirmationDialog.Content";
1649
- const Jt = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-confirmation-dialog-footer ${a}`, children: t });
1650
- Jt.displayName = "ConfirmationDialog.Footer";
1651
- const Qt = ({ children: t }) => {
1646
+ qt.displayName = "ConfirmationDialog.Header";
1647
+ const Jt = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-confirmation-dialog-content ${a}`, children: t });
1648
+ Jt.displayName = "ConfirmationDialog.Content";
1649
+ const Qt = ({ children: t, className: a = "" }) => /* @__PURE__ */ e("div", { className: `clarity-confirmation-dialog-footer ${a}`, children: t });
1650
+ Qt.displayName = "ConfirmationDialog.Footer";
1651
+ const Kt = ({ children: t }) => {
1652
1652
  const { onOpen: a } = wt();
1653
1653
  return rt(t, {
1654
1654
  onClick: (r) => {
@@ -1657,8 +1657,8 @@ const Qt = ({ children: t }) => {
1657
1657
  }
1658
1658
  });
1659
1659
  };
1660
- Qt.displayName = "ConfirmationDialog.Trigger";
1661
- const Kt = ({ children: t }) => {
1660
+ Kt.displayName = "ConfirmationDialog.Trigger";
1661
+ const Pt = ({ children: t }) => {
1662
1662
  const { onClose: a } = wt();
1663
1663
  return rt(t, {
1664
1664
  onClick: (r) => {
@@ -1667,8 +1667,8 @@ const Kt = ({ children: t }) => {
1667
1667
  }
1668
1668
  });
1669
1669
  };
1670
- Kt.displayName = "ConfirmationDialog.Close";
1671
- const Pt = ({ children: t }) => {
1670
+ Pt.displayName = "ConfirmationDialog.Close";
1671
+ const te = ({ children: t }) => {
1672
1672
  const { onConfirm: a } = wt();
1673
1673
  return rt(t, {
1674
1674
  onClick: (r) => {
@@ -1677,7 +1677,7 @@ const Pt = ({ children: t }) => {
1677
1677
  }
1678
1678
  });
1679
1679
  };
1680
- Pt.displayName = "ConfirmationDialog.Confirm";
1680
+ te.displayName = "ConfirmationDialog.Confirm";
1681
1681
  const ut = ({
1682
1682
  isOpen: t,
1683
1683
  onClose: a,
@@ -1686,39 +1686,39 @@ const ut = ({
1686
1686
  children: n,
1687
1687
  blockScroll: o = !0
1688
1688
  }) => {
1689
- const [s, c] = D(!1), d = t !== void 0, i = d ? t : s, u = () => {
1689
+ const [s, c] = z(!1), d = t !== void 0, i = d ? t : s, u = () => {
1690
1690
  d || c(!0);
1691
- }, g = I.useCallback(() => {
1691
+ }, y = W.useCallback(() => {
1692
1692
  a ? a() : c(!1);
1693
- }, [a]), f = () => {
1694
- r && r(), g();
1693
+ }, [a]), p = () => {
1694
+ r && r(), y();
1695
1695
  };
1696
- J(() => {
1696
+ Q(() => {
1697
1697
  const N = (m) => {
1698
- m.key === "Escape" && g();
1698
+ m.key === "Escape" && y();
1699
1699
  };
1700
1700
  return i ? (document.addEventListener("keydown", N), o && (document.body.style.overflow = "hidden")) : document.body.style.overflow = "unset", () => {
1701
1701
  document.removeEventListener("keydown", N), document.body.style.overflow = "unset";
1702
1702
  };
1703
- }, [i, g, o]);
1704
- const p = I.Children.toArray(n).find(
1703
+ }, [i, y, o]);
1704
+ const f = W.Children.toArray(n).find(
1705
1705
  (N) => ot(N) && N.type.displayName === "ConfirmationDialog.Trigger"
1706
- ), y = I.Children.toArray(n).filter(
1706
+ ), b = W.Children.toArray(n).filter(
1707
1707
  (N) => ot(N) && N.type.displayName !== "ConfirmationDialog.Trigger"
1708
- ), b = `clarity-confirmation-dialog clarity-confirmation-dialog--${l}`;
1709
- return /* @__PURE__ */ w(Yt.Provider, { value: { variant: l, onClose: g, onConfirm: f, onOpen: u }, children: [
1710
- p,
1711
- i && /* @__PURE__ */ e("div", { className: "clarity-modal-overlay", children: /* @__PURE__ */ e("div", { className: b, children: y }) })
1708
+ ), v = `clarity-confirmation-dialog clarity-confirmation-dialog--${l}`;
1709
+ return /* @__PURE__ */ w(Zt.Provider, { value: { variant: l, onClose: y, onConfirm: p, onOpen: u }, children: [
1710
+ f,
1711
+ i && /* @__PURE__ */ e("div", { className: "clarity-modal-overlay", children: /* @__PURE__ */ e("div", { className: v, children: b }) })
1712
1712
  ] });
1713
1713
  };
1714
- ut.Header = Zt;
1715
- ut.Content = qt;
1716
- ut.Footer = Jt;
1717
- ut.Trigger = Qt;
1718
- ut.Close = Kt;
1719
- ut.Confirm = Pt;
1714
+ ut.Header = qt;
1715
+ ut.Content = Jt;
1716
+ ut.Footer = Qt;
1717
+ ut.Trigger = Kt;
1718
+ ut.Close = Pt;
1719
+ ut.Confirm = te;
1720
1720
  ut.displayName = "ConfirmationDialog";
1721
- const ra = ({
1721
+ const la = ({
1722
1722
  variant: t = "primary",
1723
1723
  size: a = "medium",
1724
1724
  disabled: r = !1,
@@ -1730,35 +1730,35 @@ const ra = ({
1730
1730
  "aria-label": d,
1731
1731
  title: i,
1732
1732
  customColor: u,
1733
- customColorHover: g,
1734
- ...f
1733
+ customColorHover: y,
1734
+ ...p
1735
1735
  }) => {
1736
- const p = "clarity-button-icon", y = [
1737
- p,
1738
- !u && `${p}--${t}`,
1739
- `${p}--${a}`,
1740
- l && `${p}--loading`,
1741
- r && `${p}--disabled`,
1736
+ const f = "clarity-button-icon", b = [
1737
+ f,
1738
+ !u && `${f}--${t}`,
1739
+ `${f}--${a}`,
1740
+ l && `${f}--loading`,
1741
+ r && `${f}--disabled`,
1742
1742
  c
1743
- ].filter(Boolean).join(" "), b = {};
1744
- return u && (b["--button-icon-bg"] = u, b["--button-icon-hover-bg"] = g || `${u}E6`), /* @__PURE__ */ w(
1743
+ ].filter(Boolean).join(" "), v = {};
1744
+ return u && (v["--button-icon-bg"] = u, v["--button-icon-hover-bg"] = y || `${u}E6`), /* @__PURE__ */ w(
1745
1745
  "button",
1746
1746
  {
1747
- className: y,
1747
+ className: b,
1748
1748
  disabled: r || l,
1749
1749
  onClick: o,
1750
1750
  type: s,
1751
1751
  "aria-label": d,
1752
1752
  title: i,
1753
- style: b,
1754
- ...f,
1753
+ style: v,
1754
+ ...p,
1755
1755
  children: [
1756
- l && /* @__PURE__ */ e("div", { className: `${p}__spinner` }),
1756
+ l && /* @__PURE__ */ e("div", { className: `${f}__spinner` }),
1757
1757
  !l && n
1758
1758
  ]
1759
1759
  }
1760
1760
  );
1761
- }, la = ({
1761
+ }, na = ({
1762
1762
  variant: t = "primary",
1763
1763
  product: a,
1764
1764
  tone: r,
@@ -1770,19 +1770,19 @@ const ra = ({
1770
1770
  href: d,
1771
1771
  target: i,
1772
1772
  rel: u,
1773
- className: g = "",
1774
- ...f
1773
+ className: y = "",
1774
+ ...p
1775
1775
  }) => {
1776
- const p = "clarity-button-link", y = a && r, b = y ? `${p}--custom` : `${p}--${t}`, N = [
1777
- p,
1778
- b,
1779
- `${p}--${n}`,
1780
- o && `${p}--disabled`,
1781
- g
1782
- ].filter(Boolean).join(" "), m = (_) => {
1783
- const x = parseInt(_);
1776
+ const f = "clarity-button-link", b = a && r, v = b ? `${f}--custom` : `${f}--${t}`, N = [
1777
+ f,
1778
+ v,
1779
+ `${f}--${n}`,
1780
+ o && `${f}--disabled`,
1781
+ y
1782
+ ].filter(Boolean).join(" "), m = (C) => {
1783
+ const x = parseInt(C);
1784
1784
  return x >= 800 ? "900" : x >= 700 ? "800" : x >= 600 ? "700" : x >= 500 ? "600" : x >= 400 ? "500" : x >= 300 ? "400" : x >= 200 ? "300" : "200";
1785
- }, h = y ? {
1785
+ }, g = b ? {
1786
1786
  "--custom-color": `var(--clarity-${a}-${r})`,
1787
1787
  "--custom-hover-color": `var(--clarity-${a}-${l || m(r)})`
1788
1788
  } : {};
@@ -1793,28 +1793,28 @@ const ra = ({
1793
1793
  target: i,
1794
1794
  rel: u || (i === "_blank" ? "noopener noreferrer" : void 0),
1795
1795
  className: N,
1796
- style: h,
1796
+ style: g,
1797
1797
  onClick: o ? void 0 : c,
1798
- ...f,
1798
+ ...p,
1799
1799
  children: s
1800
1800
  }
1801
1801
  ) : /* @__PURE__ */ e(
1802
1802
  "button",
1803
1803
  {
1804
1804
  className: N,
1805
- style: h,
1805
+ style: g,
1806
1806
  disabled: o,
1807
1807
  onClick: c,
1808
- ...f,
1808
+ ...p,
1809
1809
  children: s
1810
1810
  }
1811
1811
  );
1812
- }, te = ct(void 0), ee = () => {
1813
- const t = dt(te);
1812
+ }, ee = ct(void 0), ae = () => {
1813
+ const t = dt(ee);
1814
1814
  if (!t)
1815
1815
  throw new Error("Accordion components must be used within an Accordion");
1816
1816
  return t;
1817
- }, We = ({
1817
+ }, He = ({
1818
1818
  variant: t = "primary",
1819
1819
  product: a,
1820
1820
  tone: r,
@@ -1827,24 +1827,24 @@ const ra = ({
1827
1827
  onSelect: i,
1828
1828
  ...u
1829
1829
  }) => {
1830
- const [g, f] = D(() => n ? Array.isArray(n) ? n : [n] : []), p = (E) => {
1831
- let C;
1832
- o ? C = g.includes(E) ? g.filter((B) => B !== E) : [...g, E] : C = g.includes(E) ? [] : [E], f(C), i && i(g.includes(E) ? null : E, {});
1833
- }, y = "clarity-accordion", b = a && r, N = b ? `${y}--custom` : `${y}--${t}`, m = [
1834
- y,
1830
+ const [y, p] = z(() => n ? Array.isArray(n) ? n : [n] : []), f = (B) => {
1831
+ let k;
1832
+ o ? k = y.includes(B) ? y.filter((j) => j !== B) : [...y, B] : k = y.includes(B) ? [] : [B], p(k), i && i(y.includes(B) ? null : B, {});
1833
+ }, b = "clarity-accordion", v = a && r, N = v ? `${b}--custom` : `${b}--${t}`, m = [
1834
+ b,
1835
1835
  N,
1836
- s && `${y}--flush`,
1836
+ s && `${b}--flush`,
1837
1837
  c
1838
- ].filter(Boolean).join(" "), h = (E) => {
1839
- const C = parseInt(E);
1840
- return C >= 800 ? "900" : C >= 700 ? "800" : C >= 600 ? "700" : C >= 500 ? "600" : C >= 400 ? "500" : C >= 300 ? "400" : C >= 200 ? "300" : "200";
1841
- }, _ = b ? {
1838
+ ].filter(Boolean).join(" "), g = (B) => {
1839
+ const k = parseInt(B);
1840
+ return k >= 800 ? "900" : k >= 700 ? "800" : k >= 600 ? "700" : k >= 500 ? "600" : k >= 400 ? "500" : k >= 300 ? "400" : k >= 200 ? "300" : "200";
1841
+ }, C = v ? {
1842
1842
  "--custom-border-color": `var(--clarity-${a}-${r})`,
1843
1843
  "--custom-header-color": `var(--clarity-${a}-${r})`,
1844
- "--custom-hover-color": `var(--clarity-${a}-${l || h(r)})`
1844
+ "--custom-hover-color": `var(--clarity-${a}-${l || g(r)})`
1845
1845
  } : {}, x = {
1846
- activeKeys: g,
1847
- toggleItem: p,
1846
+ activeKeys: y,
1847
+ toggleItem: f,
1848
1848
  alwaysOpen: o,
1849
1849
  variant: t,
1850
1850
  product: a,
@@ -1852,27 +1852,27 @@ const ra = ({
1852
1852
  hoverTone: l,
1853
1853
  flush: s
1854
1854
  };
1855
- return /* @__PURE__ */ e(te.Provider, { value: x, children: /* @__PURE__ */ e("div", { className: m, style: _, ...u, children: d }) });
1856
- }, Ie = ({
1855
+ return /* @__PURE__ */ e(ee.Provider, { value: x, children: /* @__PURE__ */ e("div", { className: m, style: C, ...u, children: d }) });
1856
+ }, De = ({
1857
1857
  eventKey: t,
1858
1858
  disabled: a = !1,
1859
1859
  className: r = "",
1860
1860
  children: l,
1861
1861
  ...n
1862
1862
  }) => {
1863
- const { activeKeys: o } = ee(), s = "clarity-accordion", c = o.includes(t), d = [
1863
+ const { activeKeys: o } = ae(), s = "clarity-accordion", c = o.includes(t), d = [
1864
1864
  `${s}__item`,
1865
1865
  c && `${s}__item--active`,
1866
1866
  a && `${s}__item--disabled`,
1867
1867
  r
1868
1868
  ].filter(Boolean).join(" ");
1869
- return /* @__PURE__ */ e("div", { className: d, ...n, children: I.Children.map(l, (i) => I.isValidElement(i) ? I.cloneElement(i, {
1869
+ return /* @__PURE__ */ e("div", { className: d, ...n, children: W.Children.map(l, (i) => W.isValidElement(i) ? W.cloneElement(i, {
1870
1870
  ...i.props,
1871
1871
  eventKey: t,
1872
1872
  disabled: a,
1873
1873
  isActive: c
1874
1874
  }) : i) });
1875
- }, He = ({
1875
+ }, Ve = ({
1876
1876
  className: t = "",
1877
1877
  children: a,
1878
1878
  onClick: r,
@@ -1881,7 +1881,7 @@ const ra = ({
1881
1881
  isActive: o = !1,
1882
1882
  ...s
1883
1883
  }) => {
1884
- const { toggleItem: c } = ee(), d = "clarity-accordion", i = (u) => {
1884
+ const { toggleItem: c } = ae(), d = "clarity-accordion", i = (u) => {
1885
1885
  !n && l && c(l), r == null || r(u);
1886
1886
  };
1887
1887
  return /* @__PURE__ */ w(
@@ -1909,7 +1909,7 @@ const ra = ({
1909
1909
  ]
1910
1910
  }
1911
1911
  );
1912
- }, Me = ({
1912
+ }, Ae = ({
1913
1913
  className: t = "",
1914
1914
  children: a,
1915
1915
  eventKey: r,
@@ -1928,19 +1928,19 @@ const ra = ({
1928
1928
  children: /* @__PURE__ */ e("div", { className: [`${o}__body`, t].filter(Boolean).join(" "), ...n, children: a })
1929
1929
  }
1930
1930
  );
1931
- }, na = Object.assign(We, {
1932
- Item: Ie,
1933
- Header: He,
1934
- Body: Me
1935
- }), ae = ct(
1931
+ }, ia = Object.assign(He, {
1932
+ Item: De,
1933
+ Header: Ve,
1934
+ Body: Ae
1935
+ }), re = ct(
1936
1936
  void 0
1937
- ), re = () => {
1938
- const t = dt(ae);
1937
+ ), le = () => {
1938
+ const t = dt(re);
1939
1939
  if (!t)
1940
1940
  throw new Error("useDropdown must be used within a DropdownProvider");
1941
1941
  return t;
1942
- }, Ve = ({ children: t }) => {
1943
- const { setIsOpen: a, triggerRef: r } = re();
1942
+ }, ze = ({ children: t }) => {
1943
+ const { setIsOpen: a, triggerRef: r } = le();
1944
1944
  return /* @__PURE__ */ e(
1945
1945
  "button",
1946
1946
  {
@@ -1952,44 +1952,44 @@ const ra = ({
1952
1952
  children: t
1953
1953
  }
1954
1954
  );
1955
- }, ze = ({ children: t }) => {
1956
- const { isOpen: a, contentRef: r, styles: l } = re();
1955
+ }, Me = ({ children: t }) => {
1956
+ const { isOpen: a, contentRef: r, styles: l } = le();
1957
1957
  return a ? /* @__PURE__ */ e("div", { ref: r, className: "dropdown__content", style: l, children: t }) : null;
1958
- }, De = ({ children: t }) => /* @__PURE__ */ e("div", { className: "dropdown__menu", children: t }), Ae = ({ as: t, children: a, ...r }) => /* @__PURE__ */ e(t || "a", { ...r, className: "dropdown__item", children: a }), Fe = () => /* @__PURE__ */ e("hr", { className: "dropdown__separator" }), bt = ({ title: t, position: a = "bottom", children: r }) => {
1959
- const [l, n] = D(!1), [o, s] = D({}), c = et(null), d = et(null), i = et(null);
1960
- return Lt(() => {
1958
+ }, Fe = ({ children: t }) => /* @__PURE__ */ e("div", { className: "dropdown__menu", children: t }), Ge = ({ as: t, children: a, ...r }) => /* @__PURE__ */ e(t || "a", { ...r, className: "dropdown__item", children: a }), Ue = () => /* @__PURE__ */ e("hr", { className: "dropdown__separator" }), vt = ({ title: t, position: a = "bottom", children: r }) => {
1959
+ const [l, n] = z(!1), [o, s] = z({}), c = at(null), d = at(null), i = at(null);
1960
+ return Et(() => {
1961
1961
  if (l) {
1962
- const u = d.current, g = i.current;
1963
- if (!u || !g) return;
1964
- const f = u.getBoundingClientRect(), p = g.getBoundingClientRect(), y = window.innerHeight, b = window.innerWidth;
1962
+ const u = d.current, y = i.current;
1963
+ if (!u || !y) return;
1964
+ const p = u.getBoundingClientRect(), f = y.getBoundingClientRect(), b = window.innerHeight, v = window.innerWidth;
1965
1965
  let N = a;
1966
- a === "bottom" && f.bottom + p.height > y && (N = "top"), a === "top" && f.top - p.height < 0 && (N = "bottom"), a === "right" && f.right + p.width > b && (N = "left"), a === "left" && f.left - p.width < 0 && (N = "right");
1966
+ a === "bottom" && p.bottom + f.height > b && (N = "top"), a === "top" && p.top - f.height < 0 && (N = "bottom"), a === "right" && p.right + f.width > v && (N = "left"), a === "left" && p.left - f.width < 0 && (N = "right");
1967
1967
  const m = {};
1968
1968
  switch (N) {
1969
1969
  case "top":
1970
- m.bottom = f.height + 4, m.left = f.width / 2 - p.width / 2;
1970
+ m.bottom = p.height + 4, m.left = p.width / 2 - f.width / 2;
1971
1971
  break;
1972
1972
  case "right":
1973
- m.left = f.width + 4, m.top = f.height / 2 - p.height / 2;
1973
+ m.left = p.width + 4, m.top = p.height / 2 - f.height / 2;
1974
1974
  break;
1975
1975
  case "left":
1976
- m.right = f.width + 4, m.top = f.height / 2 - p.height / 2;
1976
+ m.right = p.width + 4, m.top = p.height / 2 - f.height / 2;
1977
1977
  break;
1978
1978
  case "bottom":
1979
1979
  default:
1980
- m.top = f.height + 4, m.left = f.width / 2 - p.width / 2;
1980
+ m.top = p.height + 4, m.left = p.width / 2 - f.width / 2;
1981
1981
  break;
1982
1982
  }
1983
1983
  s(m);
1984
1984
  }
1985
- }, [l, a]), J(() => {
1986
- const u = (g) => {
1987
- c.current && !c.current.contains(g.target) && n(!1);
1985
+ }, [l, a]), Q(() => {
1986
+ const u = (y) => {
1987
+ c.current && !c.current.contains(y.target) && n(!1);
1988
1988
  };
1989
1989
  return document.addEventListener("mousedown", u), () => {
1990
1990
  document.removeEventListener("mousedown", u);
1991
1991
  };
1992
- }, []), /* @__PURE__ */ e(ae.Provider, { value: { isOpen: l, setIsOpen: n, triggerRef: d, contentRef: i, styles: o }, children: /* @__PURE__ */ e(
1992
+ }, []), /* @__PURE__ */ e(re.Provider, { value: { isOpen: l, setIsOpen: n, triggerRef: d, contentRef: i, styles: o }, children: /* @__PURE__ */ e(
1993
1993
  "div",
1994
1994
  {
1995
1995
  ref: c,
@@ -1999,12 +1999,12 @@ const ra = ({
1999
1999
  }
2000
2000
  ) });
2001
2001
  };
2002
- bt.Trigger = Ve;
2003
- bt.Content = ze;
2004
- bt.Menu = De;
2005
- bt.Item = Ae;
2006
- bt.Separator = Fe;
2007
- const xt = ({
2002
+ vt.Trigger = ze;
2003
+ vt.Content = Me;
2004
+ vt.Menu = Fe;
2005
+ vt.Item = Ge;
2006
+ vt.Separator = Ue;
2007
+ const kt = ({
2008
2008
  as: t = "button",
2009
2009
  id: a,
2010
2010
  children: r,
@@ -2037,42 +2037,46 @@ const xt = ({
2037
2037
  }
2038
2038
  );
2039
2039
  };
2040
- xt.displayName = "Tabs.Tab";
2041
- const le = ({
2040
+ kt.displayName = "Tabs.Tab";
2041
+ const ne = ({
2042
2042
  children: t,
2043
2043
  activeTab: a,
2044
2044
  onTabChange: r,
2045
2045
  variant: l = "primary",
2046
2046
  orientation: n = "horizontal",
2047
- className: o = ""
2047
+ align: o = "left",
2048
+ className: s = ""
2048
2049
  }) => {
2049
- const s = [
2050
+ let c = "";
2051
+ o === "center" ? c = "clarity-tabs-align-center" : o === "right" && (c = "clarity-tabs-align-right");
2052
+ const d = [
2050
2053
  "clarity-tabs-container",
2051
- o,
2052
- `orientation-${n}`
2053
- ].filter(Boolean).join(" "), c = [], d = [];
2054
- return _e.forEach(t, (i) => {
2055
- ot(i) && i.type === xt ? c.push(i) : d.push(i);
2056
- }), /* @__PURE__ */ w("div", { className: s, children: [
2057
- /* @__PURE__ */ e("div", { className: "clarity-tab-list", role: "tablist", children: c.map(
2058
- (i) => rt(i, {
2059
- isActive: I.isValidElement(i) && i.props.id === a,
2054
+ s,
2055
+ `orientation-${n}`,
2056
+ n === "horizontal" ? c : ""
2057
+ ].filter(Boolean).join(" "), i = [], u = [];
2058
+ return Ne.forEach(t, (y) => {
2059
+ ot(y) && y.type === kt ? i.push(y) : u.push(y);
2060
+ }), /* @__PURE__ */ w("div", { className: d, children: [
2061
+ /* @__PURE__ */ e("div", { className: "clarity-tab-list", role: "tablist", children: i.map(
2062
+ (y) => rt(y, {
2063
+ isActive: W.isValidElement(y) && y.props.id === a,
2060
2064
  onClick: r,
2061
2065
  variant: l,
2062
2066
  orientation: n
2063
2067
  })
2064
2068
  ) }),
2065
- d
2069
+ u
2066
2070
  ] });
2067
2071
  };
2068
- le.Tab = xt;
2069
- le.displayName = "Tabs";
2070
- const ne = ct(null), yt = () => {
2071
- const t = dt(ne);
2072
+ ne.Tab = kt;
2073
+ ne.displayName = "Tabs";
2074
+ const ie = ct(null), bt = () => {
2075
+ const t = dt(ie);
2072
2076
  if (!t)
2073
2077
  throw new Error("useCommand must be used within a Command provider");
2074
2078
  return t;
2075
- }, ie = ({
2079
+ }, se = ({
2076
2080
  children: t,
2077
2081
  className: a = "",
2078
2082
  variant: r = "secondary",
@@ -2080,11 +2084,11 @@ const ne = ct(null), yt = () => {
2080
2084
  inputPlaceholder: n = "Search...",
2081
2085
  ...o
2082
2086
  }) => {
2083
- const [s, c] = D(""), [d, i] = D(null), [u, g] = D(!1), f = [
2087
+ const [s, c] = z(""), [d, i] = z(null), [u, y] = z(!1), p = [
2084
2088
  "clarity-command",
2085
2089
  `clarity-command--${r}`,
2086
2090
  a
2087
- ].filter(Boolean).join(" "), p = vt(() => ({
2091
+ ].filter(Boolean).join(" "), f = gt(() => ({
2088
2092
  searchTerm: s,
2089
2093
  setSearchTerm: c,
2090
2094
  value: d,
@@ -2095,14 +2099,14 @@ const ne = ct(null), yt = () => {
2095
2099
  inputPlaceholder: n
2096
2100
  },
2097
2101
  isOpen: u,
2098
- setIsOpen: g
2102
+ setIsOpen: y
2099
2103
  }), [s, d, r, l, n, u]);
2100
- return /* @__PURE__ */ e(ne.Provider, { value: p, children: /* @__PURE__ */ e("div", { className: f, ...o, children: t }) });
2104
+ return /* @__PURE__ */ e(ie.Provider, { value: f, children: /* @__PURE__ */ e("div", { className: p, ...o, children: t }) });
2101
2105
  };
2102
- ie.displayName = "Command";
2103
- const se = ({ placeholder: t = "Search...", variant: a, onClick: r }) => {
2104
- const { setIsOpen: l, variant: n } = yt(), [o, s] = D(!1);
2105
- J(() => {
2106
+ se.displayName = "Command";
2107
+ const oe = ({ placeholder: t = "Search...", variant: a, onClick: r }) => {
2108
+ const { setIsOpen: l, variant: n } = bt(), [o, s] = z(!1);
2109
+ Q(() => {
2106
2110
  s(/Mac|iPod|iPhone|iPad/.test(navigator.platform));
2107
2111
  }, []);
2108
2112
  const d = [
@@ -2119,20 +2123,20 @@ const se = ({ placeholder: t = "Search...", variant: a, onClick: r }) => {
2119
2123
  ] })
2120
2124
  ] });
2121
2125
  };
2122
- se.displayName = "Command.Button";
2123
- const oe = ({ children: t }) => {
2124
- const { isOpen: a, setIsOpen: r, variant: l } = yt();
2125
- return J(() => {
2126
+ oe.displayName = "Command.Button";
2127
+ const ce = ({ children: t }) => {
2128
+ const { isOpen: a, setIsOpen: r, variant: l } = bt();
2129
+ return Q(() => {
2126
2130
  const n = (o) => {
2127
2131
  o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), r(!a));
2128
2132
  };
2129
2133
  return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
2130
2134
  }, [a, r]), /* @__PURE__ */ e(mt, { isOpen: a, onClose: () => r(!1), size: "large", closeOnOverlayClick: !0, children: /* @__PURE__ */ e("div", { className: `clarity-command--${l}`, children: t }) });
2131
2135
  };
2132
- oe.displayName = "Command.Dialog";
2133
- const ce = ({ className: t = "", ...a }) => {
2134
- const { searchTerm: r, setSearchTerm: l, variant: n, texts: o, isOpen: s } = yt(), c = et(null);
2135
- J(() => {
2136
+ ce.displayName = "Command.Dialog";
2137
+ const de = ({ className: t = "", ...a }) => {
2138
+ const { searchTerm: r, setSearchTerm: l, variant: n, texts: o, isOpen: s } = bt(), c = at(null);
2139
+ Q(() => {
2136
2140
  var i;
2137
2141
  s && ((i = c.current) == null || i.focus());
2138
2142
  }, [s]);
@@ -2153,66 +2157,66 @@ const ce = ({ className: t = "", ...a }) => {
2153
2157
  }
2154
2158
  ) });
2155
2159
  };
2156
- ce.displayName = "Command.Input";
2157
- const de = ({ children: t, className: a = "", ...r }) => {
2158
- const { searchTerm: l } = yt();
2160
+ de.displayName = "Command.Input";
2161
+ const me = ({ children: t, className: a = "", ...r }) => {
2162
+ const { searchTerm: l } = bt();
2159
2163
  let n = !1;
2160
- const o = (d) => I.Children.toArray(d).map((i) => {
2161
- var g;
2162
- if (!I.isValidElement(i)) return i;
2164
+ const o = (d) => W.Children.toArray(d).map((i) => {
2165
+ var y;
2166
+ if (!W.isValidElement(i)) return i;
2163
2167
  const u = i.type.displayName;
2164
2168
  if (u === "Command.Empty")
2165
2169
  return null;
2166
2170
  if (u === "Command.Item")
2167
- return (((g = i.props.children) == null ? void 0 : g.toString().toLowerCase()) || "").includes(l.toLowerCase()) ? (n = !0, i) : null;
2171
+ return (((y = i.props.children) == null ? void 0 : y.toString().toLowerCase()) || "").includes(l.toLowerCase()) ? (n = !0, i) : null;
2168
2172
  if (u === "Command.Group") {
2169
- const f = o(i.props.children);
2170
- return I.Children.toArray(f).some((y) => I.isValidElement(y) && y.type.displayName === "Command.Item") ? I.cloneElement(i, { ...i.props, children: f }) : null;
2173
+ const p = o(i.props.children);
2174
+ return W.Children.toArray(p).some((b) => W.isValidElement(b) && b.type.displayName === "Command.Item") ? W.cloneElement(i, { ...i.props, children: p }) : null;
2171
2175
  }
2172
2176
  return i;
2173
2177
  }).filter(Boolean), s = o(t), c = ["clarity-command-list", a].filter(Boolean).join(" ");
2174
2178
  return /* @__PURE__ */ w("div", { className: c, ...r, children: [
2175
2179
  s,
2176
- !n && /* @__PURE__ */ e(kt, {})
2180
+ !n && /* @__PURE__ */ e(Tt, {})
2177
2181
  ] });
2178
2182
  };
2179
- de.displayName = "Command.List";
2180
- const kt = ({ children: t, className: a = "", ...r }) => {
2181
- const { texts: l } = yt(), n = ["clarity-command-empty", a].filter(Boolean).join(" ");
2183
+ me.displayName = "Command.List";
2184
+ const Tt = ({ children: t, className: a = "", ...r }) => {
2185
+ const { texts: l } = bt(), n = ["clarity-command-empty", a].filter(Boolean).join(" ");
2182
2186
  return /* @__PURE__ */ e("div", { className: n, ...r, children: t || r.emptyText || l.empty });
2183
2187
  };
2184
- kt.displayName = "Command.Empty";
2185
- const me = ({ children: t, className: a = "", ...r }) => {
2188
+ Tt.displayName = "Command.Empty";
2189
+ const ue = ({ children: t, className: a = "", ...r }) => {
2186
2190
  const l = ["clarity-command-group", a].filter(Boolean).join(" ");
2187
2191
  return /* @__PURE__ */ e("div", { className: l, ...r, children: t });
2188
2192
  };
2189
- me.displayName = "Command.Group";
2190
- const ue = ({ children: t, className: a = "", ...r }) => {
2191
- const { setValue: l, variant: n } = yt(), o = ["clarity-command-item", `clarity-command-item--${n}`, a].filter(Boolean).join(" ");
2193
+ ue.displayName = "Command.Group";
2194
+ const fe = ({ children: t, className: a = "", ...r }) => {
2195
+ const { setValue: l, variant: n } = bt(), o = ["clarity-command-item", `clarity-command-item--${n}`, a].filter(Boolean).join(" ");
2192
2196
  return /* @__PURE__ */ e("div", { className: o, onClick: () => l((t == null ? void 0 : t.toString()) || ""), ...r, children: t });
2193
2197
  };
2194
- ue.displayName = "Command.Item";
2195
- const fe = ({ className: t = "", ...a }) => {
2198
+ fe.displayName = "Command.Item";
2199
+ const pe = ({ className: t = "", ...a }) => {
2196
2200
  const r = ["clarity-command-separator", t].filter(Boolean).join(" ");
2197
2201
  return /* @__PURE__ */ e("hr", { className: r, ...a });
2198
2202
  };
2199
- fe.displayName = "Command.Separator";
2200
- const pe = ({ children: t, className: a = "", ...r }) => {
2203
+ pe.displayName = "Command.Separator";
2204
+ const ye = ({ children: t, className: a = "", ...r }) => {
2201
2205
  const l = ["clarity-command-shortcut", a].filter(Boolean).join(" ");
2202
2206
  return /* @__PURE__ */ e("span", { className: l, ...r, children: t });
2203
2207
  };
2204
- pe.displayName = "Command.Shortcut";
2205
- const ia = Object.assign(ie, {
2206
- Button: se,
2207
- Dialog: oe,
2208
- Input: ce,
2209
- List: de,
2210
- Empty: kt,
2211
- Group: me,
2212
- Item: ue,
2213
- Separator: fe,
2214
- Shortcut: pe
2215
- }), Ge = ({ columns: t, viewMode: a }) => {
2208
+ ye.displayName = "Command.Shortcut";
2209
+ const sa = Object.assign(se, {
2210
+ Button: oe,
2211
+ Dialog: ce,
2212
+ Input: de,
2213
+ List: me,
2214
+ Empty: Tt,
2215
+ Group: ue,
2216
+ Item: fe,
2217
+ Separator: pe,
2218
+ Shortcut: ye
2219
+ }), Xe = ({ columns: t, viewMode: a }) => {
2216
2220
  const r = Array.from({ length: 5 }, (l, n) => n);
2217
2221
  return a === "card" ? /* @__PURE__ */ w("div", { className: "card-view-wrapper is-loading", children: [
2218
2222
  /* @__PURE__ */ e("div", { className: "skeleton card-view-header" }),
@@ -2221,7 +2225,7 @@ const ia = Object.assign(ie, {
2221
2225
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: "table-row", children: t.map((l) => /* @__PURE__ */ e("th", { className: "table-header-cell", children: /* @__PURE__ */ e("div", { className: "skeleton skeleton-text" }) }, l.key)) }) }),
2222
2226
  /* @__PURE__ */ e("tbody", { children: r.map((l) => /* @__PURE__ */ e("tr", { className: "table-row", children: t.map((n) => /* @__PURE__ */ e("td", { className: "table-cell", children: /* @__PURE__ */ e("div", { className: "skeleton skeleton-text" }) }, n.key)) }, l)) })
2223
2227
  ] }) });
2224
- }, sa = ({
2228
+ }, oa = ({
2225
2229
  variant: t = "secondary",
2226
2230
  columns: a,
2227
2231
  data: r,
@@ -2230,48 +2234,48 @@ const ia = Object.assign(ie, {
2230
2234
  isLoading: o = !1,
2231
2235
  pagination: s
2232
2236
  }) => {
2233
- const [c, d] = D(null), [i, u] = D("none"), g = (m) => {
2234
- m.sortable && (c === m.key ? u((h) => h === "asc" ? "desc" : h === "desc" ? "none" : "asc") : (d(m.key), u("asc")));
2235
- }, f = vt(() => i === "none" || !c ? r : [...r].sort((m, h) => {
2236
- const _ = m[c], x = h[c];
2237
- return _ < x ? i === "asc" ? -1 : 1 : _ > x ? i === "asc" ? 1 : -1 : 0;
2238
- }), [r, c, i]), p = (m) => m.sortable ? c !== m.key || i === "none" ? /* @__PURE__ */ e("span", { className: "sort-icon", children: "↕" }) : i === "asc" ? /* @__PURE__ */ e("span", { className: "sort-icon", children: "↑" }) : /* @__PURE__ */ e("span", { className: "sort-icon", children: "↓" }) : null;
2237
+ const [c, d] = z(null), [i, u] = z("none"), y = (m) => {
2238
+ m.sortable && (c === m.key ? u((g) => g === "asc" ? "desc" : g === "desc" ? "none" : "asc") : (d(m.key), u("asc")));
2239
+ }, p = gt(() => i === "none" || !c ? r : [...r].sort((m, g) => {
2240
+ const C = m[c], x = g[c];
2241
+ return C < x ? i === "asc" ? -1 : 1 : C > x ? i === "asc" ? 1 : -1 : 0;
2242
+ }), [r, c, i]), f = (m) => m.sortable ? c !== m.key || i === "none" ? /* @__PURE__ */ e("span", { className: "sort-icon", children: "↕" }) : i === "asc" ? /* @__PURE__ */ e("span", { className: "sort-icon", children: "↑" }) : /* @__PURE__ */ e("span", { className: "sort-icon", children: "↓" }) : null;
2239
2243
  if (o)
2240
- return /* @__PURE__ */ e(Ge, { columns: a, viewMode: l });
2241
- const y = `table-variant-${t} ${n ? "is-scrollable" : ""}`, b = () => {
2244
+ return /* @__PURE__ */ e(Xe, { columns: a, viewMode: l });
2245
+ const b = `table-variant-${t} ${n ? "is-scrollable" : ""}`, v = () => {
2242
2246
  if (!s) return null;
2243
2247
  const {
2244
2248
  currentPage: m,
2245
- totalPages: h,
2246
- onPageChange: _,
2249
+ totalPages: g,
2250
+ onPageChange: C,
2247
2251
  totalItems: x,
2248
- itemsPerPage: E,
2249
- position: C = "right"
2252
+ itemsPerPage: B,
2253
+ position: k = "right"
2250
2254
  } = s;
2251
- if (typeof h != "number" || typeof m != "number")
2255
+ if (typeof g != "number" || typeof m != "number")
2252
2256
  return console.warn("Table Pagination: Invalid pagination props", s), null;
2253
- if (x <= E)
2257
+ if (x <= B)
2254
2258
  return null;
2255
- const B = (m - 1) * E + 1, R = Math.min(m * E, x), $ = () => {
2256
- const k = [];
2257
- if (h <= 5)
2258
- for (let H = 1; H <= h; H++) k.push(H);
2259
+ const j = (m - 1) * B + 1, $ = Math.min(m * B, x), S = () => {
2260
+ const _ = [];
2261
+ if (g <= 5)
2262
+ for (let I = 1; I <= g; I++) _.push(I);
2259
2263
  else if (m <= 3) {
2260
- for (let H = 1; H <= 4; H++) k.push(H);
2261
- k.push("..."), k.push(h);
2262
- } else if (m >= h - 2) {
2263
- k.push(1), k.push("...");
2264
- for (let H = h - 3; H <= h; H++) k.push(H);
2264
+ for (let I = 1; I <= 4; I++) _.push(I);
2265
+ _.push("..."), _.push(g);
2266
+ } else if (m >= g - 2) {
2267
+ _.push(1), _.push("...");
2268
+ for (let I = g - 3; I <= g; I++) _.push(I);
2265
2269
  } else
2266
- k.push(1), k.push("..."), k.push(m - 1), k.push(m), k.push(m + 1), k.push("..."), k.push(h);
2267
- return k;
2270
+ _.push(1), _.push("..."), _.push(m - 1), _.push(m), _.push(m + 1), _.push("..."), _.push(g);
2271
+ return _;
2268
2272
  };
2269
- return /* @__PURE__ */ w("div", { className: `table-pagination align-${C}`, children: [
2273
+ return /* @__PURE__ */ w("div", { className: `table-pagination align-${k}`, children: [
2270
2274
  /* @__PURE__ */ w("div", { className: "pagination-info", children: [
2271
2275
  "Exibindo ",
2272
- B,
2276
+ j,
2273
2277
  " a ",
2274
- R,
2278
+ $,
2275
2279
  " de ",
2276
2280
  x,
2277
2281
  " resultados"
@@ -2281,7 +2285,7 @@ const ia = Object.assign(ie, {
2281
2285
  "button",
2282
2286
  {
2283
2287
  className: "pagination-button",
2284
- onClick: () => _(1),
2288
+ onClick: () => C(1),
2285
2289
  disabled: m === 1,
2286
2290
  "aria-label": "Primeira página",
2287
2291
  children: "«"
@@ -2291,28 +2295,28 @@ const ia = Object.assign(ie, {
2291
2295
  "button",
2292
2296
  {
2293
2297
  className: "pagination-button",
2294
- onClick: () => _(m - 1),
2298
+ onClick: () => C(m - 1),
2295
2299
  disabled: m === 1,
2296
2300
  "aria-label": "Página anterior",
2297
2301
  children: "‹"
2298
2302
  }
2299
2303
  ),
2300
- $().map((k, A) => /* @__PURE__ */ e(
2304
+ S().map((_, M) => /* @__PURE__ */ e(
2301
2305
  "button",
2302
2306
  {
2303
- className: `pagination-button ${k === m ? "active" : ""}`,
2304
- onClick: () => typeof k == "number" && _(k),
2305
- disabled: typeof k != "number",
2306
- children: k
2307
+ className: `pagination-button ${_ === m ? "active" : ""}`,
2308
+ onClick: () => typeof _ == "number" && C(_),
2309
+ disabled: typeof _ != "number",
2310
+ children: _
2307
2311
  },
2308
- A
2312
+ M
2309
2313
  )),
2310
2314
  /* @__PURE__ */ e(
2311
2315
  "button",
2312
2316
  {
2313
2317
  className: "pagination-button",
2314
- onClick: () => _(m + 1),
2315
- disabled: m === h,
2318
+ onClick: () => C(m + 1),
2319
+ disabled: m === g,
2316
2320
  "aria-label": "Próxima página",
2317
2321
  children: "›"
2318
2322
  }
@@ -2321,51 +2325,51 @@ const ia = Object.assign(ie, {
2321
2325
  "button",
2322
2326
  {
2323
2327
  className: "pagination-button",
2324
- onClick: () => _(h),
2325
- disabled: m === h,
2328
+ onClick: () => C(g),
2329
+ disabled: m === g,
2326
2330
  "aria-label": "Última página",
2327
2331
  children: "»"
2328
2332
  }
2329
2333
  )
2330
2334
  ] })
2331
2335
  ] });
2332
- }, N = /* @__PURE__ */ w("div", { className: `table-wrapper ${y}`, children: [
2336
+ }, N = /* @__PURE__ */ w("div", { className: `table-wrapper ${b}`, children: [
2333
2337
  /* @__PURE__ */ w("table", { children: [
2334
2338
  /* @__PURE__ */ e("thead", { className: "table-header", children: /* @__PURE__ */ e("tr", { className: "table-row", children: a.map((m) => /* @__PURE__ */ w(
2335
2339
  "th",
2336
2340
  {
2337
2341
  className: `table-header-cell ${m.sortable ? "sortable" : ""} table-header-cell-${t}`,
2338
- onClick: () => g(m),
2342
+ onClick: () => y(m),
2339
2343
  style: { minWidth: m.minWidth },
2340
2344
  children: [
2341
2345
  m.header,
2342
- p(m)
2346
+ f(m)
2343
2347
  ]
2344
2348
  },
2345
2349
  m.key
2346
2350
  )) }) }),
2347
- /* @__PURE__ */ e("tbody", { children: f.length === 0 ? /* @__PURE__ */ e("tr", { className: "table-row", children: /* @__PURE__ */ e("td", { colSpan: a.length, className: "table-cell", style: { textAlign: "center", padding: "2rem" }, children: "Nenhum resultado encontrado" }) }) : f.map((m, h) => /* @__PURE__ */ e("tr", { className: `table-row table-row-${t}`, children: a.map((_) => /* @__PURE__ */ e("td", { className: `table-cell ${_.align ? `table-cell-align-${_.align}` : ""}`, style: { minWidth: _.minWidth }, children: _.render ? _.render(m) : m[_.key] }, _.key)) }, h)) })
2351
+ /* @__PURE__ */ e("tbody", { children: p.length === 0 ? /* @__PURE__ */ e("tr", { className: "table-row", children: /* @__PURE__ */ e("td", { colSpan: a.length, className: "table-cell", style: { textAlign: "center", padding: "2rem" }, children: "Nenhum resultado encontrado" }) }) : p.map((m, g) => /* @__PURE__ */ e("tr", { className: `table-row table-row-${t}`, children: a.map((C) => /* @__PURE__ */ e("td", { className: `table-cell ${C.align ? `table-cell-align-${C.align}` : ""}`, style: { minWidth: C.minWidth }, children: C.render ? C.render(m) : m[C.key] }, C.key)) }, g)) })
2348
2352
  ] }),
2349
- b()
2353
+ v()
2350
2354
  ] });
2351
- return l === "card" ? /* @__PURE__ */ w("div", { className: `card-view-wrapper ${y}`, children: [
2355
+ return l === "card" ? /* @__PURE__ */ w("div", { className: `card-view-wrapper ${b}`, children: [
2352
2356
  /* @__PURE__ */ e("div", { className: `card-view-header table-header-cell-${t}`, children: a.map((m) => /* @__PURE__ */ w(
2353
2357
  "div",
2354
2358
  {
2355
2359
  className: `card-view-header-cell ${m.sortable ? "sortable" : ""}`,
2356
- onClick: () => g(m),
2360
+ onClick: () => y(m),
2357
2361
  style: { minWidth: m.minWidth },
2358
2362
  children: [
2359
2363
  m.header,
2360
- p(m)
2364
+ f(m)
2361
2365
  ]
2362
2366
  },
2363
2367
  m.key
2364
2368
  )) }),
2365
- /* @__PURE__ */ e("div", { className: "card-view-body", children: f.length === 0 ? /* @__PURE__ */ e("div", { className: `card-view-row table-row-${t}`, style: { justifyContent: "center", padding: "2rem" }, children: "Nenhum resultado encontrado" }) : f.map((m, h) => /* @__PURE__ */ e("div", { className: `card-view-row table-row-${t}`, children: a.map((_) => /* @__PURE__ */ e("div", { className: `card-view-cell ${_.align ? `table-cell-align-${_.align}` : ""}`, style: { minWidth: _.minWidth }, children: _.render ? _.render(m) : m[_.key] }, _.key)) }, h)) }),
2366
- b()
2369
+ /* @__PURE__ */ e("div", { className: "card-view-body", children: p.length === 0 ? /* @__PURE__ */ e("div", { className: `card-view-row table-row-${t}`, style: { justifyContent: "center", padding: "2rem" }, children: "Nenhum resultado encontrado" }) : p.map((m, g) => /* @__PURE__ */ e("div", { className: `card-view-row table-row-${t}`, children: a.map((C) => /* @__PURE__ */ e("div", { className: `card-view-cell ${C.align ? `table-cell-align-${C.align}` : ""}`, style: { minWidth: C.minWidth }, children: C.render ? C.render(m) : m[C.key] }, C.key)) }, g)) }),
2370
+ v()
2367
2371
  ] }) : N;
2368
- }, oa = ({
2372
+ }, ca = ({
2369
2373
  variant: t = "primary",
2370
2374
  size: a = "medium",
2371
2375
  color: r,
@@ -2408,7 +2412,7 @@ const ia = Object.assign(ie, {
2408
2412
  ) })
2409
2413
  }
2410
2414
  );
2411
- }, Ue = ({
2415
+ }, Ye = ({
2412
2416
  className: t = "",
2413
2417
  noGutters: a,
2414
2418
  justify: r,
@@ -2424,10 +2428,10 @@ const ia = Object.assign(ie, {
2424
2428
  l ? `clarity-row--align-${l}` : "",
2425
2429
  t
2426
2430
  ].filter(Boolean).join(" ");
2427
- return I.createElement(o, { className: c, ...s }, n);
2431
+ return W.createElement(o, { className: c, ...s }, n);
2428
2432
  };
2429
- Ue.displayName = "Row";
2430
- const Xe = (t) => `${t / 12 * 100}%`, Ye = (t) => `${t / 12 * 100}%`, Ze = ({
2433
+ Ye.displayName = "Row";
2434
+ const Ze = (t) => `${t / 12 * 100}%`, qe = (t) => `${t / 12 * 100}%`, Je = ({
2431
2435
  className: t = "",
2432
2436
  xs: a,
2433
2437
  sm: r,
@@ -2439,26 +2443,26 @@ const Xe = (t) => `${t / 12 * 100}%`, Ye = (t) => `${t / 12 * 100}%`, Ze = ({
2439
2443
  children: d,
2440
2444
  as: i = "div",
2441
2445
  style: u,
2442
- ...g
2446
+ ...y
2443
2447
  }) => {
2444
- const f = { ...u }, p = (N, m) => {
2448
+ const p = { ...u }, f = (N, m) => {
2445
2449
  if (m === void 0) return;
2446
- const h = `--clarity-col-width-${N}`;
2447
- f[h] = typeof m == "number" ? Xe(m) : "auto";
2448
- }, y = (N, m) => {
2450
+ const g = `--clarity-col-width-${N}`;
2451
+ p[g] = typeof m == "number" ? Ze(m) : "auto";
2452
+ }, b = (N, m) => {
2449
2453
  if (m === void 0) return;
2450
- const h = `--clarity-col-offset-${N}`;
2451
- f[h] = Ye(m);
2454
+ const g = `--clarity-col-offset-${N}`;
2455
+ p[g] = qe(m);
2452
2456
  };
2453
- p("xs", a), p("sm", r), p("md", l), p("lg", n), p("xl", o), p("xxl", s), y("xs", c == null ? void 0 : c.xs), y("sm", c == null ? void 0 : c.sm), y("md", c == null ? void 0 : c.md), y("lg", c == null ? void 0 : c.lg), y("xl", c == null ? void 0 : c.xl), y("xxl", c == null ? void 0 : c.xxl);
2454
- const b = ["clarity-col", t].filter(Boolean).join(" ");
2455
- return I.createElement(i, { className: b, style: f, ...g }, d);
2457
+ f("xs", a), f("sm", r), f("md", l), f("lg", n), f("xl", o), f("xxl", s), b("xs", c == null ? void 0 : c.xs), b("sm", c == null ? void 0 : c.sm), b("md", c == null ? void 0 : c.md), b("lg", c == null ? void 0 : c.lg), b("xl", c == null ? void 0 : c.xl), b("xxl", c == null ? void 0 : c.xxl);
2458
+ const v = ["clarity-col", t].filter(Boolean).join(" ");
2459
+ return W.createElement(i, { className: v, style: p, ...y }, d);
2456
2460
  };
2457
- Ze.displayName = "Col";
2461
+ Je.displayName = "Col";
2458
2462
  const he = ({ children: t, className: a, ...r }) => /* @__PURE__ */ e("div", { className: `clarity-card__header ${a || ""}`, ...r, children: t });
2459
2463
  he.displayName = "Card.Header";
2460
- const ye = ({ children: t, className: a, ...r }) => /* @__PURE__ */ e("div", { className: `clarity-card__content ${a || ""}`, ...r, children: t });
2461
- ye.displayName = "Card.Content";
2464
+ const be = ({ children: t, className: a, ...r }) => /* @__PURE__ */ e("div", { className: `clarity-card__content ${a || ""}`, ...r, children: t });
2465
+ be.displayName = "Card.Content";
2462
2466
  const ge = ({ children: t, className: a, align: r = "left", ...l }) => {
2463
2467
  const n = r ? `clarity-card__footer--align-${r}` : "";
2464
2468
  return /* @__PURE__ */ e("div", { className: `clarity-card__footer ${n} ${a || ""}`, ...l, children: t });
@@ -2466,10 +2470,10 @@ const ge = ({ children: t, className: a, align: r = "left", ...l }) => {
2466
2470
  ge.displayName = "Card.Footer";
2467
2471
  const Nt = ({ children: t, className: a, ...r }) => /* @__PURE__ */ e("div", { className: `clarity-card ${a || ""}`, ...r, children: t });
2468
2472
  Nt.Header = he;
2469
- Nt.Content = ye;
2473
+ Nt.Content = be;
2470
2474
  Nt.Footer = ge;
2471
2475
  Nt.displayName = "Card";
2472
- const ca = {
2476
+ const da = {
2473
2477
  primary: {
2474
2478
  50: "#f0f9ff",
2475
2479
  100: "#e0f2fe",
@@ -2518,7 +2522,7 @@ const ca = {
2518
2522
  800: "#065f46",
2519
2523
  900: "#064e3b"
2520
2524
  }
2521
- }, da = {
2525
+ }, ma = {
2522
2526
  xs: "4px",
2523
2527
  sm: "8px",
2524
2528
  md: "16px",
@@ -2526,38 +2530,38 @@ const ca = {
2526
2530
  xl: "32px",
2527
2531
  "2xl": "48px",
2528
2532
  "3xl": "64px"
2529
- }, ma = (...t) => t.filter(Boolean).join(" "), ua = () => Math.random().toString(36).substr(2, 9);
2533
+ }, ua = (...t) => t.filter(Boolean).join(" "), fa = () => Math.random().toString(36).substr(2, 9);
2530
2534
  export {
2531
- na as Accordion,
2532
- Ke as Badge,
2533
- Ce as Box,
2534
- Pe as Button,
2535
- ta as ButtonGroup,
2536
- ra as ButtonIcon,
2537
- la as ButtonLink,
2535
+ ia as Accordion,
2536
+ ta as Badge,
2537
+ xe as Box,
2538
+ ke as Button,
2539
+ ea as ButtonGroup,
2540
+ la as ButtonIcon,
2541
+ na as ButtonLink,
2538
2542
  Nt as Card,
2539
- Re as CheckInput,
2540
- Ze as Col,
2541
- ia as Command,
2543
+ We as CheckInput,
2544
+ Je as Col,
2545
+ sa as Command,
2542
2546
  ut as ConfirmationDialog,
2543
- bt as Dropdown,
2544
- Te as Input,
2545
- Oe as InputSwitch,
2547
+ vt as Dropdown,
2548
+ Se as Input,
2549
+ Ie as InputSwitch,
2546
2550
  mt as Modal,
2547
- Ee as MultiSelect,
2551
+ Re as MultiSelect,
2548
2552
  ht as Offcanvas,
2549
- Ue as Row,
2553
+ Ye as Row,
2550
2554
  Le as Select,
2551
- oa as Spinner,
2552
- sa as Table,
2553
- le as Tabs,
2554
- je as Textarea,
2555
- aa as ToastProvider,
2556
- pt as Tooltip,
2557
- ma as cn,
2558
- ca as colors,
2559
- ua as generateId,
2560
- da as spacing,
2555
+ ca as Spinner,
2556
+ oa as Table,
2557
+ ne as Tabs,
2558
+ Ee as Textarea,
2559
+ ra as ToastProvider,
2560
+ yt as Tooltip,
2561
+ ua as cn,
2562
+ da as colors,
2563
+ fa as generateId,
2564
+ ma as spacing,
2561
2565
  Bt as typography,
2562
- ea as useToast
2566
+ aa as useToast
2563
2567
  };