@trinityui/design-system 2.1.4 → 2.2.3
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/CHANGELOG.md +301 -1
- package/MIGRATION.md +118 -0
- package/README.md +56 -2
- package/dist/Legend.js +872 -870
- package/dist/app-shell.js +5754 -5824
- package/dist/charts.js +3110 -3075
- package/dist/components/AI/AIActions.d.ts +3 -3
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +1 -1
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +63 -188
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +195 -0
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -0
- package/dist/components/AI/AIChainOfThought.utils.d.ts +20 -0
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -0
- package/dist/components/AI/AIChat.d.ts +5 -5
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIContainer.d.ts +3 -3
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +1 -1
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AILabel.d.ts +1 -1
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +15 -2
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIRelatedQuestions.d.ts +1 -1
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +33 -26
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AISources.d.ts +2 -2
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +2 -2
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +59 -19
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AIVisuals.d.ts +4 -4
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +2 -2
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/ChatHeader.d.ts +1 -1
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +21 -1
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InsightEngine.d.ts +29 -1
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/QueryInput.d.ts +1 -1
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +1 -1
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +1 -1
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/tokens.d.ts +120 -10
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +1 -1
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +3 -2
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +45 -1
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +10 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +57 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +26 -1
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +6 -8
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/CustomTooltip.d.ts +4 -3
- package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts +2 -2
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +7 -1
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +10 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/Cron/Cron.d.ts +1 -1
- package/dist/components/Cron/Cron.d.ts.map +1 -1
- package/dist/components/DataCard/DataCard.d.ts +1 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DiffViewer/DiffViewer.d.ts +1 -1
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/DockLayout/DockLayout.d.ts +1 -1
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +42 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/Footer.d.ts +17 -2
- package/dist/components/Footer.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts +1 -1
- package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +2 -2
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/MentionsInput/MentionsInput.d.ts +2 -2
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/NestedMenu/NestedMenu.d.ts +6 -0
- package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -3
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +23 -5
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +1 -1
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +1 -1
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +7 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +51 -7
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/SplitPane/index.d.ts +1 -1
- package/dist/components/SplitPane/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +14 -2
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +34 -4
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +1 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +1 -1
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/navigation/components.d.ts +5 -5
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/NavBar.styles.d.ts +65 -0
- package/dist/components/shared/NavBar.styles.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +82 -0
- package/dist/components/shared/useResizable.d.ts.map +1 -0
- package/dist/components/shared/warnDeprecated.d.ts +30 -0
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -0
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +1 -1
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/data-table2.js +1383 -1382
- package/dist/data.js +120 -118
- package/dist/essentials.js +95 -93
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +365 -46620
- package/dist/index.d.ts +44 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28110 -27701
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +42 -42
- package/dist/tokens.d.ts +16 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -1
- package/dist/trinity.css +864 -1025
- package/package.json +43 -38
- package/dist/assets/design-system.css +0 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -39
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +0 -1
- package/dist/components/RichTextEditor/index.d.ts +0 -3
- package/dist/components/RichTextEditor/index.d.ts.map +0 -1
package/dist/data.js
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */ e("stop", { offset: "
|
|
2
|
+
import * as M from "react";
|
|
3
|
+
import { useTheme as O, Card as L, CardContent as A, Box as r, Skeleton as T, Typography as c, Tooltip as D, IconButton as F } from "@mui/material";
|
|
4
|
+
import { InfoOutlined as G, MoreVert as U, TrendingFlat as Y, TrendingDown as q, TrendingUp as E } from "@mui/icons-material";
|
|
5
|
+
import { s as p } from "./app-shell.js";
|
|
6
|
+
const H = ({ data: a, color: s, height: o = 40 }) => {
|
|
7
|
+
if (!a || a.length < 2) return null;
|
|
8
|
+
const x = Math.min(...a), u = Math.max(...a) - x || 1, m = 100, l = a.map((y, b) => {
|
|
9
|
+
const S = b / (a.length - 1) * m, i = o - (y - x) / u * o;
|
|
10
|
+
return `${S},${i}`;
|
|
11
|
+
}).join(" "), g = `0,${o} ${l} ${m},${o}`;
|
|
12
|
+
return /* @__PURE__ */ n("svg", { width: "100%", height: o, viewBox: `0 0 ${m} ${o}`, preserveAspectRatio: "none", children: [
|
|
13
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ n("linearGradient", { id: `sparkline-gradient-${s}`, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [
|
|
14
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: s, stopOpacity: 0.3 }),
|
|
15
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: s, stopOpacity: 0 })
|
|
15
16
|
] }) }),
|
|
16
17
|
/* @__PURE__ */ e(
|
|
17
18
|
"polygon",
|
|
18
19
|
{
|
|
19
|
-
points:
|
|
20
|
-
fill: `url(#sparkline-gradient-${
|
|
20
|
+
points: g,
|
|
21
|
+
fill: `url(#sparkline-gradient-${s})`
|
|
21
22
|
}
|
|
22
23
|
),
|
|
23
24
|
/* @__PURE__ */ e(
|
|
24
25
|
"polyline",
|
|
25
26
|
{
|
|
26
|
-
points:
|
|
27
|
+
points: l,
|
|
27
28
|
fill: "none",
|
|
28
|
-
stroke:
|
|
29
|
+
stroke: s,
|
|
29
30
|
strokeWidth: 2,
|
|
30
31
|
strokeLinecap: "round",
|
|
31
32
|
strokeLinejoin: "round"
|
|
32
33
|
}
|
|
33
34
|
)
|
|
34
35
|
] });
|
|
35
|
-
},
|
|
36
|
+
}, J = {
|
|
36
37
|
small: {
|
|
37
|
-
padding:
|
|
38
|
+
padding: p.density.standard.cellPadding,
|
|
38
39
|
titleSize: "caption",
|
|
39
40
|
valueSize: "h5",
|
|
40
41
|
iconSize: 32
|
|
41
42
|
},
|
|
42
43
|
medium: {
|
|
43
|
-
padding:
|
|
44
|
+
padding: p.density.comfortable.cellPadding,
|
|
44
45
|
titleSize: "body2",
|
|
45
46
|
valueSize: "h4",
|
|
46
47
|
iconSize: 40
|
|
47
48
|
},
|
|
48
49
|
large: {
|
|
49
|
-
padding:
|
|
50
|
+
padding: p.inline.relaxed,
|
|
50
51
|
// 20px - relaxed breathing room
|
|
51
52
|
titleSize: "body1",
|
|
52
53
|
valueSize: "h3",
|
|
53
54
|
iconSize: 48
|
|
54
55
|
}
|
|
55
|
-
},
|
|
56
|
-
title:
|
|
57
|
-
value:
|
|
58
|
-
unit:
|
|
59
|
-
trend:
|
|
60
|
-
trendValue:
|
|
61
|
-
trendLabel:
|
|
62
|
-
sparklineData:
|
|
63
|
-
subtitle:
|
|
64
|
-
icon:
|
|
65
|
-
iconColor:
|
|
66
|
-
comparison:
|
|
67
|
-
loading:
|
|
68
|
-
infoTooltip:
|
|
69
|
-
onMoreClick:
|
|
70
|
-
onClick:
|
|
71
|
-
footer:
|
|
72
|
-
size:
|
|
73
|
-
variant:
|
|
74
|
-
fullHeight:
|
|
75
|
-
})
|
|
76
|
-
const t =
|
|
77
|
-
switch (
|
|
56
|
+
}, _ = M.forwardRef(function({
|
|
57
|
+
title: s,
|
|
58
|
+
value: o,
|
|
59
|
+
unit: x,
|
|
60
|
+
trend: h,
|
|
61
|
+
trendValue: u,
|
|
62
|
+
trendLabel: m = "vs last period",
|
|
63
|
+
sparklineData: l,
|
|
64
|
+
subtitle: g,
|
|
65
|
+
icon: y,
|
|
66
|
+
iconColor: b = "primary",
|
|
67
|
+
comparison: S,
|
|
68
|
+
loading: i = !1,
|
|
69
|
+
infoTooltip: z,
|
|
70
|
+
onMoreClick: $,
|
|
71
|
+
onClick: w,
|
|
72
|
+
footer: k,
|
|
73
|
+
size: v = "medium",
|
|
74
|
+
variant: C = "default",
|
|
75
|
+
fullHeight: j = !1
|
|
76
|
+
}, W) {
|
|
77
|
+
const t = O(), f = J[v], I = () => {
|
|
78
|
+
switch (h) {
|
|
78
79
|
case "up":
|
|
79
80
|
return t.palette.success.main;
|
|
80
81
|
case "down":
|
|
@@ -82,27 +83,27 @@ const q = ({ data: r, color: l, height: o = 40 }) => {
|
|
|
82
83
|
default:
|
|
83
84
|
return t.palette.text.secondary;
|
|
84
85
|
}
|
|
85
|
-
},
|
|
86
|
-
switch (
|
|
86
|
+
}, P = () => {
|
|
87
|
+
switch (h) {
|
|
87
88
|
case "up":
|
|
88
|
-
return /* @__PURE__ */ e(
|
|
89
|
+
return /* @__PURE__ */ e(E, { sx: { fontSize: 18 } });
|
|
89
90
|
case "down":
|
|
90
|
-
return /* @__PURE__ */ e(
|
|
91
|
+
return /* @__PURE__ */ e(q, { sx: { fontSize: 18 } });
|
|
91
92
|
default:
|
|
92
|
-
return /* @__PURE__ */ e(
|
|
93
|
+
return /* @__PURE__ */ e(Y, { sx: { fontSize: 18 } });
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
-
const
|
|
95
|
+
}, R = () => {
|
|
96
|
+
const d = t.palette.trinity?.status;
|
|
96
97
|
return {
|
|
97
98
|
primary: t.palette.action.selected,
|
|
98
99
|
// Theme-aware 12%
|
|
99
100
|
secondary: t.palette.action.selected,
|
|
100
|
-
success:
|
|
101
|
-
warning:
|
|
102
|
-
error:
|
|
103
|
-
info:
|
|
104
|
-
}[
|
|
105
|
-
},
|
|
101
|
+
success: d?.success?.background || t.palette.action.selected,
|
|
102
|
+
warning: d?.warning?.background || t.palette.action.selected,
|
|
103
|
+
error: d?.error?.background || t.palette.action.selected,
|
|
104
|
+
info: d?.info?.background || t.palette.action.selected
|
|
105
|
+
}[b] || t.palette.action.selected;
|
|
106
|
+
}, B = {
|
|
106
107
|
default: {},
|
|
107
108
|
outlined: {
|
|
108
109
|
border: `1px solid ${t.palette.divider}`,
|
|
@@ -115,25 +116,26 @@ const q = ({ data: r, color: l, height: o = 40 }) => {
|
|
|
115
116
|
}
|
|
116
117
|
};
|
|
117
118
|
return /* @__PURE__ */ e(
|
|
118
|
-
|
|
119
|
+
L,
|
|
119
120
|
{
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
ref: W,
|
|
122
|
+
elevation: C === "default" ? 1 : 0,
|
|
123
|
+
onClick: w,
|
|
122
124
|
sx: {
|
|
123
|
-
borderRadius:
|
|
125
|
+
borderRadius: p.borders.radiusPx.lg,
|
|
124
126
|
// 12px to match AI StatCard
|
|
125
|
-
height:
|
|
126
|
-
cursor:
|
|
127
|
-
transition: `all ${
|
|
128
|
-
"&:hover":
|
|
127
|
+
height: j ? "100%" : "auto",
|
|
128
|
+
cursor: w ? "pointer" : "default",
|
|
129
|
+
transition: `all ${p.motion.duration.fast} ${p.motion.easing.default}`,
|
|
130
|
+
"&:hover": w ? {
|
|
129
131
|
boxShadow: t.shadows[4],
|
|
130
132
|
transform: "translateY(-2px)"
|
|
131
133
|
} : {},
|
|
132
|
-
...
|
|
134
|
+
...B[C]
|
|
133
135
|
},
|
|
134
|
-
children: /* @__PURE__ */ n(
|
|
136
|
+
children: /* @__PURE__ */ n(A, { sx: { p: `${f.padding}px !important` }, children: [
|
|
135
137
|
/* @__PURE__ */ n(
|
|
136
|
-
|
|
138
|
+
r,
|
|
137
139
|
{
|
|
138
140
|
sx: {
|
|
139
141
|
display: "flex",
|
|
@@ -142,36 +144,36 @@ const q = ({ data: r, color: l, height: o = 40 }) => {
|
|
|
142
144
|
mb: 2
|
|
143
145
|
},
|
|
144
146
|
children: [
|
|
145
|
-
/* @__PURE__ */ n(
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
/* @__PURE__ */ n(r, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
|
|
148
|
+
y && /* @__PURE__ */ e(
|
|
149
|
+
r,
|
|
148
150
|
{
|
|
149
151
|
sx: {
|
|
150
152
|
display: "flex",
|
|
151
153
|
alignItems: "center",
|
|
152
154
|
justifyContent: "center",
|
|
153
|
-
width:
|
|
154
|
-
height:
|
|
155
|
-
borderRadius: `${
|
|
156
|
-
backgroundColor:
|
|
157
|
-
color: t.palette[
|
|
155
|
+
width: f.iconSize,
|
|
156
|
+
height: f.iconSize,
|
|
157
|
+
borderRadius: `${p.borders.radius.iconContainer}px`,
|
|
158
|
+
backgroundColor: R(),
|
|
159
|
+
color: t.palette[b].main
|
|
158
160
|
},
|
|
159
|
-
children:
|
|
161
|
+
children: y
|
|
160
162
|
}
|
|
161
163
|
),
|
|
162
|
-
/* @__PURE__ */ n(
|
|
163
|
-
/* @__PURE__ */ n(
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
/* @__PURE__ */ n(r, { children: [
|
|
165
|
+
/* @__PURE__ */ n(r, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
166
|
+
i ? /* @__PURE__ */ e(T, { width: 80, height: 20 }) : /* @__PURE__ */ e(
|
|
167
|
+
c,
|
|
166
168
|
{
|
|
167
|
-
variant:
|
|
169
|
+
variant: f.titleSize,
|
|
168
170
|
color: "text.secondary",
|
|
169
|
-
fontWeight: 500,
|
|
170
|
-
children:
|
|
171
|
+
sx: { fontWeight: 500 },
|
|
172
|
+
children: s
|
|
171
173
|
}
|
|
172
174
|
),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
z && /* @__PURE__ */ e(D, { title: z, arrow: !0, children: /* @__PURE__ */ e(
|
|
176
|
+
G,
|
|
175
177
|
{
|
|
176
178
|
sx: {
|
|
177
179
|
fontSize: 14,
|
|
@@ -181,58 +183,58 @@ const q = ({ data: r, color: l, height: o = 40 }) => {
|
|
|
181
183
|
}
|
|
182
184
|
) })
|
|
183
185
|
] }),
|
|
184
|
-
|
|
186
|
+
g && !i && /* @__PURE__ */ e(c, { variant: "caption", color: "text.secondary", children: g })
|
|
185
187
|
] })
|
|
186
188
|
] }),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
$ && /* @__PURE__ */ e(
|
|
190
|
+
F,
|
|
189
191
|
{
|
|
190
192
|
size: "small",
|
|
191
|
-
onClick: (
|
|
192
|
-
|
|
193
|
+
onClick: (d) => {
|
|
194
|
+
d.stopPropagation(), $(d);
|
|
193
195
|
},
|
|
194
196
|
sx: { mr: -1, mt: -0.5 },
|
|
195
|
-
children: /* @__PURE__ */ e(
|
|
197
|
+
children: /* @__PURE__ */ e(U, { fontSize: "small" })
|
|
196
198
|
}
|
|
197
199
|
)
|
|
198
200
|
]
|
|
199
201
|
}
|
|
200
202
|
),
|
|
201
|
-
/* @__PURE__ */ e(
|
|
202
|
-
|
|
203
|
+
/* @__PURE__ */ e(r, { sx: { mb: l ? 2 : h ? 1 : 0 }, children: i ? /* @__PURE__ */ e(T, { width: 120, height: 40 }) : /* @__PURE__ */ n(
|
|
204
|
+
c,
|
|
203
205
|
{
|
|
204
|
-
variant:
|
|
205
|
-
fontWeight: 700,
|
|
206
|
+
variant: f.valueSize,
|
|
206
207
|
sx: {
|
|
207
208
|
display: "flex",
|
|
208
209
|
alignItems: "baseline",
|
|
209
|
-
gap: 0.5
|
|
210
|
+
gap: 0.5,
|
|
211
|
+
fontWeight: 700
|
|
210
212
|
},
|
|
211
213
|
children: [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
214
|
+
o,
|
|
215
|
+
x && /* @__PURE__ */ e(
|
|
216
|
+
c,
|
|
215
217
|
{
|
|
216
218
|
component: "span",
|
|
217
219
|
variant: "body2",
|
|
218
220
|
color: "text.secondary",
|
|
219
|
-
fontWeight: 400,
|
|
220
|
-
children:
|
|
221
|
+
sx: { fontWeight: 400 },
|
|
222
|
+
children: x
|
|
221
223
|
}
|
|
222
224
|
)
|
|
223
225
|
]
|
|
224
226
|
}
|
|
225
227
|
) }),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
+
l && l.length > 1 && !i && /* @__PURE__ */ e(r, { sx: { mb: 2, mx: -1 }, children: /* @__PURE__ */ e(
|
|
229
|
+
H,
|
|
228
230
|
{
|
|
229
|
-
data:
|
|
231
|
+
data: l,
|
|
230
232
|
color: I(),
|
|
231
|
-
height:
|
|
233
|
+
height: v === "small" ? 30 : v === "large" ? 50 : 40
|
|
232
234
|
}
|
|
233
235
|
) }),
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
h && !i && /* @__PURE__ */ n(
|
|
237
|
+
r,
|
|
236
238
|
{
|
|
237
239
|
sx: {
|
|
238
240
|
display: "flex",
|
|
@@ -242,7 +244,7 @@ const q = ({ data: r, color: l, height: o = 40 }) => {
|
|
|
242
244
|
},
|
|
243
245
|
children: [
|
|
244
246
|
/* @__PURE__ */ n(
|
|
245
|
-
|
|
247
|
+
r,
|
|
246
248
|
{
|
|
247
249
|
sx: {
|
|
248
250
|
display: "flex",
|
|
@@ -251,25 +253,25 @@ const q = ({ data: r, color: l, height: o = 40 }) => {
|
|
|
251
253
|
color: I()
|
|
252
254
|
},
|
|
253
255
|
children: [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
P(),
|
|
257
|
+
u !== void 0 && /* @__PURE__ */ n(c, { variant: "body2", sx: { fontWeight: 600 }, children: [
|
|
258
|
+
u > 0 ? "+" : "",
|
|
259
|
+
u,
|
|
258
260
|
"%"
|
|
259
261
|
] })
|
|
260
262
|
]
|
|
261
263
|
}
|
|
262
264
|
),
|
|
263
|
-
/* @__PURE__ */ e(
|
|
265
|
+
/* @__PURE__ */ e(c, { variant: "caption", color: "text.secondary", children: m })
|
|
264
266
|
]
|
|
265
267
|
}
|
|
266
268
|
),
|
|
267
|
-
|
|
268
|
-
|
|
269
|
+
S && !i && /* @__PURE__ */ e(c, { variant: "caption", color: "text.secondary", sx: { mt: 1, display: "block" }, children: S }),
|
|
270
|
+
k && /* @__PURE__ */ e(r, { sx: { mt: 2, pt: 2, borderTop: `1px solid ${t.palette.divider}` }, children: k })
|
|
269
271
|
] })
|
|
270
272
|
}
|
|
271
273
|
);
|
|
272
|
-
};
|
|
274
|
+
});
|
|
273
275
|
export {
|
|
274
|
-
|
|
276
|
+
_ as D
|
|
275
277
|
};
|