@mechane-ai/elements 0.10.0 → 0.11.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/ai.js +56 -40
- package/dist/{categorical-values-DLRE4EEW.js → categorical-values-FYc43JCa.js} +2 -2
- package/dist/{chart-frame-et6f6Vhg.js → chart-frame-Bczk5sWj.js} +1 -1
- package/dist/{chart-input-CdLkFomi.js → chart-input-CbzVN76m.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +15 -14
- package/dist/charts.js +1 -1
- package/dist/{code-block-D77maJBB.js → code-block-B7xzM3tD.js} +1 -1
- package/dist/collections.js +71 -38
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-BpSZeTNK.js → content-link-CatGOrbo.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +120 -50
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/ai/src/conversation.d.ts +14 -2
- package/dist/packages/ai/src/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -2
- package/dist/packages/collections/src/index.d.ts +1 -0
- package/dist/packages/collections/src/inspector.d.ts +6 -3
- package/dist/packages/core/src/agent-avatar-glyphs.d.ts +1 -1
- package/dist/{pierre-tree-BFxEuxwb.js → pierre-tree-D47uA7lb.js} +2 -2
- package/dist/{src-Be7NLG8c.js → src-C_heP5kL.js} +82 -60
- package/dist/{src-sU9b0oZW.js → src-D05isEh_.js} +739 -255
- package/dist/{src-CBspCKfO.js → src-DXsGTJgv.js} +1 -1
- package/dist/tokens.js +24 -24
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +48 -48
|
@@ -231,7 +231,7 @@ function k({ variant: t = "outline", tone: r = "neutral", size: i = "sm", pendin
|
|
|
231
231
|
})
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function ee({ size: e = "sm", children: t, xstyle: n, ...r }) {
|
|
235
235
|
return /* @__PURE__ */ d(k, {
|
|
236
236
|
...r,
|
|
237
237
|
size: e,
|
|
@@ -243,7 +243,7 @@ function A({ size: e = "sm", children: t, xstyle: n, ...r }) {
|
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function A({ tone: t = "neutral", pending: r = !1, pendingLabel: i, children: o, className: c, style: l, xstyle: u, disabled: f = !1, ...p }) {
|
|
247
247
|
let m = s(), h = a.props(C.text, D[t], u);
|
|
248
248
|
return /* @__PURE__ */ d(n, {
|
|
249
249
|
...p,
|
|
@@ -313,16 +313,16 @@ var N = {
|
|
|
313
313
|
kZKoxP: "x1vqgdyp",
|
|
314
314
|
$$css: !0
|
|
315
315
|
}
|
|
316
|
-
},
|
|
316
|
+
}, P = {
|
|
317
317
|
sm: N.small,
|
|
318
318
|
md: N.medium,
|
|
319
319
|
lg: N.large
|
|
320
320
|
};
|
|
321
|
-
function
|
|
321
|
+
function te({ label: e, fallback: t, src: n, size: r = "md" }) {
|
|
322
322
|
return /* @__PURE__ */ f(p.Root, {
|
|
323
323
|
role: "img",
|
|
324
324
|
"aria-label": e,
|
|
325
|
-
...a.props(N.avatar,
|
|
325
|
+
...a.props(N.avatar, P[r]),
|
|
326
326
|
children: [n !== void 0 && /* @__PURE__ */ d(p.Image, {
|
|
327
327
|
src: n,
|
|
328
328
|
alt: "",
|
|
@@ -334,199 +334,658 @@ function ne({ label: e, fallback: t, src: n, size: r = "md" }) {
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
// packages/core/src/agent-avatar-glyphs.tsx
|
|
337
|
-
var
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
337
|
+
var F = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel.compass.grid.steps.chevron.wave.ripple.arch.bridge.peak.zigzag.helix.kite.cube.prism.frame.brackets.diamond.hexagon.signal.crest.bolt.link.split.aster.portal".split(".")), ne = Object.freeze([
|
|
338
|
+
...F,
|
|
339
|
+
"rosette",
|
|
340
|
+
"blossom",
|
|
341
|
+
"pinwheel",
|
|
342
|
+
"lantern",
|
|
343
|
+
"lattice",
|
|
344
|
+
"mosaic",
|
|
345
|
+
"dahlia",
|
|
346
|
+
"lotus",
|
|
347
|
+
"mandala",
|
|
348
|
+
"braid",
|
|
349
|
+
"gem",
|
|
350
|
+
"eclipse",
|
|
351
|
+
"gyre",
|
|
352
|
+
"crossweave",
|
|
353
|
+
"tessera",
|
|
354
|
+
"triad"
|
|
355
|
+
]);
|
|
356
|
+
function I(e, t) {
|
|
357
|
+
return e.map((e) => /* @__PURE__ */ d("g", {
|
|
358
|
+
transform: `rotate(${e} 12 12)`,
|
|
359
|
+
children: t
|
|
360
|
+
}, e));
|
|
361
|
+
}
|
|
362
|
+
var L = {
|
|
363
|
+
spark: I([
|
|
364
|
+
0,
|
|
365
|
+
45,
|
|
366
|
+
90,
|
|
367
|
+
135,
|
|
368
|
+
180,
|
|
369
|
+
225,
|
|
370
|
+
270,
|
|
371
|
+
315
|
|
372
|
+
], /* @__PURE__ */ d("path", { d: "m12 2 5.4 7-5.4 6.2-3.4-6.2Z" })),
|
|
373
|
+
facet: I([
|
|
374
|
+
0,
|
|
375
|
+
72,
|
|
376
|
+
144,
|
|
377
|
+
216,
|
|
378
|
+
288
|
|
379
|
+
], /* @__PURE__ */ d("path", { d: "m12 2 6 7-6 5-4-5Z" })),
|
|
380
|
+
orbit: /* @__PURE__ */ f(u, { children: [I([
|
|
381
|
+
0,
|
|
382
|
+
60,
|
|
383
|
+
120
|
|
384
|
+
], /* @__PURE__ */ d("ellipse", {
|
|
345
385
|
cx: "12",
|
|
346
386
|
cy: "12",
|
|
347
|
-
rx: "
|
|
348
|
-
ry: "5",
|
|
349
|
-
|
|
350
|
-
}), /* @__PURE__ */ d("circle", {
|
|
387
|
+
rx: "9.2",
|
|
388
|
+
ry: "4.5",
|
|
389
|
+
fillOpacity: ".4"
|
|
390
|
+
})), /* @__PURE__ */ d("circle", {
|
|
351
391
|
cx: "12",
|
|
352
392
|
cy: "12",
|
|
353
|
-
r: "
|
|
354
|
-
|
|
355
|
-
|
|
393
|
+
r: "2.8",
|
|
394
|
+
fillOpacity: ".75"
|
|
395
|
+
})] }),
|
|
396
|
+
loop: I([
|
|
397
|
+
0,
|
|
398
|
+
120,
|
|
399
|
+
240
|
|
400
|
+
], /* @__PURE__ */ d("path", { d: "M12 12C3 14 1 8 5 4c4-4 10-1 10 4 0 3-2 5-5 6 3-3 2-6 0-7-3-1-5 2-2 4Z" })),
|
|
401
|
+
clover: I([
|
|
402
|
+
0,
|
|
403
|
+
90,
|
|
404
|
+
180,
|
|
405
|
+
270
|
|
406
|
+
], /* @__PURE__ */ d("circle", {
|
|
407
|
+
cx: "12",
|
|
408
|
+
cy: "7.4",
|
|
409
|
+
r: "5.3"
|
|
410
|
+
})),
|
|
411
|
+
petal: I([
|
|
412
|
+
0,
|
|
413
|
+
72,
|
|
414
|
+
144,
|
|
415
|
+
216,
|
|
416
|
+
288
|
|
417
|
+
], /* @__PURE__ */ d("path", { d: "M12 2c5 1 6 6 0 10-6-4-5-9 0-10Z" })),
|
|
418
|
+
wheel: /* @__PURE__ */ f(u, { children: [I([
|
|
419
|
+
0,
|
|
420
|
+
45,
|
|
421
|
+
90,
|
|
422
|
+
135,
|
|
423
|
+
180,
|
|
424
|
+
225,
|
|
425
|
+
270,
|
|
426
|
+
315
|
|
427
|
+
], /* @__PURE__ */ d("ellipse", {
|
|
428
|
+
cx: "12",
|
|
429
|
+
cy: "6.7",
|
|
430
|
+
rx: "3.2",
|
|
431
|
+
ry: "4.6"
|
|
432
|
+
})), /* @__PURE__ */ d("circle", {
|
|
433
|
+
cx: "12",
|
|
434
|
+
cy: "12",
|
|
435
|
+
r: "3.2",
|
|
436
|
+
fillOpacity: ".65"
|
|
356
437
|
})] }),
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
438
|
+
compass: I([
|
|
439
|
+
0,
|
|
440
|
+
45,
|
|
441
|
+
90,
|
|
442
|
+
135,
|
|
443
|
+
180,
|
|
444
|
+
225,
|
|
445
|
+
270,
|
|
446
|
+
315
|
|
447
|
+
], /* @__PURE__ */ d("path", { d: "m12 1.5 3 7-3 3.5-3-3.5Z" })),
|
|
448
|
+
grid: /* @__PURE__ */ f(u, { children: [
|
|
449
|
+
I([
|
|
450
|
+
0,
|
|
451
|
+
90,
|
|
452
|
+
180,
|
|
453
|
+
270
|
|
454
|
+
], /* @__PURE__ */ d("circle", {
|
|
455
|
+
cx: "6.8",
|
|
456
|
+
cy: "6.8",
|
|
457
|
+
r: "3.5"
|
|
458
|
+
})),
|
|
459
|
+
I([
|
|
460
|
+
0,
|
|
461
|
+
90,
|
|
462
|
+
180,
|
|
463
|
+
270
|
|
464
|
+
], /* @__PURE__ */ d("circle", {
|
|
465
|
+
cx: "12",
|
|
466
|
+
cy: "4.1",
|
|
467
|
+
r: "1.8",
|
|
468
|
+
fillOpacity: ".5"
|
|
469
|
+
})),
|
|
470
|
+
/* @__PURE__ */ d("rect", {
|
|
471
|
+
x: "7.5",
|
|
472
|
+
y: "7.5",
|
|
473
|
+
width: "9",
|
|
474
|
+
height: "9",
|
|
475
|
+
rx: "2",
|
|
476
|
+
transform: "rotate(45 12 12)"
|
|
477
|
+
})
|
|
478
|
+
] }),
|
|
479
|
+
steps: I([
|
|
480
|
+
0,
|
|
481
|
+
90,
|
|
482
|
+
180,
|
|
483
|
+
270
|
|
484
|
+
], /* @__PURE__ */ d("path", { d: "M4 3h9v5H9v5H4Z" })),
|
|
485
|
+
chevron: I([
|
|
486
|
+
0,
|
|
487
|
+
90,
|
|
488
|
+
180,
|
|
489
|
+
270
|
|
490
|
+
], /* @__PURE__ */ d("path", {
|
|
491
|
+
d: "m3 8 9-6 9 6-9 6Z",
|
|
492
|
+
fillOpacity: ".48"
|
|
493
|
+
})),
|
|
494
|
+
wave: /* @__PURE__ */ f(u, { children: [
|
|
495
|
+
/* @__PURE__ */ d("path", { d: "M2 6c6-8 12 8 20 0v5C14 19 8 3 2 11Z" }),
|
|
496
|
+
/* @__PURE__ */ d("path", { d: "M2 11c6-8 12 8 20 0v5c-8 8-14-8-20 0Z" }),
|
|
497
|
+
/* @__PURE__ */ d("path", {
|
|
498
|
+
d: "M2 16c6-8 12 8 20 0v3c-8 8-14-8-20 0Z",
|
|
499
|
+
fillOpacity: ".4"
|
|
500
|
+
})
|
|
501
|
+
] }),
|
|
502
|
+
ripple: /* @__PURE__ */ f(u, { children: [
|
|
366
503
|
/* @__PURE__ */ d("circle", {
|
|
367
504
|
cx: "12",
|
|
368
|
-
cy: "
|
|
369
|
-
r: "
|
|
505
|
+
cy: "11",
|
|
506
|
+
r: "9.3",
|
|
507
|
+
fillOpacity: ".45"
|
|
370
508
|
}),
|
|
371
|
-
/* @__PURE__ */ d("path", { d: "M12 3.5V9m0 6v5.5M3.5 12H9m6 0h5.5M6 6l4 4m4 4 4 4M6 18l4-4m4-4 4-4" }),
|
|
372
509
|
/* @__PURE__ */ d("circle", {
|
|
373
510
|
cx: "12",
|
|
374
|
-
cy: "
|
|
375
|
-
r: "
|
|
376
|
-
|
|
377
|
-
|
|
511
|
+
cy: "13.5",
|
|
512
|
+
r: "6.8",
|
|
513
|
+
fillOpacity: ".5"
|
|
514
|
+
}),
|
|
515
|
+
/* @__PURE__ */ d("circle", {
|
|
516
|
+
cx: "12",
|
|
517
|
+
cy: "16",
|
|
518
|
+
r: "4.3",
|
|
519
|
+
fillOpacity: ".6"
|
|
378
520
|
})
|
|
379
521
|
] }),
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
522
|
+
arch: /* @__PURE__ */ f(u, { children: [
|
|
523
|
+
/* @__PURE__ */ d("path", {
|
|
524
|
+
d: "M2.7 20V11a9.3 9.3 0 0 1 18.6 0v9Z",
|
|
525
|
+
fillOpacity: ".4"
|
|
526
|
+
}),
|
|
527
|
+
/* @__PURE__ */ d("path", {
|
|
528
|
+
d: "M6 20v-7a6 6 0 0 1 12 0v7Z",
|
|
529
|
+
fillOpacity: ".5"
|
|
530
|
+
}),
|
|
531
|
+
/* @__PURE__ */ d("path", { d: "M9.2 20v-4.5a2.8 2.8 0 0 1 5.6 0V20Z" })
|
|
532
|
+
] }),
|
|
533
|
+
bridge: /* @__PURE__ */ f(u, { children: [
|
|
386
534
|
/* @__PURE__ */ d("rect", {
|
|
387
535
|
x: "3",
|
|
388
|
-
y: "
|
|
389
|
-
width: "
|
|
390
|
-
height: "
|
|
391
|
-
rx: "
|
|
392
|
-
fill: "currentColor",
|
|
393
|
-
stroke: "none"
|
|
536
|
+
y: "6",
|
|
537
|
+
width: "18",
|
|
538
|
+
height: "5",
|
|
539
|
+
rx: "2.5"
|
|
394
540
|
}),
|
|
395
541
|
/* @__PURE__ */ d("rect", {
|
|
396
|
-
x: "
|
|
397
|
-
y: "
|
|
398
|
-
width: "
|
|
399
|
-
height: "
|
|
400
|
-
rx: "
|
|
542
|
+
x: "3",
|
|
543
|
+
y: "13",
|
|
544
|
+
width: "18",
|
|
545
|
+
height: "5",
|
|
546
|
+
rx: "2.5"
|
|
401
547
|
}),
|
|
402
548
|
/* @__PURE__ */ d("rect", {
|
|
403
|
-
x: "
|
|
404
|
-
y: "
|
|
405
|
-
width: "
|
|
406
|
-
height: "
|
|
407
|
-
rx: "
|
|
549
|
+
x: "6",
|
|
550
|
+
y: "3",
|
|
551
|
+
width: "5",
|
|
552
|
+
height: "18",
|
|
553
|
+
rx: "2.5",
|
|
554
|
+
fillOpacity: ".45"
|
|
408
555
|
}),
|
|
409
556
|
/* @__PURE__ */ d("rect", {
|
|
410
|
-
x: "
|
|
411
|
-
y: "
|
|
412
|
-
width: "
|
|
413
|
-
height: "
|
|
414
|
-
rx: "
|
|
415
|
-
|
|
416
|
-
stroke: "none"
|
|
557
|
+
x: "13",
|
|
558
|
+
y: "3",
|
|
559
|
+
width: "5",
|
|
560
|
+
height: "18",
|
|
561
|
+
rx: "2.5",
|
|
562
|
+
fillOpacity: ".45"
|
|
417
563
|
})
|
|
418
564
|
] }),
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
565
|
+
peak: I([
|
|
566
|
+
0,
|
|
567
|
+
120,
|
|
568
|
+
240
|
|
569
|
+
], /* @__PURE__ */ d("path", {
|
|
570
|
+
d: "M12 2 17 12H7Z",
|
|
571
|
+
fillOpacity: ".6"
|
|
572
|
+
})),
|
|
573
|
+
zigzag: I([
|
|
574
|
+
0,
|
|
575
|
+
90,
|
|
576
|
+
180,
|
|
577
|
+
270
|
|
578
|
+
], /* @__PURE__ */ d("path", { d: "m3 3 10 3 2 6-5 3 1-7-7 1Z" })),
|
|
579
|
+
helix: /* @__PURE__ */ f(u, { children: [
|
|
580
|
+
/* @__PURE__ */ d("ellipse", {
|
|
581
|
+
cx: "9",
|
|
582
|
+
cy: "12",
|
|
583
|
+
rx: "5.3",
|
|
584
|
+
ry: "9.5",
|
|
585
|
+
transform: "rotate(32 9 12)",
|
|
586
|
+
fillOpacity: ".5"
|
|
587
|
+
}),
|
|
588
|
+
/* @__PURE__ */ d("ellipse", {
|
|
589
|
+
cx: "15",
|
|
590
|
+
cy: "12",
|
|
591
|
+
rx: "5.3",
|
|
592
|
+
ry: "9.5",
|
|
593
|
+
transform: "rotate(32 15 12)",
|
|
594
|
+
fillOpacity: ".5"
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ d("path", {
|
|
597
|
+
d: "m4.5 14.5 9-9 6 4-9 9Z",
|
|
598
|
+
fillOpacity: ".25"
|
|
599
|
+
})
|
|
600
|
+
] }),
|
|
601
|
+
kite: I([
|
|
602
|
+
0,
|
|
603
|
+
90,
|
|
604
|
+
180,
|
|
605
|
+
270
|
|
606
|
+
], /* @__PURE__ */ d("path", { d: "m12 2 5.3 5.8L12 16 6.7 7.8Z" })),
|
|
607
|
+
cube: /* @__PURE__ */ f(u, { children: [
|
|
608
|
+
/* @__PURE__ */ d("path", {
|
|
609
|
+
d: "m12 2.5 9 5.2-9 5.2-9-5.2Z",
|
|
610
|
+
fillOpacity: ".45"
|
|
611
|
+
}),
|
|
612
|
+
/* @__PURE__ */ d("path", {
|
|
613
|
+
d: "m3 7.7 9 5.2v8.6l-9-5.2Z",
|
|
614
|
+
fillOpacity: ".7"
|
|
615
|
+
}),
|
|
616
|
+
/* @__PURE__ */ d("path", {
|
|
617
|
+
d: "m21 7.7-9 5.2v8.6l9-5.2Z",
|
|
618
|
+
fillOpacity: ".55"
|
|
619
|
+
}),
|
|
620
|
+
/* @__PURE__ */ d("path", {
|
|
621
|
+
d: "m7.5 5.1 9 5.2v8.6M16.5 5.1l-9 5.2v8.6M3 12l9 5.2 9-5.2",
|
|
622
|
+
fill: "none"
|
|
623
|
+
})
|
|
624
|
+
] }),
|
|
625
|
+
prism: /* @__PURE__ */ f(u, { children: [
|
|
626
|
+
/* @__PURE__ */ d("path", {
|
|
627
|
+
d: "M12 2 22 19H2Z",
|
|
628
|
+
fillOpacity: ".35"
|
|
629
|
+
}),
|
|
630
|
+
/* @__PURE__ */ d("path", {
|
|
631
|
+
d: "m12 2 3.5 17H2Z",
|
|
632
|
+
fillOpacity: ".65"
|
|
633
|
+
}),
|
|
634
|
+
/* @__PURE__ */ d("path", {
|
|
635
|
+
d: "m12 2 10 17H8.5Z",
|
|
636
|
+
fillOpacity: ".45"
|
|
637
|
+
}),
|
|
638
|
+
/* @__PURE__ */ d("path", {
|
|
639
|
+
d: "m2 19 10-7 10 7Z",
|
|
640
|
+
fillOpacity: ".45"
|
|
641
|
+
})
|
|
642
|
+
] }),
|
|
643
|
+
frame: I([
|
|
644
|
+
0,
|
|
645
|
+
90,
|
|
646
|
+
180,
|
|
647
|
+
270
|
|
648
|
+
], /* @__PURE__ */ d("rect", {
|
|
649
|
+
x: "4",
|
|
650
|
+
y: "3",
|
|
651
|
+
width: "11",
|
|
652
|
+
height: "11",
|
|
653
|
+
rx: "3.6"
|
|
654
|
+
})),
|
|
655
|
+
brackets: I([
|
|
656
|
+
0,
|
|
657
|
+
90,
|
|
658
|
+
180,
|
|
659
|
+
270
|
|
660
|
+
], /* @__PURE__ */ d("path", { d: "M3 4a1 1 0 0 1 1-1h8v4H7v5H3Z" })),
|
|
661
|
+
diamond: /* @__PURE__ */ f(u, { children: [I([
|
|
662
|
+
0,
|
|
663
|
+
90,
|
|
664
|
+
180,
|
|
665
|
+
270
|
|
666
|
+
], /* @__PURE__ */ d("rect", {
|
|
667
|
+
x: "6.4",
|
|
668
|
+
y: "2.5",
|
|
447
669
|
width: "8",
|
|
448
670
|
height: "8",
|
|
449
|
-
rx: "
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
fill: "currentColor",
|
|
457
|
-
stroke: "none"
|
|
671
|
+
rx: "1.5",
|
|
672
|
+
transform: "rotate(45 10.4 6.5)"
|
|
673
|
+
})), /* @__PURE__ */ d("circle", {
|
|
674
|
+
cx: "12",
|
|
675
|
+
cy: "12",
|
|
676
|
+
r: "3",
|
|
677
|
+
fillOpacity: ".5"
|
|
458
678
|
})] }),
|
|
459
|
-
hexagon:
|
|
679
|
+
hexagon: I([
|
|
680
|
+
0,
|
|
681
|
+
60,
|
|
682
|
+
120,
|
|
683
|
+
180,
|
|
684
|
+
240,
|
|
685
|
+
300
|
|
686
|
+
], /* @__PURE__ */ d("path", { d: "m12 2 4 2.3v4.6l-4 2.3-4-2.3V4.3Z" })),
|
|
460
687
|
signal: /* @__PURE__ */ f(u, { children: [
|
|
461
688
|
/* @__PURE__ */ d("rect", {
|
|
462
|
-
x: "
|
|
463
|
-
y: "
|
|
464
|
-
width: "4",
|
|
465
|
-
height: "
|
|
466
|
-
rx: "
|
|
467
|
-
|
|
468
|
-
stroke: "none"
|
|
689
|
+
x: "2.6",
|
|
690
|
+
y: "7.5",
|
|
691
|
+
width: "4.5",
|
|
692
|
+
height: "9",
|
|
693
|
+
rx: "2.2",
|
|
694
|
+
fillOpacity: ".45"
|
|
469
695
|
}),
|
|
470
696
|
/* @__PURE__ */ d("rect", {
|
|
471
|
-
x: "
|
|
472
|
-
y: "
|
|
473
|
-
width: "4",
|
|
474
|
-
height: "
|
|
475
|
-
rx: "
|
|
476
|
-
fill: "currentColor",
|
|
477
|
-
stroke: "none"
|
|
697
|
+
x: "7.4",
|
|
698
|
+
y: "3.5",
|
|
699
|
+
width: "4.5",
|
|
700
|
+
height: "17",
|
|
701
|
+
rx: "2.2"
|
|
478
702
|
}),
|
|
479
703
|
/* @__PURE__ */ d("rect", {
|
|
480
|
-
x: "
|
|
481
|
-
y: "3",
|
|
482
|
-
width: "4",
|
|
483
|
-
height: "
|
|
484
|
-
rx: "
|
|
485
|
-
|
|
486
|
-
|
|
704
|
+
x: "12.1",
|
|
705
|
+
y: "3.5",
|
|
706
|
+
width: "4.5",
|
|
707
|
+
height: "17",
|
|
708
|
+
rx: "2.2"
|
|
709
|
+
}),
|
|
710
|
+
/* @__PURE__ */ d("rect", {
|
|
711
|
+
x: "16.9",
|
|
712
|
+
y: "7.5",
|
|
713
|
+
width: "4.5",
|
|
714
|
+
height: "9",
|
|
715
|
+
rx: "2.2",
|
|
716
|
+
fillOpacity: ".45"
|
|
717
|
+
}),
|
|
718
|
+
/* @__PURE__ */ d("path", {
|
|
719
|
+
d: "M2.6 12h18.8",
|
|
720
|
+
fill: "none"
|
|
487
721
|
})
|
|
488
722
|
] }),
|
|
489
|
-
crest:
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
723
|
+
crest: I([
|
|
724
|
+
0,
|
|
725
|
+
120,
|
|
726
|
+
240
|
|
727
|
+
], /* @__PURE__ */ d("path", {
|
|
728
|
+
d: "M6 3h12v5c0 4-3.5 7.2-6 9-2.5-1.8-6-5-6-9Z",
|
|
729
|
+
fillOpacity: ".55"
|
|
730
|
+
})),
|
|
731
|
+
bolt: I([
|
|
732
|
+
0,
|
|
733
|
+
120,
|
|
734
|
+
240
|
|
735
|
+
], /* @__PURE__ */ d("path", {
|
|
736
|
+
d: "m10 2 9 8-7 1 1 6-9-8 7-1Z",
|
|
737
|
+
fillOpacity: ".6"
|
|
738
|
+
})),
|
|
739
|
+
link: I([0, 90], /* @__PURE__ */ d("path", {
|
|
740
|
+
d: "M12 2c5 0 7 4 7 10s-2 10-7 10-7-4-7-10S7 2 12 2Zm0 4c-2 0-3 2-3 6s1 6 3 6 3-2 3-6-1-6-3-6Z",
|
|
741
|
+
fillRule: "evenodd",
|
|
742
|
+
fillOpacity: ".6"
|
|
743
|
+
})),
|
|
744
|
+
split: I([
|
|
745
|
+
0,
|
|
746
|
+
90,
|
|
747
|
+
180,
|
|
748
|
+
270
|
|
749
|
+
], /* @__PURE__ */ d("path", {
|
|
750
|
+
d: "M12 2a10 10 0 0 1 10 10H9a3 3 0 0 1 3-3Z",
|
|
751
|
+
fillOpacity: ".6"
|
|
752
|
+
})),
|
|
753
|
+
aster: I([
|
|
754
|
+
0,
|
|
755
|
+
60,
|
|
756
|
+
120
|
|
757
|
+
], /* @__PURE__ */ d("rect", {
|
|
758
|
+
x: "9.4",
|
|
759
|
+
y: "1.5",
|
|
760
|
+
width: "5.2",
|
|
761
|
+
height: "21",
|
|
762
|
+
rx: "2.6",
|
|
763
|
+
fillOpacity: ".55"
|
|
764
|
+
})),
|
|
765
|
+
portal: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("circle", {
|
|
508
766
|
cx: "12",
|
|
509
767
|
cy: "12",
|
|
510
|
-
r: "3",
|
|
511
|
-
|
|
512
|
-
|
|
768
|
+
r: "9.3",
|
|
769
|
+
fillOpacity: ".4"
|
|
770
|
+
}), I([
|
|
771
|
+
0,
|
|
772
|
+
90,
|
|
773
|
+
180,
|
|
774
|
+
270
|
|
775
|
+
], /* @__PURE__ */ d("circle", {
|
|
776
|
+
cx: "12",
|
|
777
|
+
cy: "7.6",
|
|
778
|
+
r: "4.8",
|
|
779
|
+
fillOpacity: ".35"
|
|
780
|
+
}))] }),
|
|
781
|
+
rosette: I([
|
|
782
|
+
0,
|
|
783
|
+
60,
|
|
784
|
+
120,
|
|
785
|
+
180,
|
|
786
|
+
240,
|
|
787
|
+
300
|
|
788
|
+
], /* @__PURE__ */ d("path", { d: "M12 1.8c1.2 5 7 5.8 5.5 10.2-1.1 3.3-5.5 3-5.5 0-4.2-.8-5.1-4.2 0-10.2Z" })),
|
|
789
|
+
blossom: /* @__PURE__ */ f(u, { children: [I([
|
|
790
|
+
0,
|
|
791
|
+
72,
|
|
792
|
+
144,
|
|
793
|
+
216,
|
|
794
|
+
288
|
|
795
|
+
], /* @__PURE__ */ d("circle", {
|
|
796
|
+
cx: "12",
|
|
797
|
+
cy: "6.6",
|
|
798
|
+
r: "4.6"
|
|
799
|
+
})), /* @__PURE__ */ d("circle", {
|
|
800
|
+
cx: "12",
|
|
801
|
+
cy: "12",
|
|
802
|
+
r: "3.8",
|
|
803
|
+
fillOpacity: ".4"
|
|
513
804
|
})] }),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
805
|
+
pinwheel: I([
|
|
806
|
+
0,
|
|
807
|
+
72,
|
|
808
|
+
144,
|
|
809
|
+
216,
|
|
810
|
+
288
|
|
811
|
+
], /* @__PURE__ */ d("path", { d: "M12 12C5 15 1 8 6 3c5-2 8 1 8 5-2-2-5-1-5 1s1 3 3 3Z" })),
|
|
812
|
+
lantern: /* @__PURE__ */ f(u, { children: [I([
|
|
813
|
+
0,
|
|
814
|
+
90,
|
|
815
|
+
180,
|
|
816
|
+
270
|
|
817
|
+
], /* @__PURE__ */ d("path", { d: "m12 1.5 4 6-4 5-4-5Z" })), I([
|
|
818
|
+
45,
|
|
819
|
+
135,
|
|
820
|
+
225,
|
|
821
|
+
315
|
|
822
|
+
], /* @__PURE__ */ d("path", {
|
|
823
|
+
d: "m12 3.5 3 5-3 3.5-3-3.5Z",
|
|
824
|
+
fillOpacity: ".45"
|
|
825
|
+
}))] }),
|
|
826
|
+
lattice: /* @__PURE__ */ f(u, { children: [[
|
|
827
|
+
5,
|
|
828
|
+
10,
|
|
829
|
+
15
|
|
830
|
+
].map((e) => /* @__PURE__ */ d("rect", {
|
|
831
|
+
x: e,
|
|
832
|
+
y: "3",
|
|
833
|
+
width: "4",
|
|
834
|
+
height: "18",
|
|
835
|
+
rx: "2",
|
|
836
|
+
fillOpacity: ".45"
|
|
837
|
+
}, e)), [
|
|
838
|
+
5,
|
|
839
|
+
10,
|
|
840
|
+
15
|
|
841
|
+
].map((e) => /* @__PURE__ */ d("rect", {
|
|
842
|
+
x: "3",
|
|
843
|
+
y: e,
|
|
844
|
+
width: "18",
|
|
845
|
+
height: "4",
|
|
846
|
+
rx: "2",
|
|
847
|
+
fillOpacity: ".45"
|
|
848
|
+
}, e))] }),
|
|
849
|
+
mosaic: /* @__PURE__ */ f(u, { children: [
|
|
850
|
+
I([
|
|
851
|
+
0,
|
|
852
|
+
90,
|
|
853
|
+
180,
|
|
854
|
+
270
|
|
855
|
+
], /* @__PURE__ */ d("path", { d: "m12 1.5 4.5 4.5-4.5 4.5L7.5 6Z" })),
|
|
856
|
+
I([
|
|
857
|
+
0,
|
|
858
|
+
90,
|
|
859
|
+
180,
|
|
860
|
+
270
|
|
861
|
+
], /* @__PURE__ */ d("path", {
|
|
862
|
+
d: "m5.5 5.5 3 3-3 3-3-3Z",
|
|
863
|
+
fillOpacity: ".45"
|
|
864
|
+
})),
|
|
865
|
+
/* @__PURE__ */ d("path", { d: "m12 8 4 4-4 4-4-4Z" })
|
|
866
|
+
] }),
|
|
867
|
+
dahlia: I([
|
|
868
|
+
0,
|
|
869
|
+
30,
|
|
870
|
+
60,
|
|
871
|
+
90,
|
|
872
|
+
120,
|
|
873
|
+
150,
|
|
874
|
+
180,
|
|
875
|
+
210,
|
|
876
|
+
240,
|
|
877
|
+
270,
|
|
878
|
+
300,
|
|
879
|
+
330
|
|
880
|
+
], /* @__PURE__ */ d("ellipse", {
|
|
881
|
+
cx: "12",
|
|
882
|
+
cy: "6.3",
|
|
883
|
+
rx: "1.9",
|
|
884
|
+
ry: "4.5",
|
|
885
|
+
fillOpacity: ".5"
|
|
886
|
+
})),
|
|
887
|
+
lotus: /* @__PURE__ */ f(u, { children: [
|
|
888
|
+
/* @__PURE__ */ d("path", {
|
|
889
|
+
d: "M12 12C5 6 1 8 1.8 10.5 3 17 8 20 12 20Z",
|
|
890
|
+
fillOpacity: ".5"
|
|
891
|
+
}),
|
|
892
|
+
/* @__PURE__ */ d("path", {
|
|
893
|
+
d: "M12 12c7-6 11-4 10.2-1.5C21 17 16 20 12 20Z",
|
|
894
|
+
fillOpacity: ".5"
|
|
895
|
+
}),
|
|
896
|
+
/* @__PURE__ */ d("path", { d: "M12 8C8 1 4 2 4 6c0 7 3 11 8 14Z" }),
|
|
897
|
+
/* @__PURE__ */ d("path", { d: "M12 8c4-7 8-6 8-2 0 7-3 11-8 14Z" }),
|
|
898
|
+
/* @__PURE__ */ d("path", {
|
|
899
|
+
d: "M12 1c-5 6-5 13 0 19 5-6 5-13 0-19Z",
|
|
900
|
+
fillOpacity: ".55"
|
|
901
|
+
})
|
|
902
|
+
] }),
|
|
903
|
+
mandala: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("circle", {
|
|
904
|
+
cx: "12",
|
|
905
|
+
cy: "12",
|
|
906
|
+
r: "9.5",
|
|
907
|
+
fillOpacity: ".25"
|
|
908
|
+
}), I([
|
|
909
|
+
0,
|
|
910
|
+
60,
|
|
911
|
+
120,
|
|
912
|
+
180,
|
|
913
|
+
240,
|
|
914
|
+
300
|
|
915
|
+
], /* @__PURE__ */ d("circle", {
|
|
916
|
+
cx: "12",
|
|
917
|
+
cy: "8.4",
|
|
918
|
+
r: "5.3",
|
|
919
|
+
fillOpacity: ".3"
|
|
920
|
+
}))] }),
|
|
921
|
+
braid: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M4 2c12 0 0 15 16 15v5C-2 22 13 7 4 7Z" }), /* @__PURE__ */ d("path", {
|
|
922
|
+
d: "M20 2C8 2 20 17 4 17v5C26 22 11 7 20 7Z",
|
|
923
|
+
fillOpacity: ".5"
|
|
924
|
+
})] }),
|
|
925
|
+
gem: /* @__PURE__ */ f(u, { children: [
|
|
926
|
+
/* @__PURE__ */ d("path", {
|
|
927
|
+
d: "m12 1.5 8 6v9l-8 6-8-6v-9Z",
|
|
928
|
+
fillOpacity: ".35"
|
|
929
|
+
}),
|
|
930
|
+
/* @__PURE__ */ d("path", {
|
|
931
|
+
d: "m12 1.5 4 10.5-4 10.5L8 12Z",
|
|
932
|
+
fillOpacity: ".7"
|
|
933
|
+
}),
|
|
934
|
+
/* @__PURE__ */ d("path", {
|
|
935
|
+
d: "m4 7.5 12 4.5-12 4.5ZM20 7.5 8 12l12 4.5Z",
|
|
936
|
+
fillOpacity: ".45"
|
|
937
|
+
})
|
|
938
|
+
] }),
|
|
939
|
+
eclipse: /* @__PURE__ */ f(u, { children: [
|
|
940
|
+
/* @__PURE__ */ d("circle", {
|
|
941
|
+
cx: "11",
|
|
517
942
|
cy: "12",
|
|
518
|
-
|
|
519
|
-
|
|
943
|
+
r: "9.5",
|
|
944
|
+
fillOpacity: ".35"
|
|
520
945
|
}),
|
|
521
|
-
/* @__PURE__ */ d("
|
|
522
|
-
cx: "
|
|
946
|
+
/* @__PURE__ */ d("circle", {
|
|
947
|
+
cx: "14",
|
|
523
948
|
cy: "12",
|
|
524
|
-
|
|
525
|
-
|
|
949
|
+
r: "7.5",
|
|
950
|
+
fillOpacity: ".45"
|
|
526
951
|
}),
|
|
527
|
-
/* @__PURE__ */ d("
|
|
528
|
-
|
|
529
|
-
|
|
952
|
+
/* @__PURE__ */ d("circle", {
|
|
953
|
+
cx: "16.4",
|
|
954
|
+
cy: "12",
|
|
955
|
+
r: "5.2",
|
|
956
|
+
fillOpacity: ".6"
|
|
957
|
+
})
|
|
958
|
+
] }),
|
|
959
|
+
gyre: I([
|
|
960
|
+
0,
|
|
961
|
+
90,
|
|
962
|
+
180,
|
|
963
|
+
270
|
|
964
|
+
], /* @__PURE__ */ d("path", { d: "M12 12C2 13 2 3 8 2c5-1 7 5 5 8-1-4-6-4-6-1 0 2 2 3 5 3Z" })),
|
|
965
|
+
crossweave: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", {
|
|
966
|
+
d: "m5 2 7 10-7 10h14l-7-10 7-10Z",
|
|
967
|
+
fillOpacity: ".55"
|
|
968
|
+
}), /* @__PURE__ */ d("path", {
|
|
969
|
+
d: "m2 5 10 7 10-7v14l-10-7-10 7Z",
|
|
970
|
+
fillOpacity: ".55"
|
|
971
|
+
})] }),
|
|
972
|
+
tessera: I([
|
|
973
|
+
0,
|
|
974
|
+
60,
|
|
975
|
+
120,
|
|
976
|
+
180,
|
|
977
|
+
240,
|
|
978
|
+
300
|
|
979
|
+
], /* @__PURE__ */ d("path", { d: "m12 2 8.6 5-3 5.2L9 7.2Z" })),
|
|
980
|
+
triad: I([
|
|
981
|
+
0,
|
|
982
|
+
120,
|
|
983
|
+
240
|
|
984
|
+
], /* @__PURE__ */ d("path", {
|
|
985
|
+
d: "M12 2C4 5 3 12 12 17c9-5 8-12 0-15Z",
|
|
986
|
+
fillOpacity: ".6"
|
|
987
|
+
}))
|
|
988
|
+
}, R = Object.freeze([
|
|
530
989
|
"ember",
|
|
531
990
|
"coral",
|
|
532
991
|
"rose",
|
|
@@ -551,11 +1010,12 @@ var P = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel
|
|
|
551
1010
|
"ochre",
|
|
552
1011
|
"amber",
|
|
553
1012
|
"copper"
|
|
554
|
-
]),
|
|
1013
|
+
]), z = R, B = {
|
|
555
1014
|
root: {
|
|
556
1015
|
k1xSpc: "x3nfvp2",
|
|
557
1016
|
kmuXW: "x2lah0s",
|
|
558
1017
|
kXLuUW: "xxymvpz",
|
|
1018
|
+
kjVXCG: "xaep1og",
|
|
559
1019
|
$$css: !0
|
|
560
1020
|
},
|
|
561
1021
|
xs: {
|
|
@@ -674,62 +1134,86 @@ var P = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel
|
|
|
674
1134
|
kMwMTN: "x1b59cz5",
|
|
675
1135
|
$$css: !0
|
|
676
1136
|
}
|
|
677
|
-
}, B = {
|
|
678
|
-
xs: z.xs,
|
|
679
|
-
sm: z.sm,
|
|
680
|
-
md: z.md,
|
|
681
|
-
lg: z.lg
|
|
682
1137
|
}, V = {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
1138
|
+
xs: B.xs,
|
|
1139
|
+
sm: B.sm,
|
|
1140
|
+
md: B.md,
|
|
1141
|
+
lg: B.lg
|
|
1142
|
+
}, H = {
|
|
1143
|
+
ember: B.ember,
|
|
1144
|
+
coral: B.coral,
|
|
1145
|
+
rose: B.rose,
|
|
1146
|
+
berry: B.berry,
|
|
1147
|
+
plum: B.plum,
|
|
1148
|
+
orchid: B.orchid,
|
|
1149
|
+
violet: B.violet,
|
|
1150
|
+
indigo: B.indigo,
|
|
1151
|
+
iris: B.iris,
|
|
1152
|
+
cobalt: B.cobalt,
|
|
1153
|
+
blue: B.blue,
|
|
1154
|
+
sky: B.sky,
|
|
1155
|
+
cyan: B.cyan,
|
|
1156
|
+
lagoon: B.lagoon,
|
|
1157
|
+
teal: B.teal,
|
|
1158
|
+
jade: B.jade,
|
|
1159
|
+
mint: B.mint,
|
|
1160
|
+
forest: B.forest,
|
|
1161
|
+
leaf: B.leaf,
|
|
1162
|
+
moss: B.moss,
|
|
1163
|
+
olive: B.olive,
|
|
1164
|
+
ochre: B.ochre,
|
|
1165
|
+
amber: B.amber,
|
|
1166
|
+
copper: B.copper
|
|
707
1167
|
};
|
|
708
|
-
function
|
|
1168
|
+
function U(e) {
|
|
709
1169
|
let t = Array.from(e).reduce((e, t) => (e * 31 + (t.codePointAt(0) ?? 0)) % 2147483647, 0);
|
|
710
1170
|
return {
|
|
711
|
-
shape:
|
|
712
|
-
color:
|
|
1171
|
+
shape: F[t % F.length] ?? "spark",
|
|
1172
|
+
color: R[Math.floor(t / F.length) % R.length] ?? "ember"
|
|
713
1173
|
};
|
|
714
1174
|
}
|
|
715
|
-
function
|
|
716
|
-
let i = t ??
|
|
717
|
-
return /* @__PURE__ */
|
|
1175
|
+
function W({ seed: e, appearance: t, size: n = "sm", label: r }) {
|
|
1176
|
+
let i = t ?? U(e), o = s();
|
|
1177
|
+
return /* @__PURE__ */ f("svg", {
|
|
718
1178
|
viewBox: "0 0 24 24",
|
|
719
|
-
fill:
|
|
720
|
-
|
|
721
|
-
strokeWidth: "
|
|
1179
|
+
fill: `url(#${o})`,
|
|
1180
|
+
fillOpacity: ".76",
|
|
1181
|
+
strokeWidth: ".65",
|
|
1182
|
+
strokeOpacity: ".9",
|
|
722
1183
|
strokeLinecap: "round",
|
|
723
1184
|
strokeLinejoin: "round",
|
|
724
1185
|
role: r === void 0 ? void 0 : "img",
|
|
725
1186
|
"aria-label": r,
|
|
726
1187
|
"aria-hidden": r === void 0 || void 0,
|
|
727
|
-
...a.props(
|
|
728
|
-
children:
|
|
1188
|
+
...a.props(B.root, V[n], H[i.color]),
|
|
1189
|
+
children: [/* @__PURE__ */ d("defs", { children: /* @__PURE__ */ f("linearGradient", {
|
|
1190
|
+
id: o,
|
|
1191
|
+
x1: "0",
|
|
1192
|
+
y1: "0",
|
|
1193
|
+
x2: "1",
|
|
1194
|
+
y2: "1",
|
|
1195
|
+
children: [
|
|
1196
|
+
/* @__PURE__ */ d("stop", {
|
|
1197
|
+
offset: "0",
|
|
1198
|
+
stopColor: "currentColor",
|
|
1199
|
+
stopOpacity: ".6"
|
|
1200
|
+
}),
|
|
1201
|
+
/* @__PURE__ */ d("stop", {
|
|
1202
|
+
offset: ".65",
|
|
1203
|
+
stopColor: "currentColor",
|
|
1204
|
+
stopOpacity: "1"
|
|
1205
|
+
}),
|
|
1206
|
+
/* @__PURE__ */ d("stop", {
|
|
1207
|
+
offset: "1",
|
|
1208
|
+
stopColor: "currentColor",
|
|
1209
|
+
stopOpacity: ".8"
|
|
1210
|
+
})
|
|
1211
|
+
]
|
|
1212
|
+
}) }), L[i.shape]]
|
|
729
1213
|
});
|
|
730
1214
|
}
|
|
731
1215
|
// packages/core/src/copy-value.tsx
|
|
732
|
-
var
|
|
1216
|
+
var G = {
|
|
733
1217
|
value: {
|
|
734
1218
|
kJuA4N: "x15r89dc",
|
|
735
1219
|
k7Eaqz: "xeuugli",
|
|
@@ -743,18 +1227,18 @@ var W = {
|
|
|
743
1227
|
k33iCy: "xlshs6z",
|
|
744
1228
|
$$css: !0
|
|
745
1229
|
}
|
|
746
|
-
},
|
|
747
|
-
idle:
|
|
748
|
-
pending:
|
|
749
|
-
copied:
|
|
750
|
-
failed:
|
|
751
|
-
},
|
|
752
|
-
idle:
|
|
753
|
-
pending:
|
|
754
|
-
copied:
|
|
755
|
-
failed:
|
|
1230
|
+
}, K = 1600, q = /* @__PURE__ */ new Set(["copied", "failed"]), J = {
|
|
1231
|
+
idle: G.visible,
|
|
1232
|
+
pending: G.visible,
|
|
1233
|
+
copied: G.hidden,
|
|
1234
|
+
failed: G.visible
|
|
1235
|
+
}, Y = {
|
|
1236
|
+
idle: G.hidden,
|
|
1237
|
+
pending: G.hidden,
|
|
1238
|
+
copied: G.visible,
|
|
1239
|
+
failed: G.hidden
|
|
756
1240
|
};
|
|
757
|
-
function
|
|
1241
|
+
function X({ value: i, label: s, display: u = "value", children: p, className: h, style: g, disabled: _ = !1, onClick: v, render: y, ...x }) {
|
|
758
1242
|
let [S, C] = l({
|
|
759
1243
|
value: i,
|
|
760
1244
|
status: "idle"
|
|
@@ -762,13 +1246,13 @@ function Y({ value: i, label: s, display: u = "value", children: p, className: h
|
|
|
762
1246
|
o(() => () => {
|
|
763
1247
|
w.current += 1;
|
|
764
1248
|
}, [i]), o(() => {
|
|
765
|
-
if (!
|
|
1249
|
+
if (!q.has(S.status)) return;
|
|
766
1250
|
let e = globalThis.setTimeout(() => {
|
|
767
1251
|
C((e) => e === S ? {
|
|
768
1252
|
value: i,
|
|
769
1253
|
status: "idle"
|
|
770
1254
|
} : e);
|
|
771
|
-
},
|
|
1255
|
+
}, K);
|
|
772
1256
|
return () => globalThis.clearTimeout(e);
|
|
773
1257
|
}, [S, i]);
|
|
774
1258
|
async function E() {
|
|
@@ -821,11 +1305,11 @@ function Y({ value: i, label: s, display: u = "value", children: p, className: h
|
|
|
821
1305
|
className: "xwz0xwf xeuugli",
|
|
822
1306
|
children: [/* @__PURE__ */ d("span", {
|
|
823
1307
|
"aria-hidden": T === "copied",
|
|
824
|
-
...a.props(
|
|
1308
|
+
...a.props(G.value, J[T]),
|
|
825
1309
|
children: p ?? (typeof i == "string" ? i : s)
|
|
826
1310
|
}), /* @__PURE__ */ d("span", {
|
|
827
1311
|
"aria-hidden": T !== "copied",
|
|
828
|
-
...a.props(
|
|
1312
|
+
...a.props(G.value, Y[T]),
|
|
829
1313
|
children: "Copied"
|
|
830
1314
|
})]
|
|
831
1315
|
}),
|
|
@@ -843,7 +1327,7 @@ function Y({ value: i, label: s, display: u = "value", children: p, className: h
|
|
|
843
1327
|
});
|
|
844
1328
|
}
|
|
845
1329
|
// packages/core/src/disclosure.tsx
|
|
846
|
-
function
|
|
1330
|
+
function Z({ className: t, style: n, ...r }) {
|
|
847
1331
|
return /* @__PURE__ */ d(x.Root, {
|
|
848
1332
|
...r,
|
|
849
1333
|
...e({
|
|
@@ -853,7 +1337,7 @@ function X({ className: t, style: n, ...r }) {
|
|
|
853
1337
|
})
|
|
854
1338
|
});
|
|
855
1339
|
}
|
|
856
|
-
function
|
|
1340
|
+
function re({ className: t, style: n, ...r }) {
|
|
857
1341
|
return /* @__PURE__ */ d(x.Item, {
|
|
858
1342
|
...r,
|
|
859
1343
|
...e({
|
|
@@ -863,7 +1347,7 @@ function Z({ className: t, style: n, ...r }) {
|
|
|
863
1347
|
})
|
|
864
1348
|
});
|
|
865
1349
|
}
|
|
866
|
-
function
|
|
1350
|
+
function ie({ className: t, style: n, ...r }) {
|
|
867
1351
|
return /* @__PURE__ */ d(x.Header, {
|
|
868
1352
|
...r,
|
|
869
1353
|
...e({
|
|
@@ -873,7 +1357,7 @@ function re({ className: t, style: n, ...r }) {
|
|
|
873
1357
|
})
|
|
874
1358
|
});
|
|
875
1359
|
}
|
|
876
|
-
function
|
|
1360
|
+
function ae({ className: t, style: n, children: r, ...i }) {
|
|
877
1361
|
return /* @__PURE__ */ f(x.Trigger, {
|
|
878
1362
|
...i,
|
|
879
1363
|
...e({
|
|
@@ -887,7 +1371,7 @@ function ie({ className: t, style: n, children: r, ...i }) {
|
|
|
887
1371
|
})]
|
|
888
1372
|
});
|
|
889
1373
|
}
|
|
890
|
-
function
|
|
1374
|
+
function oe({ className: t, style: n, ...r }) {
|
|
891
1375
|
return /* @__PURE__ */ d(x.Panel, {
|
|
892
1376
|
...r,
|
|
893
1377
|
...e({
|
|
@@ -897,7 +1381,7 @@ function ae({ className: t, style: n, ...r }) {
|
|
|
897
1381
|
})
|
|
898
1382
|
});
|
|
899
1383
|
}
|
|
900
|
-
function
|
|
1384
|
+
function se({ className: t, style: n, ...r }) {
|
|
901
1385
|
return /* @__PURE__ */ d(S.Root, {
|
|
902
1386
|
...r,
|
|
903
1387
|
...e({
|
|
@@ -907,7 +1391,7 @@ function oe({ className: t, style: n, ...r }) {
|
|
|
907
1391
|
})
|
|
908
1392
|
});
|
|
909
1393
|
}
|
|
910
|
-
function
|
|
1394
|
+
function ce({ className: t, style: n, children: r, ...i }) {
|
|
911
1395
|
return /* @__PURE__ */ f(S.Trigger, {
|
|
912
1396
|
...i,
|
|
913
1397
|
...e({
|
|
@@ -921,7 +1405,7 @@ function se({ className: t, style: n, children: r, ...i }) {
|
|
|
921
1405
|
})]
|
|
922
1406
|
});
|
|
923
1407
|
}
|
|
924
|
-
function
|
|
1408
|
+
function le({ className: t, style: n, ...r }) {
|
|
925
1409
|
return /* @__PURE__ */ d(S.Panel, {
|
|
926
1410
|
...r,
|
|
927
1411
|
...e({
|
|
@@ -931,17 +1415,17 @@ function ce({ className: t, style: n, ...r }) {
|
|
|
931
1415
|
})
|
|
932
1416
|
});
|
|
933
1417
|
}
|
|
934
|
-
var
|
|
935
|
-
Root:
|
|
936
|
-
Item:
|
|
937
|
-
Header:
|
|
938
|
-
Trigger:
|
|
939
|
-
Panel:
|
|
940
|
-
},
|
|
941
|
-
Root:
|
|
942
|
-
Trigger:
|
|
943
|
-
Panel:
|
|
944
|
-
},
|
|
1418
|
+
var ue = {
|
|
1419
|
+
Root: Z,
|
|
1420
|
+
Item: re,
|
|
1421
|
+
Header: ie,
|
|
1422
|
+
Trigger: ae,
|
|
1423
|
+
Panel: oe
|
|
1424
|
+
}, de = {
|
|
1425
|
+
Root: se,
|
|
1426
|
+
Trigger: ce,
|
|
1427
|
+
Panel: le
|
|
1428
|
+
}, fe = { link: {
|
|
945
1429
|
k1xSpc: "x1lliihq",
|
|
946
1430
|
kB7OPa: "x9f619",
|
|
947
1431
|
k7Eaqz: "xeuugli",
|
|
@@ -964,31 +1448,31 @@ var le = {
|
|
|
964
1448
|
kiEn40: "x8fq8g9",
|
|
965
1449
|
$$css: !0
|
|
966
1450
|
} };
|
|
967
|
-
function
|
|
1451
|
+
function pe({ padded: e = !0, ...t }) {
|
|
968
1452
|
return /* @__PURE__ */ d("section", { ...r({
|
|
969
1453
|
0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
|
|
970
1454
|
1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
|
|
971
1455
|
}[!!e | 0], t) });
|
|
972
1456
|
}
|
|
973
|
-
function
|
|
974
|
-
return /* @__PURE__ */ d("a", { ...r(a.props(
|
|
1457
|
+
function me({ xstyle: e, ...t }) {
|
|
1458
|
+
return /* @__PURE__ */ d("a", { ...r(a.props(fe.link, e), t) });
|
|
975
1459
|
}
|
|
976
|
-
function
|
|
1460
|
+
function he({ between: e = !1, ...t }) {
|
|
977
1461
|
return /* @__PURE__ */ d("div", { ...r({
|
|
978
1462
|
0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
|
|
979
1463
|
1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
|
|
980
1464
|
}[!!e | 0], t) });
|
|
981
1465
|
}
|
|
982
|
-
function
|
|
1466
|
+
function ge({ compact: e = !1, ...t }) {
|
|
983
1467
|
return /* @__PURE__ */ d("div", { ...r({
|
|
984
1468
|
0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
|
|
985
1469
|
1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
|
|
986
1470
|
}[!!e | 0], t) });
|
|
987
1471
|
}
|
|
988
|
-
function
|
|
1472
|
+
function _e(e) {
|
|
989
1473
|
return /* @__PURE__ */ d("div", { ...r({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
|
|
990
1474
|
}
|
|
991
|
-
function
|
|
1475
|
+
function ve(e) {
|
|
992
1476
|
return /* @__PURE__ */ d("hr", { ...r({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
|
|
993
1477
|
}
|
|
994
1478
|
// packages/core/src/text.tsx
|
|
@@ -1092,15 +1576,15 @@ var Q = {
|
|
|
1092
1576
|
kMwMTN: "xr5kp14",
|
|
1093
1577
|
$$css: !0
|
|
1094
1578
|
}
|
|
1095
|
-
},
|
|
1579
|
+
}, ye = {
|
|
1096
1580
|
body: Q.body,
|
|
1097
1581
|
caption: Q.caption,
|
|
1098
1582
|
mono: Q.mono,
|
|
1099
1583
|
prose: Q.prose
|
|
1100
|
-
},
|
|
1584
|
+
}, be = {
|
|
1101
1585
|
ink: Q.ink,
|
|
1102
1586
|
muted: Q.muted
|
|
1103
|
-
},
|
|
1587
|
+
}, $ = {
|
|
1104
1588
|
neutral: Q.neutral,
|
|
1105
1589
|
positive: Q.positive,
|
|
1106
1590
|
warning: Q.warning,
|
|
@@ -1116,30 +1600,30 @@ var Q = {
|
|
|
1116
1600
|
warning: y,
|
|
1117
1601
|
negative: v
|
|
1118
1602
|
};
|
|
1119
|
-
function
|
|
1120
|
-
return /* @__PURE__ */ d("span", { ...r(a.props(Q.text,
|
|
1603
|
+
function Ce({ variant: e = "body", tone: t = "ink", xstyle: n, ...i }) {
|
|
1604
|
+
return /* @__PURE__ */ d("span", { ...r(a.props(Q.text, ye[e], be[t], n), i) });
|
|
1121
1605
|
}
|
|
1122
|
-
function
|
|
1606
|
+
function we({ compact: e = !1, ...t }) {
|
|
1123
1607
|
return /* @__PURE__ */ d("h1", { ...r({
|
|
1124
1608
|
0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz x1sfszr9 xzju6ct x197eox2 x1b5ytql x1wjjqco xbixft xj0a0fe" },
|
|
1125
1609
|
1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
|
|
1126
1610
|
}[!!e | 0], t) });
|
|
1127
1611
|
}
|
|
1128
|
-
function
|
|
1612
|
+
function Te(e) {
|
|
1129
1613
|
return /* @__PURE__ */ d("h2", { ...r({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
|
|
1130
1614
|
}
|
|
1131
|
-
function
|
|
1615
|
+
function Ee(e) {
|
|
1132
1616
|
return /* @__PURE__ */ d("p", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
|
|
1133
1617
|
}
|
|
1134
|
-
function
|
|
1618
|
+
function De(e) {
|
|
1135
1619
|
return /* @__PURE__ */ d("span", { ...r({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
|
|
1136
1620
|
}
|
|
1137
|
-
function
|
|
1621
|
+
function Oe(e) {
|
|
1138
1622
|
return /* @__PURE__ */ d("pre", { ...r({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
|
|
1139
1623
|
}
|
|
1140
|
-
function
|
|
1624
|
+
function ke({ children: e, tone: t = "neutral", ...n }) {
|
|
1141
1625
|
return /* @__PURE__ */ f("span", {
|
|
1142
|
-
...r(a.props(Q.badge,
|
|
1626
|
+
...r(a.props(Q.badge, $[t]), n),
|
|
1143
1627
|
children: [/* @__PURE__ */ d(g, {
|
|
1144
1628
|
size: 5,
|
|
1145
1629
|
fill: "currentColor",
|
|
@@ -1151,7 +1635,7 @@ function Oe({ children: e, tone: t = "neutral", ...n }) {
|
|
|
1151
1635
|
})]
|
|
1152
1636
|
});
|
|
1153
1637
|
}
|
|
1154
|
-
function
|
|
1638
|
+
function Ae({ children: e, tone: t = "neutral", ...n }) {
|
|
1155
1639
|
let i = Se[t];
|
|
1156
1640
|
return /* @__PURE__ */ f("span", {
|
|
1157
1641
|
...r({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
|
|
@@ -1165,4 +1649,4 @@ function ke({ children: e, tone: t = "neutral", ...n }) {
|
|
|
1165
1649
|
})]
|
|
1166
1650
|
});
|
|
1167
1651
|
}
|
|
1168
|
-
export { k as C, j as D,
|
|
1652
|
+
export { k as C, j as D, A as E, te as S, M as T, X as _, Oe as a, z as b, Ce as c, pe as d, he as f, de as g, ue as h, Ee as i, _e as l, me as m, we as n, Ae as o, ge as p, De as r, Te as s, ke as t, ve as u, W as v, ee as w, ne as x, U as y };
|