@m4l/components 0.1.13 → 0.1.15

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 (139) hide show
  1. package/assets/Logo/index.js +91 -0
  2. package/commonjs.js +9 -0
  3. package/components/CommonActions/components/ActionCancel/index.js +15 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
  6. package/components/CommonActions/components/ActionIntro/index.js +16 -0
  7. package/components/CommonActions/components/Actions/index.js +859 -0
  8. package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
  9. package/components/DataGrid/index.js +1067 -0
  10. package/components/DynamicFilter/index.js +1573 -0
  11. package/components/ErrorLabel/index.js +18 -0
  12. package/components/Icon/index.js +80 -0
  13. package/components/Image/index.js +128 -0
  14. package/components/LanguagePopover/index.js +93 -0
  15. package/components/Loadable/index.js +13 -0
  16. package/components/ModalDialog/index.js +180 -0
  17. package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
  18. package/components/ObjectLogs/index.js +284 -0
  19. package/components/Page/index.js +36 -0
  20. package/components/PaperForm/index.js +110 -0
  21. package/components/Period/index.js +230 -0
  22. package/components/PropertyValue/index.js +142 -0
  23. package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
  24. package/components/ScrollBar/index.js +52 -0
  25. package/components/ScrollToTop/index.js +10 -0
  26. package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
  27. package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
  28. package/components/animate/MotionContainer/index.js +31 -0
  29. package/components/animate/MotionLazyContainer/index.js +13 -0
  30. package/components/animate/features.js +2 -0
  31. package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
  32. package/components/animate/variants/container.js +20 -0
  33. package/components/animate/variants/fade.js +61 -0
  34. package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
  35. package/components/animate/variants/transition.js +16 -0
  36. package/components/formatters/BooleanFormatter/index.js +52 -0
  37. package/components/formatters/DateFormatter/index.js +66 -0
  38. package/components/formatters/index.js +112 -0
  39. package/components/hook-form/FormProvider/index.js +61 -0
  40. package/components/hook-form/RHFAutocomplete/index.js +144 -0
  41. package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
  42. package/components/hook-form/RHFCheckbox/index.js +65 -0
  43. package/components/hook-form/RHFDateTime/index.js +79 -0
  44. package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
  45. package/components/hook-form/RHFPeriod/index.js +47 -0
  46. package/components/hook-form/RHFRadioGroup/index.js +41 -0
  47. package/components/hook-form/RHFSelect/index.js +34 -0
  48. package/components/hook-form/RHFTextField/index.js +87 -0
  49. package/components/hook-form/RHFUpload/index.js +255 -0
  50. package/components/mui_extended/Accordion/index.js +105 -0
  51. package/components/mui_extended/Avatar/index.js +33 -0
  52. package/components/mui_extended/BoxIcon/index.js +20 -0
  53. package/components/mui_extended/Breadcrumbs/index.js +92 -0
  54. package/components/mui_extended/Button/index.js +131 -0
  55. package/components/mui_extended/IconButton/index.js +108 -0
  56. package/components/mui_extended/LinkWithRoute/index.js +30 -0
  57. package/components/mui_extended/MenuPopover/index.js +135 -0
  58. package/components/mui_extended/Pager/index.js +137 -0
  59. package/components/mui_extended/Tab/index.js +30 -0
  60. package/components/mui_extended/Typography/index.js +21 -0
  61. package/contexts/ModalContext/index.js +165 -0
  62. package/hooks/useFormAddEdit/index.js +42 -0
  63. package/hooks/useModal/index.js +4 -0
  64. package/index.js +70 -162
  65. package/lodash.js +62 -0
  66. package/node_modules.js +54 -0
  67. package/package.json +2 -1
  68. package/react-data-grid.js +2652 -0
  69. package/react-draggable.js +960 -0
  70. package/react-json-view.js +2764 -0
  71. package/react-lazy-load-image-component.js +792 -0
  72. package/react-resizable.js +541 -0
  73. package/react-splitter-layout.js +165 -0
  74. package/utils/index.js +572 -0
  75. package/assets/Logo/index.228dcb5a.js +0 -86
  76. package/commonjs.565e6834.js +0 -12
  77. package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
  78. package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
  79. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
  80. package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
  81. package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
  82. package/components/DataGrid/index.b688877d.js +0 -894
  83. package/components/DynamicFilter/index.82ce857e.js +0 -1158
  84. package/components/ErrorLabel/index.c8615f16.js +0 -19
  85. package/components/Icon/index.cbca79b0.js +0 -70
  86. package/components/Image/index.e790b50b.js +0 -122
  87. package/components/LanguagePopover/index.3d9611cb.js +0 -87
  88. package/components/Loadable/index.f5518558.js +0 -15
  89. package/components/ModalDialog/index.3850c053.js +0 -168
  90. package/components/ObjectLogs/index.27ef875d.js +0 -266
  91. package/components/Page/index.6d69977e.js +0 -35
  92. package/components/PaperForm/index.d7c74064.js +0 -105
  93. package/components/Period/index.5e68286a.js +0 -160
  94. package/components/PropertyValue/index.ab3dd7e9.js +0 -116
  95. package/components/ScrollBar/index.39eeb2de.js +0 -49
  96. package/components/ScrollToTop/index.e06f98f6.js +0 -11
  97. package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
  98. package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
  99. package/components/animate/features.0fbf41e1.js +0 -5
  100. package/components/animate/variants/container.11f82b76.js +0 -20
  101. package/components/animate/variants/fade.b561c0fc.js +0 -59
  102. package/components/animate/variants/transition.bd46b9ce.js +0 -15
  103. package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
  104. package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
  105. package/components/formatters/index.55856d65.js +0 -106
  106. package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
  107. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  108. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  109. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  110. package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
  111. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
  112. package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
  113. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
  114. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
  115. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  116. package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
  117. package/components/mui_extended/Accordion/index.2116e423.js +0 -103
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
  120. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
  121. package/components/mui_extended/Button/index.84d8898c.js +0 -110
  122. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  123. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  124. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  125. package/components/mui_extended/Pager/index.0576814f.js +0 -126
  126. package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
  127. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  128. package/contexts/ModalContext/index.2188b69e.js +0 -150
  129. package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
  130. package/hooks/useModal/index.6571d2d9.js +0 -6
  131. package/lodash.e09401f0.js +0 -32
  132. package/node_modules.168cb897.js +0 -55
  133. package/react-data-grid.d46d625e.js +0 -2115
  134. package/react-draggable.20e95c61.js +0 -714
  135. package/react-json-view.f56a7f8e.js +0 -2762
  136. package/react-lazy-load-image-component.45b56650.js +0 -784
  137. package/react-resizable.5277deaf.js +0 -371
  138. package/react-splitter-layout.7810ac1b.js +0 -165
  139. package/utils/index.214d9542.js +0 -435
