@m4l/components 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/assets/Logo/index.228dcb5a.js +42 -35
  2. package/commonjs.565e6834.js +5 -5
  3. package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
  6. package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
  7. package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
  8. package/components/DataGrid/index.76d8fd25.js +1075 -0
  9. package/components/DynamicFilter/index.342ba5fe.js +1577 -0
  10. package/components/ErrorLabel/index.c8615f16.js +13 -12
  11. package/components/Icon/index.619c31c4.js +96 -0
  12. package/components/Icon/types.d.ts +2 -1
  13. package/components/Image/index.93d5f37f.js +190 -0
  14. package/components/Loadable/index.f5518558.js +8 -8
  15. package/components/ModalDialog/index.9ea10764.js +184 -0
  16. package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
  17. package/components/ObjectLogs/index.f941fb79.js +288 -0
  18. package/components/Page/index.4237c241.js +22 -20
  19. package/components/PaperForm/index.ec9cb8c9.js +112 -0
  20. package/components/Period/index.2941fbda.js +249 -0
  21. package/components/PropertyValue/index.dfcfe1ba.js +147 -0
  22. package/components/PropertyValue/styles.d.ts +2 -1
  23. package/components/PropertyValue/types.d.ts +3 -3
  24. package/components/Resizeable/index.45995d2b.js +19 -19
  25. package/components/ScrollBar/index.39eeb2de.js +26 -21
  26. package/components/ScrollToTop/index.e06f98f6.js +8 -7
  27. package/components/SplitLayout/index.4032673d.js +35 -33
  28. package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
  29. package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
  30. package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
  31. package/components/animate/features.0fbf41e1.js +3 -3
  32. package/components/animate/variants/bounce.784aaaaa.js +16 -13
  33. package/components/animate/variants/container.11f82b76.js +8 -6
  34. package/components/animate/variants/fade.b561c0fc.js +32 -28
  35. package/components/animate/variants/transition.bd46b9ce.js +17 -12
  36. package/components/formatters/BooleanFormatter/index.8da35c9c.js +55 -0
  37. package/components/formatters/DateFormatter/index.1b9baacc.js +69 -0
  38. package/components/formatters/index.689a8086.js +119 -0
  39. package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
  40. package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
  41. package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
  42. package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
  43. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
  44. package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
  45. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
  46. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
  47. package/components/hook-form/RHFTextField/index.f9aaaa90.js +146 -0
  48. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
  49. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
  50. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
  51. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
  52. package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
  53. package/components/hook-form/RHFUpload/index.d5cc7c13.js +285 -0
  54. package/components/mui_extended/Accordion/index.a02ac6ae.js +107 -0
  55. package/components/mui_extended/Avatar/index.fe06afd7.js +51 -0
  56. package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
  57. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
  58. package/components/mui_extended/Button/index.53b56958.js +178 -0
  59. package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
  60. package/components/mui_extended/IconButton/index.a321e5cb.js +120 -0
  61. package/components/mui_extended/IconButton/index.d.ts +1 -1
  62. package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
  63. package/components/mui_extended/Pager/index.c0865b70.js +141 -0
  64. package/components/mui_extended/Popover/index.705275a4.js +278 -0
  65. package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
  66. package/components/mui_extended/Typography/index.e5494696.js +25 -21
  67. package/contexts/ModalContext/index.b92fa565.js +153 -0
  68. package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
  69. package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
  70. package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
  71. package/contexts/RHFormContext/index.b142190a.js +63 -0
  72. package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
  73. package/hooks/useModal/index.5fee01a3.js +11 -0
  74. package/index.js +153 -153
  75. package/package.json +2 -1
  76. package/react-data-grid.d46d625e.js +2206 -1663
  77. package/react-draggable.20e95c61.js +800 -553
  78. package/react-json-view.f56a7f8e.js +2344 -2340
  79. package/react-resizable.5277deaf.js +470 -298
  80. package/react-splitter-layout.7810ac1b.js +130 -128
  81. package/utils/index.214d9542.js +500 -354
  82. package/components/CommonActions/components/ActionCancel/index.6736b782.js +0 -17
  83. package/components/CommonActions/components/ActionFormCancel/index.281ee166.js +0 -49
  84. package/components/CommonActions/components/ActionIntro/index.4665a611.js +0 -18
  85. package/components/CommonActions/components/Actions/index.cd7b2671.js +0 -742
  86. package/components/DataGrid/index.2caf6231.js +0 -894
  87. package/components/DynamicFilter/index.f2377369.js +0 -1157
  88. package/components/Icon/index.f569765b.js +0 -82
  89. package/components/Image/index.c9da2d5a.js +0 -152
  90. package/components/ModalDialog/index.bee344a5.js +0 -168
  91. package/components/ObjectLogs/index.6b6f95e6.js +0 -266
  92. package/components/PaperForm/index.3f8c7ef2.js +0 -105
  93. package/components/Period/index.a112ce37.js +0 -175
  94. package/components/PropertyValue/index.ab3dd7e9.js +0 -116
  95. package/components/contexts/RHFormContext/index.33dba822.js +0 -56
  96. package/components/formatters/BooleanFormatter/index.3ec56305.js +0 -42
  97. package/components/formatters/DateFormatter/index.08d8823b.js +0 -57
  98. package/components/formatters/index.6959c2de.js +0 -106
  99. package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
  100. package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
  101. package/components/hook-form/RHFPeriod/index.979d0898.js +0 -51
  102. package/components/hook-form/RHFTextField/index.ba2a8f67.js +0 -129
  103. package/components/hook-form/RHFUpload/index.6347159a.js +0 -258
  104. package/components/mui_extended/Accordion/index.49f5df8e.js +0 -103
  105. package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
  106. package/components/mui_extended/Button/index.52d18aea.js +0 -144
  107. package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
  108. package/components/mui_extended/Pager/index.951b6975.js +0 -126
  109. package/components/mui_extended/Popover/index.4da8587a.js +0 -252
  110. package/contexts/ModalContext/index.5388dfd5.js +0 -136
  111. package/hooks/useModal/index.3b1ff084.js +0 -11
  112. package/node_modules.168cb897.js +0 -55
