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,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,height:l=300,width:u=`100%`,title:d,smooth:f=!0,animated:p=!1})=>(0,a.jsxs)(`div`,{className:`wim-area-chart ${r.default.root}`,style:{width:u},children:[d&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:d}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:l},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.AreaChart,{data:e,margin:{top:5,right:30,left:20,bottom:5},children:[(0,a.jsx)(`defs`,{children:i.map((e,t)=>{let r=n.CHART_COLORS[t%n.CHART_COLORS.length];return(0,a.jsxs)(`linearGradient`,{id:`grad-${e}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:r,stopOpacity:.3}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:r,stopOpacity:0})]},`grad-${e}`)})}),(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,{...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}),i.map((e,t)=>(0,a.jsx)(o.Area,{type:f?`monotone`:`linear`,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],fillOpacity:1,fill:`url(#grad-${e})`,stackId:c?`stack`:void 0,isAnimationActive:p},e))]})})})]});exports.AreaChart=s;
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}),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;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ChartDataPoint } from '../../helpers';
2
+ import { ChartDataPoint, ChartAxisDomain } from '../../helpers';
3
3
  export type AreaChartProps = {
4
4
  /**
5
5
  * Data to display in the chart.
@@ -18,6 +18,13 @@ export type AreaChartProps = {
18
18
  * @default false
19
19
  */
20
20
  stacked?: boolean;
21
+ /**
22
+ * Range of the Y axis. Pass ["auto", "auto"] when the change matters more
23
+ * than the distance from zero. Bars keep zero by default: their length is
24
+ * the value, so cutting the axis lies about the ratio between them.
25
+ * @default [0, "auto"]
26
+ */
27
+ yDomain?: ChartAxisDomain;
21
28
  /**
22
29
  * The height of the chart in pixels.
23
30
  * @default 300
@@ -43,4 +50,4 @@ export type AreaChartProps = {
43
50
  */
44
51
  animated?: boolean;
45
52
  };
46
- export declare const AreaChart: ({ data, keys, xAxisKey, stacked, height, width, title, smooth, animated, }: AreaChartProps) => React.JSX.Element;
53
+ export declare const AreaChart: ({ data, keys, xAxisKey, stacked, yDomain, height, width, title, smooth, animated, }: AreaChartProps) => React.JSX.Element;
@@ -6,17 +6,17 @@ import "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
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
8
  //#region src/components/charts/AreaChart/AreaChart.tsx
9
- var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, width: y = "100%", title: b, smooth: x = !0, animated: S = !1 }) => /* @__PURE__ */ a("div", {
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
10
  className: `wim-area-chart ${r.root}`,
11
- style: { width: y },
12
- children: [b && /* @__PURE__ */ i(e, {
11
+ style: { width: b },
12
+ children: [x && /* @__PURE__ */ i(e, {
13
13
  tag: "h3",
14
14
  size: "md",
15
15
  style: { marginBottom: "var(--wim-spacing-md)" },
16
- children: b
16
+ children: x
17
17
  }), /* @__PURE__ */ i("div", {
18
18
  className: r.container,
19
- style: { height: v },
19
+ style: { height: y },
20
20
  children: /* @__PURE__ */ i(u, {
21
21
  width: "100%",
22
22
  height: "100%",
@@ -25,29 +25,10 @@ var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, widt
25
25
  margin: {
26
26
  top: 5,
27
27
  right: 30,
28
- left: 20,
28
+ left: 0,
29
29
  bottom: 5
30
30
  },
31
31
  children: [
32
- /* @__PURE__ */ i("defs", { children: h.map((e, n) => {
33
- let r = t[n % t.length];
34
- return /* @__PURE__ */ a("linearGradient", {
35
- id: `grad-${e}`,
36
- x1: "0",
37
- y1: "0",
38
- x2: "0",
39
- y2: "1",
40
- children: [/* @__PURE__ */ i("stop", {
41
- offset: "5%",
42
- stopColor: r,
43
- stopOpacity: .3
44
- }), /* @__PURE__ */ i("stop", {
45
- offset: "95%",
46
- stopColor: r,
47
- stopOpacity: 0
48
- })]
49
- }, `grad-${e}`);
50
- }) }),
51
32
  /* @__PURE__ */ i(c, {
52
33
  ...n.grid,
53
34
  vertical: !1
@@ -59,6 +40,8 @@ var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, widt
59
40
  axisLine: !1
60
41
  }),
61
42
  /* @__PURE__ */ i(p, {
43
+ width: 44,
44
+ domain: v,
62
45
  ...n.axis,
63
46
  tickLine: !1,
64
47
  axisLine: !1
@@ -72,13 +55,14 @@ var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, widt
72
55
  height: 36
73
56
  }),
74
57
  h.map((e, n) => /* @__PURE__ */ i(o, {
75
- type: x ? "monotone" : "linear",
58
+ type: S ? "monotone" : "linear",
76
59
  dataKey: e,
77
60
  stroke: t[n % t.length],
78
- fillOpacity: 1,
79
- fill: `url(#grad-${e})`,
61
+ strokeWidth: 2,
62
+ fill: t[n % t.length],
63
+ fillOpacity: _ ? .9 : .18,
80
64
  stackId: _ ? "stack" : void 0,
81
- isAnimationActive: S
65
+ isAnimationActive: C
82
66
  }, e))
83
67
  ]
84
68
  })
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/AreaChart/area-chart.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -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,height:l=300,width:u=`100%`,title:d,animated:f=!1})=>(0,a.jsxs)(`div`,{className:`wim-bar-chart ${r.default.root}`,style:{width:u},children:[d&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:d}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:l},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.BarChart,{data:e,margin:{top:5,right:30,left:20,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,{...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}),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],isAnimationActive:f},e))]})})})]});exports.BarChart=s;
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}),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;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ChartDataPoint } from '../../helpers';
2
+ import { ChartDataPoint, ChartAxisDomain } from '../../helpers';
3
3
  export type BarChartProps = {
4
4
  /**
5
5
  * Data to display in the chart.
@@ -18,6 +18,13 @@ export type BarChartProps = {
18
18
  * @default false
19
19
  */
20
20
  stacked?: boolean;
21
+ /**
22
+ * Range of the Y axis. Pass ["auto", "auto"] when the change matters more
23
+ * than the distance from zero. Bars keep zero by default: their length is
24
+ * the value, so cutting the axis lies about the ratio between them.
25
+ * @default [0, "auto"]
26
+ */
27
+ yDomain?: ChartAxisDomain;
21
28
  /**
22
29
  * The height of the chart in pixels.
23
30
  * @default 300
@@ -38,4 +45,4 @@ export type BarChartProps = {
38
45
  */
39
46
  animated?: boolean;
40
47
  };
