@stealthscale/component-charts 0.2.1 → 0.2.3

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 (123) hide show
  1. package/dist/cyclonedx/bom.json +1 -1
  2. package/dist/index.js +1 -14710
  3. package/dist/pages/area-chart/area-chart.js +1151 -0
  4. package/dist/pages/area-chart/area-chart.props.js +3 -0
  5. package/dist/pages/bar-chart/bar-chart.js +990 -0
  6. package/dist/pages/bar-chart/bar-chart.props.js +3 -0
  7. package/dist/pages/box-plot/box-plot.js +1585 -0
  8. package/dist/pages/box-plot/box-plot.props.js +3 -0
  9. package/dist/pages/bubble-chart/bubble-chart.js +938 -0
  10. package/dist/pages/bubble-chart/bubble-chart.props.js +3 -0
  11. package/dist/pages/burndown-chart/burndown-chart.js +805 -0
  12. package/dist/pages/burndown-chart/burndown-chart.props.js +3 -0
  13. package/dist/pages/candlestick-chart/candlestick-chart.js +853 -0
  14. package/dist/pages/candlestick-chart/candlestick-chart.props.js +3 -0
  15. package/dist/pages/chart/chart.js +1190 -0
  16. package/dist/pages/chart/chart.props.js +3 -0
  17. package/dist/pages/chord-diagram/chord-diagram.js +891 -0
  18. package/dist/pages/chord-diagram/chord-diagram.props.js +3 -0
  19. package/dist/pages/combo-chart/combo-chart.js +873 -0
  20. package/dist/pages/combo-chart/combo-chart.props.js +3 -0
  21. package/dist/pages/distribution-chart/distribution-chart.js +1066 -0
  22. package/dist/pages/distribution-chart/distribution-chart.props.js +3 -0
  23. package/dist/pages/donut-chart/donut-chart.js +726 -0
  24. package/dist/pages/donut-chart/donut-chart.props.js +3 -0
  25. package/dist/pages/funnel-chart/funnel-chart.js +1094 -0
  26. package/dist/pages/funnel-chart/funnel-chart.props.js +3 -0
  27. package/dist/pages/gauge-chart/gauge-chart.js +767 -0
  28. package/dist/pages/gauge-chart/gauge-chart.props.js +3 -0
  29. package/dist/pages/heatmap/heatmap.js +1967 -0
  30. package/dist/pages/heatmap/heatmap.props.js +3 -0
  31. package/dist/pages/histogram-chart/histogram-chart.js +768 -0
  32. package/dist/pages/histogram-chart/histogram-chart.props.js +3 -0
  33. package/dist/pages/horizontal-bar-chart/horizontal-bar-chart.js +701 -0
  34. package/dist/pages/horizontal-bar-chart/horizontal-bar-chart.props.js +3 -0
  35. package/dist/pages/line-chart/line-chart.js +1882 -0
  36. package/dist/pages/line-chart/line-chart.props.js +3 -0
  37. package/dist/pages/pages.json +393 -0
  38. package/dist/pages/pareto-chart/pareto-chart.js +669 -0
  39. package/dist/pages/pareto-chart/pareto-chart.props.js +3 -0
  40. package/dist/pages/percent-stacked-bar/percent-stacked-bar.js +662 -0
  41. package/dist/pages/percent-stacked-bar/percent-stacked-bar.props.js +3 -0
  42. package/dist/pages/pie-chart/pie-chart.js +1007 -0
  43. package/dist/pages/pie-chart/pie-chart.props.js +3 -0
  44. package/dist/pages/polar-area-chart/polar-area-chart.js +812 -0
  45. package/dist/pages/polar-area-chart/polar-area-chart.props.js +3 -0
  46. package/dist/pages/radar-chart/radar-chart.js +1101 -0
  47. package/dist/pages/radar-chart/radar-chart.props.js +3 -0
  48. package/dist/pages/radial-bar-chart/radial-bar-chart.js +766 -0
  49. package/dist/pages/radial-bar-chart/radial-bar-chart.props.js +3 -0
  50. package/dist/pages/range-chart/range-chart.js +914 -0
  51. package/dist/pages/range-chart/range-chart.props.js +3 -0
  52. package/dist/pages/regression-overlay/regression-overlay.js +494 -0
  53. package/dist/pages/regression-overlay/regression-overlay.props.js +3 -0
  54. package/dist/pages/sankey-chart/sankey-chart.js +700 -0
  55. package/dist/pages/sankey-chart/sankey-chart.props.js +3 -0
  56. package/dist/pages/scatter-plot/scatter-plot.js +1248 -0
  57. package/dist/pages/scatter-plot/scatter-plot.props.js +3 -0
  58. package/dist/pages/sparkbar/sparkbar.js +629 -0
  59. package/dist/pages/sparkbar/sparkbar.props.js +3 -0
  60. package/dist/pages/sparkline/sparkline.js +960 -0
  61. package/dist/pages/sparkline/sparkline.props.js +3 -0
  62. package/dist/pages/spend-5xQ76WSj.js +185 -0
  63. package/dist/pages/stacked-area-chart/stacked-area-chart.js +912 -0
  64. package/dist/pages/stacked-area-chart/stacked-area-chart.props.js +3 -0
  65. package/dist/pages/stacked-bar-chart/stacked-bar-chart.js +722 -0
  66. package/dist/pages/stacked-bar-chart/stacked-bar-chart.props.js +3 -0
  67. package/dist/pages/step-line-chart/step-line-chart.js +573 -0
  68. package/dist/pages/step-line-chart/step-line-chart.props.js +3 -0
  69. package/dist/pages/stream-graph/stream-graph.js +1662 -0
  70. package/dist/pages/stream-graph/stream-graph.props.js +3 -0
  71. package/dist/pages/sunburst-chart/sunburst-chart.js +1051 -0
  72. package/dist/pages/sunburst-chart/sunburst-chart.props.js +3 -0
  73. package/dist/pages/timeline-chart/timeline-chart.js +1124 -0
  74. package/dist/pages/timeline-chart/timeline-chart.props.js +3 -0
  75. package/dist/pages/treemap-chart/treemap-chart.js +904 -0
  76. package/dist/pages/treemap-chart/treemap-chart.props.js +3 -0
  77. package/dist/pages/violin-plot/violin-plot.js +1303 -0
  78. package/dist/pages/violin-plot/violin-plot.props.js +3 -0
  79. package/dist/pages/visitors-oFFVcbIZ.js +248 -0
  80. package/dist/pages/waterfall-chart/waterfall-chart.js +1195 -0
  81. package/dist/pages/waterfall-chart/waterfall-chart.props.js +3 -0
  82. package/dist/shared-DVZJ2nST.js +14711 -0
  83. package/dist/theme.js +29 -13
  84. package/locales/en/specimen/area-chart.json +56 -0
  85. package/locales/en/specimen/bar-chart.json +56 -0
  86. package/locales/en/specimen/box-plot.json +65 -0
  87. package/locales/en/specimen/bubble-chart.json +47 -0
  88. package/locales/en/specimen/burndown-chart.json +46 -0
  89. package/locales/en/specimen/candlestick-chart.json +42 -0
  90. package/locales/en/specimen/chart.json +53 -0
  91. package/locales/en/specimen/chord-diagram.json +69 -0
  92. package/locales/en/specimen/combo-chart.json +41 -0
  93. package/locales/en/specimen/distribution-chart.json +47 -0
  94. package/locales/en/specimen/donut-chart.json +63 -0
  95. package/locales/en/specimen/funnel-chart.json +84 -0
  96. package/locales/en/specimen/gauge-chart.json +68 -0
  97. package/locales/en/specimen/heatmap.json +187 -0
  98. package/locales/en/specimen/histogram-chart.json +48 -0
  99. package/locales/en/specimen/horizontal-bar-chart.json +54 -0
  100. package/locales/en/specimen/line-chart.json +106 -0
  101. package/locales/en/specimen/pareto-chart.json +43 -0
  102. package/locales/en/specimen/percent-stacked-bar.json +37 -0
  103. package/locales/en/specimen/pie-chart.json +80 -0
  104. package/locales/en/specimen/polar-area-chart.json +90 -0
  105. package/locales/en/specimen/radar-chart.json +82 -0
  106. package/locales/en/specimen/radial-bar-chart.json +62 -0
  107. package/locales/en/specimen/range-chart.json +42 -0
  108. package/locales/en/specimen/regression-overlay.json +36 -0
  109. package/locales/en/specimen/sankey-chart.json +89 -0
  110. package/locales/en/specimen/scatter-plot.json +88 -0
  111. package/locales/en/specimen/sparkbar.json +51 -0
  112. package/locales/en/specimen/sparkline.json +70 -0
  113. package/locales/en/specimen/stacked-area-chart.json +44 -0
  114. package/locales/en/specimen/stacked-bar-chart.json +34 -0
  115. package/locales/en/specimen/step-line-chart.json +33 -0
  116. package/locales/en/specimen/stream-graph.json +54 -0
  117. package/locales/en/specimen/sunburst-chart.json +110 -0
  118. package/locales/en/specimen/timeline-chart.json +77 -0
  119. package/locales/en/specimen/treemap-chart.json +107 -0
  120. package/locales/en/specimen/violin-plot.json +54 -0
  121. package/locales/en/specimen/waterfall-chart.json +71 -0
  122. package/package.json +9 -8
  123. /package/dist/{recipe-BbGw00ut.js → recipes-BbGw00ut.js} +0 -0
