@mechane-ai/elements 0.40.0 → 0.42.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.
Files changed (68) hide show
  1. package/README.md +41 -10
  2. package/bin/catalog.d.mts +17 -0
  3. package/bin/mechane-elements-catalog.mjs +60 -0
  4. package/dist/agent.js +1 -1
  5. package/dist/ai.js +23 -23
  6. package/dist/catalog.json +1896 -0
  7. package/dist/{categorical-values-DnGR_pQx.js → categorical-values-B6lGI7BH.js} +3 -3
  8. package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-D0enjyj9.js} +1 -1
  9. package/dist/{chart-input-r4S3-QCT.js → chart-input-D4_Awave.js} +2 -2
  10. package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-D4-pdgpj.js} +12 -1
  11. package/dist/charts/cartesian.js +263 -243
  12. package/dist/charts/distribution.js +4 -4
  13. package/dist/charts/graph.js +4 -4
  14. package/dist/charts/hierarchy.js +4 -4
  15. package/dist/charts/matrix.js +4 -4
  16. package/dist/charts/timeline.js +3 -3
  17. package/dist/charts.js +2 -2
  18. package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
  19. package/dist/collections.js +475 -354
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +3 -3
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +2 -2
  25. package/dist/{content-link-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/feedback.js +1 -1
  28. package/dist/forms/dates.js +89 -12
  29. package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
  30. package/dist/forms.js +3 -3
  31. package/dist/index.js +1 -1
  32. package/dist/layout.js +275 -249
  33. package/dist/mechane-elements-catalog.mjs +4 -0
  34. package/dist/navigation.js +2 -2
  35. package/dist/packages/charts/src/chart-inspection.d.ts +1 -0
  36. package/dist/packages/charts/src/chart-navigation.d.ts +2 -0
  37. package/dist/packages/charts/src/chart-surface.d.ts +2 -0
  38. package/dist/packages/collections/src/collection-controls.d.ts +2 -1
  39. package/dist/packages/collections/src/data-table.d.ts +12 -8
  40. package/dist/packages/collections/src/index.d.ts +1 -0
  41. package/dist/packages/collections/src/table-results.d.ts +26 -0
  42. package/dist/packages/core/src/actions.d.ts +6 -0
  43. package/dist/packages/core/src/index.d.ts +1 -1
  44. package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
  45. package/dist/packages/forms/src/dates/index.d.ts +2 -0
  46. package/dist/packages/forms/src/form-status.d.ts +7 -0
  47. package/dist/packages/forms/src/forms.d.ts +3 -1
  48. package/dist/packages/forms/src/index.d.ts +2 -0
  49. package/dist/packages/foundations/src/agent/index.d.ts +2 -2
  50. package/dist/packages/layout/src/page-context.d.ts +4 -0
  51. package/dist/packages/navigation/src/index.d.ts +1 -0
  52. package/dist/packages/navigation/src/route-link.d.ts +2 -0
  53. package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
  54. package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
  55. package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
  56. package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
  57. package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
  58. package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
  59. package/dist/styles2.css +18 -0
  60. package/package.json +9 -2
  61. package/recipes/consequential-form.tsx +132 -0
  62. package/recipes/searchable-collection.tsx +106 -0
  63. package/recipes/sectioned-report.tsx +58 -0
  64. package/recipes/tabbed-workspace.tsx +84 -0
  65. package/skills/extend-elements/SKILL.md +28 -0
  66. package/skills/use-elements/SKILL.md +36 -0
  67. package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
  68. package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +3 -6
@@ -7,11 +7,11 @@ import { mergeProps as c, renderElement as l } from "@ui-sdk/react/primitive";
7
7
  import { Children as u, useEffect as d, useId as f, useRef as p, useState as m } from "react";
8
8
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
9
9
  import { Avatar as v, AvatarFallback as y, AvatarImage as b } from "@ui-sdk/react/avatar";
10
- import { Check as x, ChevronDown as S, Circle as C, CircleCheck as w, CircleX as T, Clock as E, Copy as ee } from "lucide-react";
11
- import * as D from "@ui-sdk/react/accordion";
12
- import * as O from "@ui-sdk/react/collapsible";
10
+ import { Check as x, ChevronDown as S, Circle as C, CircleCheck as w, CircleX as T, Clock as E, Copy as D } from "lucide-react";
11
+ import * as O from "@ui-sdk/react/accordion";
12
+ import * as k from "@ui-sdk/react/collapsible";
13
13
  // packages/core/src/actions.tsx
14
- var k = {
14
+ var A = {
15
15
  button: {
16
16
  kMnn75: "xkrqix3",
17
17
  kkrTdU: "x1ypdohk",
@@ -142,26 +142,26 @@ var k = {
142
142
  kiEn40: "x7s97pk",
143
143
  $$css: !0
144
144
  }
145
- }, A = {
145
+ }, j = {
146
146
  standard: { $$css: !0 },
147
147
  compact: {
148
148
  kOIVth: "xva7r70",
149
149
  $$css: !0
150
150
  }
151
- }, j = {
151
+ }, ee = {
152
152
  neutral: {
153
- solid: k.solidNeutral,
154
- outline: k.outlineNeutral,
155
- ghost: k.ghostNeutral
153
+ solid: A.solidNeutral,
154
+ outline: A.outlineNeutral,
155
+ ghost: A.ghostNeutral
156
156
  },
157
157
  danger: {
158
- solid: k.solidDanger,
159
- outline: k.outlineDanger,
160
- ghost: k.ghostDanger
158
+ solid: A.solidDanger,
159
+ outline: A.outlineDanger,
160
+ ghost: A.ghostDanger
161
161
  }
162
162
  }, M = {
163
- neutral: k.neutralText,
164
- danger: k.dangerText
163
+ neutral: A.neutralText,
164
+ danger: A.dangerText
165
165
  };
166
166
  function N(e, t, n) {
167
167
  if (e !== "danger") return;
@@ -175,17 +175,17 @@ function P({ id: e, density: t, children: n, isPending: r = !1, pendingLabel: i
175
175
  className: "xwz0xwf xeuugli x193iq5w",
176
176
  children: [/* @__PURE__ */ g("span", {
177
177
  "aria-hidden": a,
178
- ...o.props(k.label, A[t], a && k.hidden),
178
+ ...o.props(A.label, j[t], a && A.hidden),
179
179
  children: n
180
180
  }), i !== void 0 && /* @__PURE__ */ g("span", {
181
181
  "aria-hidden": !r,
182
- ...o.props(k.label, A[t], !r && k.hidden),
182
+ ...o.props(A.label, j[t], !r && A.hidden),
183
183
  children: i
184
184
  })]
185
185
  });
186
186
  }
187
187
  function F({ variant: i = "outline", tone: a = "neutral", density: c = "standard", isIconOnly: l = !1, isPending: u = !1, pendingLabel: d, children: p, className: m, style: h, xstyle: _, onClick: v, disabled: y = !1, ...b }) {
188
- let x = f(), S = o.props(t.base, t.button, k.button, j[a][i], e[c], n[c], l && t.iconButton, _);
188
+ let x = f(), S = o.props(t.base, t.button, A.button, ee[a][i], e[c], n[c], l && t.iconButton, _);
189
189
  return /* @__PURE__ */ g(s, {
190
190
  ...b,
191
191
  "data-agent-confirm": b["data-agent-confirm"] ?? N(a, b["aria-label"], p),
@@ -222,8 +222,8 @@ function L({ children: e, ...t }) {
222
222
  })
223
223
  });
224
224
  }
225
- function te({ tone: e = "neutral", density: t = "standard", isPending: i = !1, pendingLabel: a, children: c, className: l, style: u, xstyle: d, onClick: p, disabled: m = !1, ...h }) {
226
- let _ = f(), v = o.props(k.text, n[t], M[e], d);
225
+ function R({ tone: e = "neutral", density: t = "standard", isPending: i = !1, pendingLabel: a, children: c, className: l, style: u, xstyle: d, onClick: p, disabled: m = !1, ...h }) {
226
+ let _ = f(), v = o.props(A.text, n[t], M[e], d);
227
227
  return /* @__PURE__ */ g(s, {
228
228
  ...h,
229
229
  "data-agent-confirm": h["data-agent-confirm"] ?? N(e, h["aria-label"], c),
@@ -246,11 +246,11 @@ function te({ tone: e = "neutral", density: t = "standard", isPending: i = !1, p
246
246
  })
247
247
  });
248
248
  }
249
- function ne({ xstyle: e, ...t }) {
250
- return /* @__PURE__ */ g("a", { ...c(o.props(k.link, e), t) });
249
+ function te({ xstyle: e, ...t }) {
250
+ return /* @__PURE__ */ g("a", { ...c(o.props(A.link, e), t) });
251
251
  }
252
- function re({ children: r, density: i = "standard", xstyle: a, render: s, ref: u, ...d }) {
253
- return l("a", c(o.props(t.base, t.button, k.button, k.ghostNeutral, e[i], t.iconButton, n[i], a), d, {
252
+ function ne({ children: r, density: i = "standard", xstyle: a, render: s, ref: u, ...d }) {
253
+ return l("a", c(o.props(t.base, t.button, A.button, A.ghostNeutral, e[i], t.iconButton, n[i], a), d, {
254
254
  ref: u,
255
255
  children: /* @__PURE__ */ g("span", {
256
256
  className: "xtwnzbg x18utl2x x2lah0s x3nfvp2 x6s0dn4 xl56j7k",
@@ -258,8 +258,18 @@ function re({ children: r, density: i = "standard", xstyle: a, render: s, ref: u
258
258
  })
259
259
  }), s);
260
260
  }
261
+ function re({ confirmation: e, onClick: t, tone: n = "neutral", ...r }) {
262
+ return /* @__PURE__ */ g(I, {
263
+ ...r,
264
+ type: "button",
265
+ variant: "solid",
266
+ tone: n,
267
+ "data-agent-confirm": e,
268
+ onClick: t
269
+ });
270
+ }
261
271
  // packages/core/src/avatar.tsx
262
- var R = {
272
+ var z = {
263
273
  avatar: {
264
274
  kB7OPa: "x9f619",
265
275
  k1xSpc: "x3nfvp2",
@@ -300,18 +310,18 @@ var R = {
300
310
  $$css: !0
301
311
  }
302
312
  }, ie = {
303
- sm: R.small,
304
- md: R.medium,
305
- lg: R.large
313
+ sm: z.small,
314
+ md: z.medium,
315
+ lg: z.large
306
316
  }, ae = {
307
- rounded: R.rounded,
308
- circle: R.circle
317
+ rounded: z.rounded,
318
+ circle: z.circle
309
319
  };
310
- function z({ label: e, fallback: t, src: n, size: r = "md", shape: i = "rounded" }) {
320
+ function B({ label: e, fallback: t, src: n, size: r = "md", shape: i = "rounded" }) {
311
321
  return /* @__PURE__ */ _(v, {
312
322
  role: "img",
313
323
  "aria-label": e,
314
- ...o.props(R.avatar, ie[r], ae[i]),
324
+ ...o.props(z.avatar, ie[r], ae[i]),
315
325
  children: [n !== void 0 && /* @__PURE__ */ g(b, {
316
326
  src: n,
317
327
  alt: "",
@@ -323,8 +333,8 @@ function z({ label: e, fallback: t, src: n, size: r = "md", shape: i = "rounded"
323
333
  });
324
334
  }
325
335
  // packages/core/src/agent-avatar-glyphs.tsx
326
- var B = 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(".")), V = Object.freeze([
327
- ...B,
336
+ var V = 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(".")), H = Object.freeze([
337
+ ...V,
328
338
  "rosette",
329
339
  "blossom",
330
340
  "pinwheel",
@@ -342,14 +352,14 @@ var B = Object.freeze(/* @__PURE__ */ "spark.facet.orbit.loop.clover.petal.wheel
342
352
  "tessera",
343
353
  "triad"
344
354
  ]);
345
- function H(e, t) {
355
+ function U(e, t) {
346
356
  return e.map((e) => /* @__PURE__ */ g("g", {
347
357
  transform: `rotate(${e} 12 12)`,
348
358
  children: t
349
359
  }, e));
350
360
  }
351
- var U = {
352
- spark: H([
361
+ var W = {
362
+ spark: U([
353
363
  0,
354
364
  45,
355
365
  90,
@@ -359,14 +369,14 @@ var U = {
359
369
  270,
360
370
  315
361
371
  ], /* @__PURE__ */ g("path", { d: "m12 2 5.4 7-5.4 6.2-3.4-6.2Z" })),
362
- facet: H([
372
+ facet: U([
363
373
  0,
364
374
  72,
365
375
  144,
366
376
  216,
367
377
  288
368
378
  ], /* @__PURE__ */ g("path", { d: "m12 2 6 7-6 5-4-5Z" })),
369
- orbit: /* @__PURE__ */ _(h, { children: [H([
379
+ orbit: /* @__PURE__ */ _(h, { children: [U([
370
380
  0,
371
381
  60,
372
382
  120
@@ -382,12 +392,12 @@ var U = {
382
392
  r: "2.8",
383
393
  fillOpacity: ".75"
384
394
  })] }),
385
- loop: H([
395
+ loop: U([
386
396
  0,
387
397
  120,
388
398
  240
389
399
  ], /* @__PURE__ */ g("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" })),
390
- clover: H([
400
+ clover: U([
391
401
  0,
392
402
  90,
393
403
  180,
@@ -397,14 +407,14 @@ var U = {
397
407
  cy: "7.4",
398
408
  r: "5.3"
399
409
  })),
400
- petal: H([
410
+ petal: U([
401
411
  0,
402
412
  72,
403
413
  144,
404
414
  216,
405
415
  288
406
416
  ], /* @__PURE__ */ g("path", { d: "M12 2c5 1 6 6 0 10-6-4-5-9 0-10Z" })),
407
- wheel: /* @__PURE__ */ _(h, { children: [H([
417
+ wheel: /* @__PURE__ */ _(h, { children: [U([
408
418
  0,
409
419
  45,
410
420
  90,
@@ -424,7 +434,7 @@ var U = {
424
434
  r: "3.2",
425
435
  fillOpacity: ".65"
426
436
  })] }),
427
- compass: H([
437
+ compass: U([
428
438
  0,
429
439
  45,
430
440
  90,
@@ -435,7 +445,7 @@ var U = {
435
445
  315
436
446
  ], /* @__PURE__ */ g("path", { d: "m12 1.5 3 7-3 3.5-3-3.5Z" })),
437
447
  grid: /* @__PURE__ */ _(h, { children: [
438
- H([
448
+ U([
439
449
  0,
440
450
  90,
441
451
  180,
@@ -445,7 +455,7 @@ var U = {
445
455
  cy: "6.8",
446
456
  r: "3.5"
447
457
  })),
448
- H([
458
+ U([
449
459
  0,
450
460
  90,
451
461
  180,
@@ -465,13 +475,13 @@ var U = {
465
475
  transform: "rotate(45 12 12)"
466
476
  })
467
477
  ] }),
468
- steps: H([
478
+ steps: U([
469
479
  0,
470
480
  90,
471
481
  180,
472
482
  270
473
483
  ], /* @__PURE__ */ g("path", { d: "M4 3h9v5H9v5H4Z" })),
474
- chevron: H([
484
+ chevron: U([
475
485
  0,
476
486
  90,
477
487
  180,
@@ -551,7 +561,7 @@ var U = {
551
561
  fillOpacity: ".45"
552
562
  })
553
563
  ] }),
554
- peak: H([
564
+ peak: U([
555
565
  0,
556
566
  120,
557
567
  240
@@ -559,7 +569,7 @@ var U = {
559
569
  d: "M12 2 17 12H7Z",
560
570
  fillOpacity: ".6"
561
571
  })),
562
- zigzag: H([
572
+ zigzag: U([
563
573
  0,
564
574
  90,
565
575
  180,
@@ -587,7 +597,7 @@ var U = {
587
597
  fillOpacity: ".25"
588
598
  })
589
599
  ] }),
590
- kite: H([
600
+ kite: U([
591
601
  0,
592
602
  90,
593
603
  180,
@@ -629,7 +639,7 @@ var U = {
629
639
  fillOpacity: ".45"
630
640
  })
631
641
  ] }),
632
- frame: H([
642
+ frame: U([
633
643
  0,
634
644
  90,
635
645
  180,
@@ -641,13 +651,13 @@ var U = {
641
651
  height: "11",
642
652
  rx: "3.6"
643
653
  })),
644
- brackets: H([
654
+ brackets: U([
645
655
  0,
646
656
  90,
647
657
  180,
648
658
  270
649
659
  ], /* @__PURE__ */ g("path", { d: "M3 4a1 1 0 0 1 1-1h8v4H7v5H3Z" })),
650
- diamond: /* @__PURE__ */ _(h, { children: [H([
660
+ diamond: /* @__PURE__ */ _(h, { children: [U([
651
661
  0,
652
662
  90,
653
663
  180,
@@ -665,7 +675,7 @@ var U = {
665
675
  r: "3",
666
676
  fillOpacity: ".5"
667
677
  })] }),
668
- hexagon: H([
678
+ hexagon: U([
669
679
  0,
670
680
  60,
671
681
  120,
@@ -709,7 +719,7 @@ var U = {
709
719
  fill: "none"
710
720
  })
711
721
  ] }),
712
- crest: H([
722
+ crest: U([
713
723
  0,
714
724
  120,
715
725
  240
@@ -717,7 +727,7 @@ var U = {
717
727
  d: "M6 3h12v5c0 4-3.5 7.2-6 9-2.5-1.8-6-5-6-9Z",
718
728
  fillOpacity: ".55"
719
729
  })),
720
- bolt: H([
730
+ bolt: U([
721
731
  0,
722
732
  120,
723
733
  240
@@ -725,12 +735,12 @@ var U = {
725
735
  d: "m10 2 9 8-7 1 1 6-9-8 7-1Z",
726
736
  fillOpacity: ".6"
727
737
  })),
728
- link: H([0, 90], /* @__PURE__ */ g("path", {
738
+ link: U([0, 90], /* @__PURE__ */ g("path", {
729
739
  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",
730
740
  fillRule: "evenodd",
731
741
  fillOpacity: ".6"
732
742
  })),
733
- split: H([
743
+ split: U([
734
744
  0,
735
745
  90,
736
746
  180,
@@ -739,7 +749,7 @@ var U = {
739
749
  d: "M12 2a10 10 0 0 1 10 10H9a3 3 0 0 1 3-3Z",
740
750
  fillOpacity: ".6"
741
751
  })),
742
- aster: H([
752
+ aster: U([
743
753
  0,
744
754
  60,
745
755
  120
@@ -756,7 +766,7 @@ var U = {
756
766
  cy: "12",
757
767
  r: "9.3",
758
768
  fillOpacity: ".4"
759
- }), H([
769
+ }), U([
760
770
  0,
761
771
  90,
762
772
  180,
@@ -767,7 +777,7 @@ var U = {
767
777
  r: "4.8",
768
778
  fillOpacity: ".35"
769
779
  }))] }),
770
- rosette: H([
780
+ rosette: U([
771
781
  0,
772
782
  60,
773
783
  120,
@@ -775,7 +785,7 @@ var U = {
775
785
  240,
776
786
  300
777
787
  ], /* @__PURE__ */ g("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" })),
778
- blossom: /* @__PURE__ */ _(h, { children: [H([
788
+ blossom: /* @__PURE__ */ _(h, { children: [U([
779
789
  0,
780
790
  72,
781
791
  144,
@@ -791,19 +801,19 @@ var U = {
791
801
  r: "3.8",
792
802
  fillOpacity: ".4"
793
803
  })] }),
794
- pinwheel: H([
804
+ pinwheel: U([
795
805
  0,
796
806
  72,
797
807
  144,
798
808
  216,
799
809
  288
800
810
  ], /* @__PURE__ */ g("path", { d: "M12 12C5 15 1 8 6 3c5-2 8 1 8 5-2-2-5-1-5 1s1 3 3 3Z" })),
801
- lantern: /* @__PURE__ */ _(h, { children: [H([
811
+ lantern: /* @__PURE__ */ _(h, { children: [U([
802
812
  0,
803
813
  90,
804
814
  180,
805
815
  270
806
- ], /* @__PURE__ */ g("path", { d: "m12 1.5 4 6-4 5-4-5Z" })), H([
816
+ ], /* @__PURE__ */ g("path", { d: "m12 1.5 4 6-4 5-4-5Z" })), U([
807
817
  45,
808
818
  135,
809
819
  225,
@@ -836,13 +846,13 @@ var U = {
836
846
  fillOpacity: ".45"
837
847
  }, e))] }),
838
848
  mosaic: /* @__PURE__ */ _(h, { children: [
839
- H([
849
+ U([
840
850
  0,
841
851
  90,
842
852
  180,
843
853
  270
844
854
  ], /* @__PURE__ */ g("path", { d: "m12 1.5 4.5 4.5-4.5 4.5L7.5 6Z" })),
845
- H([
855
+ U([
846
856
  0,
847
857
  90,
848
858
  180,
@@ -853,7 +863,7 @@ var U = {
853
863
  })),
854
864
  /* @__PURE__ */ g("path", { d: "m12 8 4 4-4 4-4-4Z" })
855
865
  ] }),
856
- dahlia: H([
866
+ dahlia: U([
857
867
  0,
858
868
  30,
859
869
  60,
@@ -894,7 +904,7 @@ var U = {
894
904
  cy: "12",
895
905
  r: "9.5",
896
906
  fillOpacity: ".25"
897
- }), H([
907
+ }), U([
898
908
  0,
899
909
  60,
900
910
  120,
@@ -945,7 +955,7 @@ var U = {
945
955
  fillOpacity: ".6"
946
956
  })
947
957
  ] }),
948
- gyre: H([
958
+ gyre: U([
949
959
  0,
950
960
  90,
951
961
  180,
@@ -958,7 +968,7 @@ var U = {
958
968
  d: "m2 5 10 7 10-7v14l-10-7-10 7Z",
959
969
  fillOpacity: ".55"
960
970
  })] }),
961
- tessera: H([
971
+ tessera: U([
962
972
  0,
963
973
  60,
964
974
  120,
@@ -966,7 +976,7 @@ var U = {
966
976
  240,
967
977
  300
968
978
  ], /* @__PURE__ */ g("path", { d: "m12 2 8.6 5-3 5.2L9 7.2Z" })),
969
- triad: H([
979
+ triad: U([
970
980
  0,
971
981
  120,
972
982
  240
@@ -974,7 +984,7 @@ var U = {
974
984
  d: "M12 2C4 5 3 12 12 17c9-5 8-12 0-15Z",
975
985
  fillOpacity: ".6"
976
986
  }))
977
- }, W = Object.freeze([
987
+ }, G = Object.freeze([
978
988
  "ember",
979
989
  "coral",
980
990
  "rose",
@@ -999,7 +1009,7 @@ var U = {
999
1009
  "ochre",
1000
1010
  "amber",
1001
1011
  "copper"
1002
- ]), G = W, K = {
1012
+ ]), K = G, q = {
1003
1013
  root: {
1004
1014
  k1xSpc: "x3nfvp2",
1005
1015
  kmuXW: "x2lah0s",
@@ -1123,45 +1133,45 @@ var U = {
1123
1133
  kMwMTN: "x1b59cz5",
1124
1134
  $$css: !0
1125
1135
  }
1126
- }, q = {
1127
- xs: K.xs,
1128
- sm: K.sm,
1129
- md: K.md,
1130
- lg: K.lg
1131
1136
  }, J = {
1132
- ember: K.ember,
1133
- coral: K.coral,
1134
- rose: K.rose,
1135
- berry: K.berry,
1136
- plum: K.plum,
1137
- orchid: K.orchid,
1138
- violet: K.violet,
1139
- indigo: K.indigo,
1140
- iris: K.iris,
1141
- cobalt: K.cobalt,
1142
- blue: K.blue,
1143
- sky: K.sky,
1144
- cyan: K.cyan,
1145
- lagoon: K.lagoon,
1146
- teal: K.teal,
1147
- jade: K.jade,
1148
- mint: K.mint,
1149
- forest: K.forest,
1150
- leaf: K.leaf,
1151
- moss: K.moss,
1152
- olive: K.olive,
1153
- ochre: K.ochre,
1154
- amber: K.amber,
1155
- copper: K.copper
1137
+ xs: q.xs,
1138
+ sm: q.sm,
1139
+ md: q.md,
1140
+ lg: q.lg
1141
+ }, oe = {
1142
+ ember: q.ember,
1143
+ coral: q.coral,
1144
+ rose: q.rose,
1145
+ berry: q.berry,
1146
+ plum: q.plum,
1147
+ orchid: q.orchid,
1148
+ violet: q.violet,
1149
+ indigo: q.indigo,
1150
+ iris: q.iris,
1151
+ cobalt: q.cobalt,
1152
+ blue: q.blue,
1153
+ sky: q.sky,
1154
+ cyan: q.cyan,
1155
+ lagoon: q.lagoon,
1156
+ teal: q.teal,
1157
+ jade: q.jade,
1158
+ mint: q.mint,
1159
+ forest: q.forest,
1160
+ leaf: q.leaf,
1161
+ moss: q.moss,
1162
+ olive: q.olive,
1163
+ ochre: q.ochre,
1164
+ amber: q.amber,
1165
+ copper: q.copper
1156
1166
  };
1157
1167
  function Y(e) {
1158
1168
  let t = Array.from(e).reduce((e, t) => (e * 31 + (t.codePointAt(0) ?? 0)) % 2147483647, 0);
1159
1169
  return {
1160
- shape: B[t % B.length] ?? "spark",
1161
- color: W[Math.floor(t / B.length) % W.length] ?? "ember"
1170
+ shape: V[t % V.length] ?? "spark",
1171
+ color: G[Math.floor(t / V.length) % G.length] ?? "ember"
1162
1172
  };
1163
1173
  }
1164
- function oe({ seed: e, appearance: t, size: n = "sm", label: r }) {
1174
+ function se({ seed: e, appearance: t, size: n = "sm", label: r }) {
1165
1175
  let i = t ?? Y(e), a = f();
1166
1176
  return /* @__PURE__ */ _("svg", {
1167
1177
  viewBox: "0 0 24 24",
@@ -1174,7 +1184,7 @@ function oe({ seed: e, appearance: t, size: n = "sm", label: r }) {
1174
1184
  role: r === void 0 ? void 0 : "img",
1175
1185
  "aria-label": r,
1176
1186
  "aria-hidden": r === void 0 || void 0,
1177
- ...o.props(K.root, q[n], J[i.color]),
1187
+ ...o.props(q.root, J[n], oe[i.color]),
1178
1188
  children: [/* @__PURE__ */ g("defs", { children: /* @__PURE__ */ _("linearGradient", {
1179
1189
  id: a,
1180
1190
  x1: "0",
@@ -1198,7 +1208,7 @@ function oe({ seed: e, appearance: t, size: n = "sm", label: r }) {
1198
1208
  stopOpacity: ".8"
1199
1209
  })
1200
1210
  ]
1201
- }) }), U[i.shape]]
1211
+ }) }), W[i.shape]]
1202
1212
  });
1203
1213
  }
1204
1214
  // packages/core/src/copy-value.tsx
@@ -1216,18 +1226,18 @@ var X = {
1216
1226
  k33iCy: "xlshs6z",
1217
1227
  $$css: !0
1218
1228
  }
1219
- }, se = 1600, ce = /* @__PURE__ */ new Set(["copied", "failed"]), le = {
1229
+ }, ce = 1600, le = /* @__PURE__ */ new Set(["copied", "failed"]), ue = {
1220
1230
  idle: X.visible,
1221
1231
  pending: X.visible,
1222
1232
  copied: X.hidden,
1223
1233
  failed: X.visible
1224
- }, ue = {
1234
+ }, de = {
1225
1235
  idle: X.hidden,
1226
1236
  pending: X.hidden,
1227
1237
  copied: X.visible,
1228
1238
  failed: X.hidden
1229
1239
  };
1230
- function de({ value: e, label: t, display: n = "value", children: a, className: c, style: l, disabled: u = !1, onClick: f, render: h, ...v }) {
1240
+ function fe({ value: e, label: t, display: n = "value", children: a, className: c, style: l, disabled: u = !1, onClick: f, render: h, ...v }) {
1231
1241
  let [y, b] = m({
1232
1242
  value: e,
1233
1243
  status: "idle"
@@ -1235,13 +1245,13 @@ function de({ value: e, label: t, display: n = "value", children: a, className:
1235
1245
  d(() => () => {
1236
1246
  S.current += 1;
1237
1247
  }, [e]), d(() => {
1238
- if (!ce.has(y.status)) return;
1248
+ if (!le.has(y.status)) return;
1239
1249
  let t = globalThis.setTimeout(() => {
1240
1250
  b((t) => t === y ? {
1241
1251
  value: e,
1242
1252
  status: "idle"
1243
1253
  } : t);
1244
- }, se);
1254
+ }, ce);
1245
1255
  return () => globalThis.clearTimeout(t);
1246
1256
  }, [y, e]);
1247
1257
  async function w() {
@@ -1263,7 +1273,7 @@ function de({ value: e, label: t, display: n = "value", children: a, className:
1263
1273
  });
1264
1274
  }
1265
1275
  }
1266
- let T = C === "copied" ? x : ee, E = {
1276
+ let T = C === "copied" ? x : D, E = {
1267
1277
  idle: "",
1268
1278
  pending: "",
1269
1279
  copied: `${t} copied`,
@@ -1294,11 +1304,11 @@ function de({ value: e, label: t, display: n = "value", children: a, className:
1294
1304
  className: "xwz0xwf xeuugli",
1295
1305
  children: [/* @__PURE__ */ g("span", {
1296
1306
  "aria-hidden": C === "copied",
1297
- ...o.props(X.value, le[C]),
1307
+ ...o.props(X.value, ue[C]),
1298
1308
  children: a ?? (typeof e == "string" ? e : t)
1299
1309
  }), /* @__PURE__ */ g("span", {
1300
1310
  "aria-hidden": C !== "copied",
1301
- ...o.props(X.value, ue[C]),
1311
+ ...o.props(X.value, de[C]),
1302
1312
  children: "Copied"
1303
1313
  })]
1304
1314
  }),
@@ -1371,15 +1381,15 @@ var Z = {
1371
1381
  k3aq6I: "x9tu13d x1yphl2d",
1372
1382
  $$css: !0
1373
1383
  }
1374
- }, fe = {
1384
+ }, pe = {
1375
1385
  default: null,
1376
1386
  inline: Z.inline
1377
- }, pe = {
1387
+ }, me = {
1378
1388
  default: null,
1379
1389
  inline: Z.inlineIcon
1380
1390
  };
1381
- function me({ className: e, style: t, ...n }) {
1382
- return /* @__PURE__ */ g(D.Accordion, {
1391
+ function he({ className: e, style: t, ...n }) {
1392
+ return /* @__PURE__ */ g(O.Accordion, {
1383
1393
  ...n,
1384
1394
  ...r({
1385
1395
  className: e,
@@ -1388,8 +1398,8 @@ function me({ className: e, style: t, ...n }) {
1388
1398
  })
1389
1399
  });
1390
1400
  }
1391
- function he({ className: e, style: t, ...n }) {
1392
- return /* @__PURE__ */ g(D.AccordionItem, {
1401
+ function ge({ className: e, style: t, ...n }) {
1402
+ return /* @__PURE__ */ g(O.AccordionItem, {
1393
1403
  ...n,
1394
1404
  ...r({
1395
1405
  className: e,
@@ -1398,8 +1408,8 @@ function he({ className: e, style: t, ...n }) {
1398
1408
  })
1399
1409
  });
1400
1410
  }
1401
- function ge({ className: e, style: t, ...n }) {
1402
- return /* @__PURE__ */ g(D.AccordionHeader, {
1411
+ function _e({ className: e, style: t, ...n }) {
1412
+ return /* @__PURE__ */ g(O.AccordionHeader, {
1403
1413
  ...n,
1404
1414
  ...r({
1405
1415
  className: e,
@@ -1408,8 +1418,8 @@ function ge({ className: e, style: t, ...n }) {
1408
1418
  })
1409
1419
  });
1410
1420
  }
1411
- function _e({ className: e, style: t, children: n, ...i }) {
1412
- return /* @__PURE__ */ _(D.AccordionTrigger, {
1421
+ function ve({ className: e, style: t, children: n, ...i }) {
1422
+ return /* @__PURE__ */ _(O.AccordionTrigger, {
1413
1423
  ...i,
1414
1424
  ...r({
1415
1425
  className: e,
@@ -1422,8 +1432,8 @@ function _e({ className: e, style: t, children: n, ...i }) {
1422
1432
  })]
1423
1433
  });
1424
1434
  }
1425
- function ve({ className: e, style: t, ...n }) {
1426
- return /* @__PURE__ */ g(D.AccordionPanel, {
1435
+ function ye({ className: e, style: t, ...n }) {
1436
+ return /* @__PURE__ */ g(O.AccordionPanel, {
1427
1437
  ...n,
1428
1438
  ...r({
1429
1439
  className: e,
@@ -1432,8 +1442,8 @@ function ve({ className: e, style: t, ...n }) {
1432
1442
  })
1433
1443
  });
1434
1444
  }
1435
- function ye({ className: e, style: t, ...n }) {
1436
- return /* @__PURE__ */ g(O.Collapsible, {
1445
+ function be({ className: e, style: t, ...n }) {
1446
+ return /* @__PURE__ */ g(k.Collapsible, {
1437
1447
  ...n,
1438
1448
  ...r({
1439
1449
  className: e,
@@ -1442,26 +1452,26 @@ function ye({ className: e, style: t, ...n }) {
1442
1452
  })
1443
1453
  });
1444
1454
  }
1445
- var be = {
1455
+ var xe = {
1446
1456
  "x-default-marker": "x-default-marker",
1447
1457
  $$css: !0
1448
1458
  };
1449
- function xe({ className: e, style: t, children: n, variant: i = "default", ...a }) {
1450
- return /* @__PURE__ */ _(O.CollapsibleTrigger, {
1459
+ function Se({ className: e, style: t, children: n, variant: i = "default", ...a }) {
1460
+ return /* @__PURE__ */ _(k.CollapsibleTrigger, {
1451
1461
  ...a,
1452
1462
  ...r({
1453
1463
  className: e,
1454
1464
  style: t,
1455
- styles: o.props(Z.trigger, fe[i], be)
1465
+ styles: o.props(Z.trigger, pe[i], xe)
1456
1466
  }),
1457
1467
  children: [n, /* @__PURE__ */ g(S, {
1458
1468
  "aria-hidden": !0,
1459
- ...o.props(Z.icon, pe[i])
1469
+ ...o.props(Z.icon, me[i])
1460
1470
  })]
1461
1471
  });
1462
1472
  }
1463
- function Se({ className: e, style: t, ...n }) {
1464
- return /* @__PURE__ */ g(O.CollapsiblePanel, {
1473
+ function Ce({ className: e, style: t, ...n }) {
1474
+ return /* @__PURE__ */ g(k.CollapsiblePanel, {
1465
1475
  ...n,
1466
1476
  ...r({
1467
1477
  className: e,
@@ -1470,17 +1480,17 @@ function Se({ className: e, style: t, ...n }) {
1470
1480
  })
1471
1481
  });
1472
1482
  }
1473
- var Ce = {
1474
- Root: me,
1475
- Item: he,
1476
- Header: ge,
1477
- Trigger: _e,
1478
- Panel: ve
1479
- }, we = {
1480
- Root: ye,
1481
- Trigger: xe,
1482
- Panel: Se
1483
- }, Te = { link: {
1483
+ var we = {
1484
+ Root: he,
1485
+ Item: ge,
1486
+ Header: _e,
1487
+ Trigger: ve,
1488
+ Panel: ye
1489
+ }, Te = {
1490
+ Root: be,
1491
+ Trigger: Se,
1492
+ Panel: Ce
1493
+ }, Ee = { link: {
1484
1494
  k1xSpc: "x1lliihq",
1485
1495
  kB7OPa: "x9f619",
1486
1496
  k7Eaqz: "xeuugli",
@@ -1503,35 +1513,35 @@ var Ce = {
1503
1513
  kiEn40: "x8fq8g9",
1504
1514
  $$css: !0
1505
1515
  } };
1506
- function Ee({ isPadded: e = !0, ...t }) {
1516
+ function De({ isPadded: e = !0, ...t }) {
1507
1517
  return /* @__PURE__ */ g("section", { ...c({
1508
1518
  0: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel" },
1509
1519
  1: { className: "xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr x1hz01jw xj57cvi xtqrqnz x1778rvt xbixft xvmahel x1jvlu93" }
1510
1520
  }[!!e | 0], t) });
1511
1521
  }
1512
- function De({ xstyle: e, ...t }) {
1513
- return /* @__PURE__ */ g("a", { ...c(o.props(Te.link, e), t) });
1522
+ function Oe({ xstyle: e, ...t }) {
1523
+ return /* @__PURE__ */ g("a", { ...c(o.props(Ee.link, e), t) });
1514
1524
  }
1515
- function Oe({ shouldSpaceBetween: e = !1, ...t }) {
1525
+ function ke({ shouldSpaceBetween: e = !1, ...t }) {
1516
1526
  return /* @__PURE__ */ g("div", { ...c({
1517
1527
  0: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli" },
1518
1528
  1: { className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli x1qughib" }
1519
1529
  }[!!e | 0], t) });
1520
1530
  }
1521
- function ke({ isCompact: e = !1, ...t }) {
1531
+ function Ae({ isCompact: e = !1, ...t }) {
1522
1532
  return /* @__PURE__ */ g("div", { ...c({
1523
1533
  0: { className: "x78zum5 xdt5ytf x1j825kq xeuugli" },
1524
1534
  1: { className: "x78zum5 xdt5ytf xeuugli x1hnptsi" }
1525
1535
  }[!!e | 0], t) });
1526
1536
  }
1527
- function Ae(e) {
1537
+ function je(e) {
1528
1538
  return /* @__PURE__ */ g("div", { ...c({ className: "xrvj5dj xhuszhj x1m6b44x xeuugli" }, e) });
1529
1539
  }
1530
- function je(e) {
1540
+ function Me(e) {
1531
1541
  return /* @__PURE__ */ g("hr", { ...c({ className: "xc342km x178xt8z x1y0btm7 x1ey3b81 x1ghz6dp" }, e) });
1532
1542
  }
1533
1543
  // packages/core/src/section-heading.tsx
1534
- var Me = { root: {
1544
+ var Ne = { root: {
1535
1545
  kOIVth: "x1n8ia3y",
1536
1546
  kWkggS: "x1r7kqkb",
1537
1547
  kMwMTN: "xbixft",
@@ -1540,7 +1550,7 @@ var Me = { root: {
1540
1550
  kLWn49: "x1778rvt",
1541
1551
  $$css: !0
1542
1552
  } };
1543
- function Ne({ title: e, id: t, meta: n, actions: r }) {
1553
+ function Pe({ title: e, id: t, meta: n, actions: r }) {
1544
1554
  let i = u.toArray(n).length > 0, s = u.toArray(r).length > 0, c = i || s, l = i && /* @__PURE__ */ g("div", {
1545
1555
  ...o.props(a.meta),
1546
1556
  children: n
@@ -1549,7 +1559,7 @@ function Ne({ title: e, id: t, meta: n, actions: r }) {
1549
1559
  children: r
1550
1560
  });
1551
1561
  return /* @__PURE__ */ _("div", {
1552
- ...o.props(a.row, a.blockEnd, Me.root),
1562
+ ...o.props(a.row, a.blockEnd, Ne.root),
1553
1563
  children: [/* @__PURE__ */ g("h2", {
1554
1564
  id: t,
1555
1565
  ...o.props(a.title),
@@ -1661,7 +1671,7 @@ var Q = {
1661
1671
  kMwMTN: "xr5kp14",
1662
1672
  $$css: !0
1663
1673
  }
1664
- }, Pe = {
1674
+ }, $ = {
1665
1675
  body: Q.body,
1666
1676
  caption: Q.caption,
1667
1677
  mono: Q.mono,
@@ -1686,27 +1696,27 @@ var Q = {
1686
1696
  negative: T
1687
1697
  };
1688
1698
  function ze({ variant: e = "body", tone: t = "ink", xstyle: n, ...r }) {
1689
- return /* @__PURE__ */ g("span", { ...c(o.props(Q.text, Pe[e], Fe[t], n), r) });
1699
+ return /* @__PURE__ */ g("span", { ...c(o.props(Q.text, $[e], Fe[t], n), r) });
1690
1700
  }
1691
- function $({ isCompact: e = !1, ...t }) {
1701
+ function Be({ isCompact: e = !1, ...t }) {
1692
1702
  return /* @__PURE__ */ g("h1", { ...c({
1693
1703
  0: { className: "x1ghz6dp x1hz01jw xvmahel xc0f4dz xvukjed xzju6ct x1vxm5eg x1b5ytql x1wjjqco xbixft xj0a0fe" },
1694
1704
  1: { className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }
1695
1705
  }[!!e | 0], t) });
1696
1706
  }
1697
- function Be(e) {
1707
+ function Ve(e) {
1698
1708
  return /* @__PURE__ */ g("h2", { ...c({ className: "x1ghz6dp x1hz01jw xvmahel x1i2cqwi x4fansv x1b5ytql xbixft xj0a0fe" }, e) });
1699
1709
  }
1700
- function Ve(e) {
1710
+ function He(e) {
1701
1711
  return /* @__PURE__ */ g("p", { ...c({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel xj0a0fe xtqrqnz x1778rvt x153jb6y" }, e) });
1702
1712
  }
1703
- function He(e) {
1713
+ function Ue(e) {
1704
1714
  return /* @__PURE__ */ g("span", { ...c({ className: "x1ghz6dp xj57cvi xvmahel xiard35 xy8obcc x1778rvt xj0a0fe x153jb6y" }, e) });
1705
1715
  }
1706
- function Ue(e) {
1716
+ function We(e) {
1707
1717
  return /* @__PURE__ */ g("pre", { ...c({ className: "x1ghz6dp x1hz01jw xj57cvi xvmahel x1ewvobj x126k92a xj0a0fe x12myhf4 x1ytb0s6 xbixft" }, e) });
1708
1718
  }
1709
- function We({ children: e, tone: t = "neutral", ...n }) {
1719
+ function Ge({ children: e, tone: t = "neutral", ...n }) {
1710
1720
  return /* @__PURE__ */ _("span", {
1711
1721
  ...c(o.props(Q.badge, Ie[t]), n),
1712
1722
  children: [/* @__PURE__ */ g(C, {
@@ -1720,7 +1730,7 @@ function We({ children: e, tone: t = "neutral", ...n }) {
1720
1730
  })]
1721
1731
  });
1722
1732
  }
1723
- function Ge({ children: e, tone: t = "neutral", ...n }) {
1733
+ function Ke({ children: e, tone: t = "neutral", ...n }) {
1724
1734
  let r = Re[t];
1725
1735
  return /* @__PURE__ */ _("span", {
1726
1736
  ...c({ className: "x3nfvp2 x6s0dn4 xbgj81g xbixft x1hz01jw xvmahel xtqrqnz x1778rvt xj57cvi x193iq5w" }, n),
@@ -1734,4 +1744,4 @@ function Ge({ children: e, tone: t = "neutral", ...n }) {
1734
1744
  })]
1735
1745
  });
1736
1746
  }
1737
- export { z as C, te as D, re as E, ne as O, V as S, L as T, we as _, Ue as a, Y as b, ze as c, je as d, Ee as f, Ce as g, De as h, Ve as i, Ne as l, ke as m, $ as n, Ge as o, Oe as p, He as r, Be as s, We as t, Ae as u, de as v, I as w, G as x, oe as y };
1747
+ export { B as C, ne as D, L as E, R as O, H as S, re as T, Te as _, We as a, Y as b, ze as c, Me as d, De as f, we as g, Oe as h, He as i, te as k, Pe as l, Ae as m, Be as n, Ke as o, ke as p, Ue as r, Ve as s, Ge as t, je as u, fe as v, I as w, K as x, se as y };