41
- export declare const BarChart: ({ data, keys, xAxisKey, stacked, height, width, title, animated, }: BarChartProps) => React.JSX.Element;
48
+ export declare const BarChart: ({ data, keys, xAxisKey, stacked, yDomain, height, width, title, animated, }: BarChartProps) => React.JSX.Element;
@@ -6,17 +6,17 @@ import "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
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
8
  //#region src/components/charts/BarChart/BarChart.tsx
9
- var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, width: y = "100%", title: b, animated: x = !1 }) => /* @__PURE__ */ a("div", {
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
10
  className: `wim-bar-chart ${r.root}`,
11
- style: { width: y },
12
- children: [b && /* @__PURE__ */ i(e, {
11
+ style: { width: b },
12
+ children: [x && /* @__PURE__ */ i(e, {
13
13
  tag: "h3",
14
14
  size: "md",
15
15
  style: { marginBottom: "var(--wim-spacing-md)" },
16
- children: b
16
+ children: x
17
17
  }), /* @__PURE__ */ i("div", {
18
18
  className: r.container,
19
- style: { height: v },
19
+ style: { height: y },
20
20
  children: /* @__PURE__ */ i(u, {
21
21
  width: "100%",
22
22
  height: "100%",
@@ -25,7 +25,7 @@ var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, widt
25
25
  margin: {
26
26
  top: 5,
27
27
  right: 30,
28
- left: 20,
28
+ left: 0,
29
29
  bottom: 5
30
30
  },
31
31
  children: [
@@ -35,11 +35,14 @@ var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, widt
35
35
  }),
36
36
  /* @__PURE__ */ i(f, {
37
37
  dataKey: g,
38
+ interval: 0,
38
39
  ...n.axis,
39
40
  tickLine: !1,
40
41
  axisLine: !1
41
42
  }),
42
43
  /* @__PURE__ */ i(p, {
44
+ width: 44,
45
+ domain: v,
43
46
  ...n.axis,
44
47
  tickLine: !1,
45
48
  axisLine: !1
@@ -62,7 +65,9 @@ var m = ({ data: m, keys: h, xAxisKey: g, stacked: _ = !1, height: v = 300, widt
62
65
  0,
63
66
  0
64
67
  ],
65
- isAnimationActive: x
68
+ stroke: _ ? "var(--wim-color-surface)" : void 0,
69
+ strokeWidth: _ ? 2 : void 0,
70
+ isAnimationActive: S
66
71
  }, e))
67
72
  ]
68
73
  })
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/BarChart/bar-chart.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -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,{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((e,t)=>(0,a.jsx)(o.Cell,{fill:n.CHART_COLORS[t%n.CHART_COLORS.length]},`cell-${t}`))]})]})})})]});exports.FunnelChart=s;
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;
@@ -1,41 +1,49 @@
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 "./funnel-chart.module.js";
3
+ import { CHART_THEME as t } from "../../helpers.js";
4
+ import n from "./funnel-chart.module.js";
5
5
  import "react";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { Cell as o, Funnel as s, FunnelChart as c, LabelList as l, ResponsiveContainer as u, Tooltip as d } from "recharts";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