@@ -0,0 +1,142 @@
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: "hidden",
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
+ isForm
99
+ } = props;
100
+ const isDesktop = useResponsiveDesktop();
101
+ const isSkeleton = useModuleSkeleton();
102
+ const getValueW = () => {
103
+ if (valueWidth === "75" && isDesktop) {
104
+ return "75";
105
+ } else if (valueWidth === "75" && !isDesktop) {
106
+ return "100";
107
+ }
108
+ if (valueWidth === "50" && isDesktop) {
109
+ return "50";
110
+ } else if (valueWidth === "50" && !isDesktop) {
111
+ return "100";
112
+ }
113
+ if (valueWidth === "25" && isDesktop || valueWidth === "12.5" && isDesktop) {
114
+ return `${valueWidth}`;
115
+ }
116
+ if (valueWidth === "25" && !isDesktop) {
117
+ return "50";
118
+ }
119
+ if (valueWidth === "12.5" && !isDesktop) {
120
+ return "25";
121
+ }
122
+ return "100";
123
+ };
124
+ const valueW = getValueW();
125
+ return /* @__PURE__ */ jsxs(WrapperPropertyValue, {
126
+ id: "WrapperPropertyValue",
127
+ isForm,
128
+ propertyWidth,
129
+ children: [/* @__PURE__ */ jsx(Property, {
130
+ id: "Property",
131
+ isForm,
132
+ propertyWidth,
133
+ children: isSkeleton ? /* @__PURE__ */ jsx(SKTProperty, {}) : property
134
+ }), /* @__PURE__ */ jsx(Value, {
135
+ id: "Value",
136
+ valueWidth: valueW,
137
+ valueHeight,
138
+ children: value
139
+ })]
140
+ });
141
+ }
142
+ export { PropertyValue as P };
@@ -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.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,20 @@ 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
- export {
93
- x as R
94
- };
92
+ export { Resizeable as R };
@@ -0,0 +1,52 @@
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
+ flexGrow: 1,
7
+ height: "100%",
8
+ overflow: "hidden"
9
+ }));
10
+ const SimpleBarStyle = styled(SimpleBarReact)(({
11
+ theme
12
+ }) => ({
13
+ maxHeight: "100%",
14
+ "& .simplebar-scrollbar": {
15
+ "&:before": {
16
+ backgroundColor: alpha(theme.palette.grey[600], 0.48)
17
+ },
18
+ "&.simplebar-visible:before": {
19
+ opacity: 1
20
+ }
21
+ },
22
+ "& .simplebar-track.simplebar-vertical": {
23
+ width: 10
24
+ },
25
+ "& .simplebar-track.simplebar-horizontal .simplebar-scrollbar": {
26
+ height: 6
27
+ },
28
+ "& .simplebar-mask": {
29
+ zIndex: "inherit"
30
+ }
31
+ }));
32
+ function ScrollBar({
33
+ children
34
+ }) {
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
49
+ })
50
+ });
51
+ }
52
+ export { ScrollBar as S };
@@ -0,0 +1,10 @@
1
+ import { useEffect } from "react";
2
+ import { useLocation } from "react-router-dom";
3
+ function ScrollToTop() {
4
+ const { pathname } = useLocation();
5
+ useEffect(() => {
6
+ window.scrollTo(0, 0);
7
+ }, [pathname]);
8
+ return null;
9
+ }
10
+ export { ScrollToTop as S };
@@ -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.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,29 @@ 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
- export {
130
- h as S
131
- };
131
+ export { SplitLayout as S };
@@ -1,10 +1,10 @@
1
- import { m as r } from "framer-motion";
2
- import { styled as d, alpha as o } from "@mui/material/styles";
3
- import { Box as a } from "@mui/material";
4
- import { L as s } from "../../../assets/Logo/index.228dcb5a.js";
5
- import { jsx as t, Fragment as p, jsxs as l } from "react/jsx-runtime";
6
- const m = d("div")(({
7
- theme: e
1
+ import { m } from "framer-motion";
2
+ import { styled, alpha } from "@mui/material/styles";
3
+ import { Box } from "@mui/material";
4
+ import { L as Logo } from "../../../assets/Logo/index.js";
5
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
6
+ const RootStyle = styled("div")(({
7
+ theme
8
8
  }) => ({
9
9
  right: 0,
10
10
  bottom: 0,
@@ -15,16 +15,16 @@ const m = d("div")(({
15
15
  display: "flex",
16
16
  alignItems: "center",
17
17
  justifyContent: "center",
18
- backgroundColor: e.palette.background.default
18
+ backgroundColor: theme.palette.background.default
19
19
  }));
20
- function x({
21
- isDashboard: e,
22
- ...n
20
+ function LoadingScreen({
21
+ isDashboard,
22
+ ...other
23
23
  }) {
24
- return /* @__PURE__ */ t(p, {
25
- children: !e && /* @__PURE__ */ l(m, {
26
- ...n,
27
- children: [/* @__PURE__ */ t(r.div, {
24
+ return /* @__PURE__ */ jsx(Fragment, {
25
+ children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, {
26
+ ...other,
27
+ children: [/* @__PURE__ */ jsx(m.div, {
28
28
  initial: {
29
29
  rotateY: 0
30
30
  },
@@ -35,17 +35,17 @@ function x({
35
35
  duration: 2,
36
36
  ease: "easeInOut",
37
37
  repeatDelay: 1,
38
- repeat: 1 / 0
38
+ repeat: Infinity
39
39
  },
40
- children: /* @__PURE__ */ t(s, {
41
- disabledLink: !0,
40
+ children: /* @__PURE__ */ jsx(Logo, {
41
+ disabledLink: true,
42
42
  sx: {
43
43
  width: 32,
44
44
  height: 32
45
45
  }
46
46
  })
47
- }), /* @__PURE__ */ t(a, {
48
- component: r.div,
47
+ }), /* @__PURE__ */ jsx(Box, {
48
+ component: m.div,
49
49
  animate: {
50
50
  scale: [1.2, 1, 1, 1.2, 1.2],
51
51
  rotate: [270, 0, 0, 270, 270],
@@ -55,17 +55,17 @@ function x({
55
55
  transition: {
56
56
  ease: "linear",
57
57
  duration: 3.2,
58
- repeat: 1 / 0
58
+ repeat: Infinity
59
59
  },
60
60
  sx: {
61
61
  width: 50,
62
62
  height: 50,
63
63
  borderRadius: "25%",
64
64
  position: "absolute",
65
- border: (i) => `solid 3px ${o(i.palette.primary.dark, 0.24)}`
65
+ border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
66
66
  }
67
- }), /* @__PURE__ */ t(a, {
68
- component: r.div,
67
+ }), /* @__PURE__ */ jsx(Box, {
68
+ component: m.div,
69
69
  animate: {
70
70
  scale: [1, 1.2, 1.2, 1, 1],
71
71
  rotate: [0, 270, 270, 0, 0],
@@ -75,19 +75,17 @@ function x({
75
75
  transition: {
76
76
  ease: "linear",
77
77
  duration: 3.2,
78
- repeat: 1 / 0
78
+ repeat: Infinity
79
79
  },
80
80
  sx: {
81
81
  width: 60,
82
82
  height: 60,
83
83
  borderRadius: "25%",
84
84
  position: "absolute",
85
- border: (i) => `solid 8px ${o(i.palette.primary.dark, 0.24)}`
85
+ border: (theme) => `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`
86
86
  }
87
87
  })]
88
88
  })
89
89
  });
90
90
  }
91
- export {
92
- x as L
93
- };
91
+ export { LoadingScreen as L };
@@ -0,0 +1,31 @@
1
+ import { m } from "framer-motion";
2
+ import { Box } from "@mui/material";
3
+ import { v as varContainer } from "../variants/container.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function MotionContainer({
6
+ animate,
7
+ action = false,
8
+ children,
9
+ ...other
10
+ }) {
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,
23
+ initial: "initial",
24
+ animate: "animate",
25
+ exit: "exit",
26
+ variants: varContainer(),
27
+ ...other,
28
+ children
29
+ });
30
+ }
31
+ export { MotionContainer as M };
@@ -0,0 +1,13 @@
1
+ import { LazyMotion } from "framer-motion";
2
+ import { jsx } from "react/jsx-runtime";
3
+ const loadFeatures = () => import("../features.js").then((res) => res.default);
4
+ function MotionLazyContainer({
5
+ children
6
+ }) {
7
+ return /* @__PURE__ */ jsx(LazyMotion, {
8
+ strict: true,
9
+ features: loadFeatures,
10
+ children
11
+ });
12
+ }
13
+ export { MotionLazyContainer as M };
@@ -0,0 +1,2 @@
1
+ import { domMax } from "framer-motion";
2
+ export { domMax as default } from "framer-motion";
@@ -1,13 +1,16 @@
1
- import { v as i, a as c } from "./transition.bd46b9ce.js";
2
- const r = (n) => {
3
- const a = n?.durationIn, e = n?.durationOut, t = n?.easeIn, o = n?.easeOut;
1
+ import { v as varTranEnter, a as varTranExit } from "./transition.js";
2
+ const varBounce = (props) => {
3
+ const durationIn = props?.durationIn;
4
+ const durationOut = props?.durationOut;
5
+ const easeIn = props?.easeIn;
6
+ const easeOut = props?.easeOut;
4
7
  return {
5
8
  in: {
6
9
  initial: {},
7
10
  animate: {
8
11
  scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
9
12
  opacity: [0, 1, 1, 1, 1, 1],
10
- transition: i({ durationIn: a, easeIn: t })
13
+ transition: varTranEnter({ durationIn, easeIn })
11
14
  },
12
15
  exit: {
13
16
  scale: [0.9, 1.1, 0.3],
@@ -20,13 +23,13 @@ const r = (n) => {
20
23
  y: [720, -24, 12, -4, 0],
21
24
  scaleY: [4, 0.9, 0.95, 0.985, 1],
22
25
  opacity: [0, 1, 1, 1, 1],
23
- transition: { ...i({ durationIn: a, easeIn: t }) }
26
+ transition: { ...varTranEnter({ durationIn, easeIn }) }
24
27
  },
25
28
  exit: {
26
29
  y: [12, -24, 720],
27
30
  scaleY: [0.985, 0.9, 3],
28
31
  opacity: [1, 1, 0],
29
- transition: c({ durationOut: e, easeOut: o })
32
+ transition: varTranExit({ durationOut, easeOut })
30
33
  }
31
34
  },
32
35
  inDown: {
@@ -35,13 +38,13 @@ const r = (n) => {
35
38
  y: [-720, 24, -12, 4, 0],
36
39
  scaleY: [4, 0.9, 0.95, 0.985, 1],
37
40
  opacity: [0, 1, 1, 1, 1],
38
- transition: i({ durationIn: a, easeIn: t })
41
+ transition: varTranEnter({ durationIn, easeIn })
39
42
  },
40
43
  exit: {
41
44
  y: [-12, 24, -720],
42
45
  scaleY: [0.985, 0.9, 3],
43
46
  opacity: [1, 1, 0],
44
- transition: c({ durationOut: e, easeOut: o })
47
+ transition: varTranExit({ durationOut, easeOut })
45
48
  }
46
49
  },
47
50
  inLeft: {
@@ -50,13 +53,13 @@ const r = (n) => {
50
53
  x: [-720, 24, -12, 4, 0],
51
54
  scaleX: [3, 1, 0.98, 0.995, 1],
52
55
  opacity: [0, 1, 1, 1, 1],
53
- transition: i({ durationIn: a, easeIn: t })
56
+ transition: varTranEnter({ durationIn, easeIn })
54
57
  },
55
58
  exit: {
56
59
  x: [0, 24, -720],
57
60
  scaleX: [1, 0.9, 2],
58
61
  opacity: [1, 1, 0],
59
- transition: c({ durationOut: e, easeOut: o })
62
+ transition: varTranExit({ durationOut, easeOut })
60
63
  }
61
64
  },
62
65
  inRight: {
@@ -65,13 +68,13 @@ const r = (n) => {
65
68
  x: [720, -24, 12, -4, 0],
66
69
  scaleX: [3, 1, 0.98, 0.995, 1],
67
70
  opacity: [0, 1, 1, 1, 1],
68
- transition: i({ durationIn: a, easeIn: t })
71
+ transition: varTranEnter({ durationIn, easeIn })
69
72
  },
70
73
  exit: {
71
74
  x: [0, -24, 720],
72
75
  scaleX: [1, 0.9, 2],
73
76
  opacity: [1, 1, 0],
74
- transition: c({ durationOut: e, easeOut: o })
77
+ transition: varTranExit({ durationOut, easeOut })
75
78
  }
76
79
  },
77
80
  out: {
@@ -91,6 +94,4 @@ const r = (n) => {
91
94
  }
92
95
  };
93
96
  };
94
- export {
95
- r as v
96
- };
97
+ export { varBounce as v };
@@ -0,0 +1,20 @@
1
+ const varContainer = (props) => {
2
+ const staggerIn = props?.staggerIn || 0.05;
3
+ const delayIn = props?.staggerIn || 0.05;
4
+ const staggerOut = props?.staggerIn || 0.05;
5
+ return {
6
+ animate: {
7
+ transition: {
8
+ staggerChildren: staggerIn,
9
+ delayChildren: delayIn
10
+ }
11
+ },
12
+ exit: {
13
+ transition: {
14
+ staggerChildren: staggerOut,
15
+ staggerDirection: -1
16
+ }
17
+ }
18
+ };
19
+ };
20
+ export { varContainer as v };