@m4l/components 9.2.61 → 9.2.62-B07072025beta.1
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/AppBar/AppBar.js +12 -10
- package/components/AppBar/slots/AppBarEnum.d.ts +1 -5
- package/components/AppBar/slots/AppBarEnum.js +0 -4
- package/components/AppBar/slots/AppBarSlots.d.ts +4 -18
- package/components/AppBar/slots/AppBarSlots.js +3 -27
- package/components/AppBar/styles.js +0 -42
- package/components/AppBar/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.styles.js +8 -13
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -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 +6 -7
- 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/PopoverMenuFields/PopoverMenuFields.js +4 -1
- 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/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/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/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/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- 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 +8 -2
- package/components/SideBar/constants.d.ts +26 -2
- package/components/SideBar/constants.js +20 -10
- package/components/SideBar/context/sideBarContext/index.js +17 -4
- package/components/SideBar/context/sideBarContext/types.d.ts +14 -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 +11 -11
- package/components/SideBar/slots/SideBarEnum.js +13 -15
- package/components/SideBar/slots/SideBarSlots.d.ts +15 -9
- package/components/SideBar/slots/SideBarSlots.js +50 -39
- package/components/SideBar/styles.js +4 -6
- package/components/SideBar/subcomponents/ContentComponent/index.js +13 -49
- package/components/SideBar/subcomponents/ContentComponent/style.js +148 -23
- package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/index.d.ts +2 -2
- package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/index.js +8 -15
- package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/styles.js +8 -2
- package/components/SideBar/subcomponents/FooterComponent/types.d.ts +5 -0
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +5 -0
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +37 -0
- package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +1 -0
- package/components/SideBar/subcomponents/HeaderComponent/index.js +1 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/HeaderComponent/styles.js +43 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +4 -3
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +3 -35
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.d.ts +5 -0
- package/components/SideBar/subcomponents/TreeGroupItems/index.js +51 -0
- package/components/SideBar/subcomponents/TreeGroupItems/styles.js +146 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +7 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +12 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +4 -0
- 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 +70 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +10 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.d.ts +5 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +61 -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 +17 -8
- 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/commercial/HamburgerMenu/HamburgerMenu.js +1 -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/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +5 -4
- package/components/hook-form/RHFTextField/RHFTextField.js +1 -0
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +3 -38
- 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/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/index.d.ts +1 -0
- package/index.js +16 -13
- package/package.json +5 -4
- package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +27 -11
- package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +26 -10
- package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +2 -2
- package/storybook/components/SideBar/SideBar.stories.d.ts +5 -11
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/constants.d.ts +3 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +14 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +5 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +1 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +5 -0
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.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/index.js +0 -52
- package/components/SideBar/subcomponents/ContentGroups/styles.js +0 -71
- 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.d.ts +0 -6
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +0 -25
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/HeaderSidebar/styles.js +0 -24
- package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +0 -5
- /package/components/SideBar/subcomponents/{FooterSidebar → FooterComponent}/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
|
@@ -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
|
};
|
|
@@ -65,6 +65,11 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
|
|
|
65
65
|
...state,
|
|
66
66
|
isOpen: false
|
|
67
67
|
};
|
|
68
|
+
// case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
|
|
69
|
+
// return {
|
|
70
|
+
// ...state,
|
|
71
|
+
// selectedOptions: action.payload,
|
|
72
|
+
// };
|
|
68
73
|
default:
|
|
69
74
|
return state;
|
|
70
75
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { g as getCommonActionsDictionary } from "../../../../CommonActions/dictionary.js";
|
|
2
|
+
const DICTIONARY_KEY = "rhf_period";
|
|
2
3
|
const dictionary = {
|
|
3
|
-
LABEL_YEARS:
|
|
4
|
-
LABEL_MONTHS:
|
|
5
|
-
LABEL_DAYS:
|
|
4
|
+
LABEL_YEARS: `${DICTIONARY_KEY}.label_years`,
|
|
5
|
+
LABEL_MONTHS: `${DICTIONARY_KEY}.label_months`,
|
|
6
|
+
LABEL_DAYS: `${DICTIONARY_KEY}.label_days`
|
|
6
7
|
};
|
|
7
8
|
function getPeriodComponetsDictionary() {
|
|
8
|
-
return [
|
|
9
|
+
return [DICTIONARY_KEY].concat(getCommonActionsDictionary());
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
12
|
dictionary as d,
|
|
@@ -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
|
*/
|
|
@@ -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,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
|
|
2
|
-
import { a as getHeightSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
|
+
import { a as getHeightSizeStyles, g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
3
|
import { T as TEXT_FIELD_CLASSES } from "./constants.js";
|
|
4
4
|
const textFieldStyles = {
|
|
5
5
|
/**
|
|
@@ -28,17 +28,19 @@ const textFieldStyles = {
|
|
|
28
28
|
// transición
|
|
29
29
|
transition: "all 0.2s ease",
|
|
30
30
|
// Espaciado entre elementos
|
|
31
|
-
...
|
|
32
|
-
theme
|
|
31
|
+
...getSizeStyles(
|
|
32
|
+
theme,
|
|
33
33
|
ownerState?.size || "medium",
|
|
34
34
|
"action",
|
|
35
|
-
(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
}
|
|
35
|
+
(size) => ({
|
|
36
|
+
height: "auto",
|
|
37
|
+
minHeight: size
|
|
38
|
+
})
|
|
41
39
|
),
|
|
40
|
+
"& .MuiInputBase-input.MuiInputBase-inputMultiline": {
|
|
41
|
+
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
42
|
+
paddingBottom: theme.vars.size.baseSpacings.sp1
|
|
43
|
+
},
|
|
42
44
|
...ownerState?.readOnly ? {
|
|
43
45
|
backgroundColor: theme.vars.palette.background.neutral
|
|
44
46
|
} : {}
|
|
@@ -59,7 +61,7 @@ const textFieldStyles = {
|
|
|
59
61
|
"body"
|
|
60
62
|
),
|
|
61
63
|
"&::placeholder": {
|
|
62
|
-
color: theme.palette.text.disabled
|
|
64
|
+
color: theme.vars.palette.text.disabled
|
|
63
65
|
},
|
|
64
66
|
"&:-webkit-autofill": {
|
|
65
67
|
backgroundColor: "transparent!important"
|
|
@@ -90,7 +92,7 @@ const textFieldStyles = {
|
|
|
90
92
|
}
|
|
91
93
|
},
|
|
92
94
|
"&:not(.M4LTextField-readOnly ) .MuiInputBase-root:hover": {
|
|
93
|
-
backgroundColor:
|
|
95
|
+
backgroundColor: theme.vars.palette.default.hoverOpacity,
|
|
94
96
|
...ownerState?.error && {
|
|
95
97
|
borderColor: `${ownerState?.paletteColor?.hover}!important`,
|
|
96
98
|
"& .MuiInputAdornment-root .M4LIcon-icon": {
|
|
@@ -98,10 +100,10 @@ const textFieldStyles = {
|
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
},
|
|
101
|
-
"&:not(.M4LTextField-readOnly
|
|
103
|
+
"&:not(.M4LTextField-readOnly):focus": {
|
|
102
104
|
borderColor: `${ownerState?.paletteColor?.enabled}!important`,
|
|
103
105
|
"& .MuiInputAdornment-root .M4LIcon-icon": {
|
|
104
|
-
backgroundColor: ownerState?.paletteColor?.
|
|
106
|
+
backgroundColor: ownerState?.paletteColor?.active
|
|
105
107
|
}
|
|
106
108
|
},
|
|
107
109
|
// Variant Outlined TextField
|
|
@@ -125,15 +127,15 @@ const textFieldStyles = {
|
|
|
125
127
|
...ownerState?.variant === "contained" && {
|
|
126
128
|
[`&.${TEXT_FIELD_CLASSES.contained} .MuiInputBase-root`]: {
|
|
127
129
|
border: "none",
|
|
128
|
-
backgroundColor: ownerState?.readOnly ? theme.vars.palette.background.neutral : theme.vars.palette[ownerState?.color || "default"][ownerState?.error ? "toneOpacity" : "
|
|
130
|
+
backgroundColor: ownerState?.readOnly ? theme.vars.palette.background.neutral : theme.vars.palette[ownerState?.color || "default"][ownerState?.error ? "toneOpacity" : "enabledOpacity"]
|
|
129
131
|
},
|
|
130
132
|
...ownerState?.error && !ownerState?.readOnly && {
|
|
131
|
-
border: theme.vars.size.borderStroke.
|
|
133
|
+
border: theme.vars.size.borderStroke.container,
|
|
132
134
|
borderColor: `${ownerState?.paletteColor?.enabled}!important`
|
|
133
135
|
},
|
|
134
|
-
"&:not(.M4LTextField-readOnly
|
|
135
|
-
border: theme.vars.size.borderStroke.
|
|
136
|
-
borderColor: `${ownerState?.paletteColor?.
|
|
136
|
+
"&:not(.M4LTextField-readOnly):focus-within": {
|
|
137
|
+
border: theme.vars.size.borderStroke.container,
|
|
138
|
+
borderColor: `${ownerState?.paletteColor?.active}!important`
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
}),
|