@@ -0,0 +1,3 @@
1
+ export const dropped = {"ScatterPlotProps": {"conditions": 284, "foreign": 1039}};
2
+ export const parts = {"ScatterPlotProps": [{"accepts": "boolean", "fallback": "", "kind": "option", "name": "animate", "refers": [], "required": false, "says": "Whether the points animate in, which they do only outside reduced motion."}, {"accepts": "ReactNode", "fallback": "", "kind": "option", "name": "caption", "refers": ["react.ReactElement", "react.ReactPortal"], "required": false, "says": "Finding the chart shows, in words, which names the figure."}, {"accepts": "ReactNode", "fallback": "", "kind": "option", "name": "children", "refers": ["react.ReactElement", "react.ReactPortal"], "required": false, "says": "Recharts elements rendered inside the chart after the points, such as a `RegressionOverlay`."}, {"accepts": "readonly string[]", "fallback": "", "kind": "option", "name": "defaultHiddenKeys", "refers": [], "required": false, "says": "Keys of the series hidden when the chart first renders, for the uncontrolled case."}, {"accepts": "number", "fallback": "", "kind": "option", "name": "defaultIndex", "refers": [], "required": false, "says": "Index in the first series' points of the point the tooltip shows when the chart first renders. No tooltip shows at first unless stated."}, {"accepts": "ReactNode", "fallback": "", "kind": "option", "name": "empty", "refers": ["react.ReactElement", "react.ReactPortal"], "required": false, "says": "Message the chart renders in the plot's place while no series has a point."}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "grid", "refers": [], "required": false, "says": "Whether lines cross the plot at the ticks of both axes."}, {"accepts": "readonly string[]", "fallback": "", "kind": "option", "name": "hiddenKeys", "refers": [], "required": false, "says": "Keys of the series the legend hides, where the caller controls them."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "label", "refers": [], "required": true, "says": "Accessible name of the chart's keyboard layer, such as \"Deal size by sales cycle\"."}, {"accepts": "Extract<keyof Point, string>", "fallback": "", "kind": "option", "name": "labelKey", "refers": [], "required": false, "says": "Field of each point whose words are written beside it and head its tooltip, such as a vendor's name."}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "legend", "refers": [], "required": false, "says": "Whether the legend renders below the plot. It renders while two or more series have points unless stated."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "legendLabel", "refers": [], "required": false, "says": "Accessible name of the legend's group of buttons."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "locale", "refers": [], "required": false, "says": "Locale the values are written in. The locale in scope unless stated."}, {"accepts": "((hidden: readonly string[]) => void)", "fallback": "", "kind": "option", "name": "onHiddenKeysChange", "refers": [], "required": false, "says": "Called with every key hidden after a press in the legend."}, {"accepts": "Quadrants", "fallback": "", "kind": "option", "name": "quadrants", "refers": ["kit.Quadrants"], "required": false, "says": "Quadrants the plot divides into: two dashed lines, the name of each quadrant in its corner, and the quadrant of each point after its name in the tooltip."}, {"accepts": "\"golden\" | \"landscape\" | \"portrait\" | \"rows\" | \"square\" | \"ultrawide\" | \"video\" | \"wide\"", "fallback": "", "kind": "variant", "name": "ratio", "refers": [], "required": false, "says": "Aspect ratio of the plot and of the empty state in its place, one of the theme's ratios, or `rows` for a plot as tall as its rows."}, {"accepts": "readonly ScatterSeries<Point>[]", "fallback": "", "kind": "option", "name": "series", "refers": ["kit.ChartColor", "kit.Point", "kit.ScatterSeries", "react.ReactElement", "react.ReactPortal"], "required": true, "says": "Series the chart plots, in the order the legend lists them."}, {"accepts": "number", "fallback": "", "kind": "option", "name": "size", "refers": [], "required": false, "says": "Area of every point in square pixels, while no field sizes the points."}, {"accepts": "Extract<keyof Point, string>", "fallback": "", "kind": "option", "name": "sizeKey", "refers": [], "required": false, "says": "Field of each point its area reads, for a bubble chart."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "sizeLabel", "refers": [], "required": false, "says": "Name of the size's field, which the tooltip writes beside the value."}, {"accepts": "NumberFormatOptions", "fallback": "", "kind": "option", "name": "sizeOptions", "refers": [], "required": false, "says": "`Intl.NumberFormat` options the tooltip writes the size with."}, {"accepts": "readonly [number, number]", "fallback": "", "kind": "option", "name": "sizeRange", "refers": [], "required": false, "says": "Smallest and largest area of a sized point, in square pixels."}, {"accepts": "AxisDomain", "fallback": "", "kind": "option", "name": "xDomain", "refers": ["recharts.AxisDomain", "recharts.AxisDomainItem", "recharts.NumberDomain"], "required": false, "says": "Domain of the x axis in recharts' terms. Recharts' rounded domain unless stated."}, {"accepts": "readonly [string, string]", "fallback": "", "kind": "option", "name": "xEnds", "refers": [], "required": false, "says": "Words for the x axis' two ends, the low end's first, such as \"Rare\" and \"Certain\", written in place of its ticks. The axis then spans `xDomain`, 0 to 1 unless it states two numbers."}, {"accepts": "Extract<keyof Point, string>", "fallback": "", "kind": "option", "name": "xKey", "refers": [], "required": true, "says": "Field of each point the x axis reads."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "xLabel", "refers": [], "required": true, "says": "Title of the x axis, which the tooltip repeats beside the x value."}, {"accepts": "NumberFormatOptions", "fallback": "", "kind": "option", "name": "xOptions", "refers": [], "required": false, "says": "`Intl.NumberFormat` options the x ticks and the tooltip's x value are written with."}, {"accepts": "AxisDomain", "fallback": "", "kind": "option", "name": "yDomain", "refers": ["recharts.AxisDomain", "recharts.AxisDomainItem", "recharts.NumberDomain"], "required": false, "says": "Domain of the y axis in recharts' terms. Recharts' rounded domain unless stated."}, {"accepts": "readonly [string, string]", "fallback": "", "kind": "option", "name": "yEnds", "refers": [], "required": false, "says": "Words for the y axis' two ends, the low end's first, written in place of its ticks. The axis then spans `yDomain`, 0 to 1 unless it states two numbers."}, {"accepts": "Extract<keyof Point, string>", "fallback": "", "kind": "option", "name": "yKey", "refers": [], "required": true, "says": "Field of each point the y axis reads."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "yLabel", "refers": [], "required": true, "says": "Title of the y axis, which the tooltip repeats beside the y value."}, {"accepts": "NumberFormatOptions", "fallback": "", "kind": "option", "name": "yOptions", "refers": [], "required": false, "says": "`Intl.NumberFormat` options the y ticks and the tooltip's y value are written with."}]};
3
+ export const shapes = {"react.ReactElement": [{"accepts": "string | JSXElementConstructor<any>", "name": "type", "says": ""}, {"accepts": "unknown", "name": "props", "says": ""}, {"accepts": "string | null", "name": "key", "says": ""}], "react.ReactPortal": [{"accepts": "ReactNode", "name": "children", "says": ""}, {"accepts": "string | JSXElementConstructor<any>", "name": "type", "says": ""}, {"accepts": "unknown", "name": "props", "says": ""}, {"accepts": "string | null", "name": "key", "says": ""}], "kit.Quadrants": [{"accepts": "Readonly<Record<QuadrantId, string>>", "name": "names", "says": "Name of each quadrant, keyed by the reading direction."}, {"accepts": "number", "name": "x", "says": "Value on the x axis the quadrants divide at. The middle of the x axis' span unless stated: its domain's two numbers, 0 to 1 for an axis with named ends, else the points' x values."}, {"accepts": "number", "name": "y", "says": "Value on the y axis the quadrants divide at. The middle of the y axis' span unless stated."}], "kit.ScatterSeries": [{"accepts": "readonly Point[]", "name": "points", "says": "Points of the series, each with its own x and y."}, {"accepts": "ChartColor", "name": "color", "says": "Palette the series takes its color from. The theme's series color at its position unless stated."}, {"accepts": "number", "name": "ink", "says": "Share of the ink, `fg`, in percent, the series' color mixes in: 0 keeps the color, 100 is the ink. The mix keeps 3:1 or more against the page. None unless stated."}, {"accepts": "string", "name": "key", "says": "Field of each row the series reads, which a recharts mark takes as its `dataKey`."}, {"accepts": "ReactNode", "name": "label", "says": "Name the tooltip and the legend show. The key unless stated."}], "kit.ChartColor": [{"accepts": "", "name": "\"accent\"", "says": ""}, {"accepts": "", "name": "\"blue\"", "says": ""}, {"accepts": "", "name": "\"cyan\"", "says": ""}, {"accepts": "", "name": "\"error\"", "says": ""}, {"accepts": "", "name": "\"gray\"", "says": ""}, {"accepts": "", "name": "\"green\"", "says": ""}, {"accepts": "", "name": "\"indigo\"", "says": ""}, {"accepts": "", "name": "\"info\"", "says": ""}, {"accepts": "", "name": "\"neutral\"", "says": ""}, {"accepts": "", "name": "\"orange\"", "says": ""}, {"accepts": "", "name": "\"pink\"", "says": ""}, {"accepts": "", "name": "\"primary\"", "says": ""}, {"accepts": "", "name": "\"purple\"", "says": ""}, {"accepts": "", "name": "\"red\"", "says": ""}, {"accepts": "", "name": "\"secondary\"", "says": ""}, {"accepts": "", "name": "\"series.1\"", "says": ""}, {"accepts": "", "name": "\"series.2\"", "says": ""}, {"accepts": "", "name": "\"series.3\"", "says": ""}, {"accepts": "", "name": "\"series.4\"", "says": ""}, {"accepts": "", "name": "\"series.5\"", "says": ""}, {"accepts": "", "name": "\"series.6\"", "says": ""}, {"accepts": "", "name": "\"series.7\"", "says": ""}, {"accepts": "", "name": "\"series.8\"", "says": ""}, {"accepts": "", "name": "\"success\"", "says": ""}, {"accepts": "", "name": "\"teal\"", "says": ""}, {"accepts": "", "name": "\"warning\"", "says": ""}, {"accepts": "", "name": "\"yellow\"", "says": ""}], "recharts.AxisDomain": [{"accepts": "", "name": "readonly string[]", "says": ""}, {"accepts": "", "name": "readonly number[]", "says": ""}, {"accepts": "", "name": "([dataMin, dataMax]: NumberDomain, allowDataOverflow: boolean) => NumberDomain", "says": ""}, {"accepts": "", "name": "readonly [AxisDomainItem, AxisDomainItem]", "says": ""}], "recharts.AxisDomainItem": [{"accepts": "", "name": "string", "says": ""}, {"accepts": "", "name": "number", "says": ""}, {"accepts": "", "name": "(d: number) => string | number", "says": ""}]};
@@ -0,0 +1,629 @@
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
2
+ import { y as Sparkbar } from "../../shared-DVZJ2nST.js";
3
+ import { t as recipe } from "../../recipes-BbGw00ut.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { useState } from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { Stat } from "@stealthscale/component-data";
8
+ import { Room, scenesOf, specimen, useWords } from "@stealthscale/specimen";
9
+ import { RotateCcwIcon } from "lucide-react";
10
+ import { Button } from "@stealthscale/component-actions";
11
+ import { Stack } from "@stealthscale/component-layout";
12
+ //#region src/sparkbar/examples/deploys.example.tsx
13
+ var deploys_example_exports = /* @__PURE__ */ __exportAll({
14
+ Deploys: () => Deploys,
15
+ source: () => source$6
16
+ });
17
+ const DAYS$4 = [
18
+ 6,
19
+ 9,
20
+ 4,
21
+ 7,
22
+ 11,
23
+ 1,
24
+ 0
25
+ ];
26
+ function Deploys() {
27
+ const $ = c(19);
28
+ const { t } = useWords("sparkbar");
29
+ let t0;
30
+ if ($[0] !== t) {
31
+ t0 = t("deploys.label");
32
+ $[0] = t;
33
+ $[1] = t0;
34
+ } else t0 = $[1];
35
+ let t1;
36
+ if ($[2] !== t0) {
37
+ t1 = /* @__PURE__ */ jsx(Stat.Label, { children: t0 });
38
+ $[2] = t0;
39
+ $[3] = t1;
40
+ } else t1 = $[3];
41
+ let t2;
42
+ if ($[4] !== t) {
43
+ t2 = t("deploys.value");
44
+ $[4] = t;
45
+ $[5] = t2;
46
+ } else t2 = $[5];
47
+ let t3;
48
+ if ($[6] !== t2) {
49
+ t3 = /* @__PURE__ */ jsx(Stat.ValueText, { children: t2 });
50
+ $[6] = t2;
51
+ $[7] = t3;
52
+ } else t3 = $[7];
53
+ let t4;
54
+ if ($[8] !== t) {
55
+ t4 = t("deploys.help");
56
+ $[8] = t;
57
+ $[9] = t4;
58
+ } else t4 = $[9];
59
+ let t5;
60
+ if ($[10] !== t4) {
61
+ t5 = /* @__PURE__ */ jsx(Stat.HelpText, { children: t4 });
62
+ $[10] = t4;
63
+ $[11] = t5;
64
+ } else t5 = $[11];
65
+ let t6;
66
+ if ($[12] !== t1 || $[13] !== t3 || $[14] !== t5) {
67
+ t6 = /* @__PURE__ */ jsxs(Stat.Root, { children: [
68
+ t1,
69
+ t3,
70
+ t5
71
+ ] });
72
+ $[12] = t1;
73
+ $[13] = t3;
74
+ $[14] = t5;
75
+ $[15] = t6;
76
+ } else t6 = $[15];
77
+ let t7;
78
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
79
+ t7 = /* @__PURE__ */ jsx(Sparkbar, {
80
+ size: "lg",
81
+ values: DAYS$4
82
+ });
83
+ $[16] = t7;
84
+ } else t7 = $[16];
85
+ let t8;
86
+ if ($[17] !== t6) {
87
+ t8 = /* @__PURE__ */ jsxs(Stack, {
88
+ align: "flex-end",
89
+ direction: "row",
90
+ justify: "between",
91
+ children: [t6, t7]
92
+ });
93
+ $[17] = t6;
94
+ $[18] = t8;
95
+ } else t8 = $[18];
96
+ return t8;
97
+ }
98
+ const source$6 = "import { type ReactElement } from \"react\";\n\nimport { Stat } from \"@stealthscale/component-data\";\nimport { Stack } from \"@stealthscale/component-layout\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst DAYS = [6, 9, 4, 7, 11, 1, 0];\n\nexport function Deploys(): ReactElement {\n const { t } = useWords(\"sparkbar\");\n\n return (\n <Stack align=\"flex-end\" direction=\"row\" justify=\"between\">\n <Stat.Root>\n <Stat.Label>{t(\"deploys.label\")}</Stat.Label>\n <Stat.ValueText>{t(\"deploys.value\")}</Stat.ValueText>\n <Stat.HelpText>{t(\"deploys.help\")}</Stat.HelpText>\n </Stat.Root>\n <Sparkbar size=\"lg\" values={DAYS} />\n </Stack>\n );\n}\n";
99
+ //#endregion
100
+ //#region src/sparkbar/examples/incidents.example.tsx
101
+ var incidents_example_exports = /* @__PURE__ */ __exportAll({
102
+ Incidents: () => Incidents,
103
+ source: () => source$5
104
+ });
105
+ const WEEKS = [
106
+ 3,
107
+ 1,
108
+ 4,
109
+ 2,
110
+ 0,
111
+ 5,
112
+ 2,
113
+ 1,
114
+ 0,
115
+ 1,
116
+ 2,
117
+ 0
118
+ ];
119
+ function Incidents() {
120
+ const $ = c(4);
121
+ const { t } = useWords("sparkbar");
122
+ let t0;
123
+ if ($[0] !== t) {
124
+ t0 = t("incidents.label");
125
+ $[0] = t;
126
+ $[1] = t0;
127
+ } else t0 = $[1];
128
+ let t1;
129
+ if ($[2] !== t0) {
130
+ t1 = /* @__PURE__ */ jsx(Sparkbar, {
131
+ color: "error",
132
+ label: t0,
133
+ size: "lg",
134
+ values: WEEKS
135
+ });
136
+ $[2] = t0;
137
+ $[3] = t1;
138
+ } else t1 = $[3];
139
+ return t1;
140
+ }
141
+ const source$5 = "import { type ReactElement } from \"react\";\n\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst WEEKS = [3, 1, 4, 2, 0, 5, 2, 1, 0, 1, 2, 0];\n\nexport function Incidents(): ReactElement {\n const { t } = useWords(\"sparkbar\");\n\n return <Sparkbar color=\"error\" label={t(\"incidents.label\")} size=\"lg\" values={WEEKS} />;\n}\n";
142
+ //#endregion
143
+ //#region src/sparkbar/examples/orders.example.tsx
144
+ var orders_example_exports = /* @__PURE__ */ __exportAll({
145
+ Orders: () => Orders,
146
+ source: () => source$4
147
+ });
148
+ const DAYS$3 = [
149
+ 118,
150
+ 132,
151
+ 97,
152
+ 141,
153
+ 156,
154
+ 88,
155
+ 124
156
+ ];
157
+ function Orders() {
158
+ const $ = c(19);
159
+ const { t } = useWords("sparkbar");
160
+ let t0;
161
+ if ($[0] !== t) {
162
+ t0 = t("orders.label");
163
+ $[0] = t;
164
+ $[1] = t0;
165
+ } else t0 = $[1];
166
+ let t1;
167
+ if ($[2] !== t0) {
168
+ t1 = /* @__PURE__ */ jsx(Stat.Label, { children: t0 });
169
+ $[2] = t0;
170
+ $[3] = t1;
171
+ } else t1 = $[3];
172
+ let t2;
173
+ if ($[4] !== t) {
174
+ t2 = t("orders.value");
175
+ $[4] = t;
176
+ $[5] = t2;
177
+ } else t2 = $[5];
178
+ let t3;
179
+ if ($[6] !== t2) {
180
+ t3 = /* @__PURE__ */ jsx(Stat.ValueText, { children: t2 });
181
+ $[6] = t2;
182
+ $[7] = t3;
183
+ } else t3 = $[7];
184
+ let t4;
185
+ if ($[8] !== t) {
186
+ t4 = t("orders.help");
187
+ $[8] = t;
188
+ $[9] = t4;
189
+ } else t4 = $[9];
190
+ let t5;
191
+ if ($[10] !== t4) {
192
+ t5 = /* @__PURE__ */ jsx(Stat.HelpText, { children: t4 });
193
+ $[10] = t4;
194
+ $[11] = t5;
195
+ } else t5 = $[11];
196
+ let t6;
197
+ if ($[12] !== t1 || $[13] !== t3 || $[14] !== t5) {
198
+ t6 = /* @__PURE__ */ jsxs(Stat.Root, { children: [
199
+ t1,
200
+ t3,
201
+ t5
202
+ ] });
203
+ $[12] = t1;
204
+ $[13] = t3;
205
+ $[14] = t5;
206
+ $[15] = t6;
207
+ } else t6 = $[15];
208
+ let t7;
209
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
210
+ t7 = /* @__PURE__ */ jsx(Sparkbar, {
211
+ baseline: 120,
212
+ color: "teal",
213
+ size: "lg",
214
+ values: DAYS$3
215
+ });
216
+ $[16] = t7;
217
+ } else t7 = $[16];
218
+ let t8;
219
+ if ($[17] !== t6) {
220
+ t8 = /* @__PURE__ */ jsxs(Stack, {
221
+ align: "flex-end",
222
+ direction: "row",
223
+ justify: "between",
224
+ children: [t6, t7]
225
+ });
226
+ $[17] = t6;
227
+ $[18] = t8;
228
+ } else t8 = $[18];
229
+ return t8;
230
+ }
231
+ const source$4 = "import { type ReactElement } from \"react\";\n\nimport { Stat } from \"@stealthscale/component-data\";\nimport { Stack } from \"@stealthscale/component-layout\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst DAYS = [118, 132, 97, 141, 156, 88, 124];\n\nexport function Orders(): ReactElement {\n const { t } = useWords(\"sparkbar\");\n\n return (\n <Stack align=\"flex-end\" direction=\"row\" justify=\"between\">\n <Stat.Root>\n <Stat.Label>{t(\"orders.label\")}</Stat.Label>\n <Stat.ValueText>{t(\"orders.value\")}</Stat.ValueText>\n <Stat.HelpText>{t(\"orders.help\")}</Stat.HelpText>\n </Stat.Root>\n <Sparkbar baseline={120} color=\"teal\" size=\"lg\" values={DAYS} />\n </Stack>\n );\n}\n";
232
+ //#endregion
233
+ //#region src/sparkbar/examples/outage.example.tsx
234
+ var outage_example_exports = /* @__PURE__ */ __exportAll({
235
+ Outage: () => Outage,
236
+ source: () => source$3
237
+ });
238
+ const DAYS$2 = [
239
+ 214,
240
+ 238,
241
+ 221,
242
+ null,
243
+ 241,
244
+ 233,
245
+ 226
246
+ ];
247
+ function Outage() {
248
+ const $ = c(19);
249
+ const { t } = useWords("sparkbar");
250
+ let t0;
251
+ if ($[0] !== t) {
252
+ t0 = t("outage.label");
253
+ $[0] = t;
254
+ $[1] = t0;
255
+ } else t0 = $[1];
256
+ let t1;
257
+ if ($[2] !== t0) {
258
+ t1 = /* @__PURE__ */ jsx(Stat.Label, { children: t0 });
259
+ $[2] = t0;
260
+ $[3] = t1;
261
+ } else t1 = $[3];
262
+ let t2;
263
+ if ($[4] !== t) {
264
+ t2 = t("outage.value");
265
+ $[4] = t;
266
+ $[5] = t2;
267
+ } else t2 = $[5];
268
+ let t3;
269
+ if ($[6] !== t2) {
270
+ t3 = /* @__PURE__ */ jsx(Stat.ValueText, { children: t2 });
271
+ $[6] = t2;
272
+ $[7] = t3;
273
+ } else t3 = $[7];
274
+ let t4;
275
+ if ($[8] !== t) {
276
+ t4 = t("outage.help");
277
+ $[8] = t;
278
+ $[9] = t4;
279
+ } else t4 = $[9];
280
+ let t5;
281
+ if ($[10] !== t4) {
282
+ t5 = /* @__PURE__ */ jsx(Stat.HelpText, { children: t4 });
283
+ $[10] = t4;
284
+ $[11] = t5;
285
+ } else t5 = $[11];
286
+ let t6;
287
+ if ($[12] !== t1 || $[13] !== t3 || $[14] !== t5) {
288
+ t6 = /* @__PURE__ */ jsxs(Stat.Root, { children: [
289
+ t1,
290
+ t3,
291
+ t5
292
+ ] });
293
+ $[12] = t1;
294
+ $[13] = t3;
295
+ $[14] = t5;
296
+ $[15] = t6;
297
+ } else t6 = $[15];
298
+ let t7;
299
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
300
+ t7 = /* @__PURE__ */ jsx(Sparkbar, {
301
+ size: "lg",
302
+ values: DAYS$2
303
+ });
304
+ $[16] = t7;
305
+ } else t7 = $[16];
306
+ let t8;
307
+ if ($[17] !== t6) {
308
+ t8 = /* @__PURE__ */ jsxs(Stack, {
309
+ align: "flex-end",
310
+ direction: "row",
311
+ justify: "between",
312
+ children: [t6, t7]
313
+ });
314
+ $[17] = t6;
315
+ $[18] = t8;
316
+ } else t8 = $[18];
317
+ return t8;
318
+ }
319
+ const source$3 = "import { type ReactElement } from \"react\";\n\nimport { Stat } from \"@stealthscale/component-data\";\nimport { Stack } from \"@stealthscale/component-layout\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst DAYS = [214, 238, 221, null, 241, 233, 226];\n\nexport function Outage(): ReactElement {\n const { t } = useWords(\"sparkbar\");\n\n return (\n <Stack align=\"flex-end\" direction=\"row\" justify=\"between\">\n <Stat.Root>\n <Stat.Label>{t(\"outage.label\")}</Stat.Label>\n <Stat.ValueText>{t(\"outage.value\")}</Stat.ValueText>\n <Stat.HelpText>{t(\"outage.help\")}</Stat.HelpText>\n </Stat.Root>\n <Sparkbar size=\"lg\" values={DAYS} />\n </Stack>\n );\n}\n";
320
+ //#endregion
321
+ //#region src/sparkbar/examples/primary.example.tsx
322
+ var primary_example_exports = /* @__PURE__ */ __exportAll({
323
+ Primary: () => Primary,
324
+ source: () => source$2
325
+ });
326
+ const WEEK = [
327
+ 6,
328
+ 9,
329
+ 4,
330
+ 7,
331
+ 11,
332
+ 3,
333
+ 8
334
+ ];
335
+ function Primary(props) {
336
+ const $ = c(2);
337
+ let t0;
338
+ if ($[0] !== props) {
339
+ t0 = /* @__PURE__ */ jsx(Sparkbar, {
340
+ values: WEEK,
341
+ ...props
342
+ });
343
+ $[0] = props;
344
+ $[1] = t0;
345
+ } else t0 = $[1];
346
+ return t0;
347
+ }
348
+ const source$2 = "import { type ReactElement } from \"react\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst WEEK = [6, 9, 4, 7, 11, 3, 8];\n\nexport function Primary(props: Omit<Parameters<typeof Sparkbar>[0], \"values\">): ReactElement {\n return <Sparkbar values={WEEK} {...props} />;\n}\n";
349
+ //#endregion
350
+ //#region src/sparkbar/examples/replay.example.tsx
351
+ var replay_example_exports = /* @__PURE__ */ __exportAll({
352
+ Replay: () => Replay,
353
+ source: () => source$1
354
+ });
355
+ const DAYS$1 = [
356
+ 6,
357
+ 9,
358
+ 4,
359
+ 7,
360
+ 11,
361
+ 1,
362
+ 0
363
+ ];
364
+ function Replay() {
365
+ const $ = c(16);
366
+ const { t } = useWords("sparkbar");
367
+ const [run, setRun] = useState(0);
368
+ let t0;
369
+ if ($[0] !== t) {
370
+ t0 = t("replay.label");
371
+ $[0] = t;
372
+ $[1] = t0;
373
+ } else t0 = $[1];
374
+ let t1;
375
+ if ($[2] !== run || $[3] !== t0) {
376
+ t1 = /* @__PURE__ */ jsx(Sparkbar, {
377
+ animate: true,
378
+ label: t0,
379
+ size: "lg",
380
+ values: DAYS$1
381
+ }, run);
382
+ $[2] = run;
383
+ $[3] = t0;
384
+ $[4] = t1;
385
+ } else t1 = $[4];
386
+ let t2;
387
+ if ($[5] !== run) {
388
+ t2 = () => {
389
+ setRun(run + 1);
390
+ };
391
+ $[5] = run;
392
+ $[6] = t2;
393
+ } else t2 = $[6];
394
+ let t3;
395
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
396
+ t3 = /* @__PURE__ */ jsx(RotateCcwIcon, {});
397
+ $[7] = t3;
398
+ } else t3 = $[7];
399
+ let t4;
400
+ if ($[8] !== t) {
401
+ t4 = t("replay.replay");
402
+ $[8] = t;
403
+ $[9] = t4;
404
+ } else t4 = $[9];
405
+ let t5;
406
+ if ($[10] !== t2 || $[11] !== t4) {
407
+ t5 = /* @__PURE__ */ jsxs(Button, {
408
+ onClick: t2,
409
+ size: "sm",
410
+ variant: "outline",
411
+ children: [t3, t4]
412
+ });
413
+ $[10] = t2;
414
+ $[11] = t4;
415
+ $[12] = t5;
416
+ } else t5 = $[12];
417
+ let t6;
418
+ if ($[13] !== t1 || $[14] !== t5) {
419
+ t6 = /* @__PURE__ */ jsxs(Stack, {
420
+ direction: "row",
421
+ children: [t1, t5]
422
+ });
423
+ $[13] = t1;
424
+ $[14] = t5;
425
+ $[15] = t6;
426
+ } else t6 = $[15];
427
+ return t6;
428
+ }
429
+ const source$1 = "import { type ReactElement, useState } from \"react\";\n\nimport { RotateCcwIcon } from \"lucide-react\";\n\nimport { Button } from \"@stealthscale/component-actions\";\nimport { Stack } from \"@stealthscale/component-layout\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst DAYS = [6, 9, 4, 7, 11, 1, 0];\n\nexport function Replay(): ReactElement {\n const { t } = useWords(\"sparkbar\");\n const [run, setRun] = useState(0);\n\n return (\n <Stack direction=\"row\">\n <Sparkbar animate key={run} label={t(\"replay.label\")} size=\"lg\" values={DAYS} />\n <Button\n onClick={() => {\n setRun(run + 1);\n }}\n size=\"sm\"\n variant=\"outline\"\n >\n <RotateCcwIcon />\n {t(\"replay.replay\")}\n </Button>\n </Stack>\n );\n}\n";
430
+ //#endregion
431
+ //#region src/sparkbar/examples/seats.example.tsx
432
+ var seats_example_exports = /* @__PURE__ */ __exportAll({
433
+ Seats: () => Seats,
434
+ source: () => source
435
+ });
436
+ const DAYS = [
437
+ 4,
438
+ -2,
439
+ 6,
440
+ 3,
441
+ -5,
442
+ 8,
443
+ 2,
444
+ -1,
445
+ 5,
446
+ 4,
447
+ -3,
448
+ 7,
449
+ 6,
450
+ 2
451
+ ];
452
+ function Seats() {
453
+ const $ = c(19);
454
+ const { t } = useWords("sparkbar");
455
+ let t0;
456
+ if ($[0] !== t) {
457
+ t0 = t("seats.label");
458
+ $[0] = t;
459
+ $[1] = t0;
460
+ } else t0 = $[1];
461
+ let t1;
462
+ if ($[2] !== t0) {
463
+ t1 = /* @__PURE__ */ jsx(Stat.Label, { children: t0 });
464
+ $[2] = t0;
465
+ $[3] = t1;
466
+ } else t1 = $[3];
467
+ let t2;
468
+ if ($[4] !== t) {
469
+ t2 = t("seats.value");
470
+ $[4] = t;
471
+ $[5] = t2;
472
+ } else t2 = $[5];
473
+ let t3;
474
+ if ($[6] !== t2) {
475
+ t3 = /* @__PURE__ */ jsx(Stat.ValueText, { children: t2 });
476
+ $[6] = t2;
477
+ $[7] = t3;
478
+ } else t3 = $[7];
479
+ let t4;
480
+ if ($[8] !== t) {
481
+ t4 = t("seats.help");
482
+ $[8] = t;
483
+ $[9] = t4;
484
+ } else t4 = $[9];
485
+ let t5;
486
+ if ($[10] !== t4) {
487
+ t5 = /* @__PURE__ */ jsx(Stat.HelpText, { children: t4 });
488
+ $[10] = t4;
489
+ $[11] = t5;
490
+ } else t5 = $[11];
491
+ let t6;
492
+ if ($[12] !== t1 || $[13] !== t3 || $[14] !== t5) {
493
+ t6 = /* @__PURE__ */ jsxs(Stat.Root, { children: [
494
+ t1,
495
+ t3,
496
+ t5
497
+ ] });
498
+ $[12] = t1;
499
+ $[13] = t3;
500
+ $[14] = t5;
501
+ $[15] = t6;
502
+ } else t6 = $[15];
503
+ let t7;
504
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
505
+ t7 = /* @__PURE__ */ jsx(Sparkbar, {
506
+ signed: true,
507
+ size: "lg",
508
+ values: DAYS
509
+ });
510
+ $[16] = t7;
511
+ } else t7 = $[16];
512
+ let t8;
513
+ if ($[17] !== t6) {
514
+ t8 = /* @__PURE__ */ jsxs(Stack, {
515
+ align: "flex-end",
516
+ direction: "row",
517
+ justify: "between",
518
+ children: [t6, t7]
519
+ });
520
+ $[17] = t6;
521
+ $[18] = t8;
522
+ } else t8 = $[18];
523
+ return t8;
524
+ }
525
+ const source = "import { type ReactElement } from \"react\";\n\nimport { Stat } from \"@stealthscale/component-data\";\nimport { Stack } from \"@stealthscale/component-layout\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { Sparkbar } from \"@stealthscale/component-charts\";\n\nconst DAYS = [4, -2, 6, 3, -5, 8, 2, -1, 5, 4, -3, 7, 6, 2];\n\nexport function Seats(): ReactElement {\n const { t } = useWords(\"sparkbar\");\n\n return (\n <Stack align=\"flex-end\" direction=\"row\" justify=\"between\">\n <Stat.Root>\n <Stat.Label>{t(\"seats.label\")}</Stat.Label>\n <Stat.ValueText>{t(\"seats.value\")}</Stat.ValueText>\n <Stat.HelpText>{t(\"seats.help\")}</Stat.HelpText>\n </Stat.Root>\n <Sparkbar signed size=\"lg\" values={DAYS} />\n </Stack>\n );\n}\n";
526
+ //#endregion
527
+ //#region src/sparkbar/sparkbar.specimen.tsx
528
+ /**
529
+ * Catalogue page for the sparkbar.
530
+ *
531
+ * @remarks
532
+ * `scenesOf` generates the size and stretch scenes from the spark recipe. The other scenes are
533
+ * hand-written: deploys beside their stat, net seats with falls in the error color, orders
534
+ * against a target, a run with a missing reading, a named run on its own, and the bars
535
+ * animated in with a replay. Every scene renders a component from `examples/` and shows that file
536
+ * as its source. The words are keys under `sparkbar` in `locales/en/specimen/sparkbar.json`.
537
+ */
538
+ /**
539
+ * Hand-written scene for a run beside its figure.
540
+ */
541
+ const figure = {
542
+ about: "sparkbar.deploys.about",
543
+ draw: () => /* @__PURE__ */ jsx(Room, {
544
+ size: "sm",
545
+ children: /* @__PURE__ */ jsx(Deploys, {})
546
+ }),
547
+ example: deploys_example_exports,
548
+ title: "sparkbar.deploys.title"
549
+ };
550
+ /**
551
+ * Hand-written scene for a run of changes with its falls in the error color.
552
+ */
553
+ const signed = {
554
+ about: "sparkbar.seats.about",
555
+ draw: () => /* @__PURE__ */ jsx(Room, {
556
+ size: "sm",
557
+ children: /* @__PURE__ */ jsx(Seats, {})
558
+ }),
559
+ example: seats_example_exports,
560
+ title: "sparkbar.seats.title"
561
+ };
562
+ /**
563
+ * Hand-written scene for a run against a target.
564
+ */
565
+ const baseline = {
566
+ about: "sparkbar.orders.about",
567
+ draw: () => /* @__PURE__ */ jsx(Room, {
568
+ size: "sm",
569
+ children: /* @__PURE__ */ jsx(Orders, {})
570
+ }),
571
+ example: orders_example_exports,
572
+ title: "sparkbar.orders.title"
573
+ };
574
+ /**
575
+ * Hand-written scene for a run with a missing reading.
576
+ */
577
+ const gap = {
578
+ about: "sparkbar.outage.about",
579
+ draw: () => /* @__PURE__ */ jsx(Room, {
580
+ size: "sm",
581
+ children: /* @__PURE__ */ jsx(Outage, {})
582
+ }),
583
+ example: outage_example_exports,
584
+ title: "sparkbar.outage.title"
585
+ };
586
+ /**
587
+ * Hand-written scene for a named run on its own.
588
+ */
589
+ const named = {
590
+ about: "sparkbar.incidents.about",
591
+ draw: Incidents,
592
+ example: incidents_example_exports,
593
+ title: "sparkbar.incidents.title"
594
+ };
595
+ /**
596
+ * Hand-written scene for the bars animated in, with a replay.
597
+ */
598
+ const animated = {
599
+ about: "sparkbar.replay.about",
600
+ draw: Replay,
601
+ example: replay_example_exports,
602
+ title: "sparkbar.replay.title"
603
+ };
604
+ var sparkbar_specimen_default = specimen({
605
+ about: "sparkbar.about",
606
+ id: "components/charts/sparkbar",
607
+ imports: "import { Sparkbar } from \"@stealthscale/component-charts\";",
608
+ scenes: [
609
+ figure,
610
+ signed,
611
+ ...scenesOf(recipe, {
612
+ axes: { stretch: { draw: (props) => /* @__PURE__ */ jsx(Room, {
613
+ size: "sm",
614
+ children: /* @__PURE__ */ jsx(Primary, { ...props })
615
+ }) } },
616
+ draw: (props) => /* @__PURE__ */ jsx(Primary, { ...props }),
617
+ example: primary_example_exports,
618
+ namespace: "sparkbar",
619
+ order: ["size", "stretch"]
620
+ }),
621
+ baseline,
622
+ gap,
623
+ named,
624
+ animated
625
+ ],
626
+ title: "sparkbar.title"
627
+ });
628
+ //#endregion
629
+ export { animated, baseline, sparkbar_specimen_default as default, figure, gap, named, signed };
@@ -0,0 +1,3 @@
1
+ export const dropped = {"SparkbarProps": {"conditions": 284, "foreign": 1039}};
2
+ export const parts = {"SparkbarProps": [{"accepts": "boolean", "fallback": "", "kind": "option", "name": "animate", "refers": [], "required": false, "says": "Whether the bars animate in, which they do only outside reduced motion."}, {"accepts": "number", "fallback": "", "kind": "option", "name": "baseline", "refers": [], "required": false, "says": "Value a dashed line marks across the run, such as a target."}, {"accepts": "ChartColor", "fallback": "", "kind": "option", "name": "color", "refers": ["kit.ChartColor"], "required": false, "says": "Palette the bars take their color from. The theme's first series color unless stated."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "label", "refers": [], "required": false, "says": "Name of a run shown on its own. A run without one is hidden from assistive technology."}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "signed", "refers": [], "required": false, "says": "Whether a value under zero takes the error palette's chart color."}, {"accepts": "\"lg\" | \"md\" | \"sm\"", "fallback": "", "kind": "variant", "name": "size", "refers": [], "required": false, "says": "Box on the grid, four times as wide as it is tall."}, {"accepts": "boolean", "fallback": "", "kind": "variant", "name": "stretch", "refers": [], "required": false, "says": "Whether the box fills its container's width at the size's height."}, {"accepts": "readonly SparkValue[]", "fallback": "", "kind": "option", "name": "values", "refers": [], "required": true, "says": "The run, oldest first. A value that is not a finite number leaves its period empty."}]};
3
+ export const shapes = {"kit.ChartColor": [{"accepts": "", "name": "\"accent\"", "says": ""}, {"accepts": "", "name": "\"blue\"", "says": ""}, {"accepts": "", "name": "\"cyan\"", "says": ""}, {"accepts": "", "name": "\"error\"", "says": ""}, {"accepts": "", "name": "\"gray\"", "says": ""}, {"accepts": "", "name": "\"green\"", "says": ""}, {"accepts": "", "name": "\"indigo\"", "says": ""}, {"accepts": "", "name": "\"info\"", "says": ""}, {"accepts": "", "name": "\"neutral\"", "says": ""}, {"accepts": "", "name": "\"orange\"", "says": ""}, {"accepts": "", "name": "\"pink\"", "says": ""}, {"accepts": "", "name": "\"primary\"", "says": ""}, {"accepts": "", "name": "\"purple\"", "says": ""}, {"accepts": "", "name": "\"red\"", "says": ""}, {"accepts": "", "name": "\"secondary\"", "says": ""}, {"accepts": "", "name": "\"series.1\"", "says": ""}, {"accepts": "", "name": "\"series.2\"", "says": ""}, {"accepts": "", "name": "\"series.3\"", "says": ""}, {"accepts": "", "name": "\"series.4\"", "says": ""}, {"accepts": "", "name": "\"series.5\"", "says": ""}, {"accepts": "", "name": "\"series.6\"", "says": ""}, {"accepts": "", "name": "\"series.7\"", "says": ""}, {"accepts": "", "name": "\"series.8\"", "says": ""}, {"accepts": "", "name": "\"success\"", "says": ""}, {"accepts": "", "name": "\"teal\"", "says": ""}, {"accepts": "", "name": "\"warning\"", "says": ""}, {"accepts": "", "name": "\"yellow\"", "says": ""}]};