@mechane-ai/elements 0.45.0 → 0.46.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 (110) hide show
  1. package/README.md +48 -18
  2. package/bin/mechane-elements-catalog.mjs +42 -4
  3. package/dist/ai.js +268 -202
  4. package/dist/catalog.json +91 -31
  5. package/dist/categorical-values-BXi-rJuv.js +74 -0
  6. package/dist/chart-cursor-1mFd48Jc.js +23 -0
  7. package/dist/chart-data-CIJVWCYt.js +21 -0
  8. package/dist/{chart-frame-Ztktqs1b.js → chart-frame-BaxKn_MB.js} +22 -41
  9. package/dist/{chart-input-BO3BqlFO.js → chart-input-Bm82_9Rd.js} +2 -2
  10. package/dist/chart-theme-4zprJ3rW.js +404 -0
  11. package/dist/charts/cartesian.js +1598 -1432
  12. package/dist/charts/distribution.js +476 -404
  13. package/dist/charts/graph.js +363 -349
  14. package/dist/charts/hierarchy.js +103 -94
  15. package/dist/charts/matrix.js +340 -333
  16. package/dist/charts/timeline.js +167 -134
  17. package/dist/charts.js +3 -3
  18. package/dist/{code-block-Cpfr7B6a.js → code-block-DioAM2bZ.js} +67 -52
  19. package/dist/collections.js +1648 -1188
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +67 -66
  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-CGeFFb9F.js → content-link-NWuHp5rC.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/csp.js +6 -11
  28. package/dist/feedback.js +1 -1
  29. package/dist/forms/dates.js +274 -214
  30. package/dist/{forms-DeU0Tiv3.js → forms-CEbwzlRR.js} +50 -41
  31. package/dist/forms.js +3 -3
  32. package/dist/index.js +1 -1
  33. package/dist/layout.js +207 -207
  34. package/dist/navigation.js +4 -3
  35. package/dist/packages/ai/src/conversation.d.ts +2 -0
  36. package/dist/packages/ai/src/prompt-input.d.ts +7 -2
  37. package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -2
  38. package/dist/packages/charts/src/cartesian/index.d.ts +3 -2
  39. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +8 -2
  40. package/dist/packages/charts/src/cartesian/time-series.d.ts +11 -1
  41. package/dist/packages/charts/src/categorical-values.d.ts +14 -9
  42. package/dist/packages/charts/src/chart-frame.d.ts +7 -9
  43. package/dist/packages/charts/src/chart-inspection.d.ts +1 -2
  44. package/dist/packages/charts/src/chart-range.d.ts +33 -0
  45. package/dist/packages/charts/src/chart-rows.d.ts +20 -0
  46. package/dist/packages/charts/src/chart-theme.d.ts +17 -0
  47. package/dist/packages/charts/src/chart.d.ts +81 -0
  48. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +4 -4
  49. package/dist/packages/charts/src/index.d.ts +1 -0
  50. package/dist/packages/charts/src/matrix/matrix-strip.d.ts +3 -3
  51. package/dist/packages/charts/src/plot-width.d.ts +0 -1
  52. package/dist/packages/charts/src/timeline/index.d.ts +1 -1
  53. package/dist/packages/charts/src/timeline/waterfall.d.ts +6 -2
  54. package/dist/packages/collections/src/collection-controls.d.ts +5 -1
  55. package/dist/packages/collections/src/collection-filters.d.ts +4 -1
  56. package/dist/packages/collections/src/control-toolbar.d.ts +13 -0
  57. package/dist/packages/collections/src/data-table-layout.d.ts +78 -0
  58. package/dist/packages/collections/src/data-table-rows.d.ts +54 -0
  59. package/dist/packages/collections/src/data-table-styles.d.ts +340 -0
  60. package/dist/packages/collections/src/data-table-text.d.ts +13 -0
  61. package/dist/packages/collections/src/data-table-trigger.d.ts +23 -0
  62. package/dist/packages/collections/src/data-table.d.ts +3 -85
  63. package/dist/packages/collections/src/index.d.ts +11 -6
  64. package/dist/packages/collections/src/query-controls.d.ts +6 -2
  65. package/dist/packages/collections/src/table-results.d.ts +47 -13
  66. package/dist/packages/collections/src/timeline.d.ts +1 -0
  67. package/dist/packages/collections/src/use-collection-controls.d.ts +2 -1
  68. package/dist/packages/collections/src/use-table-window.d.ts +25 -0
  69. package/dist/packages/content/src/viewer.d.ts +8 -0
  70. package/dist/packages/core/src/disclosure.d.ts +9 -1
  71. package/dist/packages/core/src/index.d.ts +1 -0
  72. package/dist/packages/core/src/route-link.d.ts +11 -0
  73. package/dist/packages/forms/src/dates/date-inputs.d.ts +3 -1
  74. package/dist/packages/forms/src/file-picker.d.ts +15 -0
  75. package/dist/packages/forms/src/form-controls.d.ts +1 -6
  76. package/dist/packages/forms/src/forms.d.ts +4 -1
  77. package/dist/packages/forms/src/index.d.ts +4 -2
  78. package/dist/packages/forms/src/selection.d.ts +14 -0
  79. package/dist/packages/foundations/src/csp/index.d.ts +1 -1
  80. package/dist/packages/foundations/src/csp/provider.d.ts +7 -2
  81. package/dist/packages/navigation/src/index.d.ts +1 -1
  82. package/dist/{pierre-diff-B3tD3-6z.js → pierre-diff-DlvjyuJn.js} +1 -1
  83. package/dist/plot-width-v2c_rA20.js +63 -0
  84. package/dist/{src-gqEebHEa.js → src-1EHkSFS-.js} +395 -274
  85. package/dist/{src-DBNncL7_.js → src-BPTDJqt0.js} +48 -68
  86. package/dist/src-CGc_hjxJ.js +409 -0
  87. package/dist/{src-DcW_gMX8.js → src-CpdJlDhO.js} +480 -362
  88. package/dist/{src-Dcs3SZ9V.js → src-DVHlknB6.js} +1 -1
  89. package/dist/styles2.css +136 -114
  90. package/package.json +1 -4
  91. package/skills/extend-elements/SKILL.md +74 -0
  92. package/skills/review-elements/SKILL.md +76 -0
  93. package/skills/upgrade-elements/SKILL.md +34 -0
  94. package/skills/upgrade-elements/references/releases.md +58 -0
  95. package/skills/use-elements/SKILL.md +64 -13
  96. package/skills/use-elements/references/agent.md +57 -0
  97. package/skills/use-elements/references/charts.md +63 -0
  98. package/skills/use-elements/references/collections.md +89 -0
  99. package/skills/use-elements/references/conversations.md +47 -0
  100. package/skills/use-elements/references/forms.md +81 -0
  101. package/skills/use-elements/references/styling.md +70 -0
  102. package/skills/use-elements/references/workspace.md +3 -3
  103. package/dist/categorical-values-DZLGQVW1.js +0 -63
  104. package/dist/chart-navigation-BAbb5PV9.js +0 -154
  105. package/dist/header-styles-COxCYFZx.js +0 -90
  106. package/dist/packages/charts/src/chart-navigation.d.ts +0 -39
  107. package/dist/packages/charts/src/chart-surface.d.ts +0 -27
  108. package/dist/packages/navigation/src/route-link.d.ts +0 -2
  109. package/dist/plot-width-CIqBiHcd.js +0 -105
  110. package/dist/src-Bk7M67zy.js +0 -396
