wimui 0.25.0 → 0.26.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 (82) hide show
  1. package/dist/components/_internal/ChartDataTable.cjs +2 -0
  2. package/dist/components/_internal/ChartDataTable.d.ts +43 -0
  3. package/dist/components/_internal/ChartDataTable.js +20 -0
  4. package/dist/components/_internal/chart-data-table.module.cjs +2 -0
  5. package/dist/components/_internal/chart-data-table.module.js +5 -0
  6. package/dist/components/_internal/chartTableData.cjs +0 -0
  7. package/dist/components/_internal/chartTableData.d.ts +53 -0
  8. package/dist/components/_internal/chartTableData.js +0 -0
  9. package/dist/components/ai/AgentStatus/agent-status.module.cjs +1 -1
  10. package/dist/components/ai/AgentStatus/agent-status.module.js +3 -3
  11. package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.cjs +1 -1
  12. package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.js +2 -2
  13. package/dist/components/ai/InteractiveGraph/interactive-graph.module.cjs +1 -1
  14. package/dist/components/ai/InteractiveGraph/interactive-graph.module.js +1 -1
  15. package/dist/components/charts/AreaChart/AreaChart.cjs +1 -1
  16. package/dist/components/charts/AreaChart/AreaChart.d.ts +7 -1
  17. package/dist/components/charts/AreaChart/AreaChart.js +85 -68
  18. package/dist/components/charts/BarChart/BarChart.cjs +1 -1
  19. package/dist/components/charts/BarChart/BarChart.d.ts +7 -1
  20. package/dist/components/charts/BarChart/BarChart.js +90 -73
  21. package/dist/components/charts/FunnelChart/FunnelChart.cjs +1 -1
  22. package/dist/components/charts/FunnelChart/FunnelChart.d.ts +7 -1
  23. package/dist/components/charts/FunnelChart/FunnelChart.js +60 -43
  24. package/dist/components/charts/GanttChart/gantt-chart.module.cjs +1 -1
  25. package/dist/components/charts/GanttChart/gantt-chart.module.js +1 -1
  26. package/dist/components/charts/GaugeChart/GaugeChart.cjs +1 -1
  27. package/dist/components/charts/GaugeChart/GaugeChart.d.ts +7 -1
  28. package/dist/components/charts/GaugeChart/GaugeChart.js +6 -4
  29. package/dist/components/charts/Heatmap/Heatmap.cjs +1 -1
  30. package/dist/components/charts/Heatmap/Heatmap.d.ts +7 -1
  31. package/dist/components/charts/Heatmap/Heatmap.js +101 -87
  32. package/dist/components/charts/LineChart/LineChart.cjs +1 -1
  33. package/dist/components/charts/LineChart/LineChart.d.ts +7 -1
  34. package/dist/components/charts/LineChart/LineChart.js +87 -70
  35. package/dist/components/charts/PieChart/PieChart.cjs +1 -1
  36. package/dist/components/charts/PieChart/PieChart.d.ts +7 -1
  37. package/dist/components/charts/PieChart/PieChart.js +65 -45
  38. package/dist/components/charts/RadarChart/RadarChart.cjs +1 -1
  39. package/dist/components/charts/RadarChart/RadarChart.d.ts +7 -1
  40. package/dist/components/charts/RadarChart/RadarChart.js +73 -56
  41. package/dist/components/charts/ScatterChart/ScatterChart.cjs +1 -1
  42. package/dist/components/charts/ScatterChart/ScatterChart.d.ts +7 -1
  43. package/dist/components/charts/ScatterChart/ScatterChart.js +85 -68
  44. package/dist/components/charts/Sparkline/Sparkline.cjs +1 -1
  45. package/dist/components/charts/Sparkline/Sparkline.js +52 -54
  46. package/dist/components/charts/Treemap/Treemap.cjs +1 -1
  47. package/dist/components/charts/Treemap/Treemap.d.ts +7 -1
  48. package/dist/components/charts/Treemap/Treemap.js +75 -61
  49. package/dist/components/data-display/CalendarHeatmap/calendar-heatmap.module.cjs +1 -1
  50. package/dist/components/data-display/CalendarHeatmap/calendar-heatmap.module.js +1 -1
  51. package/dist/components/data-display/Kanban/kanban.module.cjs +1 -1
  52. package/dist/components/data-display/Kanban/kanban.module.js +1 -1
  53. package/dist/components/data-display/NodeGraph/node-graph.module.cjs +1 -1
  54. package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
  55. package/dist/components/feedback/Alert/alert.module.cjs +1 -1
  56. package/dist/components/feedback/Alert/alert.module.js +5 -5
  57. package/dist/components/feedback/ProgressRing/ProgressRing.d.ts +6 -1
  58. package/dist/components/feedback/Toast/toast.module.cjs +1 -1
  59. package/dist/components/feedback/Toast/toast.module.js +11 -11
  60. package/dist/components/form/FieldTemplate/field-template.module.cjs +1 -1
  61. package/dist/components/form/FieldTemplate/field-template.module.js +1 -1
  62. package/dist/components/helpers.cjs +1 -1
  63. package/dist/components/helpers.d.ts +18 -0
  64. package/dist/components/helpers.js +4 -1
  65. package/dist/components/media/Gallery/gallery.module.cjs +1 -1
  66. package/dist/components/media/Gallery/gallery.module.js +11 -11
  67. package/dist/components/navigation/SpeedDial/SpeedDial.d.ts +24 -2
  68. package/dist/i18n/generated/keys.d.ts +1 -1
  69. package/dist/llms-full.txt +97 -11
  70. package/dist/llms.txt +1 -1
  71. package/dist/locales/en/common.json +1 -49
  72. package/dist/locales/en/form.json +1 -20
  73. package/dist/locales/ja/common.json +1 -49
  74. package/dist/locales/ja/form.json +1 -20
  75. package/dist/locales/pt/common.json +1 -49
  76. package/dist/locales/pt/form.json +1 -20
  77. package/dist/robots.txt +5 -0
  78. package/dist/styles.css +2 -2
  79. package/dist/types/generated-tokens.d.ts +1 -1
  80. package/dist/wimui.umd.css +1 -1
  81. package/dist/wimui.umd.js +3 -3
  82. package/package.json +35 -21
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./chart-data-table.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=({caption:e,columns:n,rows:i})=>n.length===0||i.length===0?null:(0,r.jsx)(`div`,{className:t.default.root,children:(0,r.jsxs)(`table`,{"aria-label":e,children:[(0,r.jsx)(`thead`,{children:(0,r.jsx)(`tr`,{children:n.map((e,t)=>e===``?(0,r.jsx)(`td`,{},`corner-${t}`):(0,r.jsx)(`th`,{scope:`col`,children:e},`${e}-${t}`))})}),(0,r.jsx)(`tbody`,{children:i.map((e,t)=>(0,r.jsx)(`tr`,{children:e.map((e,t)=>t===0?(0,r.jsx)(`th`,{scope:`row`,children:e},t):(0,r.jsx)(`td`,{children:e},t))},t))})]})});exports.ChartDataTable=i;
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ /** 表に入れられる値。`ChartDataPoint` の値域と揃える。 */
3
+ export type ChartTableCell = string | number | null | undefined;
4
+ export type ChartDataTableProps = {
5
+ /**
6
+ * 表の名前。図に付けた名前をそのまま使う(別の名前を作らない)。
7
+ *
8
+ * **`<caption>` ではなく `aria-label` で付ける。** `<caption>` は DOM に
9
+ * テキストノードを足すので、可視の見出しと同じ文字列が 2 つになり、
10
+ * 利用者側の `getByText(title)` が**多重一致で落ちる**(この repo 自身の
11
+ * チャートテスト 10 件が実際に落ちた)。名前の付き方は変わらないのに
12
+ * 使う側のテストだけ壊すのは筋が悪い。
13
+ */
14
+ caption?: string;
15
+ /** 列見出し。1 列目は行見出しになる。 */
16
+ columns: string[];
17
+ /** 行。`columns` と同じ長さで渡す。 */
18
+ rows: ChartTableCell[][];
19
+ };
20
+ /**
21
+ * チャートの値を、**目には見えないが支援技術は読める表**として併記する(T230)。
22
+ *
23
+ * ── なぜ名前だけでは足りないのか ────────────────────────────────────────
24
+ * `role="img"` と `aria-label` を付ければ「この図が何か」は伝わるが、**描かれた
25
+ * 値は 1 つも伝わらない**。チャートは値を見せるための部品なので、名前だけでは
26
+ * 「グラフがあります」と言って終わる。表を併記して初めて、見えない人にも同じ
27
+ * 情報が届く。
28
+ *
29
+ * ── 図の**中**には置けない ──────────────────────────────────────────────
30
+ * `role="img"` は **children presentational**(中身が支援技術に露出しない)。
31
+ * 表を `role="img"` の内側に置くと**読まれない**ので、この部品は必ず図の
32
+ * **兄弟**として置く。チャート側は根を `role="figure"` にし、recharts の描画を
33
+ * `aria-hidden` で隠したうえで、この表を並べる。
34
+ *
35
+ * ── 隠し方 ──────────────────────────────────────────────────────────────
36
+ * `VisuallyHidden` は `<span>` を描くので、`<table>` を入れると**不正な HTML**に
37
+ * なる(span は phrasing content)。そのため同じ視覚隠蔽の規則を持つ `<div>` を
38
+ * ここで用意している。規則は `visuallyHidden.module.scss` と同一。
39
+ *
40
+ * ── 空のときは何も描かない ──────────────────────────────────────────────
41
+ * 見出しだけの表は音声で読むと雑音になるだけなので、行が無ければ描かない。
42
+ */
43
+ export declare const ChartDataTable: ({ caption, columns, rows, }: ChartDataTableProps) => React.JSX.Element | null;
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import e from "./chart-data-table.module.js";
3
+ import "react";
4
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
+ //#region src/components/_internal/ChartDataTable.tsx
6
+ var r = ({ caption: r, columns: i, rows: a }) => i.length === 0 || a.length === 0 ? null : /* @__PURE__ */ t("div", {
7
+ className: e.root,
8
+ children: /* @__PURE__ */ n("table", {
9
+ "aria-label": r,
10
+ children: [/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: i.map((e, n) => e === "" ? /* @__PURE__ */ t("td", {}, `corner-${n}`) : /* @__PURE__ */ t("th", {
11
+ scope: "col",
12
+ children: e
13
+ }, `${e}-${n}`)) }) }), /* @__PURE__ */ t("tbody", { children: a.map((e, n) => /* @__PURE__ */ t("tr", { children: e.map((e, n) => n === 0 ? /* @__PURE__ */ t("th", {
14
+ scope: "row",
15
+ children: e
16
+ }, n) : /* @__PURE__ */ t("td", { children: e }, n)) }, n)) })]
17
+ })
18
+ });
19
+ //#endregion
20
+ export { r as ChartDataTable };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var e=`_root_hg6ur_6`,t={root:e};exports.default=t,exports.root=e;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ //#region src/components/_internal/chart-data-table.module.scss
3
+ var e = "_root_hg6ur_6", t = { root: e };
4
+ //#endregion
5
+ export { t as default, e as root };
@@ -0,0 +1,53 @@
1
+ import { ChartDataPoint } from '../helpers';
2
+ import { ChartTableCell } from './ChartDataTable';
3
+ /**
4
+ * チャートの `data` を、`ChartDataTable` が描ける形(列見出し + 行)へ写す(T230)。
5
+ *
6
+ * **チャートごとに `data` の形が違う**ので、ここに形ごとの写し方を集めている。
7
+ * 各チャートに散らすと、片方だけ直して片方が腐る ── 実際 T229 で、同じ内容が
8
+ * 2 か所にあると**負けたほうが黙って腐る**のを見たばかり。
9
+ *
10
+ * 値の見出しは**呼び出し側が渡したキー名をそのまま使う**(`xAxisKey` / `keys` /
11
+ * `dataKey` など)。こちらで訳語を用意すると、呼び出し側のデータと表の言葉が
12
+ * 食い違う。キーが無い形(`PieChart` の `{ name, value }` など)だけ既定の
13
+ * 英語を持つ ── `GanttChart` が既に同じやり方をしている。
14
+ */
15
+ export type ChartTable = {
16
+ columns: string[];
17
+ rows: ChartTableCell[][];
18
+ };
19
+ /**
20
+ * 系列型: 1 行が 1 目盛りで、系列ぶんの列が並ぶ。
21
+ * `AreaChart` / `BarChart` / `LineChart` / `RadarChart` がこれ。
22
+ */
23
+ export declare const seriesTable: (data: ChartDataPoint[], indexKey: string, keys: string[]) => ChartTable;
24
+ /**
25
+ * 対型: 名前と値の 2 列。`FunnelChart` / `PieChart` / `Treemap` がこれ。
26
+ * `Treemap` は入れ子(`{ name, children: [...] }`)で渡されることがあるので、
27
+ * 葉だけを取り出してから渡すこと(`flattenLeaves`)。
28
+ */
29
+ export declare const pairTable: (data: ChartDataPoint[], nameKey: string, valueKey: string) => ChartTable;
30
+ /**
31
+ * 入れ子のデータから葉だけを取り出す。`Treemap` は `children` を持つ形も受ける。
32
+ * 描かれているのは葉のタイルだけなので、表も葉だけを並べる。
33
+ */
34
+ export declare const flattenLeaves: (nodes: ChartDataPoint[]) => ChartDataPoint[];
35
+ /**
36
+ * 行列型: 行が y、列が x で、交点に値が入る。`Heatmap` がこれ。
37
+ * 1 列目は行見出し(y のラベル)なので、列見出しの先頭は空にする。
38
+ */
39
+ export declare const matrixTable: (data: {
40
+ x: string;
41
+ y: string;
42
+ value: number;
43
+ }[], xLabels: string[], yLabels: string[]) => ChartTable;
44
+ /**
45
+ * 点型: 1 行が 1 点。`ScatterChart` がこれ。
46
+ * `z` は任意なので、**1 点でも持っていれば**列に出す(持たない点は空欄)。
47
+ */
48
+ export declare const pointTable: (data: {
49
+ x: number;
50
+ y: number;
51
+ z?: number;
52
+ name: string;
53
+ }[], xLabel: string, yLabel: string, zLabel: string) => ChartTable;
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_1sh9o_3`,t=`_sm_1sh9o_14`,n=`_lg_1sh9o_18`,r=`_indicator_1sh9o_23`,i=`_dot_1sh9o_32`,a=`_label_1sh9o_47`,o=`_idle_1sh9o_51`,s=`_thinking_1sh9o_54`,c=`_running_1sh9o_60`,l=`_waiting_1sh9o_69`,u=`_done_1sh9o_72`,d=`_error_1sh9o_75`,f={root:e,sm:t,lg:n,indicator:r,dot:i,label:a,idle:o,thinking:s,"agent-pulse":`_agent-pulse_1sh9o_1`,running:c,"agent-spin":`_agent-spin_1sh9o_1`,waiting:l,done:u,error:d};exports.default=f,exports.done=u,exports.dot=i,exports.error=d,exports.idle=o,exports.indicator=r,exports.label=a,exports.lg=n,exports.root=e,exports.running=c,exports.sm=t,exports.thinking=s,exports.waiting=l;
2
+ var e=`_root_nu4a4_3`,t=`_sm_nu4a4_14`,n=`_lg_nu4a4_18`,r=`_indicator_nu4a4_23`,i=`_dot_nu4a4_32`,a=`_label_nu4a4_47`,o=`_idle_nu4a4_51`,s=`_thinking_nu4a4_54`,c=`_running_nu4a4_60`,l=`_waiting_nu4a4_69`,u=`_done_nu4a4_72`,d=`_error_nu4a4_75`,f={root:e,sm:t,lg:n,indicator:r,dot:i,label:a,idle:o,thinking:s,"agent-pulse":`_agent-pulse_nu4a4_1`,running:c,"agent-spin":`_agent-spin_nu4a4_1`,waiting:l,done:u,error:d};exports.default=f,exports.done=u,exports.dot=i,exports.error=d,exports.idle=o,exports.indicator=r,exports.label=a,exports.lg=n,exports.root=e,exports.running=c,exports.sm=t,exports.thinking=s,exports.waiting=l;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/ai/AgentStatus/agent-status.module.scss
3
- var e = "_root_1sh9o_3", t = "_sm_1sh9o_14", n = "_lg_1sh9o_18", r = "_indicator_1sh9o_23", i = "_dot_1sh9o_32", a = "_label_1sh9o_47", o = "_idle_1sh9o_51", s = "_thinking_1sh9o_54", c = "_running_1sh9o_60", l = "_waiting_1sh9o_69", u = "_done_1sh9o_72", d = "_error_1sh9o_75", f = {
3
+ var e = "_root_nu4a4_3", t = "_sm_nu4a4_14", n = "_lg_nu4a4_18", r = "_indicator_nu4a4_23", i = "_dot_nu4a4_32", a = "_label_nu4a4_47", o = "_idle_nu4a4_51", s = "_thinking_nu4a4_54", c = "_running_nu4a4_60", l = "_waiting_nu4a4_69", u = "_done_nu4a4_72", d = "_error_nu4a4_75", f = {
4
4
  root: e,
5
5
  sm: t,
6
6
  lg: n,
@@ -9,9 +9,9 @@ var e = "_root_1sh9o_3", t = "_sm_1sh9o_14", n = "_lg_1sh9o_18", r = "_indicator
9
9
  label: a,
10
10
  idle: o,
11
11
  thinking: s,
12
- "agent-pulse": "_agent-pulse_1sh9o_1",
12
+ "agent-pulse": "_agent-pulse_nu4a4_1",
13
13
  running: c,
14
- "agent-spin": "_agent-spin_1sh9o_1",
14
+ "agent-spin": "_agent-spin_nu4a4_1",
15
15
  waiting: l,
16
16
  done: u,
17
17
  error: d
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_8jzru_29`,t=`_header_8jzru_45`,n=`_headerLeft_8jzru_55`,r=`_filename_8jzru_61`,i=`_viewToggle_8jzru_69`,a=`_viewBtn_8jzru_75`,o=`_active_8jzru_87`,s=`_headerActions_8jzru_98`,c=`_iconButton_8jzru_104`,l=`_copied_8jzru_125`,u=`_actionButton_8jzru_131`,d=`_applyButton_8jzru_148`,f=`_applying_8jzru_157`,p=`_applied_8jzru_161`,m=`_spin_8jzru_170`,h=`_rejectButton_8jzru_178`,g=`_body_8jzru_187`,_=`_unified_8jzru_192`,v=`_row_8jzru_197`,y=`_added_8jzru_200`,b=`_removed_8jzru_203`,x=`_split_8jzru_210`,S=`_splitPane_8jzru_214`,C=`_splitDivider_8jzru_219`,w=`_splitCell_8jzru_224`,T=`_empty_8jzru_234`,E=`_lineNum_8jzru_244`,D=`_prefix_8jzru_259`,O=`_lineContent_8jzru_274`,k={root:e,header:t,headerLeft:n,filename:r,viewToggle:i,viewBtn:a,active:o,headerActions:s,iconButton:c,copied:l,actionButton:u,applyButton:d,applying:f,applied:p,spin:m,"code-spin":`_code-spin_8jzru_1`,rejectButton:h,body:g,unified:_,row:v,added:y,removed:b,split:x,splitPane:S,splitDivider:C,splitCell:w,empty:T,lineNum:E,prefix:D,lineContent:O};exports.actionButton=u,exports.active=o,exports.added=y,exports.applied=p,exports.applyButton=d,exports.applying=f,exports.body=g,exports.copied=l,exports.default=k,exports.empty=T,exports.filename=r,exports.header=t,exports.headerActions=s,exports.headerLeft=n,exports.iconButton=c,exports.lineContent=O,exports.lineNum=E,exports.prefix=D,exports.rejectButton=h,exports.removed=b,exports.root=e,exports.row=v,exports.spin=m,exports.split=x,exports.splitCell=w,exports.splitDivider=C,exports.splitPane=S,exports.unified=_,exports.viewBtn=a,exports.viewToggle=i;
2
+ var e=`_root_1sgsp_29`,t=`_header_1sgsp_45`,n=`_headerLeft_1sgsp_55`,r=`_filename_1sgsp_61`,i=`_viewToggle_1sgsp_69`,a=`_viewBtn_1sgsp_75`,o=`_active_1sgsp_87`,s=`_headerActions_1sgsp_98`,c=`_iconButton_1sgsp_104`,l=`_copied_1sgsp_125`,u=`_actionButton_1sgsp_131`,d=`_applyButton_1sgsp_148`,f=`_applying_1sgsp_157`,p=`_applied_1sgsp_161`,m=`_spin_1sgsp_170`,h=`_rejectButton_1sgsp_178`,g=`_body_1sgsp_187`,_=`_unified_1sgsp_192`,v=`_row_1sgsp_197`,y=`_added_1sgsp_200`,b=`_removed_1sgsp_203`,x=`_split_1sgsp_210`,S=`_splitPane_1sgsp_214`,C=`_splitDivider_1sgsp_219`,w=`_splitCell_1sgsp_224`,T=`_empty_1sgsp_234`,E=`_lineNum_1sgsp_244`,D=`_prefix_1sgsp_259`,O=`_lineContent_1sgsp_274`,k={root:e,header:t,headerLeft:n,filename:r,viewToggle:i,viewBtn:a,active:o,headerActions:s,iconButton:c,copied:l,actionButton:u,applyButton:d,applying:f,applied:p,spin:m,"code-spin":`_code-spin_1sgsp_1`,rejectButton:h,body:g,unified:_,row:v,added:y,removed:b,split:x,splitPane:S,splitDivider:C,splitCell:w,empty:T,lineNum:E,prefix:D,lineContent:O};exports.actionButton=u,exports.active=o,exports.added=y,exports.applied=p,exports.applyButton=d,exports.applying=f,exports.body=g,exports.copied=l,exports.default=k,exports.empty=T,exports.filename=r,exports.header=t,exports.headerActions=s,exports.headerLeft=n,exports.iconButton=c,exports.lineContent=O,exports.lineNum=E,exports.prefix=D,exports.rejectButton=h,exports.removed=b,exports.root=e,exports.row=v,exports.spin=m,exports.split=x,exports.splitCell=w,exports.splitDivider=C,exports.splitPane=S,exports.unified=_,exports.viewBtn=a,exports.viewToggle=i;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/ai/CodeDiffViewer/code-diff-viewer.module.scss
3
- var e = "_root_8jzru_29", t = "_header_8jzru_45", n = "_headerLeft_8jzru_55", r = "_filename_8jzru_61", i = "_viewToggle_8jzru_69", a = "_viewBtn_8jzru_75", o = "_active_8jzru_87", s = "_headerActions_8jzru_98", c = "_iconButton_8jzru_104", l = "_copied_8jzru_125", u = "_actionButton_8jzru_131", d = "_applyButton_8jzru_148", f = "_applying_8jzru_157", p = "_applied_8jzru_161", m = "_spin_8jzru_170", h = "_rejectButton_8jzru_178", g = "_body_8jzru_187", _ = "_unified_8jzru_192", v = "_row_8jzru_197", y = "_added_8jzru_200", b = "_removed_8jzru_203", x = "_split_8jzru_210", S = "_splitPane_8jzru_214", C = "_splitDivider_8jzru_219", w = "_splitCell_8jzru_224", T = "_empty_8jzru_234", E = "_lineNum_8jzru_244", D = "_prefix_8jzru_259", O = "_lineContent_8jzru_274", k = {
3
+ var e = "_root_1sgsp_29", t = "_header_1sgsp_45", n = "_headerLeft_1sgsp_55", r = "_filename_1sgsp_61", i = "_viewToggle_1sgsp_69", a = "_viewBtn_1sgsp_75", o = "_active_1sgsp_87", s = "_headerActions_1sgsp_98", c = "_iconButton_1sgsp_104", l = "_copied_1sgsp_125", u = "_actionButton_1sgsp_131", d = "_applyButton_1sgsp_148", f = "_applying_1sgsp_157", p = "_applied_1sgsp_161", m = "_spin_1sgsp_170", h = "_rejectButton_1sgsp_178", g = "_body_1sgsp_187", _ = "_unified_1sgsp_192", v = "_row_1sgsp_197", y = "_added_1sgsp_200", b = "_removed_1sgsp_203", x = "_split_1sgsp_210", S = "_splitPane_1sgsp_214", C = "_splitDivider_1sgsp_219", w = "_splitCell_1sgsp_224", T = "_empty_1sgsp_234", E = "_lineNum_1sgsp_244", D = "_prefix_1sgsp_259", O = "_lineContent_1sgsp_274", k = {
4
4
  root: e,
5
5
  header: t,
6
6
  headerLeft: n,
@@ -16,7 +16,7 @@ var e = "_root_8jzru_29", t = "_header_8jzru_45", n = "_headerLeft_8jzru_55", r
16
16
  applying: f,
17
17
  applied: p,
18
18
  spin: m,
19
- "code-spin": "_code-spin_8jzru_1",
19
+ "code-spin": "_code-spin_1sgsp_1",
20
20
  rejectButton: h,
21
21
  body: g,
22
22
  unified: _,
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_1kkkg_3`,t=`_minimap_1kkkg_84`,n=`_controls_1kkkg_96`,r={root:e,minimap:t,controls:n};exports.controls=n,exports.default=r,exports.minimap=t,exports.root=e;
2
+ var e=`_root_1e18y_3`,t=`_minimap_1e18y_84`,n=`_controls_1e18y_96`,r={root:e,minimap:t,controls:n};exports.controls=n,exports.default=r,exports.minimap=t,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/ai/InteractiveGraph/interactive-graph.module.scss
3
- var e = "_root_1kkkg_3", t = "_minimap_1kkkg_84", n = "_controls_1kkkg_96", r = {
3
+ var e = "_root_1e18y_3", t = "_minimap_1e18y_84", n = "_controls_1e18y_96", r = {
4
4
  root: e,
5
5
  minimap: t,
6
6
  controls: n
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./area-chart.module.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("recharts");var s=({data:e,keys:i,xAxisKey:s,stacked:c=!1,yDomain:l=[0,`auto`],height:u=300,width:d=`100%`,title:f,smooth:p=!0,animated:m=!1})=>(0,a.jsxs)(`div`,{className:`wim-area-chart ${r.default.root}`,style:{width:d},children:[f&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:f}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:u},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.AreaChart,{data:e,margin:{top:5,right:30,left:0,bottom:5},children:[(0,a.jsx)(o.CartesianGrid,{...n.CHART_THEME.grid,vertical:!1}),(0,a.jsx)(o.XAxis,{dataKey:s,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,a.jsx)(o.YAxis,{width:44,domain:l,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,a.jsx)(o.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle,cursor:n.CHART_THEME.tooltip.cursor}),(0,a.jsx)(o.Legend,{verticalAlign:`top`,height:36,...n.CHART_THEME.legend}),i.map((e,t)=>(0,a.jsx)(o.Area,{type:p?`monotone`:`linear`,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],strokeWidth:2,fill:n.CHART_COLORS[t%n.CHART_COLORS.length],fillOpacity:c?.9:.18,stackId:c?`stack`:void 0,isAnimationActive:m},e))]})})})]});exports.AreaChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("../../_internal/ChartDataTable.cjs"),i=require("../../_internal/chartTableData.cjs"),a=require("./area-chart.module.cjs");let o=require("react");o=e.__toESM(o,1);let s=require("react/jsx-runtime"),c=require("recharts");var l=({data:e,keys:o,xAxisKey:l,stacked:u=!1,yDomain:d=[0,`auto`],height:f=300,width:p=`100%`,title:m,smooth:h=!0,animated:g=!1,"aria-label":_})=>{let v=_??m,y=i.seriesTable(e,l,o);return(0,s.jsxs)(`div`,{className:`wim-area-chart ${a.default.root}`,style:{width:p},role:v?`figure`:void 0,"aria-label":v,children:[m&&(0,s.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:m}),(0,s.jsx)(`div`,{className:a.default.container,style:{height:f},"aria-hidden":`true`,children:(0,s.jsx)(c.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,s.jsxs)(c.AreaChart,{...n.CHART_HIDDEN_A11Y_PROPS,data:e,margin:{top:5,right:30,left:0,bottom:5},children:[(0,s.jsx)(c.CartesianGrid,{...n.CHART_THEME.grid,vertical:!1}),(0,s.jsx)(c.XAxis,{dataKey:l,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,s.jsx)(c.YAxis,{width:44,domain:d,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,s.jsx)(c.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle,cursor:n.CHART_THEME.tooltip.cursor}),(0,s.jsx)(c.Legend,{verticalAlign:`top`,height:36,...n.CHART_THEME.legend}),o.map((e,t)=>(0,s.jsx)(c.Area,{type:h?`monotone`:`linear`,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],strokeWidth:2,fill:n.CHART_COLORS[t%n.CHART_COLORS.length],fillOpacity:u?.9:.18,stackId:u?`stack`:void 0,isAnimationActive:g},e))]})})}),(0,s.jsx)(r.ChartDataTable,{caption:v,columns:y.columns,rows:y.rows})]})};exports.AreaChart=l;
@@ -49,5 +49,11 @@ export type AreaChartProps = {
49
49
  * @default false
50
50
  */
51
51
  animated?: boolean;
52
+ /**
53
+ * Accessible name for the chart. Defaults to `title` when omitted; pass this
54
+ * when the chart has no visible title, or when the title is not descriptive
55
+ * enough on its own.
56
+ */
57
+ "aria-label"?: string;
52
58
  };
53
- export declare const AreaChart: ({ data, keys, xAxisKey, stacked, yDomain, height, width, title, smooth, animated, }: AreaChartProps) => React.JSX.Element;
59
+ export declare const AreaChart: ({ data, keys, xAxisKey, stacked, yDomain, height, width, title, smooth, animated, "aria-label": ariaLabel, }: AreaChartProps) => React.JSX.Element;
@@ -1,74 +1,91 @@
1
1
  "use client";
2
2
  import { Title as e } from "../../typography/Title/Title.js";
3
- import { CHART_COLORS as t, CHART_THEME as n } from "../../helpers.js";
4
- import r from "./area-chart.module.js";
3
+ import { CHART_COLORS as t, CHART_HIDDEN_A11Y_PROPS as n, CHART_THEME as r } from "../../helpers.js";
4
+ import { ChartDataTable as i } from "../../_internal/ChartDataTable.js";
5
+ import { seriesTable as a } from "../../_internal/chartTableData.js";
6
+ import o from "./area-chart.module.js";
5
7
  import "react";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { Area as o, AreaChart as s, CartesianGrid as c, Legend as l, ResponsiveContainer as u, Tooltip as d, XAxis as f, YAxis as p } from "recharts";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ import { Area as l, AreaChart as u, CartesianGrid as d, Legend as f, ResponsiveContainer as p, Tooltip as m, XAxis as h, YAxis as g } from "recharts";
8
10
  //#region src/components/charts/AreaChart/AreaChart.tsx
9
- var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, yDomain: v = [0, "auto"], height: y = 300, width: b = "100%", title: x, smooth: S = !0, animated: C = !1 }) => /* @__PURE__ */ a("div", {
10
- className: `wim-area-chart ${r.root}`,
11
- style: { width: b },
12
- children: [x && /* @__PURE__ */ i(e, {
13
- tag: "h3",
14
- size: "md",
15
- style: { marginBottom: "var(--wim-spacing-md)" },
16
- children: x
17
- }), /* @__PURE__ */ i("div", {
18
- className: r.container,
19
- style: { height: y },
20
- children: /* @__PURE__ */ i(u, {
21
- width: "100%",
22
- height: "100%",
23
- children: /* @__PURE__ */ a(s, {
24
- data: m,
25
- margin: {
26
- top: 5,
27
- right: 30,
28
- left: 0,
29
- bottom: 5
30
- },
31
- children: [
32
- /* @__PURE__ */ i(c, {
33
- ...n.grid,
34
- vertical: !1
35
- }),
36
- /* @__PURE__ */ i(f, {
37
- dataKey: g,
38
- ...n.axis,
39
- tickLine: !1,
40
- axisLine: !1
41
- }),
42
- /* @__PURE__ */ i(p, {
43
- width: 44,
44
- domain: v,
45
- ...n.axis,
46
- tickLine: !1,
47
- axisLine: !1
48
- }),
49
- /* @__PURE__ */ i(d, {
50
- contentStyle: n.tooltip.contentStyle,
51
- cursor: n.tooltip.cursor
52
- }),
53
- /* @__PURE__ */ i(l, {
54
- verticalAlign: "top",
55
- height: 36,
56
- ...n.legend
57
- }),
58
- h.map((e, n) => /* @__PURE__ */ i(o, {
59
- type: S ? "monotone" : "linear",
60
- dataKey: e,
61
- stroke: t[n % t.length],
62
- strokeWidth: 2,
63
- fill: t[n % t.length],
64
- fillOpacity: _ ? .9 : .18,
65
- stackId: _ ? "stack" : void 0,
66
- isAnimationActive: C
67
- }, e))
68
- ]
11
+ var _ = ({ data: _, keys: v, xAxisKey: y, stacked: b = !1, yDomain: x = [0, "auto"], height: S = 300, width: C = "100%", title: w, smooth: T = !0, animated: E = !1, "aria-label": D }) => {
12
+ let O = D ?? w, k = a(_, y, v);
13
+ return /* @__PURE__ */ c("div", {
14
+ className: `wim-area-chart ${o.root}`,
15
+ style: { width: C },
16
+ role: O ? "figure" : void 0,
17
+ "aria-label": O,
18
+ children: [
19
+ w && /* @__PURE__ */ s(e, {
20
+ tag: "h3",
21
+ size: "md",
22
+ style: { marginBottom: "var(--wim-spacing-md)" },
23
+ children: w
24
+ }),
25
+ /* @__PURE__ */ s("div", {
26
+ className: o.container,
27
+ style: { height: S },
28
+ "aria-hidden": "true",
29
+ children: /* @__PURE__ */ s(p, {
30
+ width: "100%",
31
+ height: "100%",
32
+ children: /* @__PURE__ */ c(u, {
33
+ ...n,
34
+ data: _,
35
+ margin: {
36
+ top: 5,
37
+ right: 30,
38
+ left: 0,
39
+ bottom: 5
40
+ },
41
+ children: [
42
+ /* @__PURE__ */ s(d, {
43
+ ...r.grid,
44
+ vertical: !1
45
+ }),
46
+ /* @__PURE__ */ s(h, {
47
+ dataKey: y,
48
+ ...r.axis,
49
+ tickLine: !1,
50
+ axisLine: !1
51
+ }),
52
+ /* @__PURE__ */ s(g, {
53
+ width: 44,
54
+ domain: x,
55
+ ...r.axis,
56
+ tickLine: !1,
57
+ axisLine: !1
58
+ }),
59
+ /* @__PURE__ */ s(m, {
60
+ contentStyle: r.tooltip.contentStyle,
61
+ cursor: r.tooltip.cursor
62
+ }),
63
+ /* @__PURE__ */ s(f, {
64
+ verticalAlign: "top",
65
+ height: 36,
66
+ ...r.legend
67
+ }),
68
+ v.map((e, n) => /* @__PURE__ */ s(l, {
69
+ type: T ? "monotone" : "linear",
70
+ dataKey: e,
71
+ stroke: t[n % t.length],
72
+ strokeWidth: 2,
73
+ fill: t[n % t.length],
74
+ fillOpacity: b ? .9 : .18,
75
+ stackId: b ? "stack" : void 0,
76
+ isAnimationActive: E
77
+ }, e))
78
+ ]
79
+ })
80
+ })
81
+ }),
82
+ /* @__PURE__ */ s(i, {
83
+ caption: O,
84
+ columns: k.columns,
85
+ rows: k.rows
69
86
  })
70
- })
71
- })]
72
- });
87
+ ]
88
+ });
89
+ };
73
90
  //#endregion
74
- export { m as AreaChart };
91
+ export { _ as AreaChart };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./bar-chart.module.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("recharts");var s=({data:e,keys:i,xAxisKey:s,stacked:c=!1,yDomain:l=[0,`auto`],height:u=300,width:d=`100%`,title:f,animated:p=!1})=>(0,a.jsxs)(`div`,{className:`wim-bar-chart ${r.default.root}`,style:{width:d},children:[f&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:f}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:u},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.BarChart,{data:e,margin:{top:5,right:30,left:0,bottom:5},children:[(0,a.jsx)(o.CartesianGrid,{...n.CHART_THEME.grid,vertical:!1}),(0,a.jsx)(o.XAxis,{dataKey:s,interval:0,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,a.jsx)(o.YAxis,{width:44,domain:l,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,a.jsx)(o.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle,cursor:n.CHART_THEME.tooltip.cursor}),(0,a.jsx)(o.Legend,{verticalAlign:`top`,height:36,...n.CHART_THEME.legend}),i.map((e,t)=>(0,a.jsx)(o.Bar,{dataKey:e,fill:n.CHART_COLORS[t%n.CHART_COLORS.length],stackId:c?`stack`:void 0,radius:c?0:[4,4,0,0],stroke:c?`var(--wim-color-surface)`:void 0,strokeWidth:c?2:void 0,isAnimationActive:p},e))]})})})]});exports.BarChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("../../_internal/ChartDataTable.cjs"),i=require("../../_internal/chartTableData.cjs"),a=require("./bar-chart.module.cjs");let o=require("react");o=e.__toESM(o,1);let s=require("react/jsx-runtime"),c=require("recharts");var l=({data:e,keys:o,xAxisKey:l,stacked:u=!1,yDomain:d=[0,`auto`],height:f=300,width:p=`100%`,title:m,animated:h=!1,"aria-label":g})=>{let _=g??m,v=i.seriesTable(e,l,o);return(0,s.jsxs)(`div`,{className:`wim-bar-chart ${a.default.root}`,style:{width:p},role:_?`figure`:void 0,"aria-label":_,children:[m&&(0,s.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:m}),(0,s.jsx)(`div`,{className:a.default.container,style:{height:f},"aria-hidden":`true`,children:(0,s.jsx)(c.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,s.jsxs)(c.BarChart,{...n.CHART_HIDDEN_A11Y_PROPS,data:e,margin:{top:5,right:30,left:0,bottom:5},children:[(0,s.jsx)(c.CartesianGrid,{...n.CHART_THEME.grid,vertical:!1}),(0,s.jsx)(c.XAxis,{dataKey:l,interval:0,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,s.jsx)(c.YAxis,{width:44,domain:d,...n.CHART_THEME.axis,tickLine:!1,axisLine:!1}),(0,s.jsx)(c.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle,cursor:n.CHART_THEME.tooltip.cursor}),(0,s.jsx)(c.Legend,{verticalAlign:`top`,height:36,...n.CHART_THEME.legend}),o.map((e,t)=>(0,s.jsx)(c.Bar,{dataKey:e,fill:n.CHART_COLORS[t%n.CHART_COLORS.length],stackId:u?`stack`:void 0,radius:u?0:[4,4,0,0],stroke:u?`var(--wim-color-surface)`:void 0,strokeWidth:u?2:void 0,isAnimationActive:h},e))]})})}),(0,s.jsx)(r.ChartDataTable,{caption:_,columns:v.columns,rows:v.rows})]})};exports.BarChart=l;
@@ -44,5 +44,11 @@ export type BarChartProps = {
44
44
  * @default false
45
45
  */
46
46
  animated?: boolean;
47
+ /**
48
+ * Accessible name for the chart. Defaults to `title` when omitted; pass this
49
+ * when the chart has no visible title, or when the title is not descriptive
50
+ * enough on its own.
51
+ */
52
+ "aria-label"?: string;
47
53
  };
48
- export declare const BarChart: ({ data, keys, xAxisKey, stacked, yDomain, height, width, title, animated, }: BarChartProps) => React.JSX.Element;
54
+ export declare const BarChart: ({ data, keys, xAxisKey, stacked, yDomain, height, width, title, animated, "aria-label": ariaLabel, }: BarChartProps) => React.JSX.Element;
@@ -1,79 +1,96 @@
1
1
  "use client";
2
2
  import { Title as e } from "../../typography/Title/Title.js";
3
- import { CHART_COLORS as t, CHART_THEME as n } from "../../helpers.js";
4
- import r from "./bar-chart.module.js";
3
+ import { CHART_COLORS as t, CHART_HIDDEN_A11Y_PROPS as n, CHART_THEME as r } from "../../helpers.js";
4
+ import { ChartDataTable as i } from "../../_internal/ChartDataTable.js";
5
+ import { seriesTable as a } from "../../_internal/chartTableData.js";
6
+ import o from "./bar-chart.module.js";
5
7
  import "react";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { Bar as o, BarChart as s, CartesianGrid as c, Legend as l, ResponsiveContainer as u, Tooltip as d, XAxis as f, YAxis as p } from "recharts";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ import { Bar as l, BarChart as u, CartesianGrid as d, Legend as f, ResponsiveContainer as p, Tooltip as m, XAxis as h, YAxis as g } from "recharts";
8
10
  //#region src/components/charts/BarChart/BarChart.tsx
9
- var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, yDomain: v = [0, "auto"], height: y = 300, width: b = "100%", title: x, animated: S = !1 }) => /* @__PURE__ */ a("div", {
10
- className: `wim-bar-chart ${r.root}`,
11
- style: { width: b },
12
- children: [x && /* @__PURE__ */ i(e, {
13
- tag: "h3",
14
- size: "md",
15
- style: { marginBottom: "var(--wim-spacing-md)" },
16
- children: x
17
- }), /* @__PURE__ */ i("div", {
18
- className: r.container,
19
- style: { height: y },
20
- children: /* @__PURE__ */ i(u, {
21
- width: "100%",
22
- height: "100%",
23
- children: /* @__PURE__ */ a(s, {
24
- data: m,
25
- margin: {
26
- top: 5,
27
- right: 30,
28
- left: 0,
29
- bottom: 5
30
- },
31
- children: [
32
- /* @__PURE__ */ i(c, {
33
- ...n.grid,
34
- vertical: !1
35
- }),
36
- /* @__PURE__ */ i(f, {
37
- dataKey: g,
38
- interval: 0,
39
- ...n.axis,
40
- tickLine: !1,
41
- axisLine: !1
42
- }),
43
- /* @__PURE__ */ i(p, {
44
- width: 44,
45
- domain: v,
46
- ...n.axis,
47
- tickLine: !1,
48
- axisLine: !1
49
- }),
50
- /* @__PURE__ */ i(d, {
51
- contentStyle: n.tooltip.contentStyle,
52
- cursor: n.tooltip.cursor
53
- }),
54
- /* @__PURE__ */ i(l, {
55
- verticalAlign: "top",
56
- height: 36,
57
- ...n.legend
58
- }),
59
- h.map((e, n) => /* @__PURE__ */ i(o, {
60
- dataKey: e,
61
- fill: t[n % t.length],
62
- stackId: _ ? "stack" : void 0,
63
- radius: _ ? 0 : [
64
- 4,
65
- 4,
66
- 0,
67
- 0
68
- ],
69
- stroke: _ ? "var(--wim-color-surface)" : void 0,
70
- strokeWidth: _ ? 2 : void 0,
71
- isAnimationActive: S
72
- }, e))
73
- ]
11
+ var _ = ({ data: _, keys: v, xAxisKey: y, stacked: b = !1, yDomain: x = [0, "auto"], height: S = 300, width: C = "100%", title: w, animated: T = !1, "aria-label": E }) => {
12
+ let D = E ?? w, O = a(_, y, v);
13
+ return /* @__PURE__ */ c("div", {
14
+ className: `wim-bar-chart ${o.root}`,
15
+ style: { width: C },
16
+ role: D ? "figure" : void 0,
17
+ "aria-label": D,
18
+ children: [
19
+ w && /* @__PURE__ */ s(e, {
20
+ tag: "h3",
21
+ size: "md",
22
+ style: { marginBottom: "var(--wim-spacing-md)" },
23
+ children: w
24
+ }),
25
+ /* @__PURE__ */ s("div", {
26
+ className: o.container,
27
+ style: { height: S },
28
+ "aria-hidden": "true",
29
+ children: /* @__PURE__ */ s(p, {
30
+ width: "100%",
31
+ height: "100%",
32
+ children: /* @__PURE__ */ c(u, {
33
+ ...n,
34
+ data: _,
35
+ margin: {
36
+ top: 5,
37
+ right: 30,
38
+ left: 0,
39
+ bottom: 5
40
+ },
41
+ children: [
42
+ /* @__PURE__ */ s(d, {
43
+ ...r.grid,
44
+ vertical: !1
45
+ }),
46
+ /* @__PURE__ */ s(h, {
47
+ dataKey: y,
48
+ interval: 0,
49
+ ...r.axis,
50
+ tickLine: !1,
51
+ axisLine: !1
52
+ }),
53
+ /* @__PURE__ */ s(g, {
54
+ width: 44,
55
+ domain: x,
56
+ ...r.axis,
57
+ tickLine: !1,
58
+ axisLine: !1
59
+ }),
60
+ /* @__PURE__ */ s(m, {
61
+ contentStyle: r.tooltip.contentStyle,
62
+ cursor: r.tooltip.cursor
63
+ }),
64
+ /* @__PURE__ */ s(f, {
65
+ verticalAlign: "top",
66
+ height: 36,
67
+ ...r.legend
68
+ }),
69
+ v.map((e, n) => /* @__PURE__ */ s(l, {
70
+ dataKey: e,
71
+ fill: t[n % t.length],
72
+ stackId: b ? "stack" : void 0,
73
+ radius: b ? 0 : [
74
+ 4,
75
+ 4,
76
+ 0,
77
+ 0
78
+ ],
79
+ stroke: b ? "var(--wim-color-surface)" : void 0,
80
+ strokeWidth: b ? 2 : void 0,
81
+ isAnimationActive: T
82
+ }, e))
83
+ ]
84
+ })
85
+ })
86
+ }),
87
+ /* @__PURE__ */ s(i, {
88
+ caption: D,
89
+ columns: O.columns,
90
+ rows: O.rows
74
91
  })
75
- })
76
- })]
77
- });
92
+ ]
93
+ });
94
+ };
78
95
  //#endregion
79
- export { m as BarChart };
96
+ export { _ as BarChart };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./funnel-chart.module.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("recharts");var s=({data:e,dataKey:i,nameKey:s,height:c=300,width:l=`100%`,title:u,animated:d=!1})=>(0,a.jsxs)(`div`,{className:`wim-funnel-chart ${r.default.root}`,style:{width:l},children:[u&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:u}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:c},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.FunnelChart,{margin:{top:8,right:88,bottom:8,left:88},children:[(0,a.jsx)(o.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle,cursor:n.CHART_THEME.tooltip.cursor}),(0,a.jsxs)(o.Funnel,{dataKey:i,data:e,isAnimationActive:d,children:[(0,a.jsx)(o.LabelList,{position:`right`,fill:`var(--wim-color-text-secondary)`,dataKey:s,stroke:`none`}),e.map((t,n)=>(0,a.jsx)(o.Cell,{fill:`color-mix(in oklch, var(--wim-color-chart-primary) ${100-Math.round(n/Math.max(e.length-1,1)*55)}%, var(--wim-color-surface))`},`cell-${n}`))]})]})})})]});exports.FunnelChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("../../_internal/ChartDataTable.cjs"),i=require("../../_internal/chartTableData.cjs"),a=require("./funnel-chart.module.cjs");let o=require("react");o=e.__toESM(o,1);let s=require("react/jsx-runtime"),c=require("recharts");var l=({data:e,dataKey:o,nameKey:l,height:u=300,width:d=`100%`,title:f,animated:p=!1,"aria-label":m})=>{let h=m??f,g=i.pairTable(e,l,o);return(0,s.jsxs)(`div`,{className:`wim-funnel-chart ${a.default.root}`,style:{width:d},role:h?`figure`:void 0,"aria-label":h,children:[f&&(0,s.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:f}),(0,s.jsx)(`div`,{className:a.default.container,style:{height:u},"aria-hidden":`true`,children:(0,s.jsx)(c.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,s.jsxs)(c.FunnelChart,{...n.CHART_HIDDEN_A11Y_PROPS,margin:{top:8,right:88,bottom:8,left:88},children:[(0,s.jsx)(c.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle,cursor:n.CHART_THEME.tooltip.cursor}),(0,s.jsxs)(c.Funnel,{dataKey:o,data:e,isAnimationActive:p,children:[(0,s.jsx)(c.LabelList,{position:`right`,fill:`var(--wim-color-text-secondary)`,dataKey:l,stroke:`none`}),e.map((t,n)=>(0,s.jsx)(c.Cell,{fill:`color-mix(in oklch, var(--wim-color-chart-primary) ${100-Math.round(n/Math.max(e.length-1,1)*55)}%, var(--wim-color-surface))`},`cell-${n}`))]})]})})}),(0,s.jsx)(r.ChartDataTable,{caption:h,columns:g.columns,rows:g.rows})]})};exports.FunnelChart=l;