+ import { Cell as a, Funnel as o, FunnelChart as s, LabelList as c, ResponsiveContainer as l, Tooltip as u } from "recharts";
8
8
  //#region src/components/charts/FunnelChart/FunnelChart.tsx
9
- var f = ({ data: f, dataKey: p, nameKey: m, height: h = 300, width: g = "100%", title: _, animated: v = !1 }) => /* @__PURE__ */ a("div", {
10
- className: `wim-funnel-chart ${r.root}`,
11
- style: { width: g },
12
- children: [_ && /* @__PURE__ */ i(e, {
9
+ var d = ({ data: d, dataKey: f, nameKey: p, height: m = 300, width: h = "100%", title: g, animated: _ = !1 }) => /* @__PURE__ */ i("div", {
10
+ className: `wim-funnel-chart ${n.root}`,
11
+ style: { width: h },
12
+ children: [g && /* @__PURE__ */ r(e, {
13
13
  tag: "h3",
14
14
  size: "md",
15
15
  style: { marginBottom: "var(--wim-spacing-md)" },
16
- children: _
17
- }), /* @__PURE__ */ i("div", {
18
- className: r.container,
19
- style: { height: h },
20
- children: /* @__PURE__ */ i(u, {
16
+ children: g
17
+ }), /* @__PURE__ */ r("div", {
18
+ className: n.container,
19
+ style: { height: m },
20
+ children: /* @__PURE__ */ r(l, {
21
21
  width: "100%",
22
22
  height: "100%",
23
- children: /* @__PURE__ */ a(c, { children: [/* @__PURE__ */ i(d, {
24
- contentStyle: n.tooltip.contentStyle,
25
- cursor: n.tooltip.cursor
26
- }), /* @__PURE__ */ a(s, {
27
- dataKey: p,
28
- data: f,
29
- isAnimationActive: v,
30
- children: [/* @__PURE__ */ i(l, {
31
- position: "right",
32
- fill: "var(--wim-color-text-secondary)",
33
- dataKey: m,
34
- stroke: "none"
35
- }), f.map((e, n) => /* @__PURE__ */ i(o, { fill: t[n % t.length] }, `cell-${n}`))]
36
- })] })
23
+ children: /* @__PURE__ */ i(s, {
24
+ margin: {
25
+ top: 8,
26
+ right: 88,
27
+ bottom: 8,
28
+ left: 88
29
+ },
30
+ children: [/* @__PURE__ */ r(u, {
31
+ contentStyle: t.tooltip.contentStyle,
32
+ cursor: t.tooltip.cursor
33
+ }), /* @__PURE__ */ i(o, {
34
+ dataKey: f,
35
+ data: d,
36
+ isAnimationActive: _,
37
+ children: [/* @__PURE__ */ r(c, {
38
+ position: "right",
39
+ fill: "var(--wim-color-text-secondary)",
40
+ dataKey: p,
41
+ stroke: "none"
42
+ }), d.map((e, t) => /* @__PURE__ */ r(a, { fill: `color-mix(in oklch, var(--wim-color-chart-primary) ${100 - Math.round(t / Math.max(d.length - 1, 1) * 55)}%, var(--wim-color-surface))` }, `cell-${t}`))]
43
+ })]
44
+ })
37
45
  })
38
46
  })]
39
47
  });
40
48
  //#endregion
41
- export { f as FunnelChart };
49
+ export { d as FunnelChart };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/FunnelChart/funnel-chart.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_1thpf_4`,t=`_container_1thpf_9`,n=`_gaugeLabel_1thpf_13`,r={root:e,container:t,gaugeLabel:n};exports.container=t,exports.default=r,exports.gaugeLabel=n,exports.root=e;
2
+ var e=`_root_gbrfd_4`,t=`_container_gbrfd_9`,n=`_gaugeLabel_gbrfd_21`,r={root:e,container:t,gaugeLabel:n};exports.container=t,exports.default=r,exports.gaugeLabel=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/GaugeChart/gauge-chart.module.scss
3
- var e = "_root_1thpf_4", t = "_container_1thpf_9", n = "_gaugeLabel_1thpf_13", r = {
3
+ var e = "_root_gbrfd_4", t = "_container_gbrfd_9", n = "_gaugeLabel_gbrfd_21", r = {
4
4
  root: e,
5
5
  container: t,
6
6
  gaugeLabel: 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("./heatmap.module.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("recharts");var s=({data:e,xAxisKey:i,yAxisKey:s,height:c=300,width:l=`100%`,title:u,colorRange:d=[`var(--wim-color-surface-variant)`,`var(--wim-color-chart-primary)`],animated:f=!1})=>{let p=e.map(e=>({x:i.indexOf(e.x),y:s.indexOf(e.y),value:e.value,labelX:e.x,labelY:e.y})),m=Math.max(...e.map(e=>e.value)),h=e=>e/m<.1?d[0]:d[1];return(0,a.jsxs)(`div`,{className:`wim-heatmap ${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.ScatterChart,{margin:{top:20,right:30,left:10,bottom:20},children:[(0,a.jsx)(o.XAxis,{type:`number`,dataKey:`x`,ticks:Array.from({length:i.length},(e,t)=>t),tickFormatter:e=>i[e],...n.CHART_THEME.axis}),(0,a.jsx)(o.YAxis,{type:`number`,dataKey:`y`,ticks:Array.from({length:s.length},(e,t)=>t),tickFormatter:e=>s[e],...n.CHART_THEME.axis}),(0,a.jsx)(o.ZAxis,{type:`number`,dataKey:`value`,range:[400,400]}),(0,a.jsx)(o.Tooltip,{cursor:n.CHART_THEME.tooltip.cursor,content:({active:e,payload:t})=>{if(e&&t&&t.length){let e=t[0].payload;return(0,a.jsxs)(`div`,{style:{...n.CHART_THEME.tooltip.contentStyle,padding:`8px`},children:[(0,a.jsxs)(`div`,{children:[e.labelX,` / `,e.labelY]}),(0,a.jsxs)(`div`,{style:{fontWeight:`bold`},children:[`Value: `,e.value]})]})}return null}}),(0,a.jsx)(o.Scatter,{data:p,shape:`square`,isAnimationActive:f,children:p.map((e,t)=>(0,a.jsx)(o.Cell,{fill:h(e.value)},`cell-${t}`))})]})})})]})};exports.Heatmap=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./heatmap.module.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("recharts");var s=({data:e,xAxisKey:i,yAxisKey:s,height:c=300,width:l=`100%`,title:u,colorRange:d=[`var(--wim-color-surface-variant)`,`var(--wim-color-chart-primary)`],animated:f=!1})=>{let p=e.map(e=>({x:i.indexOf(e.x),y:s.indexOf(e.y),value:e.value,labelX:e.x,labelY:e.y})),m=e.map(e=>e.value),h=Math.max(...m),g=Math.min(...m),_=e=>{let t=h-g,n=t===0?1:(e-g)/t,r=Math.round(n*100);return`color-mix(in oklch, ${d[1]} ${r}%, ${d[0]})`};return(0,a.jsxs)(`div`,{className:`wim-heatmap ${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.ScatterChart,{margin:{top:20,right:4,left:8,bottom:20},children:[(0,a.jsx)(o.XAxis,{type:`number`,dataKey:`x`,ticks:Array.from({length:i.length},(e,t)=>t),tickFormatter:e=>i[e],padding:{left:20,right:20},...n.CHART_THEME.axis}),(0,a.jsx)(o.YAxis,{type:`number`,dataKey:`y`,ticks:Array.from({length:s.length},(e,t)=>t),tickFormatter:e=>s[e],...n.CHART_THEME.axis}),(0,a.jsx)(o.ZAxis,{type:`number`,dataKey:`value`,range:[400,400]}),(0,a.jsx)(o.Tooltip,{cursor:n.CHART_THEME.tooltip.cursor,content:({active:e,payload:t})=>{if(e&&t&&t.length){let e=t[0].payload;return(0,a.jsxs)(`div`,{style:{...n.CHART_THEME.tooltip.contentStyle,padding:`8px`},children:[(0,a.jsxs)(`div`,{children:[e.labelX,` / `,e.labelY]}),(0,a.jsxs)(`div`,{style:{fontWeight:`bold`},children:[`Value: `,e.value]})]})}return null}}),(0,a.jsx)(o.Scatter,{data:p,shape:`square`,isAnimationActive:f,children:p.map((e,t)=>(0,a.jsx)(o.Cell,{fill:_(e.value)},`cell-${t}`))})]})})})]})};exports.Heatmap=s;
@@ -13,7 +13,10 @@ var p = ({ data: p, xAxisKey: m, yAxisKey: h, height: g = 300, width: _ = "100%"
13
13
  value: e.value,
14
14
  labelX: e.x,
15
15
  labelY: e.y
16
- })), S = Math.max(...p.map((e) => e.value)), C = (e) => e / S < .1 ? y[0] : y[1];
16
+ })), S = p.map((e) => e.value), C = Math.max(...S), w = Math.min(...S), T = (e) => {
17
+ let t = C - w, n = t === 0 ? 1 : (e - w) / t, r = Math.round(n * 100);
18
+ return `color-mix(in oklch, ${y[1]} ${r}%, ${y[0]})`;
19
+ };
17
20
  return /* @__PURE__ */ i("div", {
18
21
  className: `wim-heatmap ${n.root}`,
19
22
  style: { width: _ },
@@ -31,8 +34,8 @@ var p = ({ data: p, xAxisKey: m, yAxisKey: h, height: g = 300, width: _ = "100%"
31
34
  children: /* @__PURE__ */ i(c, {
32
35
  margin: {
33
36
  top: 20,
34
- right: 30,
35
- left: 10,
37
+ right: 4,
38
+ left: 8,
36
39
  bottom: 20
37
40
  },
38
41
  children: [
@@ -41,6 +44,10 @@ var p = ({ data: p, xAxisKey: m, yAxisKey: h, height: g = 300, width: _ = "100%"
41
44
  dataKey: "x",
42
45
  ticks: Array.from({ length: m.length }, (e, t) => t),
43
46
  tickFormatter: (e) => m[e],
47
+ padding: {
48
+ left: 20,
49
+ right: 20
50
+ },
44
51
  ...t.axis
45
52
  }),
46
53
  /* @__PURE__ */ r(d, {
@@ -82,7 +89,7 @@ var p = ({ data: p, xAxisKey: m, yAxisKey: h, height: g = 300, width: _ = "100%"
82
89
  data: x,
83
90
  shape: "square",
84
91
  isAnimationActive: b,
85
- children: x.map((e, t) => /* @__PURE__ */ r(a, { fill: C(e.value) }, `cell-${t}`))
92
+ children: x.map((e, t) => /* @__PURE__ */ r(a, { fill: T(e.value) }, `cell-${t}`))
86
93
  })
87
94
  ]
88
95
  })
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/Heatmap/heatmap.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -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("./line-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,height:c=300,width:l=`100%`,title:u,smooth:d=!1,animated:f=!1})=>(0,a.jsxs)(`div`,{className:`wim-line-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.LineChart,{data:e,margin:{top:5,right:30,left:20,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,{...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}),i.map((e,t)=>(0,a.jsx)(o.Line,{type:d?`monotone`:`linear`,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],strokeWidth:2,dot:{r:4,strokeWidth:2,fill:`var(--wim-color-primary-fill)`},activeDot:{r:6},isAnimationActive:f},e))]})})})]});exports.LineChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./line-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,height:c=300,width:l=`100%`,title:u,smooth:d=!1,yDomain:f=[0,`auto`],animated:p=!1})=>(0,a.jsxs)(`div`,{className:`wim-line-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.LineChart,{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:f,...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}),i.map((e,t)=>(0,a.jsx)(o.Line,{type:d?`monotone`:`linear`,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],strokeWidth:2,dot:{r:4,strokeWidth:2,fill:`var(--wim-color-primary-fill)`},activeDot:{r:6},isAnimationActive:p},e))]})})})]});exports.LineChart=s;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ChartDataPoint } from '../../helpers';
2
+ import { ChartDataPoint, ChartAxisDomain } from '../../helpers';
3
3
  export type LineChartProps = {
4
4
  /**
5
5
  * Data to display in the chart.
@@ -32,10 +32,17 @@ export type LineChartProps = {
32
32
  * @default false
33
33
  */
34
34
  smooth?: boolean;
35
+ /**
36
+ * Range of the Y axis. Pass ["auto", "auto"] when the change matters more
37
+ * than the distance from zero (a yield moving between 84% and 85% is a flat
38
+ * line on a 0–100 axis).
39
+ * @default [0, "auto"]
40
+ */
41
+ yDomain?: ChartAxisDomain;
35
42
  /**
36
43
  * If true, animates the chart on mount.
37
44
  * @default false
38
45
  */
39
46
  animated?: boolean;
40
47
  };
41
- export declare const LineChart: ({ data, keys, xAxisKey, height, width, title, smooth, animated, }: LineChartProps) => React.JSX.Element;
48
+ export declare const LineChart: ({ data, keys, xAxisKey, height, width, title, smooth, yDomain, animated, }: LineChartProps) => React.JSX.Element;
@@ -6,7 +6,7 @@ import "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { CartesianGrid as o, Legend as s, Line as c, LineChart as l, ResponsiveContainer as u, Tooltip as d, XAxis as f, YAxis as p } from "recharts";
8
8
  //#region src/components/charts/LineChart/LineChart.tsx
9
- var m = ({ data: m, keys: h, xAxisKey: g, height: _ = 300, width: v = "100%", title: y, smooth: b = !1, animated: x = !1 }) => /* @__PURE__ */ a("div", {
9
+ var m = ({ data: m, keys: h, xAxisKey: g, height: _ = 300, width: v = "100%", title: y, smooth: b = !1, yDomain: x = [0, "auto"], animated: S = !1 }) => /* @__PURE__ */ a("div", {
10
10
  className: `wim-line-chart ${r.root}`,
11
11
  style: { width: v },
12
12
  children: [y && /* @__PURE__ */ i(e, {
@@ -25,7 +25,7 @@ var m = ({ data: m, keys: h, xAxisKey: g, height: _ = 300, width: v = "100%", ti
25
25
  margin: {
26
26
  top: 5,
27
27
  right: 30,
28
- left: 20,
28
+ left: 0,
29
29
  bottom: 5
30
30
  },
31
31
  children: [
@@ -40,6 +40,8 @@ var m = ({ data: m, keys: h, xAxisKey: g, height: _ = 300, width: v = "100%", ti
40
40
  axisLine: !1
41
41
  }),
42
42
  /* @__PURE__ */ i(p, {
43
+ width: 44,
44
+ domain: x,
43
45
  ...n.axis,
44
46
  tickLine: !1,
45
47
  axisLine: !1
@@ -63,7 +65,7 @@ var m = ({ data: m, keys: h, xAxisKey: g, height: _ = 300, width: v = "100%", ti
63
65
  fill: "var(--wim-color-primary-fill)"
64
66
  },
65
67
  activeDot: { r: 6 },
66
- isAnimationActive: x
68
+ isAnimationActive: S
67
69
  }, e))
68
70
  ]
69
71
  })
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/LineChart/line-chart.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -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("./pie-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,height:i=300,width:s=`100%`,title:c,donut:l=!1,animated:u=!1})=>(0,a.jsxs)(`div`,{className:`wim-pie-chart ${r.default.root}`,style:{width:s},children:[c&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:c}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:i},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,cx:`50%`,cy:`50%`,labelLine:!1,innerRadius:l?`60%`:0,outerRadius:`80%`,paddingAngle:l?5:0,dataKey:`value`,isAnimationActive:u,children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:n.CHART_COLORS[t%n.CHART_COLORS.length],stroke:`none`},`cell-${t}`))}),(0,a.jsx)(o.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle}),(0,a.jsx)(o.Legend,{verticalAlign:`top`,height:36})]})})})]});exports.PieChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./pie-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,height:i=300,width:s=`100%`,title:c,donut:l=!1,animated:u=!1})=>(0,a.jsxs)(`div`,{className:`wim-pie-chart ${r.default.root}`,style:{width:s},children:[c&&(0,a.jsx)(t.Title,{tag:`h3`,size:`md`,style:{marginBottom:`var(--wim-spacing-md)`},children:c}),(0,a.jsx)(`div`,{className:r.default.container,style:{height:i},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,cx:`50%`,cy:`50%`,labelLine:!1,innerRadius:l?`60%`:0,outerRadius:`80%`,paddingAngle:0,dataKey:`value`,isAnimationActive:u,children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:n.CHART_COLORS[t%n.CHART_COLORS.length],stroke:`var(--wim-color-surface)`,strokeWidth:2},`cell-${t}`))}),(0,a.jsx)(o.Tooltip,{contentStyle:n.CHART_THEME.tooltip.contentStyle}),(0,a.jsx)(o.Legend,{verticalAlign:`top`,height:36})]})})})]});exports.PieChart=s;
@@ -28,12 +28,13 @@ var f = ({ data: f, height: p = 300, width: m = "100%", title: h, donut: g = !1,
28
28
  labelLine: !1,
29
29
  innerRadius: g ? "60%" : 0,
30
30
  outerRadius: "80%",
31
- paddingAngle: g ? 5 : 0,
31
+ paddingAngle: 0,
32
32
  dataKey: "value",
33
33
  isAnimationActive: _,
34
34
  children: f.map((e, n) => /* @__PURE__ */ i(o, {
35
35
  fill: t[n % t.length],
36
- stroke: "none"
36
+ stroke: "var(--wim-color-surface)",
37
+ strokeWidth: 2
37
38
  }, `cell-${n}`))
38
39
  }),
39
40
  /* @__PURE__ */ i(d, { contentStyle: n.tooltip.contentStyle }),
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/PieChart/pie-chart.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -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("./radar-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,indexKey:s,height:c=300,width:l=`100%`,title:u,animated:d=!1})=>(0,a.jsxs)(`div`,{className:`wim-radar-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.RadarChart,{cx:`50%`,cy:`50%`,outerRadius:`80%`,data:e,children:[(0,a.jsx)(o.PolarGrid,{stroke:n.CHART_THEME.grid.stroke}),(0,a.jsx)(o.PolarAngleAxis,{dataKey:s,...n.CHART_THEME.axis}),(0,a.jsx)(o.PolarRadiusAxis,{}),(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}),i.map((e,t)=>(0,a.jsx)(o.Radar,{name:e,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],fill:n.CHART_COLORS[t%n.CHART_COLORS.length],fillOpacity:.6,isAnimationActive:d},e))]})})})]});exports.RadarChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./radar-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,indexKey:s,height:c=300,width:l=`100%`,title:u,animated:d=!1})=>(0,a.jsxs)(`div`,{className:`wim-radar-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.RadarChart,{cx:`50%`,cy:`50%`,outerRadius:`80%`,data:e,children:[(0,a.jsx)(o.PolarGrid,{stroke:n.CHART_THEME.grid.stroke}),(0,a.jsx)(o.PolarAngleAxis,{dataKey:s,...n.CHART_THEME.axis}),(0,a.jsx)(o.PolarRadiusAxis,{tick:!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}),i.map((e,t)=>(0,a.jsx)(o.Radar,{name:e,dataKey:e,stroke:n.CHART_COLORS[t%n.CHART_COLORS.length],fill:n.CHART_COLORS[t%n.CHART_COLORS.length],strokeWidth:2,fillOpacity:.18,isAnimationActive:d},e))]})})})]});exports.RadarChart=s;
@@ -31,7 +31,10 @@ var m = ({ data: m, keys: h, indexKey: g, height: _ = 300, width: v = "100%", ti
31
31
  dataKey: g,
32
32
  ...n.axis
33
33
  }),
34
- /* @__PURE__ */ i(l, {}),
34
+ /* @__PURE__ */ i(l, {
35
+ tick: !1,
36
+ axisLine: !1
37
+ }),
35
38
  /* @__PURE__ */ i(p, {
36
39
  contentStyle: n.tooltip.contentStyle,
37
40
  cursor: n.tooltip.cursor
@@ -45,7 +48,8 @@ var m = ({ data: m, keys: h, indexKey: g, height: _ = 300, width: v = "100%", ti
45
48
  dataKey: e,
46
49
  stroke: t[n % t.length],
47
50
  fill: t[n % t.length],
48
- fillOpacity: .6,
51
+ strokeWidth: 2,
52
+ fillOpacity: .18,
49
53
  isAnimationActive: b
50
54
  }, e))
51
55
  ]
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_12ucx_4`,t=`_container_12ucx_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
2
+ var e=`_root_pxnwr_4`,t=`_container_pxnwr_9`,n={root:e,container:t};exports.container=t,exports.default=n,exports.root=e;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/charts/RadarChart/radar-chart.module.scss
3
- var e = "_root_12ucx_4", t = "_container_12ucx_9", n = {
3
+ var e = "_root_pxnwr_4", t = "_container_pxnwr_9", n = {
4
4
  root: e,
5
5
  container: t
6
6
  };
@@ -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("./scatter-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,xAxisName:i=`X`,yAxisName:s=`Y`,height:c=300,width:l=`100%`,title:u,animated:d=!1})=>(0,a.jsxs)(`div`,{className:`wim-scatter-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.ScatterChart,{margin:{top:20,right:20,bottom:20,left:20},children:[(0,a.jsx)(o.CartesianGrid,{...n.CHART_THEME.grid}),(0,a.jsx)(o.XAxis,{type:`number`,dataKey:`x`,name:i,unit:``,...n.CHART_THEME.axis}),(0,a.jsx)(o.YAxis,{type:`number`,dataKey:`y`,name:s,unit:``,...n.CHART_THEME.axis}),(0,a.jsx)(o.ZAxis,{type:`number`,dataKey:`z`,range:[60,400]}),(0,a.jsx)(o.Tooltip,{cursor:n.CHART_THEME.tooltip.cursor,contentStyle:n.CHART_THEME.tooltip.contentStyle}),(0,a.jsx)(o.Legend,{verticalAlign:`top`,height:36}),(0,a.jsx)(o.Scatter,{name:`Data Points`,data:e,fill:n.CHART_COLORS[0],isAnimationActive:d})]})})})]});exports.ScatterChart=s;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../helpers.cjs"),r=require("./scatter-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,xAxisName:i=`X`,yAxisName:s=`Y`,xDomain:c=[`auto`,`auto`],yDomain:l=[`auto`,`auto`],height:u=300,width:d=`100%`,title:f,animated:p=!1})=>(0,a.jsxs)(`div`,{className:`wim-scatter-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.ScatterChart,{margin:{top:20,right:20,bottom:20,left:0},children:[(0,a.jsx)(o.CartesianGrid,{...n.CHART_THEME.grid}),(0,a.jsx)(o.XAxis,{type:`number`,dataKey:`x`,name:i,unit:``,domain:c,...n.CHART_THEME.axis}),(0,a.jsx)(o.YAxis,{type:`number`,dataKey:`y`,name:s,unit:``,domain:l,width:44,...n.CHART_THEME.axis}),(0,a.jsx)(o.ZAxis,{type:`number`,dataKey:`z`,range:[60,400]}),(0,a.jsx)(o.Tooltip,{cursor:n.CHART_THEME.tooltip.cursor,contentStyle:n.CHART_THEME.tooltip.contentStyle}),(0,a.jsx)(o.Legend,{verticalAlign:`top`,height:36}),(0,a.jsx)(o.Scatter,{name:`Data Points`,data:e,fill:n.CHART_COLORS[0],isAnimationActive:p})]})})})]});exports.ScatterChart=s;