wimui 0.20.0 → 0.22.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 (62) hide show
  1. package/dist/components/charts/AreaChart/AreaChart.cjs +1 -1
  2. package/dist/components/charts/AreaChart/AreaChart.d.ts +9 -2
  3. package/dist/components/charts/AreaChart/AreaChart.js +13 -29
  4. package/dist/components/charts/AreaChart/area-chart.module.cjs +1 -1
  5. package/dist/components/charts/AreaChart/area-chart.module.js +1 -1
  6. package/dist/components/charts/BarChart/BarChart.cjs +1 -1
  7. package/dist/components/charts/BarChart/BarChart.d.ts +9 -2
  8. package/dist/components/charts/BarChart/BarChart.js +12 -7
  9. package/dist/components/charts/BarChart/bar-chart.module.cjs +1 -1
  10. package/dist/components/charts/BarChart/bar-chart.module.js +1 -1
  11. package/dist/components/charts/FunnelChart/FunnelChart.cjs +1 -1
  12. package/dist/components/charts/FunnelChart/FunnelChart.js +36 -28
  13. package/dist/components/charts/FunnelChart/funnel-chart.module.cjs +1 -1
  14. package/dist/components/charts/FunnelChart/funnel-chart.module.js +1 -1
  15. package/dist/components/charts/GaugeChart/gauge-chart.module.cjs +1 -1
  16. package/dist/components/charts/GaugeChart/gauge-chart.module.js +1 -1
  17. package/dist/components/charts/Heatmap/Heatmap.cjs +1 -1
  18. package/dist/components/charts/Heatmap/Heatmap.js +11 -4
  19. package/dist/components/charts/Heatmap/heatmap.module.cjs +1 -1
  20. package/dist/components/charts/Heatmap/heatmap.module.js +1 -1
  21. package/dist/components/charts/LineChart/LineChart.cjs +1 -1
  22. package/dist/components/charts/LineChart/LineChart.d.ts +9 -2
  23. package/dist/components/charts/LineChart/LineChart.js +5 -3
  24. package/dist/components/charts/LineChart/line-chart.module.cjs +1 -1
  25. package/dist/components/charts/LineChart/line-chart.module.js +1 -1
  26. package/dist/components/charts/PieChart/PieChart.cjs +1 -1
  27. package/dist/components/charts/PieChart/PieChart.js +3 -2
  28. package/dist/components/charts/PieChart/pie-chart.module.cjs +1 -1
  29. package/dist/components/charts/PieChart/pie-chart.module.js +1 -1
  30. package/dist/components/charts/RadarChart/RadarChart.cjs +1 -1
  31. package/dist/components/charts/RadarChart/RadarChart.js +6 -2
  32. package/dist/components/charts/RadarChart/radar-chart.module.cjs +1 -1
  33. package/dist/components/charts/RadarChart/radar-chart.module.js +1 -1
  34. package/dist/components/charts/ScatterChart/ScatterChart.cjs +1 -1
  35. package/dist/components/charts/ScatterChart/ScatterChart.d.ts +12 -1
  36. package/dist/components/charts/ScatterChart/ScatterChart.js +10 -7
  37. package/dist/components/charts/ScatterChart/scatter-chart.module.cjs +1 -1
  38. package/dist/components/charts/ScatterChart/scatter-chart.module.js +1 -1
  39. package/dist/components/charts/Sparkline/Sparkline.cjs +1 -1
  40. package/dist/components/charts/Sparkline/Sparkline.js +62 -80
  41. package/dist/components/charts/Sparkline/sparkline.module.cjs +1 -1
  42. package/dist/components/charts/Sparkline/sparkline.module.js +1 -1
  43. package/dist/components/charts/Treemap/Treemap.cjs +1 -1
  44. package/dist/components/charts/Treemap/Treemap.js +107 -59
  45. package/dist/components/form/Rating/rating.module.cjs +1 -1
  46. package/dist/components/form/Rating/rating.module.js +1 -1
  47. package/dist/components/form/SignaturePad/signature-pad.module.cjs +1 -1
  48. package/dist/components/form/SignaturePad/signature-pad.module.js +6 -6
  49. package/dist/components/helpers.cjs +1 -1
  50. package/dist/components/helpers.d.ts +9 -0
  51. package/dist/components/helpers.js +2 -11
  52. package/dist/components/layout/Dashboard/Dashboard.cjs +1 -1
  53. package/dist/components/layout/Dashboard/Dashboard.d.ts +8 -0
  54. package/dist/components/layout/Dashboard/Dashboard.js +47 -42
  55. package/dist/components/layout/Dashboard/dashboard.module.cjs +1 -1
  56. package/dist/components/layout/Dashboard/dashboard.module.js +13 -13
  57. package/dist/llms-full.txt +22 -3
  58. package/dist/llms.txt +1 -1
  59. package/dist/styles.css +2 -2
  60. package/dist/wimui.umd.css +1 -1
  61. package/dist/wimui.umd.js +1 -1
  62. package/package.json +8 -1
