@m4l/components 9.2.51-beta.1 → 9.2.52
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/.storybook/test-utils/index.d.ts +1 -0
- package/.storybook/test-utils/waitForHelpers.d.ts +4 -0
- package/.storybook/utils/getStylesColorsByMode.d.ts +98 -70
- package/components/Chip/ChipStyles.js +1 -1
- package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
- package/components/DataGrid/contexts/FilterContext/index.js +1 -1
- package/components/DataGrid/dictionary.js +3 -0
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +0 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +1 -0
- package/components/DynamicFilter/dictionary.js +12 -0
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/dictionary.js +5 -0
- package/components/DynamicSort/slots/DynamicSortSlots.js +1 -1
- package/components/DynamicSort/store/DynamicSortContext.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.js +1 -1
- package/components/GridLayout/styles.js +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/constant.js +2 -2
- package/components/Image/slots/ImageSlots.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/ObjectLogs/dictionary.js +3 -0
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -1
- package/components/Pager/Pager.styles.js +8 -0
- package/components/Pager/dicctionary.js +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +2 -2
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/SideBar/slots/SideBarEnum.js +4 -4
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
- package/components/animate/variants/bounce.js +1 -1
- package/components/animate/variants/fade.js +1 -1
- package/components/animate/variants/transition.js +2 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -14
- package/components/areas/contexts/AreasContext/store.js +5 -5
- package/components/areas/icons.js +8 -0
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +3 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/hook-form/RHFormContext/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/index.js +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Autocomplete/Autocomplete.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +3 -3
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
- package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/NavLink/constants.js +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Popover/Popover.styles.js +5 -1
- package/components/mui_extended/Popover/constants.js +2 -2
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +1 -1
- package/components/mui_extended/Select/constants.js +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/Tooltip/Tooltip.js +2 -2
- package/components/mui_extended/Tooltip/slots/TooltipSlots.js +2 -2
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsViewer/icons.js +1 -0
- package/hooks/useDataGridPersistence/constants.js +2 -2
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +12 -12
- package/package.json +1 -1
- package/storybook/components/SideBar/SideBar.stories.d.ts +17 -5
|
@@ -3,7 +3,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
|
|
|
3
3
|
import { a as getNameDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
4
|
import { P as PATH_EXPANDED_ICON, A as ACCORDION_KEY } from "./constants.js";
|
|
5
5
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
|
-
import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as
|
|
6
|
+
import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as IconExpandedStyled, b as IconLabelStyled, L as LabelStyled, c as AccordionDetailsStyled } from "./slots/AccordionSlots.js";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
8
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
9
|
const Accordion = forwardRef((props, ref) => {
|
|
@@ -31,9 +31,9 @@ const AccordionDetailsStyled = styled(AccordionDetails, {
|
|
|
31
31
|
})(accordionStyles?.accordionDetails);
|
|
32
32
|
export {
|
|
33
33
|
AccordionRootStyled as A,
|
|
34
|
-
|
|
34
|
+
IconExpandedStyled as I,
|
|
35
35
|
LabelStyled as L,
|
|
36
36
|
AccordionSummaryStyled as a,
|
|
37
|
-
|
|
37
|
+
IconLabelStyled as b,
|
|
38
38
|
AccordionDetailsStyled as c
|
|
39
39
|
};
|
|
@@ -3,7 +3,7 @@ import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/cor
|
|
|
3
3
|
import { forwardRef, useState, useCallback, useEffect, useMemo } from "react";
|
|
4
4
|
import { r as renderOption } from "./renderOptions/index.js";
|
|
5
5
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
|
-
import { C as ChipStyled, I as ImageStyled, A as AdormentsStyled, a as CircularProgressStyled, b as IconButtonStyled, S as SkeletonAutocompleteStyled, c as AutocompleteRootStyled,
|
|
6
|
+
import { C as ChipStyled, I as ImageStyled, A as AdormentsStyled, a as CircularProgressStyled, b as IconButtonStyled, S as SkeletonAutocompleteStyled, c as AutocompleteRootStyled, P as PopperComponentStyled, R as RenderInputStyled } from "./slots/AutocompleteSlots.js";
|
|
7
7
|
import { T as Typography } from "../Typography/Typography.js";
|
|
8
8
|
const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
9
9
|
const {
|
|
@@ -6,12 +6,12 @@ import { a as autocompleteSyles } from "../Autocomplete.styles.js";
|
|
|
6
6
|
import { A as AUTOCOMPLETE_KEY_COMPONENT } from "../constants.js";
|
|
7
7
|
import { A as AutocompleteSlots } from "./AutocompleteEnum.js";
|
|
8
8
|
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
9
|
-
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
10
9
|
import { T as TextField } from "../../TextField/TextField.js";
|
|
11
|
-
import { P as Popper } from "../../Popper/Popper.js";
|
|
12
10
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
13
|
-
import {
|
|
11
|
+
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
12
|
+
import { P as Popper } from "../../Popper/Popper.js";
|
|
14
13
|
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
14
|
+
import { C as CircularProgress } from "../../CircularProgress/CircularProgress.js";
|
|
15
15
|
const AutocompleteRootStyled = styled(Autocomplete, {
|
|
16
16
|
name: AUTOCOMPLETE_KEY_COMPONENT,
|
|
17
17
|
slot: AutocompleteSlots.root
|
|
@@ -5,7 +5,7 @@ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js
|
|
|
5
5
|
import { C as CHECK_BOX_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
-
import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as
|
|
8
|
+
import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as IconCheckedStyled, a as IconStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/CheckBoxSlots.js";
|
|
9
9
|
import { C as CheckBoxSlots } from "./slots/CheckBoxEnum.js";
|
|
10
10
|
const CheckBox = forwardRef((props, ref) => {
|
|
11
11
|
const {
|
|
@@ -31,9 +31,9 @@ const IconStyled = styled(Icon, {
|
|
|
31
31
|
})(checkBoxStyles.icon);
|
|
32
32
|
export {
|
|
33
33
|
CheckBoxRootStyled as C,
|
|
34
|
-
|
|
34
|
+
IconCheckedStyled as I,
|
|
35
35
|
MUICheckboxStyled as M,
|
|
36
36
|
SkeletonStyled as S,
|
|
37
37
|
TypographyStyled as T,
|
|
38
|
-
|
|
38
|
+
IconStyled as a
|
|
39
39
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled, Popper, Paper } from "@mui/material";
|
|
2
|
-
import {
|
|
2
|
+
import { DesktopDateTimePicker, MobileDateTimePicker, PickersCalendarHeader, PickersDay } from "@mui/x-date-pickers";
|
|
3
3
|
import { d as dateTimePickerStyles } from "../DateTimePicker.styles.js";
|
|
4
4
|
import { D as DATE_TIME_PICKER_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { D as DateTimePickerEnum } from "./DateTimePickerEnum.js";
|
|
@@ -3,8 +3,8 @@ import { styled } from "@mui/material/styles";
|
|
|
3
3
|
import { i as iconButtonStyles } from "../IconButton.styles.js";
|
|
4
4
|
import { a as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { I as IconButtonSlots } from "./IconButtonEnum.js";
|
|
6
|
-
import { I as Icon } from "../../../Icon/Icon.js";
|
|
7
6
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
8
8
|
const StyledMUIIconButton = styled(IconButton, {
|
|
9
9
|
name: ICON_BUTTON_KEY_COMPONENT,
|
|
10
10
|
slot: IconButtonSlots.styledMUIIconButton
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { c as componentName } from "./constants.js";
|
|
4
4
|
generateUtilityClasses(componentName, [
|
|
@@ -3,8 +3,8 @@ import { MenuItem } from "@mui/material";
|
|
|
3
3
|
import { a as MENUITEM_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { m as menuItemStyles } from "../MenuItem.styles.js";
|
|
5
5
|
import { M as MenuItemSlots } from "./MenuItemEnum.js";
|
|
6
|
-
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
6
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
7
|
+
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
8
8
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
9
9
|
const MenuItemRootStyled = styled(MenuItem, {
|
|
10
10
|
name: MENUITEM_KEY_COMPONENT,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { R as RouterNavLinkRootStyled, a as RouterNavLinkStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/NavLinkSlots.js";
|
|
3
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import {
|
|
4
|
+
import { N as NAV_LINK_KEY_COMPONENT, c as classNavLinkRoot, a as NAV_LINK_SPECIFY } from "./constants.js";
|
|
5
5
|
import { N as NavLinkSlots } from "./slots/NavLinkEnum.js";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
@@ -4,7 +4,7 @@ const NAV_LINK_KEY_COMPONENT = "M4LNavLink";
|
|
|
4
4
|
const NAV_LINK_SPECIFY = "M4lclassCssSpecificity";
|
|
5
5
|
const classNavLinkRoot = getComponentClasses(NAV_LINK_KEY_COMPONENT, NavLinkSlots);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
NAV_LINK_KEY_COMPONENT as N,
|
|
8
|
+
NAV_LINK_SPECIFY as a,
|
|
9
9
|
classNavLinkRoot as c
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavLink } from "react-router-dom";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { N as NavLinkSlots } from "./NavLinkEnum.js";
|
|
4
|
-
import {
|
|
4
|
+
import { N as NAV_LINK_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
6
6
|
import { n as navLinkStyles } from "../NavLink.styles.js";
|
|
7
7
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
3
|
-
import { P as
|
|
3
|
+
import { P as POPOVER_CLASS_NAME_SPECIFY, a as POPOVER_PREFIX } from "./constants.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { P as PopoverRootStyled } from "./slots/PopoverSlots.js";
|
|
6
6
|
import { P as PopoverSlots } from "./slots/PopoverEnum.js";
|
|
@@ -2,7 +2,7 @@ const POPOVER_KEY_COMPONENT = "M4LPopover";
|
|
|
2
2
|
const POPOVER_PREFIX = "Popover";
|
|
3
3
|
const POPOVER_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
POPOVER_CLASS_NAME_SPECIFY as P,
|
|
6
|
+
POPOVER_PREFIX as a,
|
|
7
7
|
POPOVER_KEY_COMPONENT as b
|
|
8
8
|
};
|
|
@@ -4,7 +4,7 @@ import { useTheme } from "@mui/material";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { forwardRef, useMemo, useState, useCallback } from "react";
|
|
6
6
|
import { A as ArrowDownStyled, a as AdormentStyled, S as SelectRootStyled, b as SkeletonSelectStyled, M as MenuItemListStyled, c as MenuItemNoOptionStyled, L as LabelPlaceholerStyled, R as RenderValueContainerStyled, d as RenderValueTypography } from "./slots/SelectSlots.js";
|
|
7
|
-
import {
|
|
7
|
+
import { S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT, I as ICON_ARROW_DOWN } from "./constants.js";
|
|
8
8
|
import { S as SELECT_DICTIONARY } from "./dictionary.js";
|
|
9
9
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
10
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SELECT_CLASSES } from "./constants.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as getHeightSizeStyles, g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
3
|
const selectStyles = {
|
|
4
4
|
/**
|
|
5
5
|
* Estilos para el componente Select
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import {
|
|
2
|
+
import { S as SelectSlots, a as SelectComplementaryClasses } from "./slots/SelectEnum.js";
|
|
3
3
|
const SELECT_KEY_COMPONENT = "M4LSelect";
|
|
4
4
|
const ICON_ARROW_DOWN = "frontend/components/select/arrow_down.svg";
|
|
5
5
|
const COMBINATED_TEXTFIELD_ENUMS = {
|
|
@@ -4,8 +4,8 @@ import { a as SELECT_KEY_COMPONENT } from "../constants.js";
|
|
|
4
4
|
import { s as selectStyles } from "../Select.styles.js";
|
|
5
5
|
import { S as SelectSlots } from "./SelectEnum.js";
|
|
6
6
|
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
7
|
-
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
8
7
|
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
8
|
+
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
9
9
|
import { T as Typography } from "../../Typography/Typography.js";
|
|
10
10
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
11
11
|
const SelectRootStyled = () => styled(Select, {
|
|
@@ -5,7 +5,7 @@ import { T as TabSlots } from "./Slots/TabEnum.js";
|
|
|
5
5
|
import { T as TAB_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
-
import { R as RootStyled,
|
|
8
|
+
import { R as RootStyled, T as TypographyStyled, I as IconStyled } from "./Slots/TabSlots.js";
|
|
9
9
|
function Tab(props) {
|
|
10
10
|
const {
|
|
11
11
|
size = "medium",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import {
|
|
2
|
+
import { T as TextFieldSlots, a as TexFieldComplementaryClasses } from "./slots/TextFieldEnum.js";
|
|
3
3
|
const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
|
|
4
4
|
const COMBINATED_TEXTFIELD_ENUMS = {
|
|
5
5
|
...TextFieldSlots,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { R as RootStyled, T as
|
|
3
|
-
import {
|
|
2
|
+
import { R as RootStyled, T as TextStyled, a as TooltipStyled } from "./slots/TooltipSlots.js";
|
|
3
|
+
import { T as TOOLTIP_CLASSES, D as DEFAULT_TOOLTIP_OFFSET } from "./constants.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
6
|
const Tooltip = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { T as
|
|
4
|
+
import { T as TYPOGRAPHY_CLASS_NAME_SPECIFY, a as TYPOGRAPHY_CLASSES, b as TYPOGRAPHY_KEY_COMPONENT } from "./constants.js";
|
|
5
5
|
import { T as TypographySlots } from "./slots/typographyEnum.js";
|
|
6
6
|
import { S as StyledMUITypography, a as StyledSkeleton } from "./slots/typographySlots.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
@@ -4,7 +4,7 @@ const TYPOGRAPHY_KEY_COMPONENT = "M4LTypography";
|
|
|
4
4
|
const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
|
|
5
5
|
const TYPOGRAPHY_CLASSES = getComponentClasses(TYPOGRAPHY_KEY_COMPONENT, TypographySlots);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
TYPOGRAPHY_CLASS_NAME_SPECIFY as T,
|
|
8
|
+
TYPOGRAPHY_CLASSES as a,
|
|
9
|
+
TYPOGRAPHY_KEY_COMPONENT as b
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Typography } from "@mui/material";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import {
|
|
3
|
+
import { b as TYPOGRAPHY_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { T as TypographySlots } from "./typographyEnum.js";
|
|
5
5
|
import { t as typographyStyles } from "../typography.styles.js";
|
|
6
6
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useCallback } from "react";
|
|
2
2
|
import { g as getColumnsConfigCookie } from "./helpers.js";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as COOKIE_COLUMNS_WIDTHS, a as COOKIE_COLUMNS_CONFIG } from "./constants.js";
|
|
4
4
|
import { u as useWindowToolsMF } from "../../components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
5
5
|
const useDataGridPersistence = (props) => {
|
|
6
6
|
const { prefixCookie } = props;
|
|
@@ -31,8 +31,8 @@ const SVG_ICON_ERROR = "data:image/svg+xml;base64," + btoa(`<svg viewBox="0 0 64
|
|
|
31
31
|
</svg>`);
|
|
32
32
|
export {
|
|
33
33
|
REPLACEMENT_PRYMARY_COLOR as R,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
SVG_CACHE_PREFIX as S,
|
|
35
|
+
SKELETON_SVG_ICON as a,
|
|
36
36
|
SVG_ICON_ERROR as b,
|
|
37
37
|
REPLACEMENT_SECONDARY_COLOR as c
|
|
38
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
import { b as SVG_ICON_ERROR,
|
|
2
|
+
import { b as SVG_ICON_ERROR, S as SVG_CACHE_PREFIX, R as REPLACEMENT_PRYMARY_COLOR, c as REPLACEMENT_SECONDARY_COLOR } from "./constants.js";
|
|
3
3
|
import { g as getSVG, p as purgedColor } from "./helpers.js";
|
|
4
4
|
function useSvgColor(props) {
|
|
5
5
|
const { src, cacheKey, primaryColor, secondaryColor = "#FFFFFF", skeletonIcon, fallBackIcon = SVG_ICON_ERROR } = props;
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { A as A2 } from "./components/animate/AnimatedScroll/animatedScroll.js";
|
|
|
9
9
|
import { v } from "./components/animate/variants/fade.js";
|
|
10
10
|
import { v as v2 } from "./components/animate/variants/bounce.js";
|
|
11
11
|
import { v as v3 } from "./components/animate/variants/container.js";
|
|
12
|
-
import {
|
|
12
|
+
import { v as v4, a, b } from "./components/animate/variants/transition.js";
|
|
13
13
|
import { A as A3 } from "./components/AppBar/AppBar.js";
|
|
14
14
|
import { g as g2 } from "./components/AppBar/dictionary.js";
|
|
15
15
|
import { A as A4 } from "./components/areas/components/AreasAdmin/AreasAdmin.js";
|
|
@@ -120,7 +120,7 @@ import { D as D8 } from "./components/formatters/DistanceToNowFormatter/Distance
|
|
|
120
120
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
121
121
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
122
122
|
import { R as R3 } from "./components/GridLayout/subcomponents/Responsive/index.js";
|
|
123
|
-
import { c as c2,
|
|
123
|
+
import { c as c2, d as d3, e } from "./components/GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
124
124
|
import { i, k } from "./components/GridLayout/utils.js";
|
|
125
125
|
import { w } from "./components/GridLayout/subcomponents/withSizeProvider/index.js";
|
|
126
126
|
import { H as H2 } from "./components/HelmetPage/index.js";
|
|
@@ -198,7 +198,7 @@ import { u as u23 } from "./hooks/useInterval/index.js";
|
|
|
198
198
|
import { u as u24 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
199
199
|
import { u as u25 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
200
200
|
import { u as u26 } from "./hooks/useStateRef/index.js";
|
|
201
|
-
import {
|
|
201
|
+
import { a as a14 } from "./hooks/useSvgColor/constants.js";
|
|
202
202
|
import { u as u27 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
203
203
|
import { u as u28 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
204
204
|
import { u as u29 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
@@ -209,9 +209,9 @@ import { g as g30 } from "./utils/getComponentUtilityClass.js";
|
|
|
209
209
|
import { g as g31 } from "./utils/getPaletteColor.js";
|
|
210
210
|
import { g as g32 } from "./utils/getTypographyStyles.js";
|
|
211
211
|
import { g as g33 } from "./utils/getIconColor.js";
|
|
212
|
-
import { a as
|
|
212
|
+
import { a as a15 } from "./utils/getSizeStyles/getSizeStyles.js";
|
|
213
213
|
import { O as O2 } from "./utils/ObjectQueue.js";
|
|
214
|
-
import { g as g34, a as
|
|
214
|
+
import { g as g34, a as a16 } from "./utils/getComponentSlotRoot.js";
|
|
215
215
|
import { f } from "./utils/formatDistanceToNow/formatDistanteToNow.js";
|
|
216
216
|
import { g as g35 } from "./utils/getValidDate.js";
|
|
217
217
|
import { g as g36 } from "./utils/getNullGuard.js";
|
|
@@ -339,7 +339,7 @@ export {
|
|
|
339
339
|
R as Resizable,
|
|
340
340
|
R2 as ResizableBox,
|
|
341
341
|
R3 as Responsive,
|
|
342
|
-
|
|
342
|
+
a14 as SKELETON_SVG_ICON,
|
|
343
343
|
S7 as ScrollBar,
|
|
344
344
|
S as SectionCommercial,
|
|
345
345
|
S6 as SelectStyled,
|
|
@@ -375,9 +375,9 @@ export {
|
|
|
375
375
|
W2 as WindowToolsMFContext,
|
|
376
376
|
a10 as WindowToolsMFProvider,
|
|
377
377
|
c2 as addLayoutItemToBreakPointIfNoExists,
|
|
378
|
-
|
|
378
|
+
d3 as addLayoutItemToBreakPoints,
|
|
379
379
|
c4 as capitalizeFirstLetter,
|
|
380
|
-
|
|
380
|
+
e as cloneLayouts,
|
|
381
381
|
c3 as createDynamicMFStore,
|
|
382
382
|
c as createToaster,
|
|
383
383
|
d as defaultCommonActionsDictionary,
|
|
@@ -389,7 +389,7 @@ export {
|
|
|
389
389
|
g3 as getAreasDictionary,
|
|
390
390
|
g4 as getCommonActionsDictionary,
|
|
391
391
|
g34 as getComponentClasses,
|
|
392
|
-
|
|
392
|
+
a16 as getComponentSlotRoot,
|
|
393
393
|
g30 as getComponentUtilityClass,
|
|
394
394
|
g5 as getDataGridComponentsDictionary,
|
|
395
395
|
g6 as getDataGridRowsFromSet,
|
|
@@ -403,7 +403,7 @@ export {
|
|
|
403
403
|
g14 as getFormatPoints,
|
|
404
404
|
g16 as getFormatPrice,
|
|
405
405
|
g18 as getFormattersComponentsDictionary,
|
|
406
|
-
|
|
406
|
+
a15 as getHeightSizeStyles,
|
|
407
407
|
g33 as getIconColor,
|
|
408
408
|
g8 as getIsIfInDynamicFilter,
|
|
409
409
|
g22 as getLoadingErrorComponentsDictionary,
|
|
@@ -465,8 +465,8 @@ export {
|
|
|
465
465
|
v2 as varBounce,
|
|
466
466
|
v3 as varContainer,
|
|
467
467
|
v as varFade,
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
v4 as varTranEnter,
|
|
469
|
+
a as varTranExit,
|
|
470
470
|
b as varTranHover,
|
|
471
471
|
w as withSizeProvider
|
|
472
472
|
};
|
package/package.json
CHANGED
|
@@ -3,16 +3,28 @@ import { SideBar } from '../../../src/components/SideBar';
|
|
|
3
3
|
declare const meta: Meta<typeof SideBar>;
|
|
4
4
|
type Story = StoryObj<typeof SideBar>;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* SideBar por defecto sin ningún item seleccionado
|
|
7
7
|
*/
|
|
8
8
|
export declare const Default: Story;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* SideBar colapsado por medio del botón de anclaje
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
12
|
+
export declare const CollapsedWithAnchorButton: Story;
|
|
13
|
+
/**
|
|
14
|
+
* SideBar colapsado con hover sobre el menú
|
|
15
|
+
*/
|
|
16
|
+
export declare const CollapsedWithHoverOnMenu: Story;
|
|
17
|
+
/**
|
|
18
|
+
* SideBar colapsado retirando hover sobre el menú
|
|
19
|
+
*/
|
|
20
|
+
export declare const CollapsedWithHoverRemoved: Story;
|
|
21
|
+
/**
|
|
22
|
+
* SideBar con items en el menu, con un item seleccionado y 5 anidaciones incluyendo la sección padre de los menu items
|
|
23
|
+
*/
|
|
24
|
+
export declare const WithItemSelected: Story;
|
|
25
|
+
export declare const WithoutData: Story;
|
|
14
26
|
/**
|
|
15
27
|
* SideBar con componentes en skeleton
|
|
16
28
|
*/
|
|
17
|
-
export declare const
|
|
29
|
+
export declare const WithSkeleton: Story;
|
|
18
30
|
export default meta;
|