@m4l/components 3.1.7 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +183 -340
- package/node_modules-CQtkw0uG.js +7350 -0
- package/package.json +1 -1
- package/vendor-AfIOyqRr.js +24636 -0
- package/components/AccountPopover/index-Dm2-k-Mv.js +0 -334
- package/components/AppBar/index-i0rhG3J1.js +0 -93
- package/components/BaseModule/index-CiNNlxzS.js +0 -30
- package/components/CommonActions/components/ActionCancel/index-CIdpDXkr.js +0 -12
- package/components/CommonActions/components/ActionFormCancel/index-CpyASN3q.js +0 -56
- package/components/CommonActions/components/ActionFormIntro/index-7KKtcUra.js +0 -33
- package/components/CommonActions/components/ActionIntro/index-CqqDZZcG.js +0 -25
- package/components/CommonActions/components/Actions/index-CuG1pnXW.js +0 -70
- package/components/DataGrid/constants-8L7QgBKi.js +0 -10
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index-CveSCbq_.js +0 -26
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-CHqvieM2.js +0 -22
- package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-DE6bwaKP.js +0 -23
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
- package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
- package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js +0 -36
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
- package/components/DataGrid/formatters/index-CrZXPa0e.js +0 -13
- package/components/DataGrid/index-BZ-lbmuU.js +0 -908
- package/components/DataGrid/subcomponents/Actions/index-CHvPZ4Ru.js +0 -549
- package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
- package/components/DragResizeWindow/index-D2jLYExo.js +0 -505
- package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
- package/components/DynamicFilter/dictionary-PrbXU3VZ.js +0 -51
- package/components/DynamicFilter/index-DZiJc9h7.js +0 -116
- package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
- package/components/DynamicFilter/slots/dynamicFilterSlots-DHxelhXP.js +0 -151
- package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/store/index-BT-eWVnJ.js +0 -254
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-B32bAzi-.js +0 -60
- package/components/DynamicFilter/subcomponents/AppliedFilters/index-Bha19drV.js +0 -26
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-BmvzoHit.js +0 -40
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-BcO3SlP5.js +0 -129
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-BCJhpNS8.js +0 -171
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-DCNhz68u.js +0 -153
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-BdypjM1Y.js +0 -146
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-D-NFIVnK.js +0 -114
- package/components/DynamicFilter/subcomponents/FieldTypes/index-BwQHJqk9.js +0 -38
- package/components/DynamicFilter/subcomponents/FilterActions/index-B9UWmk07.js +0 -88
- package/components/DynamicFilter/subcomponents/InputFilter/index-CfGb1TfV.js +0 -188
- package/components/DynamicFilter/subcomponents/PopoverFilter/index-DkfRGrlO.js +0 -158
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-DSegwAm2.js +0 -63
- package/components/FieldLabel/index-CI57EizR.js +0 -54
- package/components/GridLayout/index-C4HyxNYX.js +0 -1044
- package/components/GridLayout/subcomponents/Griditem/index-C7jT4s8t.js +0 -395
- package/components/GridLayout/subcomponents/Responsive/index-BKcU2OnF.js +0 -348
- package/components/GridLayout/subcomponents/SizeProvider/index-1aJ-e_54.js +0 -71
- package/components/HelperText/index-Crn_XIPF.js +0 -50
- package/components/Icon/index-C89MAkeH.js +0 -176
- package/components/Image/index-COp8vP0X.js +0 -175
- package/components/LanguagePopover/index-BA2Igs9L.js +0 -179
- package/components/LinearProgressIndeterminate/index-BwI756Mb.js +0 -55
- package/components/Loadable/index-BMbi9ISF.js +0 -9
- package/components/LoadingError/index-Cf0oGUrL.js +0 -89
- package/components/MFIsolationApp/index-V4R55hNU.js +0 -169
- package/components/MFLoader/index-BI8vQZSH.js +0 -299
- package/components/ModalDialog/index-CEVQBQ7W.js +0 -77
- package/components/NavLink/index-D1S_vtFO.js +0 -55
- package/components/NoItemSelected/index-B9oM26AX.js +0 -54
- package/components/ObjectLogs/index-CiXOJpS4.js +0 -233
- package/components/PDFViewer/index-GVN2rfd6.js +0 -51
- package/components/Page/index-DZMkYmr4.js +0 -117
- package/components/PaperForm/index-DwgAfjci.js +0 -59
- package/components/Period/index-2pJG3VmY.js +0 -238
- package/components/PrintingSystem/index-B2qcnfw0.js +0 -187
- package/components/PrintingSystem/subcomponents/BodyNode/index-Cv2aoy8S.js +0 -49
- package/components/PrintingSystem/subcomponents/ChartNode/index-BmJm8v_C.js +0 -105
- package/components/PrintingSystem/subcomponents/DividerNode/index-MpFhE-H0.js +0 -20
- package/components/PrintingSystem/subcomponents/FooterNode/index-ZEcWdMSM.js +0 -49
- package/components/PrintingSystem/subcomponents/GridNode/index-SsKax2xu.js +0 -74
- package/components/PrintingSystem/subcomponents/HeaderNode/index-Cs8TOOBL.js +0 -49
- package/components/PrintingSystem/subcomponents/PaperNode/index-DBb25Ecg.js +0 -30
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index-CTVn7J9Q.js +0 -47
- package/components/PrintingSystem/subcomponents/SectionNode/index-iYPM3EaS.js +0 -49
- package/components/PrintingSystem/subcomponents/TextBoxNode/index-DGjXCFKJ.js +0 -24
- package/components/PropertyValue/index-Bh-Jnrte.js +0 -264
- package/components/Resizeable/index-DdP1xfE9.js +0 -20
- package/components/ScrollBar/index-f2URPPE2.js +0 -35
- package/components/ScrollToTop/index-TxORk5dB.js +0 -12
- package/components/SideBar/index-PUBBe0yH.js +0 -758
- package/components/SplitLayout/index-Bu1hcO6G.js +0 -89
- package/components/ToastContainer/index-DK1d8NNd.js +0 -191
- package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
- package/components/animate/LoadingScreen/index-CkVLOrMz.js +0 -70
- package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
- package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
- package/components/animate/PropagateLoader/index-Bkq8V2SN.js +0 -23
- package/components/animate/features-BbnE33u3.js +0 -5
- package/components/animate/index-BsWiJfzp.js +0 -89
- package/components/animate/variants/bounce-DanQqHAX.js +0 -101
- package/components/animate/variants/container-Dmpr6tg5.js +0 -22
- package/components/animate/variants/fade-CAOJNn06.js +0 -65
- package/components/animate/variants/index-l0sNRNKZ.js +0 -1
- package/components/animate/variants/transition-B9W5SWTa.js +0 -20
- package/components/areas/components/AreasAdmin/index-OxQU3P8Y.js +0 -699
- package/components/areas/components/AreasViewer/index-DQ0aPioP.js +0 -805
- package/components/areas/components/index-l0sNRNKZ.js +0 -1
- package/components/areas/constants-rqODZNZe.js +0 -6
- package/components/areas/contexts/AreasContext/index-BqRlA7JA.js +0 -1110
- package/components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js +0 -36
- package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
- package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
- package/components/areas/dictionary-YUsP9beq.js +0 -36
- package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
- package/components/areas/hooks/useAreas/index-BSbwbJLS.js +0 -11
- package/components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js +0 -12
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +0 -31
- package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
- package/components/areas/icons-CwFr-alN.js +0 -24
- package/components/areas/index-B_Odny9h.js +0 -22
- package/components/commercial/AppBarCommercial/index-CHq3P3GY.js +0 -28
- package/components/commercial/SectionCommercial/index-BeABGtdr.js +0 -56
- package/components/commercial/TopBar/index-F1repmti.js +0 -232
- package/components/commercial/index-CxDzs6Ax.js +0 -81
- package/components/formatters/BooleanFormatter/index-DktIidqW.js +0 -44
- package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
- package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
- package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
- package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
- package/components/formatters/index-pnJhDYKe.js +0 -109
- package/components/hook-form/HelperError/index-BVnmUazV.js +0 -19
- package/components/hook-form/RHFAutocomplete/index-BtPL16HR.js +0 -657
- package/components/hook-form/RHFAutocompleteAsync/index-BfzjLHG8.js +0 -226
- package/components/hook-form/RHFCheckbox/index-Vyttu8Vx.js +0 -132
- package/components/hook-form/RHFColorPicker/index-Cxxb5Wa_.js +0 -191
- package/components/hook-form/RHFDateTime/index-CW1Slb-f.js +0 -190
- package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
- package/components/hook-form/RHFPeriod/index-r-HeIOoZ.js +0 -98
- package/components/hook-form/RHFRadioGroup/index-CTD-0zKo.js +0 -52
- package/components/hook-form/RHFSelect/index-LdwRuFz-.js +0 -29
- package/components/hook-form/RHFTextField/index-B6ufruSB.js +0 -337
- package/components/hook-form/RHFUpload/index-CDPbm8NR.js +0 -253
- package/components/maps/components/GpsTools/index-5MXlhIEt.js +0 -1948
- package/components/maps/components/Map/index-2Lx5ARXa.js +0 -2546
- package/components/maps/index-Ci-7-FHg.js +0 -7
- package/components/modal/WindowBase-Gd27v5FU.js +0 -44
- package/components/modal/WindowConfirm-u6vAMFo7.js +0 -73
- package/components/modal/index-CydPIpKZ.js +0 -65
- package/components/mui_extended/Accordion/index-DMLYJL7o.js +0 -124
- package/components/mui_extended/Avatar/index-ClBa-6eF.js +0 -64
- package/components/mui_extended/Badge/index-zI-F_Qkq.js +0 -29
- package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
- package/components/mui_extended/Breadcrumbs/index-DTS7rOZH.js +0 -86
- package/components/mui_extended/Button/index-CGfZbaea.js +0 -222
- package/components/mui_extended/CheckBox-BXUrbonB.js +0 -76
- package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
- package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
- package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
- package/components/mui_extended/IconButton/index-CusYFjie.js +0 -97
- package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
- package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
- package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
- package/components/mui_extended/MenuActions/MenuActions-C6CjSU6C.js +0 -149
- package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
- package/components/mui_extended/MenuActions/dictionary-Dj_07puT.js +0 -11
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots-D65KZAKF.js +0 -46
- package/components/mui_extended/Pager/index-DCbxiTZA.js +0 -257
- package/components/mui_extended/Popover/index-DfrJAQkV.js +0 -153
- package/components/mui_extended/Stack/index-DzEeCYfp.js +0 -31
- package/components/mui_extended/Tab/index-Bu3dPidV.js +0 -129
- package/components/mui_extended/ToggleButton/index-C9cBkT1V.js +0 -18
- package/components/mui_extended/ToggleIconButton/index--0b3Td6C.js +0 -26
- package/components/mui_extended/Tooltip/index-B8QUytCK.js +0 -42
- package/components/mui_extended/Typography/index-Cf_4Zw8f.js +0 -54
- package/components/mui_extended/index-l0sNRNKZ.js +0 -1
- package/components/popups/PopupsProvider/index-DhSxmtfJ.js +0 -172
- package/components/popups/PopupsViewer/constants-DuyD7aCn.js +0 -4
- package/components/popups/PopupsViewer/icons-BUujqqbu.js +0 -7
- package/components/popups/PopupsViewer/index-BecevSns.js +0 -172
- package/components/popups/PopupsViewer/slots/index-B98CiRLa.js +0 -14
- package/components/popups/PopupsViewer/slots/popupsViewerSlots-BXH77nCF.js +0 -46
- package/components/popups/index-l0sNRNKZ.js +0 -1
- package/contexts/ModalContext/index-CPfNnfTL.js +0 -39
- package/contexts/RHFormContext/index-D_nK759o.js +0 -78
- package/hocs/withToggle/index-C1_DMZD3.js +0 -14
- package/hooks/useFormAddEdit/index-D9oSjUn1.js +0 -90
- package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
- package/hooks/useModal/index-BJSQOX3U.js +0 -10
- package/hooks/useSizeContainer/index-D4hDjM1P.js +0 -37
- package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
- package/hooks/useTab/index-B_GEQFOP.js +0 -12
- package/react-data-grid-BfYuZ6AK.js +0 -2606
- package/react-draggable-DsCPdgQP.js +0 -811
- package/react-json-view-bhqIAaNg.js +0 -2576
- package/react-resizable-eBbFl2dX.js +0 -618
- package/react-spinners-TpKN9lZg.js +0 -123
- package/react-splitter-layout-C-JTsNGs.js +0 -158
- package/styles/DynamicFilter-CJFsIegc.js +0 -319
- package/styles/MenuActions-lTi-ynPM.js +0 -42
- package/styles/index-DKj6m8SL.js +0 -1691
- package/test/constants_no_mock-CF-669v-.js +0 -4
- package/test/getNameDataTestId-BaBTWhBr.js +0 -10
- package/utils/index-DiMrtgIu.js +0 -502
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { a0 as SplitLayoutRoot, a1 as SplitMaster, a2 as SplitDetail } from "../../styles/index-DKj6m8SL.js";
|
|
3
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock-CF-669v-.js";
|
|
7
|
-
import { S as SplitterLayout } from "../../react-splitter-layout-C-JTsNGs.js";
|
|
8
|
-
const componentName = "M4LSplitLayout";
|
|
9
|
-
generateUtilityClasses(componentName, [
|
|
10
|
-
/* elements */
|
|
11
|
-
"root",
|
|
12
|
-
"firstPart",
|
|
13
|
-
"secondPart",
|
|
14
|
-
/* states or variants of elements */
|
|
15
|
-
"stateVertical",
|
|
16
|
-
"stateHorizontal"
|
|
17
|
-
]);
|
|
18
|
-
function getSplitLayoutUtilityClass(slot) {
|
|
19
|
-
return generateUtilityClass(componentName, slot);
|
|
20
|
-
}
|
|
21
|
-
const useSplitLayoutUtilityClasses = (ownerState) => {
|
|
22
|
-
const slots = {
|
|
23
|
-
root: [
|
|
24
|
-
"root",
|
|
25
|
-
ownerState.splitPosition === "vertical" && "stateVertical",
|
|
26
|
-
ownerState.splitPosition === "horizontal" && "stateHorizontal"
|
|
27
|
-
],
|
|
28
|
-
firstPart: ["firstPart"],
|
|
29
|
-
secondPart: ["secondPart"]
|
|
30
|
-
};
|
|
31
|
-
const composedClasses = unstable_composeClasses(slots, getSplitLayoutUtilityClass, {});
|
|
32
|
-
return {
|
|
33
|
-
...composedClasses
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
37
|
-
const getNameSplitLayoutDataTestId = (KEY) => {
|
|
38
|
-
return `${SPLITLAYOUT_PREFIX}-${KEY}`;
|
|
39
|
-
};
|
|
40
|
-
function SplitLayout(props) {
|
|
41
|
-
const {
|
|
42
|
-
splitPosition,
|
|
43
|
-
firstPart,
|
|
44
|
-
secondPart,
|
|
45
|
-
secondParrtInitialSize = 50,
|
|
46
|
-
percentage = true,
|
|
47
|
-
className
|
|
48
|
-
} = props;
|
|
49
|
-
const ownerState = {
|
|
50
|
-
splitPosition
|
|
51
|
-
};
|
|
52
|
-
const classes = useSplitLayoutUtilityClasses(ownerState);
|
|
53
|
-
return /* @__PURE__ */ jsx(
|
|
54
|
-
SplitLayoutRoot,
|
|
55
|
-
{
|
|
56
|
-
className: clsx(classes.root, className),
|
|
57
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameSplitLayoutDataTestId("root") } : {},
|
|
58
|
-
children: SplitterLayout ? /* @__PURE__ */ jsxs(
|
|
59
|
-
SplitterLayout,
|
|
60
|
-
{
|
|
61
|
-
vertical: splitPosition === "vertical",
|
|
62
|
-
percentage,
|
|
63
|
-
secondaryInitialSize: secondParrtInitialSize,
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsx(
|
|
66
|
-
SplitMaster,
|
|
67
|
-
{
|
|
68
|
-
className: classes.firstPart,
|
|
69
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameSplitLayoutDataTestId("firstPart") } : {},
|
|
70
|
-
children: typeof firstPart === "function" ? firstPart() : firstPart
|
|
71
|
-
}
|
|
72
|
-
),
|
|
73
|
-
splitPosition !== "none" && /* @__PURE__ */ jsx(
|
|
74
|
-
SplitDetail,
|
|
75
|
-
{
|
|
76
|
-
className: classes.secondPart,
|
|
77
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameSplitLayoutDataTestId("secondPart") } : {},
|
|
78
|
-
children: typeof secondPart === "function" ? secondPart() : secondPart
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
) : null
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
SplitLayout as S
|
|
89
|
-
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ToastContainer as ToastContainer$1, toast } from "react-toastify";
|
|
3
|
-
import { a as getPropDataTestId } from "../../test/getNameDataTestId-BaBTWhBr.js";
|
|
4
|
-
import "react-toastify/dist/ReactToastify.min.css";
|
|
5
|
-
import { useState } from "react";
|
|
6
|
-
import { useEnvironment } from "@m4l/core";
|
|
7
|
-
import { styled } from "@mui/material/styles";
|
|
8
|
-
import { a3 as toastStyles } from "../../styles/index-DKj6m8SL.js";
|
|
9
|
-
import { I as Icon } from "../Icon/index-C89MAkeH.js";
|
|
10
|
-
var ToastContainerSlots = /* @__PURE__ */ ((ToastContainerSlots2) => {
|
|
11
|
-
ToastContainerSlots2["root"] = "root";
|
|
12
|
-
ToastContainerSlots2["messageRoot"] = "messageRoot";
|
|
13
|
-
ToastContainerSlots2["messageHeader"] = "messageHeader";
|
|
14
|
-
ToastContainerSlots2["messageIconRoot"] = "messageIconRoot";
|
|
15
|
-
ToastContainerSlots2["messageIcon"] = "messageIcon";
|
|
16
|
-
ToastContainerSlots2["messageTitle"] = "messageTitle";
|
|
17
|
-
ToastContainerSlots2["messageDescription"] = "messageDescription";
|
|
18
|
-
ToastContainerSlots2["messageCloseButton"] = "messageCloseButton";
|
|
19
|
-
ToastContainerSlots2["messageCloseButtonIcon"] = "messageCloseButtonIcon";
|
|
20
|
-
ToastContainerSlots2["messagePinButton"] = "messagePinButton";
|
|
21
|
-
ToastContainerSlots2["messagePinButtonIcon"] = "messagePinButtonIcon";
|
|
22
|
-
return ToastContainerSlots2;
|
|
23
|
-
})(ToastContainerSlots || {});
|
|
24
|
-
const TOAST_KEY_COMPONENT = "M4LToastContainer";
|
|
25
|
-
const DEFAULT_CLOSE_TIME = 3e4;
|
|
26
|
-
const ICONS_PATH = "frontend/components/toast/assets/icons";
|
|
27
|
-
const RootStyled = styled("div", {
|
|
28
|
-
name: TOAST_KEY_COMPONENT,
|
|
29
|
-
slot: ToastContainerSlots.root
|
|
30
|
-
})(toastStyles?.root);
|
|
31
|
-
const MessageRootStyled = styled("div", {
|
|
32
|
-
name: TOAST_KEY_COMPONENT,
|
|
33
|
-
slot: ToastContainerSlots.messageRoot
|
|
34
|
-
})(toastStyles?.messageRoot);
|
|
35
|
-
const MessageHeaderStyled = styled("div", {
|
|
36
|
-
name: TOAST_KEY_COMPONENT,
|
|
37
|
-
slot: ToastContainerSlots.messageHeader
|
|
38
|
-
})(toastStyles?.messageHeader);
|
|
39
|
-
const MessageIconRootStyled = styled("div", {
|
|
40
|
-
name: TOAST_KEY_COMPONENT,
|
|
41
|
-
slot: ToastContainerSlots.messageIconRoot
|
|
42
|
-
})(toastStyles?.messageIconRoot);
|
|
43
|
-
const MessageIconStyled = styled(Icon, {
|
|
44
|
-
name: TOAST_KEY_COMPONENT,
|
|
45
|
-
slot: ToastContainerSlots.messageIcon
|
|
46
|
-
})(toastStyles?.messageIcon);
|
|
47
|
-
const MessageTitleStyled = styled("strong", {
|
|
48
|
-
name: TOAST_KEY_COMPONENT,
|
|
49
|
-
slot: ToastContainerSlots.messageTitle
|
|
50
|
-
})(toastStyles?.messageTitle);
|
|
51
|
-
const MessageDescriptionStyled = styled("p", {
|
|
52
|
-
name: TOAST_KEY_COMPONENT,
|
|
53
|
-
slot: ToastContainerSlots.messageDescription
|
|
54
|
-
})(toastStyles?.messageDescription);
|
|
55
|
-
const MessageCloseButtonStyled = styled("button", {
|
|
56
|
-
name: TOAST_KEY_COMPONENT,
|
|
57
|
-
slot: ToastContainerSlots.messageCloseButton
|
|
58
|
-
})(toastStyles?.messageCloseButton);
|
|
59
|
-
const MessageCloseButtonIconStyled = styled(Icon, {
|
|
60
|
-
name: TOAST_KEY_COMPONENT,
|
|
61
|
-
slot: ToastContainerSlots.messageCloseButtonIcon
|
|
62
|
-
})(toastStyles?.messageCloseButtonIcon);
|
|
63
|
-
const MessagePinButtonStyled = styled("button", {
|
|
64
|
-
name: TOAST_KEY_COMPONENT,
|
|
65
|
-
slot: ToastContainerSlots.messagePinButton
|
|
66
|
-
})(toastStyles?.messagePinButton);
|
|
67
|
-
const MessagePinButtonIconStyled = styled(Icon, {
|
|
68
|
-
name: TOAST_KEY_COMPONENT,
|
|
69
|
-
slot: ToastContainerSlots.messagePinButtonIcon
|
|
70
|
-
})(toastStyles?.messagePinButtonIcon);
|
|
71
|
-
const ToastContainer = (props) => {
|
|
72
|
-
const { children, fixed = true, dataTestId, ...restProps } = props;
|
|
73
|
-
const ownerState = { fixed };
|
|
74
|
-
return /* @__PURE__ */ jsxs(
|
|
75
|
-
RootStyled,
|
|
76
|
-
{
|
|
77
|
-
ownerState,
|
|
78
|
-
...getPropDataTestId(dataTestId, ToastContainerSlots.root),
|
|
79
|
-
children: [
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
ToastContainer$1,
|
|
82
|
-
{
|
|
83
|
-
stacked: true,
|
|
84
|
-
icon: false,
|
|
85
|
-
closeButton: false,
|
|
86
|
-
autoClose: DEFAULT_CLOSE_TIME,
|
|
87
|
-
theme: "light",
|
|
88
|
-
...restProps
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
children
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
const ICONS = {
|
|
97
|
-
SUCCESS: "success.svg",
|
|
98
|
-
INFO: "info.svg",
|
|
99
|
-
WARNING: "warning.svg",
|
|
100
|
-
ERROR: "error.svg",
|
|
101
|
-
DEFAULT: "info.svg",
|
|
102
|
-
CLOSE: "close.svg",
|
|
103
|
-
PIN: "pin.svg"
|
|
104
|
-
};
|
|
105
|
-
const iconTypes = {
|
|
106
|
-
default: ICONS.DEFAULT,
|
|
107
|
-
info: ICONS.INFO,
|
|
108
|
-
success: ICONS.SUCCESS,
|
|
109
|
-
warning: ICONS.WARNING,
|
|
110
|
-
error: ICONS.ERROR
|
|
111
|
-
};
|
|
112
|
-
const ToastMessage = (props) => {
|
|
113
|
-
const [isPinned, setIsPinned] = useState(false);
|
|
114
|
-
const { type, title, description, closeToast, toastId, containerId } = props;
|
|
115
|
-
const ownerState = { type };
|
|
116
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
117
|
-
const iconToShow = iconTypes?.[type || "default"] || iconTypes.default;
|
|
118
|
-
const iconTypePath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${iconToShow}`;
|
|
119
|
-
const iconClosePath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${ICONS.CLOSE}`;
|
|
120
|
-
const iconPinPath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${ICONS.PIN}`;
|
|
121
|
-
function pinToast() {
|
|
122
|
-
if (toastId) {
|
|
123
|
-
toast.update(toastId, { containerId, autoClose: false, closeOnClick: false });
|
|
124
|
-
setIsPinned(true);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return /* @__PURE__ */ jsxs(MessageRootStyled, { ownerState, children: [
|
|
128
|
-
/* @__PURE__ */ jsxs(MessageHeaderStyled, { ownerState, children: [
|
|
129
|
-
/* @__PURE__ */ jsx(MessageIconRootStyled, { ownerState, children: /* @__PURE__ */ jsx(MessageIconStyled, { src: iconTypePath, ownerState }) }),
|
|
130
|
-
/* @__PURE__ */ jsx(MessageTitleStyled, { ownerState, children: title }),
|
|
131
|
-
!isPinned && /* @__PURE__ */ jsx(
|
|
132
|
-
MessagePinButtonStyled,
|
|
133
|
-
{
|
|
134
|
-
onClick: pinToast,
|
|
135
|
-
ownerState,
|
|
136
|
-
"aria-describedby": `${TOAST_KEY_COMPONENT}-pin`,
|
|
137
|
-
children: /* @__PURE__ */ jsx(MessagePinButtonIconStyled, { src: iconPinPath, size: "small", ownerState })
|
|
138
|
-
}
|
|
139
|
-
),
|
|
140
|
-
/* @__PURE__ */ jsx(
|
|
141
|
-
MessageCloseButtonStyled,
|
|
142
|
-
{
|
|
143
|
-
onClick: closeToast,
|
|
144
|
-
ownerState,
|
|
145
|
-
"aria-describedby": `${TOAST_KEY_COMPONENT}-close`,
|
|
146
|
-
children: /* @__PURE__ */ jsx(MessageCloseButtonIconStyled, { src: iconClosePath, size: "small", ownerState })
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
] }),
|
|
150
|
-
description && /* @__PURE__ */ jsx(MessageDescriptionStyled, { ownerState, children: description })
|
|
151
|
-
] });
|
|
152
|
-
};
|
|
153
|
-
function optionsToProps(toastProps, containerId) {
|
|
154
|
-
return {
|
|
155
|
-
containerId,
|
|
156
|
-
type: toastProps?.type,
|
|
157
|
-
toastId: toastProps?.toastId,
|
|
158
|
-
autoClose: toastProps?.autoClose
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
function triggerToast({ props, toastOptions, containerId, type = "default" }) {
|
|
162
|
-
const currentContainerId = containerId || toastOptions?.containerId;
|
|
163
|
-
const allProps = { ...props, ...optionsToProps(toastOptions, currentContainerId) };
|
|
164
|
-
const toastFn = type === "default" || type === void 0 ? toast : toast[type];
|
|
165
|
-
const id = toastFn(/* @__PURE__ */ jsx(ToastMessage, { ...allProps }), {
|
|
166
|
-
...toastOptions,
|
|
167
|
-
containerId: currentContainerId
|
|
168
|
-
});
|
|
169
|
-
if (!toastOptions?.toastId) {
|
|
170
|
-
toast.update(id, {
|
|
171
|
-
containerId: currentContainerId,
|
|
172
|
-
render: /* @__PURE__ */ jsx(ToastMessage, { ...allProps, toastId: id })
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
return toastOptions?.toastId || id;
|
|
176
|
-
}
|
|
177
|
-
function createToaster(containerId) {
|
|
178
|
-
const toaster = (props, toastOptions = {}) => {
|
|
179
|
-
return triggerToast({ props, toastOptions, containerId });
|
|
180
|
-
};
|
|
181
|
-
toaster.success = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "success", containerId });
|
|
182
|
-
toaster.info = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "info", containerId });
|
|
183
|
-
toaster.warning = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "warning", containerId });
|
|
184
|
-
toaster.error = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "error", containerId });
|
|
185
|
-
return toaster;
|
|
186
|
-
}
|
|
187
|
-
export {
|
|
188
|
-
ToastContainer as T,
|
|
189
|
-
ToastMessage as a,
|
|
190
|
-
createToaster as c
|
|
191
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
function WrapperComponent(props) {
|
|
3
|
-
const { children, type = "fragment" } = props;
|
|
4
|
-
if (type === "fragment") {
|
|
5
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
6
|
-
}
|
|
7
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
-
" ",
|
|
9
|
-
children
|
|
10
|
-
] });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
WrapperComponent as W
|
|
14
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { m } from "framer-motion";
|
|
3
|
-
import { alpha } from "@mui/material/styles";
|
|
4
|
-
import { Box } from "@mui/material";
|
|
5
|
-
import { a4 as RootStyle } from "../../../styles/index-DKj6m8SL.js";
|
|
6
|
-
function LoadingScreen(props) {
|
|
7
|
-
const { isDashboard, variant = "fullpage", ...other } = props;
|
|
8
|
-
return /* @__PURE__ */ jsx(Fragment, { children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, { variant, ...other, children: [
|
|
9
|
-
/* @__PURE__ */ jsx(
|
|
10
|
-
m.div,
|
|
11
|
-
{
|
|
12
|
-
initial: { rotateY: 0 },
|
|
13
|
-
animate: { rotateY: 360 },
|
|
14
|
-
transition: {
|
|
15
|
-
duration: 2,
|
|
16
|
-
ease: "easeInOut",
|
|
17
|
-
repeatDelay: 1,
|
|
18
|
-
repeat: Infinity
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
),
|
|
22
|
-
/* @__PURE__ */ jsx(
|
|
23
|
-
Box,
|
|
24
|
-
{
|
|
25
|
-
component: m.div,
|
|
26
|
-
animate: {
|
|
27
|
-
scale: [1.2, 1, 1, 1.2, 1.2],
|
|
28
|
-
rotate: [270, 0, 0, 270, 270],
|
|
29
|
-
opacity: [0.25, 1, 1, 1, 0.25],
|
|
30
|
-
borderRadius: ["25%", "25%", "50%", "50%", "25%"]
|
|
31
|
-
},
|
|
32
|
-
transition: { ease: "linear", duration: 3.2, repeat: Infinity },
|
|
33
|
-
sx: {
|
|
34
|
-
width: 50,
|
|
35
|
-
height: 50,
|
|
36
|
-
borderRadius: "25%",
|
|
37
|
-
position: "absolute",
|
|
38
|
-
border: (theme) => `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
Box,
|
|
44
|
-
{
|
|
45
|
-
component: m.div,
|
|
46
|
-
animate: {
|
|
47
|
-
scale: [1, 1.2, 1.2, 1, 1],
|
|
48
|
-
rotate: [0, 270, 270, 0, 0],
|
|
49
|
-
opacity: [1, 0.25, 0.25, 0.25, 1],
|
|
50
|
-
borderRadius: ["25%", "25%", "50%", "50%", "25%"]
|
|
51
|
-
},
|
|
52
|
-
transition: {
|
|
53
|
-
ease: "linear",
|
|
54
|
-
duration: 3.2,
|
|
55
|
-
repeat: Infinity
|
|
56
|
-
},
|
|
57
|
-
sx: {
|
|
58
|
-
width: 60,
|
|
59
|
-
height: 60,
|
|
60
|
-
borderRadius: "25%",
|
|
61
|
-
position: "absolute",
|
|
62
|
-
border: (theme) => `solid 8px ${alpha(theme.colorSchemes.finalTheme.palette.primary.dark, 0.24)}`
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
] }) });
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
LoadingScreen as L
|
|
70
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { m } from "framer-motion";
|
|
3
|
-
import { Box } from "@mui/material";
|
|
4
|
-
import { v as varContainer } from "../variants/container-Dmpr6tg5.js";
|
|
5
|
-
function MotionContainer({ animate, action = false, children, ...other }) {
|
|
6
|
-
if (action) {
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
Box,
|
|
9
|
-
{
|
|
10
|
-
component: m.div,
|
|
11
|
-
initial: false,
|
|
12
|
-
animate: animate ? "animate" : "exit",
|
|
13
|
-
variants: varContainer(),
|
|
14
|
-
...other,
|
|
15
|
-
children
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
Box,
|
|
21
|
-
{
|
|
22
|
-
component: m.div,
|
|
23
|
-
initial: "initial",
|
|
24
|
-
animate: "animate",
|
|
25
|
-
exit: "exit",
|
|
26
|
-
variants: varContainer(),
|
|
27
|
-
...other,
|
|
28
|
-
children
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
MotionContainer as M
|
|
34
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LazyMotion } from "framer-motion";
|
|
3
|
-
const loadFeatures = () => import("../features-BbnE33u3.js").then((res) => res.default);
|
|
4
|
-
function MotionLazyContainer({ children }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(LazyMotion, { strict: true, features: loadFeatures, children });
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
MotionLazyContainer as M
|
|
9
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@mui/material";
|
|
3
|
-
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { P as PropagateLoader$1 } from "../../../react-spinners-TpKN9lZg.js";
|
|
5
|
-
const WrapperPropageteLoader = styled("div")(({ theme }) => ({
|
|
6
|
-
right: 0,
|
|
7
|
-
bottom: 0,
|
|
8
|
-
zIndex: 99999,
|
|
9
|
-
width: "100%",
|
|
10
|
-
height: "100%",
|
|
11
|
-
position: "fixed",
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
justifyContent: "center",
|
|
15
|
-
background: theme.vars.palette.background.default
|
|
16
|
-
}));
|
|
17
|
-
const PropagateLoader = () => {
|
|
18
|
-
const { palette } = useTheme();
|
|
19
|
-
return /* @__PURE__ */ jsx(WrapperPropageteLoader, { children: /* @__PURE__ */ jsx(PropagateLoader$1, { color: palette.primary.main }) });
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
PropagateLoader as P
|
|
23
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { m } from "framer-motion";
|
|
3
|
-
import { forwardRef, useRef } from "react";
|
|
4
|
-
import { IconButton, Box } from "@mui/material";
|
|
5
|
-
import { a5 as AnimatedScrollRoot } from "../../styles/index-DKj6m8SL.js";
|
|
6
|
-
const varSmall = {
|
|
7
|
-
hover: { scale: 1.1 },
|
|
8
|
-
tap: { scale: 0.95 }
|
|
9
|
-
};
|
|
10
|
-
const varMedium = {
|
|
11
|
-
hover: { scale: 1.09 },
|
|
12
|
-
tap: { scale: 0.97 }
|
|
13
|
-
};
|
|
14
|
-
const varLarge = {
|
|
15
|
-
hover: { scale: 1.08 },
|
|
16
|
-
tap: { scale: 0.99 }
|
|
17
|
-
};
|
|
18
|
-
function AnimateWrap({ size, children }) {
|
|
19
|
-
const isSmall = size === "small";
|
|
20
|
-
const isLarge = size === "large";
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
Box,
|
|
23
|
-
{
|
|
24
|
-
component: m.div,
|
|
25
|
-
whileTap: "tap",
|
|
26
|
-
whileHover: "hover",
|
|
27
|
-
variants: isSmall && varSmall || isLarge && varLarge || varMedium,
|
|
28
|
-
sx: {
|
|
29
|
-
display: "inline-flex"
|
|
30
|
-
},
|
|
31
|
-
children
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
const IconButtonAnimate = forwardRef(
|
|
36
|
-
({ children, size = "medium", ...other }, ref) => /* @__PURE__ */ jsx(AnimateWrap, { size, children: /* @__PURE__ */ jsx(IconButton, { size, ref, ...other, children }) })
|
|
37
|
-
);
|
|
38
|
-
IconButtonAnimate.displayName = "IconButtonAnimate";
|
|
39
|
-
const AnimatedScroll = (props) => {
|
|
40
|
-
const { children } = props;
|
|
41
|
-
const containerRef = useRef(null);
|
|
42
|
-
const scrollSpeed = 0.1;
|
|
43
|
-
let animationId;
|
|
44
|
-
const handleMouseEnter = () => {
|
|
45
|
-
if (containerRef.current) {
|
|
46
|
-
let scrollStep = function(timestamp) {
|
|
47
|
-
if (!startTime) {
|
|
48
|
-
startTime = timestamp;
|
|
49
|
-
}
|
|
50
|
-
currentTime = timestamp - startTime;
|
|
51
|
-
const scrollAmount = startScrollLeft + distance * (currentTime / duration);
|
|
52
|
-
container.scrollLeft = scrollAmount;
|
|
53
|
-
if (currentTime < duration) {
|
|
54
|
-
animationId = requestAnimationFrame(scrollStep);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const container = containerRef.current;
|
|
58
|
-
const startScrollLeft = container.scrollLeft;
|
|
59
|
-
const endScrollLeft = container.scrollWidth;
|
|
60
|
-
const distance = endScrollLeft - startScrollLeft;
|
|
61
|
-
const duration = distance / scrollSpeed;
|
|
62
|
-
let startTime;
|
|
63
|
-
let currentTime;
|
|
64
|
-
animationId = requestAnimationFrame(scrollStep);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const handleMouseLeave = () => {
|
|
68
|
-
if (animationId !== void 0) {
|
|
69
|
-
cancelAnimationFrame(animationId);
|
|
70
|
-
}
|
|
71
|
-
if (containerRef.current) {
|
|
72
|
-
containerRef.current.scrollLeft = 0;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
return /* @__PURE__ */ jsx(
|
|
76
|
-
AnimatedScrollRoot,
|
|
77
|
-
{
|
|
78
|
-
className: "animated-scroll-container",
|
|
79
|
-
ref: containerRef,
|
|
80
|
-
onMouseEnter: handleMouseEnter,
|
|
81
|
-
onMouseLeave: handleMouseLeave,
|
|
82
|
-
children
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
export {
|
|
87
|
-
AnimatedScroll as A,
|
|
88
|
-
IconButtonAnimate as I
|
|
89
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { v as varTranEnter, a as varTranExit } from "./transition-B9W5SWTa.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;
|
|
7
|
-
return {
|
|
8
|
-
// IN
|
|
9
|
-
in: {
|
|
10
|
-
initial: {},
|
|
11
|
-
animate: {
|
|
12
|
-
scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
|
|
13
|
-
opacity: [0, 1, 1, 1, 1, 1],
|
|
14
|
-
transition: varTranEnter({ durationIn, easeIn })
|
|
15
|
-
},
|
|
16
|
-
exit: {
|
|
17
|
-
scale: [0.9, 1.1, 0.3],
|
|
18
|
-
opacity: [1, 1, 0]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
inUp: {
|
|
22
|
-
initial: {},
|
|
23
|
-
animate: {
|
|
24
|
-
y: [720, -24, 12, -4, 0],
|
|
25
|
-
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
26
|
-
opacity: [0, 1, 1, 1, 1],
|
|
27
|
-
transition: { ...varTranEnter({ durationIn, easeIn }) }
|
|
28
|
-
},
|
|
29
|
-
exit: {
|
|
30
|
-
y: [12, -24, 720],
|
|
31
|
-
scaleY: [0.985, 0.9, 3],
|
|
32
|
-
opacity: [1, 1, 0],
|
|
33
|
-
transition: varTranExit({ durationOut, easeOut })
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
inDown: {
|
|
37
|
-
initial: {},
|
|
38
|
-
animate: {
|
|
39
|
-
y: [-720, 24, -12, 4, 0],
|
|
40
|
-
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
41
|
-
opacity: [0, 1, 1, 1, 1],
|
|
42
|
-
transition: varTranEnter({ durationIn, easeIn })
|
|
43
|
-
},
|
|
44
|
-
exit: {
|
|
45
|
-
y: [-12, 24, -720],
|
|
46
|
-
scaleY: [0.985, 0.9, 3],
|
|
47
|
-
opacity: [1, 1, 0],
|
|
48
|
-
transition: varTranExit({ durationOut, easeOut })
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
inLeft: {
|
|
52
|
-
initial: {},
|
|
53
|
-
animate: {
|
|
54
|
-
x: [-720, 24, -12, 4, 0],
|
|
55
|
-
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
56
|
-
opacity: [0, 1, 1, 1, 1],
|
|
57
|
-
transition: varTranEnter({ durationIn, easeIn })
|
|
58
|
-
},
|
|
59
|
-
exit: {
|
|
60
|
-
x: [0, 24, -720],
|
|
61
|
-
scaleX: [1, 0.9, 2],
|
|
62
|
-
opacity: [1, 1, 0],
|
|
63
|
-
transition: varTranExit({ durationOut, easeOut })
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
inRight: {
|
|
67
|
-
initial: {},
|
|
68
|
-
animate: {
|
|
69
|
-
x: [720, -24, 12, -4, 0],
|
|
70
|
-
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
71
|
-
opacity: [0, 1, 1, 1, 1],
|
|
72
|
-
transition: varTranEnter({ durationIn, easeIn })
|
|
73
|
-
},
|
|
74
|
-
exit: {
|
|
75
|
-
x: [0, -24, 720],
|
|
76
|
-
scaleX: [1, 0.9, 2],
|
|
77
|
-
opacity: [1, 1, 0],
|
|
78
|
-
transition: varTranExit({ durationOut, easeOut })
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
// OUT
|
|
82
|
-
out: {
|
|
83
|
-
animate: { scale: [0.9, 1.1, 0.3], opacity: [1, 1, 0] }
|
|
84
|
-
},
|
|
85
|
-
outUp: {
|
|
86
|
-
animate: { y: [-12, 24, -720], scaleY: [0.985, 0.9, 3], opacity: [1, 1, 0] }
|
|
87
|
-
},
|
|
88
|
-
outDown: {
|
|
89
|
-
animate: { y: [12, -24, 720], scaleY: [0.985, 0.9, 3], opacity: [1, 1, 0] }
|
|
90
|
-
},
|
|
91
|
-
outLeft: {
|
|
92
|
-
animate: { x: [0, 24, -720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] }
|
|
93
|
-
},
|
|
94
|
-
outRight: {
|
|
95
|
-
animate: { x: [0, -24, 720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] }
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
varBounce as v
|
|
101
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
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 {
|
|
21
|
-
varContainer as v
|
|
22
|
-
};
|