package/dist/catalog.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@mechane-ai/elements",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "recipes": [
5
5
  {
6
6
  "slug": "allocation-report",
@@ -151,6 +151,10 @@
151
151
  "kind": "value",
152
152
  "declaration": "dist/packages/core/src/copy-value.d.ts"
153
153
  },
154
+ "RouteLink": {
155
+ "kind": "value",
156
+ "declaration": "dist/packages/core/src/route-link.d.ts"
157
+ },
154
158
  "Accordion": {
155
159
  "kind": "value",
156
160
  "declaration": "dist/packages/core/src/disclosure.d.ts"
@@ -237,10 +241,6 @@
237
241
  "kind": "value",
238
242
  "declaration": "dist/packages/forms/src/agent-avatar-picker.d.ts"
239
243
  },
240
- "FilePicker": {
241
- "kind": "value",
242
- "declaration": "dist/packages/forms/src/form-controls.d.ts"
243
- },
244
244
  "Fieldset": {
245
245
  "kind": "value",
246
246
  "declaration": "dist/packages/forms/src/form-controls.d.ts"
@@ -257,6 +257,14 @@
257
257
  "kind": "value",
258
258
  "declaration": "dist/packages/forms/src/form-controls.d.ts"
259
259
  },
260
+ "FilePickerProps": {
261
+ "kind": "type",
262
+ "declaration": "dist/packages/forms/src/file-picker.d.ts"
263
+ },
264
+ "FilePicker": {
265
+ "kind": "value",
266
+ "declaration": "dist/packages/forms/src/file-picker.d.ts"
267
+ },
260
268
  "FormActionsProps": {
261
269
  "kind": "type",
262
270
  "declaration": "dist/packages/forms/src/form-actions.d.ts"
@@ -309,6 +317,10 @@
309
317
  "kind": "value",
310
318
  "declaration": "dist/packages/forms/src/selection.d.ts"
311
319
  },
