@pos-360/horizon 0.30.0 → 0.30.2
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-6LDS7PWF.js → chunk-3FXR4PA7.js} +83 -126
- package/dist/chunk-3FXR4PA7.js.map +1 -0
- package/dist/{chunk-EZDGMHS7.mjs → chunk-EZL7UCWW.mjs} +45 -3
- package/dist/chunk-EZL7UCWW.mjs.map +1 -0
- package/dist/{chunk-PQN73YBV.mjs → chunk-FUSOMGHI.mjs} +4 -46
- package/dist/chunk-FUSOMGHI.mjs.map +1 -0
- package/dist/{chunk-OWU2ABN4.mjs → chunk-HFDHLY24.mjs} +508 -429
- package/dist/chunk-HFDHLY24.mjs.map +1 -0
- package/dist/{chunk-23BJPJOK.js → chunk-NTUQQDCL.js} +45 -2
- package/dist/chunk-NTUQQDCL.js.map +1 -0
- package/dist/{chunk-MOCMPGHB.js → chunk-ZYPPWLV6.js} +620 -541
- package/dist/chunk-ZYPPWLV6.js.map +1 -0
- package/dist/enhanced.js +35 -35
- package/dist/enhanced.mjs +2 -2
- package/dist/index.js +156 -156
- package/dist/index.mjs +3 -3
- package/dist/primitives.js +120 -120
- package/dist/primitives.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-23BJPJOK.js.map +0 -1
- package/dist/chunk-6LDS7PWF.js.map +0 -1
- package/dist/chunk-EZDGMHS7.mjs.map +0 -1
- package/dist/chunk-MOCMPGHB.js.map +0 -1
- package/dist/chunk-OWU2ABN4.mjs.map +0 -1
- package/dist/chunk-PQN73YBV.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNTUQQDCL_js = require('./chunk-NTUQQDCL.js');
|
|
4
4
|
var framerMotion = require('framer-motion');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
@@ -130,7 +130,7 @@ var Dashboard = React.forwardRef(
|
|
|
130
130
|
{
|
|
131
131
|
ref,
|
|
132
132
|
"data-dashboard-id": dashboardId,
|
|
133
|
-
className:
|
|
133
|
+
className: chunkNTUQQDCL_js.cn("hz-rounded grid w-full", className),
|
|
134
134
|
children
|
|
135
135
|
}
|
|
136
136
|
)
|
|
@@ -144,7 +144,7 @@ var TrendBadge = ({ trend, size }) => {
|
|
|
144
144
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
145
145
|
"div",
|
|
146
146
|
{
|
|
147
|
-
className:
|
|
147
|
+
className: chunkNTUQQDCL_js.cn(
|
|
148
148
|
"inline-flex items-center gap-1 px-2 py-0.5 rounded-hz-full font-medium",
|
|
149
149
|
size === "sm" && "text-xs",
|
|
150
150
|
size === "md" && "text-xs",
|
|
@@ -172,9 +172,9 @@ var StatDisplay = React.forwardRef(
|
|
|
172
172
|
}
|
|
173
173
|
return value;
|
|
174
174
|
}, [value]);
|
|
175
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
175
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunkNTUQQDCL_js.cn("flex flex-col", className), children: [
|
|
176
176
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
177
|
-
|
|
177
|
+
chunkNTUQQDCL_js.Text,
|
|
178
178
|
{
|
|
179
179
|
as: "span",
|
|
180
180
|
size: "xs",
|
|
@@ -186,7 +186,7 @@ var StatDisplay = React.forwardRef(
|
|
|
186
186
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
187
187
|
"span",
|
|
188
188
|
{
|
|
189
|
-
className:
|
|
189
|
+
className: chunkNTUQQDCL_js.cn(
|
|
190
190
|
"font-bold text-gray-900 dark:text-gray-100 mt-0.5 font-mono",
|
|
191
191
|
size === "sm" && "text-lg",
|
|
192
192
|
size === "md" && "text-xl",
|
|
@@ -201,7 +201,7 @@ var StatDisplay = React.forwardRef(
|
|
|
201
201
|
),
|
|
202
202
|
trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mt-1", children: [
|
|
203
203
|
/* @__PURE__ */ jsxRuntime.jsx(TrendBadge, { trend, size }),
|
|
204
|
-
trend.label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
204
|
+
trend.label && /* @__PURE__ */ jsxRuntime.jsx(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", color: "muted", children: trend.label })
|
|
205
205
|
] })
|
|
206
206
|
] });
|
|
207
207
|
}
|
|
@@ -236,9 +236,9 @@ function KpiCardGroup({
|
|
|
236
236
|
const featuredCard = featured ? cards.find((c) => c.id === featured) : null;
|
|
237
237
|
const supportingCards = featured ? cards.filter((c) => c.id !== featured) : cards;
|
|
238
238
|
const supportingCols = Math.min(supportingCards.length, columns);
|
|
239
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
239
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkNTUQQDCL_js.cn("flex flex-col", gapClass, className), children: [
|
|
240
240
|
featuredCard && /* @__PURE__ */ jsxRuntime.jsx(KpiCard, { ...featuredCard, featured: true }),
|
|
241
|
-
supportingCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
241
|
+
supportingCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkNTUQQDCL_js.cn("grid", colClass[supportingCols], gapClass), children: supportingCards.map((card) => /* @__PURE__ */ jsxRuntime.jsx(KpiCard, { ...card, featured: false }, card.id)) })
|
|
242
242
|
] });
|
|
243
243
|
}
|
|
244
244
|
function KpiCard({
|
|
@@ -259,7 +259,7 @@ function KpiCard({
|
|
|
259
259
|
}, [value]);
|
|
260
260
|
if (featured) {
|
|
261
261
|
const Icon = trend?.direction === "up" ? lucideReact.TrendingUp : trend?.direction === "down" ? lucideReact.TrendingDown : lucideReact.Minus;
|
|
262
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
262
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkNTUQQDCL_js.cn("p-4", className), children: [
|
|
263
263
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold uppercase tracking-wide text-blue-500 dark:text-blue-400", children: label }),
|
|
264
264
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-4xl font-bold text-gray-900 dark:text-gray-100 mt-1 font-mono leading-none", children: [
|
|
265
265
|
prefix,
|
|
@@ -267,7 +267,7 @@ function KpiCard({
|
|
|
267
267
|
suffix
|
|
268
268
|
] }),
|
|
269
269
|
trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
|
|
270
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
270
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkNTUQQDCL_js.cn(
|
|
271
271
|
"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium",
|
|
272
272
|
trend.direction === "up" && "bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
273
273
|
trend.direction === "down" && "bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-400",
|
|
@@ -280,7 +280,7 @@ function KpiCard({
|
|
|
280
280
|
] })
|
|
281
281
|
] });
|
|
282
282
|
}
|
|
283
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
283
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkNTUQQDCL_js.cn(
|
|
284
284
|
"bg-white dark:bg-neutral-900 border border-gray-100 dark:border-neutral-800 rounded-lg p-4",
|
|
285
285
|
className
|
|
286
286
|
), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -356,7 +356,7 @@ var DashboardPanel = React.forwardRef(
|
|
|
356
356
|
{
|
|
357
357
|
ref,
|
|
358
358
|
"data-panel-id": needsResponsiveCSS ? panelId : void 0,
|
|
359
|
-
className:
|
|
359
|
+
className: chunkNTUQQDCL_js.cn("min-w-0 h-full", className),
|
|
360
360
|
style: inlineStyle,
|
|
361
361
|
children
|
|
362
362
|
}
|
|
@@ -845,11 +845,11 @@ var ChartRenderer = React.forwardRef(
|
|
|
845
845
|
return 0;
|
|
846
846
|
}, [config]);
|
|
847
847
|
const fillMode = height === void 0;
|
|
848
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
848
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunkNTUQQDCL_js.cn("flex flex-col", fillMode && "flex-1 min-h-0", className), children: [
|
|
849
849
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
|
-
className:
|
|
852
|
+
className: chunkNTUQQDCL_js.cn("w-full", fillMode && "flex-1 min-h-0"),
|
|
853
853
|
style: height !== void 0 ? { height } : void 0,
|
|
854
854
|
children: /* @__PURE__ */ jsxRuntime.jsx(responsive.ParentSize, { children: ({ width, height: h }) => {
|
|
855
855
|
switch (config.type) {
|
|
@@ -903,8 +903,8 @@ var ChartRenderer = React.forwardRef(
|
|
|
903
903
|
style: { backgroundColor: item.color || defaultColors[index % defaultColors.length] }
|
|
904
904
|
}
|
|
905
905
|
),
|
|
906
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
907
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
906
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", color: "muted", children: item.label }),
|
|
907
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", weight: "medium", className: "text-gray-700 dark:text-gray-300", children: [
|
|
908
908
|
(item.value / total * 100).toFixed(0),
|
|
909
909
|
"%"
|
|
910
910
|
] })
|
|
@@ -917,7 +917,7 @@ var ChartRenderer = React.forwardRef(
|
|
|
917
917
|
style: { backgroundColor: s.color || defaultColors[index % defaultColors.length] }
|
|
918
918
|
}
|
|
919
919
|
),
|
|
920
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
920
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", color: "muted", children: s.name })
|
|
921
921
|
] }, s.name)) })
|
|
922
922
|
] });
|
|
923
923
|
}
|
|
@@ -931,7 +931,7 @@ var CompactPanel = React.forwardRef(
|
|
|
931
931
|
"div",
|
|
932
932
|
{
|
|
933
933
|
ref,
|
|
934
|
-
className:
|
|
934
|
+
className: chunkNTUQQDCL_js.cn(
|
|
935
935
|
fillHeight && "h-full",
|
|
936
936
|
"rounded-hz-lg bg-white dark:bg-neutral-900",
|
|
937
937
|
"border border-gray-200 dark:border-neutral-800",
|
|
@@ -942,7 +942,7 @@ var CompactPanel = React.forwardRef(
|
|
|
942
942
|
(title || headerControls || lastUpdated) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2 mb-3", children: [
|
|
943
943
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
944
944
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
945
|
-
|
|
945
|
+
chunkNTUQQDCL_js.Text,
|
|
946
946
|
{
|
|
947
947
|
as: "span",
|
|
948
948
|
size: "xs",
|
|
@@ -951,14 +951,14 @@ var CompactPanel = React.forwardRef(
|
|
|
951
951
|
children: title
|
|
952
952
|
}
|
|
953
953
|
),
|
|
954
|
-
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
954
|
+
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", className: "text-gray-400 dark:text-gray-500", children: [
|
|
955
955
|
"\xB7 ",
|
|
956
956
|
lastUpdated
|
|
957
957
|
] })
|
|
958
958
|
] }),
|
|
959
959
|
headerControls && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 -mt-1 -mr-1", children: headerControls })
|
|
960
960
|
] }),
|
|
961
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
961
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkNTUQQDCL_js.cn(
|
|
962
962
|
"flex-1 flex flex-col min-h-0",
|
|
963
963
|
isChartMode ? "justify-center" : "justify-end"
|
|
964
964
|
), children: isChartMode ? /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { config: props.chart, showLegend: false, className: "flex-1" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -985,7 +985,7 @@ var TrendIndicator = ({ trend }) => {
|
|
|
985
985
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
986
986
|
"span",
|
|
987
987
|
{
|
|
988
|
-
className:
|
|
988
|
+
className: chunkNTUQQDCL_js.cn(
|
|
989
989
|
"inline-flex items-center gap-1",
|
|
990
990
|
trend.direction === "up" && "text-emerald-600 dark:text-emerald-400",
|
|
991
991
|
trend.direction === "down" && "text-rose-600 dark:text-rose-400",
|
|
@@ -1019,7 +1019,7 @@ var renderCellContent = (cellValue, align) => {
|
|
|
1019
1019
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1020
1020
|
"div",
|
|
1021
1021
|
{
|
|
1022
|
-
className:
|
|
1022
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1023
1023
|
"flex items-center gap-2",
|
|
1024
1024
|
align === "right" && "justify-end",
|
|
1025
1025
|
align === "center" && "justify-center"
|
|
@@ -1054,13 +1054,13 @@ var TableRenderer = React.forwardRef(
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return data;
|
|
1056
1056
|
}, [data, maxRows]);
|
|
1057
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
1057
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: chunkNTUQQDCL_js.cn("h-full flex flex-col", className), children: [
|
|
1058
1058
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-x-auto", children: [
|
|
1059
1059
|
/* @__PURE__ */ jsxRuntime.jsxs("table", { className: "w-full text-sm", children: [
|
|
1060
1060
|
/* @__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(
|
|
1061
1061
|
"th",
|
|
1062
1062
|
{
|
|
1063
|
-
className:
|
|
1063
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1064
1064
|
"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",
|
|
1065
1065
|
"border-r border-gray-200 dark:border-neutral-700 last:border-r-0",
|
|
1066
1066
|
compact ? "py-2 px-3" : "py-3 px-4",
|
|
@@ -1076,14 +1076,14 @@ var TableRenderer = React.forwardRef(
|
|
|
1076
1076
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: displayData.map((row, rowIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1077
1077
|
"tr",
|
|
1078
1078
|
{
|
|
1079
|
-
className:
|
|
1079
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1080
1080
|
"border-b border-gray-100 dark:border-neutral-800 last:border-0",
|
|
1081
1081
|
striped && rowIndex % 2 === 1 && "bg-gray-50 dark:bg-neutral-800/50"
|
|
1082
1082
|
),
|
|
1083
1083
|
children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1084
1084
|
"td",
|
|
1085
1085
|
{
|
|
1086
|
-
className:
|
|
1086
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1087
1087
|
"text-gray-900 dark:text-gray-100",
|
|
1088
1088
|
"border-r border-gray-200 dark:border-neutral-700 last:border-r-0",
|
|
1089
1089
|
compact ? "py-2 px-3" : "py-3 px-4",
|
|
@@ -1131,7 +1131,7 @@ var TableRenderer = React.forwardRef(
|
|
|
1131
1131
|
type: "button",
|
|
1132
1132
|
onClick: () => pagination.onPageChange(pagination.currentPage - 1),
|
|
1133
1133
|
disabled: pagination.currentPage <= 1,
|
|
1134
|
-
className:
|
|
1134
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1135
1135
|
"p-1.5 rounded-hz-md transition-colors",
|
|
1136
1136
|
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"
|
|
1137
1137
|
),
|
|
@@ -1144,7 +1144,7 @@ var TableRenderer = React.forwardRef(
|
|
|
1144
1144
|
type: "button",
|
|
1145
1145
|
onClick: () => pagination.onPageChange(pagination.currentPage + 1),
|
|
1146
1146
|
disabled: pagination.currentPage >= pagination.totalPages,
|
|
1147
|
-
className:
|
|
1147
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1148
1148
|
"p-1.5 rounded-hz-md transition-colors",
|
|
1149
1149
|
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"
|
|
1150
1150
|
),
|
|
@@ -1160,13 +1160,13 @@ TableRenderer.displayName = "TableRenderer";
|
|
|
1160
1160
|
var MediumPanelContext = React.createContext({ inPanel: false });
|
|
1161
1161
|
var MediumPanelStat = React.forwardRef(
|
|
1162
1162
|
({ data, className }, ref) => {
|
|
1163
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className:
|
|
1163
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunkNTUQQDCL_js.cn("px-5 pt-4", className), children: /* @__PURE__ */ jsxRuntime.jsx(StatDisplay, { data, size: "md" }) });
|
|
1164
1164
|
}
|
|
1165
1165
|
);
|
|
1166
1166
|
MediumPanelStat.displayName = "MediumPanel.Stat";
|
|
1167
1167
|
var MediumPanelChart = React.forwardRef(
|
|
1168
1168
|
({ config, className }, ref) => {
|
|
1169
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, className:
|
|
1169
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, className: chunkNTUQQDCL_js.cn("flex-1 px-5 pt-4", className) });
|
|
1170
1170
|
}
|
|
1171
1171
|
);
|
|
1172
1172
|
MediumPanelChart.displayName = "MediumPanel.Chart";
|
|
@@ -1177,7 +1177,7 @@ var MediumPanelTable = React.forwardRef(
|
|
|
1177
1177
|
{
|
|
1178
1178
|
ref,
|
|
1179
1179
|
config: { ...config, compact: true },
|
|
1180
|
-
className:
|
|
1180
|
+
className: chunkNTUQQDCL_js.cn("flex-1", className)
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
1183
|
}
|
|
@@ -1191,7 +1191,7 @@ var MediumPanelBase = React.forwardRef(
|
|
|
1191
1191
|
"div",
|
|
1192
1192
|
{
|
|
1193
1193
|
ref,
|
|
1194
|
-
className:
|
|
1194
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1195
1195
|
fillHeight && "h-full",
|
|
1196
1196
|
"rounded-hz-lg bg-white dark:bg-neutral-900",
|
|
1197
1197
|
"border border-gray-200 dark:border-neutral-800",
|
|
@@ -1204,7 +1204,7 @@ var MediumPanelBase = React.forwardRef(
|
|
|
1204
1204
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1205
1205
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1206
1206
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1207
|
-
|
|
1207
|
+
chunkNTUQQDCL_js.Text,
|
|
1208
1208
|
{
|
|
1209
1209
|
as: "span",
|
|
1210
1210
|
weight: "semibold",
|
|
@@ -1213,12 +1213,12 @@ var MediumPanelBase = React.forwardRef(
|
|
|
1213
1213
|
children: title
|
|
1214
1214
|
}
|
|
1215
1215
|
),
|
|
1216
|
-
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1216
|
+
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", className: "text-gray-400 dark:text-gray-500", children: [
|
|
1217
1217
|
"\xB7 ",
|
|
1218
1218
|
lastUpdated
|
|
1219
1219
|
] })
|
|
1220
1220
|
] }),
|
|
1221
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1221
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx(chunkNTUQQDCL_js.Text, { as: "p", size: "xs", color: "muted", className: "mt-0.5", children: subtitle })
|
|
1222
1222
|
] }),
|
|
1223
1223
|
headerControls && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: headerControls })
|
|
1224
1224
|
] }),
|
|
@@ -1242,7 +1242,7 @@ MediumPanel.Table = MediumPanelTable;
|
|
|
1242
1242
|
var LargePanelContext = React.createContext({ inPanel: false });
|
|
1243
1243
|
var LargePanelHeader = React.forwardRef(
|
|
1244
1244
|
({ children, className }, ref) => {
|
|
1245
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className:
|
|
1245
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunkNTUQQDCL_js.cn("mb-4", className), children });
|
|
1246
1246
|
}
|
|
1247
1247
|
);
|
|
1248
1248
|
LargePanelHeader.displayName = "LargePanel.Header";
|
|
@@ -1252,7 +1252,7 @@ var LargePanelStats = React.forwardRef(
|
|
|
1252
1252
|
"div",
|
|
1253
1253
|
{
|
|
1254
1254
|
ref,
|
|
1255
|
-
className:
|
|
1255
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1256
1256
|
"grid gap-4 px-6 pt-4",
|
|
1257
1257
|
columns === 2 && "grid-cols-2",
|
|
1258
1258
|
columns === 3 && "grid-cols-3",
|
|
@@ -1267,19 +1267,19 @@ var LargePanelStats = React.forwardRef(
|
|
|
1267
1267
|
LargePanelStats.displayName = "LargePanel.Stats";
|
|
1268
1268
|
var LargePanelChart = React.forwardRef(
|
|
1269
1269
|
({ config, height, className }, ref) => {
|
|
1270
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, height, className:
|
|
1270
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartRenderer, { ref, config, height, className: chunkNTUQQDCL_js.cn("flex-1 min-h-0 px-6 pt-4", className) });
|
|
1271
1271
|
}
|
|
1272
1272
|
);
|
|
1273
1273
|
LargePanelChart.displayName = "LargePanel.Chart";
|
|
1274
1274
|
var LargePanelContent = React.forwardRef(
|
|
1275
1275
|
({ children, className }, ref) => {
|
|
1276
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className:
|
|
1276
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunkNTUQQDCL_js.cn("px-6", className), children });
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
1279
|
LargePanelContent.displayName = "LargePanel.Content";
|
|
1280
1280
|
var LargePanelTable = React.forwardRef(
|
|
1281
1281
|
({ config, className }, ref) => {
|
|
1282
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TableRenderer, { ref, config, className:
|
|
1282
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TableRenderer, { ref, config, className: chunkNTUQQDCL_js.cn("flex-1 min-h-0", className) });
|
|
1283
1283
|
}
|
|
1284
1284
|
);
|
|
1285
1285
|
LargePanelTable.displayName = "LargePanel.Table";
|
|
@@ -1289,7 +1289,7 @@ var LargePanelBase = React.forwardRef(
|
|
|
1289
1289
|
"div",
|
|
1290
1290
|
{
|
|
1291
1291
|
ref,
|
|
1292
|
-
className:
|
|
1292
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1293
1293
|
fillHeight && "h-full",
|
|
1294
1294
|
"rounded-hz-lg bg-white dark:bg-neutral-900",
|
|
1295
1295
|
"border border-gray-200 dark:border-neutral-800",
|
|
@@ -1302,7 +1302,7 @@ var LargePanelBase = React.forwardRef(
|
|
|
1302
1302
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1303
1303
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1304
1304
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1305
|
-
|
|
1305
|
+
chunkNTUQQDCL_js.Text,
|
|
1306
1306
|
{
|
|
1307
1307
|
as: "span",
|
|
1308
1308
|
weight: "semibold",
|
|
@@ -1311,12 +1311,12 @@ var LargePanelBase = React.forwardRef(
|
|
|
1311
1311
|
children: title
|
|
1312
1312
|
}
|
|
1313
1313
|
),
|
|
1314
|
-
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1314
|
+
lastUpdated && /* @__PURE__ */ jsxRuntime.jsxs(chunkNTUQQDCL_js.Text, { as: "span", size: "xs", className: "text-gray-400 dark:text-gray-500", children: [
|
|
1315
1315
|
"\xB7 ",
|
|
1316
1316
|
lastUpdated
|
|
1317
1317
|
] })
|
|
1318
1318
|
] }),
|
|
1319
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1319
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx(chunkNTUQQDCL_js.Text, { as: "p", size: "xs", color: "muted", className: "mt-0.5", children: subtitle })
|
|
1320
1320
|
] }),
|
|
1321
1321
|
headerControls && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: headerControls })
|
|
1322
1322
|
] }),
|
|
@@ -1594,7 +1594,7 @@ var Input = React.forwardRef(
|
|
|
1594
1594
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs sm:text-sm", children: label }),
|
|
1595
1595
|
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-rose-500 ml-1", children: "*" }),
|
|
1596
1596
|
tooltip && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1597
|
-
|
|
1597
|
+
chunkNTUQQDCL_js.Tooltip,
|
|
1598
1598
|
{
|
|
1599
1599
|
content: tooltip.content,
|
|
1600
1600
|
side: tooltip.position ?? "top",
|
|
@@ -1847,14 +1847,14 @@ var TemplateSelector = ({
|
|
|
1847
1847
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
1848
1848
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"
|
|
1849
1849
|
};
|
|
1850
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1850
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkNTUQQDCL_js.cn("w-full", className), children: [
|
|
1851
1851
|
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: [
|
|
1852
1852
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1853
1853
|
"button",
|
|
1854
1854
|
{
|
|
1855
1855
|
type: "button",
|
|
1856
1856
|
onClick: () => setView("card"),
|
|
1857
|
-
className:
|
|
1857
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1858
1858
|
"p-2 rounded-hz-sm text-sm font-medium transition-all duration-hz-normal ease-hz-default",
|
|
1859
1859
|
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"
|
|
1860
1860
|
),
|
|
@@ -1867,7 +1867,7 @@ var TemplateSelector = ({
|
|
|
1867
1867
|
{
|
|
1868
1868
|
type: "button",
|
|
1869
1869
|
onClick: () => setView("list"),
|
|
1870
|
-
className:
|
|
1870
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1871
1871
|
"p-2 rounded-hz-sm text-sm font-medium transition-all duration-hz-normal ease-hz-default",
|
|
1872
1872
|
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"
|
|
1873
1873
|
),
|
|
@@ -1883,7 +1883,7 @@ var TemplateSelector = ({
|
|
|
1883
1883
|
animate: { opacity: 1, y: 0 },
|
|
1884
1884
|
exit: { opacity: 0, y: -10 },
|
|
1885
1885
|
transition: { duration: 0.2 },
|
|
1886
|
-
className:
|
|
1886
|
+
className: chunkNTUQQDCL_js.cn("grid gap-4", columnClasses[columns]),
|
|
1887
1887
|
children: templates.map((template) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1888
1888
|
TemplateCard,
|
|
1889
1889
|
{
|
|
@@ -1975,7 +1975,7 @@ var TemplateCard = ({
|
|
|
1975
1975
|
whileTap: { scale: 0.98 },
|
|
1976
1976
|
transition: { type: "spring", stiffness: 400, damping: 25 },
|
|
1977
1977
|
onClick: () => onSelect(template.id),
|
|
1978
|
-
className:
|
|
1978
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1979
1979
|
"group relative cursor-pointer rounded-hz-lg overflow-hidden border transition-all duration-hz-slow ease-hz-default",
|
|
1980
1980
|
"bg-white dark:bg-neutral-800",
|
|
1981
1981
|
isSelected ? `${colors.selectedBorder} ${colors.selectedGlow}` : "border-neutral-200 dark:border-neutral-700 hover:border-neutral-300 dark:hover:border-neutral-600 hover:shadow-md",
|
|
@@ -1985,7 +1985,7 @@ var TemplateCard = ({
|
|
|
1985
1985
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1986
1986
|
"div",
|
|
1987
1987
|
{
|
|
1988
|
-
className:
|
|
1988
|
+
className: chunkNTUQQDCL_js.cn(
|
|
1989
1989
|
"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",
|
|
1990
1990
|
isSelected ? colors.checkBg : "bg-white dark:bg-neutral-800 border-neutral-300 dark:border-neutral-600"
|
|
1991
1991
|
),
|
|
@@ -1997,7 +1997,7 @@ var TemplateCard = ({
|
|
|
1997
1997
|
{
|
|
1998
1998
|
type: "button",
|
|
1999
1999
|
onClick: (e) => onPreviewClick(e, template.previewUrl),
|
|
2000
|
-
className:
|
|
2000
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2001
2001
|
"absolute top-3 right-3 z-10 p-1.5 rounded-hz-md transition-all duration-hz-normal ease-hz-default",
|
|
2002
2002
|
"bg-white dark:bg-neutral-700",
|
|
2003
2003
|
"border border-neutral-200 dark:border-neutral-600",
|
|
@@ -2014,7 +2014,7 @@ var TemplateCard = ({
|
|
|
2014
2014
|
{
|
|
2015
2015
|
initial: { scale: 0.9, opacity: 0.5 },
|
|
2016
2016
|
animate: { scale: 1, opacity: 1 },
|
|
2017
|
-
className:
|
|
2017
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2018
2018
|
"p-6 rounded-hz-full transition-all duration-hz-slow ease-hz-default",
|
|
2019
2019
|
isSelected ? colors.selected : `bg-neutral-100 dark:bg-neutral-700/50 ${colors.hoverBg}`
|
|
2020
2020
|
),
|
|
@@ -2023,7 +2023,7 @@ var TemplateCard = ({
|
|
|
2023
2023
|
{
|
|
2024
2024
|
size: 48,
|
|
2025
2025
|
strokeWidth: 1.5,
|
|
2026
|
-
className:
|
|
2026
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2027
2027
|
"transition-colors duration-hz-slow ease-hz-default",
|
|
2028
2028
|
isSelected ? colors.iconSelected : `text-neutral-400 dark:text-neutral-500 ${colors.iconHover}`
|
|
2029
2029
|
)
|
|
@@ -2041,7 +2041,7 @@ var TemplateCard = ({
|
|
|
2041
2041
|
onBlur: handleBlur,
|
|
2042
2042
|
onKeyDown: handleKeyDown,
|
|
2043
2043
|
onClick: (e) => e.stopPropagation(),
|
|
2044
|
-
className:
|
|
2044
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2045
2045
|
"w-full px-2 py-1 text-sm font-medium rounded",
|
|
2046
2046
|
"bg-neutral-100 dark:bg-neutral-700",
|
|
2047
2047
|
`border ${colors.inputBorder}`,
|
|
@@ -2053,7 +2053,7 @@ var TemplateCard = ({
|
|
|
2053
2053
|
"h3",
|
|
2054
2054
|
{
|
|
2055
2055
|
onDoubleClick: handleDoubleClick,
|
|
2056
|
-
className:
|
|
2056
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2057
2057
|
"text-sm font-medium text-neutral-900 dark:text-neutral-100 truncate",
|
|
2058
2058
|
editable && `cursor-text ${colors.textHover}`
|
|
2059
2059
|
),
|
|
@@ -2113,7 +2113,7 @@ var TemplateListItem = ({
|
|
|
2113
2113
|
whileTap: { scale: 0.995 },
|
|
2114
2114
|
transition: { type: "spring", stiffness: 400, damping: 25 },
|
|
2115
2115
|
onClick: () => onSelect(template.id),
|
|
2116
|
-
className:
|
|
2116
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2117
2117
|
"group flex items-center gap-4 p-3 cursor-pointer rounded-hz-lg border transition-all duration-hz-slow ease-hz-default",
|
|
2118
2118
|
"bg-white dark:bg-neutral-800",
|
|
2119
2119
|
isSelected ? `${colors.selectedBorder} shadow-md ${colors.selectedGlow}` : "border-neutral-200 dark:border-neutral-700 hover:border-neutral-300 dark:hover:border-neutral-600"
|
|
@@ -2122,7 +2122,7 @@ var TemplateListItem = ({
|
|
|
2122
2122
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2123
2123
|
"div",
|
|
2124
2124
|
{
|
|
2125
|
-
className:
|
|
2125
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2126
2126
|
"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",
|
|
2127
2127
|
isSelected ? colors.checkBg : "bg-white dark:bg-neutral-800 border-neutral-300 dark:border-neutral-600"
|
|
2128
2128
|
),
|
|
@@ -2132,7 +2132,7 @@ var TemplateListItem = ({
|
|
|
2132
2132
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2133
2133
|
"div",
|
|
2134
2134
|
{
|
|
2135
|
-
className:
|
|
2135
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2136
2136
|
"w-12 h-12 rounded-hz-md flex items-center justify-center flex-shrink-0 transition-colors duration-hz-slow ease-hz-default",
|
|
2137
2137
|
isSelected ? colors.selected : `bg-neutral-100 dark:bg-neutral-700/50 ${colors.hoverBg}`
|
|
2138
2138
|
),
|
|
@@ -2141,7 +2141,7 @@ var TemplateListItem = ({
|
|
|
2141
2141
|
{
|
|
2142
2142
|
size: 24,
|
|
2143
2143
|
strokeWidth: 1.5,
|
|
2144
|
-
className:
|
|
2144
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2145
2145
|
"transition-colors duration-hz-slow ease-hz-default",
|
|
2146
2146
|
isSelected ? colors.iconSelected : `text-neutral-400 dark:text-neutral-500 ${colors.iconHover}`
|
|
2147
2147
|
)
|
|
@@ -2159,7 +2159,7 @@ var TemplateListItem = ({
|
|
|
2159
2159
|
onBlur: handleBlur,
|
|
2160
2160
|
onKeyDown: handleKeyDown,
|
|
2161
2161
|
onClick: (e) => e.stopPropagation(),
|
|
2162
|
-
className:
|
|
2162
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2163
2163
|
"w-full px-2 py-1 text-sm font-medium rounded",
|
|
2164
2164
|
"bg-neutral-100 dark:bg-neutral-700",
|
|
2165
2165
|
`border ${colors.inputBorder}`,
|
|
@@ -2171,7 +2171,7 @@ var TemplateListItem = ({
|
|
|
2171
2171
|
"h3",
|
|
2172
2172
|
{
|
|
2173
2173
|
onDoubleClick: handleDoubleClick,
|
|
2174
|
-
className:
|
|
2174
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2175
2175
|
"text-sm font-medium text-neutral-900 dark:text-neutral-100 truncate",
|
|
2176
2176
|
editable && `cursor-text ${colors.textHover}`
|
|
2177
2177
|
),
|
|
@@ -2184,7 +2184,7 @@ var TemplateListItem = ({
|
|
|
2184
2184
|
{
|
|
2185
2185
|
type: "button",
|
|
2186
2186
|
onClick: (e) => onPreviewClick(e, template.previewUrl),
|
|
2187
|
-
className:
|
|
2187
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2188
2188
|
"p-2 rounded-hz-md transition-all duration-hz-normal ease-hz-default flex-shrink-0",
|
|
2189
2189
|
"text-neutral-400 dark:text-neutral-500",
|
|
2190
2190
|
"opacity-0 group-hover:opacity-100",
|
|
@@ -2200,48 +2200,6 @@ var TemplateListItem = ({
|
|
|
2200
2200
|
);
|
|
2201
2201
|
};
|
|
2202
2202
|
TemplateSelector.displayName = "TemplateSelector";
|
|
2203
|
-
var TextButton = ({
|
|
2204
|
-
children,
|
|
2205
|
-
onClick,
|
|
2206
|
-
disabled = false,
|
|
2207
|
-
leadingDecorator,
|
|
2208
|
-
trailingDecorator,
|
|
2209
|
-
variant = "primary",
|
|
2210
|
-
size = "md",
|
|
2211
|
-
className = "",
|
|
2212
|
-
type = "button",
|
|
2213
|
-
...buttonProps
|
|
2214
|
-
}) => {
|
|
2215
|
-
const baseStyles = `group inline-flex justify-center items-center gap-2 font-medium uppercase tracking-wide transition-all duration-hz-normal ease-hz-default ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`;
|
|
2216
|
-
const variantStyles2 = {
|
|
2217
|
-
primary: "text-blue-600 hover:text-blue-700 focus:ring-blue-500",
|
|
2218
|
-
secondary: "text-neutral-600 hover:text-neutral-700 focus:ring-neutral-500",
|
|
2219
|
-
danger: "text-rose-600 hover:text-rose-700 focus:ring-rose-500",
|
|
2220
|
-
success: "text-emerald-600 hover:text-emerald-700 focus:ring-emerald-500",
|
|
2221
|
-
disabled: "text-neutral-400 cursor-not-allowed"
|
|
2222
|
-
};
|
|
2223
|
-
const sizeStyles = {
|
|
2224
|
-
sm: "text-xs px-2 py-1",
|
|
2225
|
-
md: "text-sm px-3 py-2",
|
|
2226
|
-
lg: "text-base px-4 py-3"
|
|
2227
|
-
};
|
|
2228
|
-
const disabledStyles = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
|
|
2229
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2230
|
-
"button",
|
|
2231
|
-
{
|
|
2232
|
-
type,
|
|
2233
|
-
className: `${baseStyles} ${variantStyles2[variant]} ${sizeStyles[size]} ${disabledStyles} ${className}`,
|
|
2234
|
-
onClick,
|
|
2235
|
-
disabled,
|
|
2236
|
-
...buttonProps,
|
|
2237
|
-
children: [
|
|
2238
|
-
leadingDecorator && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-in slide-in-from-left-1 duration-200", children: leadingDecorator }),
|
|
2239
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children }),
|
|
2240
|
-
trailingDecorator && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-in slide-in-from-right-1 duration-200 group-hover:translate-x-1", children: trailingDecorator })
|
|
2241
|
-
]
|
|
2242
|
-
}
|
|
2243
|
-
);
|
|
2244
|
-
};
|
|
2245
2203
|
var variantStyles = {
|
|
2246
2204
|
neutral: {
|
|
2247
2205
|
container: "bg-neutral-50 dark:bg-neutral-800 border-neutral-200 dark:border-neutral-700 text-neutral-800 dark:text-neutral-200",
|
|
@@ -2332,20 +2290,20 @@ var Toast = ({
|
|
|
2332
2290
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2333
2291
|
"div",
|
|
2334
2292
|
{
|
|
2335
|
-
className:
|
|
2293
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2336
2294
|
"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",
|
|
2337
2295
|
isDismissing ? "translate-x-full opacity-0" : "translate-x-0 opacity-100"
|
|
2338
2296
|
),
|
|
2339
2297
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2340
2298
|
"div",
|
|
2341
2299
|
{
|
|
2342
|
-
className:
|
|
2300
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2343
2301
|
"p-3 sm:p-4 shadow-hz-lg border rounded-hz-md transition-all duration-hz-normal ease-hz-default",
|
|
2344
2302
|
styles.container
|
|
2345
2303
|
),
|
|
2346
2304
|
children: [
|
|
2347
2305
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
2348
|
-
iconElement && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2306
|
+
iconElement && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkNTUQQDCL_js.cn("w-5 h-5 mt-0.5 flex-shrink-0", styles.icon), children: iconElement }),
|
|
2349
2307
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
2350
2308
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: message }),
|
|
2351
2309
|
action === "collapsible" && isExpanded && expandedContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 text-sm opacity-90", children: expandedContent })
|
|
@@ -2372,7 +2330,7 @@ var Toast = ({
|
|
|
2372
2330
|
/* @__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(
|
|
2373
2331
|
"div",
|
|
2374
2332
|
{
|
|
2375
|
-
className:
|
|
2333
|
+
className: chunkNTUQQDCL_js.cn("h-full rounded-hz-full transition-all duration-100 ease-linear", styles.progress),
|
|
2376
2334
|
style: { width: `${progressWidth}%` }
|
|
2377
2335
|
}
|
|
2378
2336
|
) })
|
|
@@ -2443,7 +2401,7 @@ var SideNavItem = React.forwardRef(
|
|
|
2443
2401
|
damping: 30,
|
|
2444
2402
|
mass: 0.8
|
|
2445
2403
|
},
|
|
2446
|
-
className:
|
|
2404
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2447
2405
|
// Base styles
|
|
2448
2406
|
"relative flex items-center cursor-pointer overflow-hidden",
|
|
2449
2407
|
"rounded-hz-md transition-colors duration-hz-normal ease-hz-default",
|
|
@@ -2467,12 +2425,12 @@ var SideNavItem = React.forwardRef(
|
|
|
2467
2425
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 w-4 h-4 flex items-center justify-center", children: icon }),
|
|
2468
2426
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full justify-between items-center gap-2", children: [
|
|
2469
2427
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2470
|
-
|
|
2428
|
+
chunkNTUQQDCL_js.Text,
|
|
2471
2429
|
{
|
|
2472
2430
|
as: "span",
|
|
2473
2431
|
size: "xs",
|
|
2474
2432
|
weight: "medium",
|
|
2475
|
-
className:
|
|
2433
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2476
2434
|
"whitespace-nowrap transition-opacity duration-200",
|
|
2477
2435
|
isCollapsed ? "opacity-0" : "opacity-100"
|
|
2478
2436
|
),
|
|
@@ -2480,10 +2438,10 @@ var SideNavItem = React.forwardRef(
|
|
|
2480
2438
|
}
|
|
2481
2439
|
),
|
|
2482
2440
|
badge && !hasChildren && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2483
|
-
|
|
2441
|
+
chunkNTUQQDCL_js.Badge,
|
|
2484
2442
|
{
|
|
2485
2443
|
variant: "info",
|
|
2486
|
-
className:
|
|
2444
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2487
2445
|
"flex-shrink-0 whitespace-nowrap transition-opacity duration-200",
|
|
2488
2446
|
isCollapsed ? "opacity-0" : "opacity-100"
|
|
2489
2447
|
),
|
|
@@ -2493,7 +2451,7 @@ var SideNavItem = React.forwardRef(
|
|
|
2493
2451
|
hasChildren && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2494
2452
|
"span",
|
|
2495
2453
|
{
|
|
2496
|
-
className:
|
|
2454
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2497
2455
|
"flex-shrink-0 w-4 h-4 text-gray-400 transition-all duration-200",
|
|
2498
2456
|
isCollapsed ? "opacity-0" : "opacity-100",
|
|
2499
2457
|
isExpanded && "rotate-90"
|
|
@@ -2514,7 +2472,7 @@ var SideNavItem = React.forwardRef(
|
|
|
2514
2472
|
{
|
|
2515
2473
|
side: "right",
|
|
2516
2474
|
sideOffset: 8,
|
|
2517
|
-
className:
|
|
2475
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2518
2476
|
"z-50 px-3 py-1.5 text-sm font-medium rounded-hz-md",
|
|
2519
2477
|
"bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900",
|
|
2520
2478
|
"shadow-lg",
|
|
@@ -2523,7 +2481,7 @@ var SideNavItem = React.forwardRef(
|
|
|
2523
2481
|
),
|
|
2524
2482
|
children: [
|
|
2525
2483
|
label,
|
|
2526
|
-
badge && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2484
|
+
badge && /* @__PURE__ */ jsxRuntime.jsx(chunkNTUQQDCL_js.Badge, { variant: "default", className: "ml-2", children: badge }),
|
|
2527
2485
|
/* @__PURE__ */ jsxRuntime.jsx(Tooltip2__namespace.Arrow, { className: "fill-gray-900 dark:fill-gray-100" })
|
|
2528
2486
|
]
|
|
2529
2487
|
}
|
|
@@ -2554,7 +2512,7 @@ var SideNavSection = React.forwardRef(
|
|
|
2554
2512
|
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2555
2513
|
"div",
|
|
2556
2514
|
{
|
|
2557
|
-
className:
|
|
2515
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2558
2516
|
"px-2 py-2 text-xs uppercase tracking-wider whitespace-nowrap transition-opacity duration-200",
|
|
2559
2517
|
"text-gray-500 dark:text-gray-500",
|
|
2560
2518
|
isCollapsed ? "opacity-0" : "opacity-100"
|
|
@@ -2663,7 +2621,7 @@ var SideNav = React.forwardRef(
|
|
|
2663
2621
|
width: isCollapsed ? collapsedWidth : expandedWidth
|
|
2664
2622
|
},
|
|
2665
2623
|
transition: springTransition,
|
|
2666
|
-
className:
|
|
2624
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2667
2625
|
// Position
|
|
2668
2626
|
position === "fixed" ? "fixed left-0 top-0 h-screen" : "relative h-full",
|
|
2669
2627
|
// Base styles
|
|
@@ -2689,7 +2647,7 @@ var SideNavHeader = React.forwardRef(
|
|
|
2689
2647
|
"div",
|
|
2690
2648
|
{
|
|
2691
2649
|
ref,
|
|
2692
|
-
className:
|
|
2650
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2693
2651
|
"flex items-center justify-start h-11 overflow-hidden",
|
|
2694
2652
|
"border-b border-gray-200 dark:border-neutral-800",
|
|
2695
2653
|
className
|
|
@@ -2706,7 +2664,7 @@ var SideNavFooter = React.forwardRef(
|
|
|
2706
2664
|
"div",
|
|
2707
2665
|
{
|
|
2708
2666
|
ref,
|
|
2709
|
-
className:
|
|
2667
|
+
className: chunkNTUQQDCL_js.cn(
|
|
2710
2668
|
"flex items-center justify-start h-11 overflow-hidden",
|
|
2711
2669
|
"border-t border-gray-200 dark:border-neutral-800",
|
|
2712
2670
|
className
|
|
@@ -2762,9 +2720,8 @@ exports.SideNavSection = SideNavSection;
|
|
|
2762
2720
|
exports.StatDisplay = StatDisplay;
|
|
2763
2721
|
exports.TableRenderer = TableRenderer;
|
|
2764
2722
|
exports.TemplateSelector = TemplateSelector;
|
|
2765
|
-
exports.TextButton = TextButton;
|
|
2766
2723
|
exports.Toast = Toast;
|
|
2767
2724
|
exports.useDashboardContext = useDashboardContext;
|
|
2768
2725
|
exports.useSideNavContext = useSideNavContext;
|
|
2769
|
-
//# sourceMappingURL=chunk-
|
|
2770
|
-
//# sourceMappingURL=chunk-
|
|
2726
|
+
//# sourceMappingURL=chunk-3FXR4PA7.js.map
|
|
2727
|
+
//# sourceMappingURL=chunk-3FXR4PA7.js.map
|