@m4l/components 0.2.36 → 1.0.0
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/components/AccountPopover/{index.a9dc9f92.js → index.efc74d5c.js} +3 -5
- package/components/AppBar/{index.7dee7427.js → index.fc126a22.js} +6 -5
- package/components/AppBar/styles.d.ts +1 -1
- package/components/CommonActions/components/Actions/styles.d.ts +1 -1
- package/components/DataGrid/styles.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +7 -7
- package/components/DragResizeWindow/{index.a9f25040.js → index.46b380e1.js} +3 -6
- package/components/DynamicFilter/dynamicFilterSlots.d.ts +76 -101
- package/components/DynamicFilter/{index.48d809e2.js → index.d9168c12.js} +22 -96
- package/components/FieldLabel/{index.2622ee40.js → index.f9cdcc27.js} +4 -4
- package/components/GridLayout/{index.b9c47a4c.js → index.bb3b7769.js} +23 -46
- package/components/GridLayout/subcomponents/Griditem/{index.69bc14e5.js → index.bb23f651.js} +4 -3
- package/components/GridLayout/subcomponents/Responsive/{index.094c1d09.js → index.b8a2a121.js} +2 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.e1d2df80.js → index.094bc6b5.js} +1 -1
- package/components/{commercial/index.b90488db.js → HamburgerMenu/index.5997af31.js} +4 -6
- package/components/HelperText/{index.81c5d349.js → index.be949cdf.js} +3 -2
- package/components/HelperText/styles.d.ts +1 -1
- package/components/Icon/index.d5fed418.js +420 -0
- package/components/Icon/styles.d.ts +2 -2
- package/components/{hook-form/RHFUpload/index.c5e5c61c.js → Image/index.36a3d440.js} +233 -32
- package/components/Image/styles.d.ts +1 -1
- package/components/LanguagePopover/{index.72f316fc.js → index.e6fa2336.js} +5 -8
- package/components/LanguagePopover/styles.d.ts +5 -5
- package/components/LinearProgressIndeterminate/{index.2ecd571e.js → index.de9d447c.js} +2 -4
- package/components/Loadable/{index.97fe63f9.js → index.e83cdb4e.js} +1 -1
- package/components/LoadingError/{index.7aaba1cf.js → index.9f00c83c.js} +8 -12
- package/components/LoadingError/styles.d.ts +1 -1
- package/components/MFLoader/{index.40c419c0.js → index.402c1acc.js} +4 -8
- package/components/ModalDialog/{index.42349189.js → index.ea9189c3.js} +5 -14
- package/components/NavLink/{index.9e847eb5.js → index.4e548cee.js} +4 -4
- package/components/NavLink/styles.d.ts +1 -1
- package/components/NoItemSelected/{index.5a8160fd.js → index.418c8316.js} +6 -15
- package/components/NoItemSelected/styles.d.ts +4 -4
- package/components/ObjectLogs/{index.6955149e.js → index.bfa7dad3.js} +10 -27
- package/components/ObjectLogs/styles.d.ts +3 -3
- package/components/PDFViewer/{index.47bb0928.js → index.bb2eca5a.js} +2 -2
- package/components/{mui_extended/Pager/index.1ba2d52b.js → Page/index.fdf04592.js} +134 -26
- package/components/PaperForm/{index.9f6fd02d.js → index.8121e3da.js} +8 -7
- package/components/PaperForm/styles.d.ts +6 -6
- package/components/Period/{index.c6d1a95a.js → index.5233694b.js} +157 -22
- package/components/Period/styles.d.ts +5 -5
- package/components/PrintingSystem/{index.f51a00f8.js → index.fb176a93.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.6792c353.js → index.c1d61038.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.eec6b4cd.js → index.18bd9bad.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.e58467c9.js → index.67d9f1b4.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.920b75c9.js → index.eaee152a.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.6c1ad53c.js → index.f5f63a2a.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.e8b151ad.js → index.7de4e411.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.bf199422.js → index.f9ccf22b.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.44d436b9.js → index.f2f2e903.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.879cf13d.js → index.540a4b19.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.eb6af0ca.js → index.41e7fcb0.js} +1 -1
- package/components/PropertyValue/{index.5e59580c.js → index.9572c347.js} +4 -7
- package/components/Resizeable/{index.5e8e48b1.js → index.1f0c1359.js} +7 -7
- package/components/ResizeableWindow/styles.d.ts +1 -1
- package/components/ScrollBar/{index.4b965665.js → index.adf0eade.js} +2 -4
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.5d1f4a23.js → index.629ba840.js} +24 -26
- package/components/SideBar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +3 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +2 -18
- package/components/SplitLayout/{index.15756f0f.js → index.74091a81.js} +1 -3
- package/components/ToastContainer/{index.dbd78941.js → index.f9b507b9.js} +3 -3
- package/components/animate/LoadingScreen/{index.1a83615a.js → index.779690a7.js} +3 -5
- package/components/animate/PropagateLoader/{index.76d7ea70.js → index.a9da8d00.js} +3 -2
- package/components/animate/PropagateLoader/syles.d.ts +1 -1
- package/components/animate/{index.87296638.js → index.b8497385.js} +3 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +3 -3
- package/components/areas/constants.5387d83e.js +412 -0
- package/components/areas/contexts/AreasContext/{index.19c7b906.js → index.bb316000.js} +5 -6
- package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index.37d1d444.js} +2 -2
- package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index.69d95c15.js} +2 -2
- package/components/areas/dictionary.7e74022a.js +286 -0
- package/components/areas/hooks/useAreas/{index.cedd30ee.js → index.e24bd74d.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index.03ce6078.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index.09801b66.js} +1 -1
- package/components/areas/icons.504ec098.js +83 -0
- package/components/commercial/HamburgerMenu/styles.d.ts +1 -1
- package/components/commercial/SectionCommercial/styles.d.ts +4 -9
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/styles.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +4 -4
- package/components/hook-form/RHFCheckbox/styles.d.ts +2 -10
- package/components/hook-form/RHFPeriod/styles.d.ts +1 -1
- package/components/hook-form/RHFTextField/styles.d.ts +2 -2
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +1 -1
- package/components/maps/components/GpsTools/{index.4ea69dd1.js → index.75880ce0.js} +14 -136
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +4 -9
- package/components/maps/{components/Map/index.62b7d09b.js → index.8ec46ce4.js} +19 -194
- package/components/modal/{WindowBase.2414cd02.js → WindowBase.a3ac7adc.js} +3 -4
- package/components/modal/{WindowConfirm.48140481.js → WindowConfirm.e35da619.js} +6 -10
- package/components/modal/{index.81eb6def.js → index.a0e30c8b.js} +1 -5
- package/components/mui_extended/Accordion/styles.d.ts +3 -3
- package/components/mui_extended/Badge/styles.d.ts +1 -1
- package/components/mui_extended/Button/styles.d.ts +2 -10
- package/components/mui_extended/IconButton/styles.d.ts +1 -1
- package/components/mui_extended/ImageButton/styles.d.ts +1 -1
- package/components/mui_extended/MenuActions/styles.d.ts +2 -27
- package/components/mui_extended/Pager/styles.d.ts +1 -1
- package/components/mui_extended/Stack/styles.d.ts +2 -9
- package/components/mui_extended/Tab/styles.d.ts +2 -2
- package/components/mui_extended/Tabs/styles.d.ts +3 -58
- package/components/mui_extended/Typography/styles.d.ts +1 -1
- package/components/popups/PopupsProvider/{index.8fb6232a.js → index.18669fb4.js} +1 -1
- package/components/popups/PopupsViewer/{index.813854e4.js → index.ba354267.js} +5 -10
- package/contexts/ModalContext/{index.45c275cd.js → index.cf02e6bd.js} +1 -1
- package/contexts/RHFormContext/{index.bf3a2812.js → index.dc955a09.js} +2 -6
- package/hooks/useFormAddEdit/{index.9b27ca02.js → index.f156a2cd.js} +4 -8
- package/hooks/useModal/index.ef54bcf2.js +66 -0
- package/hooks/useTab/{index.f7973779.js → index.bce8b99e.js} +1 -1
- package/index.d.ts +0 -1
- package/index.js +276 -360
- package/package.json +3 -2
- package/{react-draggable.79b4c69a.js → react-draggable.5331add7.js} +1 -1
- package/{react-resizable.af1f31c1.js → react-resizable.37bfb965.js} +3 -5
- package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId.aee44365.js} +2 -2
- package/test/index.6d4b98b9.js +4 -0
- package/utils/{index.0718eeac.js → index.9ee4c99a.js} +113 -3
- package/vendor.a1ce6777.js +6352 -0
- package/assets/Logo/index.109a182d.js +0 -38
- package/assets/Logo.d.ts +0 -6
- package/components/CommonActions/components/ActionCancel/index.46f636e9.js +0 -12
- package/components/CommonActions/components/ActionFormCancel/index.2b0bd50d.js +0 -56
- package/components/CommonActions/components/ActionFormIntro/index.4f212c39.js +0 -33
- package/components/CommonActions/components/ActionIntro/index.7406bd47.js +0 -25
- package/components/CommonActions/components/Actions/index.273645af.js +0 -70
- package/components/DataGrid/constants.e334cd50.js +0 -10
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.cee6b676.js +0 -26
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.708f3fb5.js +0 -22
- package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +0 -19
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +0 -23
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +0 -14
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +0 -10
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +0 -10
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +0 -36
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +0 -10
- package/components/DataGrid/formatters/index.2c2f0ae4.js +0 -1
- package/components/DataGrid/index.304437ee.js +0 -917
- package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +0 -595
- package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +0 -76
- package/components/Icon/index.ee7b85c9.js +0 -192
- package/components/Image/index.8cc036b1.js +0 -168
- package/components/Page/index.c1d4a319.js +0 -114
- package/components/animate/variants/index.7a912140.js +0 -1
- package/components/areas/components/AreasAdmin/index.f239c717.js +0 -733
- package/components/areas/components/AreasViewer/index.61e0538b.js +0 -1071
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/constants.66529246.js +0 -6
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/dictionary.08cfc4c9.js +0 -36
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/icons.8266ccc8.js +0 -26
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/commercial/AppBarCommercial/index.9f654f8e.js +0 -28
- package/components/commercial/SectionCommercial/index.3df4685b.js +0 -57
- package/components/commercial/TopBar/index.7aeb6ec0.js +0 -234
- package/components/formatters/BooleanFormatter/index.0c2d8e35.js +0 -44
- package/components/formatters/DateFormatter/index.2ef6f261.js +0 -43
- package/components/formatters/PointsFormatter/index.d8a4ee54.js +0 -25
- package/components/formatters/PriceFormatter/index.97f75b4b.js +0 -35
- package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +0 -29
- package/components/formatters/index.b816c6b6.js +0 -117
- package/components/hook-form/HelperError/index.c8b046b7.js +0 -19
- package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +0 -408
- package/components/hook-form/RHFAutocompleteAsync/index.98dcf0de.js +0 -158
- package/components/hook-form/RHFCheckbox/index.c32278fa.js +0 -142
- package/components/hook-form/RHFColorPicker/index.8c939bfd.js +0 -191
- package/components/hook-form/RHFDateTime/index.ac27deab.js +0 -190
- package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +0 -34
- package/components/hook-form/RHFPeriod/index.70cfc422.js +0 -104
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/hook-form/RHFSelect/index.c6c60ecc.js +0 -29
- package/components/hook-form/RHFTextField/index.fa97889a.js +0 -325
- package/components/maps/index.13bb982c.js +0 -7
- package/components/mui_extended/Accordion/index.d08a0361.js +0 -142
- package/components/mui_extended/Avatar/index.fb9ad158.js +0 -63
- package/components/mui_extended/Badge/index.2a3aef2c.js +0 -30
- package/components/mui_extended/BoxIcon/index.d61e7ac5.js +0 -22
- package/components/mui_extended/Breadcrumbs/index.4a44883c.js +0 -87
- package/components/mui_extended/Button/index.5395d101.js +0 -213
- package/components/mui_extended/CheckBox.256169f0.js +0 -76
- package/components/mui_extended/CircularProgress/index.967e70b7.js +0 -8
- package/components/mui_extended/IconButton/index.b0ee4965.js +0 -119
- package/components/mui_extended/LinearProgress/index.4092bb69.js +0 -9
- package/components/mui_extended/LinkWithRoute/index.288c51f3.js +0 -15
- package/components/mui_extended/MenuActions/index.d92ed0d6.js +0 -175
- package/components/mui_extended/Popover/index.4e7340b4.js +0 -142
- package/components/mui_extended/Stack/index.fe363ca5.js +0 -31
- package/components/mui_extended/Tab/index.c5ad86e2.js +0 -134
- package/components/mui_extended/ToggleButton/index.7fbc8614.js +0 -18
- package/components/mui_extended/ToggleIconButton/index.0cd347b4.js +0 -24
- package/components/mui_extended/Tooltip/index.49bb5ee1.js +0 -40
- package/components/mui_extended/Typography/index.a1e774a2.js +0 -54
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useModal/index.30674bb7.js +0 -11
- package/style.css +0 -65
- package/test/constants_no_mock.86c553a9.js +0 -4
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { TextField } from "@mui/material";
|
|
4
|
-
function RHFSelect({ name, children, ...other }) {
|
|
5
|
-
const { control } = useFormContext();
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
Controller,
|
|
8
|
-
{
|
|
9
|
-
name,
|
|
10
|
-
control,
|
|
11
|
-
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(
|
|
12
|
-
TextField,
|
|
13
|
-
{
|
|
14
|
-
...field,
|
|
15
|
-
select: true,
|
|
16
|
-
fullWidth: true,
|
|
17
|
-
SelectProps: { native: true },
|
|
18
|
-
error: !!error,
|
|
19
|
-
helperText: error?.message,
|
|
20
|
-
...other,
|
|
21
|
-
children
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
RHFSelect as R
|
|
29
|
-
};
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
4
|
-
import { forwardRef, useState, useEffect } from "react";
|
|
5
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.b0ee4965.js";
|
|
6
|
-
import { useFormContext, Controller } from "react-hook-form";
|
|
7
|
-
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { g as getComponentUtilityClass } from "../../../utils/index.0718eeac.js";
|
|
10
|
-
import { H as HelperText } from "../../HelperText/index.81c5d349.js";
|
|
11
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
12
|
-
import { useFormFocus } from "../../../index.js";
|
|
13
|
-
import { F as FieldLabel } from "../../FieldLabel/index.2622ee40.js";
|
|
14
|
-
const SkeletonTextFieldRoot = styled("div")(() => ({
|
|
15
|
-
display: "flex",
|
|
16
|
-
flexDirection: "column",
|
|
17
|
-
width: "100%",
|
|
18
|
-
gap: "4px"
|
|
19
|
-
}));
|
|
20
|
-
const WrapperSkeletonRHFTextField = styled("div")(({ theme }) => ({
|
|
21
|
-
display: "flex",
|
|
22
|
-
width: "100%",
|
|
23
|
-
alignItems: "center",
|
|
24
|
-
justifyContent: "space-between",
|
|
25
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
26
|
-
padding: "12px 14px",
|
|
27
|
-
borderRadius: theme.spacing(1),
|
|
28
|
-
gap: "4px"
|
|
29
|
-
}));
|
|
30
|
-
const RHFTEXTFIELD_ROOT_TEST_ID = "RHFTextFieldRoot";
|
|
31
|
-
const RHFTEXTFIELD_INPUT_TEST_ID = "RHFTextFieldInput";
|
|
32
|
-
const RHFTEXTFIELD_PREFIX = "RHFTextField";
|
|
33
|
-
const getNameDataTestId$1 = (KEY) => {
|
|
34
|
-
return `${RHFTEXTFIELD_PREFIX}-${KEY}`;
|
|
35
|
-
};
|
|
36
|
-
const SkeletonTextField = (props) => {
|
|
37
|
-
const { skeletonWidth, skeletonHeight, ownerState, classes, hasLabel } = props;
|
|
38
|
-
const { type: variant } = ownerState;
|
|
39
|
-
return /* @__PURE__ */ jsxs(SkeletonTextFieldRoot, { children: [
|
|
40
|
-
(hasLabel || hasLabel?.length === 0) && /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "30%", height: "16px" }),
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
WrapperSkeletonRHFTextField,
|
|
43
|
-
{
|
|
44
|
-
className: classes.skeleton,
|
|
45
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$1("skeleton") } : {},
|
|
46
|
-
children: variant === "text" ? /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletonHeight }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47
|
-
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletonHeight }),
|
|
48
|
-
/* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: "16px", height: "16px" })
|
|
49
|
-
] })
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] });
|
|
53
|
-
};
|
|
54
|
-
const RHFTextFieldRoot = styled("div")(({ theme }) => ({
|
|
55
|
-
...theme.components?.M4LRHFTextField?.styleOverrides
|
|
56
|
-
}));
|
|
57
|
-
styled("div")(({ theme }) => ({
|
|
58
|
-
display: "flex",
|
|
59
|
-
width: "100%",
|
|
60
|
-
alignItems: "center",
|
|
61
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
62
|
-
padding: "12px 14px",
|
|
63
|
-
borderRadius: theme.spacing(1)
|
|
64
|
-
}));
|
|
65
|
-
const componentName = "M4LRHFTextField";
|
|
66
|
-
generateUtilityClasses(
|
|
67
|
-
componentName,
|
|
68
|
-
[
|
|
69
|
-
"root",
|
|
70
|
-
"label",
|
|
71
|
-
"skeleton",
|
|
72
|
-
"variantText",
|
|
73
|
-
"variantPassword",
|
|
74
|
-
"variantInfo",
|
|
75
|
-
"isDisabled",
|
|
76
|
-
"variantSuccess",
|
|
77
|
-
"variantWarning",
|
|
78
|
-
"variantError",
|
|
79
|
-
"sizeSmall",
|
|
80
|
-
"sizeMedium",
|
|
81
|
-
"isFocus",
|
|
82
|
-
"isTabSelected"
|
|
83
|
-
]
|
|
84
|
-
);
|
|
85
|
-
const getRHFTextFieldClassesByState = (ownerState) => {
|
|
86
|
-
const slots = {
|
|
87
|
-
root: [
|
|
88
|
-
"root",
|
|
89
|
-
ownerState.type === "password" ? "variantPassword" : "variantText",
|
|
90
|
-
ownerState.size === "small" && "sizeSmall",
|
|
91
|
-
ownerState.size === "medium" && "sizeMedium",
|
|
92
|
-
ownerState.isFocus && "isFocus",
|
|
93
|
-
ownerState.isTabSelected && "isTabSelected",
|
|
94
|
-
ownerState.disabled && "isDisabled",
|
|
95
|
-
ownerState.variant === "info" && "variantInfo",
|
|
96
|
-
ownerState.variant === "success" && "variantSuccess",
|
|
97
|
-
ownerState.variant === "warning" && "variantWarning",
|
|
98
|
-
ownerState.variant === "error" && "variantError"
|
|
99
|
-
],
|
|
100
|
-
label: ["label"],
|
|
101
|
-
skeleton: ["skeleton"]
|
|
102
|
-
};
|
|
103
|
-
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
104
|
-
return {
|
|
105
|
-
...composedClasses
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
const RHFTextField = forwardRef((props, ref) => {
|
|
109
|
-
const {
|
|
110
|
-
name: nameRHF,
|
|
111
|
-
autoComplete = "off",
|
|
112
|
-
skeletonWidth = "100%",
|
|
113
|
-
skeletonHeight = "18px",
|
|
114
|
-
type,
|
|
115
|
-
label,
|
|
116
|
-
size = "small",
|
|
117
|
-
startIcon,
|
|
118
|
-
endIcon,
|
|
119
|
-
variant,
|
|
120
|
-
helperMessage = "",
|
|
121
|
-
disabled,
|
|
122
|
-
mandatory,
|
|
123
|
-
mandatoryMessage,
|
|
124
|
-
helperText,
|
|
125
|
-
...other
|
|
126
|
-
} = props;
|
|
127
|
-
const {
|
|
128
|
-
control,
|
|
129
|
-
formState: { errors }
|
|
130
|
-
} = useFormContext();
|
|
131
|
-
const [currentVariant, setCurrentVariant] = useState(null);
|
|
132
|
-
const { isFocus, isTabSelected, handlerFocus, handlerOnKeyUp, handlerOnBlur } = useFormFocus();
|
|
133
|
-
const isDesktop = useResponsiveDesktop();
|
|
134
|
-
const isSkeleton = useModuleSkeleton();
|
|
135
|
-
useEffect(() => {
|
|
136
|
-
if (errors[nameRHF]) {
|
|
137
|
-
setCurrentVariant("error");
|
|
138
|
-
} else if (variant) {
|
|
139
|
-
setCurrentVariant(variant);
|
|
140
|
-
} else {
|
|
141
|
-
setCurrentVariant(null);
|
|
142
|
-
}
|
|
143
|
-
}, [errors[nameRHF], variant, control]);
|
|
144
|
-
const ownerState = {
|
|
145
|
-
type: type === "password" ? "password" : "text",
|
|
146
|
-
size: !isDesktop ? "medium" : size,
|
|
147
|
-
isFocus: !isSkeleton ? isFocus : false,
|
|
148
|
-
isTabSelected: !isSkeleton ? isTabSelected : false,
|
|
149
|
-
variant: currentVariant,
|
|
150
|
-
disabled
|
|
151
|
-
};
|
|
152
|
-
const classes = getRHFTextFieldClassesByState(ownerState);
|
|
153
|
-
return /* @__PURE__ */ jsx(
|
|
154
|
-
RHFTextFieldRoot,
|
|
155
|
-
{
|
|
156
|
-
className: classes.root,
|
|
157
|
-
tabIndex: 0,
|
|
158
|
-
onFocus: handlerFocus,
|
|
159
|
-
onBlur: handlerOnBlur,
|
|
160
|
-
onKeyUp: handlerOnKeyUp,
|
|
161
|
-
role: "textbox",
|
|
162
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: `${RHFTEXTFIELD_ROOT_TEST_ID}_${nameRHF}` } : {},
|
|
163
|
-
children: !isSkeleton ? /* @__PURE__ */ jsx(
|
|
164
|
-
Controller,
|
|
165
|
-
{
|
|
166
|
-
name: nameRHF,
|
|
167
|
-
control,
|
|
168
|
-
render: ({ field: { onChange, value, name, ref: inputRef }, fieldState: { error } }) => {
|
|
169
|
-
const onInternalChange = (event) => {
|
|
170
|
-
if (type === "number") {
|
|
171
|
-
if (event.target.value) {
|
|
172
|
-
onChange(Number(event.target.value));
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
onChange(event);
|
|
177
|
-
};
|
|
178
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
179
|
-
label && /* @__PURE__ */ jsx(
|
|
180
|
-
FieldLabel,
|
|
181
|
-
{
|
|
182
|
-
label,
|
|
183
|
-
mandatory,
|
|
184
|
-
mandatoryMessage,
|
|
185
|
-
helperMessage
|
|
186
|
-
}
|
|
187
|
-
),
|
|
188
|
-
/* @__PURE__ */ jsx(
|
|
189
|
-
TextField,
|
|
190
|
-
{
|
|
191
|
-
variant: "outlined",
|
|
192
|
-
disabled,
|
|
193
|
-
ref,
|
|
194
|
-
inputRef,
|
|
195
|
-
InputLabelProps: { shrink: true },
|
|
196
|
-
autoComplete,
|
|
197
|
-
onChange: onInternalChange,
|
|
198
|
-
value: type === "number" ? isNaN(value) ? 0 : value : value || "",
|
|
199
|
-
name,
|
|
200
|
-
inputProps: {
|
|
201
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
202
|
-
[TEST_PROP_ID]: `${RHFTEXTFIELD_INPUT_TEST_ID}_${name}`
|
|
203
|
-
} : {}
|
|
204
|
-
},
|
|
205
|
-
fullWidth: true,
|
|
206
|
-
error: !!error,
|
|
207
|
-
type,
|
|
208
|
-
...startIcon || endIcon ? {
|
|
209
|
-
InputProps: {
|
|
210
|
-
...{
|
|
211
|
-
...startIcon ? {
|
|
212
|
-
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: startIcon })
|
|
213
|
-
} : {},
|
|
214
|
-
...endIcon ? {
|
|
215
|
-
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: endIcon })
|
|
216
|
-
} : {}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
} : {},
|
|
220
|
-
...other
|
|
221
|
-
}
|
|
222
|
-
),
|
|
223
|
-
currentVariant ? /* @__PURE__ */ jsx(
|
|
224
|
-
HelperText,
|
|
225
|
-
{
|
|
226
|
-
variant: currentVariant,
|
|
227
|
-
message: currentVariant !== "error" ? helperMessage : error?.message
|
|
228
|
-
}
|
|
229
|
-
) : null
|
|
230
|
-
] });
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
) : /* @__PURE__ */ jsx(
|
|
234
|
-
SkeletonTextField,
|
|
235
|
-
{
|
|
236
|
-
classes,
|
|
237
|
-
skeletonWidth,
|
|
238
|
-
skeletonHeight,
|
|
239
|
-
ownerState,
|
|
240
|
-
hasLabel: label
|
|
241
|
-
}
|
|
242
|
-
)
|
|
243
|
-
}
|
|
244
|
-
);
|
|
245
|
-
});
|
|
246
|
-
RHFTextField.displayName = "RHFTextField";
|
|
247
|
-
const RHFTextFieldPasswordRoot = styled("div")(({ theme }) => ({
|
|
248
|
-
...theme.components?.M4LRHFTextFieldPassword?.styleOverrides
|
|
249
|
-
}));
|
|
250
|
-
generateUtilityClasses(
|
|
251
|
-
"M4LRHFTextFieldPassword",
|
|
252
|
-
[
|
|
253
|
-
"root"
|
|
254
|
-
]
|
|
255
|
-
);
|
|
256
|
-
function getRHFTextFieldPasswordUtilityClass(slot) {
|
|
257
|
-
return generateUtilityClass("M4LRHFTextFieldPassword", slot);
|
|
258
|
-
}
|
|
259
|
-
const useUtilityClasses = () => {
|
|
260
|
-
const slots = {
|
|
261
|
-
root: ["root"]
|
|
262
|
-
};
|
|
263
|
-
const composedClasses = unstable_composeClasses(slots, getRHFTextFieldPasswordUtilityClass, {});
|
|
264
|
-
return {
|
|
265
|
-
...composedClasses
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
const RHFTEXTFIELDPASSWORD_PREFIX = "RHFTextFieldPassword";
|
|
269
|
-
const getNameDataTestId = (KEY) => {
|
|
270
|
-
return `${RHFTEXTFIELDPASSWORD_PREFIX}-${KEY}`;
|
|
271
|
-
};
|
|
272
|
-
const RHFTextFieldPassword = (props) => {
|
|
273
|
-
const {
|
|
274
|
-
name,
|
|
275
|
-
label,
|
|
276
|
-
skeletonWidth,
|
|
277
|
-
skeletonHeight,
|
|
278
|
-
size,
|
|
279
|
-
mandatory,
|
|
280
|
-
mandatoryMessage,
|
|
281
|
-
helperMessage
|
|
282
|
-
} = props;
|
|
283
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
284
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
285
|
-
const classes = useUtilityClasses();
|
|
286
|
-
return /* @__PURE__ */ jsx(
|
|
287
|
-
RHFTextFieldPasswordRoot,
|
|
288
|
-
{
|
|
289
|
-
className: classes.root,
|
|
290
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
|
|
291
|
-
children: /* @__PURE__ */ jsx(
|
|
292
|
-
RHFTextField,
|
|
293
|
-
{
|
|
294
|
-
name,
|
|
295
|
-
label,
|
|
296
|
-
type: showPassword ? "text" : "password",
|
|
297
|
-
autoComplete: "on",
|
|
298
|
-
skeletonWidth,
|
|
299
|
-
skeletonHeight,
|
|
300
|
-
size,
|
|
301
|
-
mandatory,
|
|
302
|
-
mandatoryMessage,
|
|
303
|
-
helperMessage,
|
|
304
|
-
InputProps: {
|
|
305
|
-
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
306
|
-
IconButton,
|
|
307
|
-
{
|
|
308
|
-
onClick: () => setShowPassword(!showPassword),
|
|
309
|
-
variant: "line",
|
|
310
|
-
src: showPassword ? `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye.svg` : `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye_off.svg`
|
|
311
|
-
}
|
|
312
|
-
) })
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
)
|
|
316
|
-
}
|
|
317
|
-
);
|
|
318
|
-
};
|
|
319
|
-
export {
|
|
320
|
-
RHFTextField as R,
|
|
321
|
-
RHFTEXTFIELD_ROOT_TEST_ID as a,
|
|
322
|
-
RHFTEXTFIELD_INPUT_TEST_ID as b,
|
|
323
|
-
RHFTEXTFIELD_PREFIX as c,
|
|
324
|
-
RHFTextFieldPassword as d
|
|
325
|
-
};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { generateUtilityClasses, generateUtilityClass, styled, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
3
|
-
import { I as IconButton } from "../IconButton/index.b0ee4965.js";
|
|
4
|
-
import { useEnvironment } from "@m4l/core";
|
|
5
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
|
|
9
|
-
import { I as Icon } from "../../Icon/index.ee7b85c9.js";
|
|
10
|
-
import { T as Typography } from "../Typography/index.a1e774a2.js";
|
|
11
|
-
const componentName = "M4LAccordion";
|
|
12
|
-
generateUtilityClasses(componentName, [
|
|
13
|
-
"root",
|
|
14
|
-
"endIcon",
|
|
15
|
-
"labelIcon",
|
|
16
|
-
"label",
|
|
17
|
-
"content"
|
|
18
|
-
]);
|
|
19
|
-
function getAccordionUtilityClass(slot) {
|
|
20
|
-
return generateUtilityClass(componentName, slot);
|
|
21
|
-
}
|
|
22
|
-
const accordionUtilityClasses = () => {
|
|
23
|
-
const slots = {
|
|
24
|
-
root: ["root"],
|
|
25
|
-
endIcon: ["endIcon"],
|
|
26
|
-
labelIcon: ["labelIcon"],
|
|
27
|
-
label: ["label"],
|
|
28
|
-
content: ["content"]
|
|
29
|
-
};
|
|
30
|
-
const composedClasses = unstable_composeClasses(slots, getAccordionUtilityClass, {});
|
|
31
|
-
return {
|
|
32
|
-
...composedClasses
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
styled("div")(({ theme }) => ({
|
|
36
|
-
display: "flex",
|
|
37
|
-
justifyContent: "space-between",
|
|
38
|
-
alignItems: "center",
|
|
39
|
-
borderRadius: theme.spacing(0.5),
|
|
40
|
-
height: theme.spacing(4.5),
|
|
41
|
-
minHeight: theme.spacing(4.5),
|
|
42
|
-
backgroundColor: theme.palette.background.header,
|
|
43
|
-
paddingLeft: theme.spacing(2),
|
|
44
|
-
paddingRight: theme.spacing(2),
|
|
45
|
-
marginBottom: "0px"
|
|
46
|
-
}));
|
|
47
|
-
styled("div")(({ theme }) => ({
|
|
48
|
-
display: "flex",
|
|
49
|
-
justifyContent: "flex-start",
|
|
50
|
-
alignItems: "center",
|
|
51
|
-
gap: theme.spacing(2)
|
|
52
|
-
}));
|
|
53
|
-
const AccordionRoot = styled("div")(({ theme }) => ({
|
|
54
|
-
...theme.components?.M4LAccordion?.styleOverrides
|
|
55
|
-
}));
|
|
56
|
-
const COMPONENT_PREFIX = "m4l-accordion";
|
|
57
|
-
function Accordion(props) {
|
|
58
|
-
const {
|
|
59
|
-
label,
|
|
60
|
-
SKTWidht,
|
|
61
|
-
SKTHeight,
|
|
62
|
-
children,
|
|
63
|
-
accordionProps,
|
|
64
|
-
summaryProps,
|
|
65
|
-
labelIcon,
|
|
66
|
-
className,
|
|
67
|
-
dataTestId = ""
|
|
68
|
-
} = props;
|
|
69
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
70
|
-
const classes = accordionUtilityClasses();
|
|
71
|
-
return /* @__PURE__ */ jsx(
|
|
72
|
-
AccordionRoot,
|
|
73
|
-
{
|
|
74
|
-
className: clsx(classes.root, className),
|
|
75
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
76
|
-
[TEST_PROP_ID]: getNameDataTestId(
|
|
77
|
-
COMPONENT_PREFIX,
|
|
78
|
-
"root",
|
|
79
|
-
dataTestId
|
|
80
|
-
)
|
|
81
|
-
} : {},
|
|
82
|
-
children: /* @__PURE__ */ jsxs(
|
|
83
|
-
Accordion$1,
|
|
84
|
-
{
|
|
85
|
-
variant: "outlined",
|
|
86
|
-
square: true,
|
|
87
|
-
TransitionProps: { unmountOnExit: true },
|
|
88
|
-
defaultExpanded: true,
|
|
89
|
-
...accordionProps,
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
92
|
-
AccordionSummary,
|
|
93
|
-
{
|
|
94
|
-
"aria-controls": "expanded-content",
|
|
95
|
-
disableTouchRipple: false,
|
|
96
|
-
expandIcon: /* @__PURE__ */ jsx(
|
|
97
|
-
IconButton,
|
|
98
|
-
{
|
|
99
|
-
"aria-label": "settings",
|
|
100
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/accordion/assets/icons/expanded.svg`,
|
|
101
|
-
className: classes.endIcon
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
...summaryProps,
|
|
105
|
-
children: /* @__PURE__ */ jsxs(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
className: classes.labelIcon,
|
|
109
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
110
|
-
[TEST_PROP_ID]: getNameDataTestId(
|
|
111
|
-
COMPONENT_PREFIX,
|
|
112
|
-
"labelIcon",
|
|
113
|
-
dataTestId
|
|
114
|
-
)
|
|
115
|
-
} : {},
|
|
116
|
-
children: [
|
|
117
|
-
labelIcon && /* @__PURE__ */ jsx(Icon, { src: labelIcon }),
|
|
118
|
-
/* @__PURE__ */ jsx(
|
|
119
|
-
Typography,
|
|
120
|
-
{
|
|
121
|
-
className: classes.label,
|
|
122
|
-
variant: "subtitle",
|
|
123
|
-
skeletonWidth: SKTWidht,
|
|
124
|
-
skeletongHeight: SKTHeight,
|
|
125
|
-
children: label
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
/* @__PURE__ */ jsx(AccordionDetails, { className: classes.content, children })
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
)
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
export {
|
|
141
|
-
Accordion as A
|
|
142
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled, Avatar as Avatar$1 } from "@mui/material";
|
|
4
|
-
import { useModuleSkeleton } from "@m4l/core";
|
|
5
|
-
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
6
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import clsx from "clsx";
|
|
8
|
-
const AVATAR_PREFIX = "M4LAvatar";
|
|
9
|
-
const getNameAvatarDataTestId = (KEY) => {
|
|
10
|
-
return `${AVATAR_PREFIX}-${KEY}`;
|
|
11
|
-
};
|
|
12
|
-
const SkeletonAvatar = (props) => {
|
|
13
|
-
const { className } = props;
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
15
|
-
Skeleton,
|
|
16
|
-
{
|
|
17
|
-
variant: "circular",
|
|
18
|
-
width: "32px",
|
|
19
|
-
height: "32px",
|
|
20
|
-
className,
|
|
21
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameAvatarDataTestId("skeleton") } : {}
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
const componentName = "M4LAvatar";
|
|
26
|
-
generateUtilityClasses(componentName, [
|
|
27
|
-
"root",
|
|
28
|
-
"skeleton"
|
|
29
|
-
]);
|
|
30
|
-
function getAvatarUtilityClass(slot) {
|
|
31
|
-
return generateUtilityClass(componentName, slot);
|
|
32
|
-
}
|
|
33
|
-
const useAvatarUtilityClasses = () => {
|
|
34
|
-
const slots = {
|
|
35
|
-
root: ["root"],
|
|
36
|
-
skeleton: ["skeleton"]
|
|
37
|
-
};
|
|
38
|
-
const composedClasses = unstable_composeClasses(slots, getAvatarUtilityClass, {});
|
|
39
|
-
return {
|
|
40
|
-
...composedClasses
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
const AvatarRoot = styled("div")(({ theme }) => ({
|
|
44
|
-
...theme.components?.M4LAvatar?.styleOverrides
|
|
45
|
-
}));
|
|
46
|
-
const Avatar = forwardRef(
|
|
47
|
-
({ color = "default", sx, className, ...other }, ref) => {
|
|
48
|
-
const isSkeleton = useModuleSkeleton();
|
|
49
|
-
const classes = useAvatarUtilityClasses();
|
|
50
|
-
return /* @__PURE__ */ jsx(
|
|
51
|
-
AvatarRoot,
|
|
52
|
-
{
|
|
53
|
-
className: clsx(classes.root, className),
|
|
54
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameAvatarDataTestId("root") } : {},
|
|
55
|
-
children: !isSkeleton ? /* @__PURE__ */ jsx(Avatar$1, { ref, ...other }) : /* @__PURE__ */ jsx(SkeletonAvatar, { className: classes.skeleton })
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
Avatar.displayName = "Avatar";
|
|
61
|
-
export {
|
|
62
|
-
Avatar as A
|
|
63
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { generateUtilityClasses, styled, Badge as Badge$1 } from "@mui/material";
|
|
3
|
-
import "@mui/base";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
const componentName = "M4LBadge";
|
|
6
|
-
const badgeClasses = generateUtilityClasses(componentName, [
|
|
7
|
-
"root"
|
|
8
|
-
]);
|
|
9
|
-
const BadgeRoot = styled("div")(({ theme }) => ({
|
|
10
|
-
display: "flex",
|
|
11
|
-
...theme.components?.M4LBadge?.styleOverrides
|
|
12
|
-
}));
|
|
13
|
-
const BADGE_PREFIX = "M4LBadge";
|
|
14
|
-
const getNameBadgeDataTestId = (ELEMENTKEY, ID) => {
|
|
15
|
-
return `${BADGE_PREFIX}-${ELEMENTKEY}-${ID}`;
|
|
16
|
-
};
|
|
17
|
-
const Badge = (props) => {
|
|
18
|
-
const { children, dataTestId = "", ...others } = props;
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
BadgeRoot,
|
|
21
|
-
{
|
|
22
|
-
className: badgeClasses.root,
|
|
23
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameBadgeDataTestId("root", dataTestId) } : {},
|
|
24
|
-
children: /* @__PURE__ */ jsx(Badge$1, { ...others, children })
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
Badge as B
|
|
30
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box } from "@mui/material";
|
|
3
|
-
function BoxIcon({ src, sx }) {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
5
|
-
Box,
|
|
6
|
-
{
|
|
7
|
-
component: "span",
|
|
8
|
-
sx: {
|
|
9
|
-
width: 20,
|
|
10
|
-
height: 20,
|
|
11
|
-
display: "inline-block",
|
|
12
|
-
bgcolor: "currentColor",
|
|
13
|
-
mask: `url(${src}) no-repeat center / contain`,
|
|
14
|
-
WebkitMask: `url(${src}) no-repeat center / contain`,
|
|
15
|
-
...sx
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
BoxIcon as B
|
|
22
|
-
};
|