@trinityui/design-system 2.1.4 → 2.2.1

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