@octavius2929-personal/design-system 0.5.0 → 0.6.0
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/LICENSE +1 -1
- package/dist/index.cjs +419 -355
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +139 -120
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +350 -287
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -63,6 +63,7 @@ __export(index_exports, {
|
|
|
63
63
|
ThemeProvider: () => ThemeProvider,
|
|
64
64
|
Tooltip: () => Tooltip,
|
|
65
65
|
TriangleAlertIcon: () => TriangleAlertIcon,
|
|
66
|
+
Typography: () => Typography,
|
|
66
67
|
XIcon: () => XIcon,
|
|
67
68
|
colorVars: () => colorVars,
|
|
68
69
|
modeNames: () => modeNames,
|
|
@@ -101,7 +102,7 @@ function useToggle(initial = false) {
|
|
|
101
102
|
return [on, toggle, setOn];
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
// src/components/
|
|
105
|
+
// src/components/typography/use-styles.ts
|
|
105
106
|
var import_react4 = require("react");
|
|
106
107
|
|
|
107
108
|
// src/theme/context/theme-context.tsx
|
|
@@ -182,7 +183,10 @@ function ThemeProvider({
|
|
|
182
183
|
setSchema,
|
|
183
184
|
setMode: setPreference,
|
|
184
185
|
toggleMode: () => setPreference(mode === "dark" ? "light" : "dark"),
|
|
185
|
-
cycleMode: () =>
|
|
186
|
+
cycleMode: () => {
|
|
187
|
+
const next = modeNames[(modeNames.indexOf(mode) + 1) % modeNames.length];
|
|
188
|
+
if (next) setPreference(next);
|
|
189
|
+
}
|
|
186
190
|
}),
|
|
187
191
|
[schema, mode, preference]
|
|
188
192
|
);
|
|
@@ -192,6 +196,65 @@ function useTheme() {
|
|
|
192
196
|
return (0, import_react3.useContext)(ThemeContext) ?? DEFAULT_VALUE;
|
|
193
197
|
}
|
|
194
198
|
|
|
199
|
+
// src/theme/typography.css.ts
|
|
200
|
+
var text = { eyebrow: "typography_text_eyebrow__1wmlzy0", display: "typography_text_display__1wmlzy1", h1: "typography_text_h1__1wmlzy2", h2: "typography_text_h2__1wmlzy3", h3: "typography_text_h3__1wmlzy4", h4: "typography_text_h4__1wmlzy5", body: "typography_text_body__1wmlzy6", lead: "typography_text_lead__1wmlzy7", small: "typography_text_small__1wmlzy8", caption: "typography_text_caption__1wmlzy9", code: "typography_text_code__1wmlzya", blackletter: "typography_text_blackletter__1wmlzyb" };
|
|
201
|
+
|
|
202
|
+
// src/components/typography/use-styles.css.ts
|
|
203
|
+
var align = { left: "use-styles_align_left__d74jf69", center: "use-styles_align_center__d74jf6a", right: "use-styles_align_right__d74jf6b" };
|
|
204
|
+
var base = "use-styles_base__d74jf60";
|
|
205
|
+
var color = { fg1: "use-styles_color_fg1__d74jf61", fg2: "use-styles_color_fg2__d74jf62", fg3: "use-styles_color_fg3__d74jf63", accent: "use-styles_color_accent__d74jf64", danger: "use-styles_color_danger__d74jf65", ok: "use-styles_color_ok__d74jf66", warn: "use-styles_color_warn__d74jf67", info: "use-styles_color_info__d74jf68" };
|
|
206
|
+
|
|
207
|
+
// src/components/typography/use-styles.ts
|
|
208
|
+
function useStyles({
|
|
209
|
+
variant: variant2,
|
|
210
|
+
color: color2,
|
|
211
|
+
align: align2
|
|
212
|
+
}) {
|
|
213
|
+
const { themeClass } = useTheme();
|
|
214
|
+
const className = (0, import_react4.useMemo)(
|
|
215
|
+
() => [
|
|
216
|
+
themeClass,
|
|
217
|
+
base,
|
|
218
|
+
text[variant2],
|
|
219
|
+
color2 && color[color2],
|
|
220
|
+
align2 && align[align2]
|
|
221
|
+
].filter(Boolean).join(" "),
|
|
222
|
+
[themeClass, variant2, color2, align2]
|
|
223
|
+
);
|
|
224
|
+
return { text: className };
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// src/components/typography/index.tsx
|
|
228
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
229
|
+
var defaultElement = {
|
|
230
|
+
display: "h1",
|
|
231
|
+
h1: "h1",
|
|
232
|
+
h2: "h2",
|
|
233
|
+
h3: "h3",
|
|
234
|
+
h4: "h4",
|
|
235
|
+
body: "p",
|
|
236
|
+
lead: "p",
|
|
237
|
+
small: "span",
|
|
238
|
+
caption: "span",
|
|
239
|
+
eyebrow: "span",
|
|
240
|
+
code: "code",
|
|
241
|
+
blackletter: "span"
|
|
242
|
+
};
|
|
243
|
+
function Typography({
|
|
244
|
+
variant: variant2,
|
|
245
|
+
as,
|
|
246
|
+
color: color2,
|
|
247
|
+
align: align2,
|
|
248
|
+
...rest
|
|
249
|
+
}) {
|
|
250
|
+
const Component = as ?? defaultElement[variant2];
|
|
251
|
+
const { text: text2 } = useStyles({ variant: variant2, color: color2, align: align2 });
|
|
252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Component, { ...rest, className: text2 });
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// src/components/button/use-styles.ts
|
|
256
|
+
var import_react5 = require("react");
|
|
257
|
+
|
|
195
258
|
// src/components/button/use-styles.css.ts
|
|
196
259
|
var full = "use-styles_full__1pbtill4";
|
|
197
260
|
var root = "use-styles_root__1pbtill0";
|
|
@@ -202,7 +265,7 @@ var tone = { filledInk: "use-styles_tone_filledInk__1pbtill5", filledAccent: "us
|
|
|
202
265
|
function toneKey(variant2, tone4) {
|
|
203
266
|
return `${variant2}${tone4 === "ink" ? "Ink" : "Accent"}`;
|
|
204
267
|
}
|
|
205
|
-
function
|
|
268
|
+
function useStyles2({
|
|
206
269
|
variant: variant2 = "filled",
|
|
207
270
|
tone: tone4 = "ink",
|
|
208
271
|
size: size3 = "md",
|
|
@@ -210,7 +273,7 @@ function useStyles({
|
|
|
210
273
|
className
|
|
211
274
|
}) {
|
|
212
275
|
const { themeClass } = useTheme();
|
|
213
|
-
const container = (0,
|
|
276
|
+
const container = (0, import_react5.useMemo)(
|
|
214
277
|
() => [
|
|
215
278
|
themeClass,
|
|
216
279
|
root,
|
|
@@ -225,7 +288,7 @@ function useStyles({
|
|
|
225
288
|
}
|
|
226
289
|
|
|
227
290
|
// src/components/button/index.tsx
|
|
228
|
-
var
|
|
291
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
229
292
|
var ICON_SIZE = { sm: 14, md: 16, lg: 18 };
|
|
230
293
|
function Button({
|
|
231
294
|
variant: variant2,
|
|
@@ -238,17 +301,17 @@ function Button({
|
|
|
238
301
|
children,
|
|
239
302
|
...rest
|
|
240
303
|
}) {
|
|
241
|
-
const { container } =
|
|
304
|
+
const { container } = useStyles2({ variant: variant2, tone: tone4, size: size3, full: full2, className });
|
|
242
305
|
const iconSize = ICON_SIZE[size3];
|
|
243
|
-
return /* @__PURE__ */ (0,
|
|
244
|
-
StartIcon && /* @__PURE__ */ (0,
|
|
306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { className: container, ...rest, children: [
|
|
307
|
+
StartIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StartIcon, { size: iconSize }),
|
|
245
308
|
children,
|
|
246
|
-
EndIcon && /* @__PURE__ */ (0,
|
|
309
|
+
EndIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EndIcon, { size: iconSize })
|
|
247
310
|
] });
|
|
248
311
|
}
|
|
249
312
|
|
|
250
313
|
// src/components/divider/use-styles.ts
|
|
251
|
-
var
|
|
314
|
+
var import_react6 = require("react");
|
|
252
315
|
|
|
253
316
|
// src/components/divider/use-styles.css.ts
|
|
254
317
|
var horizontal = "use-styles_horizontal__1n7v7yj1";
|
|
@@ -259,9 +322,9 @@ var root2 = "use-styles_root__1n7v7yj0";
|
|
|
259
322
|
var vertical = "use-styles_vertical__1n7v7yj2";
|
|
260
323
|
|
|
261
324
|
// src/components/divider/use-styles.ts
|
|
262
|
-
function
|
|
325
|
+
function useStyles3({ vertical: vertical2, hasLabel }) {
|
|
263
326
|
const { themeClass } = useTheme();
|
|
264
|
-
const root24 = (0,
|
|
327
|
+
const root24 = (0, import_react6.useMemo)(
|
|
265
328
|
() => [
|
|
266
329
|
themeClass,
|
|
267
330
|
root2,
|
|
@@ -273,22 +336,22 @@ function useStyles2({ vertical: vertical2, hasLabel }) {
|
|
|
273
336
|
}
|
|
274
337
|
|
|
275
338
|
// src/components/divider/index.tsx
|
|
276
|
-
var
|
|
339
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
277
340
|
function Divider({ vertical: vertical2, label: label7, ...rest }) {
|
|
278
341
|
const hasLabel = label7 != null;
|
|
279
|
-
const { root: root24, line: line2, label: labelClass } =
|
|
342
|
+
const { root: root24, line: line2, label: labelClass } = useStyles3({ vertical: vertical2, hasLabel });
|
|
280
343
|
if (hasLabel) {
|
|
281
|
-
return /* @__PURE__ */ (0,
|
|
282
|
-
/* @__PURE__ */ (0,
|
|
283
|
-
/* @__PURE__ */ (0,
|
|
284
|
-
/* @__PURE__ */ (0,
|
|
344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { role: "separator", className: root24, ...rest, children: [
|
|
345
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: line2 }),
|
|
346
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: labelClass, children: label7 }),
|
|
347
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: line2 })
|
|
285
348
|
] });
|
|
286
349
|
}
|
|
287
|
-
return /* @__PURE__ */ (0,
|
|
350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { role: "separator", className: root24, ...rest });
|
|
288
351
|
}
|
|
289
352
|
|
|
290
353
|
// src/components/avatar/use-styles.ts
|
|
291
|
-
var
|
|
354
|
+
var import_react7 = require("react");
|
|
292
355
|
|
|
293
356
|
// src/components/avatar/use-styles.css.ts
|
|
294
357
|
var root3 = "use-styles_root__1mn1rmu0";
|
|
@@ -296,13 +359,13 @@ var size2 = { sm: "use-styles_size_sm__1mn1rmu1", md: "use-styles_size_md__1mn1r
|
|
|
296
359
|
var variant = { "default": "use-styles_variant_default__1mn1rmu4", filled: "use-styles_variant_filled__1mn1rmu5" };
|
|
297
360
|
|
|
298
361
|
// src/components/avatar/use-styles.ts
|
|
299
|
-
function
|
|
362
|
+
function useStyles4({
|
|
300
363
|
size: size3 = "md",
|
|
301
364
|
filled,
|
|
302
365
|
className
|
|
303
366
|
}) {
|
|
304
367
|
const { themeClass } = useTheme();
|
|
305
|
-
const root24 = (0,
|
|
368
|
+
const root24 = (0, import_react7.useMemo)(
|
|
306
369
|
() => [
|
|
307
370
|
themeClass,
|
|
308
371
|
root3,
|
|
@@ -316,14 +379,14 @@ function useStyles3({
|
|
|
316
379
|
}
|
|
317
380
|
|
|
318
381
|
// src/components/avatar/index.tsx
|
|
319
|
-
var
|
|
382
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
320
383
|
function Avatar({ size: size3, filled, className, children, ...rest }) {
|
|
321
|
-
const { root: root24 } =
|
|
322
|
-
return /* @__PURE__ */ (0,
|
|
384
|
+
const { root: root24 } = useStyles4({ size: size3, filled, className });
|
|
385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: root24, ...rest, children });
|
|
323
386
|
}
|
|
324
387
|
|
|
325
388
|
// src/components/badge/use-styles.ts
|
|
326
|
-
var
|
|
389
|
+
var import_react8 = require("react");
|
|
327
390
|
|
|
328
391
|
// src/components/badge/use-styles.css.ts
|
|
329
392
|
var dot = "use-styles_dot__1wpei6p1";
|
|
@@ -331,28 +394,31 @@ var root4 = "use-styles_root__1wpei6p0";
|
|
|
331
394
|
var tone2 = { ink: "use-styles_tone_ink__1wpei6p2", accent: "use-styles_tone_accent__1wpei6p3" };
|
|
332
395
|
|
|
333
396
|
// src/components/badge/use-styles.ts
|
|
334
|
-
function
|
|
397
|
+
function useStyles5({
|
|
398
|
+
tone: tone4 = "ink",
|
|
399
|
+
className
|
|
400
|
+
}) {
|
|
335
401
|
const { themeClass } = useTheme();
|
|
336
|
-
const root24 = (0,
|
|
402
|
+
const root24 = (0, import_react8.useMemo)(
|
|
337
403
|
() => [themeClass, root4, className].filter(Boolean).join(" "),
|
|
338
404
|
[themeClass, className]
|
|
339
405
|
);
|
|
340
|
-
const dot3 = (0,
|
|
406
|
+
const dot3 = (0, import_react8.useMemo)(() => [dot, tone2[tone4]].join(" "), [tone4]);
|
|
341
407
|
return { root: root24, dot: dot3 };
|
|
342
408
|
}
|
|
343
409
|
|
|
344
410
|
// src/components/badge/index.tsx
|
|
345
|
-
var
|
|
411
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
346
412
|
function Badge({ count, tone: tone4, className, children, ...rest }) {
|
|
347
|
-
const { root: root24, dot: dot3 } =
|
|
348
|
-
return /* @__PURE__ */ (0,
|
|
413
|
+
const { root: root24, dot: dot3 } = useStyles5({ tone: tone4, className });
|
|
414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: root24, ...rest, children: [
|
|
349
415
|
children,
|
|
350
|
-
count != null && /* @__PURE__ */ (0,
|
|
416
|
+
count != null && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: dot3, children: count })
|
|
351
417
|
] });
|
|
352
418
|
}
|
|
353
419
|
|
|
354
420
|
// src/components/progress/use-styles.ts
|
|
355
|
-
var
|
|
421
|
+
var import_react9 = require("react");
|
|
356
422
|
|
|
357
423
|
// src/components/progress/use-styles.css.ts
|
|
358
424
|
var bar = "use-styles_bar__kbop7v3";
|
|
@@ -361,14 +427,14 @@ var spinner = "use-styles_spinner__kbop7v5";
|
|
|
361
427
|
var track = "use-styles_track__kbop7v2";
|
|
362
428
|
|
|
363
429
|
// src/components/progress/use-styles.ts
|
|
364
|
-
function
|
|
430
|
+
function useStyles6({
|
|
365
431
|
variant: variant2 = "linear",
|
|
366
432
|
value,
|
|
367
433
|
className
|
|
368
434
|
}) {
|
|
369
435
|
const { themeClass } = useTheme();
|
|
370
436
|
const indeterminate2 = value === void 0;
|
|
371
|
-
return (0,
|
|
437
|
+
return (0, import_react9.useMemo)(() => {
|
|
372
438
|
const root24 = (...classes) => [themeClass, ...classes, className].filter(Boolean).join(" ");
|
|
373
439
|
if (variant2 === "circular") {
|
|
374
440
|
return { track: "", bar: "", spinner: root24(spinner) };
|
|
@@ -382,7 +448,7 @@ function useStyles5({
|
|
|
382
448
|
}
|
|
383
449
|
|
|
384
450
|
// src/components/progress/index.tsx
|
|
385
|
-
var
|
|
451
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
386
452
|
function Progress({
|
|
387
453
|
variant: variant2 = "linear",
|
|
388
454
|
value,
|
|
@@ -390,10 +456,10 @@ function Progress({
|
|
|
390
456
|
className,
|
|
391
457
|
...rest
|
|
392
458
|
}) {
|
|
393
|
-
const { track: track4, bar: bar2, spinner: spinner2 } =
|
|
459
|
+
const { track: track4, bar: bar2, spinner: spinner2 } = useStyles6({ variant: variant2, value, className });
|
|
394
460
|
const indeterminate2 = value === void 0;
|
|
395
461
|
if (variant2 === "circular") {
|
|
396
|
-
return /* @__PURE__ */ (0,
|
|
462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
397
463
|
"span",
|
|
398
464
|
{
|
|
399
465
|
className: spinner2,
|
|
@@ -406,7 +472,7 @@ function Progress({
|
|
|
406
472
|
}
|
|
407
473
|
);
|
|
408
474
|
}
|
|
409
|
-
return /* @__PURE__ */ (0,
|
|
475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
410
476
|
"div",
|
|
411
477
|
{
|
|
412
478
|
className: track4,
|
|
@@ -415,15 +481,15 @@ function Progress({
|
|
|
415
481
|
"aria-valuemin": indeterminate2 ? void 0 : 0,
|
|
416
482
|
"aria-valuemax": indeterminate2 ? void 0 : 100,
|
|
417
483
|
...rest,
|
|
418
|
-
children: /* @__PURE__ */ (0,
|
|
484
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: bar2, style: indeterminate2 ? void 0 : { width: `${value}%` } })
|
|
419
485
|
}
|
|
420
486
|
);
|
|
421
487
|
}
|
|
422
488
|
|
|
423
489
|
// src/components/icons/x/index.tsx
|
|
424
|
-
var
|
|
490
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
425
491
|
function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
426
|
-
return /* @__PURE__ */ (0,
|
|
492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
427
493
|
"svg",
|
|
428
494
|
{
|
|
429
495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -438,15 +504,15 @@ function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
438
504
|
"aria-hidden": "true",
|
|
439
505
|
...rest,
|
|
440
506
|
children: [
|
|
441
|
-
/* @__PURE__ */ (0,
|
|
442
|
-
/* @__PURE__ */ (0,
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M18 6 6 18" }),
|
|
508
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "m6 6 12 12" })
|
|
443
509
|
]
|
|
444
510
|
}
|
|
445
511
|
);
|
|
446
512
|
}
|
|
447
513
|
|
|
448
514
|
// src/components/chip/use-styles.ts
|
|
449
|
-
var
|
|
515
|
+
var import_react10 = require("react");
|
|
450
516
|
|
|
451
517
|
// src/components/chip/use-styles.css.ts
|
|
452
518
|
var clickable = "use-styles_clickable__1axilf44";
|
|
@@ -456,13 +522,13 @@ var selected = "use-styles_selected__1axilf43";
|
|
|
456
522
|
var tone3 = { ink: "use-styles_tone_ink__1axilf41", accent: "use-styles_tone_accent__1axilf42" };
|
|
457
523
|
|
|
458
524
|
// src/components/chip/use-styles.ts
|
|
459
|
-
function
|
|
525
|
+
function useStyles7({
|
|
460
526
|
selected: selected3,
|
|
461
527
|
tone: tone4 = "ink",
|
|
462
528
|
clickable: clickable2
|
|
463
529
|
}) {
|
|
464
530
|
const { themeClass } = useTheme();
|
|
465
|
-
const root24 = (0,
|
|
531
|
+
const root24 = (0, import_react10.useMemo)(
|
|
466
532
|
() => [
|
|
467
533
|
themeClass,
|
|
468
534
|
root5,
|
|
@@ -475,24 +541,24 @@ function useStyles6({
|
|
|
475
541
|
}
|
|
476
542
|
|
|
477
543
|
// src/components/chip/index.tsx
|
|
478
|
-
var
|
|
544
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
479
545
|
function Chip({ selected: selected3, tone: tone4, onDelete, onClick, children, ...rest }) {
|
|
480
546
|
const clickable2 = Boolean(onClick);
|
|
481
|
-
const { root: root24, deleteBtn: deleteBtn2 } =
|
|
547
|
+
const { root: root24, deleteBtn: deleteBtn2 } = useStyles7({ selected: selected3, tone: tone4, clickable: clickable2 });
|
|
482
548
|
const handleDelete = (event) => {
|
|
483
549
|
event.stopPropagation();
|
|
484
550
|
onDelete?.();
|
|
485
551
|
};
|
|
486
|
-
return /* @__PURE__ */ (0,
|
|
552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: root24, onClick, ...rest, children: [
|
|
487
553
|
children,
|
|
488
|
-
onDelete && /* @__PURE__ */ (0,
|
|
554
|
+
onDelete && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", className: deleteBtn2, "aria-label": "Remove", onClick: handleDelete, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(XIcon, { size: 13 }) })
|
|
489
555
|
] });
|
|
490
556
|
}
|
|
491
557
|
|
|
492
558
|
// src/components/icons/check/index.tsx
|
|
493
|
-
var
|
|
559
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
494
560
|
function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
495
|
-
return /* @__PURE__ */ (0,
|
|
561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
496
562
|
"svg",
|
|
497
563
|
{
|
|
498
564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -506,13 +572,13 @@ function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
506
572
|
strokeLinejoin: "round",
|
|
507
573
|
"aria-hidden": "true",
|
|
508
574
|
...rest,
|
|
509
|
-
children: /* @__PURE__ */ (0,
|
|
575
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: "M20 6 9 17l-5-5" })
|
|
510
576
|
}
|
|
511
577
|
);
|
|
512
578
|
}
|
|
513
579
|
|
|
514
580
|
// src/components/checkbox/use-styles.ts
|
|
515
|
-
var
|
|
581
|
+
var import_react11 = require("react");
|
|
516
582
|
|
|
517
583
|
// src/components/checkbox/use-styles.css.ts
|
|
518
584
|
var box = "use-styles_box__9zoga91";
|
|
@@ -523,13 +589,13 @@ var input = "surfaces_srOnly__6hs0fg0";
|
|
|
523
589
|
var root6 = "use-styles_root__9zoga90";
|
|
524
590
|
|
|
525
591
|
// src/components/checkbox/use-styles.ts
|
|
526
|
-
function
|
|
592
|
+
function useStyles8({ checked, disabled: disabled3 }) {
|
|
527
593
|
const { themeClass } = useTheme();
|
|
528
|
-
const root24 = (0,
|
|
594
|
+
const root24 = (0, import_react11.useMemo)(
|
|
529
595
|
() => [themeClass, root6, disabled3 && disabled].filter(Boolean).join(" "),
|
|
530
596
|
[themeClass, disabled3]
|
|
531
597
|
);
|
|
532
|
-
const box2 = (0,
|
|
598
|
+
const box2 = (0, import_react11.useMemo)(
|
|
533
599
|
() => [box, checked && boxChecked].filter(Boolean).join(" "),
|
|
534
600
|
[checked]
|
|
535
601
|
);
|
|
@@ -537,7 +603,7 @@ function useStyles7({ checked, disabled: disabled3 }) {
|
|
|
537
603
|
}
|
|
538
604
|
|
|
539
605
|
// src/components/checkbox/index.tsx
|
|
540
|
-
var
|
|
606
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
541
607
|
function Checkbox({
|
|
542
608
|
checked = false,
|
|
543
609
|
onChange,
|
|
@@ -545,13 +611,13 @@ function Checkbox({
|
|
|
545
611
|
disabled: disabled3 = false,
|
|
546
612
|
id
|
|
547
613
|
}) {
|
|
548
|
-
const { root: root24, input: input6, box: box2, check: check2 } =
|
|
614
|
+
const { root: root24, input: input6, box: box2, check: check2 } = useStyles8({ checked, disabled: disabled3 });
|
|
549
615
|
const handleChange = (e) => {
|
|
550
616
|
if (disabled3) return;
|
|
551
617
|
onChange?.(e.target.checked);
|
|
552
618
|
};
|
|
553
|
-
return /* @__PURE__ */ (0,
|
|
554
|
-
/* @__PURE__ */ (0,
|
|
619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: root24, children: [
|
|
620
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
555
621
|
"input",
|
|
556
622
|
{
|
|
557
623
|
type: "checkbox",
|
|
@@ -562,13 +628,13 @@ function Checkbox({
|
|
|
562
628
|
onChange: handleChange
|
|
563
629
|
}
|
|
564
630
|
),
|
|
565
|
-
/* @__PURE__ */ (0,
|
|
631
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: box2, children: checked && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CheckIcon, { size: 12, className: check2 }) }),
|
|
566
632
|
label7
|
|
567
633
|
] });
|
|
568
634
|
}
|
|
569
635
|
|
|
570
636
|
// src/components/radio/use-styles.ts
|
|
571
|
-
var
|
|
637
|
+
var import_react12 = require("react");
|
|
572
638
|
|
|
573
639
|
// src/components/radio/use-styles.css.ts
|
|
574
640
|
var circle = "use-styles_circle__vy61b42";
|
|
@@ -579,12 +645,12 @@ var label2 = "use-styles_label__vy61b44";
|
|
|
579
645
|
var root7 = "use-styles_root__vy61b40";
|
|
580
646
|
|
|
581
647
|
// src/components/radio/use-styles.ts
|
|
582
|
-
function
|
|
648
|
+
function useStyles9({
|
|
583
649
|
disabled: disabled3,
|
|
584
650
|
className
|
|
585
651
|
}) {
|
|
586
652
|
const { themeClass } = useTheme();
|
|
587
|
-
const root24 = (0,
|
|
653
|
+
const root24 = (0, import_react12.useMemo)(
|
|
588
654
|
() => [themeClass, root7, disabled3 && disabled2, className].filter(Boolean).join(" "),
|
|
589
655
|
[themeClass, disabled3, className]
|
|
590
656
|
);
|
|
@@ -598,11 +664,11 @@ function useStyles8({
|
|
|
598
664
|
}
|
|
599
665
|
|
|
600
666
|
// src/components/radio/index.tsx
|
|
601
|
-
var
|
|
667
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
602
668
|
function Radio({ checked, onChange, label: label7, name, value, disabled: disabled3 }) {
|
|
603
|
-
const { root: root24, input: input6, circle: circle2, dot: dot3, label: labelClass } =
|
|
604
|
-
return /* @__PURE__ */ (0,
|
|
605
|
-
/* @__PURE__ */ (0,
|
|
669
|
+
const { root: root24, input: input6, circle: circle2, dot: dot3, label: labelClass } = useStyles9({ disabled: disabled3 });
|
|
670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("label", { className: root24, children: [
|
|
671
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
606
672
|
"input",
|
|
607
673
|
{
|
|
608
674
|
className: input6,
|
|
@@ -614,13 +680,13 @@ function Radio({ checked, onChange, label: label7, name, value, disabled: disabl
|
|
|
614
680
|
onChange
|
|
615
681
|
}
|
|
616
682
|
),
|
|
617
|
-
/* @__PURE__ */ (0,
|
|
618
|
-
label7 != null && /* @__PURE__ */ (0,
|
|
683
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: circle2, children: checked && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: dot3 }) }),
|
|
684
|
+
label7 != null && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: labelClass, children: label7 })
|
|
619
685
|
] });
|
|
620
686
|
}
|
|
621
687
|
|
|
622
688
|
// src/components/switch/use-styles.ts
|
|
623
|
-
var
|
|
689
|
+
var import_react13 = require("react");
|
|
624
690
|
|
|
625
691
|
// src/components/switch/use-styles.css.ts
|
|
626
692
|
var input3 = "surfaces_srOnly__6hs0fg0";
|
|
@@ -632,9 +698,9 @@ var track2 = "use-styles_track__1r6kem71";
|
|
|
632
698
|
var trackChecked = "use-styles_trackChecked__1r6kem72";
|
|
633
699
|
|
|
634
700
|
// src/components/switch/use-styles.ts
|
|
635
|
-
function
|
|
701
|
+
function useStyles10({ checked }) {
|
|
636
702
|
const { themeClass } = useTheme();
|
|
637
|
-
return (0,
|
|
703
|
+
return (0, import_react13.useMemo)(
|
|
638
704
|
() => ({
|
|
639
705
|
root: [themeClass, root8].filter(Boolean).join(" "),
|
|
640
706
|
input: input3,
|
|
@@ -647,11 +713,11 @@ function useStyles9({ checked }) {
|
|
|
647
713
|
}
|
|
648
714
|
|
|
649
715
|
// src/components/switch/index.tsx
|
|
650
|
-
var
|
|
716
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
651
717
|
function Switch({ checked = false, onChange, label: label7, disabled: disabled3 }) {
|
|
652
|
-
const { root: root24, input: input6, track: track4, knob: knob2, label: labelClass } =
|
|
653
|
-
return /* @__PURE__ */ (0,
|
|
654
|
-
/* @__PURE__ */ (0,
|
|
718
|
+
const { root: root24, input: input6, track: track4, knob: knob2, label: labelClass } = useStyles10({ checked });
|
|
719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: root24, children: [
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
655
721
|
"input",
|
|
656
722
|
{
|
|
657
723
|
type: "checkbox",
|
|
@@ -666,18 +732,18 @@ function Switch({ checked = false, onChange, label: label7, disabled: disabled3
|
|
|
666
732
|
}
|
|
667
733
|
}
|
|
668
734
|
),
|
|
669
|
-
/* @__PURE__ */ (0,
|
|
670
|
-
label7 != null && /* @__PURE__ */ (0,
|
|
735
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: track4, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: knob2 }) }),
|
|
736
|
+
label7 != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: labelClass, children: label7 })
|
|
671
737
|
] });
|
|
672
738
|
}
|
|
673
739
|
|
|
674
740
|
// src/components/text-field/index.tsx
|
|
675
|
-
var
|
|
741
|
+
var import_react15 = require("react");
|
|
676
742
|
|
|
677
743
|
// src/components/icons/eye/index.tsx
|
|
678
|
-
var
|
|
744
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
679
745
|
function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
680
|
-
return /* @__PURE__ */ (0,
|
|
746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
681
747
|
"svg",
|
|
682
748
|
{
|
|
683
749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -692,17 +758,17 @@ function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
692
758
|
"aria-hidden": "true",
|
|
693
759
|
...rest,
|
|
694
760
|
children: [
|
|
695
|
-
/* @__PURE__ */ (0,
|
|
696
|
-
/* @__PURE__ */ (0,
|
|
761
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
762
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("circle", { cx: "12", cy: "12", r: "3" })
|
|
697
763
|
]
|
|
698
764
|
}
|
|
699
765
|
);
|
|
700
766
|
}
|
|
701
767
|
|
|
702
768
|
// src/components/icons/eye-off/index.tsx
|
|
703
|
-
var
|
|
769
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
704
770
|
function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
705
|
-
return /* @__PURE__ */ (0,
|
|
771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
706
772
|
"svg",
|
|
707
773
|
{
|
|
708
774
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -717,17 +783,17 @@ function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
717
783
|
"aria-hidden": "true",
|
|
718
784
|
...rest,
|
|
719
785
|
children: [
|
|
720
|
-
/* @__PURE__ */ (0,
|
|
721
|
-
/* @__PURE__ */ (0,
|
|
722
|
-
/* @__PURE__ */ (0,
|
|
723
|
-
/* @__PURE__ */ (0,
|
|
786
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
787
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
788
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
789
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "m2 2 20 20" })
|
|
724
790
|
]
|
|
725
791
|
}
|
|
726
792
|
);
|
|
727
793
|
}
|
|
728
794
|
|
|
729
795
|
// src/components/text-field/use-styles.ts
|
|
730
|
-
var
|
|
796
|
+
var import_react14 = require("react");
|
|
731
797
|
|
|
732
798
|
// src/components/text-field/use-styles.css.ts
|
|
733
799
|
var field = "use-styles_field__vat8gv3";
|
|
@@ -744,9 +810,9 @@ var root9 = "use-styles_root__vat8gv0";
|
|
|
744
810
|
var startIcon = "use-styles_startIcon__vat8gva";
|
|
745
811
|
|
|
746
812
|
// src/components/text-field/use-styles.ts
|
|
747
|
-
function
|
|
813
|
+
function useStyles11({ error, hasStartIcon, hasReveal, className }) {
|
|
748
814
|
const { themeClass } = useTheme();
|
|
749
|
-
return (0,
|
|
815
|
+
return (0, import_react14.useMemo)(() => {
|
|
750
816
|
const root24 = [themeClass, root9].filter(Boolean).join(" ");
|
|
751
817
|
const labelText2 = [labelText, error && labelTextError].filter(Boolean).join(" ");
|
|
752
818
|
const input6 = [
|
|
@@ -770,7 +836,7 @@ function useStyles10({ error, hasStartIcon, hasReveal, className }) {
|
|
|
770
836
|
}
|
|
771
837
|
|
|
772
838
|
// src/components/text-field/index.tsx
|
|
773
|
-
var
|
|
839
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
774
840
|
function TextField({
|
|
775
841
|
label: label7,
|
|
776
842
|
help,
|
|
@@ -784,13 +850,13 @@ function TextField({
|
|
|
784
850
|
id,
|
|
785
851
|
...rest
|
|
786
852
|
}) {
|
|
787
|
-
const [reveal, setReveal] = (0,
|
|
853
|
+
const [reveal, setReveal] = (0, import_react15.useState)(false);
|
|
788
854
|
const isPassword = type === "password";
|
|
789
855
|
const hasReveal = isPassword;
|
|
790
856
|
const effectiveType = isPassword ? reveal ? "text" : "password" : type;
|
|
791
|
-
const autoId = (0,
|
|
857
|
+
const autoId = (0, import_react15.useId)();
|
|
792
858
|
const controlId = id ?? autoId;
|
|
793
|
-
const classes =
|
|
859
|
+
const classes = useStyles11({
|
|
794
860
|
error,
|
|
795
861
|
hasStartIcon: Boolean(StartIcon),
|
|
796
862
|
hasReveal,
|
|
@@ -805,11 +871,11 @@ function TextField({
|
|
|
805
871
|
const handleToggleMouseDown = (e) => {
|
|
806
872
|
e.preventDefault();
|
|
807
873
|
};
|
|
808
|
-
return /* @__PURE__ */ (0,
|
|
809
|
-
label7 != null && /* @__PURE__ */ (0,
|
|
810
|
-
/* @__PURE__ */ (0,
|
|
811
|
-
StartIcon != null && /* @__PURE__ */ (0,
|
|
812
|
-
multiline ? /* @__PURE__ */ (0,
|
|
874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: classes.root, children: [
|
|
875
|
+
label7 != null && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("label", { htmlFor: controlId, className: classes.labelText, children: label7 }),
|
|
876
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: classes.field, children: [
|
|
877
|
+
StartIcon != null && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: classes.startIcon, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StartIcon, { size: 18 }) }),
|
|
878
|
+
multiline ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
813
879
|
"textarea",
|
|
814
880
|
{
|
|
815
881
|
id: controlId,
|
|
@@ -818,7 +884,7 @@ function TextField({
|
|
|
818
884
|
onChange: handleTextareaChange,
|
|
819
885
|
...rest
|
|
820
886
|
}
|
|
821
|
-
) : /* @__PURE__ */ (0,
|
|
887
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
822
888
|
"input",
|
|
823
889
|
{
|
|
824
890
|
id: controlId,
|
|
@@ -828,7 +894,7 @@ function TextField({
|
|
|
828
894
|
...rest
|
|
829
895
|
}
|
|
830
896
|
),
|
|
831
|
-
hasReveal && /* @__PURE__ */ (0,
|
|
897
|
+
hasReveal && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
832
898
|
"button",
|
|
833
899
|
{
|
|
834
900
|
type: "button",
|
|
@@ -837,16 +903,16 @@ function TextField({
|
|
|
837
903
|
"aria-label": reveal ? "Ocultar contrase\xF1a" : "Mostrar contrase\xF1a",
|
|
838
904
|
onMouseDown: handleToggleMouseDown,
|
|
839
905
|
onClick: () => setReveal((r) => !r),
|
|
840
|
-
children: reveal ? /* @__PURE__ */ (0,
|
|
906
|
+
children: reveal ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(EyeOffIcon, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(EyeIcon, { size: 18 })
|
|
841
907
|
}
|
|
842
908
|
)
|
|
843
909
|
] }),
|
|
844
|
-
help != null && /* @__PURE__ */ (0,
|
|
910
|
+
help != null && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: classes.helpText, children: help })
|
|
845
911
|
] });
|
|
846
912
|
}
|
|
847
913
|
|
|
848
914
|
// src/components/icon-button/use-styles.ts
|
|
849
|
-
var
|
|
915
|
+
var import_react16 = require("react");
|
|
850
916
|
|
|
851
917
|
// src/components/icon-button/use-styles.css.ts
|
|
852
918
|
var accent = "use-styles_accent__18np0q02";
|
|
@@ -854,12 +920,12 @@ var active = "use-styles_active__18np0q01";
|
|
|
854
920
|
var root10 = "use-styles_root__18np0q00";
|
|
855
921
|
|
|
856
922
|
// src/components/icon-button/use-styles.ts
|
|
857
|
-
function
|
|
923
|
+
function useStyles12({
|
|
858
924
|
active: active2 = false,
|
|
859
925
|
tone: tone4 = "ink"
|
|
860
926
|
}) {
|
|
861
927
|
const { themeClass } = useTheme();
|
|
862
|
-
const root24 = (0,
|
|
928
|
+
const root24 = (0, import_react16.useMemo)(
|
|
863
929
|
() => [themeClass, root10, tone4 === "accent" && accent, active2 && active].filter(Boolean).join(" "),
|
|
864
930
|
[themeClass, active2, tone4]
|
|
865
931
|
);
|
|
@@ -867,14 +933,14 @@ function useStyles11({
|
|
|
867
933
|
}
|
|
868
934
|
|
|
869
935
|
// src/components/icon-button/index.tsx
|
|
870
|
-
var
|
|
936
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
871
937
|
function IconButton({ icon: Icon, active: active2, tone: tone4, title, ...rest }) {
|
|
872
|
-
const { root: root24 } =
|
|
873
|
-
return /* @__PURE__ */ (0,
|
|
938
|
+
const { root: root24 } = useStyles12({ active: active2, tone: tone4 });
|
|
939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: root24, "aria-label": title, title, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { size: 18 }) });
|
|
874
940
|
}
|
|
875
941
|
|
|
876
942
|
// src/components/card/use-styles.ts
|
|
877
|
-
var
|
|
943
|
+
var import_react17 = require("react");
|
|
878
944
|
|
|
879
945
|
// src/components/card/use-styles.css.ts
|
|
880
946
|
var body = "use-styles_body__1fuvd022";
|
|
@@ -883,29 +949,29 @@ var header = "use-styles_header__1fuvd021";
|
|
|
883
949
|
var root11 = "use-styles_root__1fuvd020";
|
|
884
950
|
|
|
885
951
|
// src/components/card/use-styles.ts
|
|
886
|
-
function
|
|
952
|
+
function useStyles13() {
|
|
887
953
|
const { themeClass } = useTheme();
|
|
888
|
-
const root24 = (0,
|
|
954
|
+
const root24 = (0, import_react17.useMemo)(() => `${themeClass} ${root11}`, [themeClass]);
|
|
889
955
|
return { root: root24, header, body, footer };
|
|
890
956
|
}
|
|
891
957
|
|
|
892
958
|
// src/components/card/index.tsx
|
|
893
|
-
var
|
|
959
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
894
960
|
function CardRoot({ children, ...rest }) {
|
|
895
|
-
const { root: root24 } =
|
|
896
|
-
return /* @__PURE__ */ (0,
|
|
961
|
+
const { root: root24 } = useStyles13();
|
|
962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: root24, ...rest, children });
|
|
897
963
|
}
|
|
898
964
|
function CardHeader({ children, ...rest }) {
|
|
899
|
-
const { header: header3 } =
|
|
900
|
-
return /* @__PURE__ */ (0,
|
|
965
|
+
const { header: header3 } = useStyles13();
|
|
966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: header3, ...rest, children });
|
|
901
967
|
}
|
|
902
968
|
function CardBody({ children, ...rest }) {
|
|
903
|
-
const { body:
|
|
904
|
-
return /* @__PURE__ */ (0,
|
|
969
|
+
const { body: body3 } = useStyles13();
|
|
970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: body3, ...rest, children });
|
|
905
971
|
}
|
|
906
972
|
function CardFooter({ children, ...rest }) {
|
|
907
|
-
const { footer: footer2 } =
|
|
908
|
-
return /* @__PURE__ */ (0,
|
|
973
|
+
const { footer: footer2 } = useStyles13();
|
|
974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: footer2, ...rest, children });
|
|
909
975
|
}
|
|
910
976
|
CardRoot.displayName = "Card";
|
|
911
977
|
CardHeader.displayName = "Card.Header";
|
|
@@ -918,9 +984,9 @@ var Card = Object.assign(CardRoot, {
|
|
|
918
984
|
});
|
|
919
985
|
|
|
920
986
|
// src/components/icons/circle-check/index.tsx
|
|
921
|
-
var
|
|
987
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
922
988
|
function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
923
|
-
return /* @__PURE__ */ (0,
|
|
989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
924
990
|
"svg",
|
|
925
991
|
{
|
|
926
992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -935,17 +1001,17 @@ function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
935
1001
|
"aria-hidden": "true",
|
|
936
1002
|
...rest,
|
|
937
1003
|
children: [
|
|
938
|
-
/* @__PURE__ */ (0,
|
|
939
|
-
/* @__PURE__ */ (0,
|
|
1004
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1005
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "m9 12 2 2 4-4" })
|
|
940
1006
|
]
|
|
941
1007
|
}
|
|
942
1008
|
);
|
|
943
1009
|
}
|
|
944
1010
|
|
|
945
1011
|
// src/components/icons/circle-x/index.tsx
|
|
946
|
-
var
|
|
1012
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
947
1013
|
function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
948
|
-
return /* @__PURE__ */ (0,
|
|
1014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
949
1015
|
"svg",
|
|
950
1016
|
{
|
|
951
1017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -960,18 +1026,18 @@ function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
960
1026
|
"aria-hidden": "true",
|
|
961
1027
|
...rest,
|
|
962
1028
|
children: [
|
|
963
|
-
/* @__PURE__ */ (0,
|
|
964
|
-
/* @__PURE__ */ (0,
|
|
965
|
-
/* @__PURE__ */ (0,
|
|
1029
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1030
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "m15 9-6 6" }),
|
|
1031
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "m9 9 6 6" })
|
|
966
1032
|
]
|
|
967
1033
|
}
|
|
968
1034
|
);
|
|
969
1035
|
}
|
|
970
1036
|
|
|
971
1037
|
// src/components/icons/info/index.tsx
|
|
972
|
-
var
|
|
1038
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
973
1039
|
function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
974
|
-
return /* @__PURE__ */ (0,
|
|
1040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
975
1041
|
"svg",
|
|
976
1042
|
{
|
|
977
1043
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -986,18 +1052,18 @@ function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
986
1052
|
"aria-hidden": "true",
|
|
987
1053
|
...rest,
|
|
988
1054
|
children: [
|
|
989
|
-
/* @__PURE__ */ (0,
|
|
990
|
-
/* @__PURE__ */ (0,
|
|
991
|
-
/* @__PURE__ */ (0,
|
|
1055
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1056
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 16v-4" }),
|
|
1057
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 8h.01" })
|
|
992
1058
|
]
|
|
993
1059
|
}
|
|
994
1060
|
);
|
|
995
1061
|
}
|
|
996
1062
|
|
|
997
1063
|
// src/components/icons/triangle-alert/index.tsx
|
|
998
|
-
var
|
|
1064
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
999
1065
|
function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1000
|
-
return /* @__PURE__ */ (0,
|
|
1066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1001
1067
|
"svg",
|
|
1002
1068
|
{
|
|
1003
1069
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1012,46 +1078,42 @@ function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1012
1078
|
"aria-hidden": "true",
|
|
1013
1079
|
...rest,
|
|
1014
1080
|
children: [
|
|
1015
|
-
/* @__PURE__ */ (0,
|
|
1016
|
-
/* @__PURE__ */ (0,
|
|
1017
|
-
/* @__PURE__ */ (0,
|
|
1081
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
1082
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 9v4" }),
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 17h.01" })
|
|
1018
1084
|
]
|
|
1019
1085
|
}
|
|
1020
1086
|
);
|
|
1021
1087
|
}
|
|
1022
1088
|
|
|
1023
1089
|
// src/components/alert/use-styles.ts
|
|
1024
|
-
var
|
|
1090
|
+
var import_react18 = require("react");
|
|
1025
1091
|
|
|
1026
1092
|
// src/components/alert/use-styles.css.ts
|
|
1027
|
-
var body2 = "use-styles_body__ivsh6u8";
|
|
1028
1093
|
var content = "use-styles_content__ivsh6u6";
|
|
1029
1094
|
var iconSlot = "use-styles_iconSlot__ivsh6u5";
|
|
1030
1095
|
var root12 = "use-styles_root__ivsh6u0";
|
|
1031
1096
|
var severity = { info: "use-styles_severity_info__ivsh6u1", ok: "use-styles_severity_ok__ivsh6u2", warn: "use-styles_severity_warn__ivsh6u3", danger: "use-styles_severity_danger__ivsh6u4" };
|
|
1032
|
-
var titleText = "use-styles_titleText__ivsh6u7";
|
|
1033
1097
|
|
|
1034
1098
|
// src/components/alert/use-styles.ts
|
|
1035
|
-
function
|
|
1099
|
+
function useStyles14({
|
|
1036
1100
|
severity: severity2 = "info",
|
|
1037
1101
|
className
|
|
1038
1102
|
}) {
|
|
1039
1103
|
const { themeClass } = useTheme();
|
|
1040
|
-
const root24 = (0,
|
|
1104
|
+
const root24 = (0, import_react18.useMemo)(
|
|
1041
1105
|
() => [themeClass, root12, severity[severity2], className].filter(Boolean).join(" "),
|
|
1042
1106
|
[themeClass, severity2, className]
|
|
1043
1107
|
);
|
|
1044
1108
|
return {
|
|
1045
1109
|
root: root24,
|
|
1046
1110
|
iconSlot,
|
|
1047
|
-
content
|
|
1048
|
-
titleText,
|
|
1049
|
-
body: body2
|
|
1111
|
+
content
|
|
1050
1112
|
};
|
|
1051
1113
|
}
|
|
1052
1114
|
|
|
1053
1115
|
// src/components/alert/index.tsx
|
|
1054
|
-
var
|
|
1116
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1055
1117
|
var defaultIcons = {
|
|
1056
1118
|
info: InfoIcon,
|
|
1057
1119
|
ok: CircleCheckIcon,
|
|
@@ -1066,22 +1128,22 @@ function Alert({
|
|
|
1066
1128
|
children,
|
|
1067
1129
|
...rest
|
|
1068
1130
|
}) {
|
|
1069
|
-
const styles =
|
|
1131
|
+
const styles = useStyles14({ severity: severity2, className });
|
|
1070
1132
|
const IconComponent = icon ?? defaultIcons[severity2];
|
|
1071
|
-
return /* @__PURE__ */ (0,
|
|
1072
|
-
/* @__PURE__ */ (0,
|
|
1073
|
-
/* @__PURE__ */ (0,
|
|
1074
|
-
title != null && /* @__PURE__ */ (0,
|
|
1075
|
-
children != null && /* @__PURE__ */ (0,
|
|
1133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { role: "alert", className: styles.root, ...rest, children: [
|
|
1134
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: styles.iconSlot, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(IconComponent, {}) }),
|
|
1135
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: styles.content, children: [
|
|
1136
|
+
title != null && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "h4", children: title }),
|
|
1137
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "body", color: "fg2", children })
|
|
1076
1138
|
] })
|
|
1077
1139
|
] });
|
|
1078
1140
|
}
|
|
1079
1141
|
|
|
1080
1142
|
// src/components/tooltip/index.tsx
|
|
1081
|
-
var
|
|
1143
|
+
var import_react20 = require("react");
|
|
1082
1144
|
|
|
1083
1145
|
// src/components/tooltip/use-styles.ts
|
|
1084
|
-
var
|
|
1146
|
+
var import_react19 = require("react");
|
|
1085
1147
|
|
|
1086
1148
|
// src/components/tooltip/use-styles.css.ts
|
|
1087
1149
|
var bubble = "use-styles_bubble__h9kvh1 surfaces_inkySurface__6hs0fg2";
|
|
@@ -1089,13 +1151,15 @@ var placement = { top: "use-styles_placement_top__h9kvh2", bottom: "use-styles_p
|
|
|
1089
1151
|
var wrapper = "use-styles_wrapper__h9kvh0";
|
|
1090
1152
|
|
|
1091
1153
|
// src/components/tooltip/use-styles.ts
|
|
1092
|
-
function
|
|
1154
|
+
function useStyles15({
|
|
1155
|
+
placement: placement2 = "top"
|
|
1156
|
+
}) {
|
|
1093
1157
|
const { themeClass } = useTheme();
|
|
1094
|
-
const wrapper4 = (0,
|
|
1158
|
+
const wrapper4 = (0, import_react19.useMemo)(
|
|
1095
1159
|
() => [themeClass, wrapper].filter(Boolean).join(" "),
|
|
1096
1160
|
[themeClass]
|
|
1097
1161
|
);
|
|
1098
|
-
const bubble2 = (0,
|
|
1162
|
+
const bubble2 = (0, import_react19.useMemo)(
|
|
1099
1163
|
() => [bubble, placement[placement2]].filter(Boolean).join(" "),
|
|
1100
1164
|
[placement2]
|
|
1101
1165
|
);
|
|
@@ -1103,29 +1167,29 @@ function useStyles14({ placement: placement2 = "top" }) {
|
|
|
1103
1167
|
}
|
|
1104
1168
|
|
|
1105
1169
|
// src/components/tooltip/index.tsx
|
|
1106
|
-
var
|
|
1170
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1107
1171
|
function Tooltip({ label: label7, children, placement: placement2 }) {
|
|
1108
|
-
const [open, setOpen] = (0,
|
|
1109
|
-
const tooltipId = (0,
|
|
1110
|
-
const { wrapper: wrapper4, bubble: bubble2 } =
|
|
1172
|
+
const [open, setOpen] = (0, import_react20.useState)(false);
|
|
1173
|
+
const tooltipId = (0, import_react20.useId)();
|
|
1174
|
+
const { wrapper: wrapper4, bubble: bubble2 } = useStyles15({ placement: placement2 });
|
|
1111
1175
|
const show = () => setOpen(true);
|
|
1112
1176
|
const hide = () => setOpen(false);
|
|
1113
1177
|
const previousDescribedBy = children.props["aria-describedby"];
|
|
1114
1178
|
const describedBy = open ? [previousDescribedBy, tooltipId].filter(Boolean).join(" ") : previousDescribedBy;
|
|
1115
|
-
const trigger2 = (0,
|
|
1116
|
-
return /* @__PURE__ */ (0,
|
|
1179
|
+
const trigger2 = (0, import_react20.cloneElement)(children, { "aria-describedby": describedBy });
|
|
1180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: wrapper4, onMouseEnter: show, onMouseLeave: hide, onFocus: show, onBlur: hide, children: [
|
|
1117
1181
|
trigger2,
|
|
1118
|
-
open && /* @__PURE__ */ (0,
|
|
1182
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { id: tooltipId, role: "tooltip", className: bubble2, children: label7 })
|
|
1119
1183
|
] });
|
|
1120
1184
|
}
|
|
1121
1185
|
|
|
1122
1186
|
// src/components/select/index.tsx
|
|
1123
|
-
var
|
|
1187
|
+
var import_react22 = require("react");
|
|
1124
1188
|
|
|
1125
1189
|
// src/components/icons/chevron-down/index.tsx
|
|
1126
|
-
var
|
|
1190
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1127
1191
|
function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1128
|
-
return /* @__PURE__ */ (0,
|
|
1192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1129
1193
|
"svg",
|
|
1130
1194
|
{
|
|
1131
1195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1139,13 +1203,13 @@ function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1139
1203
|
strokeLinejoin: "round",
|
|
1140
1204
|
"aria-hidden": "true",
|
|
1141
1205
|
...rest,
|
|
1142
|
-
children: /* @__PURE__ */ (0,
|
|
1206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1143
1207
|
}
|
|
1144
1208
|
);
|
|
1145
1209
|
}
|
|
1146
1210
|
|
|
1147
1211
|
// src/components/select/use-styles.ts
|
|
1148
|
-
var
|
|
1212
|
+
var import_react21 = require("react");
|
|
1149
1213
|
|
|
1150
1214
|
// src/components/select/use-styles.css.ts
|
|
1151
1215
|
var chevron = "use-styles_chevron__1w1czpb4";
|
|
@@ -1160,11 +1224,11 @@ var root13 = "use-styles_root__1w1czpb0";
|
|
|
1160
1224
|
var trigger = "use-styles_trigger__1w1czpb2";
|
|
1161
1225
|
|
|
1162
1226
|
// src/components/select/use-styles.ts
|
|
1163
|
-
function
|
|
1227
|
+
function useStyles16({
|
|
1164
1228
|
open = false
|
|
1165
1229
|
}) {
|
|
1166
1230
|
const { themeClass } = useTheme();
|
|
1167
|
-
return (0,
|
|
1231
|
+
return (0, import_react21.useMemo)(() => {
|
|
1168
1232
|
const chevron3 = [chevron, open && chevronOpen].filter(Boolean).join(" ");
|
|
1169
1233
|
return {
|
|
1170
1234
|
root: [themeClass, root13].filter(Boolean).join(" "),
|
|
@@ -1179,12 +1243,12 @@ function useStyles15({
|
|
|
1179
1243
|
}
|
|
1180
1244
|
|
|
1181
1245
|
// src/components/select/index.tsx
|
|
1182
|
-
var
|
|
1246
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1183
1247
|
function Select({ options, value, onChange, placeholder: placeholder2, label: label7, disabled: disabled3 }) {
|
|
1184
|
-
const [open, setOpen] = (0,
|
|
1185
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
1186
|
-
const rootRef = (0,
|
|
1187
|
-
const baseId = (0,
|
|
1248
|
+
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
1249
|
+
const [activeIndex, setActiveIndex] = (0, import_react22.useState)(0);
|
|
1250
|
+
const rootRef = (0, import_react22.useRef)(null);
|
|
1251
|
+
const baseId = (0, import_react22.useId)();
|
|
1188
1252
|
const labelId = `${baseId}-label`;
|
|
1189
1253
|
const optionId = (index) => `${baseId}-option-${index}`;
|
|
1190
1254
|
const {
|
|
@@ -1195,8 +1259,8 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1195
1259
|
chevron: chevron3,
|
|
1196
1260
|
menu: menu2,
|
|
1197
1261
|
optionClass
|
|
1198
|
-
} =
|
|
1199
|
-
(0,
|
|
1262
|
+
} = useStyles16({ open });
|
|
1263
|
+
(0, import_react22.useEffect)(() => {
|
|
1200
1264
|
if (!open) return;
|
|
1201
1265
|
const onPointerDown = (event) => {
|
|
1202
1266
|
if (rootRef.current && !rootRef.current.contains(event.target)) {
|
|
@@ -1256,9 +1320,9 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1256
1320
|
break;
|
|
1257
1321
|
}
|
|
1258
1322
|
};
|
|
1259
|
-
return /* @__PURE__ */ (0,
|
|
1260
|
-
label7 && /* @__PURE__ */ (0,
|
|
1261
|
-
/* @__PURE__ */ (0,
|
|
1323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref: rootRef, className: root24, children: [
|
|
1324
|
+
label7 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { id: labelId, className: labelClass, children: label7 }),
|
|
1325
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1262
1326
|
"button",
|
|
1263
1327
|
{
|
|
1264
1328
|
type: "button",
|
|
@@ -1278,17 +1342,17 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1278
1342
|
},
|
|
1279
1343
|
onKeyDown: handleKeyDown,
|
|
1280
1344
|
children: [
|
|
1281
|
-
selected3 ? selected3.label : /* @__PURE__ */ (0,
|
|
1282
|
-
/* @__PURE__ */ (0,
|
|
1345
|
+
selected3 ? selected3.label : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: placeholderClass, children: placeholder2 }),
|
|
1346
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: chevron3, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChevronDownIcon, { size: 18 }) })
|
|
1283
1347
|
]
|
|
1284
1348
|
}
|
|
1285
1349
|
),
|
|
1286
|
-
open && /* @__PURE__ */ (0,
|
|
1350
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: menu2, role: "listbox", children: options.map((option2, index) => {
|
|
1287
1351
|
const isSelected = option2.value === value;
|
|
1288
1352
|
const isActive = index === activeIndex;
|
|
1289
1353
|
return (
|
|
1290
1354
|
// biome-ignore lint/a11y/useKeyWithClickEvents: keyboard nav lives on the trigger via aria-activedescendant; options are not focusable.
|
|
1291
|
-
/* @__PURE__ */ (0,
|
|
1355
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1292
1356
|
"div",
|
|
1293
1357
|
{
|
|
1294
1358
|
id: optionId(index),
|
|
@@ -1307,7 +1371,7 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1307
1371
|
}
|
|
1308
1372
|
|
|
1309
1373
|
// src/components/slider/use-styles.ts
|
|
1310
|
-
var
|
|
1374
|
+
var import_react23 = require("react");
|
|
1311
1375
|
|
|
1312
1376
|
// src/components/slider/use-styles.css.ts
|
|
1313
1377
|
var input5 = "use-styles_input__okw59n3";
|
|
@@ -1319,9 +1383,9 @@ var track3 = "use-styles_track__okw59n1";
|
|
|
1319
1383
|
var wrapper2 = "use-styles_wrapper__okw59n6";
|
|
1320
1384
|
|
|
1321
1385
|
// src/components/slider/use-styles.ts
|
|
1322
|
-
function
|
|
1386
|
+
function useStyles17() {
|
|
1323
1387
|
const { themeClass } = useTheme();
|
|
1324
|
-
return (0,
|
|
1388
|
+
return (0, import_react23.useMemo)(() => {
|
|
1325
1389
|
const root24 = [themeClass, root14].filter(Boolean).join(" ");
|
|
1326
1390
|
return {
|
|
1327
1391
|
wrapper: wrapper2,
|
|
@@ -1336,7 +1400,7 @@ function useStyles16() {
|
|
|
1336
1400
|
}
|
|
1337
1401
|
|
|
1338
1402
|
// src/components/slider/index.tsx
|
|
1339
|
-
var
|
|
1403
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1340
1404
|
function Slider({
|
|
1341
1405
|
value = 0,
|
|
1342
1406
|
onChange,
|
|
@@ -1346,19 +1410,19 @@ function Slider({
|
|
|
1346
1410
|
disabled: disabled3,
|
|
1347
1411
|
label: label7
|
|
1348
1412
|
}) {
|
|
1349
|
-
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } =
|
|
1413
|
+
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } = useStyles17();
|
|
1350
1414
|
const span = max - min;
|
|
1351
1415
|
const percent = span > 0 ? (value - min) / span * 100 : 0;
|
|
1352
1416
|
const clamped = Math.max(0, Math.min(100, percent));
|
|
1353
1417
|
const handleChange = (e) => {
|
|
1354
1418
|
onChange?.(Number(e.target.value));
|
|
1355
1419
|
};
|
|
1356
|
-
return /* @__PURE__ */ (0,
|
|
1357
|
-
label7 ? /* @__PURE__ */ (0,
|
|
1358
|
-
/* @__PURE__ */ (0,
|
|
1359
|
-
/* @__PURE__ */ (0,
|
|
1360
|
-
/* @__PURE__ */ (0,
|
|
1361
|
-
/* @__PURE__ */ (0,
|
|
1420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: wrapper4, children: [
|
|
1421
|
+
label7 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: labelClass, children: label7 }) : null,
|
|
1422
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: root24, children: [
|
|
1423
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: track4 }),
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: range2, style: { width: `${clamped}%` } }),
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1362
1426
|
"input",
|
|
1363
1427
|
{
|
|
1364
1428
|
className: input6,
|
|
@@ -1371,16 +1435,16 @@ function Slider({
|
|
|
1371
1435
|
onChange: handleChange
|
|
1372
1436
|
}
|
|
1373
1437
|
),
|
|
1374
|
-
/* @__PURE__ */ (0,
|
|
1438
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: thumb2, style: { left: `${clamped}%` } })
|
|
1375
1439
|
] })
|
|
1376
1440
|
] });
|
|
1377
1441
|
}
|
|
1378
1442
|
|
|
1379
1443
|
// src/components/accordion/index.tsx
|
|
1380
|
-
var
|
|
1444
|
+
var import_react25 = require("react");
|
|
1381
1445
|
|
|
1382
1446
|
// src/components/accordion/use-styles.ts
|
|
1383
|
-
var
|
|
1447
|
+
var import_react24 = require("react");
|
|
1384
1448
|
|
|
1385
1449
|
// src/components/accordion/use-styles.css.ts
|
|
1386
1450
|
var chevron2 = "use-styles_chevron__1cjrdh93";
|
|
@@ -1391,9 +1455,9 @@ var panel = "use-styles_panel__1cjrdh95";
|
|
|
1391
1455
|
var root15 = "use-styles_root__1cjrdh90";
|
|
1392
1456
|
|
|
1393
1457
|
// src/components/accordion/use-styles.ts
|
|
1394
|
-
function
|
|
1458
|
+
function useStyles18({ className }) {
|
|
1395
1459
|
const { themeClass } = useTheme();
|
|
1396
|
-
return (0,
|
|
1460
|
+
return (0, import_react24.useMemo)(
|
|
1397
1461
|
() => ({
|
|
1398
1462
|
root: [themeClass, root15, className].filter(Boolean).join(" "),
|
|
1399
1463
|
item,
|
|
@@ -1406,15 +1470,15 @@ function useStyles17({ className }) {
|
|
|
1406
1470
|
}
|
|
1407
1471
|
|
|
1408
1472
|
// src/components/accordion/index.tsx
|
|
1409
|
-
var
|
|
1473
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1410
1474
|
function Accordion({
|
|
1411
1475
|
items,
|
|
1412
1476
|
multiple = false,
|
|
1413
1477
|
defaultOpen = [],
|
|
1414
1478
|
className
|
|
1415
1479
|
}) {
|
|
1416
|
-
const [open, setOpen] = (0,
|
|
1417
|
-
const { root: root24, item: item3, header: header3, chevronFor, panel: panel2 } =
|
|
1480
|
+
const [open, setOpen] = (0, import_react25.useState)(defaultOpen);
|
|
1481
|
+
const { root: root24, item: item3, header: header3, chevronFor, panel: panel2 } = useStyles18({ className });
|
|
1418
1482
|
const toggle = (id) => {
|
|
1419
1483
|
setOpen((current2) => {
|
|
1420
1484
|
const isOpen = current2.includes(id);
|
|
@@ -1422,12 +1486,12 @@ function Accordion({
|
|
|
1422
1486
|
return multiple ? [...current2, id] : [id];
|
|
1423
1487
|
});
|
|
1424
1488
|
};
|
|
1425
|
-
return /* @__PURE__ */ (0,
|
|
1489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: root24, children: items.map((it) => {
|
|
1426
1490
|
const isOpen = open.includes(it.id);
|
|
1427
1491
|
const panelId = `accordion-panel-${it.id}`;
|
|
1428
1492
|
const headerId = `accordion-header-${it.id}`;
|
|
1429
|
-
return /* @__PURE__ */ (0,
|
|
1430
|
-
/* @__PURE__ */ (0,
|
|
1493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: item3, children: [
|
|
1494
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1431
1495
|
"button",
|
|
1432
1496
|
{
|
|
1433
1497
|
type: "button",
|
|
@@ -1438,22 +1502,22 @@ function Accordion({
|
|
|
1438
1502
|
onClick: () => toggle(it.id),
|
|
1439
1503
|
children: [
|
|
1440
1504
|
it.title,
|
|
1441
|
-
/* @__PURE__ */ (0,
|
|
1505
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronDownIcon, { className: chevronFor(isOpen) })
|
|
1442
1506
|
]
|
|
1443
1507
|
}
|
|
1444
1508
|
),
|
|
1445
|
-
isOpen && /* @__PURE__ */ (0,
|
|
1509
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { id: panelId, className: panel2, role: "region", "aria-labelledby": headerId, children: it.content })
|
|
1446
1510
|
] }, it.id);
|
|
1447
1511
|
}) });
|
|
1448
1512
|
}
|
|
1449
1513
|
|
|
1450
1514
|
// src/components/breadcrumbs/index.tsx
|
|
1451
|
-
var
|
|
1515
|
+
var import_react27 = require("react");
|
|
1452
1516
|
|
|
1453
1517
|
// src/components/icons/chevron-right/index.tsx
|
|
1454
|
-
var
|
|
1518
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1455
1519
|
function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1456
|
-
return /* @__PURE__ */ (0,
|
|
1520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1457
1521
|
"svg",
|
|
1458
1522
|
{
|
|
1459
1523
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1467,13 +1531,13 @@ function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1467
1531
|
strokeLinejoin: "round",
|
|
1468
1532
|
"aria-hidden": "true",
|
|
1469
1533
|
...rest,
|
|
1470
|
-
children: /* @__PURE__ */ (0,
|
|
1534
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "m9 18 6-6-6-6" })
|
|
1471
1535
|
}
|
|
1472
1536
|
);
|
|
1473
1537
|
}
|
|
1474
1538
|
|
|
1475
1539
|
// src/components/breadcrumbs/use-styles.ts
|
|
1476
|
-
var
|
|
1540
|
+
var import_react26 = require("react");
|
|
1477
1541
|
|
|
1478
1542
|
// src/components/breadcrumbs/use-styles.css.ts
|
|
1479
1543
|
var crumb = "use-styles_crumb__7u0du61";
|
|
@@ -1482,9 +1546,9 @@ var root16 = "use-styles_root__7u0du60";
|
|
|
1482
1546
|
var separator = "use-styles_separator__7u0du63";
|
|
1483
1547
|
|
|
1484
1548
|
// src/components/breadcrumbs/use-styles.ts
|
|
1485
|
-
function
|
|
1549
|
+
function useStyles19({ className }) {
|
|
1486
1550
|
const { themeClass } = useTheme();
|
|
1487
|
-
const root24 = (0,
|
|
1551
|
+
const root24 = (0, import_react26.useMemo)(
|
|
1488
1552
|
() => [themeClass, root16, className].filter(Boolean).join(" "),
|
|
1489
1553
|
[themeClass, className]
|
|
1490
1554
|
);
|
|
@@ -1492,23 +1556,23 @@ function useStyles18({ className }) {
|
|
|
1492
1556
|
}
|
|
1493
1557
|
|
|
1494
1558
|
// src/components/breadcrumbs/index.tsx
|
|
1495
|
-
var
|
|
1559
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1496
1560
|
function Breadcrumbs({ items, className, ...rest }) {
|
|
1497
|
-
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } =
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1561
|
+
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } = useStyles19({ className });
|
|
1562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("nav", { "aria-label": "Breadcrumb", className: root24, ...rest, children: items.map((item3, index) => {
|
|
1499
1563
|
const isLast = index === items.length - 1;
|
|
1500
1564
|
const key = index;
|
|
1501
|
-
return /* @__PURE__ */ (0,
|
|
1502
|
-
isLast ? /* @__PURE__ */ (0,
|
|
1503
|
-
!isLast && /* @__PURE__ */ (0,
|
|
1565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react27.Fragment, { children: [
|
|
1566
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: current2, "aria-current": "page", children: item3.label }) : item3.href ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("a", { className: crumb2, href: item3.href, children: item3.label }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: crumb2, children: item3.label }),
|
|
1567
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: separator2, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ChevronRightIcon, { size: 14 }) })
|
|
1504
1568
|
] }, key);
|
|
1505
1569
|
}) });
|
|
1506
1570
|
}
|
|
1507
1571
|
|
|
1508
1572
|
// src/components/icons/chevron-left/index.tsx
|
|
1509
|
-
var
|
|
1573
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1510
1574
|
function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1511
|
-
return /* @__PURE__ */ (0,
|
|
1575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1512
1576
|
"svg",
|
|
1513
1577
|
{
|
|
1514
1578
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1522,13 +1586,13 @@ function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1522
1586
|
strokeLinejoin: "round",
|
|
1523
1587
|
"aria-hidden": "true",
|
|
1524
1588
|
...rest,
|
|
1525
|
-
children: /* @__PURE__ */ (0,
|
|
1589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { d: "m15 18-6-6 6-6" })
|
|
1526
1590
|
}
|
|
1527
1591
|
);
|
|
1528
1592
|
}
|
|
1529
1593
|
|
|
1530
1594
|
// src/components/pagination/use-styles.ts
|
|
1531
|
-
var
|
|
1595
|
+
var import_react28 = require("react");
|
|
1532
1596
|
|
|
1533
1597
|
// src/components/pagination/use-styles.css.ts
|
|
1534
1598
|
var ellipsis = "use-styles_ellipsis__1azgzoh3";
|
|
@@ -1538,9 +1602,9 @@ var pageBtn = "use-styles_pageBtn__1azgzoh1";
|
|
|
1538
1602
|
var root17 = "use-styles_root__1azgzoh0";
|
|
1539
1603
|
|
|
1540
1604
|
// src/components/pagination/use-styles.ts
|
|
1541
|
-
function
|
|
1605
|
+
function useStyles20() {
|
|
1542
1606
|
const { themeClass } = useTheme();
|
|
1543
|
-
return (0,
|
|
1607
|
+
return (0, import_react28.useMemo)(
|
|
1544
1608
|
() => ({
|
|
1545
1609
|
root: [themeClass, root17].filter(Boolean).join(" "),
|
|
1546
1610
|
pageBtnFor: (active2) => [pageBtn, active2 && pageActive].filter(Boolean).join(" "),
|
|
@@ -1552,7 +1616,7 @@ function useStyles19() {
|
|
|
1552
1616
|
}
|
|
1553
1617
|
|
|
1554
1618
|
// src/components/pagination/index.tsx
|
|
1555
|
-
var
|
|
1619
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1556
1620
|
function buildItems(count, page, siblingCount) {
|
|
1557
1621
|
const total = Math.max(1, count);
|
|
1558
1622
|
const first = 1;
|
|
@@ -1567,13 +1631,13 @@ function buildItems(count, page, siblingCount) {
|
|
|
1567
1631
|
return items;
|
|
1568
1632
|
}
|
|
1569
1633
|
function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
1570
|
-
const { root: root24, pageBtnFor, ellipsis: ellipsis2, nav: nav2 } =
|
|
1634
|
+
const { root: root24, pageBtnFor, ellipsis: ellipsis2, nav: nav2 } = useStyles20();
|
|
1571
1635
|
const total = Math.max(1, count);
|
|
1572
1636
|
const current2 = Math.min(Math.max(1, page), total);
|
|
1573
1637
|
const items = buildItems(total, current2, siblingCount);
|
|
1574
1638
|
const go = (n) => onChange?.(Math.min(Math.max(1, n), total));
|
|
1575
|
-
return /* @__PURE__ */ (0,
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("nav", { className: root24, "aria-label": "Pagination", children: [
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1577
1641
|
"button",
|
|
1578
1642
|
{
|
|
1579
1643
|
type: "button",
|
|
@@ -1581,14 +1645,14 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1581
1645
|
"aria-label": "Previous page",
|
|
1582
1646
|
disabled: current2 <= 1,
|
|
1583
1647
|
onClick: () => go(current2 - 1),
|
|
1584
|
-
children: /* @__PURE__ */ (0,
|
|
1648
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronLeftIcon, { size: 18 })
|
|
1585
1649
|
}
|
|
1586
1650
|
),
|
|
1587
1651
|
items.map(
|
|
1588
1652
|
(item3, index) => item3 === "ellipsis" ? (
|
|
1589
1653
|
// biome-ignore lint/suspicious/noArrayIndexKey: ellipsis position is stable per render
|
|
1590
|
-
/* @__PURE__ */ (0,
|
|
1591
|
-
) : /* @__PURE__ */ (0,
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: ellipsis2, children: "\u2026" }, `ellipsis-${index}`)
|
|
1655
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1592
1656
|
"button",
|
|
1593
1657
|
{
|
|
1594
1658
|
type: "button",
|
|
@@ -1600,7 +1664,7 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1600
1664
|
item3
|
|
1601
1665
|
)
|
|
1602
1666
|
),
|
|
1603
|
-
/* @__PURE__ */ (0,
|
|
1667
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1604
1668
|
"button",
|
|
1605
1669
|
{
|
|
1606
1670
|
type: "button",
|
|
@@ -1608,17 +1672,17 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1608
1672
|
"aria-label": "Next page",
|
|
1609
1673
|
disabled: current2 >= total,
|
|
1610
1674
|
onClick: () => go(current2 + 1),
|
|
1611
|
-
children: /* @__PURE__ */ (0,
|
|
1675
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronRightIcon, { size: 18 })
|
|
1612
1676
|
}
|
|
1613
1677
|
)
|
|
1614
1678
|
] });
|
|
1615
1679
|
}
|
|
1616
1680
|
|
|
1617
1681
|
// src/components/stepper/index.tsx
|
|
1618
|
-
var
|
|
1682
|
+
var import_react30 = require("react");
|
|
1619
1683
|
|
|
1620
1684
|
// src/components/stepper/use-styles.ts
|
|
1621
|
-
var
|
|
1685
|
+
var import_react29 = require("react");
|
|
1622
1686
|
|
|
1623
1687
|
// src/components/stepper/use-styles.css.ts
|
|
1624
1688
|
var connector = "use-styles_connector__79pt4e7";
|
|
@@ -1631,9 +1695,9 @@ var root18 = "use-styles_root__79pt4e0";
|
|
|
1631
1695
|
var step = "use-styles_step__79pt4e1";
|
|
1632
1696
|
|
|
1633
1697
|
// src/components/stepper/use-styles.ts
|
|
1634
|
-
function
|
|
1698
|
+
function useStyles21({ className }) {
|
|
1635
1699
|
const { themeClass } = useTheme();
|
|
1636
|
-
return (0,
|
|
1700
|
+
return (0, import_react29.useMemo)(() => {
|
|
1637
1701
|
const root24 = [themeClass, root18, className].filter(Boolean).join(" ");
|
|
1638
1702
|
const markerFor = (state) => [
|
|
1639
1703
|
marker,
|
|
@@ -1646,27 +1710,27 @@ function useStyles20({ className }) {
|
|
|
1646
1710
|
}
|
|
1647
1711
|
|
|
1648
1712
|
// src/components/stepper/index.tsx
|
|
1649
|
-
var
|
|
1713
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1650
1714
|
function Stepper({ steps, active: active2 = 0, className, ...rest }) {
|
|
1651
|
-
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } =
|
|
1652
|
-
return /* @__PURE__ */ (0,
|
|
1715
|
+
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } = useStyles21({ className });
|
|
1716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: root24, ...rest, children: steps.map((s, index) => {
|
|
1653
1717
|
const state = index < active2 ? "done" : index === active2 ? "active" : "upcoming";
|
|
1654
1718
|
const isActive = state === "active";
|
|
1655
1719
|
return (
|
|
1656
1720
|
// biome-ignore lint/suspicious/noArrayIndexKey: steps are a static, ordered list with no stable id.
|
|
1657
|
-
/* @__PURE__ */ (0,
|
|
1658
|
-
/* @__PURE__ */ (0,
|
|
1659
|
-
/* @__PURE__ */ (0,
|
|
1660
|
-
/* @__PURE__ */ (0,
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react30.Fragment, { children: [
|
|
1722
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: step2, "aria-current": isActive ? "step" : void 0, children: [
|
|
1723
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: markerFor(state), children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CheckIcon, { size: 14 }) : index + 1 }),
|
|
1724
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: labelFor(isActive), children: s.label })
|
|
1661
1725
|
] }),
|
|
1662
|
-
index < steps.length - 1 && /* @__PURE__ */ (0,
|
|
1726
|
+
index < steps.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { "data-part": "connector", className: connector2 })
|
|
1663
1727
|
] }, index)
|
|
1664
1728
|
);
|
|
1665
1729
|
}) });
|
|
1666
1730
|
}
|
|
1667
1731
|
|
|
1668
1732
|
// src/components/tabs/use-styles.ts
|
|
1669
|
-
var
|
|
1733
|
+
var import_react31 = require("react");
|
|
1670
1734
|
|
|
1671
1735
|
// src/components/tabs/use-styles.css.ts
|
|
1672
1736
|
var root19 = "use-styles_root__1l4m7t40";
|
|
@@ -1674,9 +1738,9 @@ var tab = "use-styles_tab__1l4m7t41";
|
|
|
1674
1738
|
var tabActive = "use-styles_tabActive__1l4m7t42";
|
|
1675
1739
|
|
|
1676
1740
|
// src/components/tabs/use-styles.ts
|
|
1677
|
-
function
|
|
1741
|
+
function useStyles22() {
|
|
1678
1742
|
const { themeClass } = useTheme();
|
|
1679
|
-
return (0,
|
|
1743
|
+
return (0, import_react31.useMemo)(() => {
|
|
1680
1744
|
const root24 = [themeClass, root19].filter(Boolean).join(" ");
|
|
1681
1745
|
const tabClass = (active2) => [tab, active2 && tabActive].filter(Boolean).join(" ");
|
|
1682
1746
|
return { root: root24, tab, tabClass };
|
|
@@ -1684,12 +1748,12 @@ function useStyles21() {
|
|
|
1684
1748
|
}
|
|
1685
1749
|
|
|
1686
1750
|
// src/components/tabs/index.tsx
|
|
1687
|
-
var
|
|
1751
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1688
1752
|
function Tabs({ items, value, onChange }) {
|
|
1689
|
-
const { root: root24, tabClass } =
|
|
1690
|
-
return /* @__PURE__ */ (0,
|
|
1753
|
+
const { root: root24, tabClass } = useStyles22();
|
|
1754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { role: "tablist", className: root24, children: items.map((item3) => {
|
|
1691
1755
|
const active2 = item3.value === value;
|
|
1692
|
-
return /* @__PURE__ */ (0,
|
|
1756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1693
1757
|
"button",
|
|
1694
1758
|
{
|
|
1695
1759
|
type: "button",
|
|
@@ -1705,10 +1769,10 @@ function Tabs({ items, value, onChange }) {
|
|
|
1705
1769
|
}
|
|
1706
1770
|
|
|
1707
1771
|
// src/components/menu/index.tsx
|
|
1708
|
-
var
|
|
1772
|
+
var import_react33 = require("react");
|
|
1709
1773
|
|
|
1710
1774
|
// src/components/menu/use-styles.ts
|
|
1711
|
-
var
|
|
1775
|
+
var import_react32 = require("react");
|
|
1712
1776
|
|
|
1713
1777
|
// src/components/menu/use-styles.css.ts
|
|
1714
1778
|
var danger = "use-styles_danger__1uyxaj3";
|
|
@@ -1717,9 +1781,9 @@ var list = "use-styles_list__1uyxaj1 surfaces_panelSurface__6hs0fg1";
|
|
|
1717
1781
|
var wrapper3 = "use-styles_wrapper__1uyxaj0";
|
|
1718
1782
|
|
|
1719
1783
|
// src/components/menu/use-styles.ts
|
|
1720
|
-
function
|
|
1784
|
+
function useStyles23() {
|
|
1721
1785
|
const { themeClass } = useTheme();
|
|
1722
|
-
return (0,
|
|
1786
|
+
return (0, import_react32.useMemo)(
|
|
1723
1787
|
() => ({
|
|
1724
1788
|
wrapper: [themeClass, wrapper3].filter(Boolean).join(" "),
|
|
1725
1789
|
list,
|
|
@@ -1731,17 +1795,17 @@ function useStyles22() {
|
|
|
1731
1795
|
}
|
|
1732
1796
|
|
|
1733
1797
|
// src/components/menu/index.tsx
|
|
1734
|
-
var
|
|
1798
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1735
1799
|
function assignRef(ref, value) {
|
|
1736
1800
|
if (typeof ref === "function") ref(value);
|
|
1737
1801
|
else if (ref) ref.current = value;
|
|
1738
1802
|
}
|
|
1739
1803
|
function Menu({ trigger: trigger2, items }) {
|
|
1740
|
-
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } =
|
|
1741
|
-
const [open, setOpen] = (0,
|
|
1742
|
-
const rootRef = (0,
|
|
1743
|
-
const listRef = (0,
|
|
1744
|
-
const triggerRef = (0,
|
|
1804
|
+
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } = useStyles23();
|
|
1805
|
+
const [open, setOpen] = (0, import_react33.useState)(false);
|
|
1806
|
+
const rootRef = (0, import_react33.useRef)(null);
|
|
1807
|
+
const listRef = (0, import_react33.useRef)(null);
|
|
1808
|
+
const triggerRef = (0, import_react33.useRef)(null);
|
|
1745
1809
|
const getMenuItems = () => Array.from(listRef.current?.querySelectorAll('[role="menuitem"]') ?? []);
|
|
1746
1810
|
const focusItemAt = (index) => {
|
|
1747
1811
|
const menuItems = getMenuItems();
|
|
@@ -1753,7 +1817,7 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1753
1817
|
setOpen(false);
|
|
1754
1818
|
triggerRef.current?.focus();
|
|
1755
1819
|
};
|
|
1756
|
-
(0,
|
|
1820
|
+
(0, import_react33.useEffect)(() => {
|
|
1757
1821
|
if (!open) return;
|
|
1758
1822
|
listRef.current?.querySelector('[role="menuitem"]')?.focus();
|
|
1759
1823
|
const onDocMouseDown = (event) => {
|
|
@@ -1809,7 +1873,7 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1809
1873
|
triggerRef.current = node;
|
|
1810
1874
|
assignRef(consumerRef, node);
|
|
1811
1875
|
};
|
|
1812
|
-
const clonedTrigger = (0,
|
|
1876
|
+
const clonedTrigger = (0, import_react33.cloneElement)(trigger2, {
|
|
1813
1877
|
ref: mergedTriggerRef,
|
|
1814
1878
|
"aria-haspopup": "menu",
|
|
1815
1879
|
"aria-expanded": open,
|
|
@@ -1818,9 +1882,9 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1818
1882
|
setOpen((prev) => !prev);
|
|
1819
1883
|
}
|
|
1820
1884
|
});
|
|
1821
|
-
return /* @__PURE__ */ (0,
|
|
1885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { ref: rootRef, className: wrapper4, children: [
|
|
1822
1886
|
clonedTrigger,
|
|
1823
|
-
open && /* @__PURE__ */ (0,
|
|
1887
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref: listRef, role: "menu", className: list2, onKeyDown: onMenuKeyDown, children: items.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1824
1888
|
"button",
|
|
1825
1889
|
{
|
|
1826
1890
|
type: "button",
|
|
@@ -1839,28 +1903,26 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1839
1903
|
}
|
|
1840
1904
|
|
|
1841
1905
|
// src/components/dialog/index.tsx
|
|
1842
|
-
var
|
|
1906
|
+
var import_react35 = require("react");
|
|
1843
1907
|
var import_react_dom = require("react-dom");
|
|
1844
1908
|
|
|
1845
1909
|
// src/components/dialog/use-styles.ts
|
|
1846
|
-
var
|
|
1910
|
+
var import_react34 = require("react");
|
|
1847
1911
|
|
|
1848
1912
|
// src/components/dialog/use-styles.css.ts
|
|
1849
|
-
var actions = "use-
|
|
1850
|
-
var
|
|
1913
|
+
var actions = "use-styles_actions__5tstu83";
|
|
1914
|
+
var body2 = "use-styles_body__5tstu82";
|
|
1851
1915
|
var overlay = "use-styles_overlay__5tstu80";
|
|
1852
1916
|
var surface = "use-styles_surface__5tstu81";
|
|
1853
|
-
var titleText2 = "use-styles_titleText__5tstu82";
|
|
1854
1917
|
|
|
1855
1918
|
// src/components/dialog/use-styles.ts
|
|
1856
|
-
function
|
|
1919
|
+
function useStyles24() {
|
|
1857
1920
|
const { themeClass } = useTheme();
|
|
1858
|
-
return (0,
|
|
1921
|
+
return (0, import_react34.useMemo)(
|
|
1859
1922
|
() => ({
|
|
1860
1923
|
overlay: [themeClass, overlay].filter(Boolean).join(" "),
|
|
1861
1924
|
surface,
|
|
1862
|
-
|
|
1863
|
-
body: body3,
|
|
1925
|
+
body: body2,
|
|
1864
1926
|
actions
|
|
1865
1927
|
}),
|
|
1866
1928
|
[themeClass]
|
|
@@ -1868,15 +1930,15 @@ function useStyles23() {
|
|
|
1868
1930
|
}
|
|
1869
1931
|
|
|
1870
1932
|
// src/components/dialog/index.tsx
|
|
1871
|
-
var
|
|
1933
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1872
1934
|
var FOCUSABLE = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1873
1935
|
function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
1874
|
-
const { overlay: overlay2, surface: surface2,
|
|
1875
|
-
const surfaceRef = (0,
|
|
1876
|
-
const previouslyFocused = (0,
|
|
1877
|
-
const generatedId = (0,
|
|
1936
|
+
const { overlay: overlay2, surface: surface2, body: body3, actions: actionsClass } = useStyles24();
|
|
1937
|
+
const surfaceRef = (0, import_react35.useRef)(null);
|
|
1938
|
+
const previouslyFocused = (0, import_react35.useRef)(null);
|
|
1939
|
+
const generatedId = (0, import_react35.useId)();
|
|
1878
1940
|
const titleId = title != null ? generatedId : void 0;
|
|
1879
|
-
(0,
|
|
1941
|
+
(0, import_react35.useEffect)(() => {
|
|
1880
1942
|
if (!open) return;
|
|
1881
1943
|
const onKeyDown = (event) => {
|
|
1882
1944
|
if (event.key === "Escape") onClose();
|
|
@@ -1884,13 +1946,13 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1884
1946
|
document.addEventListener("keydown", onKeyDown);
|
|
1885
1947
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
1886
1948
|
}, [open, onClose]);
|
|
1887
|
-
(0,
|
|
1949
|
+
(0, import_react35.useEffect)(() => {
|
|
1888
1950
|
if (!open) return;
|
|
1889
1951
|
previouslyFocused.current = document.activeElement;
|
|
1890
1952
|
surfaceRef.current?.focus();
|
|
1891
1953
|
return () => previouslyFocused.current?.focus?.();
|
|
1892
1954
|
}, [open]);
|
|
1893
|
-
(0,
|
|
1955
|
+
(0, import_react35.useEffect)(() => {
|
|
1894
1956
|
if (!open) return;
|
|
1895
1957
|
const previousOverflow = document.body.style.overflow;
|
|
1896
1958
|
document.body.style.overflow = "hidden";
|
|
@@ -1914,6 +1976,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1914
1976
|
}
|
|
1915
1977
|
const first = focusable[0];
|
|
1916
1978
|
const last = focusable[focusable.length - 1];
|
|
1979
|
+
if (!first || !last) return;
|
|
1917
1980
|
const active2 = document.activeElement;
|
|
1918
1981
|
if (event.shiftKey) {
|
|
1919
1982
|
if (active2 === first || active2 === surfaceEl) {
|
|
@@ -1927,7 +1990,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1927
1990
|
};
|
|
1928
1991
|
return (0, import_react_dom.createPortal)(
|
|
1929
1992
|
// biome-ignore lint/a11y/useKeyWithClickEvents: ESC handled by a document keydown listener.
|
|
1930
|
-
/* @__PURE__ */ (0,
|
|
1993
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: overlay2, "data-testid": "dialog-overlay", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
1931
1994
|
"div",
|
|
1932
1995
|
{
|
|
1933
1996
|
ref: surfaceRef,
|
|
@@ -1939,9 +2002,9 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1939
2002
|
onClick: stop,
|
|
1940
2003
|
onKeyDown: onSurfaceKeyDown,
|
|
1941
2004
|
children: [
|
|
1942
|
-
title != null && /* @__PURE__ */ (0,
|
|
1943
|
-
children != null && /* @__PURE__ */ (0,
|
|
1944
|
-
actions3 != null && /* @__PURE__ */ (0,
|
|
2005
|
+
title != null && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typography, { variant: "h3", as: "h2", id: titleId, children: title }),
|
|
2006
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: body3, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typography, { variant: "body", color: "fg2", children }) }),
|
|
2007
|
+
actions3 != null && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: actionsClass, children: actions3 })
|
|
1945
2008
|
]
|
|
1946
2009
|
}
|
|
1947
2010
|
) }),
|
|
@@ -1953,7 +2016,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1953
2016
|
var import_react_dom2 = require("react-dom");
|
|
1954
2017
|
|
|
1955
2018
|
// src/components/snackbar/use-styles.ts
|
|
1956
|
-
var
|
|
2019
|
+
var import_react36 = require("react");
|
|
1957
2020
|
|
|
1958
2021
|
// src/components/snackbar/use-styles.css.ts
|
|
1959
2022
|
var closeBtn = "use-styles_closeBtn__ihzsep2";
|
|
@@ -1961,9 +2024,9 @@ var message = "use-styles_message__ihzsep1";
|
|
|
1961
2024
|
var root20 = "use-styles_root__ihzsep0 surfaces_inkySurface__6hs0fg2";
|
|
1962
2025
|
|
|
1963
2026
|
// src/components/snackbar/use-styles.ts
|
|
1964
|
-
function
|
|
2027
|
+
function useStyles25() {
|
|
1965
2028
|
const { themeClass } = useTheme();
|
|
1966
|
-
return (0,
|
|
2029
|
+
return (0, import_react36.useMemo)(
|
|
1967
2030
|
() => ({
|
|
1968
2031
|
root: [themeClass, root20].filter(Boolean).join(" "),
|
|
1969
2032
|
message,
|
|
@@ -1974,22 +2037,22 @@ function useStyles24() {
|
|
|
1974
2037
|
}
|
|
1975
2038
|
|
|
1976
2039
|
// src/components/snackbar/index.tsx
|
|
1977
|
-
var
|
|
2040
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1978
2041
|
function Snackbar({ open, message: message2, action, onClose }) {
|
|
1979
|
-
const { root: root24, message: messageClass, closeBtn: closeBtn2 } =
|
|
2042
|
+
const { root: root24, message: messageClass, closeBtn: closeBtn2 } = useStyles25();
|
|
1980
2043
|
if (!open || typeof document === "undefined") return null;
|
|
1981
2044
|
return (0, import_react_dom2.createPortal)(
|
|
1982
|
-
/* @__PURE__ */ (0,
|
|
1983
|
-
/* @__PURE__ */ (0,
|
|
2045
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { role: "status", className: root24, children: [
|
|
2046
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: messageClass, children: message2 }),
|
|
1984
2047
|
action,
|
|
1985
|
-
onClose && /* @__PURE__ */ (0,
|
|
2048
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("button", { type: "button", "aria-label": "Close", className: closeBtn2, onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(XIcon, { size: 18 }) })
|
|
1986
2049
|
] }),
|
|
1987
2050
|
document.body
|
|
1988
2051
|
);
|
|
1989
2052
|
}
|
|
1990
2053
|
|
|
1991
2054
|
// src/components/table/use-styles.ts
|
|
1992
|
-
var
|
|
2055
|
+
var import_react37 = require("react");
|
|
1993
2056
|
|
|
1994
2057
|
// src/components/table/use-styles.css.ts
|
|
1995
2058
|
var alignRight = "use-styles_alignRight__1n2cz6i3";
|
|
@@ -1998,9 +2061,9 @@ var td = "use-styles_td__1n2cz6i2";
|
|
|
1998
2061
|
var th = "use-styles_th__1n2cz6i1";
|
|
1999
2062
|
|
|
2000
2063
|
// src/components/table/use-styles.ts
|
|
2001
|
-
function
|
|
2064
|
+
function useStyles26({ className }) {
|
|
2002
2065
|
const { themeClass } = useTheme();
|
|
2003
|
-
const root24 = (0,
|
|
2066
|
+
const root24 = (0, import_react37.useMemo)(
|
|
2004
2067
|
() => [themeClass, root21, className].filter(Boolean).join(" "),
|
|
2005
2068
|
[themeClass, className]
|
|
2006
2069
|
);
|
|
@@ -2008,7 +2071,7 @@ function useStyles25({ className }) {
|
|
|
2008
2071
|
}
|
|
2009
2072
|
|
|
2010
2073
|
// src/components/table/index.tsx
|
|
2011
|
-
var
|
|
2074
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2012
2075
|
function Table({
|
|
2013
2076
|
columns,
|
|
2014
2077
|
rows,
|
|
@@ -2016,17 +2079,17 @@ function Table({
|
|
|
2016
2079
|
className,
|
|
2017
2080
|
...rest
|
|
2018
2081
|
}) {
|
|
2019
|
-
const { root: root24, th: th2, td: td2, alignRight: alignRight2 } =
|
|
2082
|
+
const { root: root24, th: th2, td: td2, alignRight: alignRight2 } = useStyles26({ className });
|
|
2020
2083
|
const headClass = (column) => column.align === "right" ? `${th2} ${alignRight2}` : th2;
|
|
2021
2084
|
const cellClass = (column) => column.align === "right" ? `${td2} ${alignRight2}` : td2;
|
|
2022
|
-
return /* @__PURE__ */ (0,
|
|
2023
|
-
/* @__PURE__ */ (0,
|
|
2024
|
-
/* @__PURE__ */ (0,
|
|
2085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("table", { className: root24, ...rest, children: [
|
|
2086
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("tr", { children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("th", { className: headClass(column), children: column.header }, column.key)) }) }),
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("tbody", { children: rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("tr", { children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("td", { className: cellClass(column), children: column.render ? column.render(row) : String(row[column.key]) }, column.key)) }, getRowKey ? getRowKey(row, index) : index)) })
|
|
2025
2088
|
] });
|
|
2026
2089
|
}
|
|
2027
2090
|
|
|
2028
2091
|
// src/components/app-bar/use-styles.ts
|
|
2029
|
-
var
|
|
2092
|
+
var import_react38 = require("react");
|
|
2030
2093
|
|
|
2031
2094
|
// src/components/app-bar/use-styles.css.ts
|
|
2032
2095
|
var actions2 = "use-styles_actions__1h133nh2";
|
|
@@ -2034,9 +2097,9 @@ var brand = "use-styles_brand__1h133nh1";
|
|
|
2034
2097
|
var root22 = "use-styles_root__1h133nh0";
|
|
2035
2098
|
|
|
2036
2099
|
// src/components/app-bar/use-styles.ts
|
|
2037
|
-
function
|
|
2100
|
+
function useStyles27({ className }) {
|
|
2038
2101
|
const { themeClass } = useTheme();
|
|
2039
|
-
const root24 = (0,
|
|
2102
|
+
const root24 = (0, import_react38.useMemo)(
|
|
2040
2103
|
() => [themeClass, root22, className].filter(Boolean).join(" "),
|
|
2041
2104
|
[themeClass, className]
|
|
2042
2105
|
);
|
|
@@ -2044,18 +2107,18 @@ function useStyles26({ className }) {
|
|
|
2044
2107
|
}
|
|
2045
2108
|
|
|
2046
2109
|
// src/components/app-bar/index.tsx
|
|
2047
|
-
var
|
|
2110
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2048
2111
|
function AppBar({ brand: brand2, actions: actions3, className, children, ...rest }) {
|
|
2049
|
-
const styles =
|
|
2050
|
-
return /* @__PURE__ */ (0,
|
|
2051
|
-
brand2 !== void 0 ? /* @__PURE__ */ (0,
|
|
2112
|
+
const styles = useStyles27({ className });
|
|
2113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("header", { className: styles.root, ...rest, children: [
|
|
2114
|
+
brand2 !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: styles.brand, children: brand2 }) : null,
|
|
2052
2115
|
children,
|
|
2053
|
-
actions3 !== void 0 ? /* @__PURE__ */ (0,
|
|
2116
|
+
actions3 !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: styles.actions, children: actions3 }) : null
|
|
2054
2117
|
] });
|
|
2055
2118
|
}
|
|
2056
2119
|
|
|
2057
2120
|
// src/components/list-item/use-styles.ts
|
|
2058
|
-
var
|
|
2121
|
+
var import_react39 = require("react");
|
|
2059
2122
|
|
|
2060
2123
|
// src/components/list-item/use-styles.css.ts
|
|
2061
2124
|
var content2 = "use-styles_content__kbreq13";
|
|
@@ -2065,9 +2128,12 @@ var selected2 = "use-styles_selected__kbreq11";
|
|
|
2065
2128
|
var trailing = "use-styles_trailing__kbreq14";
|
|
2066
2129
|
|
|
2067
2130
|
// src/components/list-item/use-styles.ts
|
|
2068
|
-
function
|
|
2131
|
+
function useStyles28({
|
|
2132
|
+
selected: selected3,
|
|
2133
|
+
className
|
|
2134
|
+
}) {
|
|
2069
2135
|
const { themeClass } = useTheme();
|
|
2070
|
-
const root24 = (0,
|
|
2136
|
+
const root24 = (0, import_react39.useMemo)(
|
|
2071
2137
|
() => [themeClass, root23, selected3 && selected2, className].filter(Boolean).join(" "),
|
|
2072
2138
|
[themeClass, selected3, className]
|
|
2073
2139
|
);
|
|
@@ -2075,7 +2141,7 @@ function useStyles27({ selected: selected3, className }) {
|
|
|
2075
2141
|
}
|
|
2076
2142
|
|
|
2077
2143
|
// src/components/list-item/index.tsx
|
|
2078
|
-
var
|
|
2144
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2079
2145
|
function ListItem({
|
|
2080
2146
|
leading: leading2,
|
|
2081
2147
|
trailing: trailing2,
|
|
@@ -2084,18 +2150,18 @@ function ListItem({
|
|
|
2084
2150
|
children,
|
|
2085
2151
|
...rest
|
|
2086
2152
|
}) {
|
|
2087
|
-
const styles =
|
|
2088
|
-
return /* @__PURE__ */ (0,
|
|
2089
|
-
leading2 != null && /* @__PURE__ */ (0,
|
|
2090
|
-
/* @__PURE__ */ (0,
|
|
2091
|
-
trailing2 != null && /* @__PURE__ */ (0,
|
|
2153
|
+
const styles = useStyles28({ selected: selected3, className });
|
|
2154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: styles.root, ...rest, children: [
|
|
2155
|
+
leading2 != null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: styles.leading, children: leading2 }),
|
|
2156
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: styles.content, children }),
|
|
2157
|
+
trailing2 != null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: styles.trailing, children: trailing2 })
|
|
2092
2158
|
] });
|
|
2093
2159
|
}
|
|
2094
2160
|
|
|
2095
2161
|
// src/components/icons/chevron-up/index.tsx
|
|
2096
|
-
var
|
|
2162
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2097
2163
|
function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2098
|
-
return /* @__PURE__ */ (0,
|
|
2164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2099
2165
|
"svg",
|
|
2100
2166
|
{
|
|
2101
2167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2109,15 +2175,15 @@ function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2109
2175
|
strokeLinejoin: "round",
|
|
2110
2176
|
"aria-hidden": "true",
|
|
2111
2177
|
...rest,
|
|
2112
|
-
children: /* @__PURE__ */ (0,
|
|
2178
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "m18 15-6-6-6 6" })
|
|
2113
2179
|
}
|
|
2114
2180
|
);
|
|
2115
2181
|
}
|
|
2116
2182
|
|
|
2117
2183
|
// src/components/icons/search/index.tsx
|
|
2118
|
-
var
|
|
2184
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2119
2185
|
function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2120
|
-
return /* @__PURE__ */ (0,
|
|
2186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2121
2187
|
"svg",
|
|
2122
2188
|
{
|
|
2123
2189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2132,17 +2198,17 @@ function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2132
2198
|
"aria-hidden": "true",
|
|
2133
2199
|
...rest,
|
|
2134
2200
|
children: [
|
|
2135
|
-
/* @__PURE__ */ (0,
|
|
2136
|
-
/* @__PURE__ */ (0,
|
|
2201
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "m21 21-4.3-4.3" })
|
|
2137
2203
|
]
|
|
2138
2204
|
}
|
|
2139
2205
|
);
|
|
2140
2206
|
}
|
|
2141
2207
|
|
|
2142
2208
|
// src/components/icons/plus/index.tsx
|
|
2143
|
-
var
|
|
2209
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2144
2210
|
function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2145
|
-
return /* @__PURE__ */ (0,
|
|
2211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
2146
2212
|
"svg",
|
|
2147
2213
|
{
|
|
2148
2214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2157,17 +2223,17 @@ function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2157
2223
|
"aria-hidden": "true",
|
|
2158
2224
|
...rest,
|
|
2159
2225
|
children: [
|
|
2160
|
-
/* @__PURE__ */ (0,
|
|
2161
|
-
/* @__PURE__ */ (0,
|
|
2226
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M5 12h14" }),
|
|
2227
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M12 5v14" })
|
|
2162
2228
|
]
|
|
2163
2229
|
}
|
|
2164
2230
|
);
|
|
2165
2231
|
}
|
|
2166
2232
|
|
|
2167
2233
|
// src/components/icons/minus/index.tsx
|
|
2168
|
-
var
|
|
2234
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2169
2235
|
function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2170
|
-
return /* @__PURE__ */ (0,
|
|
2236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2171
2237
|
"svg",
|
|
2172
2238
|
{
|
|
2173
2239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2181,15 +2247,15 @@ function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2181
2247
|
strokeLinejoin: "round",
|
|
2182
2248
|
"aria-hidden": "true",
|
|
2183
2249
|
...rest,
|
|
2184
|
-
children: /* @__PURE__ */ (0,
|
|
2250
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "M5 12h14" })
|
|
2185
2251
|
}
|
|
2186
2252
|
);
|
|
2187
2253
|
}
|
|
2188
2254
|
|
|
2189
2255
|
// src/components/icons/more-horizontal/index.tsx
|
|
2190
|
-
var
|
|
2256
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2191
2257
|
function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2192
|
-
return /* @__PURE__ */ (0,
|
|
2258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2193
2259
|
"svg",
|
|
2194
2260
|
{
|
|
2195
2261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2204,16 +2270,13 @@ function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2204
2270
|
"aria-hidden": "true",
|
|
2205
2271
|
...rest,
|
|
2206
2272
|
children: [
|
|
2207
|
-
/* @__PURE__ */ (0,
|
|
2208
|
-
/* @__PURE__ */ (0,
|
|
2209
|
-
/* @__PURE__ */ (0,
|
|
2273
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2275
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
|
2210
2276
|
]
|
|
2211
2277
|
}
|
|
2212
2278
|
);
|
|
2213
2279
|
}
|
|
2214
|
-
|
|
2215
|
-
// src/theme/typography.css.ts
|
|
2216
|
-
var text = { eyebrow: "typography_text_eyebrow__1wmlzy0", display: "typography_text_display__1wmlzy1", h1: "typography_text_h1__1wmlzy2", h2: "typography_text_h2__1wmlzy3", h3: "typography_text_h3__1wmlzy4", h4: "typography_text_h4__1wmlzy5", body: "typography_text_body__1wmlzy6", lead: "typography_text_lead__1wmlzy7", small: "typography_text_small__1wmlzy8", caption: "typography_text_caption__1wmlzy9", code: "typography_text_code__1wmlzya", blackletter: "typography_text_blackletter__1wmlzyb" };
|
|
2217
2280
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2218
2281
|
0 && (module.exports = {
|
|
2219
2282
|
Accordion,
|
|
@@ -2259,6 +2322,7 @@ var text = { eyebrow: "typography_text_eyebrow__1wmlzy0", display: "typography_t
|
|
|
2259
2322
|
ThemeProvider,
|
|
2260
2323
|
Tooltip,
|
|
2261
2324
|
TriangleAlertIcon,
|
|
2325
|
+
Typography,
|
|
2262
2326
|
XIcon,
|
|
2263
2327
|
colorVars,
|
|
2264
2328
|
modeNames,
|