@trinityui/design-system 2.1.3 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +628 -1
- package/MIGRATION.md +118 -0
- package/README.md +546 -136
- package/dist/Legend.js +873 -868
- package/dist/app-shell.js +5705 -5757
- package/dist/charts.js +2399 -2407
- package/dist/components/AI/AIActions.d.ts +3 -3
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +1 -1
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +63 -188
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +195 -0
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -0
- package/dist/components/AI/AIChainOfThought.utils.d.ts +20 -0
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -0
- package/dist/components/AI/AIChat.d.ts +5 -5
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIContainer.d.ts +3 -3
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +1 -1
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AILabel.d.ts +1 -1
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +15 -2
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIRelatedQuestions.d.ts +1 -1
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +33 -26
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AISources.d.ts +2 -2
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +2 -2
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +59 -19
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AIVisuals.d.ts +4 -4
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +2 -2
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/ChatHeader.d.ts +1 -1
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +21 -1
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InsightEngine.d.ts +29 -1
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/QueryInput.d.ts +1 -1
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +1 -1
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +1 -1
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/tokens.d.ts +120 -10
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +1 -1
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +3 -2
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +45 -1
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +10 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +57 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +26 -1
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +6 -8
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/CustomTooltip.d.ts +4 -3
- package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts +2 -2
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +7 -1
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +10 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/Cron/Cron.d.ts +1 -1
- package/dist/components/Cron/Cron.d.ts.map +1 -1
- package/dist/components/DataCard/DataCard.d.ts +1 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DiffViewer/DiffViewer.d.ts +1 -1
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/DockLayout/DockLayout.d.ts +1 -1
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +77 -0
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -0
- package/dist/components/DocumentCard/index.d.ts +3 -0
- package/dist/components/DocumentCard/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +42 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/Footer.d.ts +17 -2
- package/dist/components/Footer.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts +39 -0
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -0
- package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts +35 -0
- package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts.map +1 -0
- package/dist/components/HtmlToMui/index.d.ts +4 -0
- package/dist/components/HtmlToMui/index.d.ts.map +1 -0
- package/dist/components/IllustratedMessage.d.ts +2 -2
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/MentionsInput/MentionsInput.d.ts +1 -1
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/NestedMenu/NestedMenu.d.ts +6 -0
- package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -3
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +23 -5
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +1 -1
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +62 -0
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -0
- package/dist/components/SandboxedIframeRenderer/index.d.ts +3 -0
- package/dist/components/SandboxedIframeRenderer/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +7 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +51 -7
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/SplitPane/index.d.ts +1 -1
- package/dist/components/SplitPane/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +14 -2
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +34 -4
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +1 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +1 -1
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/navigation/components.d.ts +5 -5
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/NavBar.styles.d.ts +65 -0
- package/dist/components/shared/NavBar.styles.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +82 -0
- package/dist/components/shared/useResizable.d.ts.map +1 -0
- package/dist/components/shared/warnDeprecated.d.ts +30 -0
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -0
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +1 -1
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/data-table2.js +18194 -15721
- package/dist/data.js +116 -114
- package/dist/essentials.js +91 -89
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +358 -45092
- package/dist/index.d.ts +44 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30203 -29843
- package/dist/theme.d.ts +4 -1
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +188 -161
- package/dist/tokens.d.ts +16 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -1
- package/dist/trinity.css +862 -1014
- package/package.json +69 -27
- package/dist/assets/design-system.css +0 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -39
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +0 -1
- package/dist/components/RichTextEditor/index.d.ts +0 -3
- package/dist/components/RichTextEditor/index.d.ts.map +0 -1
package/dist/Legend.js
CHANGED
|
@@ -1,124 +1,125 @@
|
|
|
1
|
-
import { jsxs as f, jsx as e, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { s as
|
|
11
|
-
function
|
|
12
|
-
const
|
|
1
|
+
import { jsxs as f, jsx as e, Fragment as re } from "react/jsx-runtime";
|
|
2
|
+
import D, { useState as O, useCallback as W, useRef as oe, createContext as ne, useContext as le } from "react";
|
|
3
|
+
import { useTheme as ce, Dialog as ae, DialogTitle as se, Box as C, Typography as S, IconButton as de, DialogContent as he, DialogContentText as ge, DialogActions as fe, Button as T, CircularProgress as ue, Portal as pe, Snackbar as xe, Alert as ye, AlertTitle as me, Slide as we, Fade as be, Grow as ke, Stack as P, Link as U, Badge as ve, Chip as Se } from "@mui/material";
|
|
4
|
+
import Le from "@mui/icons-material/Close";
|
|
5
|
+
import Ce from "@mui/icons-material/CheckCircle";
|
|
6
|
+
import We from "@mui/icons-material/Error";
|
|
7
|
+
import Ie from "@mui/icons-material/Warning";
|
|
8
|
+
import ze from "@mui/icons-material/Info";
|
|
9
|
+
import De from "@mui/icons-material/HelpOutline";
|
|
10
|
+
import { s as I, b as d, I as E } from "./app-shell.js";
|
|
11
|
+
function Me(r) {
|
|
12
|
+
const i = r.palette.trinity;
|
|
13
13
|
return {
|
|
14
14
|
default: {
|
|
15
15
|
icon: null,
|
|
16
|
-
color:
|
|
16
|
+
color: i.interactive.default,
|
|
17
17
|
primaryColor: "primary"
|
|
18
18
|
},
|
|
19
19
|
info: {
|
|
20
|
-
icon: /* @__PURE__ */ e(
|
|
21
|
-
color:
|
|
20
|
+
icon: /* @__PURE__ */ e(ze, {}),
|
|
21
|
+
color: i.status.info.text,
|
|
22
22
|
primaryColor: "info"
|
|
23
23
|
},
|
|
24
24
|
success: {
|
|
25
|
-
icon: /* @__PURE__ */ e(
|
|
26
|
-
color:
|
|
25
|
+
icon: /* @__PURE__ */ e(Ce, {}),
|
|
26
|
+
color: i.status.success.text,
|
|
27
27
|
primaryColor: "success"
|
|
28
28
|
},
|
|
29
29
|
warning: {
|
|
30
|
-
icon: /* @__PURE__ */ e(
|
|
31
|
-
color:
|
|
30
|
+
icon: /* @__PURE__ */ e(Ie, {}),
|
|
31
|
+
color: i.status.warning.text,
|
|
32
32
|
primaryColor: "warning"
|
|
33
33
|
},
|
|
34
34
|
danger: {
|
|
35
|
-
icon: /* @__PURE__ */ e(
|
|
36
|
-
color:
|
|
35
|
+
icon: /* @__PURE__ */ e(We, {}),
|
|
36
|
+
color: i.status.error.text,
|
|
37
37
|
primaryColor: "error"
|
|
38
38
|
},
|
|
39
39
|
confirm: {
|
|
40
|
-
icon: /* @__PURE__ */ e(
|
|
41
|
-
color:
|
|
40
|
+
icon: /* @__PURE__ */ e(De, {}),
|
|
41
|
+
color: i.interactive.default,
|
|
42
42
|
primaryColor: "primary"
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
open:
|
|
48
|
-
onClose:
|
|
49
|
-
title:
|
|
50
|
-
children:
|
|
51
|
-
variant:
|
|
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:
|
|
54
|
-
secondaryAction:
|
|
55
|
-
onSecondaryAction:
|
|
56
|
-
loading:
|
|
57
|
-
primaryDisabled:
|
|
58
|
-
showCloseButton:
|
|
59
|
-
disableBackdropClick:
|
|
60
|
-
disableEscapeKeyDown:
|
|
61
|
-
maxWidth:
|
|
62
|
-
fullWidth:
|
|
63
|
-
fullScreenMobile:
|
|
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:
|
|
66
|
-
sx:
|
|
67
|
-
})
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
if (
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
|
|
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
|
|
76
|
+
await Z;
|
|
77
77
|
} finally {
|
|
78
|
-
|
|
78
|
+
_(!1);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
}, V =
|
|
82
|
+
}, te = () => {
|
|
83
|
+
x?.(), t();
|
|
84
|
+
}, V = p || $, A = D.useId(), N = D.useId();
|
|
85
85
|
return /* @__PURE__ */ f(
|
|
86
|
-
|
|
86
|
+
ae,
|
|
87
87
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"aria-
|
|
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:
|
|
98
|
+
borderRadius: I.borders.radiusPx.lg,
|
|
98
99
|
// 12px
|
|
99
|
-
...
|
|
100
|
+
...y
|
|
100
101
|
}
|
|
101
102
|
},
|
|
102
103
|
children: [
|
|
103
|
-
(
|
|
104
|
-
|
|
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:
|
|
112
|
+
pr: w ? 6 : 3
|
|
112
113
|
},
|
|
113
114
|
children: [
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
R.icon && /* @__PURE__ */ e(
|
|
116
|
+
C,
|
|
116
117
|
{
|
|
117
118
|
sx: {
|
|
118
|
-
width:
|
|
119
|
+
width: I.iconSize.display + 4,
|
|
119
120
|
// 40px - prominent icon with frame
|
|
120
|
-
height:
|
|
121
|
-
borderRadius: `${
|
|
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:
|
|
130
|
-
fontSize:
|
|
130
|
+
color: R.color,
|
|
131
|
+
fontSize: I.iconSize.prominent
|
|
131
132
|
// 24px
|
|
132
133
|
}
|
|
133
134
|
},
|
|
134
|
-
children:
|
|
135
|
+
children: R.icon
|
|
135
136
|
}
|
|
136
137
|
),
|
|
137
|
-
/* @__PURE__ */ e(
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
/* @__PURE__ */ e(S, { variant: "h6", component: "span", fontWeight: 600, children: o }),
|
|
139
|
+
w && /* @__PURE__ */ e(
|
|
140
|
+
de,
|
|
140
141
|
{
|
|
141
|
-
onClick:
|
|
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(
|
|
151
|
+
children: /* @__PURE__ */ e(Le, {})
|
|
151
152
|
}
|
|
152
153
|
)
|
|
153
154
|
]
|
|
154
155
|
}
|
|
155
156
|
),
|
|
156
|
-
/* @__PURE__ */ e(
|
|
157
|
-
!
|
|
158
|
-
|
|
159
|
-
|
|
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:
|
|
162
|
+
onClick: te,
|
|
162
163
|
disabled: V,
|
|
163
164
|
color: "inherit",
|
|
164
|
-
children:
|
|
165
|
+
children: g
|
|
165
166
|
}
|
|
166
167
|
),
|
|
167
168
|
a && /* @__PURE__ */ e(
|
|
168
|
-
|
|
169
|
+
T,
|
|
169
170
|
{
|
|
170
|
-
onClick:
|
|
171
|
-
disabled:
|
|
171
|
+
onClick: ie,
|
|
172
|
+
disabled: v || V,
|
|
172
173
|
variant: "contained",
|
|
173
|
-
color:
|
|
174
|
-
startIcon: V ? /* @__PURE__ */ e(
|
|
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
|
-
},
|
|
183
|
-
open:
|
|
184
|
-
onClose:
|
|
185
|
-
onConfirm:
|
|
183
|
+
}), Si = ({
|
|
184
|
+
open: r,
|
|
185
|
+
onClose: i,
|
|
186
|
+
onConfirm: t,
|
|
186
187
|
title: o = "Confirm Action",
|
|
187
|
-
message:
|
|
188
|
-
confirmLabel:
|
|
189
|
-
cancelLabel:
|
|
190
|
-
variant:
|
|
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
|
-
|
|
194
|
+
Pe,
|
|
194
195
|
{
|
|
195
|
-
open:
|
|
196
|
-
onClose:
|
|
196
|
+
open: r,
|
|
197
|
+
onClose: i,
|
|
197
198
|
title: o,
|
|
198
|
-
variant:
|
|
199
|
-
primaryAction:
|
|
200
|
-
onPrimaryAction:
|
|
201
|
-
secondaryAction:
|
|
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(
|
|
205
|
+
children: /* @__PURE__ */ e(S, { color: "text.secondary", children: n })
|
|
205
206
|
}
|
|
206
|
-
),
|
|
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
|
-
},
|
|
215
|
-
const [
|
|
216
|
-
(
|
|
217
|
-
|
|
218
|
-
...
|
|
219
|
-
...
|
|
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 =
|
|
225
|
-
|
|
225
|
+
), o = W(() => {
|
|
226
|
+
i((n) => ({ ...n, isOpen: !1 }));
|
|
226
227
|
}, []);
|
|
227
|
-
return { confirm:
|
|
228
|
-
},
|
|
229
|
-
const [
|
|
230
|
-
return { vertical:
|
|
231
|
-
},
|
|
232
|
-
switch (
|
|
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
|
|
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
|
|
241
|
+
return q;
|
|
241
242
|
}
|
|
242
|
-
},
|
|
243
|
-
id:
|
|
244
|
-
message:
|
|
245
|
-
title:
|
|
246
|
-
severity:
|
|
247
|
-
duration:
|
|
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:
|
|
250
|
-
position:
|
|
251
|
-
transition:
|
|
252
|
-
dismissible:
|
|
253
|
-
open:
|
|
254
|
-
onClose:
|
|
255
|
-
})
|
|
256
|
-
const
|
|
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
|
-
|
|
259
|
+
xe,
|
|
259
260
|
{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
ref: h,
|
|
262
|
+
open: v,
|
|
263
|
+
autoHideDuration: l,
|
|
264
|
+
onClose: w,
|
|
265
|
+
anchorOrigin: L,
|
|
266
|
+
TransitionComponent: z,
|
|
265
267
|
children: /* @__PURE__ */ f(
|
|
266
|
-
|
|
268
|
+
ye,
|
|
267
269
|
{
|
|
268
|
-
severity:
|
|
270
|
+
severity: n,
|
|
269
271
|
variant: "filled",
|
|
270
|
-
onClose:
|
|
271
|
-
action: a ? /* @__PURE__ */ e(
|
|
272
|
-
|
|
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
|
-
|
|
285
|
-
|
|
286
|
+
o && /* @__PURE__ */ e(me, { children: o }),
|
|
287
|
+
t
|
|
286
288
|
]
|
|
287
289
|
}
|
|
288
290
|
)
|
|
289
291
|
}
|
|
290
292
|
);
|
|
291
|
-
},
|
|
292
|
-
children:
|
|
293
|
-
defaultPosition:
|
|
294
|
-
defaultDuration:
|
|
293
|
+
}), Ci = ({
|
|
294
|
+
children: r,
|
|
295
|
+
defaultPosition: i = "top-right",
|
|
296
|
+
defaultDuration: t = 5e3,
|
|
295
297
|
maxToasts: o = 5,
|
|
296
|
-
defaultTransition:
|
|
298
|
+
defaultTransition: n = "slide"
|
|
297
299
|
}) => {
|
|
298
|
-
const [
|
|
299
|
-
(
|
|
300
|
-
const
|
|
301
|
-
...
|
|
302
|
-
id:
|
|
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:
|
|
305
|
-
duration:
|
|
306
|
-
transition:
|
|
307
|
-
dismissible:
|
|
306
|
+
position: u.position ?? i,
|
|
307
|
+
duration: u.duration ?? t,
|
|
308
|
+
transition: u.transition ?? n,
|
|
309
|
+
dismissible: u.dismissible ?? !0
|
|
308
310
|
};
|
|
309
|
-
return
|
|
310
|
-
const $ = [...
|
|
311
|
+
return a((j) => {
|
|
312
|
+
const $ = [...j, b];
|
|
311
313
|
return $.length > o ? $.slice(-o) : $;
|
|
312
|
-
}),
|
|
314
|
+
}), y;
|
|
313
315
|
},
|
|
314
|
-
[g,
|
|
315
|
-
),
|
|
316
|
-
|
|
317
|
-
(
|
|
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
|
-
|
|
321
|
+
a((y) => y.filter((b) => b.id !== u));
|
|
320
322
|
}, 300);
|
|
321
|
-
}, []),
|
|
322
|
-
|
|
323
|
-
|
|
323
|
+
}, []), v = W(() => {
|
|
324
|
+
a((u) => u.map((y) => ({ ...y, open: !1 }))), setTimeout(() => {
|
|
325
|
+
a([]);
|
|
324
326
|
}, 300);
|
|
325
|
-
}, []),
|
|
326
|
-
(
|
|
327
|
-
[
|
|
328
|
-
),
|
|
329
|
-
(
|
|
330
|
-
[
|
|
331
|
-
),
|
|
332
|
-
(
|
|
333
|
-
[
|
|
334
|
-
),
|
|
335
|
-
(
|
|
336
|
-
[
|
|
337
|
-
),
|
|
338
|
-
(
|
|
339
|
-
[
|
|
340
|
-
),
|
|
341
|
-
toast:
|
|
342
|
-
success:
|
|
343
|
-
info:
|
|
344
|
-
warning:
|
|
345
|
-
error:
|
|
346
|
-
dismiss:
|
|
347
|
-
dismissAll:
|
|
348
|
-
},
|
|
349
|
-
const
|
|
350
|
-
return
|
|
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(
|
|
353
|
-
|
|
354
|
-
/* @__PURE__ */ e(
|
|
355
|
-
|
|
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
|
-
...
|
|
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:
|
|
371
|
+
children: y.map((b) => /* @__PURE__ */ e(Re, { ...b, onClose: () => p(b.id) }, b.id))
|
|
370
372
|
},
|
|
371
|
-
|
|
373
|
+
u
|
|
372
374
|
)) })
|
|
373
375
|
] });
|
|
374
|
-
},
|
|
375
|
-
const
|
|
376
|
-
return
|
|
377
|
-
},
|
|
378
|
-
const
|
|
379
|
-
if (!
|
|
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
|
|
382
|
-
},
|
|
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
|
-
},
|
|
404
|
+
}, K = {
|
|
403
405
|
small: {
|
|
404
406
|
illustrationSize: 120,
|
|
405
407
|
titleVariant: "subtitle1",
|
|
@@ -421,431 +423,428 @@ const Me = ({
|
|
|
421
423
|
spacing: 4,
|
|
422
424
|
padding: 6
|
|
423
425
|
}
|
|
424
|
-
},
|
|
425
|
-
size:
|
|
426
|
-
primaryColor:
|
|
427
|
-
secondaryColor:
|
|
428
|
-
accentColor: o =
|
|
429
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
430
|
-
/* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill:
|
|
431
|
-
/* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill:
|
|
432
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill:
|
|
433
|
-
/* @__PURE__ */ e("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill:
|
|
434
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill:
|
|
435
|
-
/* @__PURE__ */ e("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill:
|
|
436
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill:
|
|
437
|
-
/* @__PURE__ */ e("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill:
|
|
438
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "35", fill: "white", stroke:
|
|
439
|
-
/* @__PURE__ */ e("text", { x: "100", y: "122", textAnchor: "middle", fill:
|
|
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:
|
|
442
|
-
primaryColor:
|
|
443
|
-
secondaryColor:
|
|
444
|
-
accentColor: o =
|
|
445
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
446
|
-
/* @__PURE__ */ e("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill:
|
|
447
|
-
/* @__PURE__ */ e("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: "white", stroke:
|
|
448
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill:
|
|
449
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill:
|
|
450
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill:
|
|
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:
|
|
456
|
+
/* @__PURE__ */ e("rect", { x: "-5", y: "2", width: "5", height: "6", fill: i })
|
|
455
457
|
] })
|
|
456
458
|
] }), je = ({
|
|
457
|
-
size:
|
|
458
|
-
primaryColor:
|
|
459
|
-
secondaryColor:
|
|
460
|
-
accentColor: o =
|
|
461
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
462
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill:
|
|
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:
|
|
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:
|
|
471
|
-
/* @__PURE__ */ e("circle", { cx: "160", cy: "40", r: "2", fill:
|
|
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
|
-
] }),
|
|
475
|
-
size:
|
|
476
|
-
primaryColor:
|
|
477
|
-
secondaryColor:
|
|
478
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
479
|
-
/* @__PURE__ */ e("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill:
|
|
480
|
-
/* @__PURE__ */ e("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: "white", stroke:
|
|
481
|
-
/* @__PURE__ */ e("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: "white", stroke:
|
|
482
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill:
|
|
483
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill:
|
|
484
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill:
|
|
485
|
-
/* @__PURE__ */ e("circle", { cx: "140", cy: "130", r: "20", fill:
|
|
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
|
-
] }),
|
|
489
|
-
size:
|
|
490
|
-
primaryColor:
|
|
491
|
-
secondaryColor:
|
|
492
|
-
accentColor: o =
|
|
493
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
494
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: "white", stroke:
|
|
495
|
-
/* @__PURE__ */ e("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke:
|
|
496
|
-
/* @__PURE__ */ e("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke:
|
|
497
|
-
/* @__PURE__ */ e("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill:
|
|
498
|
-
/* @__PURE__ */ e("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill:
|
|
499
|
-
/* @__PURE__ */ e("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill:
|
|
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:
|
|
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:
|
|
517
|
-
primaryColor:
|
|
518
|
-
secondaryColor:
|
|
519
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
520
|
-
/* @__PURE__ */ e("
|
|
521
|
-
/* @__PURE__ */ e("
|
|
522
|
-
/* @__PURE__ */ e("
|
|
523
|
-
/* @__PURE__ */ e("
|
|
524
|
-
/* @__PURE__ */ e("
|
|
525
|
-
/* @__PURE__ */ e("
|
|
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:
|
|
529
|
-
primaryColor:
|
|
530
|
-
secondaryColor:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
/* @__PURE__ */ e("
|
|
534
|
-
/* @__PURE__ */ e("
|
|
535
|
-
/* @__PURE__ */ e("
|
|
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:
|
|
539
|
-
/* @__PURE__ */ e("circle", { cx: "125", cy: "60", r: "5", fill:
|
|
540
|
-
/* @__PURE__ */ e("path", { d: "M80 75 Q100 65 120 75", stroke:
|
|
541
|
-
] }),
|
|
542
|
-
size:
|
|
543
|
-
primaryColor:
|
|
544
|
-
secondaryColor:
|
|
545
|
-
accentColor: o =
|
|
546
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
547
|
-
/* @__PURE__ */ e("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill:
|
|
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:
|
|
552
|
-
/* @__PURE__ */ e("circle", { cx: "92", cy: "62", r: "4", fill:
|
|
553
|
-
/* @__PURE__ */ e("circle", { cx: "80", cy: "97", r: "4", fill:
|
|
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:
|
|
560
|
-
/* @__PURE__ */ e("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke:
|
|
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
|
-
] }),
|
|
563
|
-
size:
|
|
564
|
-
primaryColor:
|
|
565
|
-
secondaryColor:
|
|
566
|
-
accentColor: o =
|
|
567
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
568
|
-
/* @__PURE__ */ e("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill:
|
|
569
|
-
/* @__PURE__ */ e("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke:
|
|
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:
|
|
574
|
-
/* @__PURE__ */ e("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill:
|
|
575
|
-
] }),
|
|
576
|
-
size:
|
|
577
|
-
primaryColor:
|
|
578
|
-
secondaryColor:
|
|
579
|
-
accentColor: o =
|
|
580
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
581
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill:
|
|
582
|
-
/* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill:
|
|
583
|
-
/* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill:
|
|
584
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill:
|
|
585
|
-
/* @__PURE__ */ e("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill:
|
|
586
|
-
/* @__PURE__ */ e("polygon", { points: "100,85 75,120 125,120", fill:
|
|
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:
|
|
589
|
-
/* @__PURE__ */ e("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill:
|
|
590
|
-
] }),
|
|
591
|
-
size:
|
|
592
|
-
primaryColor:
|
|
593
|
-
secondaryColor:
|
|
594
|
-
accentColor: o =
|
|
595
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
596
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70", fill:
|
|
597
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "55", fill:
|
|
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:
|
|
602
|
-
/* @__PURE__ */ e("circle", { cx: "30", cy: "140", r: "4", fill:
|
|
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:
|
|
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:
|
|
619
|
-
primaryColor:
|
|
620
|
-
secondaryColor:
|
|
621
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
622
|
-
/* @__PURE__ */ e("
|
|
623
|
-
/* @__PURE__ */ e("
|
|
624
|
-
/* @__PURE__ */ e("
|
|
625
|
-
/* @__PURE__ */ e("
|
|
626
|
-
/* @__PURE__ */ e("
|
|
627
|
-
/* @__PURE__ */ e("
|
|
628
|
-
/* @__PURE__ */ e("
|
|
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:
|
|
633
|
-
primaryColor:
|
|
634
|
-
secondaryColor:
|
|
635
|
-
}) => /* @__PURE__ */ f("svg", { width:
|
|
636
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "
|
|
637
|
-
/* @__PURE__ */ e("
|
|
638
|
-
/* @__PURE__ */ e("ellipse", { cx: "
|
|
639
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "
|
|
640
|
-
/* @__PURE__ */ e("
|
|
641
|
-
/* @__PURE__ */ e("line", { x1: "
|
|
642
|
-
/* @__PURE__ */ e("
|
|
643
|
-
/* @__PURE__ */ e("
|
|
644
|
-
/* @__PURE__ */ e("
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
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":
|
|
651
|
-
"empty-insights":
|
|
652
|
-
"no-results":
|
|
653
|
-
"error-generic":
|
|
654
|
-
"error-404":
|
|
655
|
-
"error-500":
|
|
656
|
-
"error-permission":
|
|
657
|
-
upload:
|
|
658
|
-
success:
|
|
659
|
-
"no-notifications":
|
|
660
|
-
"no-data":
|
|
661
|
-
offline:
|
|
662
|
-
},
|
|
663
|
-
illustration: t,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
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
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
678
|
+
children: [
|
|
679
|
+
/* @__PURE__ */ e(
|
|
680
|
+
C,
|
|
681
|
+
{
|
|
682
|
+
sx: {
|
|
683
|
+
mb: p.spacing,
|
|
684
|
+
display: "flex",
|
|
685
|
+
justifyContent: "center",
|
|
686
|
+
alignItems: "center"
|
|
687
|
+
},
|
|
688
|
+
role: "img",
|
|
689
|
+
"aria-hidden": "true",
|
|
690
|
+
children: s || /* @__PURE__ */ e(v, { size: p.illustrationSize })
|
|
691
|
+
}
|
|
692
|
+
),
|
|
693
|
+
/* @__PURE__ */ e(
|
|
694
|
+
S,
|
|
695
|
+
{
|
|
696
|
+
variant: p.titleVariant,
|
|
697
|
+
sx: { mb: 1, fontWeight: 600 },
|
|
698
|
+
children: t
|
|
699
|
+
}
|
|
700
|
+
),
|
|
701
|
+
o && /* @__PURE__ */ e(
|
|
702
|
+
S,
|
|
703
|
+
{
|
|
704
|
+
variant: p.descriptionVariant,
|
|
705
|
+
color: "text.secondary",
|
|
706
|
+
sx: { mb: p.spacing },
|
|
707
|
+
children: o
|
|
708
|
+
}
|
|
709
|
+
),
|
|
710
|
+
(n || l) && /* @__PURE__ */ f(
|
|
711
|
+
P,
|
|
712
|
+
{
|
|
713
|
+
spacing: 1.5,
|
|
714
|
+
alignItems: "center",
|
|
715
|
+
sx: { mt: p.spacing },
|
|
716
|
+
children: [
|
|
717
|
+
n && (n.href ? /* @__PURE__ */ e(
|
|
718
|
+
T,
|
|
719
|
+
{
|
|
720
|
+
variant: "contained",
|
|
721
|
+
href: n.href,
|
|
722
|
+
onClick: n.onClick,
|
|
723
|
+
children: n.label
|
|
724
|
+
}
|
|
725
|
+
) : /* @__PURE__ */ e(
|
|
726
|
+
T,
|
|
727
|
+
{
|
|
728
|
+
variant: "contained",
|
|
729
|
+
onClick: n.onClick,
|
|
730
|
+
children: n.label
|
|
731
|
+
}
|
|
732
|
+
)),
|
|
733
|
+
l && (l.href ? /* @__PURE__ */ e(
|
|
734
|
+
U,
|
|
735
|
+
{
|
|
736
|
+
href: l.href,
|
|
737
|
+
onClick: l.onClick,
|
|
738
|
+
underline: "hover",
|
|
739
|
+
sx: { cursor: "pointer" },
|
|
740
|
+
children: l.label
|
|
741
|
+
}
|
|
742
|
+
) : /* @__PURE__ */ e(
|
|
743
|
+
U,
|
|
744
|
+
{
|
|
745
|
+
component: "button",
|
|
746
|
+
onClick: l.onClick,
|
|
747
|
+
underline: "hover",
|
|
748
|
+
sx: { cursor: "pointer" },
|
|
749
|
+
children: l.label
|
|
750
|
+
}
|
|
751
|
+
))
|
|
752
|
+
]
|
|
753
|
+
}
|
|
754
|
+
)
|
|
755
|
+
]
|
|
756
|
+
}
|
|
757
|
+
);
|
|
758
|
+
}
|
|
759
|
+
), zi = D.forwardRef(
|
|
760
|
+
function({
|
|
761
|
+
title: i = "Drag and drop your file",
|
|
762
|
+
description: t = "or click to browse from your computer",
|
|
763
|
+
acceptedTypes: o = "PNG, JPG, PDF up to 10MB",
|
|
764
|
+
browseLabel: n = "Browse Files",
|
|
765
|
+
onDrop: l,
|
|
766
|
+
onBrowse: a,
|
|
767
|
+
isDragging: s = !1,
|
|
768
|
+
size: g = "medium",
|
|
769
|
+
sx: x
|
|
770
|
+
}, p) {
|
|
771
|
+
const [v, w] = D.useState(s), h = K[g], L = (m) => {
|
|
772
|
+
m.preventDefault(), m.stopPropagation(), m.type === "dragenter" || m.type === "dragover" ? w(!0) : m.type === "dragleave" && w(!1);
|
|
773
|
+
};
|
|
774
|
+
return /* @__PURE__ */ f(
|
|
775
|
+
C,
|
|
776
|
+
{
|
|
777
|
+
ref: p,
|
|
778
|
+
onDragEnter: L,
|
|
779
|
+
onDragLeave: L,
|
|
780
|
+
onDragOver: L,
|
|
781
|
+
onDrop: (m) => {
|
|
782
|
+
m.preventDefault(), m.stopPropagation(), w(!1), m.dataTransfer.files && m.dataTransfer.files.length > 0 && l?.(m.dataTransfer.files);
|
|
783
|
+
},
|
|
784
|
+
sx: {
|
|
785
|
+
p: h.padding,
|
|
786
|
+
border: "2px dashed",
|
|
787
|
+
borderColor: v ? "primary.main" : "grey.300",
|
|
788
|
+
borderRadius: 3,
|
|
789
|
+
// 12px - consistent with cards
|
|
790
|
+
bgcolor: v ? "primary.50" : "grey.50",
|
|
791
|
+
textAlign: "center",
|
|
792
|
+
cursor: "pointer",
|
|
793
|
+
transition: "all 0.2s ease",
|
|
794
|
+
"&:hover": {
|
|
795
|
+
borderColor: "primary.main",
|
|
796
|
+
bgcolor: "primary.50"
|
|
797
|
+
},
|
|
798
|
+
...x
|
|
799
|
+
},
|
|
800
|
+
onClick: a,
|
|
801
|
+
children: [
|
|
802
|
+
/* @__PURE__ */ e(C, { sx: { mb: 2 }, children: /* @__PURE__ */ e(X, { size: h.illustrationSize * 0.7 }) }),
|
|
803
|
+
/* @__PURE__ */ e(S, { variant: h.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
|
|
804
|
+
/* @__PURE__ */ e(S, { variant: h.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: t }),
|
|
805
|
+
/* @__PURE__ */ e(T, { variant: "outlined", size: g === "small" ? "small" : "medium", children: n }),
|
|
806
|
+
o && /* @__PURE__ */ e(S, { variant: "caption", color: "text.secondary", display: "block", sx: { mt: 2 }, children: o })
|
|
807
|
+
]
|
|
808
|
+
}
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
), c = I.colors.indicator, M = {
|
|
813
812
|
// High Attention - Red
|
|
814
813
|
error: {
|
|
815
|
-
color:
|
|
816
|
-
backgroundColor:
|
|
814
|
+
color: c.error.fg,
|
|
815
|
+
backgroundColor: c.error.bg,
|
|
817
816
|
icon: "error",
|
|
818
817
|
shape: "circle",
|
|
819
818
|
severity: "high",
|
|
820
819
|
label: "Error"
|
|
821
820
|
},
|
|
822
821
|
critical: {
|
|
823
|
-
color:
|
|
824
|
-
backgroundColor:
|
|
822
|
+
color: c.critical.fg,
|
|
823
|
+
backgroundColor: c.critical.bg,
|
|
825
824
|
icon: "warning",
|
|
826
825
|
shape: "hexagon",
|
|
827
826
|
severity: "high",
|
|
828
827
|
label: "Critical"
|
|
829
828
|
},
|
|
830
829
|
failed: {
|
|
831
|
-
color:
|
|
832
|
-
backgroundColor:
|
|
830
|
+
color: c.failed.fg,
|
|
831
|
+
backgroundColor: c.failed.bg,
|
|
833
832
|
icon: "close",
|
|
834
833
|
shape: "circle",
|
|
835
834
|
severity: "high",
|
|
836
835
|
label: "Failed"
|
|
837
836
|
},
|
|
838
837
|
rejected: {
|
|
839
|
-
color:
|
|
840
|
-
backgroundColor:
|
|
838
|
+
color: c.rejected.fg,
|
|
839
|
+
backgroundColor: c.rejected.bg,
|
|
841
840
|
icon: "close",
|
|
842
841
|
shape: "circle",
|
|
843
842
|
severity: "high",
|
|
844
843
|
label: "Rejected"
|
|
845
844
|
},
|
|
846
845
|
cancelled: {
|
|
847
|
-
color:
|
|
848
|
-
backgroundColor:
|
|
846
|
+
color: c.cancelled.fg,
|
|
847
|
+
backgroundColor: c.cancelled.bg,
|
|
849
848
|
icon: "close",
|
|
850
849
|
shape: "circle",
|
|
851
850
|
severity: "neutral",
|
|
@@ -853,43 +852,43 @@ const Me = ({
|
|
|
853
852
|
},
|
|
854
853
|
// Medium Attention - Orange/Yellow
|
|
855
854
|
warning: {
|
|
856
|
-
color:
|
|
857
|
-
backgroundColor:
|
|
858
|
-
outlineColor:
|
|
855
|
+
color: c.warning.fg,
|
|
856
|
+
backgroundColor: c.warning.bg,
|
|
857
|
+
outlineColor: c.warning.outline,
|
|
859
858
|
icon: "warning",
|
|
860
859
|
shape: "triangle",
|
|
861
860
|
severity: "medium",
|
|
862
861
|
label: "Warning"
|
|
863
862
|
},
|
|
864
863
|
caution: {
|
|
865
|
-
color:
|
|
866
|
-
backgroundColor:
|
|
867
|
-
outlineColor:
|
|
864
|
+
color: c.caution.fg,
|
|
865
|
+
backgroundColor: c.caution.bg,
|
|
866
|
+
outlineColor: c.caution.outline,
|
|
868
867
|
icon: "warning",
|
|
869
868
|
shape: "triangle",
|
|
870
869
|
severity: "medium",
|
|
871
870
|
label: "Caution"
|
|
872
871
|
},
|
|
873
872
|
pending: {
|
|
874
|
-
color:
|
|
875
|
-
backgroundColor:
|
|
876
|
-
outlineColor:
|
|
873
|
+
color: c.pending.fg,
|
|
874
|
+
backgroundColor: c.pending.bg,
|
|
875
|
+
outlineColor: c.pending.outline,
|
|
877
876
|
icon: "clock",
|
|
878
877
|
shape: "circle",
|
|
879
878
|
severity: "medium",
|
|
880
879
|
label: "Pending"
|
|
881
880
|
},
|
|
882
881
|
"in-progress": {
|
|
883
|
-
color:
|
|
884
|
-
backgroundColor:
|
|
882
|
+
color: c.inProgress.fg,
|
|
883
|
+
backgroundColor: c.inProgress.bg,
|
|
885
884
|
icon: "refresh",
|
|
886
885
|
shape: "circle",
|
|
887
886
|
severity: "medium",
|
|
888
887
|
label: "In Progress"
|
|
889
888
|
},
|
|
890
889
|
running: {
|
|
891
|
-
color:
|
|
892
|
-
backgroundColor:
|
|
890
|
+
color: c.running.fg,
|
|
891
|
+
backgroundColor: c.running.bg,
|
|
893
892
|
icon: "play",
|
|
894
893
|
shape: "circle",
|
|
895
894
|
severity: "medium",
|
|
@@ -897,40 +896,40 @@ const Me = ({
|
|
|
897
896
|
},
|
|
898
897
|
// Low Attention - Green
|
|
899
898
|
success: {
|
|
900
|
-
color:
|
|
901
|
-
backgroundColor:
|
|
899
|
+
color: c.success.fg,
|
|
900
|
+
backgroundColor: c.success.bg,
|
|
902
901
|
icon: "check-circle",
|
|
903
902
|
shape: "circle",
|
|
904
903
|
severity: "low",
|
|
905
904
|
label: "Success"
|
|
906
905
|
},
|
|
907
906
|
complete: {
|
|
908
|
-
color:
|
|
909
|
-
backgroundColor:
|
|
907
|
+
color: c.complete.fg,
|
|
908
|
+
backgroundColor: c.complete.bg,
|
|
910
909
|
icon: "check",
|
|
911
910
|
shape: "circle",
|
|
912
911
|
severity: "low",
|
|
913
912
|
label: "Complete"
|
|
914
913
|
},
|
|
915
914
|
approved: {
|
|
916
|
-
color:
|
|
917
|
-
backgroundColor:
|
|
915
|
+
color: c.approved.fg,
|
|
916
|
+
backgroundColor: c.approved.bg,
|
|
918
917
|
icon: "check-circle",
|
|
919
918
|
shape: "circle",
|
|
920
919
|
severity: "low",
|
|
921
920
|
label: "Approved"
|
|
922
921
|
},
|
|
923
922
|
active: {
|
|
924
|
-
color:
|
|
925
|
-
backgroundColor:
|
|
923
|
+
color: c.active.fg,
|
|
924
|
+
backgroundColor: c.active.bg,
|
|
926
925
|
icon: "check",
|
|
927
926
|
shape: "circle",
|
|
928
927
|
severity: "low",
|
|
929
928
|
label: "Active"
|
|
930
929
|
},
|
|
931
930
|
enabled: {
|
|
932
|
-
color:
|
|
933
|
-
backgroundColor:
|
|
931
|
+
color: c.enabled.fg,
|
|
932
|
+
backgroundColor: c.enabled.bg,
|
|
934
933
|
icon: "check",
|
|
935
934
|
shape: "circle",
|
|
936
935
|
severity: "low",
|
|
@@ -938,24 +937,24 @@ const Me = ({
|
|
|
938
937
|
},
|
|
939
938
|
// Informational - Blue
|
|
940
939
|
info: {
|
|
941
|
-
color:
|
|
942
|
-
backgroundColor:
|
|
940
|
+
color: c.info.fg,
|
|
941
|
+
backgroundColor: c.info.bg,
|
|
943
942
|
icon: "info",
|
|
944
943
|
shape: "circle",
|
|
945
944
|
severity: "info",
|
|
946
945
|
label: "Info"
|
|
947
946
|
},
|
|
948
947
|
new: {
|
|
949
|
-
color:
|
|
950
|
-
backgroundColor:
|
|
948
|
+
color: c.new.fg,
|
|
949
|
+
backgroundColor: c.new.bg,
|
|
951
950
|
icon: "star",
|
|
952
951
|
shape: "circle",
|
|
953
952
|
severity: "info",
|
|
954
953
|
label: "New"
|
|
955
954
|
},
|
|
956
955
|
updated: {
|
|
957
|
-
color:
|
|
958
|
-
backgroundColor:
|
|
956
|
+
color: c.updated.fg,
|
|
957
|
+
backgroundColor: c.updated.bg,
|
|
959
958
|
icon: "refresh",
|
|
960
959
|
shape: "circle",
|
|
961
960
|
severity: "info",
|
|
@@ -963,32 +962,32 @@ const Me = ({
|
|
|
963
962
|
},
|
|
964
963
|
// Neutral - Gray
|
|
965
964
|
draft: {
|
|
966
|
-
color:
|
|
967
|
-
backgroundColor:
|
|
965
|
+
color: c.draft.fg,
|
|
966
|
+
backgroundColor: c.draft.bg,
|
|
968
967
|
icon: "edit",
|
|
969
968
|
shape: "circle",
|
|
970
969
|
severity: "neutral",
|
|
971
970
|
label: "Draft"
|
|
972
971
|
},
|
|
973
972
|
inactive: {
|
|
974
|
-
color:
|
|
975
|
-
backgroundColor:
|
|
973
|
+
color: c.inactive.fg,
|
|
974
|
+
backgroundColor: c.inactive.bg,
|
|
976
975
|
icon: "remove",
|
|
977
976
|
shape: "circle",
|
|
978
977
|
severity: "neutral",
|
|
979
978
|
label: "Inactive"
|
|
980
979
|
},
|
|
981
980
|
disabled: {
|
|
982
|
-
color:
|
|
983
|
-
backgroundColor:
|
|
981
|
+
color: c.disabled.fg,
|
|
982
|
+
backgroundColor: c.disabled.bg,
|
|
984
983
|
icon: "close",
|
|
985
984
|
shape: "circle",
|
|
986
985
|
severity: "neutral",
|
|
987
986
|
label: "Disabled"
|
|
988
987
|
},
|
|
989
988
|
unknown: {
|
|
990
|
-
color:
|
|
991
|
-
backgroundColor:
|
|
989
|
+
color: c.unknown.fg,
|
|
990
|
+
backgroundColor: c.unknown.bg,
|
|
992
991
|
icon: "help",
|
|
993
992
|
shape: "circle",
|
|
994
993
|
severity: "neutral",
|
|
@@ -996,26 +995,26 @@ const Me = ({
|
|
|
996
995
|
},
|
|
997
996
|
// Special - Purple
|
|
998
997
|
beta: {
|
|
999
|
-
color:
|
|
1000
|
-
backgroundColor:
|
|
998
|
+
color: c.beta.fg,
|
|
999
|
+
backgroundColor: c.beta.bg,
|
|
1001
1000
|
icon: "zap",
|
|
1002
1001
|
shape: "diamond",
|
|
1003
1002
|
severity: "info",
|
|
1004
1003
|
label: "Beta"
|
|
1005
1004
|
},
|
|
1006
1005
|
experimental: {
|
|
1007
|
-
color:
|
|
1008
|
-
backgroundColor:
|
|
1006
|
+
color: c.experimental.fg,
|
|
1007
|
+
backgroundColor: c.experimental.bg,
|
|
1009
1008
|
icon: "code",
|
|
1010
1009
|
shape: "diamond",
|
|
1011
1010
|
severity: "info",
|
|
1012
1011
|
label: "Experimental"
|
|
1013
1012
|
}
|
|
1014
|
-
},
|
|
1013
|
+
}, B = {
|
|
1015
1014
|
small: { icon: 16, shape: 8, fontSize: "0.75rem", dotSize: 8 },
|
|
1016
1015
|
medium: { icon: 20, shape: 10, fontSize: "0.875rem", dotSize: 10 },
|
|
1017
1016
|
large: { icon: 24, shape: 12, fontSize: "1rem", dotSize: 12 }
|
|
1018
|
-
},
|
|
1017
|
+
}, Ye = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "7", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), ei = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("rect", { x: "2", y: "2", width: "12", height: "12", rx: "2", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), ii = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
1019
1018
|
"rect",
|
|
1020
1019
|
{
|
|
1021
1020
|
x: "3",
|
|
@@ -1023,100 +1022,100 @@ const Me = ({
|
|
|
1023
1022
|
width: "10",
|
|
1024
1023
|
height: "10",
|
|
1025
1024
|
rx: "1",
|
|
1026
|
-
fill:
|
|
1027
|
-
stroke:
|
|
1028
|
-
strokeWidth:
|
|
1025
|
+
fill: i,
|
|
1026
|
+
stroke: t,
|
|
1027
|
+
strokeWidth: t ? 1.5 : 0,
|
|
1029
1028
|
transform: "rotate(45 8 8)"
|
|
1030
1029
|
}
|
|
1031
|
-
) }),
|
|
1030
|
+
) }), ti = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
1032
1031
|
"path",
|
|
1033
1032
|
{
|
|
1034
1033
|
d: "M8 2L14 14H2L8 2Z",
|
|
1035
|
-
fill:
|
|
1036
|
-
stroke:
|
|
1037
|
-
strokeWidth:
|
|
1034
|
+
fill: i,
|
|
1035
|
+
stroke: t,
|
|
1036
|
+
strokeWidth: t ? 1.5 : 0,
|
|
1038
1037
|
strokeLinejoin: "round"
|
|
1039
1038
|
}
|
|
1040
|
-
) }),
|
|
1039
|
+
) }), ri = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
1041
1040
|
"polygon",
|
|
1042
1041
|
{
|
|
1043
1042
|
points: "8,1 14,4.5 14,11.5 8,15 2,11.5 2,4.5",
|
|
1044
|
-
fill:
|
|
1045
|
-
stroke:
|
|
1046
|
-
strokeWidth:
|
|
1043
|
+
fill: i,
|
|
1044
|
+
stroke: t,
|
|
1045
|
+
strokeWidth: t ? 1.5 : 0
|
|
1047
1046
|
}
|
|
1048
|
-
) }),
|
|
1049
|
-
circle:
|
|
1050
|
-
square:
|
|
1051
|
-
diamond:
|
|
1052
|
-
triangle:
|
|
1053
|
-
hexagon:
|
|
1054
|
-
},
|
|
1055
|
-
const
|
|
1056
|
-
return
|
|
1047
|
+
) }), Y = {
|
|
1048
|
+
circle: Ye,
|
|
1049
|
+
square: ei,
|
|
1050
|
+
diamond: ii,
|
|
1051
|
+
triangle: ti,
|
|
1052
|
+
hexagon: ri
|
|
1053
|
+
}, oi = (r, i, t, o, n, l) => {
|
|
1054
|
+
const a = M[r], s = B[i];
|
|
1055
|
+
return n ? /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
|
|
1057
1056
|
/* @__PURE__ */ e(
|
|
1058
|
-
|
|
1057
|
+
E,
|
|
1059
1058
|
{
|
|
1060
|
-
name:
|
|
1061
|
-
size:
|
|
1062
|
-
sx: { color:
|
|
1059
|
+
name: a.icon,
|
|
1060
|
+
size: i,
|
|
1061
|
+
sx: { color: a.backgroundColor },
|
|
1063
1062
|
"aria-hidden": "true"
|
|
1064
1063
|
}
|
|
1065
1064
|
),
|
|
1066
|
-
o && /* @__PURE__ */ e(
|
|
1067
|
-
] }) : /* @__PURE__ */ f(
|
|
1065
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
|
|
1066
|
+
] }) : /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
|
|
1068
1067
|
/* @__PURE__ */ e(
|
|
1069
|
-
|
|
1068
|
+
C,
|
|
1070
1069
|
{
|
|
1071
1070
|
sx: {
|
|
1072
1071
|
display: "flex",
|
|
1073
1072
|
alignItems: "center",
|
|
1074
1073
|
justifyContent: "center",
|
|
1075
|
-
width:
|
|
1076
|
-
height:
|
|
1077
|
-
borderRadius: `${
|
|
1074
|
+
width: s.icon + 8,
|
|
1075
|
+
height: s.icon + 8,
|
|
1076
|
+
borderRadius: `${I.borders.radius.circle}px`,
|
|
1078
1077
|
// Perfect circle
|
|
1079
|
-
backgroundColor:
|
|
1080
|
-
color:
|
|
1078
|
+
backgroundColor: a.backgroundColor,
|
|
1079
|
+
color: a.color
|
|
1081
1080
|
},
|
|
1082
1081
|
"aria-hidden": "true",
|
|
1083
|
-
children: /* @__PURE__ */ e(
|
|
1082
|
+
children: /* @__PURE__ */ e(E, { name: a.icon, size: i === "large" ? "medium" : "small" })
|
|
1084
1083
|
}
|
|
1085
1084
|
),
|
|
1086
|
-
o && /* @__PURE__ */ e(
|
|
1085
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
|
|
1087
1086
|
] });
|
|
1088
|
-
},
|
|
1089
|
-
const
|
|
1090
|
-
return /* @__PURE__ */ f(
|
|
1091
|
-
/* @__PURE__ */ e(
|
|
1092
|
-
|
|
1087
|
+
}, ni = (r, i, t, o, n, l, a) => {
|
|
1088
|
+
const s = M[r], g = B[i], x = n || s.shape, p = Y[x];
|
|
1089
|
+
return /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: a, role: "status", children: [
|
|
1090
|
+
/* @__PURE__ */ e(C, { "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
1091
|
+
p,
|
|
1093
1092
|
{
|
|
1094
1093
|
size: g.shape * 1.6,
|
|
1095
|
-
color:
|
|
1096
|
-
outline:
|
|
1094
|
+
color: s.backgroundColor,
|
|
1095
|
+
outline: l ? s.outlineColor : void 0
|
|
1097
1096
|
}
|
|
1098
1097
|
) }),
|
|
1099
|
-
o && /* @__PURE__ */ e(
|
|
1098
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: g.fontSize }, children: t })
|
|
1100
1099
|
] });
|
|
1101
|
-
},
|
|
1102
|
-
const
|
|
1100
|
+
}, li = (r, i, t, o) => {
|
|
1101
|
+
const n = M[r], l = B[i];
|
|
1103
1102
|
return /* @__PURE__ */ e(
|
|
1104
|
-
|
|
1103
|
+
C,
|
|
1105
1104
|
{
|
|
1106
1105
|
role: "status",
|
|
1107
|
-
"aria-label":
|
|
1106
|
+
"aria-label": n.label,
|
|
1108
1107
|
sx: {
|
|
1109
|
-
width:
|
|
1110
|
-
height:
|
|
1111
|
-
borderRadius: `${
|
|
1108
|
+
width: l.dotSize,
|
|
1109
|
+
height: l.dotSize,
|
|
1110
|
+
borderRadius: `${I.borders.radius.circle}px`,
|
|
1112
1111
|
// Perfect circle
|
|
1113
|
-
backgroundColor:
|
|
1112
|
+
backgroundColor: n.backgroundColor,
|
|
1114
1113
|
flexShrink: 0,
|
|
1115
|
-
...
|
|
1114
|
+
...t && {
|
|
1116
1115
|
animation: "statusPulse 2s infinite",
|
|
1117
1116
|
"@keyframes statusPulse": {
|
|
1118
|
-
"0%": { boxShadow: `0 0 0 0 ${
|
|
1119
|
-
"70%": { boxShadow: `0 0 0 ${
|
|
1117
|
+
"0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
|
|
1118
|
+
"70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
|
|
1120
1119
|
"100%": { boxShadow: "0 0 0 0 transparent" }
|
|
1121
1120
|
}
|
|
1122
1121
|
},
|
|
@@ -1124,243 +1123,249 @@ const Me = ({
|
|
|
1124
1123
|
}
|
|
1125
1124
|
}
|
|
1126
1125
|
);
|
|
1127
|
-
},
|
|
1128
|
-
const
|
|
1126
|
+
}, ci = (r, i, t, o, n, l, a) => {
|
|
1127
|
+
const s = M[r];
|
|
1129
1128
|
return /* @__PURE__ */ e(
|
|
1130
|
-
|
|
1129
|
+
Se,
|
|
1131
1130
|
{
|
|
1132
|
-
label:
|
|
1133
|
-
size:
|
|
1134
|
-
icon: o ? /* @__PURE__ */ e(
|
|
1135
|
-
onClick:
|
|
1136
|
-
onDelete:
|
|
1131
|
+
label: t,
|
|
1132
|
+
size: i,
|
|
1133
|
+
icon: o ? /* @__PURE__ */ e(E, { name: s.icon, size: "small", "aria-hidden": "true" }) : void 0,
|
|
1134
|
+
onClick: n,
|
|
1135
|
+
onDelete: l,
|
|
1137
1136
|
role: "status",
|
|
1138
1137
|
sx: {
|
|
1139
|
-
backgroundColor: `${
|
|
1140
|
-
color:
|
|
1141
|
-
borderColor:
|
|
1138
|
+
backgroundColor: `${s.backgroundColor}20`,
|
|
1139
|
+
color: s.backgroundColor,
|
|
1140
|
+
borderColor: s.backgroundColor,
|
|
1142
1141
|
"& .MuiChip-icon": {
|
|
1143
|
-
color:
|
|
1142
|
+
color: s.backgroundColor
|
|
1144
1143
|
},
|
|
1145
1144
|
"& .MuiChip-deleteIcon": {
|
|
1146
|
-
color:
|
|
1145
|
+
color: s.backgroundColor,
|
|
1147
1146
|
"&:hover": {
|
|
1148
|
-
color:
|
|
1147
|
+
color: s.backgroundColor
|
|
1149
1148
|
}
|
|
1150
1149
|
},
|
|
1151
|
-
...
|
|
1150
|
+
...a
|
|
1152
1151
|
},
|
|
1153
1152
|
variant: "outlined"
|
|
1154
1153
|
}
|
|
1155
1154
|
);
|
|
1156
|
-
},
|
|
1157
|
-
const
|
|
1158
|
-
return /* @__PURE__ */ f(
|
|
1155
|
+
}, ai = (r, i, t, o, n, l) => {
|
|
1156
|
+
const a = M[r], s = B[i];
|
|
1157
|
+
return /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, sx: l, role: "status", children: [
|
|
1159
1158
|
o && /* @__PURE__ */ e(
|
|
1160
|
-
|
|
1159
|
+
C,
|
|
1161
1160
|
{
|
|
1162
1161
|
"aria-hidden": "true",
|
|
1163
1162
|
sx: {
|
|
1164
|
-
width:
|
|
1165
|
-
height:
|
|
1166
|
-
borderRadius: `${
|
|
1163
|
+
width: s.dotSize,
|
|
1164
|
+
height: s.dotSize,
|
|
1165
|
+
borderRadius: `${I.borders.radius.circle}px`,
|
|
1167
1166
|
// Perfect circle
|
|
1168
|
-
backgroundColor:
|
|
1167
|
+
backgroundColor: a.backgroundColor,
|
|
1169
1168
|
flexShrink: 0
|
|
1170
1169
|
}
|
|
1171
1170
|
}
|
|
1172
1171
|
),
|
|
1173
|
-
|
|
1174
|
-
|
|
1172
|
+
n && !o && /* @__PURE__ */ e(
|
|
1173
|
+
E,
|
|
1175
1174
|
{
|
|
1176
|
-
name:
|
|
1177
|
-
size:
|
|
1178
|
-
sx: { color:
|
|
1175
|
+
name: a.icon,
|
|
1176
|
+
size: i === "large" ? "medium" : "small",
|
|
1177
|
+
sx: { color: a.backgroundColor },
|
|
1179
1178
|
"aria-hidden": "true"
|
|
1180
1179
|
}
|
|
1181
1180
|
),
|
|
1182
1181
|
/* @__PURE__ */ e(
|
|
1183
|
-
|
|
1182
|
+
S,
|
|
1184
1183
|
{
|
|
1185
1184
|
variant: "body2",
|
|
1186
1185
|
sx: {
|
|
1187
|
-
fontSize:
|
|
1188
|
-
color:
|
|
1186
|
+
fontSize: s.fontSize,
|
|
1187
|
+
color: a.backgroundColor,
|
|
1189
1188
|
fontWeight: 500
|
|
1190
1189
|
},
|
|
1191
|
-
children:
|
|
1190
|
+
children: t
|
|
1192
1191
|
}
|
|
1193
1192
|
)
|
|
1194
1193
|
] });
|
|
1195
|
-
},
|
|
1196
|
-
const
|
|
1194
|
+
}, si = (r, i, t, o, n, l, a) => {
|
|
1195
|
+
const s = M[r];
|
|
1197
1196
|
return /* @__PURE__ */ e(
|
|
1198
|
-
|
|
1197
|
+
ve,
|
|
1199
1198
|
{
|
|
1200
|
-
badgeContent: o ? void 0 :
|
|
1201
|
-
max:
|
|
1199
|
+
badgeContent: o ? void 0 : t,
|
|
1200
|
+
max: n,
|
|
1202
1201
|
variant: o ? "dot" : "standard",
|
|
1203
|
-
invisible:
|
|
1202
|
+
invisible: l,
|
|
1204
1203
|
sx: {
|
|
1205
1204
|
"& .MuiBadge-badge": {
|
|
1206
|
-
backgroundColor:
|
|
1207
|
-
color:
|
|
1205
|
+
backgroundColor: s.backgroundColor,
|
|
1206
|
+
color: s.color,
|
|
1208
1207
|
fontSize: "0.7rem",
|
|
1209
1208
|
minWidth: o ? 8 : 18,
|
|
1210
1209
|
height: o ? 8 : 18,
|
|
1211
1210
|
padding: o ? 0 : "0 4px"
|
|
1212
1211
|
},
|
|
1213
|
-
...
|
|
1212
|
+
...a
|
|
1214
1213
|
},
|
|
1215
|
-
children:
|
|
1214
|
+
children: i
|
|
1216
1215
|
}
|
|
1217
1216
|
);
|
|
1218
|
-
},
|
|
1219
|
-
const
|
|
1220
|
-
const
|
|
1221
|
-
return o ? `${
|
|
1217
|
+
}, di = (r, i, t, o, n, l, a, s, g) => {
|
|
1218
|
+
const x = B[i], p = r >= 0, h = l !== !1 ? p ? a || "#24a148" : s || "#da1e28" : "inherit", L = () => {
|
|
1219
|
+
const z = Math.abs(r), m = p ? "+" : "-";
|
|
1220
|
+
return o ? `${m}${o}${z.toLocaleString()}` : t ? `${m}${z}%` : `${m}${z.toLocaleString()}`;
|
|
1222
1221
|
};
|
|
1223
1222
|
return /* @__PURE__ */ f(
|
|
1224
|
-
|
|
1223
|
+
P,
|
|
1225
1224
|
{
|
|
1226
1225
|
direction: "row",
|
|
1227
1226
|
alignItems: "center",
|
|
1228
1227
|
spacing: 0.5,
|
|
1229
|
-
sx: { color:
|
|
1228
|
+
sx: { color: h, ...g },
|
|
1230
1229
|
role: "status",
|
|
1231
|
-
"aria-label": `${
|
|
1230
|
+
"aria-label": `${p ? "Increased" : "Decreased"} by ${L()}`,
|
|
1232
1231
|
children: [
|
|
1233
|
-
|
|
1234
|
-
|
|
1232
|
+
n !== !1 && /* @__PURE__ */ e(
|
|
1233
|
+
E,
|
|
1235
1234
|
{
|
|
1236
|
-
name:
|
|
1237
|
-
size:
|
|
1235
|
+
name: p ? "trending-up" : "trending-down",
|
|
1236
|
+
size: i === "large" ? "medium" : "small",
|
|
1238
1237
|
"aria-hidden": "true"
|
|
1239
1238
|
}
|
|
1240
1239
|
),
|
|
1241
1240
|
/* @__PURE__ */ e(
|
|
1242
|
-
|
|
1241
|
+
S,
|
|
1243
1242
|
{
|
|
1244
1243
|
variant: "body2",
|
|
1245
1244
|
sx: {
|
|
1246
|
-
fontSize:
|
|
1245
|
+
fontSize: x.fontSize,
|
|
1247
1246
|
fontWeight: 500,
|
|
1248
1247
|
fontFamily: "monospace"
|
|
1249
1248
|
},
|
|
1250
|
-
children:
|
|
1249
|
+
children: L()
|
|
1251
1250
|
}
|
|
1252
1251
|
)
|
|
1253
1252
|
]
|
|
1254
1253
|
}
|
|
1255
1254
|
);
|
|
1256
|
-
},
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1255
|
+
}, Di = D.forwardRef(
|
|
1256
|
+
function(i, t) {
|
|
1257
|
+
const {
|
|
1258
|
+
variant: o = "icon",
|
|
1259
|
+
status: n = "info",
|
|
1260
|
+
size: l = "medium",
|
|
1261
|
+
label: a,
|
|
1262
|
+
showLabel: s = !0,
|
|
1263
|
+
sx: g,
|
|
1264
|
+
"aria-label": x
|
|
1265
|
+
} = i, p = M[n], v = a || p.label, w = (() => {
|
|
1266
|
+
switch (o) {
|
|
1267
|
+
case "icon":
|
|
1268
|
+
case void 0:
|
|
1269
|
+
return oi(
|
|
1270
|
+
n,
|
|
1271
|
+
l,
|
|
1272
|
+
v,
|
|
1273
|
+
s,
|
|
1274
|
+
i.iconOnly || !1,
|
|
1275
|
+
g
|
|
1276
|
+
);
|
|
1277
|
+
case "shape": {
|
|
1278
|
+
const h = i;
|
|
1279
|
+
return ni(
|
|
1280
|
+
n,
|
|
1281
|
+
l,
|
|
1282
|
+
v,
|
|
1283
|
+
s,
|
|
1284
|
+
h.shape,
|
|
1285
|
+
h.showOutline ?? !0,
|
|
1286
|
+
g
|
|
1287
|
+
);
|
|
1288
|
+
}
|
|
1289
|
+
case "dot":
|
|
1290
|
+
return li(n, l, i.pulse || !1, g);
|
|
1291
|
+
case "chip": {
|
|
1292
|
+
const h = i;
|
|
1293
|
+
return ci(
|
|
1294
|
+
n,
|
|
1295
|
+
l === "large" ? "medium" : l,
|
|
1296
|
+
v,
|
|
1297
|
+
h.showIcon ?? !0,
|
|
1298
|
+
h.onClick,
|
|
1299
|
+
h.onDelete,
|
|
1300
|
+
g
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1303
|
+
case "inline": {
|
|
1304
|
+
const h = i;
|
|
1305
|
+
return ai(
|
|
1306
|
+
n,
|
|
1307
|
+
l,
|
|
1308
|
+
v,
|
|
1309
|
+
h.showDot ?? !0,
|
|
1310
|
+
h.showIcon ?? !1,
|
|
1311
|
+
g
|
|
1312
|
+
);
|
|
1313
|
+
}
|
|
1314
|
+
case "badge": {
|
|
1315
|
+
const h = i;
|
|
1316
|
+
return si(
|
|
1317
|
+
n,
|
|
1318
|
+
h.children,
|
|
1319
|
+
h.count,
|
|
1320
|
+
h.dot,
|
|
1321
|
+
h.max ?? 999,
|
|
1322
|
+
h.invisible,
|
|
1323
|
+
g
|
|
1324
|
+
);
|
|
1325
|
+
}
|
|
1326
|
+
case "differential": {
|
|
1327
|
+
const h = i;
|
|
1328
|
+
return di(
|
|
1329
|
+
h.value,
|
|
1330
|
+
l,
|
|
1331
|
+
h.percentage || !1,
|
|
1332
|
+
h.currency,
|
|
1333
|
+
h.showIcon,
|
|
1334
|
+
h.showColor,
|
|
1335
|
+
h.positiveColor,
|
|
1336
|
+
h.negativeColor,
|
|
1337
|
+
g
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
default:
|
|
1341
|
+
return null;
|
|
1342
|
+
}
|
|
1343
|
+
})();
|
|
1344
|
+
return !w || !D.isValidElement(w) ? w : D.cloneElement(w, {
|
|
1345
|
+
ref: t
|
|
1346
|
+
});
|
|
1342
1347
|
}
|
|
1343
|
-
|
|
1344
|
-
status:
|
|
1345
|
-
size:
|
|
1346
|
-
pulse:
|
|
1348
|
+
), hi = ({
|
|
1349
|
+
status: r,
|
|
1350
|
+
size: i = "medium",
|
|
1351
|
+
pulse: t = !1,
|
|
1347
1352
|
sx: o
|
|
1348
1353
|
}) => {
|
|
1349
|
-
const
|
|
1354
|
+
const n = M[r], l = B[i];
|
|
1350
1355
|
return /* @__PURE__ */ e(
|
|
1351
|
-
|
|
1356
|
+
C,
|
|
1352
1357
|
{
|
|
1353
1358
|
sx: {
|
|
1354
|
-
width:
|
|
1355
|
-
height:
|
|
1356
|
-
borderRadius: `${
|
|
1359
|
+
width: l.dotSize,
|
|
1360
|
+
height: l.dotSize,
|
|
1361
|
+
borderRadius: `${I.borders.radius.circle}px`,
|
|
1357
1362
|
// Perfect circle
|
|
1358
|
-
backgroundColor:
|
|
1359
|
-
...
|
|
1363
|
+
backgroundColor: n.backgroundColor,
|
|
1364
|
+
...t && {
|
|
1360
1365
|
animation: "pulse 2s infinite",
|
|
1361
1366
|
"@keyframes pulse": {
|
|
1362
|
-
"0%": { boxShadow: `0 0 0 0 ${
|
|
1363
|
-
"70%": { boxShadow: `0 0 0 ${
|
|
1367
|
+
"0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
|
|
1368
|
+
"70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
|
|
1364
1369
|
"100%": { boxShadow: "0 0 0 0 transparent" }
|
|
1365
1370
|
}
|
|
1366
1371
|
},
|
|
@@ -1368,87 +1373,87 @@ const Me = ({
|
|
|
1368
1373
|
}
|
|
1369
1374
|
}
|
|
1370
1375
|
);
|
|
1371
|
-
},
|
|
1372
|
-
items:
|
|
1373
|
-
variant:
|
|
1374
|
-
direction:
|
|
1376
|
+
}, Mi = ({
|
|
1377
|
+
items: r,
|
|
1378
|
+
variant: i = "dot",
|
|
1379
|
+
direction: t = "row",
|
|
1375
1380
|
size: o = "small",
|
|
1376
|
-
sx:
|
|
1381
|
+
sx: n
|
|
1377
1382
|
}) => {
|
|
1378
|
-
const
|
|
1383
|
+
const l = B[o];
|
|
1379
1384
|
return /* @__PURE__ */ e(
|
|
1380
|
-
|
|
1385
|
+
P,
|
|
1381
1386
|
{
|
|
1382
|
-
direction:
|
|
1383
|
-
spacing:
|
|
1387
|
+
direction: t,
|
|
1388
|
+
spacing: t === "row" ? 3 : 1,
|
|
1384
1389
|
flexWrap: "wrap",
|
|
1385
1390
|
useFlexGap: !0,
|
|
1386
|
-
sx:
|
|
1387
|
-
children:
|
|
1388
|
-
const g =
|
|
1389
|
-
return /* @__PURE__ */ f(
|
|
1390
|
-
|
|
1391
|
-
|
|
1391
|
+
sx: n,
|
|
1392
|
+
children: r.map((a, s) => {
|
|
1393
|
+
const g = M[a.status], x = a.label || g.label;
|
|
1394
|
+
return /* @__PURE__ */ f(P, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
1395
|
+
i === "icon" && /* @__PURE__ */ e(
|
|
1396
|
+
C,
|
|
1392
1397
|
{
|
|
1393
1398
|
sx: {
|
|
1394
1399
|
display: "flex",
|
|
1395
1400
|
alignItems: "center",
|
|
1396
1401
|
justifyContent: "center",
|
|
1397
|
-
width:
|
|
1398
|
-
height:
|
|
1399
|
-
borderRadius: `${
|
|
1402
|
+
width: l.icon + 4,
|
|
1403
|
+
height: l.icon + 4,
|
|
1404
|
+
borderRadius: `${I.borders.radius.circle}px`,
|
|
1400
1405
|
// Perfect circle
|
|
1401
1406
|
backgroundColor: g.backgroundColor,
|
|
1402
1407
|
color: g.color
|
|
1403
1408
|
},
|
|
1404
|
-
children: /* @__PURE__ */ e(
|
|
1409
|
+
children: /* @__PURE__ */ e(E, { name: g.icon, size: "small" })
|
|
1405
1410
|
}
|
|
1406
1411
|
),
|
|
1407
|
-
|
|
1408
|
-
const
|
|
1412
|
+
i === "shape" && (() => {
|
|
1413
|
+
const p = Y[g.shape];
|
|
1409
1414
|
return /* @__PURE__ */ e(
|
|
1410
|
-
|
|
1415
|
+
p,
|
|
1411
1416
|
{
|
|
1412
|
-
size:
|
|
1417
|
+
size: l.shape * 1.4,
|
|
1413
1418
|
color: g.backgroundColor,
|
|
1414
1419
|
outline: g.outlineColor
|
|
1415
1420
|
}
|
|
1416
1421
|
);
|
|
1417
1422
|
})(),
|
|
1418
|
-
|
|
1419
|
-
/* @__PURE__ */ f(
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
+
i === "dot" && /* @__PURE__ */ e(hi, { status: a.status, size: o }),
|
|
1424
|
+
/* @__PURE__ */ f(S, { variant: "body2", sx: { fontSize: l.fontSize }, children: [
|
|
1425
|
+
x,
|
|
1426
|
+
a.count !== void 0 && /* @__PURE__ */ f(
|
|
1427
|
+
S,
|
|
1423
1428
|
{
|
|
1424
1429
|
component: "span",
|
|
1425
1430
|
sx: {
|
|
1426
1431
|
ml: 0.5,
|
|
1427
1432
|
color: "text.secondary",
|
|
1428
|
-
fontSize:
|
|
1433
|
+
fontSize: l.fontSize
|
|
1429
1434
|
},
|
|
1430
1435
|
children: [
|
|
1431
1436
|
"(",
|
|
1432
|
-
|
|
1437
|
+
a.count,
|
|
1433
1438
|
")"
|
|
1434
1439
|
]
|
|
1435
1440
|
}
|
|
1436
1441
|
)
|
|
1437
1442
|
] })
|
|
1438
|
-
] },
|
|
1443
|
+
] }, s);
|
|
1439
1444
|
})
|
|
1440
1445
|
}
|
|
1441
1446
|
);
|
|
1442
1447
|
};
|
|
1443
1448
|
export {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1449
|
+
Si as C,
|
|
1450
|
+
Ii as I,
|
|
1451
|
+
Pe as M,
|
|
1452
|
+
Di as S,
|
|
1453
|
+
Ci as T,
|
|
1454
|
+
zi as U,
|
|
1455
|
+
Mi as a,
|
|
1456
|
+
Wi as b,
|
|
1457
|
+
Re as c,
|
|
1458
|
+
Li as u
|
|
1454
1459
|
};
|