@trinityui/design-system 2.1.4 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/CHANGELOG.md +301 -1
  2. package/MIGRATION.md +118 -0
  3. package/README.md +56 -2
  4. package/dist/Legend.js +872 -870
  5. package/dist/app-shell.js +5754 -5824
  6. package/dist/charts.js +3110 -3075
  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/DataTable/CellRenderers.d.ts.map +1 -1
  117. package/dist/components/DiffViewer/DiffViewer.d.ts +1 -1
  118. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  119. package/dist/components/DockLayout/DockLayout.d.ts +1 -1
  120. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  121. package/dist/components/DocumentCard/DocumentCard.d.ts +1 -1
  122. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
  123. package/dist/components/FileUpload/FileUpload.d.ts +1 -1
  124. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  125. package/dist/components/FilterBar/FilterBar.d.ts +42 -1
  126. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  127. package/dist/components/Footer.d.ts +17 -2
  128. package/dist/components/Footer.d.ts.map +1 -1
  129. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  130. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  131. package/dist/components/HtmlToMui/HtmlToMui.d.ts +1 -1
  132. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
  133. package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts +1 -1
  134. package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts.map +1 -1
  135. package/dist/components/IllustratedMessage.d.ts +2 -2
  136. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  137. package/dist/components/LandingPage/LandingPage.d.ts +1 -1
  138. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  139. package/dist/components/MentionsInput/MentionsInput.d.ts +2 -2
  140. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  141. package/dist/components/Modal/Modal.d.ts +1 -1
  142. package/dist/components/Modal/Modal.d.ts.map +1 -1
  143. package/dist/components/NestedMenu/NestedMenu.d.ts +6 -0
  144. package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -1
  145. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -3
  146. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  147. package/dist/components/PageHeader/PageHeader.d.ts +23 -5
  148. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  149. package/dist/components/Popper/Popper.d.ts +1 -1
  150. package/dist/components/Popper/Popper.d.ts.map +1 -1
  151. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +1 -1
  152. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  153. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +1 -1
  154. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
  155. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  156. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  157. package/dist/components/SimpleTable/SimpleTable.d.ts +7 -2
  158. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  159. package/dist/components/SplitPane/SplitPane.d.ts +51 -7
  160. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  161. package/dist/components/SplitPane/index.d.ts +1 -1
  162. package/dist/components/SplitPane/index.d.ts.map +1 -1
  163. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
  164. package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
  165. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  166. package/dist/components/Timeline/Timeline.d.ts +1 -1
  167. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  168. package/dist/components/Toast/Toast.d.ts +1 -1
  169. package/dist/components/Toast/Toast.d.ts.map +1 -1
  170. package/dist/components/TopNavHeader.d.ts +14 -2
  171. package/dist/components/TopNavHeader.d.ts.map +1 -1
  172. package/dist/components/TopNavWithSidebar.d.ts +34 -4
  173. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  174. package/dist/components/Tour/Tour.d.ts +1 -1
  175. package/dist/components/Tour/Tour.d.ts.map +1 -1
  176. package/dist/components/TransferList/TransferList.d.ts +1 -1
  177. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  178. package/dist/components/TreeView/TreeView.d.ts +1 -1
  179. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  180. package/dist/components/index.d.ts +0 -2
  181. package/dist/components/index.d.ts.map +1 -1
  182. package/dist/components/navigation/components.d.ts +5 -5
  183. package/dist/components/navigation/components.d.ts.map +1 -1
  184. package/dist/components/shared/NavBar.styles.d.ts +65 -0
  185. package/dist/components/shared/NavBar.styles.d.ts.map +1 -0
  186. package/dist/components/shared/useResizable.d.ts +82 -0
  187. package/dist/components/shared/useResizable.d.ts.map +1 -0
  188. package/dist/components/shared/warnDeprecated.d.ts +30 -0
  189. package/dist/components/shared/warnDeprecated.d.ts.map +1 -0
  190. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +1 -1
  191. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -1
  192. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +1 -1
  193. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  194. package/dist/components/templates/Settings/SettingsTemplate.d.ts +1 -1
  195. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  196. package/dist/data-table2.js +1383 -1382
  197. package/dist/data.js +120 -118
  198. package/dist/essentials.js +95 -93
  199. package/dist/form.d.ts.map +1 -1
  200. package/dist/forms.js +365 -46620
  201. package/dist/index.d.ts +44 -11
  202. package/dist/index.d.ts.map +1 -1
  203. package/dist/index.js +28110 -27701
  204. package/dist/theme.d.ts.map +1 -1
  205. package/dist/theme.js +42 -42
  206. package/dist/tokens.d.ts +16 -0
  207. package/dist/tokens.d.ts.map +1 -1
  208. package/dist/tokens.js +1 -1
  209. package/dist/trinity.css +864 -1025
  210. package/package.json +43 -38
  211. package/dist/assets/design-system.css +0 -1
  212. package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -39
  213. package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +0 -1
  214. package/dist/components/RichTextEditor/index.d.ts +0 -3
  215. 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/HelpOutlined";
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", sx: { 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
+ slots: { transition: 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,427 @@ 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
+ sx: { mt: p.spacing, alignItems: "center" },
715
+ children: [
716
+ n && (n.href ? /* @__PURE__ */ e(
717
+ T,
718
+ {
719
+ variant: "contained",
720
+ href: n.href,
721
+ onClick: n.onClick,
722
+ children: n.label
723
+ }
724
+ ) : /* @__PURE__ */ e(
725
+ T,
726
+ {
727
+ variant: "contained",
728
+ onClick: n.onClick,
729
+ children: n.label
730
+ }
731
+ )),
732
+ l && (l.href ? /* @__PURE__ */ e(
733
+ U,
734
+ {
735
+ href: l.href,
736
+ onClick: l.onClick,
737
+ underline: "hover",
738
+ sx: { cursor: "pointer" },
739
+ children: l.label
740
+ }
741
+ ) : /* @__PURE__ */ e(
742
+ U,
743
+ {
744
+ component: "button",
745
+ onClick: l.onClick,
746
+ underline: "hover",
747
+ sx: { cursor: "pointer" },
748
+ children: l.label
749
+ }
750
+ ))
751
+ ]
752
+ }
753
+ )
754
+ ]
755
+ }
756
+ );
757
+ }
758
+ ), zi = D.forwardRef(
759
+ function({
760
+ title: i = "Drag and drop your file",
761
+ description: t = "or click to browse from your computer",
762
+ acceptedTypes: o = "PNG, JPG, PDF up to 10MB",
763
+ browseLabel: n = "Browse Files",
764
+ onDrop: l,
765
+ onBrowse: a,
766
+ isDragging: s = !1,
767
+ size: g = "medium",
768
+ sx: x
769
+ }, p) {
770
+ const [v, w] = D.useState(s), h = K[g], L = (m) => {
771
+ m.preventDefault(), m.stopPropagation(), m.type === "dragenter" || m.type === "dragover" ? w(!0) : m.type === "dragleave" && w(!1);
772
+ };
773
+ return /* @__PURE__ */ f(
774
+ C,
775
+ {
776
+ ref: p,
777
+ onDragEnter: L,
778
+ onDragLeave: L,
779
+ onDragOver: L,
780
+ onDrop: (m) => {
781
+ m.preventDefault(), m.stopPropagation(), w(!1), m.dataTransfer.files && m.dataTransfer.files.length > 0 && l?.(m.dataTransfer.files);
782
+ },
783
+ sx: {
784
+ p: h.padding,
785
+ border: "2px dashed",
786
+ borderColor: v ? "primary.main" : "grey.300",
787
+ borderRadius: 3,
788
+ // 12px - consistent with cards
789
+ bgcolor: v ? "primary.50" : "grey.50",
790
+ textAlign: "center",
791
+ cursor: "pointer",
792
+ transition: "all 0.2s ease",
793
+ "&:hover": {
794
+ borderColor: "primary.main",
795
+ bgcolor: "primary.50"
796
+ },
797
+ ...x
798
+ },
799
+ onClick: a,
800
+ children: [
801
+ /* @__PURE__ */ e(C, { sx: { mb: 2 }, children: /* @__PURE__ */ e(X, { size: h.illustrationSize * 0.7 }) }),
802
+ /* @__PURE__ */ e(S, { variant: h.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
803
+ /* @__PURE__ */ e(S, { variant: h.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: t }),
804
+ /* @__PURE__ */ e(T, { variant: "outlined", size: g === "small" ? "small" : "medium", children: n }),
805
+ o && /* @__PURE__ */ e(S, { variant: "caption", color: "text.secondary", sx: { mt: 2, display: "block" }, children: o })
806
+ ]
807
+ }
808
+ );
809
+ }
810
+ ), c = I.colors.indicator, M = {
813
811
  // High Attention - Red
814
812
  error: {
815
- color: n.error.fg,
816
- backgroundColor: n.error.bg,
813
+ color: c.error.fg,
814
+ backgroundColor: c.error.bg,
817
815
  icon: "error",
818
816
  shape: "circle",
819
817
  severity: "high",
820
818
  label: "Error"
821
819
  },
822
820
  critical: {
823
- color: n.critical.fg,
824
- backgroundColor: n.critical.bg,
821
+ color: c.critical.fg,
822
+ backgroundColor: c.critical.bg,
825
823
  icon: "warning",
826
824
  shape: "hexagon",
827
825
  severity: "high",
828
826
  label: "Critical"
829
827
  },
830
828
  failed: {
831
- color: n.failed.fg,
832
- backgroundColor: n.failed.bg,
829
+ color: c.failed.fg,
830
+ backgroundColor: c.failed.bg,
833
831
  icon: "close",
834
832
  shape: "circle",
835
833
  severity: "high",
836
834
  label: "Failed"
837
835
  },
838
836
  rejected: {
839
- color: n.rejected.fg,
840
- backgroundColor: n.rejected.bg,
837
+ color: c.rejected.fg,
838
+ backgroundColor: c.rejected.bg,
841
839
  icon: "close",
842
840
  shape: "circle",
843
841
  severity: "high",
844
842
  label: "Rejected"
845
843
  },
846
844
  cancelled: {
847
- color: n.cancelled.fg,
848
- backgroundColor: n.cancelled.bg,
845
+ color: c.cancelled.fg,
846
+ backgroundColor: c.cancelled.bg,
849
847
  icon: "close",
850
848
  shape: "circle",
851
849
  severity: "neutral",
@@ -853,43 +851,43 @@ const Me = ({
853
851
  },
854
852
  // Medium Attention - Orange/Yellow
855
853
  warning: {
856
- color: n.warning.fg,
857
- backgroundColor: n.warning.bg,
858
- outlineColor: n.warning.outline,
854
+ color: c.warning.fg,
855
+ backgroundColor: c.warning.bg,
856
+ outlineColor: c.warning.outline,
859
857
  icon: "warning",
860
858
  shape: "triangle",
861
859
  severity: "medium",
862
860
  label: "Warning"
863
861
  },
864
862
  caution: {
865
- color: n.caution.fg,
866
- backgroundColor: n.caution.bg,
867
- outlineColor: n.caution.outline,
863
+ color: c.caution.fg,
864
+ backgroundColor: c.caution.bg,
865
+ outlineColor: c.caution.outline,
868
866
  icon: "warning",
869
867
  shape: "triangle",
870
868
  severity: "medium",
871
869
  label: "Caution"
872
870
  },
873
871
  pending: {
874
- color: n.pending.fg,
875
- backgroundColor: n.pending.bg,
876
- outlineColor: n.pending.outline,
872
+ color: c.pending.fg,
873
+ backgroundColor: c.pending.bg,
874
+ outlineColor: c.pending.outline,
877
875
  icon: "clock",
878
876
  shape: "circle",
879
877
  severity: "medium",
880
878
  label: "Pending"
881
879
  },
882
880
  "in-progress": {
883
- color: n.inProgress.fg,
884
- backgroundColor: n.inProgress.bg,
881
+ color: c.inProgress.fg,
882
+ backgroundColor: c.inProgress.bg,
885
883
  icon: "refresh",
886
884
  shape: "circle",
887
885
  severity: "medium",
888
886
  label: "In Progress"
889
887
  },
890
888
  running: {
891
- color: n.running.fg,
892
- backgroundColor: n.running.bg,
889
+ color: c.running.fg,
890
+ backgroundColor: c.running.bg,
893
891
  icon: "play",
894
892
  shape: "circle",
895
893
  severity: "medium",
@@ -897,40 +895,40 @@ const Me = ({
897
895
  },
898
896
  // Low Attention - Green
899
897
  success: {
900
- color: n.success.fg,
901
- backgroundColor: n.success.bg,
898
+ color: c.success.fg,
899
+ backgroundColor: c.success.bg,
902
900
  icon: "check-circle",
903
901
  shape: "circle",
904
902
  severity: "low",
905
903
  label: "Success"
906
904
  },
907
905
  complete: {
908
- color: n.complete.fg,
909
- backgroundColor: n.complete.bg,
906
+ color: c.complete.fg,
907
+ backgroundColor: c.complete.bg,
910
908
  icon: "check",
911
909
  shape: "circle",
912
910
  severity: "low",
913
911
  label: "Complete"
914
912
  },
915
913
  approved: {
916
- color: n.approved.fg,
917
- backgroundColor: n.approved.bg,
914
+ color: c.approved.fg,
915
+ backgroundColor: c.approved.bg,
918
916
  icon: "check-circle",
919
917
  shape: "circle",
920
918
  severity: "low",
921
919
  label: "Approved"
922
920
  },
923
921
  active: {
924
- color: n.active.fg,
925
- backgroundColor: n.active.bg,
922
+ color: c.active.fg,
923
+ backgroundColor: c.active.bg,
926
924
  icon: "check",
927
925
  shape: "circle",
928
926
  severity: "low",
929
927
  label: "Active"
930
928
  },
931
929
  enabled: {
932
- color: n.enabled.fg,
933
- backgroundColor: n.enabled.bg,
930
+ color: c.enabled.fg,
931
+ backgroundColor: c.enabled.bg,
934
932
  icon: "check",
935
933
  shape: "circle",
936
934
  severity: "low",
@@ -938,24 +936,24 @@ const Me = ({
938
936
  },
939
937
  // Informational - Blue
940
938
  info: {
941
- color: n.info.fg,
942
- backgroundColor: n.info.bg,
939
+ color: c.info.fg,
940
+ backgroundColor: c.info.bg,
943
941
  icon: "info",
944
942
  shape: "circle",
945
943
  severity: "info",
946
944
  label: "Info"
947
945
  },
948
946
  new: {
949
- color: n.new.fg,
950
- backgroundColor: n.new.bg,
947
+ color: c.new.fg,
948
+ backgroundColor: c.new.bg,
951
949
  icon: "star",
952
950
  shape: "circle",
953
951
  severity: "info",
954
952
  label: "New"
955
953
  },
956
954
  updated: {
957
- color: n.updated.fg,
958
- backgroundColor: n.updated.bg,
955
+ color: c.updated.fg,
956
+ backgroundColor: c.updated.bg,
959
957
  icon: "refresh",
960
958
  shape: "circle",
961
959
  severity: "info",
@@ -963,32 +961,32 @@ const Me = ({
963
961
  },
964
962
  // Neutral - Gray
965
963
  draft: {
966
- color: n.draft.fg,
967
- backgroundColor: n.draft.bg,
964
+ color: c.draft.fg,
965
+ backgroundColor: c.draft.bg,
968
966
  icon: "edit",
969
967
  shape: "circle",
970
968
  severity: "neutral",
971
969
  label: "Draft"
972
970
  },
973
971
  inactive: {
974
- color: n.inactive.fg,
975
- backgroundColor: n.inactive.bg,
972
+ color: c.inactive.fg,
973
+ backgroundColor: c.inactive.bg,
976
974
  icon: "remove",
977
975
  shape: "circle",
978
976
  severity: "neutral",
979
977
  label: "Inactive"
980
978
  },
981
979
  disabled: {
982
- color: n.disabled.fg,
983
- backgroundColor: n.disabled.bg,
980
+ color: c.disabled.fg,
981
+ backgroundColor: c.disabled.bg,
984
982
  icon: "close",
985
983
  shape: "circle",
986
984
  severity: "neutral",
987
985
  label: "Disabled"
988
986
  },
989
987
  unknown: {
990
- color: n.unknown.fg,
991
- backgroundColor: n.unknown.bg,
988
+ color: c.unknown.fg,
989
+ backgroundColor: c.unknown.bg,
992
990
  icon: "help",
993
991
  shape: "circle",
994
992
  severity: "neutral",
@@ -996,26 +994,26 @@ const Me = ({
996
994
  },
997
995
  // Special - Purple
998
996
  beta: {
999
- color: n.beta.fg,
1000
- backgroundColor: n.beta.bg,
997
+ color: c.beta.fg,
998
+ backgroundColor: c.beta.bg,
1001
999
  icon: "zap",
1002
1000
  shape: "diamond",
1003
1001
  severity: "info",
1004
1002
  label: "Beta"
1005
1003
  },
1006
1004
  experimental: {
1007
- color: n.experimental.fg,
1008
- backgroundColor: n.experimental.bg,
1005
+ color: c.experimental.fg,
1006
+ backgroundColor: c.experimental.bg,
1009
1007
  icon: "code",
1010
1008
  shape: "diamond",
1011
1009
  severity: "info",
1012
1010
  label: "Experimental"
1013
1011
  }
1014
- }, P = {
1012
+ }, B = {
1015
1013
  small: { icon: 16, shape: 8, fontSize: "0.75rem", dotSize: 8 },
1016
1014
  medium: { icon: 20, shape: 10, fontSize: "0.875rem", dotSize: 10 },
1017
1015
  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(
1016
+ }, 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
1017
  "rect",
1020
1018
  {
1021
1019
  x: "3",
@@ -1023,100 +1021,100 @@ const Me = ({
1023
1021
  width: "10",
1024
1022
  height: "10",
1025
1023
  rx: "1",
1026
- fill: r,
1027
- stroke: i,
1028
- strokeWidth: i ? 1.5 : 0,
1024
+ fill: i,
1025
+ stroke: t,
1026
+ strokeWidth: t ? 1.5 : 0,
1029
1027
  transform: "rotate(45 8 8)"
1030
1028
  }
1031
- ) }), ii = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1029
+ ) }), ti = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1032
1030
  "path",
1033
1031
  {
1034
1032
  d: "M8 2L14 14H2L8 2Z",
1035
- fill: r,
1036
- stroke: i,
1037
- strokeWidth: i ? 1.5 : 0,
1033
+ fill: i,
1034
+ stroke: t,
1035
+ strokeWidth: t ? 1.5 : 0,
1038
1036
  strokeLinejoin: "round"
1039
1037
  }
1040
- ) }), ti = ({ size: t, color: r, outline: i }) => /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1038
+ ) }), ri = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
1041
1039
  "polygon",
1042
1040
  {
1043
1041
  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
1042
+ fill: i,
1043
+ stroke: t,
1044
+ strokeWidth: t ? 1.5 : 0
1047
1045
  }
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: [
1046
+ ) }), Y = {
1047
+ circle: Ye,
1048
+ square: ei,
1049
+ diamond: ii,
1050
+ triangle: ti,
1051
+ hexagon: ri
1052
+ }, oi = (r, i, t, o, n, l) => {
1053
+ const a = M[r], s = B[i];
1054
+ return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
1057
1055
  /* @__PURE__ */ e(
1058
- T,
1056
+ E,
1059
1057
  {
1060
- name: l.icon,
1061
- size: r,
1062
- sx: { color: l.backgroundColor },
1058
+ name: a.icon,
1059
+ size: i,
1060
+ sx: { color: a.backgroundColor },
1063
1061
  "aria-hidden": "true"
1064
1062
  }
1065
1063
  ),
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: [
1064
+ o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
1065
+ ] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
1068
1066
  /* @__PURE__ */ e(
1069
- v,
1067
+ C,
1070
1068
  {
1071
1069
  sx: {
1072
1070
  display: "flex",
1073
1071
  alignItems: "center",
1074
1072
  justifyContent: "center",
1075
- width: d.icon + 8,
1076
- height: d.icon + 8,
1077
- borderRadius: `${L.borders.radius.circle}px`,
1073
+ width: s.icon + 8,
1074
+ height: s.icon + 8,
1075
+ borderRadius: `${I.borders.radius.circle}px`,
1078
1076
  // Perfect circle
1079
- backgroundColor: l.backgroundColor,
1080
- color: l.color
1077
+ backgroundColor: a.backgroundColor,
1078
+ color: a.color
1081
1079
  },
1082
1080
  "aria-hidden": "true",
1083
- children: /* @__PURE__ */ e(T, { name: l.icon, size: r === "large" ? "medium" : "small" })
1081
+ children: /* @__PURE__ */ e(E, { name: a.icon, size: i === "large" ? "medium" : "small" })
1084
1082
  }
1085
1083
  ),
1086
- o && /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: d.fontSize }, children: i })
1084
+ o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
1087
1085
  ] });
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,
1086
+ }, ni = (r, i, t, o, n, l, a) => {
1087
+ const s = M[r], g = B[i], x = n || s.shape, p = Y[x];
1088
+ return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...a, alignItems: "center" }, role: "status", children: [
1089
+ /* @__PURE__ */ e(C, { "aria-hidden": "true", children: /* @__PURE__ */ e(
1090
+ p,
1093
1091
  {
1094
1092
  size: g.shape * 1.6,
1095
- color: d.backgroundColor,
1096
- outline: a ? d.outlineColor : void 0
1093
+ color: s.backgroundColor,
1094
+ outline: l ? s.outlineColor : void 0
1097
1095
  }
1098
1096
  ) }),
1099
- o && /* @__PURE__ */ e(k, { variant: "body2", sx: { fontSize: g.fontSize }, children: i })
1097
+ o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: g.fontSize }, children: t })
1100
1098
  ] });
