@pos-360/horizon 0.16.0 → 0.18.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/{chunk-7WVGPVSG.js → chunk-5XF7Y25B.js} +63 -6
- package/dist/chunk-5XF7Y25B.js.map +1 -0
- package/dist/{chunk-UWBZTH6L.js → chunk-6KBCME37.js} +445 -331
- package/dist/chunk-6KBCME37.js.map +1 -0
- package/dist/{chunk-G36NTARE.mjs → chunk-AORFIAS4.mjs} +29 -33
- package/dist/chunk-AORFIAS4.mjs.map +1 -0
- package/dist/{chunk-KQYOZC7B.mjs → chunk-DNRDNWUF.mjs} +369 -255
- package/dist/chunk-DNRDNWUF.mjs.map +1 -0
- package/dist/{chunk-QCQOCLJH.js → chunk-T7ITROJS.js} +104 -108
- package/dist/chunk-T7ITROJS.js.map +1 -0
- package/dist/{chunk-THQLVDXH.mjs → chunk-UQ66UPWH.mjs} +63 -8
- package/dist/chunk-UQ66UPWH.mjs.map +1 -0
- package/dist/enhanced.d.mts +2 -0
- package/dist/enhanced.d.ts +2 -0
- package/dist/enhanced.js +28 -28
- package/dist/enhanced.mjs +2 -2
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +144 -140
- package/dist/index.mjs +3 -3
- package/dist/primitives.d.mts +28 -2
- package/dist/primitives.d.ts +28 -2
- package/dist/primitives.js +116 -112
- package/dist/primitives.mjs +2 -2
- package/dist/tooltip-wUBttbwG.d.mts +25 -0
- package/dist/tooltip-wUBttbwG.d.ts +25 -0
- package/package.json +1 -1
- package/dist/chunk-7WVGPVSG.js.map +0 -1
- package/dist/chunk-G36NTARE.mjs.map +0 -1
- package/dist/chunk-KQYOZC7B.mjs.map +0 -1
- package/dist/chunk-QCQOCLJH.js.map +0 -1
- package/dist/chunk-THQLVDXH.mjs.map +0 -1
- package/dist/chunk-UWBZTH6L.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5XF7Y25B_js = require('./chunk-5XF7Y25B.js');
|
|
4
4
|
var framerMotion = require('framer-motion');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
@@ -13,7 +13,7 @@ var grid = require('@visx/grid');
|
|
|
13
13
|
var gradient = require('@visx/gradient');
|
|
14
14
|
var responsive = require('@visx/responsive');
|
|
15
15
|
var curve = require('@visx/curve');
|
|
16
|
-
var
|
|
16
|
+
var Tooltip2 = require('@radix-ui/react-tooltip');
|
|
17
17
|
|
|
18
18
|
function _interopNamespace(e) {
|
|
19
19
|
if (e && e.__esModule) return e;
|
|
@@ -34,7 +34,7 @@ function _interopNamespace(e) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
37
|
-
var
|
|
37
|
+
var Tooltip2__namespace = /*#__PURE__*/_interopNamespace(Tooltip2);
|
|
38
38
|
|
|
39
39
|
var AnimatedButton = ({
|
|
40
40
|
label,
|
|
@@ -130,7 +130,7 @@ var Dashboard = React.forwardRef(
|
|
|
130
130
|
{
|
|
131
131
|
ref,
|
|
132
132
|
"data-dashboard-id": dashboardId,
|
|
133
|
-
className:
|
|
133
|
+
className: chunk5XF7Y25B_js.cn("hz-rounded grid w-full", className),
|
|
134
134
|
children
|
|
135
135
|
}
|
|
136
136
|
)
|
|
@@ -203,7 +203,7 @@ var DashboardPanel = React.forwardRef(
|
|
|
203
203
|
{
|
|
204
204
|
ref,
|
|
205
205
|
"data-panel-id": needsResponsiveCSS ? panelId : void 0,
|
|
206
|
-
className:
|
|
206
|
+
className: chunk5XF7Y25B_js.cn("min-w-0 h-full", className),
|
|
207
207
|
style: inlineStyle,
|
|
208
208
|
children
|
|
209
209
|
}
|
|
@@ -218,7 +218,7 @@ var TrendBadge = ({ trend, size }) => {
|
|
|
218
218
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
219
219
|
"div",
|
|
220
220
|
{
|
|
221
|
-
className:
|
|
221
|
+
className: chunk5XF7Y25B_js.cn(
|
|
222
222
|
"inline-flex items-center gap-1 px-2 py-0.5 rounded-hz-full font-medium",
|
|
223
223
|
size === "sm" && "text-xs",
|
|
224
224
|
size === "md" && "text-xs",
|
|
@@ -249,9 +249,9 @@ var StatDisplay = React.forwardRef(
|
|
|
249
249
|
}
|
|
250
250
|
return value;
|
|
251
251
|
}, [value]);
|
|
252
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
252
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunk5XF7Y25B_js.cn("flex flex-col", className), children: [
|
|
253
253
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
254
|
-
|
|
254
|
+
chunk5XF7Y25B_js.Text,
|
|
255
255
|
{
|
|
256
256
|
as: "span",
|
|
257
257
|
size: "xs",
|
|
@@ -263,7 +263,7 @@ var StatDisplay = React.forwardRef(
|
|
|
263
263
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
264
264
|
"span",
|
|
265
265
|
{
|
|
266
|
-
className:
|
|
266
|
+
className: chunk5XF7Y25B_js.cn(
|
|
267
267
|
"font-bold text-gray-900 dark:text-gray-100 mt-0.5",
|
|
268
268
|
size === "sm" && "text-lg",
|
|
269
269
|
size === "md" && "text-xl",
|
|
@@ -278,7 +278,7 @@ var StatDisplay = React.forwardRef(
|
|
|
278
278
|
),
|
|
279
279
|
trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mt-1", children: [
|
|
280
280
|
/* @__PURE__ */ jsxRuntime.jsx(TrendBadge, { trend, size }),
|
|
281
|
-
trend.label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
281
|
+
trend.label && /* @__PURE__ */ jsxRuntime.jsx(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", color: "muted", children: trend.label })
|
|
282
282
|
] })
|
|
283
283
|
] });
|
|
284
284
|
}
|
|
@@ -764,11 +764,11 @@ var ChartRenderer = React.forwardRef(
|
|
|
764
764
|
return 0;
|
|
765
765
|
}, [config]);
|
|
766
766
|
const fillMode = height === void 0;
|
|
767
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
767
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunk5XF7Y25B_js.cn("flex flex-col", fillMode && "flex-1 min-h-0", className), children: [
|
|
768
768
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
769
769
|
"div",
|
|
770
770
|
{
|
|
771
|
-
className:
|
|
771
|
+
className: chunk5XF7Y25B_js.cn("w-full", fillMode && "flex-1 min-h-0"),
|
|
772
772
|
style: height !== void 0 ? { height } : void 0,
|
|
773
773
|
children: /* @__PURE__ */ jsxRuntime.jsx(responsive.ParentSize, { children: ({ width, height: h }) => {
|
|
774
774
|
switch (config.type) {
|
|
@@ -822,8 +822,8 @@ var ChartRenderer = React.forwardRef(
|
|
|
822
822
|
style: { backgroundColor: item.color || defaultColors[index % defaultColors.length] }
|
|
823
823
|
}
|
|
824
824
|
),
|
|
825
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
826
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
825
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", color: "muted", children: item.label }),
|
|
826
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", weight: "medium", className: "text-gray-700 dark:text-gray-300", children: [
|
|
827
827
|
(item.value / total * 100).toFixed(0),
|
|
828
828
|
"%"
|
|
829
829
|
] })
|
|
@@ -836,7 +836,7 @@ var ChartRenderer = React.forwardRef(
|
|
|
836
836
|
style: { backgroundColor: s.color || defaultColors[index % defaultColors.length] }
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
839
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", color: "muted", children: s.name })
|
|
840
840
|
] }, s.name)) })
|
|
841
841
|
] });
|
|
842
842
|
}
|
|
@@ -850,7 +850,7 @@ var CompactPanel = React.forwardRef(
|
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
852
|
ref,
|
|
853
|
-
className:
|
|
853
|
+
className: chunk5XF7Y25B_js.cn(
|
|
854
854
|
fillHeight && "h-full",
|
|
855
855
|
"rounded-hz-lg bg-white dark:bg-neutral-900",
|
|
856
856
|
"border border-gray-200 dark:border-neutral-800",
|
|
@@ -861,7 +861,7 @@ var CompactPanel = React.forwardRef(
|
|
|
861
861
|
(title || headerControls || lastUpdated) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2 mb-3", children: [
|
|
862
862
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
863
863
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
864
|
-
|
|
864
|
+
chunk5XF7Y25B_js.Text,
|
|
865
865
|
{
|
|
866
866
|
as: "span",
|
|
867
867
|
size: "xs",
|
|
@@ -870,14 +870,14 @@ var CompactPanel = React.forwardRef(
|
|
|
870
870
|
children: title
|
|
871
871
|
}
|
|
872
872
|
),
|
|
873
|
-
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
873
|
+
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", className: "text-gray-400 dark:text-gray-500", children: [
|
|
874
874
|
"\xB7 ",
|
|
875
875
|
lastUpdated
|
|
876
876
|
] })
|
|
877
877
|
] }),
|
|
878
878
|
headerControls && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 -mt-1 -mr-1", children: headerControls })
|
|
879
879
|
] }),
|
|
880
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
880
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk5XF7Y25B_js.cn(
|
|
881
881
|
"flex-1 flex flex-col min-h-0",
|
|
882
882
|
isChartMode ? "justify-center" : "justify-end"
|
|
883
883
|
), children: isChartMode ? /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { config: props.chart, showLegend: false, className: "flex-1" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -904,7 +904,7 @@ var TrendIndicator = ({ trend }) => {
|
|
|
904
904
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
905
905
|
"span",
|
|
906
906
|
{
|
|
907
|
-
className:
|
|
907
|
+
className: chunk5XF7Y25B_js.cn(
|
|
908
908
|
"inline-flex items-center gap-1",
|
|
909
909
|
trend.direction === "up" && "text-emerald-600 dark:text-emerald-400",
|
|
910
910
|
trend.direction === "down" && "text-rose-600 dark:text-rose-400",
|
|
@@ -941,7 +941,7 @@ var renderCellContent = (cellValue, align) => {
|
|
|
941
941
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
942
942
|
"div",
|
|
943
943
|
{
|
|
944
|
-
className:
|
|
944
|
+
className: chunk5XF7Y25B_js.cn(
|
|
945
945
|
"flex items-center gap-2",
|
|
946
946
|
align === "right" && "justify-end",
|
|
947
947
|
align === "center" && "justify-center"
|
|
@@ -976,13 +976,13 @@ var TableRenderer = React.forwardRef(
|
|
|
976
976
|
}
|
|
977
977
|
return data;
|
|
978
978
|
}, [data, maxRows]);
|
|
979
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
979
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunk5XF7Y25B_js.cn("h-full flex flex-col", className), children: [
|
|
980
980
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-x-auto", children: [
|
|
981
981
|
/* @__PURE__ */ jsxRuntime.jsxs("table", { className: "w-full text-sm", children: [
|
|
982
982
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { className: "border-b border-gray-200 dark:border-neutral-700", children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
983
983
|
"th",
|
|
984
984
|
{
|
|
985
|
-
className:
|
|
985
|
+
className: chunk5XF7Y25B_js.cn(
|
|
986
986
|
"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",
|
|
987
987
|
"border-r border-gray-200 dark:border-neutral-700 last:border-r-0",
|
|
988
988
|
compact ? "py-2 px-3" : "py-3 px-4",
|
|
@@ -998,14 +998,14 @@ var TableRenderer = React.forwardRef(
|
|
|
998
998
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: displayData.map((row, rowIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
999
999
|
"tr",
|
|
1000
1000
|
{
|
|
1001
|
-
className:
|
|
1001
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1002
1002
|
"border-b border-gray-100 dark:border-neutral-800 last:border-0",
|
|
1003
1003
|
striped && rowIndex % 2 === 1 && "bg-gray-50 dark:bg-neutral-800/50"
|
|
1004
1004
|
),
|
|
1005
1005
|
children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1006
1006
|
"td",
|
|
1007
1007
|
{
|
|
1008
|
-
className:
|
|
1008
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1009
1009
|
"text-gray-900 dark:text-gray-100",
|
|
1010
1010
|
"border-r border-gray-200 dark:border-neutral-700 last:border-r-0",
|
|
1011
1011
|
compact ? "py-2 px-3" : "py-3 px-4",
|
|
@@ -1053,7 +1053,7 @@ var TableRenderer = React.forwardRef(
|
|
|
1053
1053
|
type: "button",
|
|
1054
1054
|
onClick: () => pagination.onPageChange(pagination.currentPage - 1),
|
|
1055
1055
|
disabled: pagination.currentPage <= 1,
|
|
1056
|
-
className:
|
|
1056
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1057
1057
|
"p-1.5 rounded-hz-md transition-colors",
|
|
1058
1058
|
pagination.currentPage <= 1 ? "text-gray-300 dark:text-gray-600 cursor-not-allowed" : "text-gray-500 hover:text-gray-700 hover:bg-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:hover:bg-neutral-700"
|
|
1059
1059
|
),
|
|
@@ -1066,7 +1066,7 @@ var TableRenderer = React.forwardRef(
|
|
|
1066
1066
|
type: "button",
|
|
1067
1067
|
onClick: () => pagination.onPageChange(pagination.currentPage + 1),
|
|
1068
1068
|
disabled: pagination.currentPage >= pagination.totalPages,
|
|
1069
|
-
className:
|
|
1069
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1070
1070
|
"p-1.5 rounded-hz-md transition-colors",
|
|
1071
1071
|
pagination.currentPage >= pagination.totalPages ? "text-gray-300 dark:text-gray-600 cursor-not-allowed" : "text-gray-500 hover:text-gray-700 hover:bg-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:hover:bg-neutral-700"
|
|
1072
1072
|
),
|
|
@@ -1082,13 +1082,13 @@ TableRenderer.displayName = "TableRenderer";
|
|
|
1082
1082
|
var MediumPanelContext = React.createContext({ inPanel: false });
|
|
1083
1083
|
var MediumPanelStat = React.forwardRef(
|
|
1084
1084
|
({ data, className }, ref) => {
|
|
1085
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className:
|
|
1085
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunk5XF7Y25B_js.cn("px-5 pt-4", className), children: /* @__PURE__ */ jsxRuntime.jsx(StatDisplay, { data, size: "md" }) });
|
|
1086
1086
|
}
|
|
1087
1087
|
);
|
|
1088
1088
|
MediumPanelStat.displayName = "MediumPanel.Stat";
|
|
1089
1089
|
var MediumPanelChart = React.forwardRef(
|
|
1090
1090
|
({ config, className }, ref) => {
|
|
1091
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, className:
|
|
1091
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, className: chunk5XF7Y25B_js.cn("flex-1 px-5 pt-4", className) });
|
|
1092
1092
|
}
|
|
1093
1093
|
);
|
|
1094
1094
|
MediumPanelChart.displayName = "MediumPanel.Chart";
|
|
@@ -1099,7 +1099,7 @@ var MediumPanelTable = React.forwardRef(
|
|
|
1099
1099
|
{
|
|
1100
1100
|
ref,
|
|
1101
1101
|
config: { ...config, compact: true },
|
|
1102
|
-
className:
|
|
1102
|
+
className: chunk5XF7Y25B_js.cn("flex-1", className)
|
|
1103
1103
|
}
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
@@ -1113,7 +1113,7 @@ var MediumPanelBase = React.forwardRef(
|
|
|
1113
1113
|
"div",
|
|
1114
1114
|
{
|
|
1115
1115
|
ref,
|
|
1116
|
-
className:
|
|
1116
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1117
1117
|
fillHeight && "h-full",
|
|
1118
1118
|
"rounded-hz-lg bg-white dark:bg-neutral-900",
|
|
1119
1119
|
"border border-gray-200 dark:border-neutral-800",
|
|
@@ -1126,7 +1126,7 @@ var MediumPanelBase = React.forwardRef(
|
|
|
1126
1126
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1127
1127
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1128
1128
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1129
|
-
|
|
1129
|
+
chunk5XF7Y25B_js.Text,
|
|
1130
1130
|
{
|
|
1131
1131
|
as: "span",
|
|
1132
1132
|
weight: "semibold",
|
|
@@ -1135,12 +1135,12 @@ var MediumPanelBase = React.forwardRef(
|
|
|
1135
1135
|
children: title
|
|
1136
1136
|
}
|
|
1137
1137
|
),
|
|
1138
|
-
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1138
|
+
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", className: "text-gray-400 dark:text-gray-500", children: [
|
|
1139
1139
|
"\xB7 ",
|
|
1140
1140
|
lastUpdated
|
|
1141
1141
|
] })
|
|
1142
1142
|
] }),
|
|
1143
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1143
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx(chunk5XF7Y25B_js.Text, { as: "p", size: "xs", color: "muted", className: "mt-0.5", children: subtitle })
|
|
1144
1144
|
] }),
|
|
1145
1145
|
headerControls && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: headerControls })
|
|
1146
1146
|
] }),
|
|
@@ -1164,7 +1164,7 @@ MediumPanel.Table = MediumPanelTable;
|
|
|
1164
1164
|
var LargePanelContext = React.createContext({ inPanel: false });
|
|
1165
1165
|
var LargePanelHeader = React.forwardRef(
|
|
1166
1166
|
({ children, className }, ref) => {
|
|
1167
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className:
|
|
1167
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunk5XF7Y25B_js.cn("mb-4", className), children });
|
|
1168
1168
|
}
|
|
1169
1169
|
);
|
|
1170
1170
|
LargePanelHeader.displayName = "LargePanel.Header";
|
|
@@ -1174,7 +1174,7 @@ var LargePanelStats = React.forwardRef(
|
|
|
1174
1174
|
"div",
|
|
1175
1175
|
{
|
|
1176
1176
|
ref,
|
|
1177
|
-
className:
|
|
1177
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1178
1178
|
"grid gap-4 px-6 pt-4",
|
|
1179
1179
|
columns === 2 && "grid-cols-2",
|
|
1180
1180
|
columns === 3 && "grid-cols-3",
|
|
@@ -1189,19 +1189,19 @@ var LargePanelStats = React.forwardRef(
|
|
|
1189
1189
|
LargePanelStats.displayName = "LargePanel.Stats";
|
|
1190
1190
|
var LargePanelChart = React.forwardRef(
|
|
1191
1191
|
({ config, height, className }, ref) => {
|
|
1192
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, height, className:
|
|
1192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, height, className: chunk5XF7Y25B_js.cn("flex-1 min-h-0 px-6 pt-4", className) });
|
|
1193
1193
|
}
|
|
1194
1194
|
);
|
|
1195
1195
|
LargePanelChart.displayName = "LargePanel.Chart";
|
|
1196
1196
|
var LargePanelContent = React.forwardRef(
|
|
1197
1197
|
({ children, className }, ref) => {
|
|
1198
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className:
|
|
1198
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunk5XF7Y25B_js.cn("px-6", className), children });
|
|
1199
1199
|
}
|
|
1200
1200
|
);
|
|
1201
1201
|
LargePanelContent.displayName = "LargePanel.Content";
|
|
1202
1202
|
var LargePanelTable = React.forwardRef(
|
|
1203
1203
|
({ config, className }, ref) => {
|
|
1204
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TableRenderer, { ref, config, className:
|
|
1204
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TableRenderer, { ref, config, className: chunk5XF7Y25B_js.cn("flex-1 min-h-0", className) });
|
|
1205
1205
|
}
|
|
1206
1206
|
);
|
|
1207
1207
|
LargePanelTable.displayName = "LargePanel.Table";
|
|
@@ -1211,7 +1211,7 @@ var LargePanelBase = React.forwardRef(
|
|
|
1211
1211
|
"div",
|
|
1212
1212
|
{
|
|
1213
1213
|
ref,
|
|
1214
|
-
className:
|
|
1214
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1215
1215
|
fillHeight && "h-full",
|
|
1216
1216
|
"rounded-hz-lg bg-white dark:bg-neutral-900",
|
|
1217
1217
|
"border border-gray-200 dark:border-neutral-800",
|
|
@@ -1224,7 +1224,7 @@ var LargePanelBase = React.forwardRef(
|
|
|
1224
1224
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1225
1225
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1226
1226
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1227
|
-
|
|
1227
|
+
chunk5XF7Y25B_js.Text,
|
|
1228
1228
|
{
|
|
1229
1229
|
as: "span",
|
|
1230
1230
|
weight: "semibold",
|
|
@@ -1233,12 +1233,12 @@ var LargePanelBase = React.forwardRef(
|
|
|
1233
1233
|
children: title
|
|
1234
1234
|
}
|
|
1235
1235
|
),
|
|
1236
|
-
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1236
|
+
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(chunk5XF7Y25B_js.Text, { as: "span", size: "xs", className: "text-gray-400 dark:text-gray-500", children: [
|
|
1237
1237
|
"\xB7 ",
|
|
1238
1238
|
lastUpdated
|
|
1239
1239
|
] })
|
|
1240
1240
|
] }),
|
|
1241
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1241
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx(chunk5XF7Y25B_js.Text, { as: "p", size: "xs", color: "muted", className: "mt-0.5", children: subtitle })
|
|
1242
1242
|
] }),
|
|
1243
1243
|
headerControls && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: headerControls })
|
|
1244
1244
|
] }),
|
|
@@ -1296,7 +1296,6 @@ var Input = React.forwardRef(
|
|
|
1296
1296
|
onValidationChange,
|
|
1297
1297
|
...props
|
|
1298
1298
|
}, ref) => {
|
|
1299
|
-
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
1300
1299
|
const [internalError, setInternalError] = React.useState("");
|
|
1301
1300
|
const [hasBeenBlurred, setHasBeenBlurred] = React.useState(false);
|
|
1302
1301
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
@@ -1513,25 +1512,26 @@ var Input = React.forwardRef(
|
|
|
1513
1512
|
const canIncrement = !disabled && (max === void 0 || (parseFloat(inputValue) || 0) < max);
|
|
1514
1513
|
const showPasswordRules = isPasswordType && passwordRules && hasBeenBlurred;
|
|
1515
1514
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
1516
|
-
label && /* @__PURE__ */ jsxRuntime.
|
|
1517
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1515
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative mb-2", children: /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "text-sm font-medium text-neutral-700 dark:text-neutral-300 transition-colors duration-hz-slow ease-hz-default flex items-center", children: [
|
|
1516
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs sm:text-sm", children: label }),
|
|
1517
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-rose-500 ml-1", children: "*" }),
|
|
1518
|
+
tooltip && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1519
|
+
chunk5XF7Y25B_js.Tooltip,
|
|
1520
|
+
{
|
|
1521
|
+
content: tooltip.content,
|
|
1522
|
+
side: tooltip.position ?? "top",
|
|
1523
|
+
variant: tooltip.variant,
|
|
1524
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1525
|
+
"button",
|
|
1526
|
+
{
|
|
1527
|
+
type: "button",
|
|
1528
|
+
className: "ml-2 text-neutral-400 dark:text-neutral-500 hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors duration-hz-slow ease-hz-default",
|
|
1529
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Info, { className: "w-4 h-4" })
|
|
1530
|
+
}
|
|
1531
|
+
)
|
|
1532
|
+
}
|
|
1533
|
+
)
|
|
1534
|
+
] }) }),
|
|
1535
1535
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1536
1536
|
hasLeadingContent && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1537
1537
|
"div",
|
|
@@ -1623,10 +1623,6 @@ var Input = React.forwardRef(
|
|
|
1623
1623
|
{
|
|
1624
1624
|
className: `absolute top-1/2 -translate-y-1/3 right-0 pr-3 flex items-center ${onTrailingClick ? "cursor-pointer" : ""}`,
|
|
1625
1625
|
onClick: onTrailingClick,
|
|
1626
|
-
onMouseEnter: tooltip ? () => setShowTooltip(true) : void 0,
|
|
1627
|
-
onMouseLeave: tooltip ? () => setShowTooltip(false) : void 0,
|
|
1628
|
-
onFocus: tooltip ? () => setShowTooltip(true) : void 0,
|
|
1629
|
-
onBlur: tooltip ? () => setShowTooltip(false) : void 0,
|
|
1630
1626
|
children: trailingDecorator ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-neutral-400", children: trailingDecorator }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-neutral-400", children: trailingIcon })
|
|
1631
1627
|
}
|
|
1632
1628
|
)
|
|
@@ -1773,14 +1769,14 @@ var TemplateSelector = ({
|
|
|
1773
1769
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
1774
1770
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"
|
|
1775
1771
|
};
|
|
1776
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1772
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunk5XF7Y25B_js.cn("w-full", className), children: [
|
|
1777
1773
|
showViewToggle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end mb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-flex rounded-hz-md border border-neutral-200 dark:border-neutral-700 p-1 bg-neutral-100 dark:bg-neutral-800", children: [
|
|
1778
1774
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1779
1775
|
"button",
|
|
1780
1776
|
{
|
|
1781
1777
|
type: "button",
|
|
1782
1778
|
onClick: () => setView("card"),
|
|
1783
|
-
className:
|
|
1779
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1784
1780
|
"p-2 rounded-hz-sm text-sm font-medium transition-all duration-hz-normal ease-hz-default",
|
|
1785
1781
|
view === "card" ? `bg-white dark:bg-neutral-700 shadow-sm ${colors.toggleActive}` : "text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300"
|
|
1786
1782
|
),
|
|
@@ -1793,7 +1789,7 @@ var TemplateSelector = ({
|
|
|
1793
1789
|
{
|
|
1794
1790
|
type: "button",
|
|
1795
1791
|
onClick: () => setView("list"),
|
|
1796
|
-
className:
|
|
1792
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1797
1793
|
"p-2 rounded-hz-sm text-sm font-medium transition-all duration-hz-normal ease-hz-default",
|
|
1798
1794
|
view === "list" ? `bg-white dark:bg-neutral-700 shadow-sm ${colors.toggleActive}` : "text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300"
|
|
1799
1795
|
),
|
|
@@ -1809,7 +1805,7 @@ var TemplateSelector = ({
|
|
|
1809
1805
|
animate: { opacity: 1, y: 0 },
|
|
1810
1806
|
exit: { opacity: 0, y: -10 },
|
|
1811
1807
|
transition: { duration: 0.2 },
|
|
1812
|
-
className:
|
|
1808
|
+
className: chunk5XF7Y25B_js.cn("grid gap-4", columnClasses[columns]),
|
|
1813
1809
|
children: templates.map((template) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1814
1810
|
TemplateCard,
|
|
1815
1811
|
{
|
|
@@ -1901,7 +1897,7 @@ var TemplateCard = ({
|
|
|
1901
1897
|
whileTap: { scale: 0.98 },
|
|
1902
1898
|
transition: { type: "spring", stiffness: 400, damping: 25 },
|
|
1903
1899
|
onClick: () => onSelect(template.id),
|
|
1904
|
-
className:
|
|
1900
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1905
1901
|
"group relative cursor-pointer rounded-hz-lg overflow-hidden border transition-all duration-hz-slow ease-hz-default",
|
|
1906
1902
|
"bg-white dark:bg-neutral-800",
|
|
1907
1903
|
isSelected ? `${colors.selectedBorder} ${colors.selectedGlow}` : "border-neutral-200 dark:border-neutral-700 hover:border-neutral-300 dark:hover:border-neutral-600 hover:shadow-md",
|
|
@@ -1911,7 +1907,7 @@ var TemplateCard = ({
|
|
|
1911
1907
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1912
1908
|
"div",
|
|
1913
1909
|
{
|
|
1914
|
-
className:
|
|
1910
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1915
1911
|
"absolute top-3 left-3 z-10 w-5 h-5 rounded-hz-full border-2 flex items-center justify-center transition-all duration-hz-normal ease-hz-default",
|
|
1916
1912
|
isSelected ? colors.checkBg : "bg-white dark:bg-neutral-800 border-neutral-300 dark:border-neutral-600"
|
|
1917
1913
|
),
|
|
@@ -1923,7 +1919,7 @@ var TemplateCard = ({
|
|
|
1923
1919
|
{
|
|
1924
1920
|
type: "button",
|
|
1925
1921
|
onClick: (e) => onPreviewClick(e, template.previewUrl),
|
|
1926
|
-
className:
|
|
1922
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1927
1923
|
"absolute top-3 right-3 z-10 p-1.5 rounded-hz-md transition-all duration-hz-normal ease-hz-default",
|
|
1928
1924
|
"bg-white dark:bg-neutral-700",
|
|
1929
1925
|
"border border-neutral-200 dark:border-neutral-600",
|
|
@@ -1940,7 +1936,7 @@ var TemplateCard = ({
|
|
|
1940
1936
|
{
|
|
1941
1937
|
initial: { scale: 0.9, opacity: 0.5 },
|
|
1942
1938
|
animate: { scale: 1, opacity: 1 },
|
|
1943
|
-
className:
|
|
1939
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1944
1940
|
"p-6 rounded-hz-full transition-all duration-hz-slow ease-hz-default",
|
|
1945
1941
|
isSelected ? colors.selected : `bg-neutral-100 dark:bg-neutral-700/50 ${colors.hoverBg}`
|
|
1946
1942
|
),
|
|
@@ -1949,7 +1945,7 @@ var TemplateCard = ({
|
|
|
1949
1945
|
{
|
|
1950
1946
|
size: 48,
|
|
1951
1947
|
strokeWidth: 1.5,
|
|
1952
|
-
className:
|
|
1948
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1953
1949
|
"transition-colors duration-hz-slow ease-hz-default",
|
|
1954
1950
|
isSelected ? colors.iconSelected : `text-neutral-400 dark:text-neutral-500 ${colors.iconHover}`
|
|
1955
1951
|
)
|
|
@@ -1967,7 +1963,7 @@ var TemplateCard = ({
|
|
|
1967
1963
|
onBlur: handleBlur,
|
|
1968
1964
|
onKeyDown: handleKeyDown,
|
|
1969
1965
|
onClick: (e) => e.stopPropagation(),
|
|
1970
|
-
className:
|
|
1966
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1971
1967
|
"w-full px-2 py-1 text-sm font-medium rounded",
|
|
1972
1968
|
"bg-neutral-100 dark:bg-neutral-700",
|
|
1973
1969
|
`border ${colors.inputBorder}`,
|
|
@@ -1979,7 +1975,7 @@ var TemplateCard = ({
|
|
|
1979
1975
|
"h3",
|
|
1980
1976
|
{
|
|
1981
1977
|
onDoubleClick: handleDoubleClick,
|
|
1982
|
-
className:
|
|
1978
|
+
className: chunk5XF7Y25B_js.cn(
|
|
1983
1979
|
"text-sm font-medium text-neutral-900 dark:text-neutral-100 truncate",
|
|
1984
1980
|
editable && `cursor-text ${colors.textHover}`
|
|
1985
1981
|
),
|
|
@@ -2039,7 +2035,7 @@ var TemplateListItem = ({
|
|
|
2039
2035
|
whileTap: { scale: 0.995 },
|
|
2040
2036
|
transition: { type: "spring", stiffness: 400, damping: 25 },
|
|
2041
2037
|
onClick: () => onSelect(template.id),
|
|
2042
|
-
className:
|
|
2038
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2043
2039
|
"group flex items-center gap-4 p-3 cursor-pointer rounded-hz-lg border transition-all duration-hz-slow ease-hz-default",
|
|
2044
2040
|
"bg-white dark:bg-neutral-800",
|
|
2045
2041
|
isSelected ? `${colors.selectedBorder} shadow-md ${colors.selectedGlow}` : "border-neutral-200 dark:border-neutral-700 hover:border-neutral-300 dark:hover:border-neutral-600"
|
|
@@ -2048,7 +2044,7 @@ var TemplateListItem = ({
|
|
|
2048
2044
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2049
2045
|
"div",
|
|
2050
2046
|
{
|
|
2051
|
-
className:
|
|
2047
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2052
2048
|
"w-5 h-5 rounded-hz-full border-2 flex items-center justify-center flex-shrink-0 transition-all duration-hz-normal ease-hz-default",
|
|
2053
2049
|
isSelected ? colors.checkBg : "bg-white dark:bg-neutral-800 border-neutral-300 dark:border-neutral-600"
|
|
2054
2050
|
),
|
|
@@ -2058,7 +2054,7 @@ var TemplateListItem = ({
|
|
|
2058
2054
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2059
2055
|
"div",
|
|
2060
2056
|
{
|
|
2061
|
-
className:
|
|
2057
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2062
2058
|
"w-12 h-12 rounded-hz-md flex items-center justify-center flex-shrink-0 transition-colors duration-hz-slow ease-hz-default",
|
|
2063
2059
|
isSelected ? colors.selected : `bg-neutral-100 dark:bg-neutral-700/50 ${colors.hoverBg}`
|
|
2064
2060
|
),
|
|
@@ -2067,7 +2063,7 @@ var TemplateListItem = ({
|
|
|
2067
2063
|
{
|
|
2068
2064
|
size: 24,
|
|
2069
2065
|
strokeWidth: 1.5,
|
|
2070
|
-
className:
|
|
2066
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2071
2067
|
"transition-colors duration-hz-slow ease-hz-default",
|
|
2072
2068
|
isSelected ? colors.iconSelected : `text-neutral-400 dark:text-neutral-500 ${colors.iconHover}`
|
|
2073
2069
|
)
|
|
@@ -2085,7 +2081,7 @@ var TemplateListItem = ({
|
|
|
2085
2081
|
onBlur: handleBlur,
|
|
2086
2082
|
onKeyDown: handleKeyDown,
|
|
2087
2083
|
onClick: (e) => e.stopPropagation(),
|
|
2088
|
-
className:
|
|
2084
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2089
2085
|
"w-full px-2 py-1 text-sm font-medium rounded",
|
|
2090
2086
|
"bg-neutral-100 dark:bg-neutral-700",
|
|
2091
2087
|
`border ${colors.inputBorder}`,
|
|
@@ -2097,7 +2093,7 @@ var TemplateListItem = ({
|
|
|
2097
2093
|
"h3",
|
|
2098
2094
|
{
|
|
2099
2095
|
onDoubleClick: handleDoubleClick,
|
|
2100
|
-
className:
|
|
2096
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2101
2097
|
"text-sm font-medium text-neutral-900 dark:text-neutral-100 truncate",
|
|
2102
2098
|
editable && `cursor-text ${colors.textHover}`
|
|
2103
2099
|
),
|
|
@@ -2110,7 +2106,7 @@ var TemplateListItem = ({
|
|
|
2110
2106
|
{
|
|
2111
2107
|
type: "button",
|
|
2112
2108
|
onClick: (e) => onPreviewClick(e, template.previewUrl),
|
|
2113
|
-
className:
|
|
2109
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2114
2110
|
"p-2 rounded-hz-md transition-all duration-hz-normal ease-hz-default flex-shrink-0",
|
|
2115
2111
|
"text-neutral-400 dark:text-neutral-500",
|
|
2116
2112
|
"opacity-0 group-hover:opacity-100",
|
|
@@ -2258,20 +2254,20 @@ var Toast = ({
|
|
|
2258
2254
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2259
2255
|
"div",
|
|
2260
2256
|
{
|
|
2261
|
-
className:
|
|
2257
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2262
2258
|
"fixed top-4 right-4 z-50 max-w-sm w-[calc(100vw-2rem)] sm:w-auto transition-all duration-hz-slow ease-hz-default",
|
|
2263
2259
|
isDismissing ? "translate-x-full opacity-0" : "translate-x-0 opacity-100"
|
|
2264
2260
|
),
|
|
2265
2261
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2266
2262
|
"div",
|
|
2267
2263
|
{
|
|
2268
|
-
className:
|
|
2264
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2269
2265
|
"p-3 sm:p-4 shadow-hz-lg border rounded-hz-md transition-all duration-hz-normal ease-hz-default",
|
|
2270
2266
|
styles.container
|
|
2271
2267
|
),
|
|
2272
2268
|
children: [
|
|
2273
2269
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
2274
|
-
iconElement && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2270
|
+
iconElement && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk5XF7Y25B_js.cn("w-5 h-5 mt-0.5 flex-shrink-0", styles.icon), children: iconElement }),
|
|
2275
2271
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
2276
2272
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: message }),
|
|
2277
2273
|
action === "collapsible" && isExpanded && expandedContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 text-sm opacity-90", children: expandedContent })
|
|
@@ -2298,7 +2294,7 @@ var Toast = ({
|
|
|
2298
2294
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 w-full bg-neutral-200 dark:bg-neutral-600 h-1 rounded-hz-full overflow-hidden transition-all duration-hz-normal", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2299
2295
|
"div",
|
|
2300
2296
|
{
|
|
2301
|
-
className:
|
|
2297
|
+
className: chunk5XF7Y25B_js.cn("h-full rounded-hz-full transition-all duration-100 ease-linear", styles.progress),
|
|
2302
2298
|
style: { width: `${progressWidth}%` }
|
|
2303
2299
|
}
|
|
2304
2300
|
) })
|
|
@@ -2369,7 +2365,7 @@ var SideNavItem = React.forwardRef(
|
|
|
2369
2365
|
damping: 30,
|
|
2370
2366
|
mass: 0.8
|
|
2371
2367
|
},
|
|
2372
|
-
className:
|
|
2368
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2373
2369
|
// Base styles
|
|
2374
2370
|
"relative flex items-center cursor-pointer overflow-hidden",
|
|
2375
2371
|
"rounded-hz-md transition-colors duration-hz-normal ease-hz-default",
|
|
@@ -2393,12 +2389,12 @@ var SideNavItem = React.forwardRef(
|
|
|
2393
2389
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 w-4 h-4 flex items-center justify-center", children: icon }),
|
|
2394
2390
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full justify-between items-center gap-2", children: [
|
|
2395
2391
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2396
|
-
|
|
2392
|
+
chunk5XF7Y25B_js.Text,
|
|
2397
2393
|
{
|
|
2398
2394
|
as: "span",
|
|
2399
2395
|
size: "xs",
|
|
2400
2396
|
weight: "medium",
|
|
2401
|
-
className:
|
|
2397
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2402
2398
|
"whitespace-nowrap transition-opacity duration-200",
|
|
2403
2399
|
isCollapsed ? "opacity-0" : "opacity-100"
|
|
2404
2400
|
),
|
|
@@ -2406,10 +2402,10 @@ var SideNavItem = React.forwardRef(
|
|
|
2406
2402
|
}
|
|
2407
2403
|
),
|
|
2408
2404
|
badge && !hasChildren && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2409
|
-
|
|
2405
|
+
chunk5XF7Y25B_js.Badge,
|
|
2410
2406
|
{
|
|
2411
2407
|
variant: "info",
|
|
2412
|
-
className:
|
|
2408
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2413
2409
|
"flex-shrink-0 whitespace-nowrap transition-opacity duration-200",
|
|
2414
2410
|
isCollapsed ? "opacity-0" : "opacity-100"
|
|
2415
2411
|
),
|
|
@@ -2419,7 +2415,7 @@ var SideNavItem = React.forwardRef(
|
|
|
2419
2415
|
hasChildren && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2420
2416
|
"span",
|
|
2421
2417
|
{
|
|
2422
|
-
className:
|
|
2418
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2423
2419
|
"flex-shrink-0 w-4 h-4 text-gray-400 transition-all duration-200",
|
|
2424
2420
|
isCollapsed ? "opacity-0" : "opacity-100",
|
|
2425
2421
|
isExpanded && "rotate-90"
|
|
@@ -2433,14 +2429,14 @@ var SideNavItem = React.forwardRef(
|
|
|
2433
2429
|
}
|
|
2434
2430
|
);
|
|
2435
2431
|
const wrappedContent = href && !hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: "block", children: itemContent }) : itemContent;
|
|
2436
|
-
const finalContent = isCollapsed && !hasChildren ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2437
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2438
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2439
|
-
|
|
2432
|
+
const finalContent = isCollapsed && !hasChildren ? /* @__PURE__ */ jsxRuntime.jsx(Tooltip2__namespace.Provider, { delayDuration: 100, children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip2__namespace.Root, { children: [
|
|
2433
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tooltip2__namespace.Trigger, { asChild: true, children: wrappedContent }),
|
|
2434
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tooltip2__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2435
|
+
Tooltip2__namespace.Content,
|
|
2440
2436
|
{
|
|
2441
2437
|
side: "right",
|
|
2442
2438
|
sideOffset: 8,
|
|
2443
|
-
className:
|
|
2439
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2444
2440
|
"z-50 px-3 py-1.5 text-sm font-medium rounded-hz-md",
|
|
2445
2441
|
"bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900",
|
|
2446
2442
|
"shadow-lg",
|
|
@@ -2449,8 +2445,8 @@ var SideNavItem = React.forwardRef(
|
|
|
2449
2445
|
),
|
|
2450
2446
|
children: [
|
|
2451
2447
|
label,
|
|
2452
|
-
badge && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2453
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2448
|
+
badge && /* @__PURE__ */ jsxRuntime.jsx(chunk5XF7Y25B_js.Badge, { variant: "default", className: "ml-2", children: badge }),
|
|
2449
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tooltip2__namespace.Arrow, { className: "fill-gray-900 dark:fill-gray-100" })
|
|
2454
2450
|
]
|
|
2455
2451
|
}
|
|
2456
2452
|
) })
|
|
@@ -2480,7 +2476,7 @@ var SideNavSection = React.forwardRef(
|
|
|
2480
2476
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2481
2477
|
"div",
|
|
2482
2478
|
{
|
|
2483
|
-
className:
|
|
2479
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2484
2480
|
"px-2 py-2 text-xs uppercase tracking-wider whitespace-nowrap transition-opacity duration-200",
|
|
2485
2481
|
"text-gray-500 dark:text-gray-500",
|
|
2486
2482
|
isCollapsed ? "opacity-0" : "opacity-100"
|
|
@@ -2589,7 +2585,7 @@ var SideNav = React.forwardRef(
|
|
|
2589
2585
|
width: isCollapsed ? collapsedWidth : expandedWidth
|
|
2590
2586
|
},
|
|
2591
2587
|
transition: springTransition,
|
|
2592
|
-
className:
|
|
2588
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2593
2589
|
// Position
|
|
2594
2590
|
position === "fixed" ? "fixed left-0 top-0 h-screen" : "relative h-full",
|
|
2595
2591
|
// Base styles
|
|
@@ -2615,7 +2611,7 @@ var SideNavHeader = React.forwardRef(
|
|
|
2615
2611
|
"div",
|
|
2616
2612
|
{
|
|
2617
2613
|
ref,
|
|
2618
|
-
className:
|
|
2614
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2619
2615
|
"flex items-center justify-start h-11 overflow-hidden",
|
|
2620
2616
|
"border-b border-gray-200 dark:border-neutral-800",
|
|
2621
2617
|
className
|
|
@@ -2632,7 +2628,7 @@ var SideNavFooter = React.forwardRef(
|
|
|
2632
2628
|
"div",
|
|
2633
2629
|
{
|
|
2634
2630
|
ref,
|
|
2635
|
-
className:
|
|
2631
|
+
className: chunk5XF7Y25B_js.cn(
|
|
2636
2632
|
"flex items-center justify-start h-11 overflow-hidden",
|
|
2637
2633
|
"border-t border-gray-200 dark:border-neutral-800",
|
|
2638
2634
|
className
|
|
@@ -2688,5 +2684,5 @@ exports.TextButton = TextButton;
|
|
|
2688
2684
|
exports.Toast = Toast;
|
|
2689
2685
|
exports.useDashboardContext = useDashboardContext;
|
|
2690
2686
|
exports.useSideNavContext = useSideNavContext;
|
|
2691
|
-
//# sourceMappingURL=chunk-
|
|
2692
|
-
//# sourceMappingURL=chunk-
|
|
2687
|
+
//# sourceMappingURL=chunk-T7ITROJS.js.map
|
|
2688
|
+
//# sourceMappingURL=chunk-T7ITROJS.js.map
|