@matteoaliano/forest-ui 0.2.10 → 0.2.11
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/bin/sync.mjs +18 -34
- package/dist/{chunk-7B6NCKX3.mjs → chunk-6W3RIXXY.mjs} +106 -148
- package/dist/chunk-6W3RIXXY.mjs.map +1 -0
- package/dist/{index-DiI9xbOM.d.mts → index-DJDmMb_c.d.mts} +98 -3
- package/dist/{index-DiI9xbOM.d.ts → index-DJDmMb_c.d.ts} +98 -3
- package/dist/index.d.mts +61 -14
- package/dist/index.d.ts +61 -14
- package/dist/index.js +299 -205
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +166 -58
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +104 -146
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/guidelines/FOREST_BE_GUIDELINES.md +90 -0
- package/guidelines/FOREST_FE_GUIDELINES.md +543 -0
- package/guidelines/FOREST_UI_GUIDELINES.md +372 -0
- package/package.json +9 -4
- package/dist/chunk-7B6NCKX3.mjs.map +0 -1
- package/guidelines/FOREST_AI_GUIDELINES.md +0 -344
- package/guidelines/FOREST_DEV_GUIDELINES.md +0 -47
- package/guidelines/themes/FOREST_THEME_ALKEMY_PLUS.md +0 -139
- package/guidelines/themes/FOREST_THEME_DEFAULT.md +0 -70
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React2 = require('react');
|
|
4
4
|
var styles = require('@mui/material/styles');
|
|
5
5
|
var CssBaseline = require('@mui/material/CssBaseline');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -18,11 +18,16 @@ var MuiFormControl = require('@mui/material/FormControl');
|
|
|
18
18
|
var MuiInputLabel = require('@mui/material/InputLabel');
|
|
19
19
|
var MuiSwitch = require('@mui/material/Switch');
|
|
20
20
|
var MuiTextField = require('@mui/material/TextField');
|
|
21
|
+
var InputAdornment = require('@mui/material/InputAdornment');
|
|
22
|
+
var IconButton = require('@mui/material/IconButton');
|
|
23
|
+
var utils = require('@mui/material/utils');
|
|
21
24
|
var MuiToggleButton = require('@mui/material/ToggleButton');
|
|
22
25
|
var MuiToggleButtonGroup = require('@mui/material/ToggleButtonGroup');
|
|
26
|
+
var DatePicker$1 = require('@mui/x-date-pickers/DatePicker');
|
|
27
|
+
var LocalizationProvider = require('@mui/x-date-pickers/LocalizationProvider');
|
|
28
|
+
var AdapterDayjs = require('@mui/x-date-pickers/AdapterDayjs');
|
|
23
29
|
var MuiBadge = require('@mui/material/Badge');
|
|
24
30
|
var MuiChip = require('@mui/material/Chip');
|
|
25
|
-
var utils = require('@mui/material/utils');
|
|
26
31
|
var MuiDivider = require('@mui/material/Divider');
|
|
27
32
|
var MuiList = require('@mui/material/List');
|
|
28
33
|
var MuiListItem = require('@mui/material/ListItem');
|
|
@@ -62,10 +67,21 @@ var MuiDialogContentText = require('@mui/material/DialogContentText');
|
|
|
62
67
|
var MuiLinearProgress = require('@mui/material/LinearProgress');
|
|
63
68
|
var MuiCircularProgress = require('@mui/material/CircularProgress');
|
|
64
69
|
var MuiSkeleton = require('@mui/material/Skeleton');
|
|
70
|
+
var MuiModal = require('@mui/material/Modal');
|
|
71
|
+
var MuiPopover = require('@mui/material/Popover');
|
|
65
72
|
var MuiSnackbar = require('@mui/material/Snackbar');
|
|
73
|
+
var MuiBreadcrumbs = require('@mui/material/Breadcrumbs');
|
|
74
|
+
var MuiLink = require('@mui/material/Link');
|
|
75
|
+
var MuiMenu = require('@mui/material/Menu');
|
|
76
|
+
var MuiMenuList = require('@mui/material/MenuList');
|
|
77
|
+
var MuiPagination = require('@mui/material/Pagination');
|
|
78
|
+
var MuiStepper = require('@mui/material/Stepper');
|
|
79
|
+
var MuiStep = require('@mui/material/Step');
|
|
80
|
+
var MuiStepLabel = require('@mui/material/StepLabel');
|
|
81
|
+
var MuiTabs = require('@mui/material/Tabs');
|
|
82
|
+
var MuiTab = require('@mui/material/Tab');
|
|
66
83
|
var MuiDrawer = require('@mui/material/Drawer');
|
|
67
84
|
var Box = require('@mui/material/Box');
|
|
68
|
-
var IconButton = require('@mui/material/IconButton');
|
|
69
85
|
var LineChart$1 = require('@mui/x-charts/LineChart');
|
|
70
86
|
var material = require('@mui/material');
|
|
71
87
|
var BarChart$1 = require('@mui/x-charts/BarChart');
|
|
@@ -73,6 +89,7 @@ var PieChart$1 = require('@mui/x-charts/PieChart');
|
|
|
73
89
|
|
|
74
90
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
75
91
|
|
|
92
|
+
var React2__default = /*#__PURE__*/_interopDefault(React2);
|
|
76
93
|
var CssBaseline__default = /*#__PURE__*/_interopDefault(CssBaseline);
|
|
77
94
|
var MuiAutocomplete__default = /*#__PURE__*/_interopDefault(MuiAutocomplete);
|
|
78
95
|
var MuiButton__default = /*#__PURE__*/_interopDefault(MuiButton);
|
|
@@ -88,6 +105,8 @@ var MuiFormControl__default = /*#__PURE__*/_interopDefault(MuiFormControl);
|
|
|
88
105
|
var MuiInputLabel__default = /*#__PURE__*/_interopDefault(MuiInputLabel);
|
|
89
106
|
var MuiSwitch__default = /*#__PURE__*/_interopDefault(MuiSwitch);
|
|
90
107
|
var MuiTextField__default = /*#__PURE__*/_interopDefault(MuiTextField);
|
|
108
|
+
var InputAdornment__default = /*#__PURE__*/_interopDefault(InputAdornment);
|
|
109
|
+
var IconButton__default = /*#__PURE__*/_interopDefault(IconButton);
|
|
91
110
|
var MuiToggleButton__default = /*#__PURE__*/_interopDefault(MuiToggleButton);
|
|
92
111
|
var MuiToggleButtonGroup__default = /*#__PURE__*/_interopDefault(MuiToggleButtonGroup);
|
|
93
112
|
var MuiBadge__default = /*#__PURE__*/_interopDefault(MuiBadge);
|
|
@@ -130,10 +149,21 @@ var MuiDialogContentText__default = /*#__PURE__*/_interopDefault(MuiDialogConten
|
|
|
130
149
|
var MuiLinearProgress__default = /*#__PURE__*/_interopDefault(MuiLinearProgress);
|
|
131
150
|
var MuiCircularProgress__default = /*#__PURE__*/_interopDefault(MuiCircularProgress);
|
|
132
151
|
var MuiSkeleton__default = /*#__PURE__*/_interopDefault(MuiSkeleton);
|
|
152
|
+
var MuiModal__default = /*#__PURE__*/_interopDefault(MuiModal);
|
|
153
|
+
var MuiPopover__default = /*#__PURE__*/_interopDefault(MuiPopover);
|
|
133
154
|
var MuiSnackbar__default = /*#__PURE__*/_interopDefault(MuiSnackbar);
|
|
155
|
+
var MuiBreadcrumbs__default = /*#__PURE__*/_interopDefault(MuiBreadcrumbs);
|
|
156
|
+
var MuiLink__default = /*#__PURE__*/_interopDefault(MuiLink);
|
|
157
|
+
var MuiMenu__default = /*#__PURE__*/_interopDefault(MuiMenu);
|
|
158
|
+
var MuiMenuList__default = /*#__PURE__*/_interopDefault(MuiMenuList);
|
|
159
|
+
var MuiPagination__default = /*#__PURE__*/_interopDefault(MuiPagination);
|
|
160
|
+
var MuiStepper__default = /*#__PURE__*/_interopDefault(MuiStepper);
|
|
161
|
+
var MuiStep__default = /*#__PURE__*/_interopDefault(MuiStep);
|
|
162
|
+
var MuiStepLabel__default = /*#__PURE__*/_interopDefault(MuiStepLabel);
|
|
163
|
+
var MuiTabs__default = /*#__PURE__*/_interopDefault(MuiTabs);
|
|
164
|
+
var MuiTab__default = /*#__PURE__*/_interopDefault(MuiTab);
|
|
134
165
|
var MuiDrawer__default = /*#__PURE__*/_interopDefault(MuiDrawer);
|
|
135
166
|
var Box__default = /*#__PURE__*/_interopDefault(Box);
|
|
136
|
-
var IconButton__default = /*#__PURE__*/_interopDefault(IconButton);
|
|
137
167
|
|
|
138
168
|
// src/provider/ForestProvider.tsx
|
|
139
169
|
|
|
@@ -229,14 +259,19 @@ var colors = {
|
|
|
229
259
|
950: "#102a56"
|
|
230
260
|
},
|
|
231
261
|
teal: {
|
|
262
|
+
50: "#f0fdf9",
|
|
232
263
|
100: "#ccfbef",
|
|
233
264
|
200: "#99f6e0",
|
|
265
|
+
300: "#5fe9d0",
|
|
266
|
+
400: "#2ed3b7",
|
|
234
267
|
600: "#0e9384",
|
|
235
268
|
700: "#107569"
|
|
236
269
|
},
|
|
237
270
|
orange: {
|
|
238
271
|
100: "#fdead7",
|
|
239
272
|
200: "#f9dbaf",
|
|
273
|
+
300: "#f7b27a",
|
|
274
|
+
400: "#f38744",
|
|
240
275
|
600: "#e04f16",
|
|
241
276
|
700: "#b93815"
|
|
242
277
|
},
|
|
@@ -249,24 +284,31 @@ var colors = {
|
|
|
249
284
|
pink: {
|
|
250
285
|
100: "#fce7f6",
|
|
251
286
|
200: "#fcceee",
|
|
287
|
+
400: "#f670c7",
|
|
288
|
+
500: "#ee46bc",
|
|
252
289
|
600: "#dd2590",
|
|
253
290
|
700: "#c11574"
|
|
254
291
|
},
|
|
255
292
|
fuchsia: {
|
|
256
293
|
100: "#fbe8ff",
|
|
257
294
|
200: "#f6d0fe",
|
|
295
|
+
400: "#e478fa",
|
|
296
|
+
500: "#d444f1",
|
|
258
297
|
600: "#ba24d5",
|
|
259
298
|
700: "#9f1ab1"
|
|
260
299
|
},
|
|
261
300
|
orangeDark: {
|
|
262
301
|
100: "#ffe6d5",
|
|
263
302
|
200: "#ffd6ae",
|
|
303
|
+
400: "#ff692e",
|
|
304
|
+
500: "#ff4405",
|
|
264
305
|
600: "#e62e05",
|
|
265
306
|
700: "#bc1b06"
|
|
266
307
|
},
|
|
267
308
|
green: {
|
|
268
309
|
100: "#d3f8df",
|
|
269
310
|
200: "#aaf0c4",
|
|
311
|
+
500: "#16b364",
|
|
270
312
|
600: "#099250",
|
|
271
313
|
700: "#087443"
|
|
272
314
|
},
|
|
@@ -275,6 +317,30 @@ var colors = {
|
|
|
275
317
|
200: "#c7d7fe",
|
|
276
318
|
600: "#444ce7",
|
|
277
319
|
700: "#3538cd"
|
|
320
|
+
},
|
|
321
|
+
violet: {
|
|
322
|
+
100: "#ece9fe",
|
|
323
|
+
200: "#ddd6fe",
|
|
324
|
+
500: "#875bf7",
|
|
325
|
+
600: "#7839ee"
|
|
326
|
+
},
|
|
327
|
+
rose: {
|
|
328
|
+
100: "#ffe4e8",
|
|
329
|
+
200: "#fecdd6",
|
|
330
|
+
400: "#fd6f8e",
|
|
331
|
+
500: "#f63d68"
|
|
332
|
+
},
|
|
333
|
+
blueLight: {
|
|
334
|
+
100: "#e0f2fe",
|
|
335
|
+
200: "#b9e6fe",
|
|
336
|
+
400: "#36bffa",
|
|
337
|
+
500: "#0ba5ec"
|
|
338
|
+
},
|
|
339
|
+
cyan: {
|
|
340
|
+
100: "#cff9fe",
|
|
341
|
+
200: "#a5f0fc",
|
|
342
|
+
600: "#088ab2",
|
|
343
|
+
700: "#0e7090"
|
|
278
344
|
}
|
|
279
345
|
};
|
|
280
346
|
var spacing = {
|
|
@@ -571,7 +637,7 @@ var toggleColors = {
|
|
|
571
637
|
buttonFgDisabled: colors.gray[50]
|
|
572
638
|
};
|
|
573
639
|
var chartColors = {
|
|
574
|
-
axisFg: colors.gray[
|
|
640
|
+
axisFg: colors.gray[100],
|
|
575
641
|
gridlineFg: colors.gray[100],
|
|
576
642
|
labelFg: colors.gray[600],
|
|
577
643
|
labelFgEmphasis: colors.gray[700],
|
|
@@ -581,31 +647,19 @@ var chartColors = {
|
|
|
581
647
|
tooltipFg: colors.base.white,
|
|
582
648
|
crosshairFg: colors.gray[500],
|
|
583
649
|
legendFg: text.tertiary,
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
],
|
|
598
|
-
vibrant: [
|
|
599
|
-
"#6B38FB",
|
|
600
|
-
// 1. Deep Purple
|
|
601
|
-
"#E85B22",
|
|
602
|
-
// 2. Deep Orange
|
|
603
|
-
"#4AABFF",
|
|
604
|
-
// 3. Bright Blue
|
|
605
|
-
"#E83B1A",
|
|
606
|
-
// 4. True Red
|
|
607
|
-
"#E02088"
|
|
608
|
-
// 5. Magenta
|
|
650
|
+
series: [
|
|
651
|
+
{ fg: colors.violet[500], fgHover: colors.violet[600], bg: colors.violet[100], bgHover: colors.violet[200] },
|
|
652
|
+
{ fg: colors.orangeDark[400], fgHover: colors.orangeDark[500], bg: colors.orangeDark[100], bgHover: colors.orangeDark[200] },
|
|
653
|
+
{ fg: colors.teal[300], fgHover: colors.teal[400], bg: colors.teal[50], bgHover: colors.teal[100] },
|
|
654
|
+
{ fg: colors.warning[400], fgHover: colors.warning[500], bg: colors.warning[100], bgHover: colors.warning[200] },
|
|
655
|
+
{ fg: colors.rose[400], fgHover: colors.rose[500], bg: colors.rose[100], bgHover: colors.rose[200] },
|
|
656
|
+
{ fg: colors.blueLight[400], fgHover: colors.blueLight[500], bg: colors.blueLight[100], bgHover: colors.blueLight[200] },
|
|
657
|
+
{ fg: colors.orange[300], fgHover: colors.orange[400], bg: colors.orange[100], bgHover: colors.orange[200] },
|
|
658
|
+
{ fg: colors.cyan[600], fgHover: colors.cyan[700], bg: colors.cyan[100], bgHover: colors.cyan[200] },
|
|
659
|
+
{ fg: colors.green[500], fgHover: colors.green[600], bg: colors.green[100], bgHover: colors.green[200] },
|
|
660
|
+
{ fg: colors.pink[400], fgHover: colors.pink[500], bg: colors.pink[100], bgHover: colors.pink[200] },
|
|
661
|
+
{ fg: colors.fuchsia[400], fgHover: colors.fuchsia[500], bg: colors.fuchsia[100], bgHover: colors.fuchsia[200] },
|
|
662
|
+
{ fg: colors.teal[600], fgHover: colors.teal[700], bg: colors.teal[100], bgHover: colors.teal[200] }
|
|
609
663
|
]
|
|
610
664
|
};
|
|
611
665
|
var alpha = {
|
|
@@ -990,18 +1044,21 @@ function buildComponents(tokens) {
|
|
|
990
1044
|
}
|
|
991
1045
|
}
|
|
992
1046
|
},
|
|
993
|
-
// ───
|
|
994
|
-
|
|
1047
|
+
// ─── Menu ──────────────────────────────────────────────────────
|
|
1048
|
+
MuiMenu: {
|
|
995
1049
|
defaultProps: {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1050
|
+
autoFocus: false
|
|
1051
|
+
},
|
|
1052
|
+
styleOverrides: {
|
|
1053
|
+
root: {
|
|
1054
|
+
"& .MuiBackdrop-root": {
|
|
1055
|
+
backgroundColor: "transparent"
|
|
1002
1056
|
}
|
|
1003
1057
|
}
|
|
1004
|
-
}
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
// ─── Select ─────────────────────────────────────────────────────
|
|
1061
|
+
MuiSelect: {
|
|
1005
1062
|
styleOverrides: {
|
|
1006
1063
|
select: {
|
|
1007
1064
|
"&.MuiSelect-select": {
|
|
@@ -2020,19 +2077,8 @@ var forestPreset = {
|
|
|
2020
2077
|
};
|
|
2021
2078
|
|
|
2022
2079
|
// src/theme/presets/alkemy-plus.ts
|
|
2023
|
-
var red = {
|
|
2024
|
-
50: "#fef2f2",
|
|
2025
|
-
200: "#fecaca",
|
|
2026
|
-
600: "#dc2626",
|
|
2027
|
-
700: "#b91c1c",
|
|
2028
|
-
800: "#991b1b",
|
|
2029
|
-
900: "#7f1d1d"};
|
|
2030
2080
|
var colors2 = {
|
|
2031
|
-
|
|
2032
|
-
white: "#ffffff",
|
|
2033
|
-
black: "#000000",
|
|
2034
|
-
transparent: "#ffffff00"
|
|
2035
|
-
},
|
|
2081
|
+
...colors,
|
|
2036
2082
|
/** Brand scale — black-based for primary actions */
|
|
2037
2083
|
brand: {
|
|
2038
2084
|
25: "#fafafa",
|
|
@@ -2062,36 +2108,7 @@ var colors2 = {
|
|
|
2062
2108
|
800: "#27272a",
|
|
2063
2109
|
900: "#18181b",
|
|
2064
2110
|
950: "#09090b"
|
|
2065
|
-
}
|
|
2066
|
-
/** Error — forest defaults (standard UX red) */
|
|
2067
|
-
error: colors.error,
|
|
2068
|
-
/** Warning — orange/yellow tones from Alkemy+ palette */
|
|
2069
|
-
warning: {
|
|
2070
|
-
25: "#fffcf5",
|
|
2071
|
-
50: "#fff7ed",
|
|
2072
|
-
100: "#ffedd5",
|
|
2073
|
-
200: "#fed7aa",
|
|
2074
|
-
300: "#fdba74",
|
|
2075
|
-
400: "#fb923c",
|
|
2076
|
-
500: "#f08828",
|
|
2077
|
-
600: "#ea580c",
|
|
2078
|
-
700: "#c2410c",
|
|
2079
|
-
800: "#9a3412",
|
|
2080
|
-
900: "#7c2d12",
|
|
2081
|
-
950: "#431407"
|
|
2082
|
-
},
|
|
2083
|
-
/** Success — forest defaults (standard UX green) */
|
|
2084
|
-
success: colors.success,
|
|
2085
|
-
/** Blue (info) — forest defaults (standard UX) */
|
|
2086
|
-
blue: colors.blue,
|
|
2087
|
-
teal: colors.teal,
|
|
2088
|
-
orange: colors.orange,
|
|
2089
|
-
purple: colors.purple,
|
|
2090
|
-
pink: colors.pink,
|
|
2091
|
-
fuchsia: colors.fuchsia,
|
|
2092
|
-
orangeDark: colors.orangeDark,
|
|
2093
|
-
green: colors.green,
|
|
2094
|
-
indigo: colors.indigo
|
|
2111
|
+
}
|
|
2095
2112
|
};
|
|
2096
2113
|
var radius2 = {
|
|
2097
2114
|
...radius,
|
|
@@ -2116,10 +2133,10 @@ var text2 = {
|
|
|
2116
2133
|
placeholder: colors2.gray[500],
|
|
2117
2134
|
placeholderSubtle: colors2.gray[300],
|
|
2118
2135
|
white: colors2.base.white,
|
|
2119
|
-
brandPrimary:
|
|
2120
|
-
brandSecondary:
|
|
2121
|
-
brandTertiary:
|
|
2122
|
-
brandTertiaryAlt:
|
|
2136
|
+
brandPrimary: colors2.brand[900],
|
|
2137
|
+
brandSecondary: colors2.brand[700],
|
|
2138
|
+
brandTertiary: colors2.brand[600],
|
|
2139
|
+
brandTertiaryAlt: colors2.brand[600],
|
|
2123
2140
|
primaryOnBrand: colors2.base.white,
|
|
2124
2141
|
secondaryOnBrand: colors2.brand[200],
|
|
2125
2142
|
tertiaryOnBrand: colors2.brand[200],
|
|
@@ -2131,22 +2148,22 @@ var text2 = {
|
|
|
2131
2148
|
var bg2 = {
|
|
2132
2149
|
primary: colors2.gray[50],
|
|
2133
2150
|
primaryAlt: colors2.gray[50],
|
|
2134
|
-
primaryHover: colors2.gray[
|
|
2151
|
+
primaryHover: colors2.gray[100],
|
|
2135
2152
|
primarySolid: colors2.gray[950],
|
|
2136
2153
|
secondary: colors2.base.white,
|
|
2137
2154
|
secondaryAlt: colors2.base.white,
|
|
2138
2155
|
secondarySubtle: colors2.gray[25],
|
|
2139
|
-
secondaryHover: colors2.gray[
|
|
2156
|
+
secondaryHover: colors2.gray[50],
|
|
2140
2157
|
secondarySolid: colors2.gray[600],
|
|
2141
2158
|
tertiary: colors2.gray[100],
|
|
2142
2159
|
quaternary: colors2.gray[200],
|
|
2143
|
-
active: colors2.gray[
|
|
2160
|
+
active: colors2.gray[200],
|
|
2144
2161
|
disabled: colors2.gray[100],
|
|
2145
2162
|
disabledSubtle: colors2.gray[50],
|
|
2146
2163
|
overlay: colors2.gray[950],
|
|
2147
|
-
brandPrimary: colors2.brand[
|
|
2148
|
-
brandPrimaryAlt: colors2.brand[
|
|
2149
|
-
brandSecondary: colors2.brand[
|
|
2164
|
+
brandPrimary: colors2.brand[50],
|
|
2165
|
+
brandPrimaryAlt: colors2.brand[50],
|
|
2166
|
+
brandSecondary: colors2.brand[100],
|
|
2150
2167
|
brandSolid: colors2.brand[600],
|
|
2151
2168
|
brandSolidHover: colors2.brand[700],
|
|
2152
2169
|
brandSection: colors2.brand[800],
|
|
@@ -2198,7 +2215,6 @@ var border2 = {
|
|
|
2198
2215
|
errorSolid: colors2.error[600]
|
|
2199
2216
|
};
|
|
2200
2217
|
var buttonColors2 = {
|
|
2201
|
-
/** Primary buttons — black */
|
|
2202
2218
|
primary: {
|
|
2203
2219
|
bg: colors2.brand[600],
|
|
2204
2220
|
bgHover: colors2.brand[700],
|
|
@@ -2215,7 +2231,6 @@ var buttonColors2 = {
|
|
|
2215
2231
|
border: colors2.gray[300],
|
|
2216
2232
|
borderHover: colors2.gray[300]
|
|
2217
2233
|
},
|
|
2218
|
-
/** Outlined accent buttons — dark */
|
|
2219
2234
|
secondaryColor: {
|
|
2220
2235
|
bg: colors2.base.white,
|
|
2221
2236
|
bgHover: colors2.brand[50],
|
|
@@ -2229,11 +2244,10 @@ var buttonColors2 = {
|
|
|
2229
2244
|
fgHover: colors2.gray[700],
|
|
2230
2245
|
bgHover: colors2.gray[50]
|
|
2231
2246
|
},
|
|
2232
|
-
/** Text accent buttons — red */
|
|
2233
2247
|
tertiaryColor: {
|
|
2234
|
-
fg:
|
|
2235
|
-
fgHover:
|
|
2236
|
-
bgHover:
|
|
2248
|
+
fg: colors2.brand[700],
|
|
2249
|
+
fgHover: colors2.brand[800],
|
|
2250
|
+
bgHover: colors2.brand[50]
|
|
2237
2251
|
},
|
|
2238
2252
|
primaryError: {
|
|
2239
2253
|
bg: colors2.error[600],
|
|
@@ -2262,22 +2276,23 @@ var avatarColors2 = {
|
|
|
2262
2276
|
contrastBorder: "#00000014",
|
|
2263
2277
|
profilePhotoBorder: colors2.base.white,
|
|
2264
2278
|
focusBorder: "#a0a0a624"
|
|
2279
|
+
// gray[400] + 14% alpha
|
|
2265
2280
|
};
|
|
2266
2281
|
var breadcrumbColors2 = {
|
|
2267
2282
|
fg: colors2.gray[600],
|
|
2268
2283
|
fgHover: colors2.gray[700],
|
|
2269
2284
|
bgHover: colors2.gray[50],
|
|
2270
|
-
brandBgHover:
|
|
2271
|
-
brandFgHover:
|
|
2285
|
+
brandBgHover: colors2.brand[50],
|
|
2286
|
+
brandFgHover: colors2.brand[700],
|
|
2272
2287
|
iconFg: colors2.gray[500],
|
|
2273
2288
|
iconFgHover: colors2.gray[700],
|
|
2274
|
-
brandIconFgHover:
|
|
2289
|
+
brandIconFgHover: colors2.brand[700]
|
|
2275
2290
|
};
|
|
2276
2291
|
var iconColors2 = {
|
|
2277
|
-
fgBrand:
|
|
2278
|
-
fgBrandOnBrand:
|
|
2292
|
+
fgBrand: colors2.brand[600],
|
|
2293
|
+
fgBrandOnBrand: colors2.brand[200],
|
|
2279
2294
|
featuredModernBorder: colors2.gray[200],
|
|
2280
|
-
featuredLightFgBrand:
|
|
2295
|
+
featuredLightFgBrand: colors2.brand[600],
|
|
2281
2296
|
featuredLightFgGray: colors2.gray[500],
|
|
2282
2297
|
featuredLightFgError: colors2.error[600],
|
|
2283
2298
|
featuredLightFgWarning: colors2.warning[600],
|
|
@@ -2290,19 +2305,19 @@ var iconColors2 = {
|
|
|
2290
2305
|
};
|
|
2291
2306
|
var navColors2 = {
|
|
2292
2307
|
itemIconFg: colors2.gray[500],
|
|
2293
|
-
itemIconFgActive: colors2.gray[
|
|
2308
|
+
itemIconFgActive: colors2.gray[700],
|
|
2294
2309
|
itemButtonIconFg: colors2.gray[500],
|
|
2295
2310
|
itemButtonIconFgActive: colors2.gray[700]
|
|
2296
2311
|
};
|
|
2297
2312
|
var sliderColors2 = {
|
|
2298
|
-
handleBorder:
|
|
2313
|
+
handleBorder: colors2.brand[600],
|
|
2299
2314
|
handleBg: colors2.base.white
|
|
2300
2315
|
};
|
|
2301
2316
|
var toggleColors2 = {
|
|
2302
2317
|
buttonFgDisabled: colors2.gray[50]
|
|
2303
2318
|
};
|
|
2304
2319
|
var chartColors2 = {
|
|
2305
|
-
axisFg: colors2.gray[
|
|
2320
|
+
axisFg: colors2.gray[100],
|
|
2306
2321
|
gridlineFg: colors2.gray[100],
|
|
2307
2322
|
labelFg: colors2.gray[600],
|
|
2308
2323
|
labelFgEmphasis: colors2.gray[700],
|
|
@@ -2312,52 +2327,25 @@ var chartColors2 = {
|
|
|
2312
2327
|
tooltipFg: colors2.base.white,
|
|
2313
2328
|
crosshairFg: colors2.gray[500],
|
|
2314
2329
|
legendFg: text2.tertiary,
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
]
|
|
2329
|
-
vibrant: [
|
|
2330
|
-
"#6B38FB",
|
|
2331
|
-
"#E85B22",
|
|
2332
|
-
"#4AABFF",
|
|
2333
|
-
"#E83B1A",
|
|
2334
|
-
"#E02088"
|
|
2335
|
-
],
|
|
2336
|
-
series6Fg: colors2.brand[400],
|
|
2337
|
-
series6FgHover: colors2.brand[500],
|
|
2338
|
-
series6Bg: colors2.brand[100],
|
|
2339
|
-
series6BgHover: colors2.brand[200],
|
|
2340
|
-
series7Fg: colors2.fuchsia[600],
|
|
2341
|
-
series7FgHover: colors2.fuchsia[700],
|
|
2342
|
-
series7Bg: colors2.fuchsia[100],
|
|
2343
|
-
series7BgHover: colors2.fuchsia[200],
|
|
2344
|
-
series8Fg: colors2.teal[600],
|
|
2345
|
-
series8FgHover: colors2.teal[700],
|
|
2346
|
-
series8Bg: colors2.teal[100],
|
|
2347
|
-
series8BgHover: colors2.teal[200],
|
|
2348
|
-
series9Fg: colors2.indigo[600],
|
|
2349
|
-
series9FgHover: colors2.indigo[700],
|
|
2350
|
-
series9Bg: colors2.indigo[100],
|
|
2351
|
-
series9BgHover: colors2.indigo[200],
|
|
2352
|
-
series10Fg: colors2.green[600],
|
|
2353
|
-
series10FgHover: colors2.green[700],
|
|
2354
|
-
series10Bg: colors2.green[100],
|
|
2355
|
-
series10BgHover: colors2.green[200]
|
|
2330
|
+
series: [
|
|
2331
|
+
{ fg: colors2.violet[500], fgHover: colors2.violet[600], bg: colors2.violet[100], bgHover: colors2.violet[200] },
|
|
2332
|
+
{ fg: colors2.orangeDark[400], fgHover: colors2.orangeDark[500], bg: colors2.orangeDark[100], bgHover: colors2.orangeDark[200] },
|
|
2333
|
+
{ fg: colors2.teal[300], fgHover: colors2.teal[400], bg: colors2.teal[50], bgHover: colors2.teal[100] },
|
|
2334
|
+
{ fg: colors2.warning[400], fgHover: colors2.warning[500], bg: colors2.warning[100], bgHover: colors2.warning[200] },
|
|
2335
|
+
{ fg: colors2.rose[400], fgHover: colors2.rose[500], bg: colors2.rose[100], bgHover: colors2.rose[200] },
|
|
2336
|
+
{ fg: colors2.blueLight[400], fgHover: colors2.blueLight[500], bg: colors2.blueLight[100], bgHover: colors2.blueLight[200] },
|
|
2337
|
+
{ fg: colors2.orange[300], fgHover: colors2.orange[400], bg: colors2.orange[100], bgHover: colors2.orange[200] },
|
|
2338
|
+
{ fg: colors2.cyan[600], fgHover: colors2.cyan[700], bg: colors2.cyan[100], bgHover: colors2.cyan[200] },
|
|
2339
|
+
{ fg: colors2.green[500], fgHover: colors2.green[600], bg: colors2.green[100], bgHover: colors2.green[200] },
|
|
2340
|
+
{ fg: colors2.pink[400], fgHover: colors2.pink[500], bg: colors2.pink[100], bgHover: colors2.pink[200] },
|
|
2341
|
+
{ fg: colors2.fuchsia[400], fgHover: colors2.fuchsia[500], bg: colors2.fuchsia[100], bgHover: colors2.fuchsia[200] },
|
|
2342
|
+
{ fg: colors2.teal[600], fgHover: colors2.teal[700], bg: colors2.teal[100], bgHover: colors2.teal[200] }
|
|
2343
|
+
]
|
|
2356
2344
|
};
|
|
2357
2345
|
var focusRings2 = {
|
|
2358
|
-
brand: "0px 0px 0px 4px #
|
|
2359
|
-
brandShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #
|
|
2360
|
-
brandShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #
|
|
2346
|
+
brand: "0px 0px 0px 4px #4040403d",
|
|
2347
|
+
brandShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #4040403d",
|
|
2348
|
+
brandShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #4040403d",
|
|
2361
2349
|
gray: "0px 0px 0px 4px #a0a0a624",
|
|
2362
2350
|
grayShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #a0a0a624",
|
|
2363
2351
|
grayShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #a0a0a624",
|
|
@@ -2432,7 +2420,7 @@ function ForestProvider({
|
|
|
2432
2420
|
variant,
|
|
2433
2421
|
disableCssBaseline = false
|
|
2434
2422
|
}) {
|
|
2435
|
-
const resolvedTheme =
|
|
2423
|
+
const resolvedTheme = React2.useMemo(() => {
|
|
2436
2424
|
if (theme) return theme;
|
|
2437
2425
|
if (!preset) return forestTheme;
|
|
2438
2426
|
const presetConfig = getPreset(preset);
|
|
@@ -2497,8 +2485,7 @@ function MultiSelect({
|
|
|
2497
2485
|
const arr = typeof selected === "string" ? selected.split(",") : selected;
|
|
2498
2486
|
onChange(arr);
|
|
2499
2487
|
};
|
|
2500
|
-
const handleSelectAll = (
|
|
2501
|
-
e.stopPropagation();
|
|
2488
|
+
const handleSelectAll = () => {
|
|
2502
2489
|
onChange(allSelected ? [] : options.map((o) => o.value));
|
|
2503
2490
|
};
|
|
2504
2491
|
const labelMap = new Map(options.map((o) => [o.value, o.label]));
|
|
@@ -2523,12 +2510,14 @@ function MultiSelect({
|
|
|
2523
2510
|
...rest,
|
|
2524
2511
|
children: [
|
|
2525
2512
|
selectAll && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2526
|
-
|
|
2513
|
+
"li",
|
|
2527
2514
|
{
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2515
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
2516
|
+
onClick: (e) => {
|
|
2517
|
+
e.stopPropagation();
|
|
2518
|
+
handleSelectAll();
|
|
2519
|
+
},
|
|
2520
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MuiButton__default.default, { size: "small", variant: "text", children: allSelected ? "Deselect All" : selectAllLabel })
|
|
2532
2521
|
}
|
|
2533
2522
|
),
|
|
2534
2523
|
options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(MuiMenuItem__default.default, { value: option.value, children: [
|
|
@@ -2546,12 +2535,72 @@ function Switch(props) {
|
|
|
2546
2535
|
function TextField(props) {
|
|
2547
2536
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiTextField__default.default, { ...props });
|
|
2548
2537
|
}
|
|
2538
|
+
var Search_default = utils.createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
2539
|
+
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
2540
|
+
}), "Search");
|
|
2541
|
+
var Clear_default = utils.createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
2542
|
+
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
2543
|
+
}), "Clear");
|
|
2544
|
+
function Search({
|
|
2545
|
+
value: controlledValue,
|
|
2546
|
+
onChange,
|
|
2547
|
+
onClear,
|
|
2548
|
+
placeholder = "Search\u2026",
|
|
2549
|
+
slotProps,
|
|
2550
|
+
...props
|
|
2551
|
+
}) {
|
|
2552
|
+
const [internalValue, setInternalValue] = React2.useState("");
|
|
2553
|
+
const isControlled = controlledValue !== void 0;
|
|
2554
|
+
const currentValue = isControlled ? controlledValue : internalValue;
|
|
2555
|
+
const handleChange = React2.useCallback(
|
|
2556
|
+
(e) => {
|
|
2557
|
+
if (!isControlled) setInternalValue(e.target.value);
|
|
2558
|
+
onChange == null ? void 0 : onChange(e);
|
|
2559
|
+
},
|
|
2560
|
+
[isControlled, onChange]
|
|
2561
|
+
);
|
|
2562
|
+
const handleClear = React2.useCallback(() => {
|
|
2563
|
+
if (!isControlled) setInternalValue("");
|
|
2564
|
+
onClear == null ? void 0 : onClear();
|
|
2565
|
+
}, [isControlled, onClear]);
|
|
2566
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2567
|
+
MuiTextField__default.default,
|
|
2568
|
+
{
|
|
2569
|
+
variant: "outlined",
|
|
2570
|
+
placeholder,
|
|
2571
|
+
value: currentValue,
|
|
2572
|
+
onChange: handleChange,
|
|
2573
|
+
slotProps: {
|
|
2574
|
+
...slotProps,
|
|
2575
|
+
input: {
|
|
2576
|
+
sx: { pl: "12px", gap: 0 },
|
|
2577
|
+
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(InputAdornment__default.default, { position: "start", sx: { mr: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(Search_default, { sx: { fontSize: 20 } }) }),
|
|
2578
|
+
endAdornment: currentValue ? /* @__PURE__ */ jsxRuntime.jsx(InputAdornment__default.default, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2579
|
+
IconButton__default.default,
|
|
2580
|
+
{
|
|
2581
|
+
"aria-label": "clear search",
|
|
2582
|
+
onClick: handleClear,
|
|
2583
|
+
edge: "end",
|
|
2584
|
+
size: "small",
|
|
2585
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Clear_default, { fontSize: "small" })
|
|
2586
|
+
}
|
|
2587
|
+
) }) : null,
|
|
2588
|
+
...typeof (slotProps == null ? void 0 : slotProps.input) === "object" ? slotProps.input : {}
|
|
2589
|
+
}
|
|
2590
|
+
},
|
|
2591
|
+
...props
|
|
2592
|
+
}
|
|
2593
|
+
);
|
|
2594
|
+
}
|
|
2549
2595
|
function ToggleButton(props) {
|
|
2550
2596
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiToggleButton__default.default, { ...props });
|
|
2551
2597
|
}
|
|
2552
2598
|
function ToggleButtonGroup(props) {
|
|
2553
2599
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiToggleButtonGroup__default.default, { ...props });
|
|
2554
2600
|
}
|
|
2601
|
+
function DatePicker(props) {
|
|
2602
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LocalizationProvider.LocalizationProvider, { dateAdapter: AdapterDayjs.AdapterDayjs, children: /* @__PURE__ */ jsxRuntime.jsx(DatePicker$1.DatePicker, { ...props }) });
|
|
2603
|
+
}
|
|
2555
2604
|
function Badge(props) {
|
|
2556
2605
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiBadge__default.default, { ...props });
|
|
2557
2606
|
}
|
|
@@ -2654,9 +2703,9 @@ function CardMedia(props) {
|
|
|
2654
2703
|
function Paper(props) {
|
|
2655
2704
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiPaper__default.default, { ...props });
|
|
2656
2705
|
}
|
|
2657
|
-
|
|
2658
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MuiAlert__default.default, { ...props });
|
|
2659
|
-
}
|
|
2706
|
+
var Alert = React2__default.default.forwardRef(function Alert2(props, ref) {
|
|
2707
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiAlert__default.default, { ref, ...props });
|
|
2708
|
+
});
|
|
2660
2709
|
function AlertTitle(props) {
|
|
2661
2710
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiAlertTitle__default.default, { ...props });
|
|
2662
2711
|
}
|
|
@@ -2687,22 +2736,58 @@ function CircularProgress(props) {
|
|
|
2687
2736
|
function Skeleton(props) {
|
|
2688
2737
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiSkeleton__default.default, { ...props });
|
|
2689
2738
|
}
|
|
2739
|
+
function Modal(props) {
|
|
2740
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiModal__default.default, { ...props });
|
|
2741
|
+
}
|
|
2742
|
+
function Popover(props) {
|
|
2743
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiPopover__default.default, { ...props });
|
|
2744
|
+
}
|
|
2690
2745
|
function Snackbar(props) {
|
|
2691
2746
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiSnackbar__default.default, { ...props });
|
|
2692
2747
|
}
|
|
2748
|
+
function Breadcrumbs(props) {
|
|
2749
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiBreadcrumbs__default.default, { ...props });
|
|
2750
|
+
}
|
|
2751
|
+
function Link(props) {
|
|
2752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiLink__default.default, { ...props });
|
|
2753
|
+
}
|
|
2754
|
+
function Menu(props) {
|
|
2755
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiMenu__default.default, { ...props });
|
|
2756
|
+
}
|
|
2757
|
+
function MenuList(props) {
|
|
2758
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiMenuList__default.default, { ...props });
|
|
2759
|
+
}
|
|
2760
|
+
function Pagination(props) {
|
|
2761
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiPagination__default.default, { ...props });
|
|
2762
|
+
}
|
|
2763
|
+
function Stepper(props) {
|
|
2764
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiStepper__default.default, { ...props });
|
|
2765
|
+
}
|
|
2766
|
+
function Step(props) {
|
|
2767
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiStep__default.default, { ...props });
|
|
2768
|
+
}
|
|
2769
|
+
function StepLabel(props) {
|
|
2770
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiStepLabel__default.default, { ...props });
|
|
2771
|
+
}
|
|
2772
|
+
function Tabs(props) {
|
|
2773
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiTabs__default.default, { ...props });
|
|
2774
|
+
}
|
|
2775
|
+
function Tab(props) {
|
|
2776
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MuiTab__default.default, { ...props });
|
|
2777
|
+
}
|
|
2693
2778
|
var ChevronLeftOutlined_default = utils.createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
2694
2779
|
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
2695
2780
|
}), "ChevronLeftOutlined");
|
|
2696
2781
|
var ChevronRightOutlined_default = utils.createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
2697
2782
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
2698
2783
|
}), "ChevronRightOutlined");
|
|
2699
|
-
var SidebarContext =
|
|
2784
|
+
var SidebarContext = React2.createContext({
|
|
2700
2785
|
open: true,
|
|
2701
2786
|
collapsedWidth: 48,
|
|
2702
2787
|
expandedWidth: 240
|
|
2703
2788
|
});
|
|
2704
2789
|
function useSidebar() {
|
|
2705
|
-
return
|
|
2790
|
+
return React2.useContext(SidebarContext);
|
|
2706
2791
|
}
|
|
2707
2792
|
function SidebarNav({
|
|
2708
2793
|
open,
|
|
@@ -2849,16 +2934,10 @@ function SidebarItem({
|
|
|
2849
2934
|
endAdornment
|
|
2850
2935
|
] });
|
|
2851
2936
|
}
|
|
2852
|
-
function useChartColors(count
|
|
2937
|
+
function useChartColors(count) {
|
|
2853
2938
|
const theme = styles.useTheme();
|
|
2854
2939
|
const chart = theme.palette.chart;
|
|
2855
|
-
const colors3 = chart
|
|
2856
|
-
"#7B61FF",
|
|
2857
|
-
"#FF7E67",
|
|
2858
|
-
"#76DFD5",
|
|
2859
|
-
"#F6C343",
|
|
2860
|
-
"#B36A6F"
|
|
2861
|
-
];
|
|
2940
|
+
const colors3 = chart.series.map((s) => s.fg);
|
|
2862
2941
|
return colors3.slice(0, Math.min(count, colors3.length));
|
|
2863
2942
|
}
|
|
2864
2943
|
function formatDate(date) {
|
|
@@ -2901,8 +2980,7 @@ function CustomTooltip(props) {
|
|
|
2901
2980
|
borderTop: `1px solid ${theme.palette.divider}`,
|
|
2902
2981
|
borderRight: `1px solid ${theme.palette.divider}`,
|
|
2903
2982
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
2904
|
-
borderLeft: `4px solid ${theme.palette.chart.
|
|
2905
|
-
// Primary Accent line
|
|
2983
|
+
borderLeft: `4px solid ${theme.palette.chart.series[0].fg}`
|
|
2906
2984
|
},
|
|
2907
2985
|
children: [
|
|
2908
2986
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2971,16 +3049,16 @@ function CustomTooltip(props) {
|
|
|
2971
3049
|
}
|
|
2972
3050
|
);
|
|
2973
3051
|
}
|
|
2974
|
-
function LineChart({ series, colors: colors3,
|
|
3052
|
+
function LineChart({ series, colors: colors3, ...props }) {
|
|
2975
3053
|
var _a, _b;
|
|
2976
3054
|
const theme = styles.useTheme();
|
|
2977
3055
|
const chart = theme.palette.chart;
|
|
2978
|
-
const seriesColors = useChartColors((_a = series == null ? void 0 : series.length) != null ? _a : 0
|
|
3056
|
+
const seriesColors = useChartColors((_a = series == null ? void 0 : series.length) != null ? _a : 0);
|
|
2979
3057
|
const modifiedSeries = series == null ? void 0 : series.map((s) => {
|
|
2980
3058
|
var _a2, _b2;
|
|
2981
3059
|
return {
|
|
2982
3060
|
...s,
|
|
2983
|
-
curve: (_a2 = s.curve) != null ? _a2 : "
|
|
3061
|
+
curve: (_a2 = s.curve) != null ? _a2 : "linear",
|
|
2984
3062
|
highlightScope: (_b2 = s.highlightScope) != null ? _b2 : { highlighted: "item", faded: "global" }
|
|
2985
3063
|
};
|
|
2986
3064
|
});
|
|
@@ -3001,17 +3079,18 @@ function LineChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3001
3079
|
}
|
|
3002
3080
|
},
|
|
3003
3081
|
sx: {
|
|
3004
|
-
"& .MuiChartsAxis-line": { stroke: chart.axisFg },
|
|
3005
|
-
"& .MuiChartsAxis-tick": { stroke: chart.axisFg },
|
|
3082
|
+
"& .MuiChartsAxis-line": { stroke: `${chart.axisFg} !important` },
|
|
3083
|
+
"& .MuiChartsAxis-tick": { stroke: `${chart.axisFg} !important` },
|
|
3006
3084
|
"& .MuiChartsAxis-tickLabel": {
|
|
3007
|
-
fill: chart.labelFg
|
|
3008
|
-
fontFamily: theme.typography.fontFamily
|
|
3009
|
-
fontSize:
|
|
3085
|
+
fill: `${chart.labelFg} !important`,
|
|
3086
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3087
|
+
fontSize: `${fontSize.xxs}px !important`,
|
|
3088
|
+
lineHeight: lineHeight.xxs
|
|
3010
3089
|
},
|
|
3011
3090
|
"& .MuiChartsAxis-label": {
|
|
3012
|
-
fill: chart.labelFgEmphasis
|
|
3013
|
-
fontFamily: theme.typography.fontFamily
|
|
3014
|
-
fontSize: typeof theme.typography.body1.fontSize === "number" ? theme.typography.body1.fontSize : 14
|
|
3091
|
+
fill: `${chart.labelFgEmphasis} !important`,
|
|
3092
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3093
|
+
fontSize: `${typeof theme.typography.body1.fontSize === "number" ? theme.typography.body1.fontSize : 14}px !important`,
|
|
3015
3094
|
fontWeight: theme.typography.fontWeightMedium
|
|
3016
3095
|
},
|
|
3017
3096
|
"& .MuiChartsGrid-line": {
|
|
@@ -3019,8 +3098,8 @@ function LineChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3019
3098
|
strokeDasharray: "4 4"
|
|
3020
3099
|
},
|
|
3021
3100
|
"& .MuiChartsLegend-series text": {
|
|
3022
|
-
fill: chart.legendFg
|
|
3023
|
-
fontFamily: theme.typography.fontFamily
|
|
3101
|
+
fill: `${chart.legendFg} !important`,
|
|
3102
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3024
3103
|
fontSize: "14px !important"
|
|
3025
3104
|
},
|
|
3026
3105
|
"& .MuiChartsLegend-mark": {
|
|
@@ -3041,7 +3120,9 @@ function LineChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3041
3120
|
},
|
|
3042
3121
|
"& .MuiLineElement-root": {
|
|
3043
3122
|
strokeWidth: 3
|
|
3044
|
-
|
|
3123
|
+
},
|
|
3124
|
+
"& .MuiMarkElement-root": {
|
|
3125
|
+
display: "none"
|
|
3045
3126
|
},
|
|
3046
3127
|
...(_b = props.sx) != null ? _b : {}
|
|
3047
3128
|
},
|
|
@@ -3049,11 +3130,11 @@ function LineChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3049
3130
|
}
|
|
3050
3131
|
);
|
|
3051
3132
|
}
|
|
3052
|
-
function BarChart({ series, colors: colors3,
|
|
3133
|
+
function BarChart({ series, colors: colors3, ...props }) {
|
|
3053
3134
|
var _a, _b;
|
|
3054
3135
|
const theme = styles.useTheme();
|
|
3055
3136
|
const chart = theme.palette.chart;
|
|
3056
|
-
const seriesColors = useChartColors((_a = series == null ? void 0 : series.length) != null ? _a : 0
|
|
3137
|
+
const seriesColors = useChartColors((_a = series == null ? void 0 : series.length) != null ? _a : 0);
|
|
3057
3138
|
const resolvedColors = colors3 != null ? colors3 : seriesColors;
|
|
3058
3139
|
const modifiedSeries = series == null ? void 0 : series.map((s, idx) => {
|
|
3059
3140
|
var _a2;
|
|
@@ -3084,18 +3165,18 @@ function BarChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3084
3165
|
}
|
|
3085
3166
|
},
|
|
3086
3167
|
sx: {
|
|
3087
|
-
"& .MuiChartsAxis-line": { stroke: chart.axisFg },
|
|
3088
|
-
"& .MuiChartsAxis-tick": { stroke: chart.axisFg },
|
|
3168
|
+
"& .MuiChartsAxis-line": { stroke: `${chart.axisFg} !important` },
|
|
3169
|
+
"& .MuiChartsAxis-tick": { stroke: `${chart.axisFg} !important` },
|
|
3089
3170
|
"& .MuiChartsAxis-tickLabel": {
|
|
3090
|
-
fill: chart.labelFg
|
|
3091
|
-
fontFamily: theme.typography.fontFamily
|
|
3092
|
-
fontSize:
|
|
3093
|
-
|
|
3171
|
+
fill: `${chart.labelFg} !important`,
|
|
3172
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3173
|
+
fontSize: `${fontSize.xxs}px !important`,
|
|
3174
|
+
lineHeight: lineHeight.xxs
|
|
3094
3175
|
},
|
|
3095
3176
|
"& .MuiChartsAxis-label": {
|
|
3096
|
-
fill: chart.labelFgEmphasis
|
|
3097
|
-
fontFamily: theme.typography.fontFamily
|
|
3098
|
-
fontSize: typeof theme.typography.body1.fontSize === "number" ? theme.typography.body1.fontSize : 14
|
|
3177
|
+
fill: `${chart.labelFgEmphasis} !important`,
|
|
3178
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3179
|
+
fontSize: `${typeof theme.typography.body1.fontSize === "number" ? theme.typography.body1.fontSize : 14}px !important`,
|
|
3099
3180
|
fontWeight: theme.typography.fontWeightMedium
|
|
3100
3181
|
},
|
|
3101
3182
|
"& .MuiChartsGrid-line": {
|
|
@@ -3103,8 +3184,8 @@ function BarChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3103
3184
|
strokeDasharray: "4 4"
|
|
3104
3185
|
},
|
|
3105
3186
|
"& .MuiChartsLegend-series text": {
|
|
3106
|
-
fill: chart.legendFg
|
|
3107
|
-
fontFamily: theme.typography.fontFamily
|
|
3187
|
+
fill: `${chart.legendFg} !important`,
|
|
3188
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3108
3189
|
fontSize: "14px !important"
|
|
3109
3190
|
},
|
|
3110
3191
|
"& .MuiChartsLegend-mark": {
|
|
@@ -3122,7 +3203,6 @@ function BarChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3122
3203
|
color: chart.tooltipFg,
|
|
3123
3204
|
borderRadius: theme.shape.borderRadius,
|
|
3124
3205
|
boxShadow: theme.shadows[4]
|
|
3125
|
-
// md equivalent in MUI default array length
|
|
3126
3206
|
},
|
|
3127
3207
|
...(_b = props.sx) != null ? _b : {}
|
|
3128
3208
|
},
|
|
@@ -3149,12 +3229,12 @@ function BarChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3149
3229
|
}
|
|
3150
3230
|
);
|
|
3151
3231
|
}
|
|
3152
|
-
function PieChart({ series, colors: colors3,
|
|
3232
|
+
function PieChart({ series, colors: colors3, ...props }) {
|
|
3153
3233
|
var _a, _b, _c, _d;
|
|
3154
3234
|
const theme = styles.useTheme();
|
|
3155
3235
|
const chart = theme.palette.chart;
|
|
3156
3236
|
const sliceCount = (_c = (_b = (_a = series == null ? void 0 : series[0]) == null ? void 0 : _a.data) == null ? void 0 : _b.length) != null ? _c : 0;
|
|
3157
|
-
const seriesColors = useChartColors(sliceCount
|
|
3237
|
+
const seriesColors = useChartColors(sliceCount);
|
|
3158
3238
|
const modifiedSeries = series == null ? void 0 : series.map((s) => {
|
|
3159
3239
|
var _a2;
|
|
3160
3240
|
return {
|
|
@@ -3176,8 +3256,8 @@ function PieChart({ series, colors: colors3, palette: palette2 = "categorical",
|
|
|
3176
3256
|
},
|
|
3177
3257
|
sx: {
|
|
3178
3258
|
"& .MuiChartsLegend-series text": {
|
|
3179
|
-
fill: chart.legendFg
|
|
3180
|
-
fontFamily: theme.typography.fontFamily
|
|
3259
|
+
fill: `${chart.legendFg} !important`,
|
|
3260
|
+
fontFamily: `${theme.typography.fontFamily} !important`,
|
|
3181
3261
|
fontSize: "14px !important"
|
|
3182
3262
|
},
|
|
3183
3263
|
"& .MuiChartsLegend-mark": {
|
|
@@ -3214,6 +3294,7 @@ exports.Autocomplete = Autocomplete;
|
|
|
3214
3294
|
exports.Backdrop = Backdrop;
|
|
3215
3295
|
exports.Badge = Badge;
|
|
3216
3296
|
exports.BarChart = BarChart;
|
|
3297
|
+
exports.Breadcrumbs = Breadcrumbs;
|
|
3217
3298
|
exports.Button = Button;
|
|
3218
3299
|
exports.ButtonGroup = ButtonGroup;
|
|
3219
3300
|
exports.Card = Card;
|
|
@@ -3225,6 +3306,7 @@ exports.Checkbox = Checkbox;
|
|
|
3225
3306
|
exports.Chip = Chip;
|
|
3226
3307
|
exports.CircularProgress = CircularProgress;
|
|
3227
3308
|
exports.DataGrid = DataGrid;
|
|
3309
|
+
exports.DatePicker = DatePicker;
|
|
3228
3310
|
exports.Dialog = Dialog;
|
|
3229
3311
|
exports.DialogActions = DialogActions;
|
|
3230
3312
|
exports.DialogContent = DialogContent;
|
|
@@ -3235,6 +3317,7 @@ exports.Fab = Fab;
|
|
|
3235
3317
|
exports.ForestProvider = ForestProvider;
|
|
3236
3318
|
exports.LineChart = LineChart;
|
|
3237
3319
|
exports.LinearProgress = LinearProgress;
|
|
3320
|
+
exports.Link = Link;
|
|
3238
3321
|
exports.List = List;
|
|
3239
3322
|
exports.ListItem = ListItem;
|
|
3240
3323
|
exports.ListItemAvatar = ListItemAvatar;
|
|
@@ -3242,24 +3325,35 @@ exports.ListItemButton = ListItemButton;
|
|
|
3242
3325
|
exports.ListItemIcon = ListItemIcon;
|
|
3243
3326
|
exports.ListItemText = ListItemText;
|
|
3244
3327
|
exports.ListSubheader = ListSubheader;
|
|
3328
|
+
exports.Menu = Menu;
|
|
3245
3329
|
exports.MenuItem = MenuItem;
|
|
3330
|
+
exports.MenuList = MenuList;
|
|
3331
|
+
exports.Modal = Modal;
|
|
3246
3332
|
exports.MultiSelect = MultiSelect;
|
|
3333
|
+
exports.Pagination = Pagination;
|
|
3247
3334
|
exports.Paper = Paper;
|
|
3248
3335
|
exports.PieChart = PieChart;
|
|
3336
|
+
exports.Popover = Popover;
|
|
3249
3337
|
exports.Radio = Radio;
|
|
3250
3338
|
exports.RadioGroup = RadioGroup;
|
|
3339
|
+
exports.Search = Search;
|
|
3251
3340
|
exports.Select = Select;
|
|
3252
3341
|
exports.SidebarItem = SidebarItem;
|
|
3253
3342
|
exports.SidebarNav = SidebarNav;
|
|
3254
3343
|
exports.Skeleton = Skeleton;
|
|
3255
3344
|
exports.Snackbar = Snackbar;
|
|
3345
|
+
exports.Step = Step;
|
|
3346
|
+
exports.StepLabel = StepLabel;
|
|
3347
|
+
exports.Stepper = Stepper;
|
|
3256
3348
|
exports.Switch = Switch;
|
|
3349
|
+
exports.Tab = Tab;
|
|
3257
3350
|
exports.Table = Table;
|
|
3258
3351
|
exports.TableBody = TableBody;
|
|
3259
3352
|
exports.TableCell = TableCell;
|
|
3260
3353
|
exports.TableContainer = TableContainer;
|
|
3261
3354
|
exports.TableHead = TableHead;
|
|
3262
3355
|
exports.TableRow = TableRow;
|
|
3356
|
+
exports.Tabs = Tabs;
|
|
3263
3357
|
exports.TextField = TextField;
|
|
3264
3358
|
exports.ToggleButton = ToggleButton;
|
|
3265
3359
|
exports.ToggleButtonGroup = ToggleButtonGroup;
|