@m4l/components 0.1.3 → 0.1.5

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 (45) hide show
  1. package/assets/Logo/index.js +91 -0
  2. package/assets/Logo.d.ts +7 -0
  3. package/components/CommonActions/components/ActionCancel/index.js +1 -1
  4. package/components/CommonActions/components/ActionFormCancel/index.js +1 -1
  5. package/components/CommonActions/components/ActionIntro/index.js +1 -1
  6. package/components/CommonActions/components/Actions/index.js +1 -1
  7. package/components/DynamicFilter/index.js +7 -78
  8. package/components/Icon/index.js +1 -1
  9. package/components/LanguagePopover/index.js +2 -1
  10. package/components/ModalDialog/index.js +1 -1
  11. package/components/Page/index.d.ts +1 -1
  12. package/components/Page/index.js +5 -9
  13. package/components/ScrollToTop/index.d.ts +1 -0
  14. package/components/ScrollToTop/index.js +10 -0
  15. package/components/animate/IconButtonAnimate/index.d.ts +1 -1
  16. package/components/animate/LoadingScreen/index.d.ts +8 -0
  17. package/components/animate/LoadingScreen/index.js +91 -0
  18. package/components/animate/index.d.ts +1 -0
  19. package/components/animate/variants/bounce.d.ts +9 -9
  20. package/components/animate/variants/fade.d.ts +20 -20
  21. package/components/animate/variants/transition.d.ts +3 -3
  22. package/components/hook-form/RHFAutocomplete/index.js +142 -0
  23. package/components/hook-form/{RHFDateTime.js → RHFDateTime/index.js} +0 -0
  24. package/components/hook-form/{RHFRadioGroup.js → RHFRadioGroup/index.js} +0 -0
  25. package/components/hook-form/{RHFSelect.js → RHFSelect/index.js} +0 -0
  26. package/components/hook-form/RHFTextField/index.d.ts +1 -1
  27. package/components/hook-form/{RHFUpload.js → RHFUpload/index.js} +3 -3
  28. package/components/index.d.ts +1 -0
  29. package/components/mui_extended/Avatar/index.d.ts +4 -0
  30. package/components/mui_extended/Avatar/index.js +33 -0
  31. package/components/mui_extended/Avatar/types.d.ts +6 -0
  32. package/components/mui_extended/Button/index.js +131 -0
  33. package/components/mui_extended/Button/styles.d.ts +1 -1
  34. package/components/mui_extended/MenuActions/styles.d.ts +3 -3
  35. package/components/mui_extended/index.d.ts +2 -0
  36. package/contexts/ModalContext/index.js +1 -1
  37. package/index.d.ts +1 -0
  38. package/index.js +59 -54
  39. package/juggle.js +5 -191
  40. package/package.json +1 -1
  41. package/react-draggable.js +14 -489
  42. package/react-resizable.js +1 -54
  43. package/utils/index.js +761 -0
  44. package/components/mui_extended/LoadingButton/index.js +0 -35
  45. package/vendor.js +0 -268