320
+ "SegmentedControl": {
321
+ "kind": "value",
322
+ "declaration": "dist/packages/forms/src/selection.d.ts"
323
+ },
312
324
  "Switch": {
313
325
  "kind": "value",
314
326
  "declaration": "dist/packages/forms/src/selection.d.ts"
@@ -635,7 +647,7 @@
635
647
  },
636
648
  "RouteLink": {
637
649
  "kind": "value",
638
- "declaration": "dist/packages/navigation/src/route-link.d.ts"
650
+ "declaration": "dist/packages/core/src/index.d.ts"
639
651
  },
640
652
  "SkipLink": {
641
653
  "kind": "value",
@@ -847,6 +859,10 @@
847
859
  "kind": "type",
848
860
  "declaration": "dist/packages/collections/src/collection-controls.d.ts"
849
861
  },
862
+ "FilterRemoveDetails": {
863
+ "kind": "type",
864
+ "declaration": "dist/packages/collections/src/collection-controls.d.ts"
865
+ },
850
866
  "DisplayOption": {
851
867
  "kind": "type",
852
868
  "declaration": "dist/packages/collections/src/collection-controls.d.ts"
@@ -877,41 +893,45 @@
877
893
  },
878
894
  "DataTableColumn": {
879
895
  "kind": "type",
880
- "declaration": "dist/packages/collections/src/data-table.d.ts"
896
+ "declaration": "dist/packages/collections/src/data-table-layout.d.ts"
881
897
  },
882
898
  "DataTableColumnLayout": {
883
899
  "kind": "type",
884
- "declaration": "dist/packages/collections/src/data-table.d.ts"
885
- },
886
- "DataTablePlaceholderProps": {
887
- "kind": "type",
888
- "declaration": "dist/packages/collections/src/data-table.d.ts"
900
+ "declaration": "dist/packages/collections/src/data-table-layout.d.ts"
889
901
  },
890
902
  "DataTableColumnRole": {
891
903
  "kind": "type",
892
- "declaration": "dist/packages/collections/src/data-table.d.ts"
904
+ "declaration": "dist/packages/collections/src/data-table-layout.d.ts"
893
905
  },