1101
- }, ni = (t, r, i, o) => {
1102
- const c = W[t], a = P[r];
1099
+ }, li = (r, i, t, o) => {
1100
+ const n = M[r], l = B[i];
1103
1101
  return /* @__PURE__ */ e(
1104
- v,
1102
+ C,
1105
1103
  {
1106
1104
  role: "status",
1107
- "aria-label": c.label,
1105
+ "aria-label": n.label,
1108
1106
  sx: {
1109
- width: a.dotSize,
1110
- height: a.dotSize,
1111
- borderRadius: `${L.borders.radius.circle}px`,
1107
+ width: l.dotSize,
1108
+ height: l.dotSize,
1109
+ borderRadius: `${I.borders.radius.circle}px`,
1112
1110
  // Perfect circle
1113
- backgroundColor: c.backgroundColor,
1111
+ backgroundColor: n.backgroundColor,
1114
1112
  flexShrink: 0,
1115
- ...i && {
1113
+ ...t && {
1116
1114
  animation: "statusPulse 2s infinite",
1117
1115
  "@keyframes statusPulse": {
1118
- "0%": { boxShadow: `0 0 0 0 ${c.backgroundColor}80` },
1119
- "70%": { boxShadow: `0 0 0 ${a.dotSize}px transparent` },
1116
+ "0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
1117
+ "70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
1120
1118
  "100%": { boxShadow: "0 0 0 0 transparent" }
1121
1119
  }
1122
1120
  },
@@ -1124,243 +1122,248 @@ const Me = ({
1124
1122
  }
1125
1123
  }
1126
1124
  );
1127
- }, li = (t, r, i, o, c, a, l) => {
1128
- const d = W[t];
1125
+ }, ci = (r, i, t, o, n, l, a) => {
1126
+ const s = M[r];
1129
1127
  return /* @__PURE__ */ e(
1130
- ve,
1128
+ Se,
1131
1129
  {
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,
1130
+ label: t,
1131
+ size: i,
1132
+ icon: o ? /* @__PURE__ */ e(E, { name: s.icon, size: "small", "aria-hidden": "true" }) : void 0,
1133
+ onClick: n,
1134
+ onDelete: l,
1137
1135
  role: "status",
1138
1136
  sx: {
1139
- backgroundColor: `${d.backgroundColor}20`,
1140
- color: d.backgroundColor,
1141
- borderColor: d.backgroundColor,
1137
+ backgroundColor: `${s.backgroundColor}20`,
1138
+ color: s.backgroundColor,
1139
+ borderColor: s.backgroundColor,
1142
1140
  "& .MuiChip-icon": {
1143
- color: d.backgroundColor
1141
+ color: s.backgroundColor
1144
1142
  },
1145
1143
  "& .MuiChip-deleteIcon": {
1146
- color: d.backgroundColor,
1144
+ color: s.backgroundColor,
1147
1145
  "&:hover": {
1148
- color: d.backgroundColor
1146
+ color: s.backgroundColor
1149
1147
  }
1150
1148
  },
1151
- ...l
1149
+ ...a
1152
1150
  },
1153
1151
  variant: "outlined"
1154
1152
  }
1155
1153
  );
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: [
1154
+ }, ai = (r, i, t, o, n, l) => {
1155
+ const a = M[r], s = B[i];
1156
+ return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
1159
1157
  o && /* @__PURE__ */ e(
1160
- v,
1158
+ C,
1161
1159
  {
1162
1160
  "aria-hidden": "true",
1163
1161
  sx: {
1164
- width: d.dotSize,
1165
- height: d.dotSize,
1166
- borderRadius: `${L.borders.radius.circle}px`,
1162
+ width: s.dotSize,
1163
+ height: s.dotSize,
1164
+ borderRadius: `${I.borders.radius.circle}px`,
1167
1165
  // Perfect circle
1168
- backgroundColor: l.backgroundColor,
1166
+ backgroundColor: a.backgroundColor,
1169
1167
  flexShrink: 0
1170
1168
  }
1171
1169
  }
1172
1170
  ),
1173
- c && !o && /* @__PURE__ */ e(
1174
- T,
1171
+ n && !o && /* @__PURE__ */ e(
1172
+ E,
1175
1173
  {
1176
- name: l.icon,
1177
- size: r === "large" ? "medium" : "small",
1178
- sx: { color: l.backgroundColor },
1174
+ name: a.icon,
1175
+ size: i === "large" ? "medium" : "small",
1176
+ sx: { color: a.backgroundColor },
1179
1177
  "aria-hidden": "true"
1180
1178
  }
1181
1179
  ),
1182
1180
  /* @__PURE__ */ e(
1183
- k,
1181
+ S,
1184
1182
  {
1185
1183
  variant: "body2",
1186
1184
  sx: {
1187
- fontSize: d.fontSize,
1188
- color: l.backgroundColor,
1185
+ fontSize: s.fontSize,
1186
+ color: a.backgroundColor,
1189
1187
  fontWeight: 500
1190
1188
  },
1191
- children: i
1189
+ children: t
1192
1190
  }
1193
1191
  )
1194
1192
  ] });
1195
- }, ai = (t, r, i, o, c, a, l) => {
1196
- const d = W[t];
1193
+ }, si = (r, i, t, o, n, l, a) => {
1194
+ const s = M[r];
1197
1195
  return /* @__PURE__ */ e(
1198
- ke,
1196
+ ve,
1199
1197
  {
1200
- badgeContent: o ? void 0 : i,
1201
- max: c,
1198
+ badgeContent: o ? void 0 : t,
1199
+ max: n,
1202
1200
  variant: o ? "dot" : "standard",
1203
- invisible: a,
1201
+ invisible: l,
1204
1202
  sx: {
1205
1203
  "& .MuiBadge-badge": {
1206
- backgroundColor: d.backgroundColor,
1207
- color: d.color,
1204
+ backgroundColor: s.backgroundColor,
1205
+ color: s.color,
1208
1206
  fontSize: "0.7rem",
1209
1207
  minWidth: o ? 8 : 18,
1210
1208
  height: o ? 8 : 18,
1211
1209
  padding: o ? 0 : "0 4px"
1212
1210
  },
1213
- ...l
1211
+ ...a
1214
1212
  },
1215
- children: r
1213
+ children: i
1216
1214
  }
1217
1215
  );
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()}`;
1216
+ }, di = (r, i, t, o, n, l, a, s, g) => {
1217
+ const x = B[i], p = r >= 0, h = l !== !1 ? p ? a || "#24a148" : s || "#da1e28" : "inherit", L = () => {
1218
+ const z = Math.abs(r), m = p ? "+" : "-";
1219
+ return o ? `${m}${o}${z.toLocaleString()}` : t ? `${m}${z}%` : `${m}${z.toLocaleString()}`;
1222
1220
  };
1223
1221
  return /* @__PURE__ */ f(
1224
- z,
1222
+ P,
1225
1223
  {
1226
1224
  direction: "row",
1227
- alignItems: "center",
1228
1225
  spacing: 0.5,
1229
- sx: { color: I, ...g },
1226
+ sx: { color: h, ...g, alignItems: "center" },
1230
1227
  role: "status",
1231
- "aria-label": `${s ? "Increased" : "Decreased"} by ${y()}`,
1228
+ "aria-label": `${p ? "Increased" : "Decreased"} by ${L()}`,
1232
1229
  children: [
1233
- c !== !1 && /* @__PURE__ */ e(
1234
- T,
1230
+ n !== !1 && /* @__PURE__ */ e(
1231
+ E,
1235
1232
  {
1236
- name: s ? "trending-up" : "trending-down",
1237
- size: r === "large" ? "medium" : "small",
1233
+ name: p ? "trending-up" : "trending-down",
1234
+ size: i === "large" ? "medium" : "small",
1238
1235
  "aria-hidden": "true"
1239
1236
  }
1240
1237
  ),
1241
1238
  /* @__PURE__ */ e(
1242
- k,
1239
+ S,
1243
1240
  {
1244
1241
  variant: "body2",
1245
1242
  sx: {
1246
- fontSize: u.fontSize,
1243
+ fontSize: x.fontSize,
1247
1244
  fontWeight: 500,
1248
1245
  fontFamily: "monospace"
1249
1246
  },
1250
- children: y()
1247
+ children: L()
1251
1248
  }
1252
1249
  )
1253
1250
  ]
1254
1251
  }
1255
1252
  );
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;
1253
+ }, Di = D.forwardRef(
1254
+ function(i, t) {
1255
+ const {
1256
+ variant: o = "icon",
1257
+ status: n = "info",
1258
+ size: l = "medium",
1259
+ label: a,
1260
+ showLabel: s = !0,
1261
+ sx: g,
1262
+ "aria-label": x
1263
+ } = i, p = M[n], v = a || p.label, w = (() => {
1264
+ switch (o) {
1265
+ case "icon":
1266
+ case void 0:
1267
+ return oi(
1268
+ n,
1269
+ l,
1270
+ v,
1271
+ s,
1272
+ i.iconOnly || !1,
1273
+ g
1274
+ );
1275
+ case "shape": {
1276
+ const h = i;
1277
+ return ni(
1278
+ n,
1279
+ l,
1280
+ v,
1281
+ s,
1282
+ h.shape,
1283
+ h.showOutline ?? !0,
1284
+ g
1285
+ );
1286
+ }
1287
+ case "dot":
1288
+ return li(n, l, i.pulse || !1, g);
1289
+ case "chip": {
1290
+ const h = i;
1291
+ return ci(
1292
+ n,
1293
+ l === "large" ? "medium" : l,
1294
+ v,
1295
+ h.showIcon ?? !0,
1296
+ h.onClick,
1297
+ h.onDelete,
1298
+ g
1299
+ );
1300
+ }
1301
+ case "inline": {
1302
+ const h = i;
1303
+ return ai(
1304
+ n,
1305
+ l,
1306
+ v,
1307
+ h.showDot ?? !0,
1308
+ h.showIcon ?? !1,
1309
+ g
1310
+ );
1311
+ }
1312
+ case "badge": {
1313
+ const h = i;
1314
+ return si(
1315
+ n,
1316
+ h.children,
1317
+ h.count,
1318
+ h.dot,
1319
+ h.max ?? 999,
1320
+ h.invisible,
1321
+ g
1322
+ );
1323
+ }
1324
+ case "differential": {
1325
+ const h = i;
1326
+ return di(
1327
+ h.value,
1328
+ l,
1329
+ h.percentage || !1,
1330
+ h.currency,
1331
+ h.showIcon,
1332
+ h.showColor,
1333
+ h.positiveColor,
1334
+ h.negativeColor,
1335
+ g
1336
+ );
1337
+ }
1338
+ default:
1339
+ return null;
1340
+ }
1341
+ })();
1342
+ return !w || !D.isValidElement(w) ? w : D.cloneElement(w, {
1343
+ ref: t
1344
+ });
1342
1345
  }
1343
- }, di = ({
1344
- status: t,
1345
- size: r = "medium",
1346
- pulse: i = !1,
1346
+ ), hi = ({
1347
+ status: r,
1348
+ size: i = "medium",
1349
+ pulse: t = !1,
1347
1350
  sx: o
1348
1351
  }) => {
1349
- const c = W[t], a = P[r];
1352
+ const n = M[r], l = B[i];
1350
1353
  return /* @__PURE__ */ e(
1351
- v,
1354
+ C,
1352
1355
  {
1353
1356
  sx: {
1354
- width: a.dotSize,
1355
- height: a.dotSize,
1356
- borderRadius: `${L.borders.radius.circle}px`,
1357
+ width: l.dotSize,
1358
+ height: l.dotSize,
1359
+ borderRadius: `${I.borders.radius.circle}px`,
1357
1360
  // Perfect circle
1358
- backgroundColor: c.backgroundColor,
1359
- ...i && {
1361
+ backgroundColor: n.backgroundColor,
1362
+ ...t && {
1360
1363
  animation: "pulse 2s infinite",
1361
1364
  "@keyframes pulse": {
1362
- "0%": { boxShadow: `0 0 0 0 ${c.backgroundColor}80` },
1363
- "70%": { boxShadow: `0 0 0 ${a.dotSize}px transparent` },
1365
+ "0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
1366
+ "70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
1364
1367
  "100%": { boxShadow: "0 0 0 0 transparent" }
1365
1368
  }
1366
1369
  },
@@ -1368,87 +1371,86 @@ const Me = ({
1368
1371
  }
1369
1372
  }
1370
1373
  );
1371
- }, zi = ({
1372
- items: t,
1373
- variant: r = "dot",
1374
- direction: i = "row",
1374
+ }, Mi = ({
1375
+ items: r,
1376
+ variant: i = "dot",
1377
+ direction: t = "row",
1375
1378
  size: o = "small",
1376
- sx: c
1379
+ sx: n
1377
1380
  }) => {
1378
- const a = P[o];
1381
+ const l = B[o];
1379
1382
  return /* @__PURE__ */ e(
1380
- z,
1383
+ P,
1381
1384
  {
1382
- direction: i,
1383
- spacing: i === "row" ? 3 : 1,
1384
- flexWrap: "wrap",
1385
+ direction: t,
1386
+ spacing: t === "row" ? 3 : 1,
1385
1387
  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,
1388
+ sx: { ...n, flexWrap: "wrap" },
1389
+ children: r.map((a, s) => {
1390
+ const g = M[a.status], x = a.label || g.label;
1391
+ return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
1392
+ i === "icon" && /* @__PURE__ */ e(
1393
+ C,
1392
1394
  {
1393
1395
  sx: {
1394
1396
  display: "flex",
1395
1397
  alignItems: "center",
1396
1398
  justifyContent: "center",
1397
- width: a.icon + 4,
1398
- height: a.icon + 4,
1399
- borderRadius: `${L.borders.radius.circle}px`,
1399
+ width: l.icon + 4,
1400
+ height: l.icon + 4,
1401
+ borderRadius: `${I.borders.radius.circle}px`,
1400
1402
  // Perfect circle
1401
1403
  backgroundColor: g.backgroundColor,
1402
1404
  color: g.color
1403
1405
  },
1404
- children: /* @__PURE__ */ e(T, { name: g.icon, size: "small" })
1406
+ children: /* @__PURE__ */ e(E, { name: g.icon, size: "small" })
1405
1407
  }
1406
1408
  ),
1407
- r === "shape" && (() => {
1408
- const s = X[g.shape];
1409
+ i === "shape" && (() => {
1410
+ const p = Y[g.shape];
1409
1411
  return /* @__PURE__ */ e(
1410
- s,
1412
+ p,
1411
1413
  {
1412
- size: a.shape * 1.4,
1414
+ size: l.shape * 1.4,
1413
1415
  color: g.backgroundColor,
1414
1416
  outline: g.outlineColor
1415
1417
  }
1416
1418
  );
1417
1419
  })(),
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,
1420
+ i === "dot" && /* @__PURE__ */ e(hi, { status: a.status, size: o }),
1421
+ /* @__PURE__ */ f(S, { variant: "body2", sx: { fontSize: l.fontSize }, children: [
1422
+ x,
1423
+ a.count !== void 0 && /* @__PURE__ */ f(
1424
+ S,
1423
1425
  {
1424
1426
  component: "span",
1425
1427
  sx: {
1426
1428
  ml: 0.5,
1427
1429
  color: "text.secondary",
1428
- fontSize: a.fontSize
1430
+ fontSize: l.fontSize
1429
1431
  },
1430
1432
  children: [
1431
1433
  "(",
1432
- l.count,
1434
+ a.count,
1433
1435
  ")"
1434
1436
  ]
1435
1437
  }
1436
1438
  )
1437
1439
  ] })
1438
- ] }, d);
1440
+ ] }, s);
1439
1441
  })
1440
1442
  }
1441
1443
  );
1442
1444
  };
1443
1445
  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
1446
+ Si as C,
1447
+ Ii as I,
1448
+ Pe as M,
1449
+ Di as S,
1450
+ Ci as T,
1451
+ zi as U,
1452
+ Mi as a,
1453
+ Wi as b,
1454
+ Re as c,
1455
+ Li as u
1454
1456
  };