@matteoaliano/forest-ui 1.1.1 → 1.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/bin/sync.mjs +15 -1
- package/dist/{chunk-BCOHH5MJ.mjs → chunk-4PNVZETQ.mjs} +63 -18
- package/dist/chunk-4PNVZETQ.mjs.map +1 -0
- package/dist/index.d.mts +155 -32
- package/dist/index.d.ts +155 -32
- package/dist/index.js +163 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +306 -317
- package/dist/index.mjs.map +1 -1
- package/dist/theme.js +62 -17
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +2 -2
- package/skills/forest-alkemy-plus/SKILL.md +3 -2
- package/skills/forest-alkemy-plus/references/components.md +4 -4
- package/skills/forest-alkemy-plus/references/patterns.md +3 -3
- package/dist/chunk-BCOHH5MJ.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
toggleColors,
|
|
39
39
|
warning,
|
|
40
40
|
widths
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4PNVZETQ.mjs";
|
|
42
42
|
|
|
43
43
|
// src/provider/ForestProvider.tsx
|
|
44
44
|
import { useMemo } from "react";
|
|
@@ -201,14 +201,10 @@ function MultiSelect({
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
// src/components/Switch/index.tsx
|
|
204
|
-
import
|
|
205
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
206
|
-
function Switch(props) {
|
|
207
|
-
return /* @__PURE__ */ jsx7(MuiSwitch, { ...props });
|
|
208
|
-
}
|
|
204
|
+
import { default as default7 } from "@mui/material/Switch";
|
|
209
205
|
|
|
210
206
|
// src/components/TextField/index.tsx
|
|
211
|
-
import { default as
|
|
207
|
+
import { default as default8 } from "@mui/material/TextField";
|
|
212
208
|
|
|
213
209
|
// src/components/Search/index.tsx
|
|
214
210
|
import { useState, useCallback } from "react";
|
|
@@ -217,7 +213,7 @@ import InputAdornment from "@mui/material/InputAdornment";
|
|
|
217
213
|
import IconButton from "@mui/material/IconButton";
|
|
218
214
|
import SearchIcon from "@mui/icons-material/Search";
|
|
219
215
|
import ClearIcon from "@mui/icons-material/Clear";
|
|
220
|
-
import { jsx as
|
|
216
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
221
217
|
function Search({
|
|
222
218
|
value: controlledValue,
|
|
223
219
|
onChange,
|
|
@@ -241,7 +237,7 @@ function Search({
|
|
|
241
237
|
if (!isControlled) setInternalValue("");
|
|
242
238
|
onClear == null ? void 0 : onClear();
|
|
243
239
|
}, [isControlled, onClear]);
|
|
244
|
-
return /* @__PURE__ */
|
|
240
|
+
return /* @__PURE__ */ jsx7(
|
|
245
241
|
MuiTextField,
|
|
246
242
|
{
|
|
247
243
|
variant,
|
|
@@ -257,15 +253,15 @@ function Search({
|
|
|
257
253
|
gap: 0,
|
|
258
254
|
"& .MuiOutlinedInput-input": { pl: "8px" }
|
|
259
255
|
},
|
|
260
|
-
startAdornment: /* @__PURE__ */
|
|
261
|
-
endAdornment: currentValue ? /* @__PURE__ */
|
|
256
|
+
startAdornment: /* @__PURE__ */ jsx7(InputAdornment, { position: "start", sx: { mr: 0 }, children: /* @__PURE__ */ jsx7(SearchIcon, { sx: { fontSize: 20, color: "text.placeholder" } }) }),
|
|
257
|
+
endAdornment: currentValue ? /* @__PURE__ */ jsx7(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx7(
|
|
262
258
|
IconButton,
|
|
263
259
|
{
|
|
264
260
|
"aria-label": "clear search",
|
|
265
261
|
onClick: handleClear,
|
|
266
262
|
edge: "end",
|
|
267
263
|
size: "small",
|
|
268
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: /* @__PURE__ */ jsx7(ClearIcon, { fontSize: "small" })
|
|
269
265
|
}
|
|
270
266
|
) }) : null,
|
|
271
267
|
...typeof (slotProps == null ? void 0 : slotProps.input) === "object" ? slotProps.input : {}
|
|
@@ -277,18 +273,18 @@ function Search({
|
|
|
277
273
|
}
|
|
278
274
|
|
|
279
275
|
// src/components/Input/index.tsx
|
|
280
|
-
import { default as
|
|
276
|
+
import { default as default9 } from "@mui/material/InputBase";
|
|
281
277
|
|
|
282
278
|
// src/components/IconButton/index.tsx
|
|
283
279
|
import MuiIconButton from "@mui/material/IconButton";
|
|
284
|
-
import { jsx as
|
|
280
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
285
281
|
function IconButton2({
|
|
286
|
-
variant = "
|
|
282
|
+
variant = "contained",
|
|
287
283
|
className,
|
|
288
284
|
...props
|
|
289
285
|
}) {
|
|
290
|
-
const cls = variant === "
|
|
291
|
-
return /* @__PURE__ */
|
|
286
|
+
const cls = variant === "icon" ? className : ["ForestIconButton", `ForestIconButton-${variant}`, className].filter(Boolean).join(" ");
|
|
287
|
+
return /* @__PURE__ */ jsx8(MuiIconButton, { className: cls, ...props });
|
|
292
288
|
}
|
|
293
289
|
|
|
294
290
|
// src/components/Logo/index.tsx
|
|
@@ -551,7 +547,7 @@ function scopeArtworkIds(inner, id) {
|
|
|
551
547
|
}
|
|
552
548
|
|
|
553
549
|
// src/components/Logo/index.tsx
|
|
554
|
-
import { jsx as
|
|
550
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
555
551
|
function resolveArtwork(product, variant, color) {
|
|
556
552
|
const variantArt = PRODUCT_ARTWORK[product][variant];
|
|
557
553
|
if (variant === "logomark") {
|
|
@@ -571,7 +567,7 @@ var Logo = forwardRef(
|
|
|
571
567
|
() => artwork ? scopeArtworkIds(artwork.inner, id) : "",
|
|
572
568
|
[artwork, id]
|
|
573
569
|
);
|
|
574
|
-
return /* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ jsx9(
|
|
575
571
|
Box,
|
|
576
572
|
{
|
|
577
573
|
component: "svg",
|
|
@@ -594,50 +590,50 @@ var Logo = forwardRef(
|
|
|
594
590
|
Logo.displayName = "Logo";
|
|
595
591
|
|
|
596
592
|
// src/components/ToggleButton/index.tsx
|
|
597
|
-
import { default as
|
|
598
|
-
import { default as
|
|
593
|
+
import { default as default10 } from "@mui/material/ToggleButton";
|
|
594
|
+
import { default as default11 } from "@mui/material/ToggleButtonGroup";
|
|
599
595
|
|
|
600
596
|
// src/components/DatePicker/index.tsx
|
|
601
597
|
import { DatePicker as MuiDatePicker } from "@mui/x-date-pickers/DatePicker";
|
|
602
598
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
603
599
|
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
|
604
|
-
import { jsx as
|
|
600
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
605
601
|
function DatePicker(props) {
|
|
606
|
-
return /* @__PURE__ */
|
|
602
|
+
return /* @__PURE__ */ jsx10(LocalizationProvider, { dateAdapter: AdapterDayjs, children: /* @__PURE__ */ jsx10(MuiDatePicker, { ...props }) });
|
|
607
603
|
}
|
|
608
604
|
|
|
609
605
|
// src/components/FormControl/index.tsx
|
|
610
|
-
import { default as
|
|
611
|
-
import { default as
|
|
612
|
-
import { default as
|
|
613
|
-
import { default as
|
|
614
|
-
import { default as
|
|
606
|
+
import { default as default12 } from "@mui/material/FormControl";
|
|
607
|
+
import { default as default13 } from "@mui/material/FormControlLabel";
|
|
608
|
+
import { default as default14 } from "@mui/material/FormGroup";
|
|
609
|
+
import { default as default15 } from "@mui/material/FormHelperText";
|
|
610
|
+
import { default as default16 } from "@mui/material/FormLabel";
|
|
615
611
|
|
|
616
612
|
// src/components/InputAdornment/index.tsx
|
|
617
|
-
import { default as
|
|
613
|
+
import { default as default17 } from "@mui/material/InputAdornment";
|
|
618
614
|
|
|
619
615
|
// src/components/InputBase/index.tsx
|
|
620
|
-
import { default as
|
|
616
|
+
import { default as default18 } from "@mui/material/InputBase";
|
|
621
617
|
|
|
622
618
|
// src/components/InputLabel/index.tsx
|
|
623
|
-
import { default as
|
|
619
|
+
import { default as default19 } from "@mui/material/InputLabel";
|
|
624
620
|
|
|
625
621
|
// src/components/OutlinedInput/index.tsx
|
|
626
|
-
import { default as
|
|
627
|
-
import { default as
|
|
622
|
+
import { default as default20 } from "@mui/material/OutlinedInput";
|
|
623
|
+
import { default as default21 } from "@mui/material/FilledInput";
|
|
628
624
|
|
|
629
625
|
// src/components/Avatar/index.tsx
|
|
630
|
-
import { default as
|
|
631
|
-
import { default as
|
|
626
|
+
import { default as default22 } from "@mui/material/Avatar";
|
|
627
|
+
import { default as default23 } from "@mui/material/AvatarGroup";
|
|
632
628
|
|
|
633
629
|
// src/components/Badge/index.tsx
|
|
634
|
-
import { default as
|
|
630
|
+
import { default as default24 } from "@mui/material/Badge";
|
|
635
631
|
|
|
636
632
|
// src/components/Chip/index.tsx
|
|
637
633
|
import MuiChip from "@mui/material/Chip";
|
|
638
634
|
import CloseIcon from "@mui/icons-material/CloseOutlined";
|
|
639
635
|
import { alpha as alpha2 } from "@mui/material/styles";
|
|
640
|
-
import { jsx as
|
|
636
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
641
637
|
var customChipScales = {
|
|
642
638
|
teal: misc.teal,
|
|
643
639
|
orange: misc.orange,
|
|
@@ -650,10 +646,10 @@ var customChipScales = {
|
|
|
650
646
|
rose: misc.rose,
|
|
651
647
|
blueLight: misc.blueLight
|
|
652
648
|
};
|
|
653
|
-
function Chip({ color, deleteIcon = /* @__PURE__ */
|
|
654
|
-
const scale = color &&
|
|
649
|
+
function Chip({ color, deleteIcon = /* @__PURE__ */ jsx11(CloseIcon, {}), sx, ...props }) {
|
|
650
|
+
const scale = color && color in customChipScales ? customChipScales[color] : void 0;
|
|
655
651
|
if (scale) {
|
|
656
|
-
return /* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ jsx11(
|
|
657
653
|
MuiChip,
|
|
658
654
|
{
|
|
659
655
|
deleteIcon,
|
|
@@ -693,7 +689,7 @@ function Chip({ color, deleteIcon = /* @__PURE__ */ jsx12(CloseIcon, {}), sx, ..
|
|
|
693
689
|
}
|
|
694
690
|
);
|
|
695
691
|
}
|
|
696
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ jsx11(
|
|
697
693
|
MuiChip,
|
|
698
694
|
{
|
|
699
695
|
color,
|
|
@@ -705,61 +701,61 @@ function Chip({ color, deleteIcon = /* @__PURE__ */ jsx12(CloseIcon, {}), sx, ..
|
|
|
705
701
|
}
|
|
706
702
|
|
|
707
703
|
// src/components/Divider/index.tsx
|
|
708
|
-
import { default as
|
|
704
|
+
import { default as default25 } from "@mui/material/Divider";
|
|
709
705
|
|
|
710
706
|
// src/components/ImageList/index.tsx
|
|
711
|
-
import { default as
|
|
712
|
-
import { default as
|
|
713
|
-
import { default as
|
|
707
|
+
import { default as default26 } from "@mui/material/ImageList";
|
|
708
|
+
import { default as default27 } from "@mui/material/ImageListItem";
|
|
709
|
+
import { default as default28 } from "@mui/material/ImageListItemBar";
|
|
714
710
|
|
|
715
711
|
// src/components/List/index.tsx
|
|
716
|
-
import { default as
|
|
717
|
-
import { default as
|
|
718
|
-
import { default as
|
|
719
|
-
import { default as
|
|
720
|
-
import { default as
|
|
721
|
-
import { default as
|
|
722
|
-
import { default as
|
|
723
|
-
import { default as
|
|
712
|
+
import { default as default29 } from "@mui/material/List";
|
|
713
|
+
import { default as default30 } from "@mui/material/ListItem";
|
|
714
|
+
import { default as default31 } from "@mui/material/ListItemButton";
|
|
715
|
+
import { default as default32 } from "@mui/material/ListItemIcon";
|
|
716
|
+
import { default as default33 } from "@mui/material/ListItemText";
|
|
717
|
+
import { default as default34 } from "@mui/material/ListItemAvatar";
|
|
718
|
+
import { default as default35 } from "@mui/material/ListSubheader";
|
|
719
|
+
import { default as default36 } from "@mui/material/ListItemSecondaryAction";
|
|
724
720
|
|
|
725
721
|
// src/components/Rating/index.tsx
|
|
726
|
-
import { default as
|
|
722
|
+
import { default as default37 } from "@mui/material/Rating";
|
|
727
723
|
|
|
728
724
|
// src/components/Table/index.tsx
|
|
729
|
-
import { default as
|
|
730
|
-
import { default as
|
|
731
|
-
import { default as
|
|
732
|
-
import { default as
|
|
733
|
-
import { default as
|
|
734
|
-
import { default as
|
|
735
|
-
import { default as
|
|
736
|
-
import { default as
|
|
737
|
-
import { default as
|
|
725
|
+
import { default as default38 } from "@mui/material/Table";
|
|
726
|
+
import { default as default39 } from "@mui/material/TableBody";
|
|
727
|
+
import { default as default40 } from "@mui/material/TableCell";
|
|
728
|
+
import { default as default41 } from "@mui/material/TableContainer";
|
|
729
|
+
import { default as default42 } from "@mui/material/TableHead";
|
|
730
|
+
import { default as default43 } from "@mui/material/TableRow";
|
|
731
|
+
import { default as default44 } from "@mui/material/TableFooter";
|
|
732
|
+
import { default as default45 } from "@mui/material/TablePagination";
|
|
733
|
+
import { default as default46 } from "@mui/material/TableSortLabel";
|
|
738
734
|
|
|
739
735
|
// src/components/DataGrid/index.tsx
|
|
740
736
|
import { DataGrid } from "@mui/x-data-grid";
|
|
741
737
|
|
|
742
738
|
// src/components/Tooltip/index.tsx
|
|
743
739
|
import MuiTooltip from "@mui/material/Tooltip";
|
|
744
|
-
import { jsx as
|
|
740
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
745
741
|
function Tooltip({ arrow = true, ...props }) {
|
|
746
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ jsx12(MuiTooltip, { arrow, ...props });
|
|
747
743
|
}
|
|
748
744
|
|
|
749
745
|
// src/components/Typography/index.tsx
|
|
750
|
-
import { default as
|
|
746
|
+
import { default as default47 } from "@mui/material/Typography";
|
|
751
747
|
|
|
752
748
|
// src/components/Accordion/index.tsx
|
|
753
|
-
import { default as
|
|
754
|
-
import { default as
|
|
755
|
-
import { default as
|
|
756
|
-
import { default as
|
|
749
|
+
import { default as default48 } from "@mui/material/Accordion";
|
|
750
|
+
import { default as default49 } from "@mui/material/AccordionSummary";
|
|
751
|
+
import { default as default50 } from "@mui/material/AccordionDetails";
|
|
752
|
+
import { default as default51 } from "@mui/material/AccordionActions";
|
|
757
753
|
|
|
758
754
|
// src/components/AppBar/index.tsx
|
|
759
755
|
import MuiButton3 from "@mui/material/Button";
|
|
760
|
-
import { default as
|
|
761
|
-
import { default as
|
|
762
|
-
import { jsx as
|
|
756
|
+
import { default as default52 } from "@mui/material/AppBar";
|
|
757
|
+
import { default as default53 } from "@mui/material/Toolbar";
|
|
758
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
763
759
|
function AppBarNavItem({
|
|
764
760
|
label,
|
|
765
761
|
icon,
|
|
@@ -768,7 +764,7 @@ function AppBarNavItem({
|
|
|
768
764
|
sx,
|
|
769
765
|
...props
|
|
770
766
|
}) {
|
|
771
|
-
return /* @__PURE__ */
|
|
767
|
+
return /* @__PURE__ */ jsx13(
|
|
772
768
|
MuiButton3,
|
|
773
769
|
{
|
|
774
770
|
variant: "text",
|
|
@@ -815,13 +811,13 @@ function AppBarNavItem({
|
|
|
815
811
|
|
|
816
812
|
// src/components/Card/index.tsx
|
|
817
813
|
import MuiCard from "@mui/material/Card";
|
|
818
|
-
import { default as
|
|
819
|
-
import { default as
|
|
820
|
-
import { default as
|
|
821
|
-
import { default as
|
|
822
|
-
import { jsx as
|
|
814
|
+
import { default as default54 } from "@mui/material/CardContent";
|
|
815
|
+
import { default as default55 } from "@mui/material/CardHeader";
|
|
816
|
+
import { default as default56 } from "@mui/material/CardActions";
|
|
817
|
+
import { default as default57 } from "@mui/material/CardMedia";
|
|
818
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
823
819
|
function Card({ color = "primary", sx, ...props }) {
|
|
824
|
-
return /* @__PURE__ */
|
|
820
|
+
return /* @__PURE__ */ jsx14(
|
|
825
821
|
MuiCard,
|
|
826
822
|
{
|
|
827
823
|
...props,
|
|
@@ -834,52 +830,48 @@ function Card({ color = "primary", sx, ...props }) {
|
|
|
834
830
|
}
|
|
835
831
|
|
|
836
832
|
// src/components/CardActionArea/index.tsx
|
|
837
|
-
import { default as
|
|
833
|
+
import { default as default58 } from "@mui/material/CardActionArea";
|
|
838
834
|
|
|
839
835
|
// src/components/Drawer/index.tsx
|
|
840
836
|
import MuiDrawer from "@mui/material/Drawer";
|
|
841
|
-
import { default as
|
|
842
|
-
import { jsx as
|
|
837
|
+
import { default as default59 } from "@mui/material/SwipeableDrawer";
|
|
838
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
843
839
|
function Drawer({ anchor = "right", hideBackdrop = true, ...props }) {
|
|
844
|
-
return /* @__PURE__ */
|
|
840
|
+
return /* @__PURE__ */ jsx15(MuiDrawer, { anchor, hideBackdrop, ...props });
|
|
845
841
|
}
|
|
846
842
|
|
|
847
843
|
// src/components/Paper/index.tsx
|
|
848
|
-
import
|
|
849
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
850
|
-
function Paper(props) {
|
|
851
|
-
return /* @__PURE__ */ jsx17(MuiPaper, { ...props });
|
|
852
|
-
}
|
|
844
|
+
import { default as default60 } from "@mui/material/Paper";
|
|
853
845
|
|
|
854
846
|
// src/components/Alert/index.tsx
|
|
855
|
-
import { default as
|
|
856
|
-
import { default as
|
|
847
|
+
import { default as default61 } from "@mui/material/Alert";
|
|
848
|
+
import { default as default62 } from "@mui/material/AlertTitle";
|
|
857
849
|
|
|
858
850
|
// src/components/Backdrop/index.tsx
|
|
859
|
-
import { default as
|
|
851
|
+
import { default as default63 } from "@mui/material/Backdrop";
|
|
860
852
|
|
|
861
853
|
// src/components/Dialog/index.tsx
|
|
862
|
-
import { default as
|
|
863
|
-
import { default as
|
|
864
|
-
import { default as
|
|
865
|
-
import { default as
|
|
866
|
-
import { default as
|
|
854
|
+
import { default as default64 } from "@mui/material/Dialog";
|
|
855
|
+
import { default as default65 } from "@mui/material/DialogTitle";
|
|
856
|
+
import { default as default66 } from "@mui/material/DialogContent";
|
|
857
|
+
import { default as default67 } from "@mui/material/DialogActions";
|
|
858
|
+
import { default as default68 } from "@mui/material/DialogContentText";
|
|
867
859
|
|
|
868
860
|
// src/components/Progress/index.tsx
|
|
869
|
-
import { default as
|
|
870
|
-
import { default as
|
|
861
|
+
import { default as default69 } from "@mui/material/LinearProgress";
|
|
862
|
+
import { default as default70 } from "@mui/material/CircularProgress";
|
|
871
863
|
|
|
872
864
|
// src/components/Skeleton/index.tsx
|
|
873
|
-
import { default as
|
|
865
|
+
import { default as default71 } from "@mui/material/Skeleton";
|
|
874
866
|
|
|
875
867
|
// src/components/Modal/index.tsx
|
|
876
|
-
import { default as
|
|
868
|
+
import { default as default72 } from "@mui/material/Modal";
|
|
877
869
|
|
|
878
870
|
// src/components/Popover/index.tsx
|
|
879
871
|
import MuiPopover from "@mui/material/Popover";
|
|
880
|
-
import { jsx as
|
|
872
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
881
873
|
function Popover({ slotProps, ...props }) {
|
|
882
|
-
return /* @__PURE__ */
|
|
874
|
+
return /* @__PURE__ */ jsx16(
|
|
883
875
|
MuiPopover,
|
|
884
876
|
{
|
|
885
877
|
...props,
|
|
@@ -895,54 +887,54 @@ function Popover({ slotProps, ...props }) {
|
|
|
895
887
|
}
|
|
896
888
|
|
|
897
889
|
// src/components/Snackbar/index.tsx
|
|
898
|
-
import { default as
|
|
890
|
+
import { default as default73 } from "@mui/material/Snackbar";
|
|
899
891
|
|
|
900
892
|
// src/components/SnackbarContent/index.tsx
|
|
901
|
-
import { default as
|
|
893
|
+
import { default as default74 } from "@mui/material/SnackbarContent";
|
|
902
894
|
|
|
903
895
|
// src/components/BottomNavigation/index.tsx
|
|
904
|
-
import { default as
|
|
905
|
-
import { default as
|
|
896
|
+
import { default as default75 } from "@mui/material/BottomNavigation";
|
|
897
|
+
import { default as default76 } from "@mui/material/BottomNavigationAction";
|
|
906
898
|
|
|
907
899
|
// src/components/Breadcrumbs/index.tsx
|
|
908
|
-
import { default as
|
|
900
|
+
import { default as default77 } from "@mui/material/Breadcrumbs";
|
|
909
901
|
|
|
910
902
|
// src/components/Link/index.tsx
|
|
911
|
-
import { default as
|
|
903
|
+
import { default as default78 } from "@mui/material/Link";
|
|
912
904
|
|
|
913
905
|
// src/components/Menu/index.tsx
|
|
914
|
-
import { default as
|
|
915
|
-
import { default as
|
|
906
|
+
import { default as default79 } from "@mui/material/Menu";
|
|
907
|
+
import { default as default80 } from "@mui/material/MenuList";
|
|
916
908
|
|
|
917
909
|
// src/components/MobileStepper/index.tsx
|
|
918
|
-
import { default as
|
|
910
|
+
import { default as default81 } from "@mui/material/MobileStepper";
|
|
919
911
|
|
|
920
912
|
// src/components/Pagination/index.tsx
|
|
921
|
-
import { default as
|
|
913
|
+
import { default as default82 } from "@mui/material/Pagination";
|
|
922
914
|
|
|
923
915
|
// src/components/PaginationItem/index.tsx
|
|
924
|
-
import { default as
|
|
916
|
+
import { default as default83 } from "@mui/material/PaginationItem";
|
|
925
917
|
|
|
926
918
|
// src/components/SpeedDial/index.tsx
|
|
927
|
-
import { default as
|
|
928
|
-
import { default as
|
|
929
|
-
import { default as
|
|
919
|
+
import { default as default84 } from "@mui/material/SpeedDial";
|
|
920
|
+
import { default as default85 } from "@mui/material/SpeedDialAction";
|
|
921
|
+
import { default as default86 } from "@mui/material/SpeedDialIcon";
|
|
930
922
|
|
|
931
923
|
// src/components/Stepper/index.tsx
|
|
932
|
-
import { default as
|
|
933
|
-
import { default as
|
|
934
|
-
import { default as
|
|
935
|
-
import { default as
|
|
936
|
-
import { default as
|
|
937
|
-
import { default as
|
|
938
|
-
import { default as
|
|
924
|
+
import { default as default87 } from "@mui/material/Stepper";
|
|
925
|
+
import { default as default88 } from "@mui/material/Step";
|
|
926
|
+
import { default as default89 } from "@mui/material/StepLabel";
|
|
927
|
+
import { default as default90 } from "@mui/material/StepButton";
|
|
928
|
+
import { default as default91 } from "@mui/material/StepConnector";
|
|
929
|
+
import { default as default92 } from "@mui/material/StepContent";
|
|
930
|
+
import { default as default93 } from "@mui/material/StepIcon";
|
|
939
931
|
|
|
940
932
|
// src/components/Tabs/index.tsx
|
|
941
|
-
import { default as
|
|
942
|
-
import { default as
|
|
933
|
+
import { default as default94 } from "@mui/material/Tabs";
|
|
934
|
+
import { default as default95 } from "@mui/material/Tab";
|
|
943
935
|
|
|
944
936
|
// src/components/TabScrollButton/index.tsx
|
|
945
|
-
import { default as
|
|
937
|
+
import { default as default96 } from "@mui/material/TabScrollButton";
|
|
946
938
|
|
|
947
939
|
// src/components/Sidebar/index.tsx
|
|
948
940
|
import { createContext, useContext } from "react";
|
|
@@ -954,7 +946,7 @@ import MuiListItemButton from "@mui/material/ListItemButton";
|
|
|
954
946
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
955
947
|
import ListItemText from "@mui/material/ListItemText";
|
|
956
948
|
import MuiTooltip2 from "@mui/material/Tooltip";
|
|
957
|
-
import { jsx as
|
|
949
|
+
import { jsx as jsx17, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
958
950
|
var SidebarContext = createContext({
|
|
959
951
|
open: true,
|
|
960
952
|
collapsedWidth: 48,
|
|
@@ -984,7 +976,7 @@ function SidebarNav({
|
|
|
984
976
|
onMouseEnter: () => onOpenChange(true),
|
|
985
977
|
onMouseLeave: () => onOpenChange(false)
|
|
986
978
|
} : {};
|
|
987
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ jsx17(SidebarContext.Provider, { value: { open, collapsedWidth, expandedWidth }, children: /* @__PURE__ */ jsxs3(
|
|
988
980
|
Box2,
|
|
989
981
|
{
|
|
990
982
|
sx: {
|
|
@@ -997,7 +989,7 @@ function SidebarNav({
|
|
|
997
989
|
transition: "width 200ms ease-in-out"
|
|
998
990
|
},
|
|
999
991
|
children: [
|
|
1000
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ jsx17(
|
|
1001
993
|
MuiDrawer2,
|
|
1002
994
|
{
|
|
1003
995
|
variant: "permanent",
|
|
@@ -1025,9 +1017,9 @@ function SidebarNav({
|
|
|
1025
1017
|
overflow: "hidden"
|
|
1026
1018
|
},
|
|
1027
1019
|
children: [
|
|
1028
|
-
header && /* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
footer && /* @__PURE__ */
|
|
1020
|
+
header && /* @__PURE__ */ jsx17(Box2, { sx: { flexShrink: 0 }, children: header }),
|
|
1021
|
+
/* @__PURE__ */ jsx17(Box2, { sx: { flexGrow: 1, overflowY: "auto", overflowX: "hidden" }, children }),
|
|
1022
|
+
footer && /* @__PURE__ */ jsx17(Box2, { sx: { flexShrink: 0 }, children: footer })
|
|
1031
1023
|
]
|
|
1032
1024
|
}
|
|
1033
1025
|
)
|
|
@@ -1037,7 +1029,7 @@ function SidebarNav({
|
|
|
1037
1029
|
// to a square icon toggle. Face is the tonal secondary (light grey in
|
|
1038
1030
|
// light / charcoal in dark), not the primary brand fill — the toggle
|
|
1039
1031
|
// is a utility control, not a call to action.
|
|
1040
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ jsx17(
|
|
1041
1033
|
Button,
|
|
1042
1034
|
{
|
|
1043
1035
|
"aria-label": open ? "Collapse sidebar" : "Expand sidebar",
|
|
@@ -1070,7 +1062,7 @@ function SidebarNav({
|
|
|
1070
1062
|
...theme.applyStyles("dark", { filter: "brightness(1.15)" })
|
|
1071
1063
|
}
|
|
1072
1064
|
}),
|
|
1073
|
-
children: open ? /* @__PURE__ */
|
|
1065
|
+
children: open ? /* @__PURE__ */ jsx17(ChevronLeftOutlined, {}) : /* @__PURE__ */ jsx17(ChevronRightOutlined, {})
|
|
1074
1066
|
}
|
|
1075
1067
|
)
|
|
1076
1068
|
]
|
|
@@ -1114,7 +1106,7 @@ function SidebarItem({
|
|
|
1114
1106
|
}) {
|
|
1115
1107
|
const { open } = useSidebar();
|
|
1116
1108
|
if (!open) {
|
|
1117
|
-
return /* @__PURE__ */
|
|
1109
|
+
return /* @__PURE__ */ jsx17(MuiTooltip2, { title: label, placement: "right", arrow: true, children: /* @__PURE__ */ jsx17(
|
|
1118
1110
|
MuiListItemButton,
|
|
1119
1111
|
{
|
|
1120
1112
|
...rest,
|
|
@@ -1129,13 +1121,13 @@ function SidebarItem({
|
|
|
1129
1121
|
marginInline: "auto",
|
|
1130
1122
|
...sx
|
|
1131
1123
|
},
|
|
1132
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ jsx17(ListItemIcon, { sx: { minWidth: "unset", margin: 0, "& .MuiSvgIcon-root": { fontSize: 20 } }, children: icon })
|
|
1133
1125
|
}
|
|
1134
1126
|
) });
|
|
1135
1127
|
}
|
|
1136
1128
|
return /* @__PURE__ */ jsxs3(MuiListItemButton, { ...rest, sx: { ...itemSx, height: 32, ...sx }, children: [
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ jsx17(ListItemIcon, { sx: { minWidth: 32, "& .MuiSvgIcon-root": { fontSize: 20 } }, children: icon }),
|
|
1130
|
+
/* @__PURE__ */ jsx17(ListItemText, { primary: label }),
|
|
1139
1131
|
endAdornment
|
|
1140
1132
|
] });
|
|
1141
1133
|
}
|
|
@@ -1150,19 +1142,20 @@ import { useColorScheme, useTheme } from "@mui/material/styles";
|
|
|
1150
1142
|
import MenuOutlined from "@mui/icons-material/MenuOutlined";
|
|
1151
1143
|
import DarkModeOutlined from "@mui/icons-material/DarkModeOutlined";
|
|
1152
1144
|
import LightModeOutlined from "@mui/icons-material/LightModeOutlined";
|
|
1153
|
-
import { jsx as
|
|
1145
|
+
import { jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1154
1146
|
function ColorModeToggle() {
|
|
1155
1147
|
const { mode, systemMode, setMode } = useColorScheme();
|
|
1156
1148
|
const resolved = mode === "system" ? systemMode : mode;
|
|
1157
1149
|
const isDark = resolved === "dark";
|
|
1158
|
-
return /* @__PURE__ */
|
|
1150
|
+
return /* @__PURE__ */ jsx18(Tooltip, { title: isDark ? "Switch to light mode" : "Switch to dark mode", children: /* @__PURE__ */ jsx18(
|
|
1159
1151
|
IconButton2,
|
|
1160
1152
|
{
|
|
1153
|
+
variant: "icon",
|
|
1161
1154
|
size: "small",
|
|
1162
1155
|
color: "inherit",
|
|
1163
1156
|
"aria-label": "Toggle color mode",
|
|
1164
1157
|
onClick: () => setMode(isDark ? "light" : "dark"),
|
|
1165
|
-
children: isDark ? /* @__PURE__ */
|
|
1158
|
+
children: isDark ? /* @__PURE__ */ jsx18(LightModeOutlined, { fontSize: "small" }) : /* @__PURE__ */ jsx18(DarkModeOutlined, { fontSize: "small" })
|
|
1166
1159
|
}
|
|
1167
1160
|
) });
|
|
1168
1161
|
}
|
|
@@ -1173,9 +1166,9 @@ function ShellBrand({
|
|
|
1173
1166
|
const { mode, systemMode } = useColorScheme();
|
|
1174
1167
|
const dark = (mode === "system" ? systemMode : mode) === "dark";
|
|
1175
1168
|
if (logoVariant === "full") {
|
|
1176
|
-
return /* @__PURE__ */
|
|
1169
|
+
return /* @__PURE__ */ jsx18(Logo, { product, variant: "logo", color: dark ? "negative" : "positive" });
|
|
1177
1170
|
}
|
|
1178
|
-
return /* @__PURE__ */
|
|
1171
|
+
return /* @__PURE__ */ jsx18(Logo, { product, variant: "logomark", color: "default" });
|
|
1179
1172
|
}
|
|
1180
1173
|
function AppShell({
|
|
1181
1174
|
navItems,
|
|
@@ -1193,7 +1186,7 @@ function AppShell({
|
|
|
1193
1186
|
const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
|
|
1194
1187
|
const [sidebarOpen, setSidebarOpen] = useState2(defaultSidebarOpen);
|
|
1195
1188
|
const [mobileOpen, setMobileOpen] = useState2(false);
|
|
1196
|
-
const navContent = nav != null ? nav : navItems && /* @__PURE__ */
|
|
1189
|
+
const navContent = nav != null ? nav : navItems && /* @__PURE__ */ jsx18(List, { children: navItems.map(({ label, icon, active, endAdornment, ...link }) => /* @__PURE__ */ jsx18(
|
|
1197
1190
|
SidebarItem,
|
|
1198
1191
|
{
|
|
1199
1192
|
icon,
|
|
@@ -1204,39 +1197,40 @@ function AppShell({
|
|
|
1204
1197
|
},
|
|
1205
1198
|
label
|
|
1206
1199
|
)) });
|
|
1207
|
-
const brandEl = brand != null ? brand : /* @__PURE__ */
|
|
1200
|
+
const brandEl = brand != null ? brand : /* @__PURE__ */ jsx18(ShellBrand, { product, logoVariant });
|
|
1208
1201
|
const wrapLogomark = !brand && logoVariant === "logomark" && !isMobile;
|
|
1209
1202
|
return /* @__PURE__ */ jsxs4(Box3, { sx: { display: "flex", flexDirection: "column", height: "100vh" }, children: [
|
|
1210
|
-
/* @__PURE__ */
|
|
1211
|
-
|
|
1203
|
+
/* @__PURE__ */ jsx18(
|
|
1204
|
+
default52,
|
|
1212
1205
|
{
|
|
1213
1206
|
position: "sticky",
|
|
1214
1207
|
elevation: 0,
|
|
1215
1208
|
sx: { zIndex: theme.zIndex.drawer + 1 },
|
|
1216
|
-
children: /* @__PURE__ */ jsxs4(
|
|
1209
|
+
children: /* @__PURE__ */ jsxs4(default53, { variant: "dense", sx: { px: { xs: "16px", sm: "16px" } }, children: [
|
|
1217
1210
|
/* @__PURE__ */ jsxs4(Box3, { sx: { flex: 1, display: "flex", alignItems: "center", justifyContent: "flex-start", gap: 1 }, children: [
|
|
1218
|
-
isMobile && /* @__PURE__ */
|
|
1211
|
+
isMobile && /* @__PURE__ */ jsx18(
|
|
1219
1212
|
IconButton2,
|
|
1220
1213
|
{
|
|
1214
|
+
variant: "icon",
|
|
1221
1215
|
size: "small",
|
|
1222
1216
|
color: "inherit",
|
|
1223
1217
|
"aria-label": "Open navigation",
|
|
1224
1218
|
onClick: () => setMobileOpen(true),
|
|
1225
|
-
children: /* @__PURE__ */
|
|
1219
|
+
children: /* @__PURE__ */ jsx18(MenuOutlined, { fontSize: "small" })
|
|
1226
1220
|
}
|
|
1227
1221
|
),
|
|
1228
|
-
wrapLogomark ? /* @__PURE__ */
|
|
1222
|
+
wrapLogomark ? /* @__PURE__ */ jsx18(Box3, { sx: { width: 48, ml: "-16px", display: "flex", justifyContent: "center" }, children: brandEl }) : brandEl
|
|
1229
1223
|
] }),
|
|
1230
|
-
/* @__PURE__ */
|
|
1224
|
+
/* @__PURE__ */ jsx18(Box3, { sx: { flex: 1, display: "flex", justifyContent: "center" }, children: search === true ? /* @__PURE__ */ jsx18(Search, { size: "small", placeholder: "Search\u2026", sx: { width: "100%", maxWidth: 480 } }) : search || null }),
|
|
1231
1225
|
/* @__PURE__ */ jsxs4(Box3, { sx: { flex: 1, display: "flex", alignItems: "center", justifyContent: "flex-end", gap: 1 }, children: [
|
|
1232
|
-
/* @__PURE__ */
|
|
1226
|
+
/* @__PURE__ */ jsx18(ColorModeToggle, {}),
|
|
1233
1227
|
actions
|
|
1234
1228
|
] })
|
|
1235
1229
|
] })
|
|
1236
1230
|
}
|
|
1237
1231
|
),
|
|
1238
1232
|
/* @__PURE__ */ jsxs4(Box3, { sx: { display: "flex", flexGrow: 1, overflow: "hidden" }, children: [
|
|
1239
|
-
!isMobile && navContent && /* @__PURE__ */
|
|
1233
|
+
!isMobile && navContent && /* @__PURE__ */ jsx18(
|
|
1240
1234
|
SidebarNav,
|
|
1241
1235
|
{
|
|
1242
1236
|
open: sidebarOpen,
|
|
@@ -1249,9 +1243,9 @@ function AppShell({
|
|
|
1249
1243
|
children: navContent
|
|
1250
1244
|
}
|
|
1251
1245
|
),
|
|
1252
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ jsx18(Box3, { component: "main", sx: { flexGrow: 1, overflow: "auto" }, children })
|
|
1253
1247
|
] }),
|
|
1254
|
-
isMobile && navContent && /* @__PURE__ */
|
|
1248
|
+
isMobile && navContent && /* @__PURE__ */ jsx18(
|
|
1255
1249
|
MuiDrawer3,
|
|
1256
1250
|
{
|
|
1257
1251
|
open: mobileOpen,
|
|
@@ -1269,7 +1263,7 @@ import Box4 from "@mui/material/Box";
|
|
|
1269
1263
|
import MuiBreadcrumbs from "@mui/material/Breadcrumbs";
|
|
1270
1264
|
import MuiLink from "@mui/material/Link";
|
|
1271
1265
|
import Typography from "@mui/material/Typography";
|
|
1272
|
-
import { jsx as
|
|
1266
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1273
1267
|
function Page({
|
|
1274
1268
|
title,
|
|
1275
1269
|
breadcrumbs,
|
|
@@ -1279,7 +1273,7 @@ function Page({
|
|
|
1279
1273
|
sx,
|
|
1280
1274
|
children
|
|
1281
1275
|
}) {
|
|
1282
|
-
return /* @__PURE__ */
|
|
1276
|
+
return /* @__PURE__ */ jsx19(
|
|
1283
1277
|
Box4,
|
|
1284
1278
|
{
|
|
1285
1279
|
component: "section",
|
|
@@ -1304,11 +1298,11 @@ function Page({
|
|
|
1304
1298
|
...maxWidth ? { maxWidth, mx: "auto" } : {}
|
|
1305
1299
|
},
|
|
1306
1300
|
children: [
|
|
1307
|
-
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */
|
|
1301
|
+
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx19(MuiBreadcrumbs, { "aria-label": "breadcrumb", sx: { mb: 1 }, children: breadcrumbs.map(
|
|
1308
1302
|
(crumb, i) => i === breadcrumbs.length - 1 ? (
|
|
1309
1303
|
// Current page: plain text, not a link.
|
|
1310
|
-
/* @__PURE__ */
|
|
1311
|
-
) : /* @__PURE__ */
|
|
1304
|
+
/* @__PURE__ */ jsx19(Typography, { variant: "body2", color: "text.primary", children: crumb.label }, crumb.label)
|
|
1305
|
+
) : /* @__PURE__ */ jsx19(
|
|
1312
1306
|
MuiLink,
|
|
1313
1307
|
{
|
|
1314
1308
|
variant: "body2",
|
|
@@ -1333,8 +1327,8 @@ function Page({
|
|
|
1333
1327
|
mb: 3
|
|
1334
1328
|
},
|
|
1335
1329
|
children: [
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
actions && /* @__PURE__ */
|
|
1330
|
+
/* @__PURE__ */ jsx19(Typography, { variant: "h5", children: title }),
|
|
1331
|
+
actions && /* @__PURE__ */ jsx19(Box4, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
|
|
1338
1332
|
]
|
|
1339
1333
|
}
|
|
1340
1334
|
),
|
|
@@ -1347,63 +1341,58 @@ function Page({
|
|
|
1347
1341
|
}
|
|
1348
1342
|
|
|
1349
1343
|
// src/components/Box/index.tsx
|
|
1350
|
-
import
|
|
1351
|
-
var Box5 = MuiBox;
|
|
1344
|
+
import { default as default97 } from "@mui/material/Box";
|
|
1352
1345
|
|
|
1353
1346
|
// src/components/Stack/index.tsx
|
|
1354
|
-
import
|
|
1355
|
-
var Stack = MuiStack;
|
|
1347
|
+
import { default as default98 } from "@mui/material/Stack";
|
|
1356
1348
|
|
|
1357
1349
|
// src/components/Grid/index.tsx
|
|
1358
|
-
import
|
|
1359
|
-
var Grid = MuiGrid;
|
|
1350
|
+
import { default as default99 } from "@mui/material/Grid";
|
|
1360
1351
|
|
|
1361
1352
|
// src/components/Container/index.tsx
|
|
1362
|
-
import
|
|
1363
|
-
var Container = MuiContainer;
|
|
1353
|
+
import { default as default100 } from "@mui/material/Container";
|
|
1364
1354
|
|
|
1365
1355
|
// src/components/Collapse/index.tsx
|
|
1366
|
-
import { default as
|
|
1356
|
+
import { default as default101 } from "@mui/material/Collapse";
|
|
1367
1357
|
|
|
1368
1358
|
// src/components/Fade/index.tsx
|
|
1369
|
-
import { default as
|
|
1359
|
+
import { default as default102 } from "@mui/material/Fade";
|
|
1370
1360
|
|
|
1371
1361
|
// src/components/Grow/index.tsx
|
|
1372
|
-
import { default as
|
|
1362
|
+
import { default as default103 } from "@mui/material/Grow";
|
|
1373
1363
|
|
|
1374
1364
|
// src/components/Slide/index.tsx
|
|
1375
|
-
import { default as
|
|
1365
|
+
import { default as default104 } from "@mui/material/Slide";
|
|
1376
1366
|
|
|
1377
1367
|
// src/components/Zoom/index.tsx
|
|
1378
|
-
import { default as
|
|
1368
|
+
import { default as default105 } from "@mui/material/Zoom";
|
|
1379
1369
|
|
|
1380
1370
|
// src/components/ButtonBase/index.tsx
|
|
1381
|
-
import { default as
|
|
1371
|
+
import { default as default106 } from "@mui/material/ButtonBase";
|
|
1382
1372
|
|
|
1383
1373
|
// src/components/ClickAwayListener/index.tsx
|
|
1384
|
-
import { default as
|
|
1374
|
+
import { default as default107 } from "@mui/material/ClickAwayListener";
|
|
1385
1375
|
|
|
1386
1376
|
// src/components/GlobalStyles/index.tsx
|
|
1387
|
-
import { default as
|
|
1377
|
+
import { default as default108 } from "@mui/material/GlobalStyles";
|
|
1388
1378
|
|
|
1389
1379
|
// src/components/NoSsr/index.tsx
|
|
1390
|
-
import { default as
|
|
1380
|
+
import { default as default109 } from "@mui/material/NoSsr";
|
|
1391
1381
|
|
|
1392
1382
|
// src/components/Popper/index.tsx
|
|
1393
|
-
import { default as
|
|
1383
|
+
import { default as default110 } from "@mui/material/Popper";
|
|
1394
1384
|
|
|
1395
1385
|
// src/components/Portal/index.tsx
|
|
1396
|
-
import
|
|
1397
|
-
var Portal = MuiPortal;
|
|
1386
|
+
import { default as default111 } from "@mui/material/Portal";
|
|
1398
1387
|
|
|
1399
1388
|
// src/components/Slider/index.tsx
|
|
1400
|
-
import { default as
|
|
1389
|
+
import { default as default112 } from "@mui/material/Slider";
|
|
1401
1390
|
|
|
1402
1391
|
// src/components/SvgIcon/index.tsx
|
|
1403
|
-
import { default as
|
|
1392
|
+
import { default as default113 } from "@mui/material/SvgIcon";
|
|
1404
1393
|
|
|
1405
1394
|
// src/components/TextareaAutosize/index.tsx
|
|
1406
|
-
import { default as
|
|
1395
|
+
import { default as default114 } from "@mui/material/TextareaAutosize";
|
|
1407
1396
|
|
|
1408
1397
|
// src/components/Charts/LineChart.tsx
|
|
1409
1398
|
import {
|
|
@@ -1421,9 +1410,9 @@ function useChartColors(count) {
|
|
|
1421
1410
|
}
|
|
1422
1411
|
|
|
1423
1412
|
// src/components/Charts/CustomTooltip.tsx
|
|
1424
|
-
import { Box as
|
|
1413
|
+
import { Box as Box5, Typography as Typography2 } from "@mui/material";
|
|
1425
1414
|
import { useTheme as useTheme3 } from "@mui/material/styles";
|
|
1426
|
-
import { jsx as
|
|
1415
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1427
1416
|
function formatDate(date) {
|
|
1428
1417
|
if (!date) return "";
|
|
1429
1418
|
const d = new Date(date);
|
|
@@ -1449,7 +1438,7 @@ function CustomTooltip(props) {
|
|
|
1449
1438
|
return null;
|
|
1450
1439
|
}
|
|
1451
1440
|
return /* @__PURE__ */ jsxs6(
|
|
1452
|
-
|
|
1441
|
+
Box5,
|
|
1453
1442
|
{
|
|
1454
1443
|
sx: {
|
|
1455
1444
|
backgroundColor: theme.palette.common.white,
|
|
@@ -1464,7 +1453,7 @@ function CustomTooltip(props) {
|
|
|
1464
1453
|
border: `1px solid ${theme.palette.divider}`
|
|
1465
1454
|
},
|
|
1466
1455
|
children: [
|
|
1467
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ jsx20(
|
|
1468
1457
|
Typography2,
|
|
1469
1458
|
{
|
|
1470
1459
|
variant: "body2",
|
|
@@ -1481,9 +1470,9 @@ function CustomTooltip(props) {
|
|
|
1481
1470
|
const color = typeof s.getColor === "function" ? s.getColor(dataIndex) : s.color;
|
|
1482
1471
|
const value = s.data ? s.data[dataIndex] : null;
|
|
1483
1472
|
if (value == null) return null;
|
|
1484
|
-
return /* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1486
|
-
|
|
1473
|
+
return /* @__PURE__ */ jsx20(Box5, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: /* @__PURE__ */ jsxs6(Box5, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
1474
|
+
/* @__PURE__ */ jsx20(
|
|
1475
|
+
Box5,
|
|
1487
1476
|
{
|
|
1488
1477
|
sx: {
|
|
1489
1478
|
width: 16,
|
|
@@ -1505,8 +1494,8 @@ function CustomTooltip(props) {
|
|
|
1505
1494
|
gap: "6px"
|
|
1506
1495
|
},
|
|
1507
1496
|
children: [
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
|
|
1497
|
+
/* @__PURE__ */ jsx20(
|
|
1498
|
+
Box5,
|
|
1510
1499
|
{
|
|
1511
1500
|
component: "span",
|
|
1512
1501
|
sx: {
|
|
@@ -1533,7 +1522,7 @@ function CustomTooltip(props) {
|
|
|
1533
1522
|
}
|
|
1534
1523
|
|
|
1535
1524
|
// src/components/Charts/LineChart.tsx
|
|
1536
|
-
import { jsx as
|
|
1525
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1537
1526
|
function LineChart({ series, colors, ...props }) {
|
|
1538
1527
|
var _a, _b;
|
|
1539
1528
|
const theme = useTheme4();
|
|
@@ -1547,7 +1536,7 @@ function LineChart({ series, colors, ...props }) {
|
|
|
1547
1536
|
highlightScope: (_b2 = s.highlightScope) != null ? _b2 : { highlighted: "item", faded: "global" }
|
|
1548
1537
|
};
|
|
1549
1538
|
});
|
|
1550
|
-
return /* @__PURE__ */
|
|
1539
|
+
return /* @__PURE__ */ jsx21(
|
|
1551
1540
|
MuiLineChart,
|
|
1552
1541
|
{
|
|
1553
1542
|
series: modifiedSeries != null ? modifiedSeries : [],
|
|
@@ -1621,7 +1610,7 @@ import {
|
|
|
1621
1610
|
BarChart as MuiBarChart
|
|
1622
1611
|
} from "@mui/x-charts/BarChart";
|
|
1623
1612
|
import { useTheme as useTheme5 } from "@mui/material/styles";
|
|
1624
|
-
import { jsx as
|
|
1613
|
+
import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1625
1614
|
function BarChart({ series, colors, ...props }) {
|
|
1626
1615
|
var _a, _b;
|
|
1627
1616
|
const theme = useTheme5();
|
|
@@ -1639,7 +1628,7 @@ function BarChart({ series, colors, ...props }) {
|
|
|
1639
1628
|
highlightScope: (_a2 = s.highlightScope) != null ? _a2 : { highlighted: "item", faded: "global" }
|
|
1640
1629
|
};
|
|
1641
1630
|
});
|
|
1642
|
-
return /* @__PURE__ */
|
|
1631
|
+
return /* @__PURE__ */ jsx22(
|
|
1643
1632
|
MuiBarChart,
|
|
1644
1633
|
{
|
|
1645
1634
|
series: modifiedSeries != null ? modifiedSeries : [],
|
|
@@ -1699,7 +1688,7 @@ function BarChart({ series, colors, ...props }) {
|
|
|
1699
1688
|
...(_b = props.sx) != null ? _b : {}
|
|
1700
1689
|
},
|
|
1701
1690
|
...props,
|
|
1702
|
-
children: /* @__PURE__ */
|
|
1691
|
+
children: /* @__PURE__ */ jsx22("defs", { children: series == null ? void 0 : series.map((s, idx) => {
|
|
1703
1692
|
if (s.variant !== "striped") return null;
|
|
1704
1693
|
const baseColor = s.color || resolvedColors[idx % resolvedColors.length];
|
|
1705
1694
|
return /* @__PURE__ */ jsxs7(
|
|
@@ -1711,8 +1700,8 @@ function BarChart({ series, colors, ...props }) {
|
|
|
1711
1700
|
height: "8",
|
|
1712
1701
|
patternTransform: "rotate(45)",
|
|
1713
1702
|
children: [
|
|
1714
|
-
/* @__PURE__ */
|
|
1715
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ jsx22("rect", { width: "8", height: "8", fill: theme.palette.background.paper }),
|
|
1704
|
+
/* @__PURE__ */ jsx22("line", { x1: "0", y: "0", x2: "0", y2: "8", stroke: baseColor, strokeWidth: "4" })
|
|
1716
1705
|
]
|
|
1717
1706
|
},
|
|
1718
1707
|
`striped-${idx}`
|
|
@@ -1727,7 +1716,7 @@ import {
|
|
|
1727
1716
|
PieChart as MuiPieChart
|
|
1728
1717
|
} from "@mui/x-charts/PieChart";
|
|
1729
1718
|
import { useTheme as useTheme6 } from "@mui/material/styles";
|
|
1730
|
-
import { jsx as
|
|
1719
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1731
1720
|
function PieChart({ series, colors, ...props }) {
|
|
1732
1721
|
var _a, _b, _c, _d;
|
|
1733
1722
|
const theme = useTheme6();
|
|
@@ -1741,7 +1730,7 @@ function PieChart({ series, colors, ...props }) {
|
|
|
1741
1730
|
highlightScope: (_a2 = s.highlightScope) != null ? _a2 : { highlighted: "item", faded: "global" }
|
|
1742
1731
|
};
|
|
1743
1732
|
});
|
|
1744
|
-
return /* @__PURE__ */
|
|
1733
|
+
return /* @__PURE__ */ jsx23(
|
|
1745
1734
|
MuiPieChart,
|
|
1746
1735
|
{
|
|
1747
1736
|
series: modifiedSeries != null ? modifiedSeries : [],
|
|
@@ -1842,7 +1831,7 @@ var forestLegendSlotProps = {
|
|
|
1842
1831
|
};
|
|
1843
1832
|
|
|
1844
1833
|
// src/components/Charts/ScatterChart.tsx
|
|
1845
|
-
import { jsx as
|
|
1834
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1846
1835
|
function ScatterChart({ series, colors, ...props }) {
|
|
1847
1836
|
var _a, _b;
|
|
1848
1837
|
const theme = useTheme7();
|
|
@@ -1854,7 +1843,7 @@ function ScatterChart({ series, colors, ...props }) {
|
|
|
1854
1843
|
highlightScope: (_a2 = s.highlightScope) != null ? _a2 : { highlighted: "item", faded: "global" }
|
|
1855
1844
|
};
|
|
1856
1845
|
});
|
|
1857
|
-
return /* @__PURE__ */
|
|
1846
|
+
return /* @__PURE__ */ jsx24(
|
|
1858
1847
|
MuiScatterChart,
|
|
1859
1848
|
{
|
|
1860
1849
|
series: modifiedSeries != null ? modifiedSeries : [],
|
|
@@ -1875,11 +1864,11 @@ import {
|
|
|
1875
1864
|
Gauge as MuiGauge
|
|
1876
1865
|
} from "@mui/x-charts/Gauge";
|
|
1877
1866
|
import { useTheme as useTheme8 } from "@mui/material/styles";
|
|
1878
|
-
import { jsx as
|
|
1867
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1879
1868
|
function Gauge(props) {
|
|
1880
1869
|
var _a;
|
|
1881
1870
|
const theme = useTheme8();
|
|
1882
|
-
return /* @__PURE__ */
|
|
1871
|
+
return /* @__PURE__ */ jsx25(
|
|
1883
1872
|
MuiGauge,
|
|
1884
1873
|
{
|
|
1885
1874
|
...props,
|
|
@@ -1968,43 +1957,43 @@ import { useScrollTrigger } from "@mui/material";
|
|
|
1968
1957
|
import { useFormControl } from "@mui/material";
|
|
1969
1958
|
import { useTheme as useTheme9 } from "@mui/material";
|
|
1970
1959
|
export {
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1960
|
+
default48 as Accordion,
|
|
1961
|
+
default51 as AccordionActions,
|
|
1962
|
+
default50 as AccordionDetails,
|
|
1963
|
+
default49 as AccordionSummary,
|
|
1964
|
+
default61 as Alert,
|
|
1965
|
+
default62 as AlertTitle,
|
|
1977
1966
|
AnimatedArea,
|
|
1978
1967
|
AnimatedLine,
|
|
1979
|
-
|
|
1968
|
+
default52 as AppBar,
|
|
1980
1969
|
AppBarNavItem,
|
|
1981
1970
|
AppShell,
|
|
1982
1971
|
AreaElement,
|
|
1983
1972
|
AreaElementPath,
|
|
1984
1973
|
AreaPlot,
|
|
1985
1974
|
default2 as Autocomplete,
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1975
|
+
default22 as Avatar,
|
|
1976
|
+
default23 as AvatarGroup,
|
|
1977
|
+
default63 as Backdrop,
|
|
1978
|
+
default24 as Badge,
|
|
1990
1979
|
BarChart,
|
|
1991
1980
|
BarElement,
|
|
1992
1981
|
BarElementPath,
|
|
1993
1982
|
BarLabel,
|
|
1994
1983
|
BarPlot,
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1984
|
+
default75 as BottomNavigation,
|
|
1985
|
+
default76 as BottomNavigationAction,
|
|
1986
|
+
default97 as Box,
|
|
1987
|
+
default77 as Breadcrumbs,
|
|
1999
1988
|
Button,
|
|
2000
|
-
|
|
1989
|
+
default106 as ButtonBase,
|
|
2001
1990
|
ButtonGroup,
|
|
2002
1991
|
Card,
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
1992
|
+
default58 as CardActionArea,
|
|
1993
|
+
default56 as CardActions,
|
|
1994
|
+
default54 as CardContent,
|
|
1995
|
+
default55 as CardHeader,
|
|
1996
|
+
default57 as CardMedia,
|
|
2008
1997
|
ChartContainer,
|
|
2009
1998
|
ChartsAxis,
|
|
2010
1999
|
ChartsAxisHighlight,
|
|
@@ -2029,81 +2018,81 @@ export {
|
|
|
2029
2018
|
ChartsYAxis,
|
|
2030
2019
|
default3 as Checkbox,
|
|
2031
2020
|
Chip,
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
Container,
|
|
2021
|
+
default70 as CircularProgress,
|
|
2022
|
+
default107 as ClickAwayListener,
|
|
2023
|
+
default101 as Collapse,
|
|
2024
|
+
default100 as Container,
|
|
2036
2025
|
ContinuousColorLegend,
|
|
2037
2026
|
DataGrid,
|
|
2038
2027
|
DatePicker,
|
|
2039
2028
|
DefaultChartsAxisTooltipContent,
|
|
2040
2029
|
DefaultChartsItemTooltipContent,
|
|
2041
2030
|
DefaultChartsLegend,
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2031
|
+
default64 as Dialog,
|
|
2032
|
+
default67 as DialogActions,
|
|
2033
|
+
default66 as DialogContent,
|
|
2034
|
+
default68 as DialogContentText,
|
|
2035
|
+
default65 as DialogTitle,
|
|
2036
|
+
default25 as Divider,
|
|
2048
2037
|
Drawer,
|
|
2049
2038
|
Fab,
|
|
2050
|
-
|
|
2051
|
-
|
|
2039
|
+
default102 as Fade,
|
|
2040
|
+
default21 as FilledInput,
|
|
2052
2041
|
ForestProvider,
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2042
|
+
default12 as FormControl,
|
|
2043
|
+
default13 as FormControlLabel,
|
|
2044
|
+
default14 as FormGroup,
|
|
2045
|
+
default15 as FormHelperText,
|
|
2046
|
+
default16 as FormLabel,
|
|
2058
2047
|
Gauge,
|
|
2059
2048
|
GaugeContainer,
|
|
2060
2049
|
GaugeReferenceArc,
|
|
2061
2050
|
GaugeValueArc,
|
|
2062
2051
|
GaugeValueText,
|
|
2063
|
-
|
|
2064
|
-
Grid,
|
|
2065
|
-
|
|
2052
|
+
default108 as GlobalStyles,
|
|
2053
|
+
default99 as Grid,
|
|
2054
|
+
default103 as Grow,
|
|
2066
2055
|
HighlightedProvider,
|
|
2067
2056
|
IconButton2 as IconButton,
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2057
|
+
default26 as ImageList,
|
|
2058
|
+
default27 as ImageListItem,
|
|
2059
|
+
default28 as ImageListItemBar,
|
|
2071
2060
|
InitColorSchemeScript,
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2061
|
+
default9 as Input,
|
|
2062
|
+
default17 as InputAdornment,
|
|
2063
|
+
default18 as InputBase,
|
|
2064
|
+
default19 as InputLabel,
|
|
2076
2065
|
LineChart,
|
|
2077
2066
|
LineElement,
|
|
2078
2067
|
LineElementPath,
|
|
2079
2068
|
LineHighlightElement,
|
|
2080
2069
|
LineHighlightPlot,
|
|
2081
2070
|
LinePlot,
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2071
|
+
default69 as LinearProgress,
|
|
2072
|
+
default78 as Link,
|
|
2073
|
+
default29 as List,
|
|
2074
|
+
default30 as ListItem,
|
|
2075
|
+
default34 as ListItemAvatar,
|
|
2076
|
+
default31 as ListItemButton,
|
|
2077
|
+
default32 as ListItemIcon,
|
|
2078
|
+
default36 as ListItemSecondaryAction,
|
|
2079
|
+
default33 as ListItemText,
|
|
2080
|
+
default35 as ListSubheader,
|
|
2092
2081
|
Logo,
|
|
2093
2082
|
MarkElement,
|
|
2094
2083
|
MarkPlot,
|
|
2095
|
-
|
|
2084
|
+
default79 as Menu,
|
|
2096
2085
|
default6 as MenuItem,
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2086
|
+
default80 as MenuList,
|
|
2087
|
+
default81 as MobileStepper,
|
|
2088
|
+
default72 as Modal,
|
|
2100
2089
|
MultiSelect,
|
|
2101
|
-
|
|
2102
|
-
|
|
2090
|
+
default109 as NoSsr,
|
|
2091
|
+
default20 as OutlinedInput,
|
|
2103
2092
|
Page,
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
Paper,
|
|
2093
|
+
default82 as Pagination,
|
|
2094
|
+
default83 as PaginationItem,
|
|
2095
|
+
default60 as Paper,
|
|
2107
2096
|
PieArc,
|
|
2108
2097
|
PieArcLabel,
|
|
2109
2098
|
PieArcLabelPlot,
|
|
@@ -2112,11 +2101,11 @@ export {
|
|
|
2112
2101
|
PiePlot,
|
|
2113
2102
|
PiecewiseColorLegend,
|
|
2114
2103
|
Popover,
|
|
2115
|
-
|
|
2116
|
-
Portal,
|
|
2104
|
+
default110 as Popper,
|
|
2105
|
+
default111 as Portal,
|
|
2117
2106
|
default5 as Radio,
|
|
2118
2107
|
default4 as RadioGroup,
|
|
2119
|
-
|
|
2108
|
+
default37 as Rating,
|
|
2120
2109
|
ResponsiveChartContainer,
|
|
2121
2110
|
Scatter,
|
|
2122
2111
|
ScatterChart,
|
|
@@ -2125,46 +2114,46 @@ export {
|
|
|
2125
2114
|
Select,
|
|
2126
2115
|
SidebarItem,
|
|
2127
2116
|
SidebarNav,
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2117
|
+
default71 as Skeleton,
|
|
2118
|
+
default104 as Slide,
|
|
2119
|
+
default112 as Slider,
|
|
2120
|
+
default73 as Snackbar,
|
|
2121
|
+
default74 as SnackbarContent,
|
|
2133
2122
|
SparkLineChart,
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
Stack,
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
Switch,
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2123
|
+
default84 as SpeedDial,
|
|
2124
|
+
default85 as SpeedDialAction,
|
|
2125
|
+
default86 as SpeedDialIcon,
|
|
2126
|
+
default98 as Stack,
|
|
2127
|
+
default88 as Step,
|
|
2128
|
+
default90 as StepButton,
|
|
2129
|
+
default91 as StepConnector,
|
|
2130
|
+
default92 as StepContent,
|
|
2131
|
+
default93 as StepIcon,
|
|
2132
|
+
default89 as StepLabel,
|
|
2133
|
+
default87 as Stepper,
|
|
2134
|
+
default113 as SvgIcon,
|
|
2135
|
+
default59 as SwipeableDrawer,
|
|
2136
|
+
default7 as Switch,
|
|
2137
|
+
default95 as Tab,
|
|
2138
|
+
default96 as TabScrollButton,
|
|
2139
|
+
default38 as Table,
|
|
2140
|
+
default39 as TableBody,
|
|
2141
|
+
default40 as TableCell,
|
|
2142
|
+
default41 as TableContainer,
|
|
2143
|
+
default44 as TableFooter,
|
|
2144
|
+
default42 as TableHead,
|
|
2145
|
+
default45 as TablePagination,
|
|
2146
|
+
default43 as TableRow,
|
|
2147
|
+
default46 as TableSortLabel,
|
|
2148
|
+
default94 as Tabs,
|
|
2149
|
+
default8 as TextField,
|
|
2150
|
+
default114 as TextareaAutosize,
|
|
2151
|
+
default10 as ToggleButton,
|
|
2152
|
+
default11 as ToggleButtonGroup,
|
|
2153
|
+
default53 as Toolbar,
|
|
2165
2154
|
Tooltip,
|
|
2166
|
-
|
|
2167
|
-
|
|
2155
|
+
default47 as Typography,
|
|
2156
|
+
default105 as Zoom,
|
|
2168
2157
|
alpha,
|
|
2169
2158
|
avatarColors,
|
|
2170
2159
|
base,
|