@ktnpm_devops/react-component 0.3.0 → 0.4.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.
- package/dist/index.cjs +24 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -20
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.cjs +3 -3
- package/dist/index14.js +3 -3
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +38 -85
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +40 -87
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +85 -153
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +87 -155
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +150 -128
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +150 -128
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +121 -106
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +122 -107
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +121 -17
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +121 -17
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +17 -8
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +18 -9
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +7 -130
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +9 -132
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +128 -35
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +129 -36
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +36 -222
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +37 -223
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +218 -28
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +220 -30
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +29 -73
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +31 -75
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +69 -144
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +70 -145
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +57 -6
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +57 -6
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +152 -16
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +152 -16
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +7 -76
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +9 -78
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +17 -143
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +17 -143
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +69 -97
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +71 -99
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +143 -6
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +144 -7
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +74 -185
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +67 -178
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +6 -8
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +6 -8
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +216 -14
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +215 -13
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +10 -10
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +9 -9
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +15 -15
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +15 -15
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +15 -67
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +14 -66
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +14 -29
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +14 -29
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +10 -19
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +10 -19
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +2 -53
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +3 -54
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +2 -14
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +2 -14
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +24 -30
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +24 -30
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +10 -13
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +10 -13
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +16 -13
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +16 -13
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +17 -2
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +18 -3
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +67 -6
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +66 -5
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +80 -2
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +81 -3
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +34 -34
- package/dist/index50.js +34 -34
- package/dist/index51.cjs +29 -50
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +29 -50
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +13 -16
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +14 -17
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +32 -35
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +32 -35
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +2 -53
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +3 -54
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +10 -134
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +9 -133
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +22 -25
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +23 -26
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +2 -29
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +3 -30
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +11 -20
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +11 -20
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +52 -10
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +52 -10
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +64 -19
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +65 -20
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +14 -74
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +15 -75
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +16 -37
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +16 -37
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +28 -16
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +28 -16
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +13 -16
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +14 -17
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +37 -10
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +38 -11
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +136 -0
- package/dist/index66.cjs.map +1 -0
- package/dist/index66.js +136 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.cjs +48 -0
- package/dist/index67.cjs.map +1 -0
- package/dist/index67.js +48 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.cjs +60 -0
- package/dist/index68.cjs.map +1 -0
- package/dist/index68.js +60 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.cjs +57 -0
- package/dist/index69.cjs.map +1 -0
- package/dist/index69.js +57 -0
- package/dist/index69.js.map +1 -0
- package/dist/index9.cjs +2 -2
- package/dist/index9.js +2 -2
- package/dist/primitives/Col/Col.d.ts +4 -0
- package/dist/primitives/Col/Col.d.ts.map +1 -0
- package/dist/primitives/Col/Col.types.d.ts +13 -0
- package/dist/primitives/Col/Col.types.d.ts.map +1 -0
- package/dist/primitives/Col/index.d.ts +3 -0
- package/dist/primitives/Col/index.d.ts.map +1 -0
- package/dist/primitives/Row/Row.d.ts +4 -0
- package/dist/primitives/Row/Row.d.ts.map +1 -0
- package/dist/primitives/Row/Row.types.d.ts +16 -0
- package/dist/primitives/Row/Row.types.d.ts.map +1 -0
- package/dist/primitives/Row/index.d.ts +3 -0
- package/dist/primitives/Row/index.d.ts.map +1 -0
- package/dist/style.css +41 -0
- package/package.json +3 -2
package/dist/index32.cjs
CHANGED
|
@@ -2,108 +2,80 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
bar: "Bar",
|
|
12
|
-
pie: "Pie",
|
|
13
|
-
sunburst: "Sunburst"
|
|
14
|
-
};
|
|
15
|
-
const CHART_TYPES = ["bar", "pie", "sunburst"];
|
|
16
|
-
const StackedBarChartCard = ({
|
|
5
|
+
const clsx = require("./index38.cjs");
|
|
6
|
+
const constants = require("./index48.cjs");
|
|
7
|
+
const Sidebar_module = require("./index50.cjs");
|
|
8
|
+
const SidebarContext = react.createContext({ isCollapsed: false });
|
|
9
|
+
const useSidebarContext = () => react.useContext(SidebarContext);
|
|
10
|
+
const SidebarSection = ({
|
|
17
11
|
title,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
12
|
+
children,
|
|
13
|
+
collapsible = false,
|
|
14
|
+
defaultCollapsed = false
|
|
15
|
+
}) => {
|
|
16
|
+
const { isCollapsed: sidebarCollapsed } = useSidebarContext();
|
|
17
|
+
const [sectionCollapsed, setSectionCollapsed] = react.useState(defaultCollapsed);
|
|
18
|
+
const titleId = react.useId();
|
|
19
|
+
const isOpen = !collapsible || !sectionCollapsed;
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Sidebar_module.default.section, role: "group", "aria-labelledby": title ? titleId : void 0, children: [
|
|
21
|
+
title && !sidebarCollapsed && (collapsible ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
id: titleId,
|
|
25
|
+
type: "button",
|
|
26
|
+
className: Sidebar_module.default.sectionToggle,
|
|
27
|
+
onClick: () => setSectionCollapsed((prev) => !prev),
|
|
28
|
+
"aria-expanded": isOpen,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: Sidebar_module.default.sectionTitle, children: title }),
|
|
31
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx.clsx(Sidebar_module.default.sectionChevron, { [Sidebar_module.default.sectionChevronOpen]: isOpen }), children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 4.5L6 7.5L9 4.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { id: titleId, className: Sidebar_module.default.sectionTitle, children: title })),
|
|
35
|
+
isOpen && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Sidebar_module.default.sectionItems, children })
|
|
36
|
+
] });
|
|
37
|
+
};
|
|
38
|
+
SidebarSection.displayName = "Sidebar.Section";
|
|
39
|
+
const SidebarRoot = ({
|
|
40
|
+
isCollapsed = false,
|
|
41
|
+
onToggleCollapse,
|
|
42
|
+
width = constants.SIDEBAR.WIDTH,
|
|
43
|
+
collapsedWidth = constants.SIDEBAR.COLLAPSED_WIDTH,
|
|
44
|
+
header,
|
|
45
|
+
footer,
|
|
46
|
+
children,
|
|
35
47
|
className
|
|
36
48
|
}) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}, [chartType, categories, series, invertAxis, hideLegend, enableScroll]);
|
|
51
|
-
const handleChartReady = react.useCallback(
|
|
52
|
-
(instance) => {
|
|
53
|
-
onChartReady == null ? void 0 : onChartReady(instance);
|
|
54
|
-
},
|
|
55
|
-
[onChartReady]
|
|
56
|
-
);
|
|
57
|
-
const handleChartClick = react.useCallback(
|
|
58
|
-
(params) => {
|
|
59
|
-
if (!onSelectCategory || !params.name) return;
|
|
60
|
-
onSelectCategory({
|
|
61
|
-
category: params.name,
|
|
62
|
-
subCategory: params.seriesName ?? null
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
[onSelectCategory]
|
|
66
|
-
);
|
|
67
|
-
const hasData = data.length > 0;
|
|
68
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx.clsx(StackedBarChartCard_module.default.root, className), children: [
|
|
69
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: StackedBarChartCard_module.default.header, children: [
|
|
70
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: StackedBarChartCard_module.default.headerLeft, children: [
|
|
71
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: StackedBarChartCard_module.default.title, children: title }),
|
|
72
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: StackedBarChartCard_module.default.subtitle, children: subtitle })
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: StackedBarChartCard_module.default.headerRight, children: [
|
|
75
|
-
toolbar && /* @__PURE__ */ jsxRuntime.jsx("div", { className: StackedBarChartCard_module.default.toolbar, children: toolbar }),
|
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: StackedBarChartCard_module.default.chartTypeToggle, children: CHART_TYPES.map((type) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
|
+
const currentWidth = isCollapsed ? collapsedWidth : width;
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
51
|
+
"nav",
|
|
52
|
+
{
|
|
53
|
+
className: clsx.clsx(Sidebar_module.default.root, { [Sidebar_module.default.collapsed]: isCollapsed }, className),
|
|
54
|
+
style: { width: `${currentWidth}px` },
|
|
55
|
+
"aria-label": "Main navigation",
|
|
56
|
+
children: [
|
|
57
|
+
header && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Sidebar_module.default.header, children: header }),
|
|
58
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Sidebar_module.default.body, children }),
|
|
59
|
+
footer && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Sidebar_module.default.footer, children: footer }),
|
|
60
|
+
onToggleCollapse && /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
61
|
"button",
|
|
78
62
|
{
|
|
79
63
|
type: "button",
|
|
80
|
-
className:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: StackedBarChartCard_module.default.loading, children: "Loading chart data..." }),
|
|
91
|
-
!isLoading && error && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: StackedBarChartCard_module.default.error, children: [
|
|
92
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: error }),
|
|
93
|
-
onRetry && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: StackedBarChartCard_module.default.retryButton, onClick: onRetry, children: "Retry" })
|
|
94
|
-
] }),
|
|
95
|
-
!isLoading && !error && !hasData && /* @__PURE__ */ jsxRuntime.jsx("div", { className: StackedBarChartCard_module.default.empty, children: "No data available" }),
|
|
96
|
-
!isLoading && !error && hasData && /* @__PURE__ */ jsxRuntime.jsx("div", { className: StackedBarChartCard_module.default.chartContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
-
ReactECharts,
|
|
98
|
-
{
|
|
99
|
-
option,
|
|
100
|
-
style: { height: "100%", width: "100%" },
|
|
101
|
-
onChartReady: handleChartReady,
|
|
102
|
-
onEvents: { click: handleChartClick },
|
|
103
|
-
notMerge: true
|
|
104
|
-
}
|
|
105
|
-
) })
|
|
106
|
-
] });
|
|
64
|
+
className: Sidebar_module.default.toggle,
|
|
65
|
+
onClick: onToggleCollapse,
|
|
66
|
+
"aria-expanded": !isCollapsed,
|
|
67
|
+
"aria-label": "Toggle sidebar",
|
|
68
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: isCollapsed ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 3L11 8L6 13", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) : /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 3L5 8L10 13", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
107
74
|
};
|
|
108
|
-
|
|
75
|
+
SidebarRoot.displayName = "Sidebar";
|
|
76
|
+
const Sidebar = Object.assign(SidebarRoot, {
|
|
77
|
+
Section: SidebarSection
|
|
78
|
+
});
|
|
79
|
+
exports.Sidebar = Sidebar;
|
|
80
|
+
exports.useSidebarContext = useSidebarContext;
|
|
109
81
|
//# sourceMappingURL=index32.cjs.map
|
package/dist/index32.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index32.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index32.cjs","sources":["../src/composites/Sidebar/Sidebar.tsx"],"sourcesContent":["import { createContext, useContext, useId, useState } from 'react';\nimport clsx from 'clsx';\nimport { SIDEBAR } from '../../constants';\nimport type { SidebarProps, SidebarSectionProps } from './Sidebar.types';\nimport styles from './Sidebar.module.css';\n\ninterface SidebarContextValue {\n isCollapsed: boolean;\n}\n\nconst SidebarContext = createContext<SidebarContextValue>({ isCollapsed: false });\n\n/** Hook to read sidebar collapsed state from context. */\nexport const useSidebarContext = () => useContext(SidebarContext);\n\n/* ------------------------------------------------------------------ */\n/* Sidebar.Section */\n/* ------------------------------------------------------------------ */\n\nconst SidebarSection = ({\n title,\n children,\n collapsible = false,\n defaultCollapsed = false,\n}: SidebarSectionProps) => {\n const { isCollapsed: sidebarCollapsed } = useSidebarContext();\n const [sectionCollapsed, setSectionCollapsed] = useState(defaultCollapsed);\n const titleId = useId();\n\n const isOpen = !collapsible || !sectionCollapsed;\n\n return (\n <div className={styles.section} role=\"group\" aria-labelledby={title ? titleId : undefined}>\n {title && !sidebarCollapsed && (\n collapsible ? (\n <button\n id={titleId}\n type=\"button\"\n className={styles.sectionToggle}\n onClick={() => setSectionCollapsed((prev) => !prev)}\n aria-expanded={isOpen}\n >\n <span className={styles.sectionTitle}>{title}</span>\n <span className={clsx(styles.sectionChevron, { [styles.sectionChevronOpen]: isOpen })}>\n <svg width={12} height={12} viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3 4.5L6 7.5L9 4.5\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </span>\n </button>\n ) : (\n <span id={titleId} className={styles.sectionTitle}>\n {title}\n </span>\n )\n )}\n {isOpen && <div className={styles.sectionItems}>{children}</div>}\n </div>\n );\n};\n\nSidebarSection.displayName = 'Sidebar.Section';\n\n/* ------------------------------------------------------------------ */\n/* Sidebar */\n/* ------------------------------------------------------------------ */\n\nconst SidebarRoot = ({\n isCollapsed = false,\n onToggleCollapse,\n width = SIDEBAR.WIDTH,\n collapsedWidth = SIDEBAR.COLLAPSED_WIDTH,\n header,\n footer,\n children,\n className,\n}: SidebarProps) => {\n const currentWidth = isCollapsed ? collapsedWidth : width;\n\n return (\n <SidebarContext.Provider value={{ isCollapsed }}>\n <nav\n className={clsx(styles.root, { [styles.collapsed]: isCollapsed }, className)}\n style={{ width: `${currentWidth}px` }}\n aria-label=\"Main navigation\"\n >\n {header && <div className={styles.header}>{header}</div>}\n\n <div className={styles.body}>{children}</div>\n\n {footer && <div className={styles.footer}>{footer}</div>}\n\n {onToggleCollapse && (\n <button\n type=\"button\"\n className={styles.toggle}\n onClick={onToggleCollapse}\n aria-expanded={!isCollapsed}\n aria-label=\"Toggle sidebar\"\n >\n <svg width={16} height={16} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n {isCollapsed ? (\n <path d=\"M6 3L11 8L6 13\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n ) : (\n <path d=\"M10 3L5 8L10 13\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n )}\n </svg>\n </button>\n )}\n </nav>\n </SidebarContext.Provider>\n );\n};\n\nSidebarRoot.displayName = 'Sidebar';\n\n/** Compound Sidebar component. */\nexport const Sidebar = Object.assign(SidebarRoot, {\n Section: SidebarSection,\n});\n"],"names":["createContext","useContext","useState","useId","jsxs","styles","jsx","clsx","SIDEBAR"],"mappings":";;;;;;;AAUA,MAAM,iBAAiBA,MAAAA,cAAmC,EAAE,aAAa,OAAO;AAGzE,MAAM,oBAAoB,MAAMC,MAAAA,WAAW,cAAc;AAMhE,MAAM,iBAAiB,CAAC;AAAA,EACtB;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,mBAAmB;AACrB,MAA2B;AACzB,QAAM,EAAE,aAAa,iBAAA,IAAqB,kBAAA;AAC1C,QAAM,CAAC,kBAAkB,mBAAmB,IAAIC,MAAAA,SAAS,gBAAgB;AACzE,QAAM,UAAUC,MAAAA,MAAA;AAEhB,QAAM,SAAS,CAAC,eAAe,CAAC;AAEhC,SACEC,2BAAAA,KAAC,OAAA,EAAI,WAAWC,eAAAA,QAAO,SAAS,MAAK,SAAQ,mBAAiB,QAAQ,UAAU,QAC7E,UAAA;AAAA,IAAA,SAAS,CAAC,qBACT,cACED,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAI;AAAA,QACJ,MAAK;AAAA,QACL,WAAWC,eAAAA,QAAO;AAAA,QAClB,SAAS,MAAM,oBAAoB,CAAC,SAAS,CAAC,IAAI;AAAA,QAClD,iBAAe;AAAA,QAEf,UAAA;AAAA,UAAAC,2BAAAA,IAAC,QAAA,EAAK,WAAWD,eAAAA,QAAO,cAAe,UAAA,OAAM;AAAA,yCAC5C,QAAA,EAAK,WAAWE,KAAAA,KAAKF,eAAAA,QAAO,gBAAgB,EAAE,CAACA,eAAAA,QAAO,kBAAkB,GAAG,OAAA,CAAQ,GAClF,UAAAC,2BAAAA,IAAC,OAAA,EAAI,OAAO,I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AA,QAAO;AAAA,YAClB,SAAS;AAAA,YACT,iBAAe,CAAC;AAAA,YAChB,cAAW;AAAA,YAEX,yCAAC,OAAA,EAAI,OAAO,IAAI,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,eAAY,QACrE,UAAA,6CACE,QAAA,EAAK,GAAE,kBAAiB,QAAO,gBAAe,aAAa,KAAK,eAAc,SAAQ,gBAAe,SAAQ,mCAE7G,QAAA,EAAK,GAAE,mBAAkB,QAAO,gBAAe,aAAa,KAAK,eAAc,SAAQ,gBAAe,SAAQ,EAAA,CAEnH;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ;AAEA,YAAY,cAAc;AAGnB,MAAM,UAAU,OAAO,OAAO,aAAa;AAAA,EAChD,SAAS;AACX,CAAC;;;"}
|
package/dist/index32.js
CHANGED
|
@@ -1,109 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
bar: "Bar",
|
|
10
|
-
pie: "Pie",
|
|
11
|
-
sunburst: "Sunburst"
|
|
12
|
-
};
|
|
13
|
-
const CHART_TYPES = ["bar", "pie", "sunburst"];
|
|
14
|
-
const StackedBarChartCard = ({
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, useState, useId, createContext } from "react";
|
|
3
|
+
import { clsx } from "./index38.js";
|
|
4
|
+
import { SIDEBAR } from "./index48.js";
|
|
5
|
+
import styles from "./index50.js";
|
|
6
|
+
const SidebarContext = createContext({ isCollapsed: false });
|
|
7
|
+
const useSidebarContext = () => useContext(SidebarContext);
|
|
8
|
+
const SidebarSection = ({
|
|
15
9
|
title,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
10
|
+
children,
|
|
11
|
+
collapsible = false,
|
|
12
|
+
defaultCollapsed = false
|
|
13
|
+
}) => {
|
|
14
|
+
const { isCollapsed: sidebarCollapsed } = useSidebarContext();
|
|
15
|
+
const [sectionCollapsed, setSectionCollapsed] = useState(defaultCollapsed);
|
|
16
|
+
const titleId = useId();
|
|
17
|
+
const isOpen = !collapsible || !sectionCollapsed;
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.section, role: "group", "aria-labelledby": title ? titleId : void 0, children: [
|
|
19
|
+
title && !sidebarCollapsed && (collapsible ? /* @__PURE__ */ jsxs(
|
|
20
|
+
"button",
|
|
21
|
+
{
|
|
22
|
+
id: titleId,
|
|
23
|
+
type: "button",
|
|
24
|
+
className: styles.sectionToggle,
|
|
25
|
+
onClick: () => setSectionCollapsed((prev) => !prev),
|
|
26
|
+
"aria-expanded": isOpen,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: styles.sectionTitle, children: title }),
|
|
29
|
+
/* @__PURE__ */ jsx("span", { className: clsx(styles.sectionChevron, { [styles.sectionChevronOpen]: isOpen }), children: /* @__PURE__ */ jsx("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M3 4.5L6 7.5L9 4.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
) : /* @__PURE__ */ jsx("span", { id: titleId, className: styles.sectionTitle, children: title })),
|
|
33
|
+
isOpen && /* @__PURE__ */ jsx("div", { className: styles.sectionItems, children })
|
|
34
|
+
] });
|
|
35
|
+
};
|
|
36
|
+
SidebarSection.displayName = "Sidebar.Section";
|
|
37
|
+
const SidebarRoot = ({
|
|
38
|
+
isCollapsed = false,
|
|
39
|
+
onToggleCollapse,
|
|
40
|
+
width = SIDEBAR.WIDTH,
|
|
41
|
+
collapsedWidth = SIDEBAR.COLLAPSED_WIDTH,
|
|
42
|
+
header,
|
|
43
|
+
footer,
|
|
44
|
+
children,
|
|
33
45
|
className
|
|
34
46
|
}) => {
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
}, [chartType, categories, series, invertAxis, hideLegend, enableScroll]);
|
|
49
|
-
const handleChartReady = useCallback(
|
|
50
|
-
(instance) => {
|
|
51
|
-
onChartReady == null ? void 0 : onChartReady(instance);
|
|
52
|
-
},
|
|
53
|
-
[onChartReady]
|
|
54
|
-
);
|
|
55
|
-
const handleChartClick = useCallback(
|
|
56
|
-
(params) => {
|
|
57
|
-
if (!onSelectCategory || !params.name) return;
|
|
58
|
-
onSelectCategory({
|
|
59
|
-
category: params.name,
|
|
60
|
-
subCategory: params.seriesName ?? null
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
[onSelectCategory]
|
|
64
|
-
);
|
|
65
|
-
const hasData = data.length > 0;
|
|
66
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx(styles.root, className), children: [
|
|
67
|
-
/* @__PURE__ */ jsxs("div", { className: styles.header, children: [
|
|
68
|
-
/* @__PURE__ */ jsxs("div", { className: styles.headerLeft, children: [
|
|
69
|
-
/* @__PURE__ */ jsx("h3", { className: styles.title, children: title }),
|
|
70
|
-
subtitle && /* @__PURE__ */ jsx("div", { className: styles.subtitle, children: subtitle })
|
|
71
|
-
] }),
|
|
72
|
-
/* @__PURE__ */ jsxs("div", { className: styles.headerRight, children: [
|
|
73
|
-
toolbar && /* @__PURE__ */ jsx("div", { className: styles.toolbar, children: toolbar }),
|
|
74
|
-
/* @__PURE__ */ jsx("div", { className: styles.chartTypeToggle, children: CHART_TYPES.map((type) => /* @__PURE__ */ jsx(
|
|
47
|
+
const currentWidth = isCollapsed ? collapsedWidth : width;
|
|
48
|
+
return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsxs(
|
|
49
|
+
"nav",
|
|
50
|
+
{
|
|
51
|
+
className: clsx(styles.root, { [styles.collapsed]: isCollapsed }, className),
|
|
52
|
+
style: { width: `${currentWidth}px` },
|
|
53
|
+
"aria-label": "Main navigation",
|
|
54
|
+
children: [
|
|
55
|
+
header && /* @__PURE__ */ jsx("div", { className: styles.header, children: header }),
|
|
56
|
+
/* @__PURE__ */ jsx("div", { className: styles.body, children }),
|
|
57
|
+
footer && /* @__PURE__ */ jsx("div", { className: styles.footer, children: footer }),
|
|
58
|
+
onToggleCollapse && /* @__PURE__ */ jsx(
|
|
75
59
|
"button",
|
|
76
60
|
{
|
|
77
61
|
type: "button",
|
|
78
|
-
className:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
isLoading && /* @__PURE__ */ jsx("div", { className: styles.loading, children: "Loading chart data..." }),
|
|
89
|
-
!isLoading && error && /* @__PURE__ */ jsxs("div", { className: styles.error, children: [
|
|
90
|
-
/* @__PURE__ */ jsx("span", { children: error }),
|
|
91
|
-
onRetry && /* @__PURE__ */ jsx("button", { type: "button", className: styles.retryButton, onClick: onRetry, children: "Retry" })
|
|
92
|
-
] }),
|
|
93
|
-
!isLoading && !error && !hasData && /* @__PURE__ */ jsx("div", { className: styles.empty, children: "No data available" }),
|
|
94
|
-
!isLoading && !error && hasData && /* @__PURE__ */ jsx("div", { className: styles.chartContainer, children: /* @__PURE__ */ jsx(
|
|
95
|
-
ReactECharts,
|
|
96
|
-
{
|
|
97
|
-
option,
|
|
98
|
-
style: { height: "100%", width: "100%" },
|
|
99
|
-
onChartReady: handleChartReady,
|
|
100
|
-
onEvents: { click: handleChartClick },
|
|
101
|
-
notMerge: true
|
|
102
|
-
}
|
|
103
|
-
) })
|
|
104
|
-
] });
|
|
62
|
+
className: styles.toggle,
|
|
63
|
+
onClick: onToggleCollapse,
|
|
64
|
+
"aria-expanded": !isCollapsed,
|
|
65
|
+
"aria-label": "Toggle sidebar",
|
|
66
|
+
children: /* @__PURE__ */ jsx("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: isCollapsed ? /* @__PURE__ */ jsx("path", { d: "M6 3L11 8L6 13", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) : /* @__PURE__ */ jsx("path", { d: "M10 3L5 8L10 13", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
) });
|
|
105
72
|
};
|
|
73
|
+
SidebarRoot.displayName = "Sidebar";
|
|
74
|
+
const Sidebar = Object.assign(SidebarRoot, {
|
|
75
|
+
Section: SidebarSection
|
|
76
|
+
});
|
|
106
77
|
export {
|
|
107
|
-
|
|
78
|
+
Sidebar,
|
|
79
|
+
useSidebarContext
|
|
108
80
|
};
|
|
109
81
|
//# sourceMappingURL=index32.js.map
|
package/dist/index32.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index32.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index32.js","sources":["../src/composites/Sidebar/Sidebar.tsx"],"sourcesContent":["import { createContext, useContext, useId, useState } from 'react';\nimport clsx from 'clsx';\nimport { SIDEBAR } from '../../constants';\nimport type { SidebarProps, SidebarSectionProps } from './Sidebar.types';\nimport styles from './Sidebar.module.css';\n\ninterface SidebarContextValue {\n isCollapsed: boolean;\n}\n\nconst SidebarContext = createContext<SidebarContextValue>({ isCollapsed: false });\n\n/** Hook to read sidebar collapsed state from context. */\nexport const useSidebarContext = () => useContext(SidebarContext);\n\n/* ------------------------------------------------------------------ */\n/* Sidebar.Section */\n/* ------------------------------------------------------------------ */\n\nconst SidebarSection = ({\n title,\n children,\n collapsible = false,\n defaultCollapsed = false,\n}: SidebarSectionProps) => {\n const { isCollapsed: sidebarCollapsed } = useSidebarContext();\n const [sectionCollapsed, setSectionCollapsed] = useState(defaultCollapsed);\n const titleId = useId();\n\n const isOpen = !collapsible || !sectionCollapsed;\n\n return (\n <div className={styles.section} role=\"group\" aria-labelledby={title ? titleId : undefined}>\n {title && !sidebarCollapsed && (\n collapsible ? (\n <button\n id={titleId}\n type=\"button\"\n className={styles.sectionToggle}\n onClick={() => setSectionCollapsed((prev) => !prev)}\n aria-expanded={isOpen}\n >\n <span className={styles.sectionTitle}>{title}</span>\n <span className={clsx(styles.sectionChevron, { [styles.sectionChevronOpen]: isOpen })}>\n <svg width={12} height={12} viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3 4.5L6 7.5L9 4.5\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </span>\n </button>\n ) : (\n <span id={titleId} className={styles.sectionTitle}>\n {title}\n </span>\n )\n )}\n {isOpen && <div className={styles.sectionItems}>{children}</div>}\n </div>\n );\n};\n\nSidebarSection.displayName = 'Sidebar.Section';\n\n/* ------------------------------------------------------------------ */\n/* Sidebar */\n/* ------------------------------------------------------------------ */\n\nconst SidebarRoot = ({\n isCollapsed = false,\n onToggleCollapse,\n width = SIDEBAR.WIDTH,\n collapsedWidth = SIDEBAR.COLLAPSED_WIDTH,\n header,\n footer,\n children,\n className,\n}: SidebarProps) => {\n const currentWidth = isCollapsed ? collapsedWidth : width;\n\n return (\n <SidebarContext.Provider value={{ isCollapsed }}>\n <nav\n className={clsx(styles.root, { [styles.collapsed]: isCollapsed }, className)}\n style={{ width: `${currentWidth}px` }}\n aria-label=\"Main navigation\"\n >\n {header && <div className={styles.header}>{header}</div>}\n\n <div className={styles.body}>{children}</div>\n\n {footer && <div className={styles.footer}>{footer}</div>}\n\n {onToggleCollapse && (\n <button\n type=\"button\"\n className={styles.toggle}\n onClick={onToggleCollapse}\n aria-expanded={!isCollapsed}\n aria-label=\"Toggle sidebar\"\n >\n <svg width={16} height={16} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n {isCollapsed ? (\n <path d=\"M6 3L11 8L6 13\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n ) : (\n <path d=\"M10 3L5 8L10 13\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n )}\n </svg>\n </button>\n )}\n </nav>\n </SidebarContext.Provider>\n );\n};\n\nSidebarRoot.displayName = 'Sidebar';\n\n/** Compound Sidebar component. */\nexport const Sidebar = Object.assign(SidebarRoot, {\n Section: SidebarSection,\n});\n"],"names":[],"mappings":";;;;;AAUA,MAAM,iBAAiB,cAAmC,EAAE,aAAa,OAAO;AAGzE,MAAM,oBAAoB,MAAM,WAAW,cAAc;AAMhE,MAAM,iBAAiB,CAAC;AAAA,EACtB;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,mBAAmB;AACrB,MAA2B;AACzB,QAAM,EAAE,aAAa,iBAAA,IAAqB,kBAAA;AAC1C,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,SAAS,gBAAgB;AACzE,QAAM,UAAU,MAAA;AAEhB,QAAM,SAAS,CAAC,eAAe,CAAC;AAEhC,SACE,qBAAC,OAAA,EAAI,WAAW,OAAO,SAAS,MAAK,SAAQ,mBAAiB,QAAQ,UAAU,QAC7E,UAAA;AAAA,IAAA,SAAS,CAAC,qBACT,cACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAI;AAAA,QACJ,MAAK;AAAA,QACL,WAAW,OAAO;AAAA,QAClB,SAAS,MA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