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