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