@m4l/components 9.3.35-BE20251128-beta.1 → 9.3.35-BE20251129-beta.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/export.d.ts +3 -0
- package/@types/types.d.ts +40 -5
- package/components/AccountPopover/AccountPopover.styles.js +5 -2
- package/components/ActionsGroup/ActionsGroup.d.ts +5 -0
- package/components/ActionsGroup/ActionsGroup.js +40 -0
- package/components/ActionsGroup/ActionsGroup.styles.d.ts +2 -0
- package/components/ActionsGroup/ActionsGroup.styles.js +95 -0
- package/components/ActionsGroup/__tests__/ActionsGroup.test.d.ts +1 -0
- package/components/ActionsGroup/constants.d.ts +2 -0
- package/components/ActionsGroup/constants.js +8 -0
- package/components/ActionsGroup/icons.d.ts +3 -0
- package/components/ActionsGroup/icons.js +6 -0
- package/components/ActionsGroup/index.d.ts +1 -0
- package/components/ActionsGroup/index.js +1 -0
- package/components/ActionsGroup/slots/ActionsGroupEnum.d.ts +8 -0
- package/components/ActionsGroup/slots/ActionsGroupEnum.js +12 -0
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +15 -0
- package/components/ActionsGroup/slots/ActionsGroupSlots.js +35 -0
- package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.d.ts +6 -0
- package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.js +76 -0
- package/components/ActionsGroup/subcomponents/ActionIconButton/types.d.ts +7 -0
- package/components/ActionsGroup/types.d.ts +60 -0
- package/components/DataGrid/DataGrid.js +2 -0
- package/components/DataGrid/Datagrid.styles.js +11 -2
- package/components/DataGrid/contexts/DataGridContext/index.js +2 -0
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +2 -2
- package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.js +15 -7
- package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +4 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +0 -3
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +0 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.d.ts +6 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.js +12 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +64 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +46 -0
- package/components/DataGrid/tests/table/subcomponents/RadioButtonFormatter.test.d.ts +1 -0
- package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +1 -0
- package/components/DataGrid/types.d.ts +7 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +5 -2
- package/components/DynamicSort/DynamicSort.styles.js +5 -2
- package/components/GridLayout/styles.js +0 -1
- package/components/Label/index.d.ts +1 -1
- package/components/Label/types.d.ts +6 -0
- package/components/MFLoader/styles.js +0 -1
- package/components/ModalDialog/ModalDialog.styles.js +8 -1
- package/components/PrintingSystem/PrintingSystem.js +3 -1
- package/components/PrintingSystem/PrintingSystem.styles.js +179 -2
- package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -3
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +10 -10
- package/components/WindowBase/WindowBase.styles.js +8 -0
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +23 -13
- package/components/commercial/AppBarCommercial/styles.js +1 -3
- package/components/commercial/HamburgerMenu/styles.js +1 -3
- package/components/commercial/SectionCommercial/styles.js +1 -3
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -3
- package/components/commercial/TopBar/style.js +1 -3
- package/components/hook-form/RHFActionsGroup/RHFActionsGroup.d.ts +7 -0
- package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +87 -0
- package/components/hook-form/RHFActionsGroup/RHFActionsGroupStyles.d.ts +2 -0
- package/components/hook-form/RHFActionsGroup/RHFActionsGroupStyles.js +14 -0
- package/components/hook-form/RHFActionsGroup/constants.d.ts +9 -0
- package/components/hook-form/RHFActionsGroup/constants.js +8 -0
- package/components/hook-form/RHFActionsGroup/index.d.ts +2 -0
- package/components/hook-form/RHFActionsGroup/index.js +1 -0
- package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupEnum.d.ts +3 -0
- package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupEnum.js +7 -0
- package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.d.ts +1 -0
- package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js +11 -0
- package/components/hook-form/RHFActionsGroup/slots/index.d.ts +2 -0
- package/components/hook-form/RHFActionsGroup/slots/index.js +1 -0
- package/components/hook-form/RHFActionsGroup/tests/RHFActionsGroup.test.d.ts +1 -0
- package/components/hook-form/RHFActionsGroup/tests/common.d.ts +28 -0
- package/components/hook-form/RHFActionsGroup/types.d.ts +54 -0
- package/components/hook-form/RHFormProvider/styles.js +4 -3
- package/components/hook-form/index.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Accordion/styles.js +9 -5
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +11 -1
- package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +5 -1
- package/components/mui_extended/ImageButton/styles.js +1 -3
- package/components/mui_extended/RadioButton/RadioButton.d.ts +24 -0
- package/components/mui_extended/RadioButton/RadioButton.js +110 -0
- package/components/mui_extended/RadioButton/RadioButton.styles.d.ts +2 -0
- package/components/mui_extended/RadioButton/RadioButton.styles.js +126 -0
- package/components/mui_extended/RadioButton/constants.d.ts +1 -0
- package/components/mui_extended/RadioButton/constants.js +4 -0
- package/components/mui_extended/RadioButton/icons.d.ts +4 -0
- package/components/mui_extended/RadioButton/icons.js +7 -0
- package/components/mui_extended/RadioButton/index.d.ts +1 -0
- package/components/mui_extended/RadioButton/index.js +1 -0
- package/components/mui_extended/RadioButton/slots/RadioButtonEnum.d.ts +8 -0
- package/components/mui_extended/RadioButton/slots/RadioButtonEnum.js +12 -0
- package/components/mui_extended/RadioButton/slots/RadioButtonSlots.d.ts +20 -0
- package/components/mui_extended/RadioButton/slots/RadioButtonSlots.js +39 -0
- package/components/mui_extended/RadioButton/tests/RadioButton.test.d.ts +1 -0
- package/components/mui_extended/RadioButton/types.d.ts +50 -0
- package/components/mui_extended/Select/Select.js +2 -18
- package/components/mui_extended/Select/Select.styles.js +33 -1
- package/components/mui_extended/Select/constants.d.ts +2 -1
- package/components/mui_extended/Select/slots/SelectEnum.d.ts +2 -1
- package/components/mui_extended/Select/slots/SelectEnum.js +1 -0
- package/components/mui_extended/TextField/TextField.styles.js +2 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.js +22 -4
- package/components/mui_extended/index.d.ts +1 -0
- package/index.js +76 -70
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ const printingSystemStyles = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Root del componente PrintingSystem
|
|
5
5
|
*/
|
|
6
|
-
root: () => ({
|
|
6
|
+
root: ({ theme }) => ({
|
|
7
7
|
position: "absolute",
|
|
8
8
|
backgroundColor: "#fff",
|
|
9
9
|
display: "flex",
|
|
@@ -14,7 +14,184 @@ const printingSystemStyles = {
|
|
|
14
14
|
top: 0,
|
|
15
15
|
left: 0,
|
|
16
16
|
right: 0,
|
|
17
|
-
height: "auto"
|
|
17
|
+
height: "auto",
|
|
18
|
+
"&.M4LPrintingSystem-root": {
|
|
19
|
+
position: "absolute",
|
|
20
|
+
backgroundColor: "#fff",
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
overflow: "visible",
|
|
25
|
+
color: "#5C6A6C",
|
|
26
|
+
top: 0,
|
|
27
|
+
left: 0,
|
|
28
|
+
right: 0,
|
|
29
|
+
height: "auto",
|
|
30
|
+
"& .M4LPrintingSystem-pageNodeRoot": {
|
|
31
|
+
overflow: "hidden",
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: "column",
|
|
34
|
+
pageBreakBefore: "always",
|
|
35
|
+
backgroundColor: "#fff"
|
|
36
|
+
},
|
|
37
|
+
"& .M4LPrintingSystem-sectionNodeRoot": {
|
|
38
|
+
display: "flex",
|
|
39
|
+
overflow: "hidden"
|
|
40
|
+
},
|
|
41
|
+
"& .M4LPrintingSystem-headerNodeRoot": {
|
|
42
|
+
display: "flex",
|
|
43
|
+
justifyContent: "space-between",
|
|
44
|
+
overflow: "hidden"
|
|
45
|
+
},
|
|
46
|
+
"& .M4LPrintingSystem-footerNodeRoot": {
|
|
47
|
+
display: "flex",
|
|
48
|
+
justifyContent: "space-between",
|
|
49
|
+
overflow: "hidden"
|
|
50
|
+
},
|
|
51
|
+
"& .M4LPrintingSystem-textBoxNodeRoot": {
|
|
52
|
+
height: "auto",
|
|
53
|
+
"&.M4LPrintingSystem-textBoxNodeVariant-h1": {
|
|
54
|
+
...theme.colorSchemes.finalTheme.typography.h1,
|
|
55
|
+
fontSize: "18px!important"
|
|
56
|
+
},
|
|
57
|
+
"&.M4LPrintingSystem-textBoxNodeVariant-h3": {
|
|
58
|
+
...theme.colorSchemes.finalTheme.typography.subtitle
|
|
59
|
+
},
|
|
60
|
+
"&.M4LPrintingSystem-textBoxNodeVariant-body": {
|
|
61
|
+
...theme.colorSchemes.finalTheme.typography.body
|
|
62
|
+
},
|
|
63
|
+
"&.M4LPrintingSystem-textBoxNodeVariant-action": {
|
|
64
|
+
...theme.colorSchemes.finalTheme.typography.action,
|
|
65
|
+
fontSize: "10px!important"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"& .M4LPrintingSystem-bodyNodeRoot": {
|
|
69
|
+
display: "flex",
|
|
70
|
+
flex: "1"
|
|
71
|
+
},
|
|
72
|
+
"& .M4LPrintingSystem-paperNodeRoot": {
|
|
73
|
+
display: "flex",
|
|
74
|
+
flexDirection: "column",
|
|
75
|
+
"& .M4LPrintingSystem-paperNodeContainerTitles": {
|
|
76
|
+
display: "flex",
|
|
77
|
+
padding: "4px",
|
|
78
|
+
border: "2px",
|
|
79
|
+
backgroundColor: "#F0F2F2",
|
|
80
|
+
"& .M4LPrintingSystem-paperNodeTitle": {
|
|
81
|
+
...theme.colorSchemes.finalTheme.typography.subtitleDens,
|
|
82
|
+
fontSize: "12px!important",
|
|
83
|
+
color: "#364040"
|
|
84
|
+
},
|
|
85
|
+
"& .M4LPrintingSystem-paperNodeTitleSecondary": {
|
|
86
|
+
...theme.colorSchemes.finalTheme.typography.subtitleDens,
|
|
87
|
+
fontSize: "12px!important",
|
|
88
|
+
paddingLeft: "10px",
|
|
89
|
+
marginLeft: "10px",
|
|
90
|
+
borderLeft: "1px solid",
|
|
91
|
+
borderColor: "#A7B4B9"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"& .M4LPrintingSystem-paperNodeContent": {
|
|
95
|
+
padding: "4px",
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexDirection: "column",
|
|
98
|
+
gap: "3px"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"& .M4LPrintingSystem-propertyValueNodeRoot": {
|
|
102
|
+
display: "flex",
|
|
103
|
+
"&.M4LPrintingSystem-propertyValueNodeVertical": {
|
|
104
|
+
flexDirection: "row",
|
|
105
|
+
"& .M4LPrintingSystem-propertyValueNodeContent": {
|
|
106
|
+
padding: "4px 0px 4px 8px"
|
|
107
|
+
},
|
|
108
|
+
"& .M4LPrintingSystem-propertyValueNodeTitle": {
|
|
109
|
+
padding: "4px"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"&.M4LPrintingSystem-propertyValueNodeHorizontal": {
|
|
113
|
+
flexDirection: "column",
|
|
114
|
+
"& .M4LPrintingSystem-propertyValueNodeContent": {
|
|
115
|
+
padding: "4px 0",
|
|
116
|
+
border: "unset"
|
|
117
|
+
},
|
|
118
|
+
"& .M4LPrintingSystem-propertyValueNodeTitle": {
|
|
119
|
+
padding: "4px 0"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"& .M4LPrintingSystem-propertyValueNodeTitle": {
|
|
123
|
+
...theme.colorSchemes.finalTheme.typography.body,
|
|
124
|
+
color: "#323B3B",
|
|
125
|
+
borderBottom: "1px solid",
|
|
126
|
+
borderColor: "#323B3B"
|
|
127
|
+
},
|
|
128
|
+
"& .M4LPrintingSystem-propertyValueNodeContent": {
|
|
129
|
+
...theme.colorSchemes.finalTheme.typography.body,
|
|
130
|
+
width: "100%",
|
|
131
|
+
borderBottom: "1px solid",
|
|
132
|
+
borderColor: "#E9EBEB"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"& .M4LPrintingSystem-dividerNodeRoot": {
|
|
136
|
+
backgroundColor: "#c9c9c9",
|
|
137
|
+
"&.M4LPrintingSystem-dividerNodeVertical": {
|
|
138
|
+
width: "1px",
|
|
139
|
+
height: "100%"
|
|
140
|
+
},
|
|
141
|
+
"&.M4LPrintingSystem-dividerNodeHorizontal": {
|
|
142
|
+
height: "1px",
|
|
143
|
+
width: "100%"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"& .M4LPrintingSystem-gridNodeRoot": {
|
|
147
|
+
borderCollapse: "collapse",
|
|
148
|
+
width: "100%",
|
|
149
|
+
"& .M4LPrintingSystem-gridNodeTh": {
|
|
150
|
+
display: "flex",
|
|
151
|
+
alignItems: "center",
|
|
152
|
+
padding: "2px 10px",
|
|
153
|
+
height: "40px",
|
|
154
|
+
borderRadius: "2px",
|
|
155
|
+
backgroundColor: "#E1E9EA",
|
|
156
|
+
flex: "1",
|
|
157
|
+
...theme.colorSchemes.finalTheme.typography.bodyDens,
|
|
158
|
+
color: "#364040",
|
|
159
|
+
"&:first-of-type": {
|
|
160
|
+
borderTopLeftRadius: "10px"
|
|
161
|
+
},
|
|
162
|
+
"&:last-of-type": {
|
|
163
|
+
borderTopRightRadius: "10px",
|
|
164
|
+
flex: 1
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"& .M4LPrintingSystem-gridNodeTd": {
|
|
168
|
+
display: "flex",
|
|
169
|
+
alignItems: "center",
|
|
170
|
+
padding: "2px 10px",
|
|
171
|
+
minHeight: "30px",
|
|
172
|
+
height: "auto",
|
|
173
|
+
flex: "1",
|
|
174
|
+
...theme.colorSchemes.finalTheme.typography.body,
|
|
175
|
+
color: "#364040"
|
|
176
|
+
},
|
|
177
|
+
"& .M4LPrintingSystem-gridNodeTr": {
|
|
178
|
+
display: "flex",
|
|
179
|
+
width: "100%",
|
|
180
|
+
gap: "2px",
|
|
181
|
+
"&:nth-of-type(odd) .M4LPrintingSystem-gridNodeTd": {
|
|
182
|
+
backgroundColor: "#F0F4F4"
|
|
183
|
+
},
|
|
184
|
+
"&:nth-of-type(even) .M4LPrintingSystem-gridNodeTd": {
|
|
185
|
+
backgroundColor: "#F7FCFC"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"& .M4LPrintingSystem-chartNodeRoot": {
|
|
190
|
+
display: "flex",
|
|
191
|
+
justifyContent: "center",
|
|
192
|
+
maxHeight: "300px"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
18
195
|
}),
|
|
19
196
|
/**
|
|
20
197
|
* Root del componente PageNode
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@mui/material";
|
|
3
2
|
import { u as useSideBar } from "../../hooks/useSideBar/index.js";
|
|
4
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
5
4
|
import { g as getNameDataTestId } from "../../tests/utils.js";
|
|
@@ -12,14 +11,12 @@ const SideBarMobile = () => {
|
|
|
12
11
|
onToggleVisible,
|
|
13
12
|
expandedWidth
|
|
14
13
|
} = useSideBar();
|
|
15
|
-
const theme = useTheme();
|
|
16
14
|
return /* @__PURE__ */ jsx(
|
|
17
15
|
Drawer,
|
|
18
16
|
{
|
|
19
17
|
open: visible,
|
|
20
18
|
onClose: onToggleVisible,
|
|
21
19
|
PaperProps: { sx: { width: expandedWidth } },
|
|
22
|
-
sx: { ...theme.components?.M4LSideBarDrawer?.styleOverrides },
|
|
23
20
|
children: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
24
21
|
ContainerSideBarMobileStyled,
|
|
25
22
|
{
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
export declare const TabsNavigatorRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
|
-
ownerState?:
|
|
2
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
3
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
4
|
export declare const TabNavigatorContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
5
|
-
ownerState?:
|
|
5
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
6
6
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
7
|
export declare const ContentPopoverStyled: import('@emotion/styled').StyledComponent<Pick<import('../../ContainerFlow').ContainerFlowProps, keyof import('../../ContainerFlow').ContainerFlowProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
8
|
-
ownerState?:
|
|
8
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
export declare const TabNavigatorPositionedContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
|
-
ownerState?:
|
|
11
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
12
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
13
|
export declare const TabNavigatorIconContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
14
|
-
ownerState?:
|
|
14
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
15
15
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
16
|
export declare const TypographyTextMarqueeContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
17
|
-
ownerState?:
|
|
17
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
18
18
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
19
|
export declare const TypographyTextMarqueeStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
20
|
-
ownerState?:
|
|
20
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
21
21
|
}, {}, {}>;
|
|
22
22
|
export declare const TabNavigatorIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
|
-
ownerState?:
|
|
23
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
24
24
|
}, {}, {}>;
|
|
25
25
|
export declare const TabNavigatorLabelStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
|
-
ownerState?:
|
|
26
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
|
-
ownerState?:
|
|
29
|
+
ownerState?: (Partial<import('../types').TabsNavigatorOwnerState> & Record<string, unknown>) | undefined;
|
|
30
30
|
}, {}, {}>;
|
|
@@ -89,6 +89,7 @@ const windowBaseStyles = {
|
|
|
89
89
|
display: "flex",
|
|
90
90
|
padding: theme.vars.size.baseSpacings.sp1,
|
|
91
91
|
borderBottom: "1px solid #ffffff00",
|
|
92
|
+
marginTop: 1,
|
|
92
93
|
...(ownerState?.emergeType === "popup" || ownerState?.emergeType === "modal") && {
|
|
93
94
|
padding: `${theme.vars.size.baseSpacings["sp2-5"]} ${theme.vars.size.baseSpacings.sp2} 0 ${theme.vars.size.baseSpacings.sp2}`,
|
|
94
95
|
borderBottom: `unset`
|
|
@@ -392,6 +393,13 @@ const windowBaseStyles = {
|
|
|
392
393
|
containerLeftActions: ({ theme, ownerState }) => ({
|
|
393
394
|
display: "flex",
|
|
394
395
|
gap: theme.vars.size.baseSpacings.sp1,
|
|
396
|
+
alignItems: "center",
|
|
397
|
+
"& .M4LIconButton-styledMUIIconButton": {
|
|
398
|
+
...getSizeStyles(theme, ownerState?.size || "medium", "case", (size) => ({
|
|
399
|
+
width: `${size}!important`,
|
|
400
|
+
height: `${size}!important`
|
|
401
|
+
}))
|
|
402
|
+
},
|
|
395
403
|
...ownerState?.collapsed && {
|
|
396
404
|
display: "none"
|
|
397
405
|
}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { M as MemoizedIconButton } from "../MemoizedIconButton/MemoizedIconButton.js";
|
|
4
|
+
import { A as ActionsGroup } from "../../../ActionsGroup/ActionsGroup.js";
|
|
4
5
|
const useButtonActions = (actions) => {
|
|
5
6
|
const MemoActions = useMemo(() => /* @__PURE__ */ jsx(Fragment, { children: actions.map((action) => {
|
|
6
7
|
if (action.type === "groupActions") {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
const groupActions = action.actions.map((groupAction) => ({
|
|
9
|
+
id: groupAction.key,
|
|
10
|
+
label: groupAction.label,
|
|
11
|
+
iconUrl: groupAction.iconUrl,
|
|
12
|
+
onClick: groupAction.onClick,
|
|
13
|
+
disabled: groupAction.disabled
|
|
14
|
+
}));
|
|
15
|
+
const handleChangeSelectedId = (newSelectedId) => {
|
|
16
|
+
const selectedAction = action.actions.find((a) => a.key === newSelectedId);
|
|
17
|
+
if (selectedAction?.onClick) {
|
|
18
|
+
selectedAction.onClick();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
ActionsGroup,
|
|
9
23
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
color: groupAction.color,
|
|
17
|
-
className: action.className,
|
|
18
|
-
tooltipProps: action.tooltipProps
|
|
24
|
+
actions: groupActions,
|
|
25
|
+
value: action.selectedActionKey,
|
|
26
|
+
onChange: handleChangeSelectedId,
|
|
27
|
+
variant: "horizontal",
|
|
28
|
+
className: action.className
|
|
19
29
|
},
|
|
20
|
-
|
|
21
|
-
)
|
|
30
|
+
action.key
|
|
31
|
+
);
|
|
22
32
|
}
|
|
23
33
|
return /* @__PURE__ */ jsx(
|
|
24
34
|
MemoizedIconButton,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material";
|
|
2
|
-
const AppBarComercialRoot = styled("div")((
|
|
3
|
-
...theme.components?.M4LAppBarCommercial?.styleOverrides || {}
|
|
4
|
-
}));
|
|
2
|
+
const AppBarComercialRoot = styled("div")(() => ({}));
|
|
5
3
|
export {
|
|
6
4
|
AppBarComercialRoot as A
|
|
7
5
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
const HamburgerMenuRoot = styled("header")((
|
|
3
|
-
...theme.components?.M4LHamburgerMenuCommercial?.styleOverrides || {}
|
|
4
|
-
}));
|
|
2
|
+
const HamburgerMenuRoot = styled("header")(() => ({}));
|
|
5
3
|
export {
|
|
6
4
|
HamburgerMenuRoot as H
|
|
7
5
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material";
|
|
2
2
|
import { S as Stack } from "../../mui_extended/Stack/Stack.js";
|
|
3
|
-
const SectionCommercialRoot = styled(Stack)((
|
|
4
|
-
...theme.components?.M4LSectionCommercial?.styleOverrides || {}
|
|
5
|
-
}));
|
|
3
|
+
const SectionCommercialRoot = styled(Stack)(() => ({}));
|
|
6
4
|
export {
|
|
7
5
|
SectionCommercialRoot as S
|
|
8
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Box, Grid } from "@mui/material";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { u as useTopBar } from "../../../../hook/topBarContext/index.js";
|
|
5
5
|
import { A as ArrowIcon } from "./subcomponents/ArrowIcon/index.js";
|
|
@@ -13,7 +13,6 @@ import { A as Accordion } from "../../../../../../mui_extended/Accordion/Accordi
|
|
|
13
13
|
import { B as Button } from "../../../../../../mui_extended/Button/Button.js";
|
|
14
14
|
import { P as Popover } from "../../../../../../mui_extended/Popover/Popover.js";
|
|
15
15
|
const NavItemRoot = (props) => {
|
|
16
|
-
const theme = useTheme();
|
|
17
16
|
const { classes, dataTestId } = useTopBar();
|
|
18
17
|
const { itemRootData } = props;
|
|
19
18
|
const { title, children, module_id } = itemRootData;
|
|
@@ -58,7 +57,6 @@ const NavItemRoot = (props) => {
|
|
|
58
57
|
horizontal: "center"
|
|
59
58
|
},
|
|
60
59
|
arrowType: "top-center",
|
|
61
|
-
sx: { ...theme.components?.M4LPopoverTopBar?.styleOverrides },
|
|
62
60
|
children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 0.5, children: children && children.length > 0 && renderMenuItems(children) })
|
|
63
61
|
}
|
|
64
62
|
);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsGroupValueType } from '../../ActionsGroup/types';
|
|
2
|
+
import { RHFActionsGroupProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* RHFActionsGroup is a custom actions group component integrated with React Hook Form.
|
|
5
|
+
* It renders an ActionsGroup with form integration, handling value and onChange automatically.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RHFActionsGroup: <T extends ActionsGroupValueType>(props: RHFActionsGroupProps<T>) => JSX.Element;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
4
|
+
import { A as ActionsGroup } from "../../ActionsGroup/ActionsGroup.js";
|
|
5
|
+
import { r as rhfActionsGroupClasses } from "./constants.js";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
+
import { A as ActionsGroupRootStyled } from "./slots/RHFActionsGroupSlots.js";
|
|
9
|
+
import { L as Label } from "../../Label/Label.js";
|
|
10
|
+
import { H as HelperError } from "../../HelperError/HelperError.js";
|
|
11
|
+
const RHFActionsGroup = (props) => {
|
|
12
|
+
const {
|
|
13
|
+
name,
|
|
14
|
+
actions,
|
|
15
|
+
label,
|
|
16
|
+
disabled,
|
|
17
|
+
className,
|
|
18
|
+
ariaLabel,
|
|
19
|
+
ariaLabelledBy,
|
|
20
|
+
size = "medium",
|
|
21
|
+
variant,
|
|
22
|
+
mandatory,
|
|
23
|
+
mandatoryMessage,
|
|
24
|
+
helperMessage,
|
|
25
|
+
id
|
|
26
|
+
} = props;
|
|
27
|
+
const { control } = useFormContext();
|
|
28
|
+
const { currentSize } = useComponentSize(size);
|
|
29
|
+
const htmlForId = useId();
|
|
30
|
+
const hookId = useId();
|
|
31
|
+
const finalId = id || hookId;
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
ActionsGroupRootStyled,
|
|
34
|
+
{
|
|
35
|
+
className: clsx(className, rhfActionsGroupClasses.actionsGroupRoot),
|
|
36
|
+
children: /* @__PURE__ */ jsx(
|
|
37
|
+
Controller,
|
|
38
|
+
{
|
|
39
|
+
name,
|
|
40
|
+
control,
|
|
41
|
+
render: ({ field: { value, onChange }, fieldState: { error } }) => {
|
|
42
|
+
const currentValue = value ?? null;
|
|
43
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
label && /* @__PURE__ */ jsx(
|
|
45
|
+
Label,
|
|
46
|
+
{
|
|
47
|
+
size: currentSize,
|
|
48
|
+
label,
|
|
49
|
+
htmlFor: finalId,
|
|
50
|
+
mandatory,
|
|
51
|
+
mandatoryMessage,
|
|
52
|
+
helperMessage,
|
|
53
|
+
disabled,
|
|
54
|
+
error: !!error
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
ActionsGroup,
|
|
59
|
+
{
|
|
60
|
+
actions,
|
|
61
|
+
value: currentValue,
|
|
62
|
+
onChange,
|
|
63
|
+
disabled,
|
|
64
|
+
ariaLabel,
|
|
65
|
+
ariaLabelledBy,
|
|
66
|
+
size,
|
|
67
|
+
variant
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
error?.message && /* @__PURE__ */ jsx(
|
|
71
|
+
HelperError,
|
|
72
|
+
{
|
|
73
|
+
htmlFor: htmlForId,
|
|
74
|
+
size: currentSize,
|
|
75
|
+
message: error.message
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
RHFActionsGroup as R
|
|
87
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const rhfActionsGroupStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Styles for the root component.
|
|
4
|
+
*/
|
|
5
|
+
actionsGroupRoot: ({ theme }) => ({
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
gap: theme.vars.size.baseSpacings.sp1,
|
|
9
|
+
width: "100%"
|
|
10
|
+
})
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
rhfActionsGroupStyles as r
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clave de identificación del componente RHFActionsGroup dentro del sistema.
|
|
3
|
+
*
|
|
4
|
+
* Esta constante se utiliza como identificador único para asociar y personalizar estilos y configuraciones
|
|
5
|
+
* relacionadas con el componente `RHFActionsGroup` dentro del sistema de temas y estilos.
|
|
6
|
+
* @default 'RHFM4LActionsGroup'
|
|
7
|
+
*/
|
|
8
|
+
export declare const RHFACTIONSGROUP_KEY_COMPONENT = "RHFM4LActionsGroup";
|
|
9
|
+
export declare const rhfActionsGroupClasses: Record<"actionsGroupRoot", string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { R as RHFActionsGroupSlots } from "./slots/RHFActionsGroupEnum.js";
|
|
3
|
+
const RHFACTIONSGROUP_KEY_COMPONENT = "RHFM4LActionsGroup";
|
|
4
|
+
const rhfActionsGroupClasses = getComponentClasses(RHFACTIONSGROUP_KEY_COMPONENT, RHFActionsGroupSlots);
|
|
5
|
+
export {
|
|
6
|
+
RHFACTIONSGROUP_KEY_COMPONENT as R,
|
|
7
|
+
rhfActionsGroupClasses as r
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ActionsGroupRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled } from "@mui/material";
|
|
2
|
+
import { r as rhfActionsGroupStyles } from "../RHFActionsGroupStyles.js";
|
|
3
|
+
import { R as RHFACTIONSGROUP_KEY_COMPONENT } from "../constants.js";
|
|
4
|
+
import { R as RHFActionsGroupSlots } from "./RHFActionsGroupEnum.js";
|
|
5
|
+
const ActionsGroupRootStyled = styled("div", {
|
|
6
|
+
name: RHFACTIONSGROUP_KEY_COMPONENT,
|
|
7
|
+
slot: RHFActionsGroupSlots.actionsGroupRoot
|
|
8
|
+
})(rhfActionsGroupStyles?.actionsGroupRoot);
|
|
9
|
+
export {
|
|
10
|
+
ActionsGroupRootStyled as A
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|