894
- "DataTableSort": {
906
+ "DataTableWindow": {
895
907
  "kind": "type",
896
- "declaration": "dist/packages/collections/src/data-table.d.ts"
908
+ "declaration": "dist/packages/collections/src/data-table-rows.d.ts"
897
909
  },
898
- "DataTableWindow": {
910
+ "DataTableTextProps": {
899
911
  "kind": "type",
900
- "declaration": "dist/packages/collections/src/data-table.d.ts"
912
+ "declaration": "dist/packages/collections/src/data-table-text.d.ts"
901
913
  },
902
- "DataTableProps": {
914
+ "DataTableTextPlaceholderProps": {
903
915
  "kind": "type",
904
- "declaration": "dist/packages/collections/src/data-table.d.ts"
916
+ "declaration": "dist/packages/collections/src/data-table-text.d.ts"
917
+ },
918
+ "DataTableText": {
919
+ "kind": "value",
920
+ "declaration": "dist/packages/collections/src/data-table-text.d.ts"
921
+ },
922
+ "DataTableTextPlaceholder": {
923
+ "kind": "value",
924
+ "declaration": "dist/packages/collections/src/data-table-text.d.ts"
905
925
  },
906
926
  "DataTableRowAction": {
907
927
  "kind": "type",
908
- "declaration": "dist/packages/collections/src/data-table.d.ts"
928
+ "declaration": "dist/packages/collections/src/data-table-trigger.d.ts"
909
929
  },
910
- "DataTableTextProps": {
930
+ "DataTablePlaceholderProps": {
911
931
  "kind": "type",
912
932
  "declaration": "dist/packages/collections/src/data-table.d.ts"
913
933
  },
914
- "DataTableTextPlaceholderProps": {
934
+ "DataTableProps": {
915
935
  "kind": "type",
916
936
  "declaration": "dist/packages/collections/src/data-table.d.ts"
917
937
  },
@@ -919,18 +939,10 @@
919
939
  "kind": "value",
920
940
  "declaration": "dist/packages/collections/src/data-table.d.ts"
921
941
  },
922
- "DataTableText": {
923
- "kind": "value",
924
- "declaration": "dist/packages/collections/src/data-table.d.ts"
925
- },
926
942
  "DataTablePlaceholder": {
927
943
  "kind": "value",
928
944
  "declaration": "dist/packages/collections/src/data-table.d.ts"
929
945
  },
930
- "DataTableTextPlaceholder": {
931
- "kind": "value",
932
- "declaration": "dist/packages/collections/src/data-table.d.ts"
933
- },
934
946
  "CollectionEndProps": {
935
947
  "kind": "type",
936
948
  "declaration": "dist/packages/collections/src/collection-scroll.d.ts"
@@ -1007,6 +1019,26 @@
1007
1019
  "kind": "type",
1008
1020
  "declaration": "dist/packages/collections/src/query-controls.d.ts"
1009
1021
  },
1022
+ "CollectionSearchDetails": {
1023
+ "kind": "type",
1024
+ "declaration": "dist/packages/collections/src/query-controls.d.ts"
1025
+ },
1026
+ "CollectionSubmitDetails": {
1027
+ "kind": "type",
1028
+ "declaration": "dist/packages/collections/src/query-controls.d.ts"
1029
+ },
1030
+ "DataTableSelectionDetails": {
1031
+ "kind": "type",
1032
+ "declaration": "dist/packages/collections/src/table-results.d.ts"
1033
+ },
1034
+ "DataTableSort": {
1035
+ "kind": "type",
1036
+ "declaration": "dist/packages/collections/src/table-results.d.ts"
1037
+ },
1038
+ "DataTableSortDetails": {
1039
+ "kind": "type",
1040
+ "declaration": "dist/packages/collections/src/table-results.d.ts"
1041
+ },
1010
1042
  "TableResultStatus": {
1011
1043
  "kind": "type",
1012
1044
  "declaration": "dist/packages/collections/src/table-results.d.ts"
@@ -1023,6 +1055,10 @@
1023
1055
  "kind": "type",
1024
1056
  "declaration": "dist/packages/collections/src/collection-filters.d.ts"
1025
1057
  },
1058
+ "CollectionFilterDetails": {
1059
+ "kind": "type",
1060
+ "declaration": "dist/packages/collections/src/collection-filters.d.ts"
1061
+ },
1026
1062
  "FilterOption": {
1027
1063
  "kind": "type",
1028
1064
  "declaration": "dist/packages/collections/src/collection-filters.d.ts"
@@ -1379,6 +1415,10 @@
1379
1415
  "kind": "value",
1380
1416
  "declaration": "dist/packages/charts/src/chart-frame.d.ts"
1381
1417
  },
1418
+ "ChartSelectDetails": {
1419
+ "kind": "type",
1420
+ "declaration": "dist/packages/charts/src/chart.d.ts"
1421
+ },
1382
1422
  "ChartTone": {
1383
1423
  "kind": "type",
1384
1424
  "declaration": "dist/packages/foundations/src/chart-tones.d.ts"
@@ -1473,6 +1513,10 @@
1473
1513
  "kind": "type",
1474
1514
  "declaration": "dist/packages/charts/src/cartesian/scatter-plot.d.ts"
1475
1515
  },
1516
+ "ScatterRangeDetails": {
1517
+ "kind": "type",
1518
+ "declaration": "dist/packages/charts/src/cartesian/scatter-plot.d.ts"
1519
+ },
1476
1520
  "ScatterRangeSelection": {
1477
1521
  "kind": "type",
1478
1522
  "declaration": "dist/packages/charts/src/cartesian/scatter-plot.d.ts"
@@ -1553,6 +1597,18 @@
1553
1597
  "kind": "type",
1554
1598
  "declaration": "dist/packages/charts/src/cartesian/time-series.d.ts"
1555
1599
  },
1600
+ "TimeRangeSelection": {
1601
+ "kind": "type",
1602
+ "declaration": "dist/packages/charts/src/cartesian/time-series.d.ts"
1603
+ },
1604
+ "ChartRangeDetails": {
1605
+ "kind": "type",
1606
+ "declaration": "dist/packages/charts/src/chart-range.d.ts"
1607
+ },
1608
+ "ChartRangeValue": {
1609
+ "kind": "type",
1610
+ "declaration": "dist/packages/charts/src/chart-range.d.ts"
1611
+ },
1556
1612
  "LineChart": {
1557
1613
  "kind": "value",
1558
1614
  "declaration": "dist/packages/charts/src/cartesian/time-series.d.ts"
@@ -1755,6 +1811,10 @@
1755
1811
  "kind": "type",
1756
1812
  "declaration": "dist/packages/charts/src/timeline/waterfall.d.ts"
1757
1813
  },
1814
+ "WaterfallSelectDetails": {
1815
+ "kind": "type",
1816
+ "declaration": "dist/packages/charts/src/timeline/waterfall.d.ts"
1817
+ },
1758
1818
  "Waterfall": {
1759
1819
  "kind": "value",
1760
1820
  "declaration": "dist/packages/charts/src/timeline/waterfall.d.ts"
@@ -1807,7 +1867,7 @@
1807
1867
  },
1808
1868
  "CSPProviderProps": {
1809
1869
  "kind": "type",
1810
- "declaration": "dist/packages/foundations/src/csp/index.d.ts"
1870
+ "declaration": "dist/packages/foundations/src/csp/provider.d.ts"
1811
1871
  }
1812
1872
  },
1813
1873
  "@mechane-ai/elements/tokens": {
@@ -0,0 +1,74 @@
1
+ import { c as e, l as t } from "./src-DVHlknB6.js";
2
+ import { n } from "./chart-input-Bm82_9Rd.js";
3
+ import { n as r, r as i } from "./plot-width-v2c_rA20.js";
4
+ import * as a from "@stylexjs/stylex";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ // packages/charts/src/categorical-values.tsx
7
+ var c = {
8
+ kzqmXN: "x1xc55vz",
9
+ kZKoxP: "xdk7pt",
10
+ kmuXW: "x2lah0s",
11
+ kGVxlE: "x1iotiob",
12
+ $$css: !0
13
+ }, l = { swatch: (e, t) => [
14
+ c,
15
+ {
16
+ kWkggS: e == null ? e : "xl8spv7",
17
+ $$css: !0
18
+ },
19
+ {
20
+ "--x-backgroundColor": e ?? void 0,
21
+ "--x-boxShadow": `inset 0 0 0 1px ${t}` == null ? void 0 : `inset 0 0 0 1px ${t}`
22
+ }
23
+ ] }, u = {
24
+ items: 200,
25
+ series: 12
26
+ }, d = [
27
+ "series1",
28
+ "series2",
29
+ "series3",
30
+ "series4",
31
+ "series5",
32
+ "series6"
33
+ ];
34
+ function f(e, t) {
35
+ return e ?? d[t % d.length] ?? "series1";
36
+ }
37
+ function p(e) {
38
+ if (e.length > u.items) return `Choose a window with at most ${u.items} items.`;
39
+ if (!n(e)) return "Every breakdown item needs a unique identifier.";
40
+ if (e.some((e) => e.value !== null && (!Number.isFinite(e.value) || e.value < 0))) return "Breakdown values must be finite and nonnegative, or explicitly missing.";
41
+ if (!Number.isFinite(e.reduce((e, t) => e + (t.value ?? 0), 0))) return "The sum of recorded values must be finite.";
42
+ }
43
+ function m(e) {
44
+ return e.map((e) => ({
45
+ id: e.id,
46
+ label: `${e.label}: ${e.valueLabel}`
47
+ }));
48
+ }
49
+ function h({ title: n, items: c, view: u }) {
50
+ return /* @__PURE__ */ o(i, {
51
+ title: n,
52
+ items: m(c),
53
+ view: u,
54
+ children: /* @__PURE__ */ o("ul", {
55
+ className: "xrvj5dj x1ghz6dp x1717udv xe8uvvx",
56
+ children: c.map((n) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ s(r, {
57
+ id: n.id,
58
+ label: `${n.label}: ${n.valueLabel}`,
59
+ view: u,
60
+ children: [/* @__PURE__ */ s("span", {
61
+ className: "x78zum5 x6s0dn4 x1hnptsi x1slnebi xeuugli",
62
+ children: [/* @__PURE__ */ o("span", {
63
+ "aria-hidden": !0,
64
+ ...a.props(l.swatch(e[n.tone], t[n.tone]))
65
+ }), n.label]
66
+ }), /* @__PURE__ */ o("span", {
67
+ className: "x153jb6y xp4054r xeuugli x193iq5w",
68
+ children: n.valueLabel
69
+ })]
70
+ }) }, n.id))
71
+ })
72
+ });
73
+ }
74
+ export { p as a, f as i, m as n, u as r, h as t };
@@ -0,0 +1,23 @@
1
+ import "@stylexjs/stylex";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ // packages/charts/src/chart-cursor.tsx
4
+ function n({ x: n, top: r, bottom: i, width: a }) {
5
+ return /* @__PURE__ */ t("g", {
6
+ "aria-hidden": !0,
7
+ className: "xlshs6z xgs60n x17y187c xbabvq0 x47corl",
8
+ children: [/* @__PURE__ */ e("line", {
9
+ x1: n,
10
+ x2: n,
11
+ y1: r,
12
+ y2: i,
13
+ className: "xnpr05h x1ntoi03 x13efnbd"
14
+ }), /* @__PURE__ */ e("line", {
15
+ x1: n - a / 2,
16
+ x2: n + a / 2,
17
+ y1: i + 4,
18
+ y2: i + 4,
19
+ className: "xzly4p3 x13efnbd"
20
+ })]
21
+ });
22
+ }
23
+ export { n as t };
@@ -0,0 +1,21 @@
1
+ import { t as e } from "./accessibility-P89UG9-r.js";
2
+ import * as t from "@stylexjs/stylex";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ // packages/charts/src/chart-data.tsx
5
+ function i({ label: i, columns: a, rows: o }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ ...t.props(e.hidden),
8
+ children: /* @__PURE__ */ r("table", { children: [
9
+ /* @__PURE__ */ n("caption", { children: i }),
10
+ /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: a.map((e) => /* @__PURE__ */ n("th", {
11
+ scope: "col",
12
+ children: e.label
13
+ }, e.id)) }) }),
14
+ /* @__PURE__ */ n("tbody", { children: o.map((e) => /* @__PURE__ */ n("tr", { children: a.map((t, r) => r === 0 ? /* @__PURE__ */ n("th", {
15
+ scope: "row",
16
+ children: e.values[r]
17
+ }, t.id) : /* @__PURE__ */ n("td", { children: e.values[r] }, t.id)) }, e.id)) })
18
+ ] })
19
+ });
20
+ }
21
+ export { i as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./header-styles-COxCYFZx.js";
2
- import { c as t, g as n, l as r, p as i } from "./src-Dcs3SZ9V.js";
1
+ import { u as e } from "./src-CpdJlDhO.js";
2
+ import { c as t, g as n, l as r, p as i } from "./src-DVHlknB6.js";
3
3
  import * as a from "@stylexjs/stylex";
4
- import { Button as o } from "@ui-sdk/react/button";
4
+ import { mergeProps as o } from "@ui-sdk/react/primitive";
5
5
  import { Children as s, useId as c } from "react";
6
6
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
7
7
  // packages/charts/src/chart-heading.tsx
@@ -145,21 +145,20 @@ function b({ series: e, values: t }) {
145
145
  });