@@ -1,4 +1,6 @@
1
1
  import { default as React } from 'react';
2
+ /** ウィジェットの見出しに使う段。ページ側の見出しに合わせる(T140)。 */
3
+ export type DashboardTitleLevel = 2 | 3 | 4 | 5 | 6;
2
4
  export interface DashboardWidget {
3
5
  id: string;
4
6
  title: string;
@@ -28,6 +30,12 @@ export interface DashboardProps extends Omit<React.ComponentPropsWithoutRef<"div
28
30
  gap?: "xs" | "sm" | "md" | "lg" | "xl";
29
31
  /** Show the edit toggle button in the header. Default: true. */
30
32
  showEditToggle?: boolean;
33
+ /**
34
+ * Heading level for the widget titles. Match it to the page: a dashboard
35
+ * under an `h1` needs `2`, one under an `h2` section keeps `3`.
36
+ * @default 3
37
+ */
38
+ titleLevel?: DashboardTitleLevel;
31
39
  /** Dashboard heading label. */
32
40
  label?: string;
33
41
  }
@@ -15,63 +15,68 @@ var _ = l(null), v = () => {
15
15
  let e = d(_);
16
16
  if (!e) throw Error("Dashboard subcomponents must be used within Dashboard");
17
17
  return e;
18
- }, y = c.forwardRef(({ widgets: t, editable: a, defaultEditable: c = !1, onEditChange: l, onRemove: d, onAdd: v, columns: y = 3, gap: x = "md", showEditToggle: S = !0, label: C, className: w, style: T, children: E, ...D }, O) => {
19
- let { t: k } = e("components"), A = a !== void 0, [j, M] = p(c), N = A ? a : j, P = u(() => {
20
- let e = !N;
21
- A || M(e), l?.(e);
18
+ }, y = c.forwardRef(({ widgets: t, editable: a, defaultEditable: c = !1, onEditChange: l, onRemove: d, onAdd: v, columns: y = 3, gap: x = "md", showEditToggle: S, titleLevel: C = 3, label: w, className: T, style: E, children: D, ...O }, k) => {
19
+ let { t: A } = e("components"), j = a !== void 0, [M, N] = p(c), P = j ? a : M, F = u(() => {
20
+ let e = !P;
21
+ j || N(e), l?.(e);
22
22
  }, [
23
- N,
24
- A,
23
+ P,
24
+ j,
25
25
  l
26
- ]), F = {
26
+ ]), I = {
27
27
  "--dashboard-columns": y,
28
- ...T
29
- }, I = f(() => ({
30
- editable: N ?? !1,
31
- onRemove: d
32
- }), [N, d]);
28
+ ...E
29
+ }, L = S ?? (a !== void 0 || c || d !== void 0 || v !== void 0), R = f(() => ({
30
+ editable: P ?? !1,
31
+ onRemove: d,
32
+ titleLevel: C
33
+ }), [
34
+ P,
35
+ d,
36
+ C
37
+ ]);
33
38
  return /* @__PURE__ */ h(_.Provider, {
34
- value: I,
39
+ value: R,
35
40
  children: /* @__PURE__ */ g("div", {
36
- ref: O,
37
- className: m("wim-dashboard", s.root, w),
38
- "aria-label": C ?? k("dashboard_widget.label"),
39
- ...D,
40
- children: [S && /* @__PURE__ */ g("div", {
41
+ ref: k,
42
+ className: m("wim-dashboard", s.root, T),
43
+ "aria-label": w ?? A("dashboard_widget.label"),
44
+ ...O,
45
+ children: [(w || L) && /* @__PURE__ */ g("div", {
41
46
  className: s.header,
42
- children: [C && /* @__PURE__ */ h("h2", {
47
+ children: [w && /* @__PURE__ */ h("h2", {
43
48
  className: s.heading,
44
- children: C
45
- }), /* @__PURE__ */ h(o, {
49
+ children: w
50
+ }), L && /* @__PURE__ */ h(o, {
46
51
  size: "sm",
47
- variant: N ? "solid" : "outline",
52
+ variant: P ? "solid" : "outline",
48
53
  intent: "default",
49
54
  className: void 0,
50
- onClick: P,
51
- "aria-pressed": N,
52
- "aria-label": k(N ? "dashboard_widget.exit_edit" : "dashboard_widget.enter_edit"),
55
+ onClick: F,
56
+ "aria-pressed": P,
57
+ "aria-label": A(P ? "dashboard_widget.exit_edit" : "dashboard_widget.enter_edit"),
53
58
  icon: /* @__PURE__ */ h(i, {
54
59
  component: n,
55
60
  size: "sm"
56
61
  }),
57
- children: k(N ? "dashboard_widget.exit_edit" : "dashboard_widget.enter_edit")
62
+ children: A(P ? "dashboard_widget.exit_edit" : "dashboard_widget.enter_edit")
58
63
  })]
59
64
  }), /* @__PURE__ */ g("div", {
60
65
  className: m(s.grid, s[`gap-${x}`]),
61
- style: F,
66
+ style: I,
62
67
  role: "region",
63
- "aria-label": k("dashboard_widget.grid_label"),
64
- children: [t ? t.map((e) => /* @__PURE__ */ h(b, { widget: e }, e.id)) : E, N && v && /* @__PURE__ */ h(o, {
68
+ "aria-label": A("dashboard_widget.grid_label"),
69
+ children: [t ? t.map((e) => /* @__PURE__ */ h(b, { widget: e }, e.id)) : D, P && v && /* @__PURE__ */ h(o, {
65
70
  asChild: !0,
66
71
  className: s.addButton,
67
72
  onClick: v,
68
- "aria-label": k("dashboard_widget.add_widget"),
73
+ "aria-label": A("dashboard_widget.add_widget"),
69
74
  children: /* @__PURE__ */ g("button", {
70
75
  type: "button",
71
76
  children: [/* @__PURE__ */ h(i, {
72
77
  component: r,
73
78
  size: "md"
74
- }), /* @__PURE__ */ h("span", { children: k("dashboard_widget.add_widget") })]
79
+ }), /* @__PURE__ */ h("span", { children: A("dashboard_widget.add_widget") })]
75
80
  })
76
81
  })]
77
82
  })]
@@ -80,35 +85,35 @@ var _ = l(null), v = () => {
80
85
  });
81
86
  y.displayName = "Dashboard";
82
87
  var b = ({ widget: n, className: r, ...c }) => {
83
- let { editable: l, onRemove: u } = v(), { t: d } = e("components"), { id: f, title: p, description: _, content: y, span: b = 1, rowSpan: x = 1 } = n;
88
+ let { editable: l, onRemove: u, titleLevel: d } = v(), f = `h${d}`, { t: p } = e("components"), { id: _, title: y, description: b, content: x, span: S = 1, rowSpan: C = 1 } = n;
84
89
  return /* @__PURE__ */ g(a, {
85
90
  variant: "outline",
86
91
  padding: "md",
87
92
  radius: "md",
88
- className: m(s.widget, s[`span-${b}`], s[`row-${x}`], { [s.editMode]: l }, r),
93
+ className: m(s.widget, s[`span-${S}`], s[`row-${C}`], { [s.editMode]: l }, r),
89
94
  style: {
90
- "--widget-span": b,
91
- "--widget-row-span": x
95
+ "--widget-span": S,
96
+ "--widget-row-span": C
92
97
  },
93
98
  ...c,
94
99
  children: [/* @__PURE__ */ g("div", {
95
100
  className: s.widgetHeader,
96
101
  children: [/* @__PURE__ */ g("div", {
97
102
  className: s.widgetMeta,
98
- children: [/* @__PURE__ */ h("h3", {
103
+ children: [/* @__PURE__ */ h(f, {
99
104
  className: s.widgetTitle,
100
- children: p
101
- }), _ && /* @__PURE__ */ h("p", {
105
+ children: y
106
+ }), b && /* @__PURE__ */ h("p", {
102
107
  className: s.widgetDescription,
103
- children: _
108
+ children: b
104
109
  })]
105
110
  }), l && u && /* @__PURE__ */ h(o, {
106
111
  size: "sm",
107
112
  variant: "ghost",
108
113
  intent: "danger",
109
114
  className: s.removeButton,
110
- onClick: () => u(f),
111
- "aria-label": d("dashboard_widget.remove_widget", { title: p }),
115
+ onClick: () => u(_),
116
+ "aria-label": p("dashboard_widget.remove_widget", { title: y }),
112
117
  icon: /* @__PURE__ */ h(i, {
113
118
  component: t,
114
119
  size: "sm"
@@ -116,7 +121,7 @@ var b = ({ widget: n, className: r, ...c }) => {
116
121
  })]
117
122
  }), /* @__PURE__ */ h("div", {
118
123
  className: s.widgetContent,
119
- children: y
124
+ children: x
120
125
  })]
121
126
  });
122
127
  };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_dudyo_3`,t=`_header_dudyo_19`,n=`_heading_dudyo_26`,r=`_grid_dudyo_34`,i=`_widget_dudyo_69`,a=`_editMode_dudyo_77`,o=`_widgetHeader_dudyo_113`,s=`_widgetMeta_dudyo_122`,c=`_widgetTitle_dudyo_129`,l=`_widgetDescription_dudyo_139`,u=`_removeButton_dudyo_148`,d=`_widgetContent_dudyo_152`,f=`_addButton_dudyo_157`,p={root:e,header:t,heading:n,grid:r,"gap-xs":`_gap-xs_dudyo_49`,"gap-sm":`_gap-sm_dudyo_53`,"gap-md":`_gap-md_dudyo_57`,"gap-lg":`_gap-lg_dudyo_61`,"gap-xl":`_gap-xl_dudyo_65`,widget:i,editMode:a,"span-1":`_span-1_dudyo_85`,"span-2":`_span-2_dudyo_89`,"span-3":`_span-3_dudyo_93`,"span-4":`_span-4_dudyo_97`,"row-1":`_row-1_dudyo_101`,"row-2":`_row-2_dudyo_105`,"row-3":`_row-3_dudyo_109`,widgetHeader:o,widgetMeta:s,widgetTitle:c,widgetDescription:l,removeButton:u,widgetContent:d,addButton:f};exports.addButton=f,exports.default=p,exports.editMode=a,exports.grid=r,exports.header=t,exports.heading=n,exports.removeButton=u,exports.root=e,exports.widget=i,exports.widgetContent=d,exports.widgetDescription=l,exports.widgetHeader=o,exports.widgetMeta=s,exports.widgetTitle=c;
2
+ var e=`_root_1y517_3`,t=`_header_1y517_19`,n=`_heading_1y517_26`,r=`_grid_1y517_34`,i=`_widget_1y517_69`,a=`_editMode_1y517_77`,o=`_widgetHeader_1y517_130`,s=`_widgetMeta_1y517_139`,c=`_widgetTitle_1y517_146`,l=`_widgetDescription_1y517_156`,u=`_removeButton_1y517_165`,d=`_widgetContent_1y517_169`,f=`_addButton_1y517_174`,p={root:e,header:t,heading:n,grid:r,"gap-xs":`_gap-xs_1y517_49`,"gap-sm":`_gap-sm_1y517_53`,"gap-md":`_gap-md_1y517_57`,"gap-lg":`_gap-lg_1y517_61`,"gap-xl":`_gap-xl_1y517_65`,widget:i,editMode:a,"span-1":`_span-1_1y517_85`,"span-2":`_span-2_1y517_89`,"span-3":`_span-3_1y517_93`,"span-4":`_span-4_1y517_97`,"row-1":`_row-1_1y517_101`,"row-2":`_row-2_1y517_105`,"row-3":`_row-3_1y517_109`,widgetHeader:o,widgetMeta:s,widgetTitle:c,widgetDescription:l,removeButton:u,widgetContent:d,addButton:f};exports.addButton=f,exports.default=p,exports.editMode=a,exports.grid=r,exports.header=t,exports.heading=n,exports.removeButton=u,exports.root=e,exports.widget=i,exports.widgetContent=d,exports.widgetDescription=l,exports.widgetHeader=o,exports.widgetMeta=s,exports.widgetTitle=c;
@@ -1,24 +1,24 @@
1
1
  "use client";
2
2
  //#region src/components/layout/Dashboard/dashboard.module.scss
3
- var e = "_root_dudyo_3", t = "_header_dudyo_19", n = "_heading_dudyo_26", r = "_grid_dudyo_34", i = "_widget_dudyo_69", a = "_editMode_dudyo_77", o = "_widgetHeader_dudyo_113", s = "_widgetMeta_dudyo_122", c = "_widgetTitle_dudyo_129", l = "_widgetDescription_dudyo_139", u = "_removeButton_dudyo_148", d = "_widgetContent_dudyo_152", f = "_addButton_dudyo_157", p = {
3
+ var e = "_root_1y517_3", t = "_header_1y517_19", n = "_heading_1y517_26", r = "_grid_1y517_34", i = "_widget_1y517_69", a = "_editMode_1y517_77", o = "_widgetHeader_1y517_130", s = "_widgetMeta_1y517_139", c = "_widgetTitle_1y517_146", l = "_widgetDescription_1y517_156", u = "_removeButton_1y517_165", d = "_widgetContent_1y517_169", f = "_addButton_1y517_174", p = {
4
4
  root: e,
5
5
  header: t,
6
6
  heading: n,
7
7
  grid: r,
8
- "gap-xs": "_gap-xs_dudyo_49",
9
- "gap-sm": "_gap-sm_dudyo_53",
10
- "gap-md": "_gap-md_dudyo_57",
11
- "gap-lg": "_gap-lg_dudyo_61",
12
- "gap-xl": "_gap-xl_dudyo_65",
8
+ "gap-xs": "_gap-xs_1y517_49",
9
+ "gap-sm": "_gap-sm_1y517_53",
10
+ "gap-md": "_gap-md_1y517_57",
11
+ "gap-lg": "_gap-lg_1y517_61",
12
+ "gap-xl": "_gap-xl_1y517_65",
13
13
  widget: i,
14
14
  editMode: a,
15
- "span-1": "_span-1_dudyo_85",
16
- "span-2": "_span-2_dudyo_89",
17
- "span-3": "_span-3_dudyo_93",
18
- "span-4": "_span-4_dudyo_97",
19
- "row-1": "_row-1_dudyo_101",
20
- "row-2": "_row-2_dudyo_105",
21
- "row-3": "_row-3_dudyo_109",
15
+ "span-1": "_span-1_1y517_85",
16
+ "span-2": "_span-2_1y517_89",
17
+ "span-3": "_span-3_1y517_93",
18
+ "span-4": "_span-4_1y517_97",
19
+ "row-1": "_row-1_1y517_101",
20
+ "row-2": "_row-2_1y517_105",
21
+ "row-3": "_row-3_1y517_109",
22
22
  widgetHeader: o,
23
23
  widgetMeta: s,
24
24
  widgetTitle: c,
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.20.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.22.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10
 
@@ -708,7 +708,10 @@ export function RenameWorkspace() {
708
708
  - `onAdd: () => void` — Called when the "Add Widget" button is clicked.
709
709
  - `columns: number` = 3 — Number of columns. Default: 3.
710
710
  - `gap: "xs" | "sm" | "md" | "lg" | "xl"` = "md" — Gap between widgets. Default: "md".
711
- - `showEditToggle: boolean` = true — Show the edit toggle button in the header. Default: true.
711
+ - `showEditToggle: boolean` — Show the edit toggle button in the header. Default: true.
712
+ - `titleLevel: 2 | 3 | 4 | 5 | 6` = 3 — Heading level for the widget titles. Match it to the page: a dashboard
713
+ under an `h1` needs `2`, one under an `h2` section keeps `3`.
714
+ @default 3
712
715
  - `label: string` — Dashboard heading label.
713
716
  - **Divider** — Content separator (aka Separator, Horizontal Rule)
714
717
  - `orientation: "horizontal" | "vertical"` = "horizontal" — Orientation of the divider
@@ -2834,6 +2837,10 @@ Ignored when `truncate` is set (one line wins; they cannot both apply).
2834
2837
  - `xAxisKey: string` (required) — The key in the data objects used for the X axis labels.
2835
2838
  - `stacked: boolean` = false — If true, series are stacked on top of each other.
2836
2839
  @default false
2840
+ - `yDomain: [ number | "auto" | "dataMin" | (string & {}), number | "auto" | "dataMax" | (string & {}), ]` = [0, "auto"] — Range of the Y axis. Pass ["auto", "auto"] when the change matters more
2841
+ than the distance from zero. Bars keep zero by default: their length is
2842
+ the value, so cutting the axis lies about the ratio between them.
2843
+ @default [0, "auto"]
2837
2844
  - `height: number` = 300 — The height of the chart in pixels.
2838
2845
  @default 300
2839
2846
  - `width: string | number` = "100%" — The width of the chart (e.g., "100%", 500).
@@ -2849,6 +2856,10 @@ Ignored when `truncate` is set (one line wins; they cannot both apply).
2849
2856
  - `xAxisKey: string` (required) — The key in the data objects used for the X axis labels.
2850
2857
  - `stacked: boolean` = false — If true, series are stacked on top of each other.
2851
2858
  @default false
2859
+ - `yDomain: [ number | "auto" | "dataMin" | (string & {}), number | "auto" | "dataMax" | (string & {}), ]` = [0, "auto"] — Range of the Y axis. Pass ["auto", "auto"] when the change matters more
2860
+ than the distance from zero. Bars keep zero by default: their length is
2861
+ the value, so cutting the axis lies about the ratio between them.
2862
+ @default [0, "auto"]
2852
2863
  - `height: number` = 300 — The height of the chart in pixels.
2853
2864
  @default 300
2854
2865
  - `width: string | number` = "100%" — The width of the chart (e.g., "100%", 500).
@@ -2918,6 +2929,10 @@ Ignored when `truncate` is set (one line wins; they cannot both apply).
2918
2929
  - `title: string` — Optional title displayed above the chart.
2919
2930
  - `smooth: boolean` = false — If true, draws smooth (monotone) curves instead of straight lines.
2920
2931
  @default false
2932
+ - `yDomain: [ number | "auto" | "dataMin" | (string & {}), number | "auto" | "dataMax" | (string & {}), ]` = [0, "auto"] — Range of the Y axis. Pass ["auto", "auto"] when the change matters more
2933
+ than the distance from zero (a yield moving between 84% and 85% is a flat
2934
+ line on a 0–100 axis).
2935
+ @default [0, "auto"]
2921
2936
  - `animated: boolean` = false — If true, animates the chart on mount.
2922
2937
  @default false
2923
2938
  - **PieChart** — Proportional parts of a whole chart
@@ -2948,6 +2963,10 @@ Ignored when `truncate` is set (one line wins; they cannot both apply).
2948
2963
  @default "X"
2949
2964
  - `yAxisName: string` = "Y" — Name of the Y axis, shown in the tooltip.
2950
2965
  @default "Y"
2966
+ - `xDomain: [ number | "auto" | "dataMin" | (string & {}), number | "auto" | "dataMax" | (string & {}), ]` = ["auto", "auto"] — Range of the X axis.
2967
+ @default ["auto", "auto"]
2968
+ - `yDomain: [ number | "auto" | "dataMin" | (string & {}), number | "auto" | "dataMax" | (string & {}), ]` = ["auto", "auto"] — Range of the Y axis.
2969
+ @default ["auto", "auto"]
2951
2970
  - `height: number` = 300 — The height of the chart in pixels.
2952
2971
  @default 300
2953
2972
  - `width: string | number` = "100%" — The width of the chart (e.g., "100%", 500).
@@ -2958,7 +2977,7 @@ Ignored when `truncate` is set (one line wins; they cannot both apply).
2958
2977
  - **Sparkline** — Tiny inline trend chart
2959
2978
  - `data: number[]` (required) — Sequence of values to plot, in order
2960
2979
  - `type: "line" | "area" | "bar"` = "line" — Visual form of the sparkline
2961
- - `width: number | string` = 100 — Width of the sparkline (number in px, or a CSS value such as "100%")
2980
+ - `width: number | string` = "100%" — Width of the sparkline (number in px, or a CSS value such as "100%")
2962
2981
  - `height: number` = 24 — Height of the sparkline in px
2963
2982
  - `color: string` = "var(--wim-color-chart-primary)" — Stroke/fill color (defaults to the primary chart color)
2964
2983
  - `strokeWidth: number` = 2 — Stroke width for line and area types
package/dist/llms.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.20.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.22.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10