@@ -0,0 +1,91 @@
1
+ import { Link } from "react-router-dom";
2
+ import { useTheme } from "@mui/material/styles";
3
+ import { Box } from "@mui/material";
4
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
5
+ function Logo({
6
+ disabledLink = false,
7
+ sx
8
+ }) {
9
+ const theme = useTheme();
10
+ const PRIMARY_LIGHT = theme.palette.primary.light;
11
+ const PRIMARY_MAIN = theme.palette.primary.main;
12
+ const PRIMARY_DARK = theme.palette.primary.dark;
13
+ const logo = /* @__PURE__ */ jsx(Box, {
14
+ sx: {
15
+ width: 40,
16
+ height: 40,
17
+ ...sx
18
+ },
19
+ children: /* @__PURE__ */ jsxs("svg", {
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ width: "100%",
22
+ height: "100%",
23
+ viewBox: "0 0 512 512",
24
+ children: [/* @__PURE__ */ jsxs("defs", {
25
+ children: [/* @__PURE__ */ jsxs("linearGradient", {
26
+ id: "BG1",
27
+ x1: "100%",
28
+ x2: "50%",
29
+ y1: "9.946%",
30
+ y2: "50%",
31
+ children: [/* @__PURE__ */ jsx("stop", {
32
+ offset: "0%",
33
+ stopColor: PRIMARY_DARK
34
+ }), /* @__PURE__ */ jsx("stop", {
35
+ offset: "100%",
36
+ stopColor: PRIMARY_MAIN
37
+ })]
38
+ }), /* @__PURE__ */ jsxs("linearGradient", {
39
+ id: "BG2",
40
+ x1: "50%",
41
+ x2: "50%",
42
+ y1: "0%",
43
+ y2: "100%",
44
+ children: [/* @__PURE__ */ jsx("stop", {
45
+ offset: "0%",
46
+ stopColor: PRIMARY_LIGHT
47
+ }), /* @__PURE__ */ jsx("stop", {
48
+ offset: "100%",
49
+ stopColor: PRIMARY_MAIN
50
+ })]
51
+ }), /* @__PURE__ */ jsxs("linearGradient", {
52
+ id: "BG3",
53
+ x1: "50%",
54
+ x2: "50%",
55
+ y1: "0%",
56
+ y2: "100%",
57
+ children: [/* @__PURE__ */ jsx("stop", {
58
+ offset: "0%",
59
+ stopColor: PRIMARY_LIGHT
60
+ }), /* @__PURE__ */ jsx("stop", {
61
+ offset: "100%",
62
+ stopColor: PRIMARY_MAIN
63
+ })]
64
+ })]
65
+ }), /* @__PURE__ */ jsxs("g", {
66
+ fillRule: "evenodd",
67
+ clipRule: "evenodd",
68
+ children: [/* @__PURE__ */ jsx("path", {
69
+ fill: "url(#BG1)",
70
+ d: "m1.9 136.9 208.3 120.3v240.5L1.9 377.5z"
71
+ }), /* @__PURE__ */ jsx("path", {
72
+ fill: "url(#BG2)",
73
+ d: "m226.8 257.2 208.5-120.3v240.6L226.8 497.8z"
74
+ }), /* @__PURE__ */ jsx("path", {
75
+ fill: "url(#BG3)",
76
+ d: "M218.6 242.8 10.2 122.5 218.6 2.2 427 122.5z"
77
+ })]
78
+ })]
79
+ })
80
+ });
81
+ if (disabledLink) {
82
+ return /* @__PURE__ */ jsx(Fragment, {
83
+ children: logo
84
+ });
85
+ }
86
+ return /* @__PURE__ */ jsx(Link, {
87
+ to: "/",
88
+ children: logo
89
+ });
90
+ }
91
+ export { Logo as L };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@mui/material';
3
+ interface Props extends BoxProps {
4
+ disabledLink?: boolean;
5
+ }
6
+ export declare function Logo({ disabledLink, sx }: Props): JSX.Element;
7
+ export default Logo;
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary } from "@m4l/core";
2
- import { B as Button } from "../../../../vendor.js";
2
+ import { B as Button } from "../../../mui_extended/Button/index.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  const ActionCancel = (props) => {
5
5
  const {
@@ -2,7 +2,7 @@ import { useFormContext, useFormState } from "react-hook-form";
2
2
  import { useNavigate } from "react-router-dom";
3
3
  import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
4
4
  import { Skeleton } from "@mui/material";
5
- import { B as Button } from "../../../../vendor.js";
5
+ import { B as Button } from "../../../mui_extended/Button/index.js";
6
6
  import { useCallback } from "react";
7
7
  import { u as useModal } from "../../../../hooks/useModal/index.js";
8
8
  import { jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary } from "@m4l/core";
2
- import { B as Button } from "../../../../vendor.js";
2
+ import { B as Button } from "../../../mui_extended/Button/index.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  const ActionIntro = (props) => {
5
5
  const {
@@ -14,7 +14,7 @@ import { M as MenuPopover } from "../../../mui_extended/MenuPopover/index.js";
14
14
  import { I as Icon } from "../../../Icon/index.js";
15
15
  import { useResponsiveDesktop } from "@m4l/graphics";
16
16
  import "@mui/material/Button";
17
- import "../../../../vendor.js";
17
+ import "../../../mui_extended/Button/index.js";
18
18
  import "react-hook-form";
19
19
  import "react-router-dom";
20
20
  import "../../../../contexts/ModalContext/index.js";
@@ -1,25 +1,26 @@
1
1
  import { S as ScrollBar } from "../ScrollBar/index.js";
2
- import { styled, alpha as alpha$1 } from "@mui/material/styles";
2
+ import { styled } from "@mui/material/styles";
3
3
  import require$$0, { useRef, useState, useMemo, useCallback, useEffect, createContext, useContext } from "react";
4
4
  import { useModuleDictionary, useHostTools, useEnvironment, voidFunction, useFlagsPresent } from "@m4l/core";
5
5
  import * as Yup from "yup";
6
6
  import { useFormContext, useWatch } from "react-hook-form";
7
7
  import { F as FormProvider } from "../hook-form/FormProvider/index.js";
8
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
9
- import { R as RHFAutocomplete } from "../../vendor.js";
9
+ import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.js";
10
10
  import { alpha, styled as styled$1, Skeleton, MenuItem, useTheme, Popper } from "@mui/material";
11
11
  import "../hook-form/RHFAutocompleteAsync/index.js";
12
12
  import "../hook-form/RHFCheckbox/index.js";
13
- import { R as RHFDateTime } from "../hook-form/RHFDateTime.js";
13
+ import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.js";
14
14
  import "@mui/x-date-pickers";
15
15
  import { R as RHFTextField } from "../hook-form/RHFTextField/index.js";
16
16
  import "../../lodash.js";
17
17
  import "react-dropzone";
18
18
  import "../../react-lazy-load-image-component.js";
19
19
  import "../Image/index.js";
20
- import "../hook-form/RHFUpload.js";
20
+ import "../hook-form/RHFUpload/index.js";
21
21
  import { I as IconButton } from "../mui_extended/IconButton/index.js";
22
22
  import "../../simplebar.js";
23
+ import { F as FilterButton } from "../mui_extended/Button/index.js";
23
24
  import { L as LabelMemuItem, b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.js";
24
25
  import { M as MenuPopover } from "../mui_extended/MenuPopover/index.js";
25
26
  import { I as Icon } from "../Icon/index.js";
@@ -1219,79 +1220,6 @@ const ClearFilters = () => {
1219
1220
  }
1220
1221
  return /* @__PURE__ */ jsx(Fragment, {});
1221
1222
  };
1222
- const SKTWrapperFilterButton = styled("div")(({
1223
- theme
1224
- }) => ({
1225
- display: "flex",
1226
- justifyContent: "center",
1227
- alignItems: "center",
1228
- minWidth: theme.spacing(3.75),
1229
- height: theme.spacing(3.75),
1230
- background: alpha$1(theme.palette.primary.main, 0.3)
1231
- }));
1232
- const WrapperFilterButton = styled("div")(() => ({
1233
- "&.isDirty": {
1234
- animationName: "dirtyEffect",
1235
- animationDuration: "1s",
1236
- animationFillMode: "both",
1237
- animationIterationCount: "infinite",
1238
- transition: "all .3s",
1239
- "@keyframes dirtyEffect": {
1240
- "20%": {
1241
- opacity: 1
1242
- },
1243
- "50%": {
1244
- opacity: 0.5
1245
- },
1246
- "100%": {
1247
- opacity: 1
1248
- }
1249
- }
1250
- },
1251
- "&.isDirtyError": {}
1252
- }));
1253
- function FilterButton() {
1254
- const {
1255
- isSkeleton,
1256
- fireOnChangeFilters,
1257
- automatic,
1258
- isDirty,
1259
- isValid
1260
- } = useBase();
1261
- const {
1262
- host_static_assets,
1263
- environment_assets
1264
- } = useEnvironment();
1265
- if (isSkeleton) {
1266
- return /* @__PURE__ */ jsx(SKTWrapperFilterButton, {
1267
- children: /* @__PURE__ */ jsx(Skeleton, {
1268
- variant: "circular",
1269
- width: 20,
1270
- height: 20
1271
- })
1272
- });
1273
- }
1274
- const color = useMemo(() => {
1275
- if (automatic || !isDirty) {
1276
- return "action.active";
1277
- }
1278
- if (!isValid) {
1279
- return "error.main";
1280
- }
1281
- return "primary.main";
1282
- }, [automatic, isValid, isDirty]);
1283
- return /* @__PURE__ */ jsx(WrapperFilterButton, {
1284
- id: "WrapperFilterButton",
1285
- className: isDirty && isValid ? "isDirty" : "",
1286
- children: /* @__PURE__ */ jsx(IconButton, {
1287
- bgColor: color,
1288
- dictionaryTooltip: "dynamic_filter.filter_tooltip",
1289
- onClick: () => fireOnChangeFilters(),
1290
- "aria-label": "settings",
1291
- src: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/${automatic ? "refresh" : "search"}.svg`
1292
- })
1293
- });
1294
- }
1295
1223
  const WrapperInputFilter = styled("div")(({
1296
1224
  theme
1297
1225
  }) => ({
@@ -1310,6 +1238,7 @@ const WrapperInputFilter = styled("div")(({
1310
1238
  const StyledInputFilter = styled("input")(({
1311
1239
  theme
1312
1240
  }) => ({
1241
+ background: "transparent",
1313
1242
  display: "flex",
1314
1243
  justifyContent: "center",
1315
1244
  alignItems: "center",
@@ -1638,4 +1567,4 @@ const defaultDynamicFilterDictionary = {
1638
1567
  error_filters_no_setted: "Filters not yet set"
1639
1568
  }
1640
1569
  };
1641
- export { DynamicFilter as D, defaultDynamicFilterDictionary as d, getDynamicFilterComponentsDictionary as g };
1570
+ export { DynamicFilter as D, defaultDynamicFilterDictionary as d, getDynamicFilterComponentsDictionary as g, useBase as u };
@@ -1,7 +1,7 @@
1
1
  import { styled } from "@mui/material";
2
2
  import { useState, useMemo, useEffect } from "react";
3
3
  import { useTheme } from "@mui/material/styles";
4
- import { g as getPaletteColor } from "../../vendor.js";
4
+ import { g as getPaletteColor } from "../../utils/index.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  const DivIcon = styled("div", {
7
7
  shouldForwardProp: (props) => props !== "src" && props !== "sizeIcon" && props !== "bgColor"
@@ -6,9 +6,10 @@ import "@m4l/core";
6
6
  import "../Icon/index.js";
7
7
  import "@mui/material/styles";
8
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
9
+ import "../mui_extended/Avatar/index.js";
9
10
  import "react-router-dom";
10
11
  import "@mui/lab";
11
- import "../mui_extended/LoadingButton/index.js";
12
+ import "../mui_extended/Button/index.js";
12
13
  import { M as MenuPopover } from "../mui_extended/MenuPopover/index.js";
13
14
  import "../CommonActions/components/Actions/index.js";
14
15
  import "../mui_extended/Pager/index.js";
@@ -2,7 +2,7 @@ import { Dialog, IconButton, Paper } from "@mui/material";
2
2
  import { D as Draggable } from "../../react-draggable.js";
3
3
  import { u as useModal } from "../../hooks/useModal/index.js";
4
4
  import { styled } from "@mui/material/styles";
5
- import { a as getThemeVariantColor } from "../../vendor.js";
5
+ import { a as getThemeVariantColor } from "../../utils/index.js";
6
6
  import { R as Resizeable } from "../Resizeable/index.js";
7
7
  import { useResponsiveDesktop } from "@m4l/graphics";
8
8
  import { useEnvironment } from "@m4l/core";
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { PageProps } from './types';
3
- export declare const Page: import("react").ForwardRefExoticComponent<Pick<PageProps, "zIndex" | "typography" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "children" | "meta" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "sx" | "key" | "className" | "classes" | "component" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const Page: import("react").ForwardRefExoticComponent<Pick<PageProps, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "translate" | "meta" | "slot" | "title" | "children" | "component" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -2,7 +2,7 @@ import { forwardRef } from "react";
2
2
  import { Helmet } from "react-helmet-async";
3
3
  import { Box } from "@mui/material";
4
4
  import { useLocales } from "@m4l/graphics";
5
- import { useDomain, useEnvironment } from "@m4l/core";
5
+ import { useDomain, useModuleSkeleton } from "@m4l/core";
6
6
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
7
7
  const Page = forwardRef((props, ref) => {
8
8
  const {
@@ -15,17 +15,13 @@ const Page = forwardRef((props, ref) => {
15
15
  currentLang
16
16
  } = useLocales();
17
17
  const {
18
- name: domain_name,
19
- isLoaded
18
+ name: domain_name
20
19
  } = useDomain();
21
- const {
22
- domain_token
23
- } = useEnvironment();
24
- const finalTitle = title ? `${title} |` : "";
20
+ const isSkeleton = useModuleSkeleton();
25
21
  return /* @__PURE__ */ jsxs(Fragment, {
26
- children: [/* @__PURE__ */ jsxs(Helmet, {
22
+ children: [!isSkeleton && /* @__PURE__ */ jsxs(Helmet, {
27
23
  children: [/* @__PURE__ */ jsx("title", {
28
- children: `${finalTitle}${isLoaded ? domain_name : domain_token}`
24
+ children: `${title} | ${domain_name}`
29
25
  }), /* @__PURE__ */ jsx("html", {
30
26
  lang: currentLang.value
31
27
  }), meta]
@@ -0,0 +1 @@
1
+ export declare function ScrollToTop(): null;
@@ -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,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { IconButtonProps } from '@mui/material';
3
- export declare const IconButtonAnimate: import("react").ForwardRefExoticComponent<Pick<IconButtonProps<"button", {}>, "disabled" | "size" | "value" | "children" | "form" | "slot" | "title" | "color" | "translate" | "sx" | "key" | keyof import("@mui/material/OverridableComponent").CommonProps | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("react").RefAttributes<HTMLButtonElement>>;
3
+ export declare const IconButtonAnimate: import("react").ForwardRefExoticComponent<Pick<IconButtonProps<"button", {}>, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "translate" | "form" | "slot" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { SxProps } from '@mui/material';
3
+ declare type Props = {
4
+ isDashboard?: boolean;
5
+ sx?: SxProps;
6
+ };
7
+ export declare function LoadingScreen({ isDashboard, ...other }: Props): JSX.Element;
8
+ export default LoadingScreen;
@@ -0,0 +1,91 @@
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
+ }) => ({
9
+ right: 0,
10
+ bottom: 0,
11
+ zIndex: 99999,
12
+ width: "100%",
13
+ height: "100%",
14
+ position: "fixed",
15
+ display: "flex",
16
+ alignItems: "center",
17
+ justifyContent: "center",
18
+ backgroundColor: theme.palette.background.default
19
+ }));
20
+ function LoadingScreen({
21
+ isDashboard,
22
+ ...other
23
+ }) {
24
+ return /* @__PURE__ */ jsx(Fragment, {
25
+ children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, {
26
+ ...other,
27
+ children: [/* @__PURE__ */ jsx(m.div, {
28
+ initial: {
29
+ rotateY: 0
30
+ },
31
+ animate: {
32
+ rotateY: 360
33
+ },
34
+ transition: {
35
+ duration: 2,
36
+ ease: "easeInOut",
37
+ repeatDelay: 1,
38
+ repeat: Infinity
39
+ },
40
+ children: /* @__PURE__ */ jsx(Logo, {
41
+ disabledLink: true,
42
+ sx: {
43
+ width: 32,
44
+ height: 32
45
+ }
46
+ })
47
+ }), /* @__PURE__ */ jsx(Box, {
48
+ component: m.div,
49
+ animate: {
50
+ scale: [1.2, 1, 1, 1.2, 1.2],
51
+ rotate: [270, 0, 0, 270, 270],
52
+ opacity: [0.25, 1, 1, 1, 0.25],
53
+ borderRadius: ["25%", "25%", "50%", "50%", "25%"]
54
+ },
55
+ transition: {
56
+ ease: "linear",
57
+ duration: 3.2,
58
+ repeat: Infinity
59
+ },
60
+ sx: {
61
+ width: 50,
62
+ height: 50,
63
+ borderRadius: "25%",
64
+ position: "absolute",
65
+ border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
66
+ }
67
+ }), /* @__PURE__ */ jsx(Box, {
68
+ component: m.div,
69
+ animate: {
70
+ scale: [1, 1.2, 1.2, 1, 1],
71
+ rotate: [0, 270, 270, 0, 0],
72
+ opacity: [1, 0.25, 0.25, 0.25, 1],
73
+ borderRadius: ["25%", "25%", "50%", "50%", "25%"]
74
+ },
75
+ transition: {
76
+ ease: "linear",
77
+ duration: 3.2,
78
+ repeat: Infinity
79
+ },
80
+ sx: {
81
+ width: 60,
82
+ height: 60,
83
+ borderRadius: "25%",
84
+ position: "absolute",
85
+ border: (theme) => `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`
86
+ }
87
+ })]
88
+ })
89
+ });
90
+ }
91
+ export { LoadingScreen as L };
@@ -2,3 +2,4 @@ export * from './variants';
2
2
  export { IconButtonAnimate } from './IconButtonAnimate';
3
3
  export { MotionContainer } from './MotionContainer';
4
4
  export { MotionLazyContainer } from './MotionLazyContainer';
5
+ export { LoadingScreen } from './LoadingScreen';
@@ -7,7 +7,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
7
7
  opacity: number[];
8
8
  transition: {
9
9
  duration: number;
10
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
10
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
11
11
  };
12
12
  };
13
13
  exit: {
@@ -23,7 +23,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
23
23
  opacity: number[];
24
24
  transition: {
25
25
  duration: number;
26
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
26
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
27
27
  };
28
28
  };
29
29
  exit: {
@@ -32,7 +32,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
32
32
  opacity: number[];
33
33
  transition: {
34
34
  duration: number;
35
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
35
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
36
36
  };
37
37
  };
38
38
  };
@@ -44,7 +44,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
44
44
  opacity: number[];
45
45
  transition: {
46
46
  duration: number;
47
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
47
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
48
48
  };
49
49
  };
50
50
  exit: {
@@ -53,7 +53,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
53
53
  opacity: number[];
54
54
  transition: {
55
55
  duration: number;
56
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
56
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
57
57
  };
58
58
  };
59
59
  };
@@ -65,7 +65,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
65
65
  opacity: number[];
66
66
  transition: {
67
67
  duration: number;
68
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
68
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
69
69
  };
70
70
  };
71
71
  exit: {
@@ -74,7 +74,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
74
74
  opacity: number[];
75
75
  transition: {
76
76
  duration: number;
77
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
77
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
78
78
  };
79
79
  };
80
80
  };
@@ -86,7 +86,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
86
86
  opacity: number[];
87
87
  transition: {
88
88
  duration: number;
89
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
89
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
90
90
  };
91
91
  };
92
92
  exit: {
@@ -95,7 +95,7 @@ export declare const varBounce: (props?: VariantsType | undefined) => {
95
95
  opacity: number[];
96
96
  transition: {
97
97
  duration: number;
98
- ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
98
+ ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
99
99
  };
100
100
  };
101
101
  };