146
146
  }
147
147
  // packages/charts/src/chart-frame.tsx
148
- function x({ title: t, description: n, children: r, actions: i, footer: o, report: f, series: m = [] }) {
149
- let h = c();
150
- if (f !== void 0) {
151
- let e = f.seriesValues === void 0 ? f.summary : /* @__PURE__ */ u(b, {
152
- series: m,
153
- values: f.seriesValues
154
- }), a = e != null && e !== !1, c = s.toArray([f.actions, i]).length > 0, g = /* @__PURE__ */ d(l, { children: [f.actions, i] });
148
+ function x({ title: t, description: n, children: r, actions: i, footer: f, report: m, series: h = [], figure: g = {} }) {
149
+ let _ = c();
150
+ if (m !== void 0) {
151
+ let e = m.seriesValues === void 0 ? m.summary : /* @__PURE__ */ u(b, {
152
+ series: h,
153
+ values: m.seriesValues
154
+ }), a = e != null && e !== !1, c = s.toArray([m.actions, i]).length > 0, v = /* @__PURE__ */ d(l, { children: [m.actions, i] });
155
155
  return /* @__PURE__ */ d("figure", {
156
- "aria-labelledby": h,
157
- className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt xmkeg23 x1y0btm7 x1ey3b81",
156
+ ...o(g, { "aria-labelledby": _ }, { className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt xmkeg23 x1y0btm7 x1ey3b81" }),
158
157
  children: [/* @__PURE__ */ u("figcaption", { children: /* @__PURE__ */ u(p, {
159
- id: h,
158
+ id: _,
160
159
  title: t,
161
- meta: f.meta,
162
- actions: c && g
160
+ meta: m.meta,
161
+ actions: c && v
163
162
  }) }), /* @__PURE__ */ d("div", {
164
163
  className: "xeuugli xg7ukam",
165
164
  children: [
@@ -172,24 +171,23 @@ function x({ title: t, description: n, children: r, actions: i, footer: o, repor
172
171
  children: n
173
172
  }),
174
173
  r,
175
- o !== void 0 && /* @__PURE__ */ u("div", {
174
+ f !== void 0 && /* @__PURE__ */ u("div", {
176
175
  className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
177
- children: o
176
+ children: f
178
177
  })
179
178
  ]
180
179
  })]
181
180
  });
182
181
  }
183
182
  return /* @__PURE__ */ d("figure", {
184
- "aria-labelledby": h,
185
- className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt",
183
+ ...o(g, { "aria-labelledby": _ }, { className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt" }),
186
184
  children: [
187
185
  /* @__PURE__ */ d("figcaption", {
188
186
  className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
189
187
  children: [/* @__PURE__ */ d("div", {
190
188
  className: "x1cqoux5 xeuugli xj0a0fe",
191
189
  children: [/* @__PURE__ */ u("p", {
192
- id: h,
190
+ id: _,
193
191
  className: "x1ghz6dp x12myhf4 x1778rvt x1b5ytql",
194
192
  children: t
195
193
  }), n !== void 0 && /* @__PURE__ */ u("p", {
@@ -202,9 +200,9 @@ function x({ title: t, description: n, children: r, actions: i, footer: o, repor
202
200
  })]
203
201
  }),
204
202
  r,
205
- o !== void 0 && /* @__PURE__ */ u("div", {
203
+ f !== void 0 && /* @__PURE__ */ u("div", {
206
204
  className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
207
- children: o
205
+ children: f
208
206
  })
209
207
  ]
210
208
  });
@@ -228,28 +226,11 @@ function S({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
228
226
  }, e.id))
229
227
  });
230
228
  }
231
- function C({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
232
- return n === void 0 ? /* @__PURE__ */ u("div", {
233
- className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
234
- children: r
235
- }) : /* @__PURE__ */ u(o, {
236
- type: "button",
237
- "aria-label": e,
238
- "aria-pressed": t,
239
- onClick: n,
240
- ...{
241
- 0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal" },
242
- 1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xss6m8b x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1r7kqkb xh3r7i3" }
243
- }[!!t | 0],
244
- children: r
245
- });
246
- }
247
- function w({ children: e, id: t }) {
229
+ function C({ children: e, id: t }) {
248
230
  return /* @__PURE__ */ u("p", {
249
231
  id: t,
250
- "aria-live": "polite",
251
232
  className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
252
233
  children: e
253
234
  });
254
235
  }
255
- export { y as a, w as i, x as n, S as r, C as t };
236
+ export { y as i, S as n, C as r, x as t };
@@ -1,5 +1,5 @@
1
- import { g as e } from "./src-Dcs3SZ9V.js";
2
- import { n as t } from "./chart-frame-Ztktqs1b.js";
1
+ import { g as e } from "./src-DVHlknB6.js";
2
+ import { t } from "./chart-frame-BaxKn_MB.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  // packages/charts/src/chart-input.tsx
5
5
  function r(e) {