@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/Legend.js CHANGED
@@ -1,124 +1,125 @@
1
- import { jsxs as f, jsx as e, Fragment as te } from "react/jsx-runtime";
2
- import Z, { useState as O, useCallback as S, useRef as re, createContext as oe, useContext as ne } from "react";
3
- import { useTheme as le, Dialog as ce, DialogTitle as ae, Box as v, Typography as k, IconButton as se, DialogContent as de, DialogContentText as he, DialogActions as ge, Button as B, CircularProgress as fe, Portal as ue, Snackbar as pe, Alert as xe, AlertTitle as ye, Slide as me, Fade as we, Grow as be, Stack as z, Link as G, Badge as ke, Chip as ve } from "@mui/material";
4
- import Se from "@mui/icons-material/Close";
5
- import Le from "@mui/icons-material/CheckCircle";
6
- import Ce from "@mui/icons-material/Error";
7
- import We from "@mui/icons-material/Warning";
8
- import Ie from "@mui/icons-material/Info";
9
- import ze from "@mui/icons-material/HelpOutline";
10
- import { s as L, b as h, I as T } from "./app-shell.js";
11
- function De(t) {
12
- const r = t.palette.trinity;
1
+ import { jsxs as f, jsx as e, Fragment as re } from "react/jsx-runtime";
2
+ import D, { useState as O, useCallback as W, useRef as oe, createContext as ne, useContext as le } from "react";
3
+ import { useTheme as ce, Dialog as ae, DialogTitle as se, Box as C, Typography as S, IconButton as de, DialogContent as he, DialogContentText as ge, DialogActions as fe, Button as T, CircularProgress as ue, Portal as pe, Snackbar as xe, Alert as ye, AlertTitle as me, Slide as we, Fade as be, Grow as ke, Stack as P, Link as U, Badge as ve, Chip as Se } from "@mui/material";
4
+ import Le from "@mui/icons-material/Close";
5
+ import Ce from "@mui/icons-material/CheckCircle";
6
+ import We from "@mui/icons-material/Error";
7
+ import Ie from "@mui/icons-material/Warning";
8
+ import ze from "@mui/icons-material/Info";
9
+ import De from "@mui/icons-material/HelpOutline";
10
+ import { s as I, b as d, I as E } from "./app-shell.js";
11
+ function Me(r) {
12
+ const i = r.palette.trinity;
13
13
  return {
14
14
  default: {
15
15
  icon: null,
16
- color: r.interactive.default,
16
+ color: i.interactive.default,
17
17
  primaryColor: "primary"
18
18
  },
19
19
  info: {
20
- icon: /* @__PURE__ */ e(Ie, {}),
21
- color: r.status.info.text,
20
+ icon: /* @__PURE__ */ e(ze, {}),
21
+ color: i.status.info.text,
22
22
  primaryColor: "info"
23
23
  },
24
24
  success: {
25
- icon: /* @__PURE__ */ e(Le, {}),
26
- color: r.status.success.text,
25
+ icon: /* @__PURE__ */ e(Ce, {}),
26
+ color: i.status.success.text,
27
27
  primaryColor: "success"
28
28
  },
29
29
  warning: {
30
- icon: /* @__PURE__ */ e(We, {}),
31
- color: r.status.warning.text,
30
+ icon: /* @__PURE__ */ e(Ie, {}),
31
+ color: i.status.warning.text,
32
32
  primaryColor: "warning"
33
33
  },
34
34
  danger: {
35
- icon: /* @__PURE__ */ e(Ce, {}),
36
- color: r.status.error.text,
35
+ icon: /* @__PURE__ */ e(We, {}),
36
+ color: i.status.error.text,
37
37
  primaryColor: "error"
38
38
  },
39
39
  confirm: {
40
- icon: /* @__PURE__ */ e(ze, {}),
41
- color: r.interactive.default,
40
+ icon: /* @__PURE__ */ e(De, {}),
41
+ color: i.interactive.default,
42
42
  primaryColor: "primary"
43
43
  }
44
44
  };
45
45
  }
46
- const Me = ({
47
- open: t,
48
- onClose: r,
49
- title: i,
50
- children: o,
51
- variant: c = "default",
46
+ const Pe = D.forwardRef(function({
47
+ open: i,
48
+ onClose: t,
49
+ title: o,
50
+ children: n,
51
+ variant: l = "default",
52
52
  primaryAction: a,
53
- onPrimaryAction: l,
54
- secondaryAction: d = "Cancel",
55
- onSecondaryAction: g,
56
- loading: u = !1,
57
- primaryDisabled: s = !1,
58
- showCloseButton: b = !0,
59
- disableBackdropClick: C = !1,
60
- disableEscapeKeyDown: I = !1,
61
- maxWidth: y = "sm",
62
- fullWidth: D = !0,
63
- fullScreenMobile: M = !1,
53
+ onPrimaryAction: s,
54
+ secondaryAction: g = "Cancel",
55
+ onSecondaryAction: x,
56
+ loading: p = !1,
57
+ primaryDisabled: v = !1,
58
+ showCloseButton: w = !0,
59
+ disableBackdropClick: h = !1,
60
+ disableEscapeKeyDown: L = !1,
61
+ maxWidth: z = "sm",
62
+ fullWidth: m = !0,
63
+ fullScreenMobile: F = !1,
64
64
  footer: Q,
65
- hideFooter: j = !1,
66
- sx: p
67
- }) => {
68
- const x = le(), [m, E] = O(!1), F = De(x)[c], Y = (R, N) => {
69
- N === "backdropClick" && C || N === "escapeKeyDown" && I || r();
70
- }, ee = async () => {
71
- if (l) {
72
- const R = l();
73
- if (R instanceof Promise) {
74
- E(!0);
65
+ hideFooter: u = !1,
66
+ sx: y
67
+ }, b) {
68
+ const j = ce(), [$, _] = O(!1), R = Me(j)[l], ee = (Z, G) => {
69
+ G === "backdropClick" && h || G === "escapeKeyDown" && L || t();
70
+ }, ie = async () => {
71
+ if (s) {
72
+ const Z = s();
73
+ if (Z instanceof Promise) {
74
+ _(!0);
75
75
  try {
76
- await R;
76
+ await Z;
77
77
  } finally {
78
- E(!1);
78
+ _(!1);
79
79
  }
80
80
  }
81
81
  }
82
- }, ie = () => {
83
- g?.(), r();
84
- }, V = u || m, _ = Z.useId(), A = Z.useId();
82
+ }, te = () => {
83
+ x?.(), t();
84
+ }, V = p || $, A = D.useId(), N = D.useId();
85
85
  return /* @__PURE__ */ f(
86
- ce,
86
+ ae,
87
87
  {
88
- open: t,
89
- onClose: Y,
90
- maxWidth: y,
91
- fullWidth: D,
92
- fullScreen: M ? void 0 : !1,
93
- "aria-labelledby": i ? _ : void 0,
94
- "aria-describedby": o ? A : void 0,
88
+ ref: b,
89
+ open: i,
90
+ onClose: ee,
91
+ maxWidth: z,
92
+ fullWidth: m,
93
+ fullScreen: F ? void 0 : !1,
94
+ "aria-labelledby": o ? A : void 0,
95
+ "aria-describedby": n ? N : void 0,
95
96
  sx: {
96
97
  "& .MuiDialog-paper": {
97
- borderRadius: L.borders.radiusPx.lg,
98
+ borderRadius: I.borders.radiusPx.lg,
98
99
  // 12px
99
- ...p
100
+ ...y
100
101
  }
101
102
  },
102
103
  children: [
103
- (i || b) && /* @__PURE__ */ f(
104
- ae,
104
+ (o || w) && /* @__PURE__ */ f(
105
+ se,
105
106
  {
106
- id: _,
107
+ id: A,
107
108
  sx: {
108
109
  display: "flex",
109
110
  alignItems: "center",
110
111
  gap: 1.5,
111
- pr: b ? 6 : 3
112
+ pr: w ? 6 : 3
112
113
  },
113
114
  children: [
114
- F.icon && /* @__PURE__ */ e(
115
- v,
115
+ R.icon && /* @__PURE__ */ e(
116
+ C,
116
117
  {
117
118
  sx: {
118
- width: L.iconSize.display + 4,
119
+ width: I.iconSize.display + 4,
119
120
  // 40px - prominent icon with frame
120
- height: L.iconSize.display + 4,
121
- borderRadius: `${L.borders.radius.circle}px`,
121
+ height: I.iconSize.display + 4,
122
+ borderRadius: `${I.borders.radius.circle}px`,
122
123
  // Perfect circle
123
124
  bgcolor: "action.selected",
124
125
  // Theme-aware 12% overlay
@@ -126,19 +127,19 @@ const Me = ({
126
127
  alignItems: "center",
127
128
  justifyContent: "center",
128
129
  "& .MuiSvgIcon-root": {
129
- color: F.color,
130
- fontSize: L.iconSize.prominent
130
+ color: R.color,
131
+ fontSize: I.iconSize.prominent
131
132
  // 24px
132
133
  }
133
134
  },
134
- children: F.icon
135
+ children: R.icon
135
136
  }
136
137
  ),
137
- /* @__PURE__ */ e(k, { variant: "h6", component: "span", fontWeight: 600, children: i }),
138
- b && /* @__PURE__ */ e(
139
- se,
138
+ /* @__PURE__ */ e(S, { variant: "h6", component: "span", fontWeight: 600, children: o }),
139
+ w && /* @__PURE__ */ e(
140
+ de,
140
141
  {
141
- onClick: r,
142
+ onClick: t,
142
143
  disabled: V,
143
144
  "aria-label": "Close dialog",
144
145
  sx: {
@@ -147,31 +148,31 @@ const Me = ({
147
148
  top: 8,
148
149
  color: "text.secondary"
149
150
  },
150
- children: /* @__PURE__ */ e(Se, {})
151
+ children: /* @__PURE__ */ e(Le, {})
151
152
  }
152
153
  )
153
154
  ]
154
155
  }
155
156
  ),
156
- /* @__PURE__ */ e(de, { id: A, dividers: c === "default", children: typeof o == "string" ? /* @__PURE__ */ e(he, { children: o }) : o }),
157
- !j && /* @__PURE__ */ e(ge, { sx: { px: 3, py: 2 }, children: Q || /* @__PURE__ */ f(te, { children: [
158
- d && /* @__PURE__ */ e(
159
- B,
157
+ /* @__PURE__ */ e(he, { id: N, dividers: l === "default", children: typeof n == "string" ? /* @__PURE__ */ e(ge, { children: n }) : n }),
158
+ !u && /* @__PURE__ */ e(fe, { sx: { px: 3, py: 2 }, children: Q || /* @__PURE__ */ f(re, { children: [
159
+ g && /* @__PURE__ */ e(
160
+ T,
160
161
  {
161
- onClick: ie,
162
+ onClick: te,
162
163
  disabled: V,
163
164
  color: "inherit",
164
- children: d
165
+ children: g
165
166
  }
166
167
  ),
167
168
  a && /* @__PURE__ */ e(
168
- B,
169
+ T,
169
170
  {
170
- onClick: ee,
171
- disabled: s || V,
171
+ onClick: ie,
172
+ disabled: v || V,
172
173
  variant: "contained",
173
- color: F.primaryColor,
174
- startIcon: V ? /* @__PURE__ */ e(fe, { size: 16, color: "inherit" }) : void 0,
174
+ color: R.primaryColor,
175
+ startIcon: V ? /* @__PURE__ */ e(ue, { size: 16, color: "inherit" }) : void 0,
175
176
  children: a
176
177
  }
177
178
  )
@@ -179,31 +180,31 @@ const Me = ({
179
180
  ]
180
181
  }
181
182
  );
182
- }, ki = ({
183
- open: t,
184
- onClose: r,
185
- onConfirm: i,
183
+ }), Si = ({
184
+ open: r,
185
+ onClose: i,
186
+ onConfirm: t,
186
187
  title: o = "Confirm Action",
187
- message: c = "Are you sure you want to proceed?",
188
- confirmLabel: a = "Confirm",
189
- cancelLabel: l = "Cancel",
190
- variant: d = "default",
188
+ message: n = "Are you sure you want to proceed?",
189
+ confirmLabel: l = "Confirm",
190
+ cancelLabel: a = "Cancel",
191
+ variant: s = "default",
191
192
  loading: g = !1
192
193
  }) => /* @__PURE__ */ e(
193
- Me,
194
+ Pe,
194
195
  {
195
- open: t,
196
- onClose: r,
196
+ open: r,
197
+ onClose: i,
197
198
  title: o,
198
- variant: d === "default" ? "confirm" : d,
199
- primaryAction: a,
200
- onPrimaryAction: i,
201
- secondaryAction: l,
199
+ variant: s === "default" ? "confirm" : s,
200
+ primaryAction: l,
201
+ onPrimaryAction: t,
202
+ secondaryAction: a,
202
203
  loading: g,
203
204
  maxWidth: "xs",
204
- children: /* @__PURE__ */ e(k, { color: "text.secondary", children: c })
205
+ children: /* @__PURE__ */ e(S, { color: "text.secondary", children: n })
205
206
  }
206
- ), U = {
207
+ ), H = {
207
208
  isOpen: !1,
208
209
  title: "Confirm Action",
209
210
  message: "Are you sure you want to proceed?",
@@ -211,65 +212,66 @@ const Me = ({
211
212
  confirmLabel: "Confirm",
212
213
  onConfirm: () => {
213
214
  }
214
- }, vi = () => {
215
- const [t, r] = O(U), i = S(
216
- (c) => {
217
- r({
218
- ...U,
219
- ...c,
215
+ }, Li = () => {
216
+ const [r, i] = O(H), t = W(
217
+ (n) => {
218
+ i({
219
+ ...H,
220
+ ...n,
220
221
  isOpen: !0
221
222
  });
222
223
  },
223
224
  []
224
- ), o = S(() => {
225
- r((c) => ({ ...c, isOpen: !1 }));
225
+ ), o = W(() => {
226
+ i((n) => ({ ...n, isOpen: !1 }));
226
227
  }, []);
227
- return { confirm: i, close: o, state: t };
228
- }, q = oe(null), H = (t) => /* @__PURE__ */ e(me, { ...t, direction: "left" }), Pe = (t) => /* @__PURE__ */ e(be, { ...t }), Be = (t) => /* @__PURE__ */ e(we, { ...t }), Te = (t) => {
229
- const [r, i] = t.split("-");
230
- return { vertical: r, horizontal: i };
231
- }, Ee = (t) => {
232
- switch (t) {
228
+ return { confirm: t, close: o, state: r };
229
+ }, J = ne(null), q = (r) => /* @__PURE__ */ e(we, { ...r, direction: "left" }), Be = (r) => /* @__PURE__ */ e(ke, { ...r }), Te = (r) => /* @__PURE__ */ e(be, { ...r }), Ee = (r) => {
230
+ const [i, t] = r.split("-");
231
+ return { vertical: i, horizontal: t };
232
+ }, $e = (r) => {
233
+ switch (r) {
233
234
  case "slide":
234
- return H;
235
+ return q;
235
236
  case "grow":
236
- return Pe;
237
- case "fade":
238
237
  return Be;
238
+ case "fade":
239
+ return Te;
239
240
  default:
240
- return H;
241
+ return q;
241
242
  }
242
- }, $e = ({
243
- id: t,
244
- message: r,
245
- title: i,
246
- severity: o = "info",
247
- duration: c = 5e3,
243
+ }, Re = D.forwardRef(function({
244
+ id: i,
245
+ message: t,
246
+ title: o,
247
+ severity: n = "info",
248
+ duration: l = 5e3,
248
249
  action: a,
249
- onAction: l,
250
- position: d = "top-right",
251
- transition: g = "slide",
252
- dismissible: u = !0,
253
- open: s,
254
- onClose: b
255
- }) => {
256
- const C = Te(d), I = Ee(g);
250
+ onAction: s,
251
+ position: g = "top-right",
252
+ transition: x = "slide",
253
+ dismissible: p = !0,
254
+ open: v,
255
+ onClose: w
256
+ }, h) {
257
+ const L = Ee(g), z = $e(x);
257
258
  return /* @__PURE__ */ e(
258
- pe,
259
+ xe,
259
260
  {
260
- open: s,
261
- autoHideDuration: c,
262
- onClose: b,
263
- anchorOrigin: C,
264
- TransitionComponent: I,
261
+ ref: h,
262
+ open: v,
263
+ autoHideDuration: l,
264
+ onClose: w,
265
+ anchorOrigin: L,
266
+ TransitionComponent: z,
265
267
  children: /* @__PURE__ */ f(
266
- xe,
268
+ ye,
267
269
  {
268
- severity: o,
270
+ severity: n,
269
271
  variant: "filled",
270
- onClose: u ? b : void 0,
271
- action: a ? /* @__PURE__ */ e(B, { color: "inherit", size: "small", onClick: () => {
272
- l?.(), b();
272
+ onClose: p ? w : void 0,
273
+ action: a ? /* @__PURE__ */ e(T, { color: "inherit", size: "small", onClick: () => {
274
+ s?.(), w();
273
275
  }, children: a }) : void 0,
274
276
  sx: {
275
277
  width: "100%",
@@ -281,83 +283,83 @@ const Me = ({
281
283
  }
282
284
  },
283
285
  children: [
284
- i && /* @__PURE__ */ e(ye, { children: i }),
285
- r
286
+ o && /* @__PURE__ */ e(me, { children: o }),
287
+ t
286
288
  ]
287
289
  }
288
290
  )
289
291
  }
290
292
  );
291
- }, Si = ({
292
- children: t,
293
- defaultPosition: r = "top-right",
294
- defaultDuration: i = 5e3,
293
+ }), Ci = ({
294
+ children: r,
295
+ defaultPosition: i = "top-right",
296
+ defaultDuration: t = 5e3,
295
297
  maxToasts: o = 5,
296
- defaultTransition: c = "slide"
298
+ defaultTransition: n = "slide"
297
299
  }) => {
298
- const [a, l] = O([]), d = re(0), g = S(() => (d.current += 1, `toast-${d.current}-${Date.now()}`), []), u = S(
299
- (p) => {
300
- const x = g(), m = {
301
- ...p,
302
- id: x,
300
+ const [l, a] = O([]), s = oe(0), g = W(() => (s.current += 1, `toast-${s.current}-${Date.now()}`), []), x = W(
301
+ (u) => {
302
+ const y = g(), b = {
303
+ ...u,
304
+ id: y,
303
305
  open: !0,
304
- position: p.position ?? r,
305
- duration: p.duration ?? i,
306
- transition: p.transition ?? c,
307
- dismissible: p.dismissible ?? !0
306
+ position: u.position ?? i,
307
+ duration: u.duration ?? t,
308
+ transition: u.transition ?? n,
309
+ dismissible: u.dismissible ?? !0
308
310
  };
309
- return l((E) => {
310
- const $ = [...E, m];
311
+ return a((j) => {
312
+ const $ = [...j, b];
311
313
  return $.length > o ? $.slice(-o) : $;
312
- }), x;
314
+ }), y;
313
315
  },
314
- [g, r, i, c, o]
315
- ), s = S((p) => {
316
- l(
317
- (x) => x.map((m) => m.id === p ? { ...m, open: !1 } : m)
316
+ [g, i, t, n, o]
317
+ ), p = W((u) => {
318
+ a(
319
+ (y) => y.map((b) => b.id === u ? { ...b, open: !1 } : b)
318
320
  ), setTimeout(() => {
319
- l((x) => x.filter((m) => m.id !== p));
321
+ a((y) => y.filter((b) => b.id !== u));
320
322
  }, 300);
321
- }, []), b = S(() => {
322
- l((p) => p.map((x) => ({ ...x, open: !1 }))), setTimeout(() => {
323
- l([]);
323
+ }, []), v = W(() => {
324
+ a((u) => u.map((y) => ({ ...y, open: !1 }))), setTimeout(() => {
325
+ a([]);
324
326
  }, 300);
325
- }, []), C = S(
326
- (p) => u(p),
327
- [u]
328
- ), I = S(
329
- (p, x) => u({ message: p, severity: "success", ...x }),
330
- [u]
331
- ), y = S(
332
- (p, x) => u({ message: p, severity: "info", ...x }),
333
- [u]
334
- ), D = S(
335
- (p, x) => u({ message: p, severity: "warning", ...x }),
336
- [u]
337
- ), M = S(
338
- (p, x) => u({ message: p, severity: "error", ...x }),
339
- [u]
340
- ), Q = {
341
- toast: C,
342
- success: I,
343
- info: y,
344
- warning: D,
345
- error: M,
346
- dismiss: s,
347
- dismissAll: b
348
- }, j = a.reduce((p, x) => {
349
- const m = x.position || r;
350
- return p[m] || (p[m] = []), p[m].push(x), p;
327
+ }, []), w = W(
328
+ (u) => x(u),
329
+ [x]
330
+ ), h = W(
331
+ (u, y) => x({ message: u, severity: "success", ...y }),
332
+ [x]
333
+ ), L = W(
334
+ (u, y) => x({ message: u, severity: "info", ...y }),
335
+ [x]
336
+ ), z = W(
337
+ (u, y) => x({ message: u, severity: "warning", ...y }),
338
+ [x]
339
+ ), m = W(
340
+ (u, y) => x({ message: u, severity: "error", ...y }),
341
+ [x]
342
+ ), F = {
343
+ toast: w,
344
+ success: h,
345
+ info: L,
346
+ warning: z,
347
+ error: m,
348
+ dismiss: p,
349
+ dismissAll: v
350
+ }, Q = l.reduce((u, y) => {
351
+ const b = y.position || i;
352
+ return u[b] || (u[b] = []), u[b].push(y), u;
351
353
  }, {});
352
- return /* @__PURE__ */ f(q.Provider, { value: Q, children: [
353
- t,
354
- /* @__PURE__ */ e(ue, { children: Object.entries(j).map(([p, x]) => /* @__PURE__ */ e(
355
- v,
354
+ return /* @__PURE__ */ f(J.Provider, { value: F, children: [
355
+ r,
356
+ /* @__PURE__ */ e(pe, { children: Object.entries(Q).map(([u, y]) => /* @__PURE__ */ e(
357
+ C,
356
358
  {
357
359
  sx: {
358
360
  position: "fixed",
359
361
  zIndex: 9999,
360
- ...Fe(p),
362
+ ...Ve(u),
361
363
  display: "flex",
362
364
  flexDirection: "column",
363
365
  gap: 1,
@@ -366,20 +368,20 @@ const Me = ({
366
368
  pointerEvents: "auto"
367
369
  }
368
370
  },
369
- children: x.map((m) => /* @__PURE__ */ e($e, { ...m, onClose: () => s(m.id) }, m.id))
371
+ children: y.map((b) => /* @__PURE__ */ e(Re, { ...b, onClose: () => p(b.id) }, b.id))
370
372
  },
371
- p
373
+ u
372
374
  )) })
373
375
  ] });
374
- }, Fe = (t) => {
375
- const r = {};
376
- return t.startsWith("top") && (r.top = 16), t.startsWith("bottom") && (r.bottom = 16), t.endsWith("left") && (r.left = 16), t.endsWith("right") && (r.right = 16), t.endsWith("center") && (r.left = "50%", r.transform = "translateX(-50%)"), r;
377
- }, Li = () => {
378
- const t = ne(q);
379
- if (!t)
376
+ }, Ve = (r) => {
377
+ const i = {};
378
+ return r.startsWith("top") && (i.top = 16), r.startsWith("bottom") && (i.bottom = 16), r.endsWith("left") && (i.left = 16), r.endsWith("right") && (i.right = 16), r.endsWith("center") && (i.left = "50%", i.transform = "translateX(-50%)"), i;
379
+ }, Wi = () => {
380
+ const r = le(J);
381
+ if (!r)
380
382
  throw new Error("useToast must be used within a ToastProvider");
381
- return t;
382
- }, w = {
383
+ return r;
384
+ }, k = {
383
385
  // Error/danger - Tailwind red-500
384
386
  error: {
385
387
  main: "#EF4444",
@@ -399,7 +401,7 @@ const Me = ({
399
401
  accent: {
400
402
  flame: "#FFD93D"
401
403
  }
402
- }, J = {
404
+ }, K = {
403
405
  small: {
404
406
  illustrationSize: 120,
405
407
  titleVariant: "subtitle1",
@@ -421,431 +423,428 @@ const Me = ({
421
423
  spacing: 4,
422
424
  padding: 6
423
425
  }
424
- }, Ve = ({
425
- size: t = 180,
426
- primaryColor: r = h.primary.main,
427
- secondaryColor: i = h.neutral.gray100,
428
- accentColor: o = h.secondary.main
429
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
430
- /* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: i }),
431
- /* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: r, opacity: "0.2" }),
432
- /* @__PURE__ */ e("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: i, opacity: "0.8" }),
433
- /* @__PURE__ */ e("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: i, opacity: "0.6" }),
434
- /* @__PURE__ */ e("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: i, opacity: "0.8" }),
435
- /* @__PURE__ */ e("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: i, opacity: "0.6" }),
436
- /* @__PURE__ */ e("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: i, opacity: "0.8" }),
437
- /* @__PURE__ */ e("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: i, opacity: "0.6" }),
438
- /* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "35", fill: "white", stroke: r, strokeWidth: "3", strokeDasharray: "6 4" }),
439
- /* @__PURE__ */ e("text", { x: "100", y: "122", textAnchor: "middle", fill: r, fontSize: "32", fontWeight: "300", children: "?" })
426
+ }, Fe = ({
427
+ size: r = 180,
428
+ primaryColor: i = d.primary.main,
429
+ secondaryColor: t = d.neutral.gray100,
430
+ accentColor: o = d.secondary.main
431
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
432
+ /* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: t }),
433
+ /* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: i, opacity: "0.2" }),
434
+ /* @__PURE__ */ e("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: t, opacity: "0.8" }),
435
+ /* @__PURE__ */ e("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: t, opacity: "0.6" }),
436
+ /* @__PURE__ */ e("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.8" }),
437
+ /* @__PURE__ */ e("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.6" }),
438
+ /* @__PURE__ */ e("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: t, opacity: "0.8" }),
439
+ /* @__PURE__ */ e("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: t, opacity: "0.6" }),
440
+ /* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "35", fill: "white", stroke: i, strokeWidth: "3", strokeDasharray: "6 4" }),
441
+ /* @__PURE__ */ e("text", { x: "100", y: "122", textAnchor: "middle", fill: i, fontSize: "32", fontWeight: "300", children: "?" })
440
442
  ] }), Qe = ({
441
- size: t = 180,
442
- primaryColor: r = h.primary.main,
443
- secondaryColor: i = h.neutral.gray100,
444
- accentColor: o = h.secondary.main
445
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
446
- /* @__PURE__ */ e("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: i, transform: "rotate(-5 50 50)" }),
447
- /* @__PURE__ */ e("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: "white", stroke: i, strokeWidth: "2" }),
448
- /* @__PURE__ */ e("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: i }),
449
- /* @__PURE__ */ e("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: i, opacity: "0.6" }),
450
- /* @__PURE__ */ e("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: i, opacity: "0.4" }),
443
+ size: r = 180,
444
+ primaryColor: i = d.primary.main,
445
+ secondaryColor: t = d.neutral.gray100,
446
+ accentColor: o = d.secondary.main
447
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
448
+ /* @__PURE__ */ e("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: t, transform: "rotate(-5 50 50)" }),
449
+ /* @__PURE__ */ e("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: "white", stroke: t, strokeWidth: "2" }),
450
+ /* @__PURE__ */ e("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: t }),
451
+ /* @__PURE__ */ e("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: t, opacity: "0.6" }),
452
+ /* @__PURE__ */ e("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: t, opacity: "0.4" }),
451
453
  /* @__PURE__ */ f("g", { transform: "translate(120, 100) rotate(45)", children: [
452
454
  /* @__PURE__ */ e("rect", { x: "0", y: "0", width: "50", height: "10", fill: o }),
453
455
  /* @__PURE__ */ e("polygon", { points: "50,0 60,5 50,10", fill: o, opacity: "0.7" }),
454
- /* @__PURE__ */ e("rect", { x: "-5", y: "2", width: "5", height: "6", fill: r })
456
+ /* @__PURE__ */ e("rect", { x: "-5", y: "2", width: "5", height: "6", fill: i })
455
457
  ] })
456
458
  ] }), je = ({
457
- size: t = 180,
458
- primaryColor: r = h.primary.main,
459
- secondaryColor: i = h.neutral.gray100,
460
- accentColor: o = h.secondary.main
461
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
462
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: r }),
459
+ size: r = 180,
460
+ primaryColor: i = d.primary.main,
461
+ secondaryColor: t = d.neutral.gray100,
462
+ accentColor: o = d.secondary.main
463
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
464
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: i }),
463
465
  /* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "12", fill: "white" }),
464
466
  /* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "8", fill: o, opacity: "0.3" }),
465
467
  /* @__PURE__ */ e("path", { d: "M70 120 L50 150 L70 140 Z", fill: o }),
466
468
  /* @__PURE__ */ e("path", { d: "M130 120 L150 150 L130 140 Z", fill: o }),
467
469
  /* @__PURE__ */ e("ellipse", { cx: "100", cy: "160", rx: "15", ry: "25", fill: o, opacity: "0.8" }),
468
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: w.accent.flame }),
470
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: k.accent.flame }),
469
471
  /* @__PURE__ */ e("ellipse", { cx: "100", cy: "150", rx: "5", ry: "10", fill: "white" }),
470
- /* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "3", fill: r, opacity: "0.5" }),
471
- /* @__PURE__ */ e("circle", { cx: "160", cy: "40", r: "2", fill: r, opacity: "0.5" }),
472
+ /* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "3", fill: i, opacity: "0.5" }),
473
+ /* @__PURE__ */ e("circle", { cx: "160", cy: "40", r: "2", fill: i, opacity: "0.5" }),
472
474
  /* @__PURE__ */ e("circle", { cx: "30", cy: "120", r: "2", fill: o, opacity: "0.5" }),
473
475
  /* @__PURE__ */ e("circle", { cx: "170", cy: "100", r: "3", fill: o, opacity: "0.5" })
474
- ] }), Re = ({
475
- size: t = 180,
476
- primaryColor: r = h.primary.main,
477
- secondaryColor: i = h.neutral.gray100
478
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
479
- /* @__PURE__ */ e("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: i }),
480
- /* @__PURE__ */ e("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: "white", stroke: i, strokeWidth: "2" }),
481
- /* @__PURE__ */ e("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: "white", stroke: r, strokeWidth: "2" }),
482
- /* @__PURE__ */ e("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: i }),
483
- /* @__PURE__ */ e("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: i, opacity: "0.6" }),
484
- /* @__PURE__ */ e("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: i, opacity: "0.4" }),
485
- /* @__PURE__ */ e("circle", { cx: "140", cy: "130", r: "20", fill: r }),
476
+ ] }), Ze = ({
477
+ size: r = 180,
478
+ primaryColor: i = d.primary.main,
479
+ secondaryColor: t = d.neutral.gray100
480
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
481
+ /* @__PURE__ */ e("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: t }),
482
+ /* @__PURE__ */ e("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: "white", stroke: t, strokeWidth: "2" }),
483
+ /* @__PURE__ */ e("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
484
+ /* @__PURE__ */ e("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: t }),
485
+ /* @__PURE__ */ e("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: t, opacity: "0.6" }),
486
+ /* @__PURE__ */ e("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: t, opacity: "0.4" }),
487
+ /* @__PURE__ */ e("circle", { cx: "140", cy: "130", r: "20", fill: i }),
486
488
  /* @__PURE__ */ e("rect", { x: "132", y: "127", width: "16", height: "6", rx: "3", fill: "white" }),
487
489
  /* @__PURE__ */ e("rect", { x: "137", y: "122", width: "6", height: "16", rx: "3", fill: "white" })
488
- ] }), Ze = ({
489
- size: t = 180,
490
- primaryColor: r = h.primary.main,
491
- secondaryColor: i = h.neutral.gray100,
492
- accentColor: o = h.secondary.main
493
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
494
- /* @__PURE__ */ e("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: "white", stroke: i, strokeWidth: "2" }),
495
- /* @__PURE__ */ e("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: i, strokeWidth: "1", strokeDasharray: "4" }),
496
- /* @__PURE__ */ e("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: i, strokeWidth: "1", strokeDasharray: "4" }),
497
- /* @__PURE__ */ e("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: i, opacity: "0.5" }),
498
- /* @__PURE__ */ e("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: i, opacity: "0.5" }),
499
- /* @__PURE__ */ e("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: i, opacity: "0.5" }),
490
+ ] }), Oe = ({
491
+ size: r = 180,
492
+ primaryColor: i = d.primary.main,
493
+ secondaryColor: t = d.neutral.gray100,
494
+ accentColor: o = d.secondary.main
495
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
496
+ /* @__PURE__ */ e("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: "white", stroke: t, strokeWidth: "2" }),
497
+ /* @__PURE__ */ e("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
498
+ /* @__PURE__ */ e("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
499
+ /* @__PURE__ */ e("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: t, opacity: "0.5" }),
500
+ /* @__PURE__ */ e("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: t, opacity: "0.5" }),
501
+ /* @__PURE__ */ e("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: t, opacity: "0.5" }),
500
502
  /* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "25", fill: o, opacity: "0.2" }),
501
503
  /* @__PURE__ */ e("path", { d: "M160 45 L160 55 M148 52 L155 58 M172 52 L165 58", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
502
504
  /* @__PURE__ */ e("circle", { cx: "160", cy: "65", r: "10", fill: o }),
503
- /* @__PURE__ */ e("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: r })
504
- ] }), Oe = ({
505
- size: t = 180,
506
- primaryColor: r = h.primary.main,
507
- secondaryColor: i = h.neutral.gray100
508
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
509
- /* @__PURE__ */ e("circle", { cx: "85", cy: "85", r: "45", fill: "white", stroke: r, strokeWidth: "4" }),
510
- /* @__PURE__ */ e("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: r, strokeWidth: "8", strokeLinecap: "round" }),
511
- /* @__PURE__ */ e("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: i, strokeWidth: "6", strokeLinecap: "round" }),
512
- /* @__PURE__ */ e("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: i, strokeWidth: "6", strokeLinecap: "round" }),
513
- /* @__PURE__ */ e("text", { x: "155", y: "50", fill: i, fontSize: "20", fontWeight: "bold", children: "?" }),
514
- /* @__PURE__ */ e("text", { x: "40", y: "160", fill: i, fontSize: "16", fontWeight: "bold", children: "?" })
505
+ /* @__PURE__ */ e("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: i })
515
506
  ] }), _e = ({
516
- size: t = 180,
517
- primaryColor: r = h.primary.main,
518
- secondaryColor: i = h.neutral.gray100
519
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
520
- /* @__PURE__ */ e("path", { d: "M100 30 L170 150 L30 150 Z", fill: w.warning.light, stroke: w.warning.main, strokeWidth: "3" }),
521
- /* @__PURE__ */ e("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: w.warning.main }),
522
- /* @__PURE__ */ e("circle", { cx: "100", cy: "130", r: "7", fill: w.warning.main }),
523
- /* @__PURE__ */ e("circle", { cx: "30", cy: "60", r: "8", fill: i, opacity: "0.5" }),
524
- /* @__PURE__ */ e("circle", { cx: "170", cy: "80", r: "6", fill: i, opacity: "0.5" }),
525
- /* @__PURE__ */ e("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: i, opacity: "0.3" }),
526
- /* @__PURE__ */ e("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: i, opacity: "0.3" })
507
+ size: r = 180,
508
+ primaryColor: i = d.primary.main,
509
+ secondaryColor: t = d.neutral.gray100
510
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
511
+ /* @__PURE__ */ e("circle", { cx: "85", cy: "85", r: "45", fill: "white", stroke: i, strokeWidth: "4" }),
512
+ /* @__PURE__ */ e("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: i, strokeWidth: "8", strokeLinecap: "round" }),
513
+ /* @__PURE__ */ e("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
514
+ /* @__PURE__ */ e("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
515
+ /* @__PURE__ */ e("text", { x: "155", y: "50", fill: t, fontSize: "20", fontWeight: "bold", children: "?" }),
516
+ /* @__PURE__ */ e("text", { x: "40", y: "160", fill: t, fontSize: "16", fontWeight: "bold", children: "?" })
527
517
  ] }), Ae = ({
528
- size: t = 180,
529
- primaryColor: r = h.primary.main,
530
- secondaryColor: i = h.neutral.gray100,
531
- accentColor: o = h.secondary.main
532
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
533
- /* @__PURE__ */ e("text", { x: "100", y: "100", textAnchor: "middle", fill: r, fontSize: "48", fontWeight: "bold", children: "404" }),
534
- /* @__PURE__ */ e("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: i, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
535
- /* @__PURE__ */ e("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: i, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
518
+ size: r = 180,
519
+ primaryColor: i = d.primary.main,
520
+ secondaryColor: t = d.neutral.gray100
521
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
522
+ /* @__PURE__ */ e("path", { d: "M100 30 L170 150 L30 150 Z", fill: k.warning.light, stroke: k.warning.main, strokeWidth: "3" }),
523
+ /* @__PURE__ */ e("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: k.warning.main }),
524
+ /* @__PURE__ */ e("circle", { cx: "100", cy: "130", r: "7", fill: k.warning.main }),
525
+ /* @__PURE__ */ e("circle", { cx: "30", cy: "60", r: "8", fill: t, opacity: "0.5" }),
526
+ /* @__PURE__ */ e("circle", { cx: "170", cy: "80", r: "6", fill: t, opacity: "0.5" }),
527
+ /* @__PURE__ */ e("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: t, opacity: "0.3" }),
528
+ /* @__PURE__ */ e("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: t, opacity: "0.3" })
529
+ ] }), Ne = ({
530
+ size: r = 180,
531
+ primaryColor: i = d.primary.main,
532
+ secondaryColor: t = d.neutral.gray100,
533
+ accentColor: o = d.secondary.main
534
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
535
+ /* @__PURE__ */ e("text", { x: "100", y: "100", textAnchor: "middle", fill: i, fontSize: "48", fontWeight: "bold", children: "404" }),
536
+ /* @__PURE__ */ e("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
537
+ /* @__PURE__ */ e("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
536
538
  /* @__PURE__ */ e("line", { x1: "85", y1: "150", x2: "95", y2: "140", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
537
539
  /* @__PURE__ */ e("line", { x1: "105", y1: "160", x2: "115", y2: "150", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
538
- /* @__PURE__ */ e("circle", { cx: "75", cy: "60", r: "5", fill: r }),
539
- /* @__PURE__ */ e("circle", { cx: "125", cy: "60", r: "5", fill: r }),
540
- /* @__PURE__ */ e("path", { d: "M80 75 Q100 65 120 75", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
541
- ] }), Ne = ({
542
- size: t = 180,
543
- primaryColor: r = h.primary.main,
544
- secondaryColor: i = h.neutral.gray100,
545
- accentColor: o = h.secondary.main
546
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
547
- /* @__PURE__ */ e("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: i }),
540
+ /* @__PURE__ */ e("circle", { cx: "75", cy: "60", r: "5", fill: i }),
541
+ /* @__PURE__ */ e("circle", { cx: "125", cy: "60", r: "5", fill: i }),
542
+ /* @__PURE__ */ e("path", { d: "M80 75 Q100 65 120 75", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
543
+ ] }), Ge = ({
544
+ size: r = 180,
545
+ primaryColor: i = d.primary.main,
546
+ secondaryColor: t = d.neutral.gray100,
547
+ accentColor: o = d.secondary.main
548
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
549
+ /* @__PURE__ */ e("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: t }),
548
550
  /* @__PURE__ */ e("rect", { x: "70", y: "50", width: "60", height: "25", rx: "4", fill: "white" }),
549
551
  /* @__PURE__ */ e("rect", { x: "70", y: "85", width: "60", height: "25", rx: "4", fill: "white" }),
550
552
  /* @__PURE__ */ e("rect", { x: "70", y: "120", width: "60", height: "25", rx: "4", fill: "white" }),
551
- /* @__PURE__ */ e("circle", { cx: "80", cy: "62", r: "4", fill: w.error.main }),
552
- /* @__PURE__ */ e("circle", { cx: "92", cy: "62", r: "4", fill: w.error.main }),
553
- /* @__PURE__ */ e("circle", { cx: "80", cy: "97", r: "4", fill: w.error.main }),
553
+ /* @__PURE__ */ e("circle", { cx: "80", cy: "62", r: "4", fill: k.error.main }),
554
+ /* @__PURE__ */ e("circle", { cx: "92", cy: "62", r: "4", fill: k.error.main }),
555
+ /* @__PURE__ */ e("circle", { cx: "80", cy: "97", r: "4", fill: k.error.main }),
554
556
  /* @__PURE__ */ e("circle", { cx: "92", cy: "97", r: "4", fill: o, opacity: "0.5" }),
555
557
  /* @__PURE__ */ e("circle", { cx: "80", cy: "132", r: "4", fill: o, opacity: "0.5" }),
556
558
  /* @__PURE__ */ e("circle", { cx: "92", cy: "132", r: "4", fill: o, opacity: "0.5" }),
557
559
  /* @__PURE__ */ e("path", { d: "M150 50 L135 90 L150 90 L130 130 L155 80 L140 80 Z", fill: o }),
558
560
  /* @__PURE__ */ f("g", { transform: "translate(40, 70)", children: [
559
- /* @__PURE__ */ e("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: w.error.main, strokeWidth: "3", strokeLinecap: "round" }),
560
- /* @__PURE__ */ e("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: w.error.main, strokeWidth: "3", strokeLinecap: "round" })
561
+ /* @__PURE__ */ e("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" }),
562
+ /* @__PURE__ */ e("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" })
561
563
  ] })
562
- ] }), Ge = ({
563
- size: t = 180,
564
- primaryColor: r = h.primary.main,
565
- secondaryColor: i = h.neutral.gray100,
566
- accentColor: o = h.secondary.main
567
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
568
- /* @__PURE__ */ e("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: r }),
569
- /* @__PURE__ */ e("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: r, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
564
+ ] }), Ue = ({
565
+ size: r = 180,
566
+ primaryColor: i = d.primary.main,
567
+ secondaryColor: t = d.neutral.gray100,
568
+ accentColor: o = d.secondary.main
569
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
570
+ /* @__PURE__ */ e("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: i }),
571
+ /* @__PURE__ */ e("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: i, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
570
572
  /* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "12", fill: "white" }),
571
573
  /* @__PURE__ */ e("rect", { x: "95", y: "115", width: "10", height: "20", rx: "3", fill: "white" }),
572
574
  /* @__PURE__ */ e("path", { d: "M100 25 L140 45 L140 85 Q140 115 100 135 Q60 115 60 85 L60 45 Z", fill: o, opacity: "0.15" }),
573
- /* @__PURE__ */ e("circle", { cx: "155", cy: "65", r: "20", fill: w.error.light, stroke: w.error.main, strokeWidth: "2" }),
574
- /* @__PURE__ */ e("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: w.error.main })
575
- ] }), K = ({
576
- size: t = 180,
577
- primaryColor: r = h.primary.main,
578
- secondaryColor: i = h.neutral.gray100,
579
- accentColor: o = h.secondary.main
580
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
581
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: i }),
582
- /* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: i }),
583
- /* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: i }),
584
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: i }),
585
- /* @__PURE__ */ e("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: r }),
586
- /* @__PURE__ */ e("polygon", { points: "100,85 75,120 125,120", fill: r }),
575
+ /* @__PURE__ */ e("circle", { cx: "155", cy: "65", r: "20", fill: k.error.light, stroke: k.error.main, strokeWidth: "2" }),
576
+ /* @__PURE__ */ e("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: k.error.main })
577
+ ] }), X = ({
578
+ size: r = 180,
579
+ primaryColor: i = d.primary.main,
580
+ secondaryColor: t = d.neutral.gray100,
581
+ accentColor: o = d.secondary.main
582
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
583
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: t }),
584
+ /* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: t }),
585
+ /* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: t }),
586
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: t }),
587
+ /* @__PURE__ */ e("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: i }),
588
+ /* @__PURE__ */ e("polygon", { points: "100,85 75,120 125,120", fill: i }),
587
589
  /* @__PURE__ */ e("rect", { x: "30", y: "140", width: "140", height: "50", rx: "8", fill: "white", stroke: o, strokeWidth: "2", strokeDasharray: "8 4" }),
588
- /* @__PURE__ */ e("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: "white", stroke: r, strokeWidth: "2" }),
589
- /* @__PURE__ */ e("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: r, opacity: "0.2" })
590
- ] }), Ue = ({
591
- size: t = 180,
592
- primaryColor: r = h.primary.main,
593
- secondaryColor: i = h.neutral.gray100,
594
- accentColor: o = h.secondary.main
595
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
596
- /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70", fill: w.success.light }),
597
- /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "55", fill: w.success.main }),
590
+ /* @__PURE__ */ e("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
591
+ /* @__PURE__ */ e("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: i, opacity: "0.2" })
592
+ ] }), He = ({
593
+ size: r = 180,
594
+ primaryColor: i = d.primary.main,
595
+ secondaryColor: t = d.neutral.gray100,
596
+ accentColor: o = d.secondary.main
597
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
598
+ /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70", fill: k.success.light }),
599
+ /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "55", fill: k.success.main }),
598
600
  /* @__PURE__ */ e("path", { d: "M65 100 L90 125 L135 75", stroke: "white", strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
599
601
  /* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "6", fill: o, opacity: "0.6" }),
600
602
  /* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "4", fill: o, opacity: "0.6" }),
601
- /* @__PURE__ */ e("circle", { cx: "170", cy: "130", r: "5", fill: r, opacity: "0.4" }),
602
- /* @__PURE__ */ e("circle", { cx: "30", cy: "140", r: "4", fill: r, opacity: "0.4" }),
603
+ /* @__PURE__ */ e("circle", { cx: "170", cy: "130", r: "5", fill: i, opacity: "0.4" }),
604
+ /* @__PURE__ */ e("circle", { cx: "30", cy: "140", r: "4", fill: i, opacity: "0.4" }),
603
605
  /* @__PURE__ */ e("path", { d: "M45 170 L50 180 L55 170 L60 180", stroke: o, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" }),
604
- /* @__PURE__ */ e("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: r, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
605
- ] }), He = ({
606
- size: t = 180,
607
- primaryColor: r = h.primary.main,
608
- secondaryColor: i = h.neutral.gray100
609
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
610
- /* @__PURE__ */ e("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: i }),
611
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: i }),
612
- /* @__PURE__ */ e("circle", { cx: "100", cy: "145", r: "12", fill: i }),
613
- /* @__PURE__ */ e("path", { d: "M100 40 L100 25", stroke: r, strokeWidth: "4", strokeLinecap: "round" }),
614
- /* @__PURE__ */ e("text", { x: "145", y: "60", fill: r, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
615
- /* @__PURE__ */ e("text", { x: "155", y: "45", fill: r, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
616
- /* @__PURE__ */ e("text", { x: "165", y: "35", fill: r, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
606
+ /* @__PURE__ */ e("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: i, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
617
607
  ] }), qe = ({
618
- size: t = 180,
619
- primaryColor: r = h.primary.main,
620
- secondaryColor: i = h.neutral.gray100
621
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
622
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: i }),
623
- /* @__PURE__ */ e("rect", { x: "50", y: "60", width: "100", height: "80", fill: i }),
624
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: i }),
625
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: "white", stroke: r, strokeWidth: "2" }),
626
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: "white", stroke: r, strokeWidth: "2" }),
627
- /* @__PURE__ */ e("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: r, strokeWidth: "2" }),
628
- /* @__PURE__ */ e("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: r, strokeWidth: "2" }),
629
- /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "25", fill: "white", stroke: r, strokeWidth: "2", strokeDasharray: "5 3" }),
630
- /* @__PURE__ */ e("text", { x: "100", y: "108", textAnchor: "middle", fill: r, fontSize: "24", fontWeight: "300", children: "0" })
608
+ size: r = 180,
609
+ primaryColor: i = d.primary.main,
610
+ secondaryColor: t = d.neutral.gray100
611
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
612
+ /* @__PURE__ */ e("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: t }),
613
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: t }),
614
+ /* @__PURE__ */ e("circle", { cx: "100", cy: "145", r: "12", fill: t }),
615
+ /* @__PURE__ */ e("path", { d: "M100 40 L100 25", stroke: i, strokeWidth: "4", strokeLinecap: "round" }),
616
+ /* @__PURE__ */ e("text", { x: "145", y: "60", fill: i, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
617
+ /* @__PURE__ */ e("text", { x: "155", y: "45", fill: i, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
618
+ /* @__PURE__ */ e("text", { x: "165", y: "35", fill: i, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
631
619
  ] }), Je = ({
632
- size: t = 180,
633
- primaryColor: r = h.primary.main,
634
- secondaryColor: i = h.neutral.gray100
635
- }) => /* @__PURE__ */ f("svg", { width: t, height: t, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
636
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: i }),
637
- /* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: i }),
638
- /* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: i }),
639
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: i }),
640
- /* @__PURE__ */ e("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: w.error.main, strokeWidth: "8", strokeLinecap: "round" }),
641
- /* @__PURE__ */ e("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: w.error.main, strokeWidth: "8", strokeLinecap: "round" }),
642
- /* @__PURE__ */ e("path", { d: "M45 140 Q45 160 65 160", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
643
- /* @__PURE__ */ e("path", { d: "M35 145 Q35 170 65 170", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
644
- /* @__PURE__ */ e("path", { d: "M155 140 Q155 160 135 160", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
645
- /* @__PURE__ */ e("path", { d: "M165 145 Q165 170 135 170", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
646
- ] }), Ke = {
647
- "empty-table": Ve,
620
+ size: r = 180,
621
+ primaryColor: i = d.primary.main,
622
+ secondaryColor: t = d.neutral.gray100
623
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
624
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: t }),
625
+ /* @__PURE__ */ e("rect", { x: "50", y: "60", width: "100", height: "80", fill: t }),
626
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: t }),
627
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
628
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
629
+ /* @__PURE__ */ e("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: i, strokeWidth: "2" }),
630
+ /* @__PURE__ */ e("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: i, strokeWidth: "2" }),
631
+ /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "25", fill: "white", stroke: i, strokeWidth: "2", strokeDasharray: "5 3" }),
632
+ /* @__PURE__ */ e("text", { x: "100", y: "108", textAnchor: "middle", fill: i, fontSize: "24", fontWeight: "300", children: "0" })
633
+ ] }), Ke = ({
634
+ size: r = 180,
635
+ primaryColor: i = d.primary.main,
636
+ secondaryColor: t = d.neutral.gray100
637
+ }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
638
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: t }),
639
+ /* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: t }),
640
+ /* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: t }),
641
+ /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: t }),
642
+ /* @__PURE__ */ e("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
643
+ /* @__PURE__ */ e("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
644
+ /* @__PURE__ */ e("path", { d: "M45 140 Q45 160 65 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
645
+ /* @__PURE__ */ e("path", { d: "M35 145 Q35 170 65 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
646
+ /* @__PURE__ */ e("path", { d: "M155 140 Q155 160 135 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
647
+ /* @__PURE__ */ e("path", { d: "M165 145 Q165 170 135 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
648
+ ] }), Xe = {
649
+ "empty-table": Fe,
648
650
  "empty-drafts": Qe,
649
651
  "getting-started": je,
650
- "empty-documents": Re,
651
- "empty-insights": Ze,
652
- "no-results": Oe,
653
- "error-generic": _e,
654
- "error-404": Ae,
655
- "error-500": Ne,
656
- "error-permission": Ge,
657
- upload: K,
658
- success: Ue,
659
- "no-notifications": He,
660
- "no-data": qe,
661
- offline: Je
662
- }, Ci = ({
663
- illustration: t,
664
- title: r,
665
- description: i,
666
- primaryAction: o,
667
- secondaryAction: c,
668
- size: a = "medium",
669
- customIllustration: l,
670
- sx: d
671
- }) => {
672
- const g = J[a], u = Ke[t];
673
- return /* @__PURE__ */ f(
674
- v,
675
- {
676
- sx: {
677
- textAlign: "center",
678
- p: g.padding,
679
- maxWidth: a === "small" ? 300 : a === "large" ? 500 : 400,
680
- mx: "auto",
681
- ...d
682
- },
683
- children: [
684
- /* @__PURE__ */ e(
685
- v,
686
- {
687
- sx: {
688
- mb: g.spacing,
689
- display: "flex",
690
- justifyContent: "center",
691
- alignItems: "center"
692
- },
693
- role: "img",
694
- "aria-hidden": "true",
695
- children: l || /* @__PURE__ */ e(u, { size: g.illustrationSize })
696
- }
697
- ),
698
- /* @__PURE__ */ e(
699
- k,
700
- {
701
- variant: g.titleVariant,
702
- sx: { mb: 1, fontWeight: 600 },
703
- children: r
704
- }
705
- ),
706
- i && /* @__PURE__ */ e(
707
- k,
708
- {
709
- variant: g.descriptionVariant,
710
- color: "text.secondary",
711
- sx: { mb: g.spacing },
712
- children: i
713
- }
714
- ),
715
- (o || c) && /* @__PURE__ */ f(
716
- z,
717
- {
718
- spacing: 1.5,
719
- alignItems: "center",
720
- sx: { mt: g.spacing },
721
- children: [
722
- o && (o.href ? /* @__PURE__ */ e(
723
- B,
724
- {
725
- variant: "contained",
726
- href: o.href,
727
- onClick: o.onClick,
728
- children: o.label
729
- }
730
- ) : /* @__PURE__ */ e(
731
- B,
732
- {
733
- variant: "contained",
734
- onClick: o.onClick,
735
- children: o.label
736
- }
737
- )),
738
- c && (c.href ? /* @__PURE__ */ e(
739
- G,
740
- {
741
- href: c.href,
742
- onClick: c.onClick,
743
- underline: "hover",
744
- sx: { cursor: "pointer" },
745
- children: c.label
746
- }
747
- ) : /* @__PURE__ */ e(
748
- G,
749
- {
750
- component: "button",
751
- onClick: c.onClick,
752
- underline: "hover",
753
- sx: { cursor: "pointer" },
754
- children: c.label
755
- }
756
- ))
757
- ]
758
- }
759
- )
760
- ]
761
- }
762
- );
763
- }, Wi = ({
764
- title: t = "Drag and drop your file",
765
- description: r = "or click to browse from your computer",
766
- acceptedTypes: i = "PNG, JPG, PDF up to 10MB",
767
- browseLabel: o = "Browse Files",
768
- onDrop: c,
769
- onBrowse: a,
770
- isDragging: l = !1,
771
- size: d = "medium",
772
- sx: g
773
- }) => {
774
- const [u, s] = Z.useState(l), b = J[d], C = (y) => {
775
- y.preventDefault(), y.stopPropagation(), y.type === "dragenter" || y.type === "dragover" ? s(!0) : y.type === "dragleave" && s(!1);
776
- };
777
- return /* @__PURE__ */ f(
778
- v,
779
- {
780
- onDragEnter: C,
781
- onDragLeave: C,
782
- onDragOver: C,
783
- onDrop: (y) => {
784
- y.preventDefault(), y.stopPropagation(), s(!1), y.dataTransfer.files && y.dataTransfer.files.length > 0 && c?.(y.dataTransfer.files);
785
- },
786
- sx: {
787
- p: b.padding,
788
- border: "2px dashed",
789
- borderColor: u ? "primary.main" : "grey.300",
790
- borderRadius: 3,
791
- // 12px - consistent with cards
792
- bgcolor: u ? "primary.50" : "grey.50",
793
- textAlign: "center",
794
- cursor: "pointer",
795
- transition: "all 0.2s ease",
796
- "&:hover": {
797
- borderColor: "primary.main",
798
- bgcolor: "primary.50"
652
+ "empty-documents": Ze,
653
+ "empty-insights": Oe,
654
+ "no-results": _e,
655
+ "error-generic": Ae,
656
+ "error-404": Ne,
657
+ "error-500": Ge,
658
+ "error-permission": Ue,
659
+ upload: X,
660
+ success: He,
661
+ "no-notifications": qe,
662
+ "no-data": Je,
663
+ offline: Ke
664
+ }, Ii = D.forwardRef(
665
+ function({ illustration: i, title: t, description: o, primaryAction: n, secondaryAction: l, size: a = "medium", customIllustration: s, sx: g }, x) {
666
+ const p = K[a], v = Xe[i];
667
+ return /* @__PURE__ */ f(
668
+ C,
669
+ {
670
+ ref: x,
671
+ sx: {
672
+ textAlign: "center",
673
+ p: p.padding,
674
+ maxWidth: a === "small" ? 300 : a === "large" ? 500 : 400,
675
+ mx: "auto",
676
+ ...g
799
677
  },
800
- ...g
801
- },
802
- onClick: a,
803
- children: [
804
- /* @__PURE__ */ e(v, { sx: { mb: 2 }, children: /* @__PURE__ */ e(K, { size: b.illustrationSize * 0.7 }) }),
805
- /* @__PURE__ */ e(k, { variant: b.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: t }),
806
- /* @__PURE__ */ e(k, { variant: b.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: r }),
807
- /* @__PURE__ */ e(B, { variant: "outlined", size: d === "small" ? "small" : "medium", children: o }),
808
- i && /* @__PURE__ */ e(k, { variant: "caption", color: "text.secondary", display: "block", sx: { mt: 2 }, children: i })
809
- ]
810
- }
811
- );
812
- }, n = L.colors.indicator, W = {
678
+ children: [
679
+ /* @__PURE__ */ e(
680
+ C,
681
+ {
682
+ sx: {
683
+ mb: p.spacing,
684
+ display: "flex",
685
+ justifyContent: "center",
686
+ alignItems: "center"
687
+ },
688
+ role: "img",
689
+ "aria-hidden": "true",
690
+ children: s || /* @__PURE__ */ e(v, { size: p.illustrationSize })
691
+ }
692
+ ),
693
+ /* @__PURE__ */ e(
694
+ S,
695
+ {
696
+ variant: p.titleVariant,
697
+ sx: { mb: 1, fontWeight: 600 },
698
+ children: t
699
+ }
700
+ ),
701
+ o && /* @__PURE__ */ e(
702
+ S,
703
+ {
704
+ variant: p.descriptionVariant,
705
+ color: "text.secondary",
706
+ sx: { mb: p.spacing },
707
+ children: o
708
+ }
709
+ ),
710
+ (n || l) && /* @__PURE__ */ f(
711
+ P,
712
+ {
713
+ spacing: 1.5,
714
+ alignItems: "center",
715
+ sx: { mt: p.spacing },
716
+ children: [
717
+ n && (n.href ? /* @__PURE__ */ e(
718
+ T,
719
+ {
720
+ variant: "contained",
721
+ href: n.href,
722
+ onClick: n.onClick,
723
+ children: n.label
724
+ }
725
+ ) : /* @__PURE__ */ e(
726
+ T,
727
+ {
728
+ variant: "contained",
729
+ onClick: n.onClick,
730
+ children: n.label
731
+ }
732
+ )),
733
+ l && (l.href ? /* @__PURE__ */ e(
734
+ U,
735
+ {
736
+ href: l.href,
737
+ onClick: l.onClick,
738
+ underline: "hover",
739
+ sx: { cursor: "pointer" },
740
+ children: l.label
741
+ }
742
+ ) : /* @__PURE__ */ e(
743
+ U,
744
+ {
745
+ component: "button",
746
+ onClick: l.onClick,
747
+ underline: "hover",
748
+ sx: { cursor: "pointer" },
749
+ children: l.label
750
+ }
751
+ ))
752
+ ]
753
+ }
754
+ )
755
+ ]
756
+ }
757
+ );
758
+ }
759
+ ), zi = D.forwardRef(
760
+ function({
761
+ title: i = "Drag and drop your file",
762
+ description: t = "or click to browse from your computer",
763
+ acceptedTypes: o = "PNG, JPG, PDF up to 10MB",
764
+ browseLabel: n = "Browse Files",
765
+ onDrop: l,
766
+ onBrowse: a,
767
+ isDragging: s = !1,
768
+ size: g = "medium",
769
+ sx: x
770
+ }, p) {
771
+ const [v, w] = D.useState(s), h = K[g], L = (m) => {
772
+ m.preventDefault(), m.stopPropagation(), m.type === "dragenter" || m.type === "dragover" ? w(!0) : m.type === "dragleave" && w(!1);
773
+ };
774
+ return /* @__PURE__ */ f(
775
+ C,
776
+ {
777
+ ref: p,
778
+ onDragEnter: L,
779
+ onDragLeave: L,
780
+ onDragOver: L,
781
+ onDrop: (m) => {
782
+ m.preventDefault(), m.stopPropagation(), w(!1), m.dataTransfer.files && m.dataTransfer.files.length > 0 && l?.(m.dataTransfer.files);
783
+ },
784
+ sx: {
785
+ p: h.padding,
786
+ border: "2px dashed",
787
+ borderColor: v ? "primary.main" : "grey.300",
788
+ borderRadius: 3,
789
+ // 12px - consistent with cards
790
+ bgcolor: v ? "primary.50" : "grey.50",
791
+ textAlign: "center",
792
+ cursor: "pointer",
793
+ transition: "all 0.2s ease",
794
+ "&:hover": {
795
+ borderColor: "primary.main",
796
+ bgcolor: "primary.50"
797
+ },
798
+ ...x
799
+ },
800
+ onClick: a,
801
+ children: [
802
+ /* @__PURE__ */ e(C, { sx: { mb: 2 }, children: /* @__PURE__ */ e(X, { size: h.illustrationSize * 0.7 }) }),
803
+ /* @__PURE__ */ e(S, { variant: h.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
804
+ /* @__PURE__ */ e(S, { variant: h.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: t }),
805
+ /* @__PURE__ */ e(T, { variant: "outlined", size: g === "small" ? "small" : "medium", children: n }),
806
+ o && /* @__PURE__ */ e(S, { variant: "caption", color: "text.secondary", display: "block", sx: { mt: 2 }, children: o })
807
+ ]
808
+ }
809
+ );
810
+ }
811
+ ), c = I.colors.indicator, M = {
813
812
  // High Attention - Red
814
813
  error: {
815
- color: n.error.fg,
816
- backgroundColor: n.error.bg,
814
+ color: c.error.fg,
815
+ backgroundColor: c.error.bg,
817
816
  icon: "error",
818
817
  shape: "circle",
819
818
  severity: "high",
820
819
  label: "Error"
821
820
  },
822
821
  critical: {
823
- color: n.critical.fg,
824
- backgroundColor: n.critical.bg,
822
+ color: c.critical.fg,
823
+ backgroundColor: c.critical.bg,
825
824
  icon: "warning",
826
825
  shape: "hexagon",
827
826
  severity: "high",
828
827
  label: "Critical"
829
828
  },
830
829
  failed: {
831
- color: n.failed.fg,
832
- backgroundColor: n.failed.bg,
830
+ color: c.failed.fg,
831
+ backgroundColor: c.failed.bg,
833
832
  icon: "close",
834
833
  shape: "circle",
835
834
  severity: "high",
836
835
  label: "Failed"
837
836
  },
838
837
  rejected: {
839
- color: n.rejected.fg,
840
- backgroundColor: n.rejected.bg,
838
+ color: c.rejected.fg,
839
+ backgroundColor: c.rejected.bg,
841
840
  icon: "close",
842
841
  shape: "circle",
843
842
  severity: "high",
844
843
  label: "Rejected"
845
844
  },
846
845
  cancelled: {
847
- color: n.cancelled.fg,
848
- backgroundColor: n.cancelled.bg,
846
+ color: c.cancelled.fg,
847
+ backgroundColor: c.cancelled.bg,
849
848
  icon: "close",
850
849
  shape: "circle",
851
850
  severity: "neutral",
@@ -853,43 +852,43 @@ const Me = ({
853
852
  },
854
853
  // Medium Attention - Orange/Yellow
855
854
  warning: {
856
- color: n.warning.fg,
857
- backgroundColor: n.warning.bg,
858
- outlineColor: n.warning.outline,
855
+ color: c.warning.fg,
856
+ backgroundColor: c.warning.bg,
857
+ outlineColor: c.warning.outline,
859
858
  icon: "warning",
860
859
  shape: "triangle",
861
860
  severity: "medium",
862
861
  label: "Warning"
863
862
  },
864
863
  caution: {
865
- color: n.caution.fg,
866
- backgroundColor: n.caution.bg,
867
- outlineColor: n.caution.outline,
864
+ color: c.caution.fg,
865
+ backgroundColor: c.caution.bg,
866
+ outlineColor: c.caution.outline,
868
867
  icon: "warning",
869
868
  shape: "triangle",
870
869
  severity: "medium",
871
870
  label: "Caution"
872
871
  },
873
872
  pending: {
874
- color: n.pending.fg,
875
- backgroundColor: n.pending.bg,
876
- outlineColor: n.pending.outline,
873
+ color: c.pending.fg,
874
+ backgroundColor: c.pending.bg,
875
+ outlineColor: c.pending.outline,
877
876
  icon: "clock",
878
877
  shape: "circle",
879
878
  severity: "medium",
880
879
  label: "Pending"
881
880
  },
882
881
  "in-progress": {
883
- color: n.inProgress.fg,
884
- backgroundColor: n.inProgress.bg,
882
+ color: c.inProgress.fg,
883
+ backgroundColor: c.inProgress.bg,
885
884
  icon: "refresh",
886
885
  shape: "circle",
887
886
  severity: "medium",
888
887
  label: "In Progress"
889
888
  },
890
889
  running: {
891
- color: n.running.fg,
892
- backgroundColor: n.running.bg,
890
+ color: c.running.fg,
891
+ backgroundColor: c.running.bg,
893
892
  icon: "play",
894
893
  shape: "circle",
895
894
  severity: "medium",
@@ -897,40 +896,40 @@ const Me = ({
897
896
  },
898
897
  // Low Attention - Green
899
898
  success: {
900
- color: n.success.fg,
901
- backgroundColor: n.success.bg,
899
+ color: c.success.fg,
900
+ backgroundColor: c.success.bg,
902
901
  icon: "check-circle",
903
902
  shape: "circle",
904
903
  severity: "low",
905
904
  label: "Success"
906
905
  },
907
906
  complete: {
908
- color: n.complete.fg,
909
- backgroundColor: n.complete.bg,
907
+ color: c.complete.fg,
908
+ backgroundColor: c.complete.bg,
910
909
  icon: "check",
911
910
  shape: "circle",
912
911
  severity: "low",
913
912
  label: "Complete"
914
913
  },
915
914
  approved: {
916
- color: n.approved.fg,
917
- backgroundColor: n.approved.bg,
915
+ color: c.approved.fg,
916
+ backgroundColor: c.approved.bg,
918
917
  icon: "check-circle",
919
918
  shape: "circle",
920
919
  severity: "low",
921
920
  label: "Approved"
922
921
  },
923
922
  active: {
924
- color: n.active.fg,
925
- backgroundColor: n.active.bg,
923
+ color: c.active.fg,
924
+ backgroundColor: c.active.bg,
926
925
  icon: "check",
927
926
  shape: "circle",
928
927
  severity: "low",
929
928
  label: "Active"
930
929
  },
931
930
  enabled: {
932
- color: n.enabled.fg,
933
- backgroundColor: n.enabled.bg,
931
+ color: c.enabled.fg,
932
+ backgroundColor: c.enabled.bg,
934
933
  icon: "check",
935
934
  shape: "circle",
936
935
  severity: "low",
@@ -938,24 +937,24 @@ const Me = ({
938
937
  },
939
938
  // Informational - Blue
940
939
  info: {
941
- color: n.info.fg,
942
- backgroundColor: n.info.bg,
940
+ color: c.info.fg,
941
+ backgroundColor: c.info.bg,
943
942
  icon: "info",
944
943
  shape: "circle",
945
944
  severity: "info",
946
945
  label: "Info"
947
946
  },
948
947
  new: {
949
- color: n.new.fg,
950
- backgroundColor: n.new.bg,
948
+ color: c.new.fg,
949
+ backgroundColor: c.new.bg,
951
950
  icon: "star",
952
951
  shape: "circle",
953
952
  severity: "info",
954
953
  label: "New"
955
954
  },
956
955
  updated: {
957
- color: n.updated.fg,
958
- backgroundColor: n.updated.bg,
956
+ color: c.updated.fg,
957
+ backgroundColor: c.updated.bg,
959
958
  icon: "refresh",
960
959
  shape: "circle",
961
960
  severity: "info",
@@ -963,32 +962,32 @@ const Me = ({
963
962
  },
964
963
  // Neutral - Gray
965
964
  draft: {
966
- color: n.draft.fg,
967
- backgroundColor: n.draft.bg,
965
+ color: c.draft.fg,
966
+ backgroundColor: c.draft.bg,
968
967
  icon: "edit",
969
968
  shape: "circle",
970
969
  severity: "neutral",
971
970
  label: "Draft"
972
971
  },
973
972
  inactive: {
974
- color: n.inactive.fg,
975
- backgroundColor: n.inactive.bg,
973
+ color: c.inactive.fg,
974
+ backgroundColor: c.inactive.bg,
976
975
  icon: "remove",
977
976
  shape: "circle",
978
977
  severity: "neutral",
979
978
  label: "Inactive"
980
979
  },
981
980
  disabled: {
982
- color: n.disabled.fg,
983
- backgroundColor: n.disabled.bg,
981
+ color: c.disabled.fg,
982
+ backgroundColor: c.disabled.bg,
984
983
  icon: "close",
985
984
  shape: "circle",
986
985
  severity: "neutral",
987
986
  label: "Disabled"
988
987
  },
989
988
  unknown: {
990
- color: n.unknown.fg,
991
- backgroundColor: n.unknown.bg,
989
+ color: c.unknown.fg,
990
+ backgroundColor: c.unknown.bg,
992
991
  icon: "help",
993
992
  shape: "circle",
994
993
  severity: "neutral",
@@ -996,26 +995,26 @@ const Me = ({
996
995
  },
997
996
  // Special - Purple
998
997
  beta: {
999
- color: n.beta.fg,
1000
- backgroundColor: n.beta.bg,
998
+ color: c.beta.fg,
999
+ backgroundColor: c.beta.bg,
1001
1000
  icon: "zap",
1002
1001
  shape: "diamond",
1003
1002
  severity: "info",
1004
1003
  label: "Beta"
1005
1004
  },
1006
1005
  experimental: {
1007
- color: n.experimental.fg,
1008
- backgroundColor: n.experimental.bg,
1006
+ color: c.experimental.fg,
1007
+ backgroundColor: c.experimental.bg,
1009
1008
  icon: "code",
1010
1009
  shape: "diamond",
1011
1010
  severity: "info",
1012
1011
  label: "Experimental"
1013
1012
  }
1014
- }, P = {
1013
+ }, B = {
1015
1014
  small: { icon: 16, shape: 8, fontSize: "0.75rem", dotSize: 8 },
1016
1015
  medium: { icon: 20, shape: 10, fontSize: "0.875rem", dotSize: 10 },
1017
1016
  large: { icon: 24, shape: 12, fontSize: "1rem", dotSize: 12 }
1018
- }, Xe = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "7", fill: r, stroke: i, strokeWidth: i ? 1.5 : 0 }) }), Ye = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("rect", { x: "2", y: "2", width: "12", height: "12", rx: "2", fill: r, stroke: i, strokeWidth: i ? 1.5 : 0 }) }), ei = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1017
+ }, Ye = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "7", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), ei = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("rect", { x: "2", y: "2", width: "12", height: "12", rx: "2", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), ii = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1019
1018
  "rect",
1020
1019
  {
1021
1020
  x: "3",
@@ -1023,100 +1022,100 @@ const Me = ({
1023
1022
  width: "10",
1024
1023
  height: "10",
1025
1024
  rx: "1",
1026
- fill: r,
1027
- stroke: i,
1028
- strokeWidth: i ? 1.5 : 0,
1025
+ fill: i,
1026
+ stroke: t,
1027
+ strokeWidth: t ? 1.5 : 0,
1029
1028
  transform: "rotate(45 8 8)"
1030
1029
  }
1031
- ) }), ii = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1030
+ ) }), ti = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1032
1031
  "path",
1033
1032
  {
1034
1033
  d: "M8 2L14 14H2L8 2Z",
1035
- fill: r,
1036
- stroke: i,
1037
- strokeWidth: i ? 1.5 : 0,
1034
+ fill: i,
1035
+ stroke: t,
1036
+ strokeWidth: t ? 1.5 : 0,
1038
1037
  strokeLinejoin: "round"
1039
1038
  }
1040
- ) }), ti = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1039
+ ) }), ri = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1041
1040
  "polygon",
1042
1041
  {
1043
1042
  points: "8,1 14,4.5 14,11.5 8,15 2,11.5 2,4.5",
1044
- fill: r,
1045
- stroke: i,
1046
- strokeWidth: i ? 1.5 : 0
1043
+ fill: i,
1044
+ stroke: t,
1045
+ strokeWidth: t ? 1.5 : 0
1047
1046
  }
1048
- ) }), X = {
1049
- circle: Xe,
1050
- square: Ye,
1051
- diamond: ei,
1052
- triangle: ii,
1053
- hexagon: ti
1054
- }, ri = (t, r, i, o, c, a) => {
1055
- const l = W[t], d = P[r];
1056
- return c ? /* @__PURE__ */ f(z, { direction: "row", alignItems: "center", spacing: 1, sx: a, role: "status", children: [
1047
+ ) }), Y = {
1048
+ circle: Ye,
1049
+ square: ei,
1050
+ diamond: ii,
1051
+ triangle: ti,
1052
+ hexagon: ri
1053
+ }, oi = (r, i, t, o, n, l) => {
1054
+ const a = M[r], s = B[i];
1055
+ return n ? /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
1057
1056
  /* @__PURE__ */ e(
1058
- T,
1057
+ E,
1059
1058
  {
1060
- name: l.icon,
1061
- size: r,
1062
- sx: { color: l.backgroundColor },
1059
+ name: a.icon,
1060
+ size: i,
1061
+ sx: { color: a.backgroundColor },
1063
1062
  "aria-hidden": "true"
1064
1063
  }
1065
1064
  ),
1066
- o && /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: d.fontSize }, children: i })
1067
- ] }) : /* @__PURE__ */ f(z, { direction: "row", alignItems: "center", spacing: 1, sx: a, role: "status", children: [
1065
+ o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
1066
+ ] }) : /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
1068
1067
  /* @__PURE__ */ e(
1069
- v,
1068
+ C,
1070
1069
  {
1071
1070
  sx: {
1072
1071
  display: "flex",
1073
1072
  alignItems: "center",
1074
1073
  justifyContent: "center",
1075
- width: d.icon + 8,
1076
- height: d.icon + 8,
1077
- borderRadius: `${L.borders.radius.circle}px`,
1074
+ width: s.icon + 8,
1075
+ height: s.icon + 8,
1076
+ borderRadius: `${I.borders.radius.circle}px`,
1078
1077
  // Perfect circle
1079
- backgroundColor: l.backgroundColor,
1080
- color: l.color
1078
+ backgroundColor: a.backgroundColor,
1079
+ color: a.color
1081
1080
  },
1082
1081
  "aria-hidden": "true",
1083
- children: /* @__PURE__ */ e(T, { name: l.icon, size: r === "large" ? "medium" : "small" })
1082
+ children: /* @__PURE__ */ e(E, { name: a.icon, size: i === "large" ? "medium" : "small" })
1084
1083
  }
1085
1084
  ),
1086
- o && /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: d.fontSize }, children: i })
1085
+ o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
1087
1086
  ] });
1088
- }, oi = (t, r, i, o, c, a, l) => {
1089
- const d = W[t], g = P[r], u = c || d.shape, s = X[u];
1090
- return /* @__PURE__ */ f(z, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
1091
- /* @__PURE__ */ e(v, { "aria-hidden": "true", children: /* @__PURE__ */ e(
1092
- s,
1087
+ }, ni = (r, i, t, o, n, l, a) => {
1088
+ const s = M[r], g = B[i], x = n || s.shape, p = Y[x];
1089
+ return /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: a, role: "status", children: [
1090
+ /* @__PURE__ */ e(C, { "aria-hidden": "true", children: /* @__PURE__ */ e(
1091
+ p,
1093
1092
  {
1094
1093
  size: g.shape * 1.6,
1095
- color: d.backgroundColor,
1096
- outline: a ? d.outlineColor : void 0
1094
+ color: s.backgroundColor,
1095
+ outline: l ? s.outlineColor : void 0
1097
1096
  }
1098
1097
  ) }),
1099
- o && /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: g.fontSize }, children: i })
1098
+ o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: g.fontSize }, children: t })
1100
1099
  ] });
1101
- }, ni = (t, r, i, o) => {
1102
- const c = W[t], a = P[r];
1100
+ }, li = (r, i, t, o) => {
1101
+ const n = M[r], l = B[i];
1103
1102
  return /* @__PURE__ */ e(
1104
- v,
1103
+ C,
1105
1104
  {
1106
1105
  role: "status",
1107
- "aria-label": c.label,
1106
+ "aria-label": n.label,
1108
1107
  sx: {
1109
- width: a.dotSize,
1110
- height: a.dotSize,
1111
- borderRadius: `${L.borders.radius.circle}px`,
1108
+ width: l.dotSize,
1109
+ height: l.dotSize,
1110
+ borderRadius: `${I.borders.radius.circle}px`,
1112
1111
  // Perfect circle
1113
- backgroundColor: c.backgroundColor,
1112
+ backgroundColor: n.backgroundColor,
1114
1113
  flexShrink: 0,
1115
- ...i && {
1114
+ ...t && {
1116
1115
  animation: "statusPulse 2s infinite",
1117
1116
  "@keyframes statusPulse": {
1118
- "0%": { boxShadow: `0 0 0 0 ${c.backgroundColor}80` },
1119
- "70%": { boxShadow: `0 0 0 ${a.dotSize}px transparent` },
1117
+ "0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
1118
+ "70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
1120
1119
  "100%": { boxShadow: "0 0 0 0 transparent" }
1121
1120
  }
1122
1121
  },
@@ -1124,243 +1123,249 @@ const Me = ({
1124
1123
  }
1125
1124
  }
1126
1125
  );
1127
- }, li = (t, r, i, o, c, a, l) => {
1128
- const d = W[t];
1126
+ }, ci = (r, i, t, o, n, l, a) => {
1127
+ const s = M[r];
1129
1128
  return /* @__PURE__ */ e(
1130
- ve,
1129
+ Se,
1131
1130
  {
1132
- label: i,
1133
- size: r,
1134
- icon: o ? /* @__PURE__ */ e(T, { name: d.icon, size: "small", "aria-hidden": "true" }) : void 0,
1135
- onClick: c,
1136
- onDelete: a,
1131
+ label: t,
1132
+ size: i,
1133
+ icon: o ? /* @__PURE__ */ e(E, { name: s.icon, size: "small", "aria-hidden": "true" }) : void 0,
1134
+ onClick: n,
1135
+ onDelete: l,
1137
1136
  role: "status",
1138
1137
  sx: {
1139
- backgroundColor: `${d.backgroundColor}20`,
1140
- color: d.backgroundColor,
1141
- borderColor: d.backgroundColor,
1138
+ backgroundColor: `${s.backgroundColor}20`,
1139
+ color: s.backgroundColor,
1140
+ borderColor: s.backgroundColor,
1142
1141
  "& .MuiChip-icon": {
1143
- color: d.backgroundColor
1142
+ color: s.backgroundColor
1144
1143
  },
1145
1144
  "& .MuiChip-deleteIcon": {
1146
- color: d.backgroundColor,
1145
+ color: s.backgroundColor,
1147
1146
  "&:hover": {
1148
- color: d.backgroundColor
1147
+ color: s.backgroundColor
1149
1148
  }
1150
1149
  },
1151
- ...l
1150
+ ...a
1152
1151
  },
1153
1152
  variant: "outlined"
1154
1153
  }
1155
1154
  );
1156
- }, ci = (t, r, i, o, c, a) => {
1157
- const l = W[t], d = P[r];
1158
- return /* @__PURE__ */ f(z, { direction: "row", alignItems: "center", spacing: 1, sx: a, role: "status", children: [
1155
+ }, ai = (r, i, t, o, n, l) => {
1156
+ const a = M[r], s = B[i];
1157
+ return /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
1159
1158
  o && /* @__PURE__ */ e(
1160
- v,
1159
+ C,
1161
1160
  {
1162
1161
  "aria-hidden": "true",
1163
1162
  sx: {
1164
- width: d.dotSize,
1165
- height: d.dotSize,
1166
- borderRadius: `${L.borders.radius.circle}px`,
1163
+ width: s.dotSize,
1164
+ height: s.dotSize,
1165
+ borderRadius: `${I.borders.radius.circle}px`,
1167
1166
  // Perfect circle
1168
- backgroundColor: l.backgroundColor,
1167
+ backgroundColor: a.backgroundColor,
1169
1168
  flexShrink: 0
1170
1169
  }
1171
1170
  }
1172
1171
  ),
1173
- c && !o && /* @__PURE__ */ e(
1174
- T,
1172
+ n && !o && /* @__PURE__ */ e(
1173
+ E,
1175
1174
  {
1176
- name: l.icon,
1177
- size: r === "large" ? "medium" : "small",
1178
- sx: { color: l.backgroundColor },
1175
+ name: a.icon,
1176
+ size: i === "large" ? "medium" : "small",
1177
+ sx: { color: a.backgroundColor },
1179
1178
  "aria-hidden": "true"
1180
1179
  }
1181
1180
  ),
1182
1181
  /* @__PURE__ */ e(
1183
- k,
1182
+ S,
1184
1183
  {
1185
1184
  variant: "body2",
1186
1185
  sx: {
1187
- fontSize: d.fontSize,
1188
- color: l.backgroundColor,
1186
+ fontSize: s.fontSize,
1187
+ color: a.backgroundColor,
1189
1188
  fontWeight: 500
1190
1189
  },
1191
- children: i
1190
+ children: t
1192
1191
  }
1193
1192
  )
1194
1193
  ] });
1195
- }, ai = (t, r, i, o, c, a, l) => {
1196
- const d = W[t];
1194
+ }, si = (r, i, t, o, n, l, a) => {
1195
+ const s = M[r];
1197
1196
  return /* @__PURE__ */ e(
1198
- ke,
1197
+ ve,
1199
1198
  {
1200
- badgeContent: o ? void 0 : i,
1201
- max: c,
1199
+ badgeContent: o ? void 0 : t,
1200
+ max: n,
1202
1201
  variant: o ? "dot" : "standard",
1203
- invisible: a,
1202
+ invisible: l,
1204
1203
  sx: {
1205
1204
  "& .MuiBadge-badge": {
1206
- backgroundColor: d.backgroundColor,
1207
- color: d.color,
1205
+ backgroundColor: s.backgroundColor,
1206
+ color: s.color,
1208
1207
  fontSize: "0.7rem",
1209
1208
  minWidth: o ? 8 : 18,
1210
1209
  height: o ? 8 : 18,
1211
1210
  padding: o ? 0 : "0 4px"
1212
1211
  },
1213
- ...l
1212
+ ...a
1214
1213
  },
1215
- children: r
1214
+ children: i
1216
1215
  }
1217
1216
  );
1218
- }, si = (t, r, i, o, c, a, l, d, g) => {
1219
- const u = P[r], s = t >= 0, I = a !== !1 ? s ? l || "#24a148" : d || "#da1e28" : "inherit", y = () => {
1220
- const D = Math.abs(t), M = s ? "+" : "-";
1221
- return o ? `${M}${o}${D.toLocaleString()}` : i ? `${M}${D}%` : `${M}${D.toLocaleString()}`;
1217
+ }, di = (r, i, t, o, n, l, a, s, g) => {
1218
+ const x = B[i], p = r >= 0, h = l !== !1 ? p ? a || "#24a148" : s || "#da1e28" : "inherit", L = () => {
1219
+ const z = Math.abs(r), m = p ? "+" : "-";
1220
+ return o ? `${m}${o}${z.toLocaleString()}` : t ? `${m}${z}%` : `${m}${z.toLocaleString()}`;
1222
1221
  };
1223
1222
  return /* @__PURE__ */ f(
1224
- z,
1223
+ P,
1225
1224
  {
1226
1225
  direction: "row",
1227
1226
  alignItems: "center",
1228
1227
  spacing: 0.5,
1229
- sx: { color: I, ...g },
1228
+ sx: { color: h, ...g },
1230
1229
  role: "status",
1231
- "aria-label": `${s ? "Increased" : "Decreased"} by ${y()}`,
1230
+ "aria-label": `${p ? "Increased" : "Decreased"} by ${L()}`,
1232
1231
  children: [
1233
- c !== !1 && /* @__PURE__ */ e(
1234
- T,
1232
+ n !== !1 && /* @__PURE__ */ e(
1233
+ E,
1235
1234
  {
1236
- name: s ? "trending-up" : "trending-down",
1237
- size: r === "large" ? "medium" : "small",
1235
+ name: p ? "trending-up" : "trending-down",
1236
+ size: i === "large" ? "medium" : "small",
1238
1237
  "aria-hidden": "true"
1239
1238
  }
1240
1239
  ),
1241
1240
  /* @__PURE__ */ e(
1242
- k,
1241
+ S,
1243
1242
  {
1244
1243
  variant: "body2",
1245
1244
  sx: {
1246
- fontSize: u.fontSize,
1245
+ fontSize: x.fontSize,
1247
1246
  fontWeight: 500,
1248
1247
  fontFamily: "monospace"
1249
1248
  },
1250
- children: y()
1249
+ children: L()
1251
1250
  }
1252
1251
  )
1253
1252
  ]
1254
1253
  }
1255
1254
  );
1256
- }, Ii = (t) => {
1257
- const {
1258
- variant: r = "icon",
1259
- status: i = "info",
1260
- size: o = "medium",
1261
- label: c,
1262
- showLabel: a = !0,
1263
- sx: l,
1264
- "aria-label": d
1265
- } = t, g = W[i], u = c || g.label;
1266
- switch (r) {
1267
- case "icon":
1268
- case void 0:
1269
- return ri(
1270
- i,
1271
- o,
1272
- u,
1273
- a,
1274
- t.iconOnly || !1,
1275
- l
1276
- );
1277
- case "shape": {
1278
- const s = t;
1279
- return oi(
1280
- i,
1281
- o,
1282
- u,
1283
- a,
1284
- s.shape,
1285
- s.showOutline ?? !0,
1286
- l
1287
- );
1288
- }
1289
- case "dot":
1290
- return ni(i, o, t.pulse || !1, l);
1291
- case "chip": {
1292
- const s = t;
1293
- return li(
1294
- i,
1295
- o === "large" ? "medium" : o,
1296
- u,
1297
- s.showIcon ?? !0,
1298
- s.onClick,
1299
- s.onDelete,
1300
- l
1301
- );
1302
- }
1303
- case "inline": {
1304
- const s = t;
1305
- return ci(
1306
- i,
1307
- o,
1308
- u,
1309
- s.showDot ?? !0,
1310
- s.showIcon ?? !1,
1311
- l
1312
- );
1313
- }
1314
- case "badge": {
1315
- const s = t;
1316
- return ai(
1317
- i,
1318
- s.children,
1319
- s.count,
1320
- s.dot,
1321
- s.max ?? 999,
1322
- s.invisible,
1323
- l
1324
- );
1325
- }
1326
- case "differential": {
1327
- const s = t;
1328
- return si(
1329
- s.value,
1330
- o,
1331
- s.percentage || !1,
1332
- s.currency,
1333
- s.showIcon,
1334
- s.showColor,
1335
- s.positiveColor,
1336
- s.negativeColor,
1337
- l
1338
- );
1339
- }
1340
- default:
1341
- return null;
1255
+ }, Di = D.forwardRef(
1256
+ function(i, t) {
1257
+ const {
1258
+ variant: o = "icon",
1259
+ status: n = "info",
1260
+ size: l = "medium",
1261
+ label: a,
1262
+ showLabel: s = !0,
1263
+ sx: g,
1264
+ "aria-label": x
1265
+ } = i, p = M[n], v = a || p.label, w = (() => {
1266
+ switch (o) {
1267
+ case "icon":
1268
+ case void 0:
1269
+ return oi(
1270
+ n,
1271
+ l,
1272
+ v,
1273
+ s,
1274
+ i.iconOnly || !1,
1275
+ g
1276
+ );
1277
+ case "shape": {
1278
+ const h = i;
1279
+ return ni(
1280
+ n,
1281
+ l,
1282
+ v,
1283
+ s,
1284
+ h.shape,
1285
+ h.showOutline ?? !0,
1286
+ g
1287
+ );
1288
+ }
1289
+ case "dot":
1290
+ return li(n, l, i.pulse || !1, g);
1291
+ case "chip": {
1292
+ const h = i;
1293
+ return ci(
1294
+ n,
1295
+ l === "large" ? "medium" : l,
1296
+ v,
1297
+ h.showIcon ?? !0,
1298
+ h.onClick,
1299
+ h.onDelete,
1300
+ g
1301
+ );
1302
+ }
1303
+ case "inline": {
1304
+ const h = i;
1305
+ return ai(
1306
+ n,
1307
+ l,
1308
+ v,
1309
+ h.showDot ?? !0,
1310
+ h.showIcon ?? !1,
1311
+ g
1312
+ );
1313
+ }
1314
+ case "badge": {
1315
+ const h = i;
1316
+ return si(
1317
+ n,
1318
+ h.children,
1319
+ h.count,
1320
+ h.dot,
1321
+ h.max ?? 999,
1322
+ h.invisible,
1323
+ g
1324
+ );
1325
+ }
1326
+ case "differential": {
1327
+ const h = i;
1328
+ return di(
1329
+ h.value,
1330
+ l,
1331
+ h.percentage || !1,
1332
+ h.currency,
1333
+ h.showIcon,
1334
+ h.showColor,
1335
+ h.positiveColor,
1336
+ h.negativeColor,
1337
+ g
1338
+ );
1339
+ }
1340
+ default:
1341
+ return null;
1342
+ }
1343
+ })();
1344
+ return !w || !D.isValidElement(w) ? w : D.cloneElement(w, {
1345
+ ref: t
1346
+ });
1342
1347
  }
1343
- }, di = ({
1344
- status: t,
1345
- size: r = "medium",
1346
- pulse: i = !1,
1348
+ ), hi = ({
1349
+ status: r,
1350
+ size: i = "medium",
1351
+ pulse: t = !1,
1347
1352
  sx: o
1348
1353
  }) => {
1349
- const c = W[t], a = P[r];
1354
+ const n = M[r], l = B[i];
1350
1355
  return /* @__PURE__ */ e(
1351
- v,
1356
+ C,
1352
1357
  {
1353
1358
  sx: {
1354
- width: a.dotSize,
1355
- height: a.dotSize,
1356
- borderRadius: `${L.borders.radius.circle}px`,
1359
+ width: l.dotSize,
1360
+ height: l.dotSize,
1361
+ borderRadius: `${I.borders.radius.circle}px`,
1357
1362
  // Perfect circle
1358
- backgroundColor: c.backgroundColor,
1359
- ...i && {
1363
+ backgroundColor: n.backgroundColor,
1364
+ ...t && {
1360
1365
  animation: "pulse 2s infinite",
1361
1366
  "@keyframes pulse": {
1362
- "0%": { boxShadow: `0 0 0 0 ${c.backgroundColor}80` },
1363
- "70%": { boxShadow: `0 0 0 ${a.dotSize}px transparent` },
1367
+ "0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
1368
+ "70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
1364
1369
  "100%": { boxShadow: "0 0 0 0 transparent" }
1365
1370
  }
1366
1371
  },
@@ -1368,87 +1373,87 @@ const Me = ({
1368
1373
  }
1369
1374
  }
1370
1375
  );
1371
- }, zi = ({
1372
- items: t,
1373
- variant: r = "dot",
1374
- direction: i = "row",
1376
+ }, Mi = ({
1377
+ items: r,
1378
+ variant: i = "dot",
1379
+ direction: t = "row",
1375
1380
  size: o = "small",
1376
- sx: c
1381
+ sx: n
1377
1382
  }) => {
1378
- const a = P[o];
1383
+ const l = B[o];
1379
1384
  return /* @__PURE__ */ e(
1380
- z,
1385
+ P,
1381
1386
  {
1382
- direction: i,
1383
- spacing: i === "row" ? 3 : 1,
1387
+ direction: t,
1388
+ spacing: t === "row" ? 3 : 1,
1384
1389
  flexWrap: "wrap",
1385
1390
  useFlexGap: !0,
1386
- sx: c,
1387
- children: t.map((l, d) => {
1388
- const g = W[l.status], u = l.label || g.label;
1389
- return /* @__PURE__ */ f(z, { direction: "row", alignItems: "center", spacing: 1, children: [
1390
- r === "icon" && /* @__PURE__ */ e(
1391
- v,
1391
+ sx: n,
1392
+ children: r.map((a, s) => {
1393
+ const g = M[a.status], x = a.label || g.label;
1394
+ return /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, children: [
1395
+ i === "icon" && /* @__PURE__ */ e(
1396
+ C,
1392
1397
  {
1393
1398
  sx: {
1394
1399
  display: "flex",
1395
1400
  alignItems: "center",
1396
1401
  justifyContent: "center",
1397
- width: a.icon + 4,
1398
- height: a.icon + 4,
1399
- borderRadius: `${L.borders.radius.circle}px`,
1402
+ width: l.icon + 4,
1403
+ height: l.icon + 4,
1404
+ borderRadius: `${I.borders.radius.circle}px`,
1400
1405
  // Perfect circle
1401
1406
  backgroundColor: g.backgroundColor,
1402
1407
  color: g.color
1403
1408
  },
1404
- children: /* @__PURE__ */ e(T, { name: g.icon, size: "small" })
1409
+ children: /* @__PURE__ */ e(E, { name: g.icon, size: "small" })
1405
1410
  }
1406
1411
  ),
1407
- r === "shape" && (() => {
1408
- const s = X[g.shape];
1412
+ i === "shape" && (() => {
1413
+ const p = Y[g.shape];
1409
1414
  return /* @__PURE__ */ e(
1410
- s,
1415
+ p,
1411
1416
  {
1412
- size: a.shape * 1.4,
1417
+ size: l.shape * 1.4,
1413
1418
  color: g.backgroundColor,
1414
1419
  outline: g.outlineColor
1415
1420
  }
1416
1421
  );
1417
1422
  })(),
1418
- r === "dot" && /* @__PURE__ */ e(di, { status: l.status, size: o }),
1419
- /* @__PURE__ */ f(k, { variant: "body2", sx: { fontSize: a.fontSize }, children: [
1420
- u,
1421
- l.count !== void 0 && /* @__PURE__ */ f(
1422
- k,
1423
+ i === "dot" && /* @__PURE__ */ e(hi, { status: a.status, size: o }),
1424
+ /* @__PURE__ */ f(S, { variant: "body2", sx: { fontSize: l.fontSize }, children: [
1425
+ x,
1426
+ a.count !== void 0 && /* @__PURE__ */ f(
1427
+ S,
1423
1428
  {
1424
1429
  component: "span",
1425
1430
  sx: {
1426
1431
  ml: 0.5,
1427
1432
  color: "text.secondary",
1428
- fontSize: a.fontSize
1433
+ fontSize: l.fontSize
1429
1434
  },
1430
1435
  children: [
1431
1436
  "(",
1432
- l.count,
1437
+ a.count,
1433
1438
  ")"
1434
1439
  ]
1435
1440
  }
1436
1441
  )
1437
1442
  ] })
1438
- ] }, d);
1443
+ ] }, s);
1439
1444
  })
1440
1445
  }
1441
1446
  );
1442
1447
  };
1443
1448
  export {
1444
- ki as C,
1445
- Ci as I,
1446
- Me as M,
1447
- Ii as S,
1448
- Si as T,
1449
- Wi as U,
1450
- zi as a,
1451
- Li as b,
1452
- $e as c,
1453
- vi as u
1449
+ Si as C,
1450
+ Ii as I,
1451
+ Pe as M,
1452
+ Di as S,
1453
+ Ci as T,
1454
+ zi as U,
1455
+ Mi as a,
1456
+ Wi as b,
1457
+ Re as c,
1458
+ Li as u
1454
1459
  };