@m4l/components 9.2.60 → 9.2.62
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/@types/types.d.ts +8 -0
- package/components/Chip/Chip.js +9 -10
- package/components/Chip/ChipStyles.js +13 -2
- package/components/Chip/constants.d.ts +9 -0
- package/components/Chip/constants.js +6 -2
- package/components/Chip/slots/ChipEnum.d.ts +3 -0
- package/components/Chip/slots/ChipEnum.js +6 -1
- package/components/Chip/slots/ChipSlots.js +1 -1
- package/components/DataGrid/DataGrid.js +17 -3
- package/components/DataGrid/Datagrid.styles.js +80 -33
- package/components/DataGrid/constants.d.ts +2 -0
- package/components/DataGrid/constants.js +7 -3
- package/components/DataGrid/contexts/DataGridContext/index.js +77 -30
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +5 -2
- package/components/DataGrid/dictionary.d.ts +8 -0
- package/components/DataGrid/dictionary.js +26 -17
- package/components/DataGrid/icons.d.ts +7 -0
- package/components/DataGrid/icons.js +8 -1
- package/components/DataGrid/slots/DataGridEnum.d.ts +7 -1
- package/components/DataGrid/slots/DataGridEnum.js +6 -0
- package/components/DataGrid/slots/DataGridSlot.d.ts +6 -0
- package/components/DataGrid/slots/DataGridSlot.js +35 -5
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/index.js +9 -1
- package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.d.ts +3 -1
- package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.js +9 -2
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +6 -0
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +262 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.d.ts +6 -4
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +35 -18
- package/components/DataGrid/subcomponents/Table/index.js +97 -34
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +1 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +79 -4
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.d.ts +5 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +146 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/index.d.ts +1 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/index.js +1 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/types.d.ts +131 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +1 -1
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
- package/components/DataGrid/tests/HeaderRenderClick.test.d.ts +1 -0
- package/components/DataGrid/tests/useHeaderMenuActions.test.d.ts +1 -0
- package/components/DataGrid/types.d.ts +53 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +99 -90
- package/components/DynamicFilter/slots/SlotsEnum.d.ts +0 -3
- package/components/DynamicFilter/slots/SlotsEnum.js +0 -3
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +0 -9
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +3 -19
- package/components/DynamicFilter/store/DynamicFilterContext.js +67 -28
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -1
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +2 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +24 -18
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +4 -1
- package/components/DynamicFilter/types.d.ts +3 -0
- package/components/DynamicSort/DynamicSort.js +10 -6
- package/components/DynamicSort/DynamicSort.styles.js +92 -90
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +0 -9
- package/components/DynamicSort/slots/DynamicSortSlots.js +7 -23
- package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -4
- package/components/DynamicSort/slots/SlotsEnum.js +1 -4
- package/components/DynamicSort/store/DynamicSortContext.js +96 -67
- package/components/DynamicSort/store/DynamicSortStore.js +53 -4
- package/components/DynamicSort/store/types.d.ts +11 -0
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +2 -2
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +2 -0
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +22 -17
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -2
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +2 -0
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -1
- package/components/DynamicSort/types.d.ts +4 -0
- package/components/LanguagePopover/LanguagePopover.js +7 -5
- package/components/LanguagePopover/LanguagePopover.styles.js +32 -4
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +9 -3
- package/components/LanguagePopover/slots/LanguagePopoverSlots.js +1 -3
- package/components/LanguagePopover/types.d.ts +6 -1
- package/components/PaperForm/styles.js +2 -1
- package/components/PropertyValue/PropertyValue.js +2 -1
- package/components/PropertyValue/PropertyValue.styles.js +7 -4
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/SideBar/SideBar.js +4 -2
- package/components/SideBar/constants.d.ts +26 -2
- package/components/SideBar/constants.js +19 -7
- package/components/SideBar/context/sideBarContext/index.js +19 -5
- package/components/SideBar/context/sideBarContext/types.d.ts +22 -1
- package/components/SideBar/helpers/getMenuDataWithState/index.js +25 -8
- package/components/SideBar/hooks/useCollapse/index.d.ts +1 -0
- package/components/SideBar/hooks/useCollapse/index.js +1 -0
- package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +11 -0
- package/components/SideBar/hooks/useCollapse/useCollapse.js +23 -0
- package/components/SideBar/slots/SideBarEnum.d.ts +5 -5
- package/components/SideBar/slots/SideBarEnum.js +9 -11
- package/components/SideBar/slots/SideBarSlots.d.ts +9 -3
- package/components/SideBar/slots/SideBarSlots.js +36 -28
- package/components/SideBar/styles.js +2 -4
- package/components/SideBar/subcomponents/ContentComponent/index.js +39 -19
- package/components/SideBar/subcomponents/ContentComponent/style.js +171 -22
- package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/index.d.ts +2 -2
- package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/index.js +8 -15
- package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/styles.js +2 -2
- package/components/SideBar/subcomponents/Promotion/types.d.ts +5 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +10 -14
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.d.ts +5 -0
- package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/index.js +16 -18
- package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/styles.js +5 -7
- package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/index.js +10 -7
- package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems/subcomponents/NodeMenuItem}/index.d.ts +3 -3
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +69 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +9 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.d.ts +5 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +56 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/index.d.ts +1 -0
- package/components/SideBar/subcomponents/TreeGroupItems/types.d.ts +4 -0
- package/components/SideBar/types.d.ts +7 -3
- package/components/WindowBase/WindowBase.js +7 -1
- package/components/WindowBase/WindowBase.styles.js +50 -15
- package/components/WindowBase/constants.d.ts +1 -0
- package/components/WindowBase/constants.js +5 -1
- package/components/WindowBase/slots/WindowBaseEnum.d.ts +2 -1
- package/components/WindowBase/slots/WindowBaseEnum.js +1 -0
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +3 -0
- package/components/WindowBase/slots/WindowBaseSlots.js +6 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +11 -5
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +4 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +5 -0
- package/components/WindowBase/types.d.ts +16 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +13 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +26 -20
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/extended/React-Resizable/helpers.js +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +6 -3
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +78 -36
- package/components/extended/React-resizable-panels/constants.d.ts +6 -0
- package/components/extended/React-resizable-panels/constants.js +5 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.d.ts +2 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.js +1 -0
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +3 -0
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.js +7 -1
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +1 -0
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +3 -38
- package/components/hook-form/RHFormContext/index.d.ts +1 -1
- package/components/mui_extended/Accordion/styles.js +10 -2
- package/components/mui_extended/Button/Button.js +3 -1
- package/components/mui_extended/Button/ButtonStyles.js +6 -1
- package/components/mui_extended/Button/types.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.styles.js +2 -1
- package/components/mui_extended/Divider/index.d.ts +1 -0
- package/components/mui_extended/Divider/index.js +1 -0
- package/components/mui_extended/NavLink/NavLink.js +3 -1
- package/components/mui_extended/NavLink/NavLink.styles.js +2 -1
- package/components/mui_extended/NavLink/types.d.ts +3 -1
- package/components/mui_extended/Tab/Tab.styles.js +2 -1
- package/components/mui_extended/TabContent/TabContent.styles.js +2 -8
- package/components/mui_extended/TextField/TextField.js +1 -1
- package/components/mui_extended/TextField/TextField.styles.js +20 -18
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/index.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/styles.js +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.d.ts +3 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +334 -88
- package/index.d.ts +1 -0
- package/index.js +23 -20
- package/package.json +4 -3
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +22 -0
- package/storybook/components/DataGrid/MswHandles.d.ts +1 -0
- package/storybook/components/DataGrid/helpers/filterFieldsSeedData.d.ts +5 -0
- package/storybook/components/DataGrid/helpers/getRows.d.ts +4 -0
- package/storybook/components/DataGrid/helpers/getRowsWithBackendSimulation.d.ts +9 -0
- package/storybook/components/DataGrid/helpers/sortsSeedData.d.ts +5 -0
- package/storybook/components/DataGrid/helpers/types.d.ts +1 -0
- package/storybook/components/DataGrid/helpers/useSeed.d.ts +3 -0
- package/storybook/components/DataGrid/subcomponents/DataGridRender.d.ts +2 -0
- package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +27 -11
- package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +26 -10
- package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterPromotion/constants.d.ts +3 -0
- package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +1 -0
- package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +1 -0
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +0 -63
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +0 -47
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +0 -7
- package/components/SideBar/subcomponents/ContentGroups/types.d.ts +0 -4
- package/components/SideBar/subcomponents/FooterSidebar/types.d.ts +0 -5
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +0 -25
- /package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/index.d.ts +0 -0
- /package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/types.d.ts +0 -0
|
@@ -31,45 +31,51 @@ const useRightActions = ({
|
|
|
31
31
|
const actions = [];
|
|
32
32
|
actions.push({
|
|
33
33
|
place: "right",
|
|
34
|
-
key: "
|
|
35
|
-
iconUrl:
|
|
36
|
-
label:
|
|
34
|
+
key: "collapseToggle",
|
|
35
|
+
iconUrl: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLLPASE}`,
|
|
36
|
+
label: !collapsed ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_collapse_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_uncollapse_window)),
|
|
37
|
+
tooltipProps: {
|
|
38
|
+
placement: "bottom-end"
|
|
39
|
+
},
|
|
37
40
|
/**
|
|
38
|
-
* Acción de
|
|
41
|
+
* Acción de collapse/expand.
|
|
39
42
|
*/
|
|
40
43
|
onClick: () => {
|
|
41
44
|
if (areaId) {
|
|
42
|
-
if (
|
|
43
|
-
|
|
45
|
+
if (collapsed) {
|
|
46
|
+
unColapseLayoutItem(areaId, windowId);
|
|
44
47
|
} else {
|
|
45
|
-
|
|
48
|
+
colapseLayoutItem(areaId, windowId);
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
},
|
|
49
|
-
disabled:
|
|
50
|
-
color: "
|
|
51
|
-
className: "
|
|
52
|
+
disabled: !(maximizedId === void 0),
|
|
53
|
+
color: "warning",
|
|
54
|
+
className: "collapse-toggle window-actions"
|
|
52
55
|
});
|
|
53
56
|
actions.push({
|
|
54
57
|
place: "right",
|
|
55
|
-
key: "
|
|
56
|
-
iconUrl:
|
|
57
|
-
label:
|
|
58
|
+
key: "maximize",
|
|
59
|
+
iconUrl: maximizedId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`,
|
|
60
|
+
label: maximizedId ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_minimize_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_maximize_window)),
|
|
61
|
+
tooltipProps: {
|
|
62
|
+
placement: "bottom-end"
|
|
63
|
+
},
|
|
58
64
|
/**
|
|
59
|
-
* Acción de
|
|
65
|
+
* Acción de maximize/normalize.
|
|
60
66
|
*/
|
|
61
67
|
onClick: () => {
|
|
62
68
|
if (areaId) {
|
|
63
|
-
if (
|
|
64
|
-
|
|
69
|
+
if (maximizedId) {
|
|
70
|
+
normalizeLayouts(areaId);
|
|
65
71
|
} else {
|
|
66
|
-
|
|
72
|
+
maximizeLayout(areaId, windowId);
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
75
|
},
|
|
70
|
-
disabled:
|
|
71
|
-
color: "
|
|
72
|
-
className: "
|
|
76
|
+
disabled: false,
|
|
77
|
+
color: "info",
|
|
78
|
+
className: "expand-toggle window-actions"
|
|
73
79
|
});
|
|
74
80
|
return actions;
|
|
75
81
|
}, [
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -MARGIN_GRIDLAYOUT,
|
|
445
|
+
bottom: -MARGIN_GRIDLAYOUT
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -6,7 +6,7 @@ const getReactResizableStyles = (theme, ownerState) => {
|
|
|
6
6
|
borderStyle: "solid",
|
|
7
7
|
borderWidth: `${borderWith}px`,
|
|
8
8
|
display: ownerState?.disabled ? "none" : "block",
|
|
9
|
-
borderColor: theme.palette.border.default,
|
|
9
|
+
borderColor: theme.vars.palette.border.default,
|
|
10
10
|
borderRadius: "0%",
|
|
11
11
|
backgroundImage: "none",
|
|
12
12
|
position: "absolute",
|
|
@@ -2,12 +2,14 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
4
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
5
|
-
import { S as SPLIT_LAYOUT_KEY_COMPONENT } from "./constants.js";
|
|
5
|
+
import { S as SPLIT_LAYOUT_KEY_COMPONENT, a as SPLIT_LAYOUT_ICONS } from "./constants.js";
|
|
6
6
|
import { S as SplitLayoutSlots } from "./slots/SplitLayoutEnum.js";
|
|
7
|
-
import { S as SplitLayoutRootStyled, a as SplitMasterStyled, b as SplitResizeHandleStyled, c as SplitDetailStyled } from "./slots/SplitLayoutSlots.js";
|
|
7
|
+
import { S as SplitLayoutRootStyled, a as SplitMasterStyled, b as SplitResizeHandleStyled, c as SplitResizeHandleIconStyled, d as SplitDetailStyled } from "./slots/SplitLayoutSlots.js";
|
|
8
|
+
import { useEnvironment } from "@m4l/core";
|
|
8
9
|
const SplitLayout = (props) => {
|
|
9
10
|
const { firstPart, secondPart, splitPosition, dataTestId, defaultMasterSize = 50, defaultDetailSize = 50 } = props;
|
|
10
11
|
const classes = getComponentClasses(SPLIT_LAYOUT_KEY_COMPONENT, SplitLayoutSlots);
|
|
12
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
11
13
|
const firstPartMemo = useMemo(() => {
|
|
12
14
|
return typeof firstPart === "function" ? firstPart() : firstPart;
|
|
13
15
|
}, [firstPart]);
|
|
@@ -38,7 +40,8 @@ const SplitLayout = (props) => {
|
|
|
38
40
|
SplitResizeHandleStyled,
|
|
39
41
|
{
|
|
40
42
|
className: `${classes.splitResizeHandle}-${splitPosition}`,
|
|
41
|
-
ownerState
|
|
43
|
+
ownerState,
|
|
44
|
+
children: /* @__PURE__ */ jsx(SplitResizeHandleIconStyled, { src: `${host_static_assets}/${environment_assets}/${SPLIT_LAYOUT_ICONS.handleIcon}` })
|
|
42
45
|
}
|
|
43
46
|
),
|
|
44
47
|
/* @__PURE__ */ jsx(
|
|
@@ -56,57 +56,99 @@ const splitLayoutStyles = {
|
|
|
56
56
|
*/
|
|
57
57
|
splitResizeHandle: ({ theme, ownerState }) => ({
|
|
58
58
|
position: "relative",
|
|
59
|
+
display: "flex",
|
|
60
|
+
alignItems: "center",
|
|
61
|
+
justifyContent: "center",
|
|
59
62
|
...ownerState?.splitPosition === "none" && {
|
|
60
63
|
display: "none"
|
|
61
64
|
//Garantiza que no se muestre el splitResizeHandle cuando el splitPosition es none
|
|
62
65
|
},
|
|
63
66
|
"&.M4LSplitLayout-splitResizeHandle-horizontal": {
|
|
64
|
-
width:
|
|
67
|
+
width: theme.vars.size.baseSpacings.sp3,
|
|
65
68
|
margin: "1px 0px",
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
"& .M4LIcon-root": {
|
|
70
|
+
opacity: 0,
|
|
71
|
+
zIndex: "1",
|
|
72
|
+
transform: "rotate(90deg)",
|
|
73
|
+
width: theme.vars.size.baseSpacings.sp5,
|
|
74
|
+
height: theme.vars.size.baseSpacings.sp5,
|
|
75
|
+
"& .M4LIcon-icon": {
|
|
76
|
+
backgroundColor: theme.vars.palette.primary.focusVisible
|
|
77
|
+
},
|
|
78
|
+
"&::before": {
|
|
79
|
+
content: `""`,
|
|
80
|
+
position: "absolute",
|
|
81
|
+
left: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
|
|
82
|
+
right: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
|
|
83
|
+
width: theme.vars.size.baseSpacings.sp5,
|
|
84
|
+
height: theme.vars.size.baseSpacings.sp5,
|
|
85
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
86
|
+
borderRadius: "50%",
|
|
87
|
+
zIndex: "0"
|
|
88
|
+
}
|
|
81
89
|
},
|
|
82
|
-
"&:
|
|
83
|
-
|
|
90
|
+
"&:after": {
|
|
91
|
+
content: `""`,
|
|
92
|
+
zIndex: "0",
|
|
93
|
+
width: "2px",
|
|
94
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.disabled}`,
|
|
95
|
+
position: "absolute",
|
|
96
|
+
height: "100%",
|
|
97
|
+
left: "50%"
|
|
84
98
|
}
|
|
85
99
|
},
|
|
86
100
|
"&.M4LSplitLayout-splitResizeHandle-vertical": {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
101
|
+
position: "relative",
|
|
102
|
+
// asegúrate de que sea el contenedor para posicionar bien los pseudo-elementos
|
|
103
|
+
height: theme.vars.size.baseSpacings.sp3,
|
|
104
|
+
"& .M4LIcon-root": {
|
|
105
|
+
opacity: 0,
|
|
106
|
+
zIndex: "1",
|
|
107
|
+
width: theme.vars.size.baseSpacings.sp5,
|
|
108
|
+
height: theme.vars.size.baseSpacings.sp5,
|
|
109
|
+
"& .M4LIcon-icon": {
|
|
110
|
+
backgroundColor: theme.vars.palette.primary.main
|
|
111
|
+
},
|
|
112
|
+
"&::before": {
|
|
113
|
+
content: `""`,
|
|
114
|
+
position: "absolute",
|
|
115
|
+
top: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
|
|
116
|
+
bottom: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
|
|
117
|
+
width: theme.vars.size.baseSpacings.sp5,
|
|
118
|
+
height: theme.vars.size.baseSpacings.sp5,
|
|
119
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
120
|
+
borderRadius: "50%",
|
|
121
|
+
zIndex: "0"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"&::after": {
|
|
93
125
|
content: `""`,
|
|
94
|
-
|
|
95
|
-
height: "
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
126
|
+
zIndex: "0",
|
|
127
|
+
height: "2px",
|
|
128
|
+
boxShadow: `inset 0px 1px 0px 0px ${theme.vars.palette.border.disabled}`,
|
|
129
|
+
position: "absolute",
|
|
130
|
+
width: "100%",
|
|
131
|
+
top: "50%"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
// Aquí controlas ambos con hover del root
|
|
135
|
+
"&:active, &:hover": {
|
|
136
|
+
"& .M4LIcon-root": {
|
|
137
|
+
opacity: 1
|
|
101
138
|
},
|
|
102
|
-
"
|
|
103
|
-
|
|
139
|
+
"&.M4LSplitLayout-splitResizeHandle-vertical": {
|
|
140
|
+
"&:after": {
|
|
141
|
+
boxShadow: `inset 0px 1px 0px 0px ${theme.vars.palette.primary.focusVisible}`
|
|
142
|
+
}
|
|
104
143
|
},
|
|
105
|
-
"
|
|
106
|
-
|
|
144
|
+
"&.M4LSplitLayout-splitResizeHandle-horizontal": {
|
|
145
|
+
"&:after": {
|
|
146
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.primary.focusVisible}`
|
|
147
|
+
}
|
|
107
148
|
}
|
|
108
149
|
}
|
|
109
|
-
})
|
|
150
|
+
}),
|
|
151
|
+
splitResizeHandleIcon: {}
|
|
110
152
|
};
|
|
111
153
|
export {
|
|
112
154
|
splitLayoutStyles as s
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
const SPLIT_LAYOUT_KEY_COMPONENT = "M4LSplitLayout";
|
|
2
|
+
const SPLIT_LAYOUT_ICONS = {
|
|
3
|
+
handleIcon: "frontend/components/split_layout/assets/icons/CaretCircleUpDown.svg"
|
|
4
|
+
};
|
|
2
5
|
export {
|
|
3
|
-
SPLIT_LAYOUT_KEY_COMPONENT as S
|
|
6
|
+
SPLIT_LAYOUT_KEY_COMPONENT as S,
|
|
7
|
+
SPLIT_LAYOUT_ICONS as a
|
|
4
8
|
};
|
|
@@ -3,6 +3,7 @@ var SplitLayoutSlots = /* @__PURE__ */ ((SplitLayoutSlots2) => {
|
|
|
3
3
|
SplitLayoutSlots2["splitMaster"] = "splitMaster";
|
|
4
4
|
SplitLayoutSlots2["splitDetail"] = "splitDetail";
|
|
5
5
|
SplitLayoutSlots2["splitResizeHandle"] = "splitResizeHandle";
|
|
6
|
+
SplitLayoutSlots2["splitResizeHandleIcon"] = "splitResizeHandleIcon";
|
|
6
7
|
return SplitLayoutSlots2;
|
|
7
8
|
})(SplitLayoutSlots || {});
|
|
8
9
|
export {
|
|
@@ -71,3 +71,6 @@ export declare const SplitResizeHandleStyled: import('@emotion/styled').StyledCo
|
|
|
71
71
|
}, "children" | "title" | "id" | "disabled" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tagName" | "hitAreaMargins" | "onDragging"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
72
72
|
ownerState?: (Partial<import('../types').SplitLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
73
73
|
}, {}, {}>;
|
|
74
|
+
export declare const SplitResizeHandleIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
75
|
+
ownerState?: (Partial<import('../types').SplitLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
76
|
+
}, {}, {}>;
|
|
@@ -3,6 +3,7 @@ import { PanelGroup, Panel, PanelResizeHandle } from "react-resizable-panels";
|
|
|
3
3
|
import { S as SPLIT_LAYOUT_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { s as splitLayoutStyles } from "../SplitLayout.styles.js";
|
|
5
5
|
import { S as SplitLayoutSlots } from "./SplitLayoutEnum.js";
|
|
6
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
6
7
|
const SplitLayoutRootStyled = styled(PanelGroup, {
|
|
7
8
|
slot: SplitLayoutSlots.root,
|
|
8
9
|
name: SPLIT_LAYOUT_KEY_COMPONENT
|
|
@@ -19,9 +20,14 @@ const SplitResizeHandleStyled = styled(PanelResizeHandle, {
|
|
|
19
20
|
slot: SplitLayoutSlots.splitResizeHandle,
|
|
20
21
|
name: SPLIT_LAYOUT_KEY_COMPONENT
|
|
21
22
|
})(splitLayoutStyles.splitResizeHandle);
|
|
23
|
+
const SplitResizeHandleIconStyled = styled(Icon, {
|
|
24
|
+
slot: SplitLayoutSlots.splitResizeHandleIcon,
|
|
25
|
+
name: SPLIT_LAYOUT_KEY_COMPONENT
|
|
26
|
+
})(splitLayoutStyles.splitResizeHandleIcon);
|
|
22
27
|
export {
|
|
23
28
|
SplitLayoutRootStyled as S,
|
|
24
29
|
SplitMasterStyled as a,
|
|
25
30
|
SplitResizeHandleStyled as b,
|
|
26
|
-
|
|
31
|
+
SplitResizeHandleIconStyled as c,
|
|
32
|
+
SplitDetailStyled as d
|
|
27
33
|
};
|
|
@@ -87,6 +87,7 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
87
87
|
InputLabelProps: { shrink: true },
|
|
88
88
|
autoComplete,
|
|
89
89
|
onChange: onInternalChange,
|
|
90
|
+
variant,
|
|
90
91
|
value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
|
|
91
92
|
fullWidth: true,
|
|
92
93
|
error: !!error,
|
|
@@ -1,52 +1,17 @@
|
|
|
1
|
-
import { a as getHeightSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
1
|
const rhfTextFieldPasswordStyles = {
|
|
3
2
|
/**
|
|
4
3
|
* Elemento Root
|
|
5
4
|
*/
|
|
6
|
-
root: ({ theme
|
|
5
|
+
root: ({ theme }) => ({
|
|
7
6
|
display: "flex",
|
|
8
7
|
flexDirection: "column",
|
|
9
|
-
borderAlingment: "center",
|
|
10
8
|
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
11
|
-
|
|
12
|
-
minHeight: "100%",
|
|
13
|
-
...getHeightSizeStyles(
|
|
14
|
-
theme.generalSettings.isMobile,
|
|
15
|
-
ownerState?.size || "medium",
|
|
16
|
-
"action"
|
|
17
|
-
)
|
|
18
|
-
}
|
|
9
|
+
width: "100%"
|
|
19
10
|
}),
|
|
20
11
|
/**
|
|
21
12
|
* Estilos personalizados para el componente RHFTextFieldPassword.
|
|
22
13
|
*/
|
|
23
|
-
textField: {
|
|
24
|
-
"& .MuiInputBase-input": {
|
|
25
|
-
"&:-webkit-autofill": {
|
|
26
|
-
WebkitBoxShadow: "0 0 0 100px transparent inset !important",
|
|
27
|
-
WebkitTextFillColor: "inherit !important",
|
|
28
|
-
backgroundColor: "transparent !important",
|
|
29
|
-
fontFamily: "inherit !important",
|
|
30
|
-
fontSize: "inherit !important"
|
|
31
|
-
},
|
|
32
|
-
"&:-webkit-autofill:focus": {
|
|
33
|
-
WebkitBoxShadow: "0 0 0 100px transparent inset !important",
|
|
34
|
-
WebkitTextFillColor: "inherit !important",
|
|
35
|
-
backgroundColor: "transparent !important"
|
|
36
|
-
},
|
|
37
|
-
"&:-webkit-autofill:hover": {
|
|
38
|
-
WebkitBoxShadow: "0 0 0 100px transparent inset !important",
|
|
39
|
-
WebkitTextFillColor: "inherit !important",
|
|
40
|
-
backgroundColor: "transparent !important"
|
|
41
|
-
},
|
|
42
|
-
"&:-internal-autofill-selected": {
|
|
43
|
-
appearance: "none !important",
|
|
44
|
-
backgroundImage: "none !important",
|
|
45
|
-
backgroundColor: "transparent !important",
|
|
46
|
-
color: "inherit !important"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
14
|
+
textField: {},
|
|
50
15
|
/**
|
|
51
16
|
* Estilos personalizados para el componente IconButton.
|
|
52
17
|
*/
|
|
@@ -3,7 +3,7 @@ import { CustomFormArguments, FormProviderCustomProps, FormProviderProps } from
|
|
|
3
3
|
/**
|
|
4
4
|
* TODO: Documentar
|
|
5
5
|
*/
|
|
6
|
-
export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any,
|
|
6
|
+
export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any, FieldValues>;
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Documentar
|
|
9
9
|
*/
|
|
@@ -84,7 +84,8 @@ const accordionStyles = {
|
|
|
84
84
|
* *******************************************************************
|
|
85
85
|
*/
|
|
86
86
|
accordionLabel: ({ theme }) => ({
|
|
87
|
-
color: theme.vars.palette.text.primary
|
|
87
|
+
color: theme.vars.palette.text.primary,
|
|
88
|
+
paddingLeft: theme.vars.size.baseSpacings.sp1
|
|
88
89
|
}),
|
|
89
90
|
/**
|
|
90
91
|
* *************************************************
|
|
@@ -101,15 +102,22 @@ const accordionStyles = {
|
|
|
101
102
|
* **************************************************************
|
|
102
103
|
*/
|
|
103
104
|
accordionDetails: ({ theme, ownerState }) => ({
|
|
104
|
-
|
|
105
|
+
paddingLeft: theme.vars.size.baseSpacings.sp3,
|
|
106
|
+
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
107
|
+
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
108
|
+
paddingBottom: theme.vars.size.baseSpacings.sp1,
|
|
105
109
|
background: theme.vars.palette.background.default,
|
|
106
110
|
display: "flex",
|
|
107
111
|
flexDirection: "column",
|
|
108
112
|
alignItems: "flex-start",
|
|
109
113
|
alignSelf: "stretch",
|
|
114
|
+
overflow: "hidden",
|
|
110
115
|
...ownerState?.variant === "outlined" && {
|
|
111
116
|
borderBottomLeftRadius: theme.size.borderRadius["r1-5"],
|
|
112
117
|
borderBottomRightRadius: theme.size.borderRadius["r1-5"]
|
|
118
|
+
},
|
|
119
|
+
"& .MuiStack-root .M4LPropertyValue-root:last-of-type": {
|
|
120
|
+
borderBottom: "unset"
|
|
113
121
|
}
|
|
114
122
|
})
|
|
115
123
|
};
|
|
@@ -16,6 +16,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
16
16
|
size,
|
|
17
17
|
variant = "contained",
|
|
18
18
|
skeletonWidth = "15%",
|
|
19
|
+
fullWidth = false,
|
|
19
20
|
...others
|
|
20
21
|
} = props;
|
|
21
22
|
const { currentSize } = useComponentSize(size);
|
|
@@ -31,7 +32,8 @@ const Button = forwardRef((props, ref) => {
|
|
|
31
32
|
variant,
|
|
32
33
|
disabled,
|
|
33
34
|
paletteColor,
|
|
34
|
-
color
|
|
35
|
+
color,
|
|
36
|
+
fullWidth
|
|
35
37
|
};
|
|
36
38
|
if (isSkeleton) {
|
|
37
39
|
return /* @__PURE__ */ jsx(SkeletonButtonStyled, { "data-testid": "SkeletonButton", width: skeletonWidth, ownerState: { ...ownerState } });
|
|
@@ -21,7 +21,7 @@ export interface ButtonProps extends Omit<MUIButtonProps, 'size' | 'variant' | '
|
|
|
21
21
|
/**
|
|
22
22
|
* Owner state of the `Button` used to define internal style and behavior properties.
|
|
23
23
|
*/
|
|
24
|
-
export interface ButtonOwnerState extends Pick<ButtonProps, 'size' | 'variant' | 'color' | 'disabled'> {
|
|
24
|
+
export interface ButtonOwnerState extends Pick<ButtonProps, 'size' | 'variant' | 'color' | 'disabled' | 'fullWidth'> {
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
paletteColor: PaletteColor;
|
|
27
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider } from './Divider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -15,6 +15,7 @@ const NavLink = (props) => {
|
|
|
15
15
|
skeletonWidth,
|
|
16
16
|
color,
|
|
17
17
|
dataTestId,
|
|
18
|
+
whiteSpace = false,
|
|
18
19
|
...others
|
|
19
20
|
} = props;
|
|
20
21
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -22,7 +23,8 @@ const NavLink = (props) => {
|
|
|
22
23
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
23
24
|
const ownerState = {
|
|
24
25
|
disabled,
|
|
25
|
-
size
|
|
26
|
+
size,
|
|
27
|
+
whiteSpace
|
|
26
28
|
};
|
|
27
29
|
return /* @__PURE__ */ jsx(
|
|
28
30
|
RouterNavLinkRootStyled,
|
|
@@ -22,9 +22,11 @@ export interface NavLinkProps extends RouterNavLinkProps, Pick<TypographyProps,
|
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
/** Estilos personalizados para el componente. */
|
|
24
24
|
dataTestId?: string;
|
|
25
|
+
/** Define el white space del texto. Por defecto es 'normal'. */
|
|
26
|
+
whiteSpace?: boolean;
|
|
25
27
|
}
|
|
26
28
|
/** Estado del propietario del NavLink.*/
|
|
27
|
-
export type NavLinkOwnerState = Pick<NavLinkProps, 'color'> & {
|
|
29
|
+
export type NavLinkOwnerState = Pick<NavLinkProps, 'color' | 'whiteSpace'> & {
|
|
28
30
|
/** Indica si el NavLink está deshabilitado. */
|
|
29
31
|
disabled?: boolean;
|
|
30
32
|
/** Define el tamaño de la etiqueta. Puede ser 'small' o 'medium'. Por defecto es 'medium'.*/
|
|
@@ -124,8 +124,9 @@ const tabStyles = {
|
|
|
124
124
|
* Slot de Tipografía:
|
|
125
125
|
* - **Estilos Generales**: Configura el color base del texto, aplicando especificidad para clases específicas.
|
|
126
126
|
*/
|
|
127
|
-
tipography: ({ ownerState }) => ({
|
|
127
|
+
tipography: ({ theme, ownerState }) => ({
|
|
128
128
|
cursor: "pointer",
|
|
129
|
+
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
129
130
|
...ownerState?.tabSkeleton && {
|
|
130
131
|
width: "32px"
|
|
131
132
|
}
|
|
@@ -21,17 +21,11 @@ const tabContentStyles = {
|
|
|
21
21
|
zIndex: "0",
|
|
22
22
|
top: "-1px",
|
|
23
23
|
...ownerState?.background ? {
|
|
24
|
-
backgroundColor: theme.vars.palette.background.
|
|
24
|
+
backgroundColor: theme.vars.palette.background.base,
|
|
25
25
|
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
26
26
|
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
27
27
|
paddingBottom: theme.vars.size.baseSpacings.sp2
|
|
28
|
-
} : {}
|
|
29
|
-
"& .M4LStack-root": {
|
|
30
|
-
gap: `${theme.vars.size.baseSpacings.sp2} !important`
|
|
31
|
-
},
|
|
32
|
-
"&.M4LTabContent-root > div": {
|
|
33
|
-
gap: theme.vars.size.baseSpacings.sp2
|
|
34
|
-
}
|
|
28
|
+
} : {}
|
|
35
29
|
})
|
|
36
30
|
};
|
|
37
31
|
export {
|
|
@@ -25,7 +25,7 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
25
25
|
const { currentSize } = useComponentSize(size);
|
|
26
26
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
27
27
|
const theme = useTheme();
|
|
28
|
-
const paletteColor = error && theme.palette.error || theme.palette.primary;
|
|
28
|
+
const paletteColor = error && theme.vars.palette.error || theme.vars.palette.primary;
|
|
29
29
|
const ownerState = {
|
|
30
30
|
size: adjustedSize,
|
|
31
31
|
disabled,
|