@@ -0,0 +1,147 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { Skeleton } from "@mui/material";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { useResponsiveDesktop } from "@m4l/graphics";
5
+ import { useModuleSkeleton } from "@m4l/core";
6
+ const WrapperPropertyValue = styled("div", {
7
+ shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
8
+ })(({
9
+ propertyWidth,
10
+ isForm,
11
+ theme
12
+ }) => ({
13
+ display: "grid",
14
+ gridTemplateColumns: "1fr",
15
+ alignItems: "flex-start",
16
+ width: "100%",
17
+ padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
18
+ ":hover": {
19
+ backgroundColor: isForm ? "unset" : theme.palette.grid?.rowHover
20
+ },
21
+ borderBottom: isForm ? "none" : `1px solid ${theme.palette.divider}`,
22
+ flexDirection: "column",
23
+ [theme.breakpoints.up("sm")]: {
24
+ gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr",
25
+ gap: theme.spacing(2),
26
+ alignItems: "center"
27
+ }
28
+ }));
29
+ const Property = styled("div", {
30
+ shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
31
+ })(({
32
+ propertyWidth,
33
+ isForm,
34
+ theme
35
+ }) => ({
36
+ width: "100%",
37
+ minWidth: "100%",
38
+ ...theme.typography.subtitle2,
39
+ color: theme.palette.text.primary,
40
+ height: "100%",
41
+ display: "flex",
42
+ alignItems: "center",
43
+ justifyContent: "flex-start",
44
+ position: "relative",
45
+ [theme.breakpoints.up("sm")]: {
46
+ borderRight: isForm ? "none" : `1px solid ${theme.palette.divider}`,
47
+ paddingRight: theme.spacing(2),
48
+ textAlign: "right",
49
+ width: propertyWidth || "150px",
50
+ minWidth: propertyWidth || "150px",
51
+ justifyContent: "flex-end"
52
+ },
53
+ overflow: "hidden",
54
+ overflowWrap: "break-word"
55
+ }));
56
+ const Value = styled("div", {
57
+ shouldForwardProp: (prop) => prop !== "valueWidth" && prop !== "valueHeight" && prop !== "withGrid"
58
+ })(({
59
+ valueWidth,
60
+ valueHeight,
61
+ theme
62
+ }) => ({
63
+ flexGrow: "1",
64
+ ...theme.typography.body2,
65
+ color: theme.palette.text.secondary,
66
+ position: "relative",
67
+ padding: "1px",
68
+ maxWidth: `${valueWidth}%`,
69
+ width: `${valueWidth}%`,
70
+ height: valueHeight,
71
+ marginTop: theme.spacing(1),
72
+ [theme.breakpoints.up("sm")]: {
73
+ marginTop: "0px"
74
+ },
75
+ overflow: "auto",
76
+ overflowWrap: "break-word"
77
+ }));
78
+ const SKTWrapperProperty = styled("div")(() => ({
79
+ display: "flex",
80
+ justifyContent: "flex-end"
81
+ }));
82
+ function SKTProperty() {
83
+ return /* @__PURE__ */ jsx(SKTWrapperProperty, {
84
+ children: /* @__PURE__ */ jsx(Skeleton, {
85
+ variant: "text",
86
+ width: 68,
87
+ height: 14
88
+ })
89
+ });
90
+ }
91
+ function PropertyValue(props) {
92
+ const {
93
+ property,
94
+ value,
95
+ propertyWidth = 200,
96
+ valueHeight = "auto",
97
+ valueWidth = "100",
98
+ valueWidthMobile,
99
+ isForm
100
+ } = props;
101
+ const isDesktop = useResponsiveDesktop();
102
+ const isSkeleton = useModuleSkeleton();
103
+ const getValueW = () => {
104
+ if (valueWidthMobile && !isDesktop) {
105
+ return valueWidthMobile;
106
+ }
107
+ if (valueWidth === 75 && isDesktop) {
108
+ return 75;
109
+ } else if (valueWidth === 75 && !isDesktop) {
110
+ return 100;
111
+ }
112
+ if (valueWidth === 50 && isDesktop) {
113
+ return 50;
114
+ } else if (valueWidth === 50 && !isDesktop) {
115
+ return 100;
116
+ }
117
+ if (valueWidth === 25 && isDesktop || valueWidth === 12.5 && isDesktop) {
118
+ return valueWidth;
119
+ }
120
+ if (valueWidth === 25 && !isDesktop) {
121
+ return 50;
122
+ }
123
+ if (valueWidth === 12.5 && !isDesktop) {
124
+ return 25;
125
+ }
126
+ return 100;
127
+ };
128
+ return /* @__PURE__ */ jsxs(WrapperPropertyValue, {
129
+ id: "WrapperPropertyValue",
130
+ isForm,
131
+ propertyWidth,
132
+ children: [/* @__PURE__ */ jsx(Property, {
133
+ id: "Property",
134
+ isForm,
135
+ propertyWidth,
136
+ children: isSkeleton ? /* @__PURE__ */ jsx(SKTProperty, {}) : property
137
+ }), /* @__PURE__ */ jsx(Value, {
138
+ id: "Value",
139
+ valueWidth: getValueW(),
140
+ valueHeight,
141
+ children: value
142
+ })]
143
+ });
144
+ }
145
+ export {
146
+ PropertyValue as P
147
+ };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { WrapperValueProps } from './types';
2
3
  export declare const WrapperPropertyValue: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("./types").PropertyProps & Pick<import("./types").PropertyValueProps, "isForm">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
4
  export declare const Property: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("./types").PropertyProps & Pick<import("./types").PropertyValueProps, "isForm">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const Value: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("./types").ValueProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const Value: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & WrapperValueProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
6
  export declare const SKTWrapperProperty: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -4,9 +4,9 @@ export interface PropertyProps {
4
4
  }
5
5
  export interface ValueProps {
6
6
  valueHeight?: number | string;
7
- valueWidth?: valueWidthType;
7
+ valueWidth?: number;
8
+ valueWidthMobile?: number;
8
9
  }
9
- export declare type valueWidthType = '100' | '75' | '50' | '25' | '12.5';
10
10
  export interface PropertyValueProps extends PropertyProps, ValueProps {
11
11
  property: string;
12
12
  value: number | string | ReactNode;
@@ -14,4 +14,4 @@ export interface PropertyValueProps extends PropertyProps, ValueProps {
14
14
  }
15
15
  export declare type WrapperProps = PropertyProps & Pick<PropertyValueProps, 'isForm'>;
16
16
  export declare type WrapperPropertyProps = WrapperProps;
17
- export declare type WrapperValueProps = ValueProps;
17
+ export declare type WrapperValueProps = Omit<ValueProps, 'valueWidthMobile'>;
@@ -1,8 +1,8 @@
1
- import { styled as n } from "@mui/material/styles";
2
- import { R as i } from "../../react-resizable.5277deaf.js";
3
- import { jsx as l } from "react/jsx-runtime";
4
- const g = n(i)(({
5
- theme: e
1
+ import { styled } from "@mui/material/styles";
2
+ import { R as ResizableBox } from "../../react-resizable.5277deaf.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ const WrapperResizeable = styled(ResizableBox)(({
5
+ theme
6
6
  }) => ({
7
7
  "&.react-resizable": {
8
8
  position: "relative",
@@ -17,7 +17,7 @@ const g = n(i)(({
17
17
  backgroundRepeat: "no-repeat",
18
18
  backgroundOrigin: "content-box",
19
19
  boxSizing: "border-box",
20
- backgroundColor: e.palette.action.active,
20
+ backgroundColor: theme.palette.action.active,
21
21
  mask: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
22
22
  backgroundImage: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
23
23
  backgroundPosition: "bottom right",
@@ -73,22 +73,22 @@ const g = n(i)(({
73
73
  transform: "rotate(45deg)"
74
74
  }
75
75
  }));
76
- function x(e) {
76
+ function Resizeable(props) {
77
77
  const {
78
- children: a,
79
- width: s,
80
- height: o,
81
- maxHeigth: r,
82
- maxWidth: t
83
- } = e;
84
- return /* @__PURE__ */ l(g, {
85
- width: s,
86
- height: o,
87
- maxConstraints: r && t ? [t, r] : void 0,
78
+ children,
79
+ width,
80
+ height,
81
+ maxHeigth,
82
+ maxWidth
83
+ } = props;
84
+ return /* @__PURE__ */ jsx(WrapperResizeable, {
85
+ width,
86
+ height,
87
+ maxConstraints: maxHeigth && maxWidth ? [maxWidth, maxHeigth] : void 0,
88
88
  resizeHandles: ["se", "nw"],
89
- children: a
89
+ children
90
90
  });
91
91
  }
92
92
  export {
93
- x as R
93
+ Resizeable as R
94
94
  };
@@ -1,18 +1,19 @@
1
- import t from "simplebar-react";
2
- import { styled as i, alpha as a } from "@mui/material/styles";
3
- import { Box as l } from "@mui/material";
4
- import { jsx as r } from "react/jsx-runtime";
5
- const s = i("div")(() => ({
1
+ import SimpleBarReact from "simplebar-react";
2
+ import { styled, alpha } from "@mui/material/styles";
3
+ import { Box } from "@mui/material";
4
+ import { jsx } from "react/jsx-runtime";
5
+ const RootStyle = styled("div")(() => ({
6
6
  flexGrow: 1,
7
7
  height: "100%",
8
8
  overflow: "hidden"
9
- })), n = i(t)(({
10
- theme: e
9
+ }));
10
+ const SimpleBarStyle = styled(SimpleBarReact)(({
11
+ theme
11
12
  }) => ({
12
13
  maxHeight: "100%",
13
14
  "& .simplebar-scrollbar": {
14
15
  "&:before": {
15
- backgroundColor: a(e.palette.grey[600], 0.48)
16
+ backgroundColor: alpha(theme.palette.grey[600], 0.48)
16
17
  },
17
18
  "&.simplebar-visible:before": {
18
19
  opacity: 1
@@ -28,22 +29,26 @@ const s = i("div")(() => ({
28
29
  zIndex: "inherit"
29
30
  }
30
31
  }));
31
- function f({
32
- children: e
32
+ function ScrollBar({
33
+ children
33
34
  }) {
34
- const o = typeof navigator > "u" ? "SSR" : navigator.userAgent;
35
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o) ? /* @__PURE__ */ r(l, {
36
- sx: {
37
- overflowX: "auto"
38
- },
39
- children: e
40
- }) : /* @__PURE__ */ r(s, {
41
- children: /* @__PURE__ */ r(n, {
42
- autoHide: !1,
43
- children: e
35
+ const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
36
+ const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
37
+ if (isMobile) {
38
+ return /* @__PURE__ */ jsx(Box, {
39
+ sx: {
40
+ overflowX: "auto"
41
+ },
42
+ children
43
+ });
44
+ }
45
+ return /* @__PURE__ */ jsx(RootStyle, {
46
+ children: /* @__PURE__ */ jsx(SimpleBarStyle, {
47
+ autoHide: false,
48
+ children
44
49
  })
45
50
  });
46
51
  }
47
52
  export {
48
- f as S
53
+ ScrollBar as S
49
54
  };
@@ -1,11 +1,12 @@
1
- import { useEffect as r } from "react";
2
- import { useLocation as t } from "react-router-dom";
3
- function e() {
4
- const { pathname: o } = t();
5
- return r(() => {
1
+ import { useEffect } from "react";
2
+ import { useLocation } from "react-router-dom";
3
+ function ScrollToTop() {
4
+ const { pathname } = useLocation();
5
+ useEffect(() => {
6
6
  window.scrollTo(0, 0);
7
- }, [o]), null;
7
+ }, [pathname]);
8
+ return null;
8
9
  }
9
10
  export {
10
- e as S
11
+ ScrollToTop as S
11
12
  };
@@ -1,8 +1,8 @@
1
- import { S as s } from "../../react-splitter-layout.7810ac1b.js";
2
- import { styled as r } from "@mui/material/styles";
3
- import { jsx as l, jsxs as n } from "react/jsx-runtime";
4
- const u = r("div")(({
5
- theme: t
1
+ import { S as SplitterLayout } from "../../react-splitter-layout.7810ac1b.js";
2
+ import { styled } from "@mui/material/styles";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ const WrapperSplit = styled("div")(({
5
+ theme
6
6
  }) => ({
7
7
  display: "flex",
8
8
  flexDirection: "column",
@@ -31,7 +31,7 @@ const u = r("div")(({
31
31
  "& .splitter-layout > .layout-splitter": {
32
32
  display: "flex",
33
33
  alignItems: "center",
34
- backgroundColor: t.palette.divider,
34
+ backgroundColor: theme.palette.divider,
35
35
  boxSizing: "border-box",
36
36
  backgroundClip: "padding-box",
37
37
  width: "11px",
@@ -43,17 +43,17 @@ const u = r("div")(({
43
43
  height: "100%"
44
44
  },
45
45
  "& .splitter-layout .layout-splitter:before": {
46
- content: '""',
46
+ content: `""`,
47
47
  height: "45px",
48
48
  width: "4px",
49
49
  top: "calc(50% - 22.5px)",
50
50
  position: "absolute",
51
- background: t.palette.grey[500],
51
+ background: theme.palette.grey[500],
52
52
  borderRadius: "6px"
53
53
  },
54
54
  "& .splitter-layout > .layout-splitter:hover": {
55
- borderLeft: `5px solid ${t.palette.grey[5008]}`,
56
- borderRight: `5px solid ${t.palette.grey[5008]}`
55
+ borderLeft: `5px solid ${theme.palette.grey[5008]}`,
56
+ borderRight: `5px solid ${theme.palette.grey[5008]}`
57
57
  },
58
58
  "& .splitter-layout.splitter-layout-vertical.layout-changing": {
59
59
  cursor: "row-resize"
@@ -73,23 +73,25 @@ const u = r("div")(({
73
73
  top: "unset"
74
74
  },
75
75
  "& .splitter-layout > .layout-splitter:hover:before, .splitter-layout.layout-changing > .layout-splitter:before": {
76
- background: t.palette.primary.main
76
+ background: theme.palette.primary.main
77
77
  },
78
78
  "& .splitter-layout.splitter-layout-vertical": {
79
79
  flexDirection: "column"
80
80
  },
81
81
  "& .splitter-layout.splitter-layout-vertical > .layout-splitter:hover": {
82
- borderTop: `5px solid ${t.palette.grey[5008]}`,
83
- borderBottom: `5px solid ${t.palette.grey[5008]}`
82
+ borderTop: `5px solid ${theme.palette.grey[5008]}`,
83
+ borderBottom: `5px solid ${theme.palette.grey[5008]}`
84
84
  }
85
- })), d = r("div")(() => ({
85
+ }));
86
+ const SplitMaster = styled("div")(() => ({
86
87
  display: "flex",
87
88
  flexDirection: "column",
88
89
  position: "relative",
89
90
  width: "100%",
90
91
  height: "100%",
91
92
  overflow: "hidden"
92
- })), c = r("div")(() => ({
93
+ }));
94
+ const SplitDetail = styled("div")(() => ({
93
95
  display: "flex",
94
96
  flexDirection: "column",
95
97
  justifyContent: "center",
@@ -101,31 +103,31 @@ const u = r("div")(({
101
103
  top: "0px",
102
104
  bottom: "0px"
103
105
  }));
104
- function h(t) {
106
+ function SplitLayout(props) {
105
107
  const {
106
- splitPosition: e,
107
- firstPart: o,
108
- secondPart: i,
109
- secondParrtInitialSize: a = 50,
110
- percentage: p = !0
111
- } = t;
112
- return /* @__PURE__ */ l(u, {
108
+ splitPosition,
109
+ firstPart,
110
+ secondPart,
111
+ secondParrtInitialSize = 50,
112
+ percentage = true
113
+ } = props;
114
+ return /* @__PURE__ */ jsx(WrapperSplit, {
113
115
  id: "WrapperSplit",
114
- className: `split_${e}`,
115
- children: /* @__PURE__ */ n(s, {
116
- vertical: e === "vertical",
117
- percentage: p,
118
- secondaryInitialSize: a,
119
- children: [/* @__PURE__ */ l(d, {
116
+ className: `split_${splitPosition}`,
117
+ children: /* @__PURE__ */ jsxs(SplitterLayout, {
118
+ vertical: splitPosition === "vertical",
119
+ percentage,
120
+ secondaryInitialSize: secondParrtInitialSize,
121
+ children: [/* @__PURE__ */ jsx(SplitMaster, {
120
122
  id: "splitMaster",
121
- children: typeof o == "function" ? o() : o
122
- }), e !== "none" && /* @__PURE__ */ l(c, {
123
+ children: typeof firstPart === "function" ? firstPart() : firstPart
124
+ }), splitPosition !== "none" && /* @__PURE__ */ jsx(SplitDetail, {
123
125
  id: "detail2",
124
- children: typeof i == "function" ? i() : i
126
+ children: typeof secondPart === "function" ? secondPart() : secondPart
125
127
  })]
126
128
  })
127
129
  });
128
130
  }
129
131
  export {
130
- h as S
132
+ SplitLayout as S
131
133
  };
@@ -1,13 +1,13 @@
1
- import { m as o } from "framer-motion";
2
- import { alpha as a } from "@mui/material/styles";
3
- import { styled as l, Box as n } from "@mui/material";
4
- import { L as p } from "../../../assets/Logo/index.228dcb5a.js";
5
- import { jsx as e, Fragment as m, jsxs as h } from "react/jsx-runtime";
6
- const u = l("div", {
7
- shouldForwardProp: (t) => t !== "variant"
1
+ import { m } from "framer-motion";
2
+ import { alpha } from "@mui/material/styles";
3
+ import { styled, Box } from "@mui/material";
4
+ import { L as Logo } from "../../../assets/Logo/index.228dcb5a.js";
5
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
6
+ const RootStyle = styled("div", {
7
+ shouldForwardProp: (props) => props !== "variant"
8
8
  })(({
9
- theme: t,
10
- variant: i
9
+ theme,
10
+ variant
11
11
  }) => ({
12
12
  right: 0,
13
13
  bottom: 0,
@@ -18,23 +18,23 @@ const u = l("div", {
18
18
  display: "flex",
19
19
  alignItems: "center",
20
20
  justifyContent: "center",
21
- backgroundColor: t.palette.background.default,
22
- ...i === "microfrontend" && {
21
+ backgroundColor: theme.palette.background.default,
22
+ ...variant === "microfrontend" && {
23
23
  position: "relative",
24
24
  zIndex: 0
25
25
  }
26
26
  }));
27
- function y(t) {
27
+ function LoadingScreen(props) {
28
28
  const {
29
- isDashboard: i,
30
- variant: d = "fullpage",
31
- ...s
32
- } = t;
33
- return /* @__PURE__ */ e(m, {
34
- children: !i && /* @__PURE__ */ h(u, {
35
- variant: d,
36
- ...s,
37
- children: [/* @__PURE__ */ e(o.div, {
29
+ isDashboard,
30
+ variant = "fullpage",
31
+ ...other
32
+ } = props;
33
+ return /* @__PURE__ */ jsx(Fragment, {
34
+ children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, {
35
+ variant,
36
+ ...other,
37
+ children: [/* @__PURE__ */ jsx(m.div, {
38
38
  initial: {
39
39
  rotateY: 0
40
40
  },
@@ -45,17 +45,17 @@ function y(t) {
45
45
  duration: 2,
46
46
  ease: "easeInOut",
47
47
  repeatDelay: 1,
48
- repeat: 1 / 0
48
+ repeat: Infinity
49
49
  },
50
- children: /* @__PURE__ */ e(p, {
51
- disabledLink: !0,
50
+ children: /* @__PURE__ */ jsx(Logo, {
51
+ disabledLink: true,
52
52
  sx: {
53
53
  width: 32,
54
54
  height: 32
55
55
  }
56
56
  })
57
- }), /* @__PURE__ */ e(n, {
58
- component: o.div,
57
+ }), /* @__PURE__ */ jsx(Box, {
58
+ component: m.div,
59
59
  animate: {
60
60
  scale: [1.2, 1, 1, 1.2, 1.2],
61
61
  rotate: [270, 0, 0, 270, 270],
@@ -65,17 +65,17 @@ function y(t) {
65
65
  transition: {
66
66
  ease: "linear",
67
67
  duration: 3.2,
68
- repeat: 1 / 0
68
+ repeat: Infinity
69
69
  },
70
70
  sx: {
71
71
  width: 50,
72
72
  height: 50,
73
73
  borderRadius: "25%",
74
74
  position: "absolute",
75
- border: (r) => `solid 3px ${a(r.palette.primary.dark, 0.24)}`
75
+ border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
76
76
  }
77
- }), /* @__PURE__ */ e(n, {
78
- component: o.div,
77
+ }), /* @__PURE__ */ jsx(Box, {
78
+ component: m.div,
79
79
  animate: {
80
80
  scale: [1, 1.2, 1.2, 1, 1],
81
81
  rotate: [0, 270, 270, 0, 0],
@@ -85,19 +85,19 @@ function y(t) {
85
85
  transition: {
86
86
  ease: "linear",
87
87
  duration: 3.2,
88
- repeat: 1 / 0
88
+ repeat: Infinity
89
89
  },
90
90
  sx: {
91
91
  width: 60,
92
92
  height: 60,
93
93
  borderRadius: "25%",
94
94
  position: "absolute",
95
- border: (r) => `solid 8px ${a(r.palette.primary.dark, 0.24)}`
95
+ border: (theme) => `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`
96
96
  }
97
97
  })]
98
98
  })
99
99
  });
100
100
  }
101
101
  export {
102
- y as L
102
+ LoadingScreen as L
103
103
  };
@@ -1,30 +1,33 @@
1
- import { m as a } from "framer-motion";
2
- import { Box as n } from "@mui/material";
3
- import { v as o } from "../variants/container.11f82b76.js";
4
- import { jsx as r } from "react/jsx-runtime";
5
- function x({
6
- animate: m,
7
- action: e = !1,
8
- children: i,
9
- ...t
1
+ import { m } from "framer-motion";
2
+ import { Box } from "@mui/material";
3
+ import { v as varContainer } from "../variants/container.11f82b76.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function MotionContainer({
6
+ animate,
7
+ action = false,
8
+ children,
9
+ ...other
10
10
  }) {
11
- return e ? /* @__PURE__ */ r(n, {
12
- component: a.div,
13
- initial: !1,
14
- animate: m ? "animate" : "exit",
15
- variants: o(),
16
- ...t,
17
- children: i
18
- }) : /* @__PURE__ */ r(n, {
19
- component: a.div,
11
+ if (action) {
12
+ return /* @__PURE__ */ jsx(Box, {
13
+ component: m.div,
14
+ initial: false,
15
+ animate: animate ? "animate" : "exit",
16
+ variants: varContainer(),
17
+ ...other,
18
+ children
19
+ });
20
+ }
21
+ return /* @__PURE__ */ jsx(Box, {
22
+ component: m.div,
20
23
  initial: "initial",
21
24
  animate: "animate",
22
25
  exit: "exit",
23
- variants: o(),
24
- ...t,
25
- children: i
26
+ variants: varContainer(),
27
+ ...other,
28
+ children
26
29
  });
27
30
  }
28
31
  export {
29
- x as M
32
+ MotionContainer as M
30
33
  };
@@ -1,15 +1,15 @@
1
- import { LazyMotion as o } from "framer-motion";
2
- import { jsx as r } from "react/jsx-runtime";
3
- const e = () => import("../features.0fbf41e1.js").then((t) => t.default);
4
- function i({
5
- children: t
1
+ import { LazyMotion } from "framer-motion";
2
+ import { jsx } from "react/jsx-runtime";
3
+ const loadFeatures = () => import("../features.0fbf41e1.js").then((res) => res.default);
4
+ function MotionLazyContainer({
5
+ children
6
6
  }) {
7
- return /* @__PURE__ */ r(o, {
8
- strict: !0,
9
- features: e,
10
- children: t
7
+ return /* @__PURE__ */ jsx(LazyMotion, {
8
+ strict: true,
9
+ features: loadFeatures,
10
+ children
11
11
  });
12
12
  }
13
13
  export {
14
- i as M
14
+ MotionLazyContainer as M
15
15
  };
@@ -1,5 +1,5 @@
1
- import "framer-motion";
2
- import { domMax as d } from "framer-motion";
1
+ import { domMax } from "framer-motion";
2
+ import { domMax as domMax2 } from "framer-motion";
3
3
  export {
4
- d as default
4
+ domMax2 as default
5
5
  };