@m4l/components 9.20.0 → 9.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/AccountPopover.d.ts.map +1 -1
- package/components/AccountPopover/AccountPopover.js +43 -39
- package/components/AccountPopover/constants.d.ts +3 -0
- package/components/AccountPopover/constants.d.ts.map +1 -1
- package/components/AccountPopover/constants.js +11 -3
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +7 -7
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +45 -43
- package/components/AccountPopover/types.d.ts +9 -0
- package/components/AccountPopover/types.d.ts.map +1 -1
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
- package/components/AppBar/AppBar.d.ts +3 -18
- package/components/AppBar/AppBar.d.ts.map +1 -1
- package/components/AppBar/AppBar.js +64 -45
- package/components/AppBar/slots/AppBarEnum.d.ts +3 -1
- package/components/AppBar/slots/AppBarEnum.d.ts.map +1 -1
- package/components/AppBar/slots/AppBarEnum.js +2 -2
- package/components/AppBar/slots/AppBarSlots.d.ts +7 -1
- package/components/AppBar/slots/AppBarSlots.d.ts.map +1 -1
- package/components/AppBar/slots/AppBarSlots.js +30 -22
- package/components/AppBar/styles.d.ts.map +1 -1
- package/components/AppBar/styles.js +90 -47
- package/components/AppBar/types.d.ts +63 -29
- package/components/AppBar/types.d.ts.map +1 -1
- package/components/Card/constants.d.ts +1 -1
- package/components/CheckableList/slots/styled.d.ts +9 -9
- package/components/Chip/slots/ChipSlots.d.ts +4 -4
- package/components/ColorPicker/slots/ColorPickerSlots.d.ts +2 -2
- package/components/CommonActions/classes/index.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DateRangeCalendarPicker/constants.d.ts +1 -1
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.d.ts +9 -9
- package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
- package/components/DaysOfWeekPicker/constants.d.ts +1 -1
- package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +7 -7
- package/components/DynamicForm/constants.d.ts +1 -1
- package/components/DynamicForm/slots/DynamicFormSlots.d.ts +3 -3
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +7 -7
- package/components/EditLabel/constants.d.ts +1 -1
- package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
- package/components/ImageSelector/constants.d.ts +1 -1
- package/components/ImageSelector/slots/ImageSelectorSlots.d.ts +4 -4
- package/components/ImageText/constants.d.ts +1 -1
- package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
- package/components/Label/slots/LabelSlots.d.ts +2 -2
- package/components/LanguagePopover/LanguagePopover.d.ts +7 -7
- package/components/LanguagePopover/LanguagePopover.d.ts.map +1 -1
- package/components/LanguagePopover/LanguagePopover.js +40 -36
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LanguagePopover/types.d.ts +12 -3
- package/components/LanguagePopover/types.d.ts.map +1 -1
- package/components/LoadingError/LoadingError.js +4 -4
- package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/MenuActions/types.d.ts +1 -1
- package/components/MenuActions/types.d.ts.map +1 -1
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
- package/components/Pager/slots/PagerSlots.d.ts +3 -3
- package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/Stepper/slots/StepperSlot.d.ts +4 -4
- package/components/TabsNavigator/constants.d.ts +1 -1
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +3 -3
- package/components/TimePicker/slots/TimePickerSlots.d.ts +8 -8
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
- package/components/WindowConfirm/WindowConfirm.js +10 -10
- package/components/WindowConfirm/WindowConfirm.styles.d.ts.map +1 -1
- package/components/WindowConfirm/WindowConfirm.styles.js +26 -5
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +5 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +1 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +295 -119
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +309 -70
- package/components/areas/components/AreasAdmin/constants.d.ts +8 -0
- package/components/areas/components/AreasAdmin/constants.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/constants.js +10 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts +19 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.js +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +66 -9
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +176 -93
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts +6 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts.map +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.js +191 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts +2 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts.map +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts +37 -0
- package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts.map +1 -0
- package/components/areas/components/AreasAdmin/types.d.ts +29 -3
- package/components/areas/components/AreasAdmin/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +3 -0
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +4 -1
- package/components/areas/hooks/index.d.ts +1 -1
- package/components/areas/hooks/index.d.ts.map +1 -1
- package/components/areas/hooks/useAreas/index.d.ts +5 -0
- package/components/areas/hooks/useAreas/index.d.ts.map +1 -1
- package/components/areas/hooks/useAreas/index.js +16 -7
- package/components/areas/icons.js +3 -10
- package/components/datagrids/slots/DataGridSlot.d.ts +6 -6
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +5 -5
- package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +4 -4
- package/components/extended/mui/Autocomplete/constants.d.ts +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
- package/components/extended/mui/Avatar/slots/AvatarSlots.d.ts +1 -1
- package/components/extended/mui/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/extended/mui/Button/slots/ButtonSlots.d.ts +2 -2
- package/components/extended/mui/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/extended/mui/DatePicker/constants.d.ts +1 -1
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +3 -3
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
- package/components/extended/mui/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/extended/mui/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/extended/mui/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/extended/mui/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/extended/mui/MenuItem/slots/MenuItemSlots.d.ts +4 -4
- package/components/extended/mui/NavLink/slots/NavLinkSlots.d.ts +1 -1
- package/components/extended/mui/Popover/Popover.d.ts.map +1 -1
- package/components/extended/mui/Popover/Popover.js +41 -41
- package/components/extended/mui/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/extended/mui/Radio/constants.d.ts +1 -1
- package/components/extended/mui/Radio/slots/styled.d.ts +2 -2
- package/components/extended/mui/Select/constants.d.ts +1 -1
- package/components/extended/mui/Select/slots/SelectSlots.d.ts +5 -5
- package/components/extended/mui/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/extended/mui/Stack/slots/StackSlot.d.ts +1 -1
- package/components/extended/mui/Switch/constants.d.ts +1 -1
- package/components/extended/mui/Switch/slots/SwitchSlots.d.ts +2 -2
- package/components/extended/mui/Tab/Slots/TabSlots.d.ts +4 -4
- package/components/extended/mui/Tab/constants.d.ts +1 -1
- package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/extended/mui/TextField/constants.d.ts +1 -1
- package/components/extended/mui/TextField/slots/TextFieldSlots.d.ts +4 -4
- package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +3 -3
- package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
- package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
- package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
- package/components/formatters/ImageFormatter/constants.d.ts +1 -1
- package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
- package/components/formatters/NestedFormatter/constants.d.ts +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
- package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
- package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
- package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckableList/constants.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/constants.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +1 -1
- package/components/hook-form/RHFSelect/constants.d.ts +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
- package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
- package/index.js +674 -673
- package/package.json +7 -7
- package/test/mocks/dictionary-mock.d.ts +1 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +0 -171
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js +0 -45
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +0 -69
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +0 -149
|
@@ -1,65 +1,108 @@
|
|
|
1
1
|
const a = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* Estilos para el contenedor raíz del componente.
|
|
5
|
-
* ****************************************************
|
|
3
|
+
* Styles for the AppBar root container.
|
|
6
4
|
*/
|
|
7
|
-
appBarRoot: ({ theme: s }) => ({
|
|
5
|
+
appBarRoot: ({ theme: i, ownerState: s }) => ({
|
|
6
|
+
// Use the elevated `base` surface while the embedded Areas surface has an
|
|
7
|
+
// expanded module or the sidebar is expanded (anchored); fall back to the
|
|
8
|
+
// default surface otherwise.
|
|
9
|
+
backgroundColor: s?.hasExpandedModule || s?.sidebarAnchored ? i.vars.palette.background.base : i.vars.palette.background.default,
|
|
10
|
+
borderColor: i.vars.palette.border.disabled,
|
|
11
|
+
borderStyle: "solid",
|
|
12
|
+
borderWidth: 0,
|
|
8
13
|
display: "flex",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
flexShrink: 0,
|
|
15
|
+
overflow: s?.orientation === "vertical" ? "visible" : "hidden",
|
|
16
|
+
...s?.orientation === "vertical" ? {
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
borderRightWidth: "1px",
|
|
19
|
+
flexDirection: "column",
|
|
20
|
+
gap: i.vars.size.baseSpacings.sp4,
|
|
21
|
+
height: "100%",
|
|
22
|
+
maxWidth: `calc(${i.vars.size.baseSpacings.sp10} + ${i.vars.size.baseSpacings.sp4})`,
|
|
23
|
+
padding: `${i.vars.size.baseSpacings.sp4} ${i.vars.size.baseSpacings.sp2}`,
|
|
24
|
+
width: `calc(${i.vars.size.baseSpacings.sp10} + ${i.vars.size.baseSpacings.sp3})`
|
|
25
|
+
} : {
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
borderBottomWidth: "1px",
|
|
28
|
+
flexDirection: "row",
|
|
29
|
+
gap: i.vars.size.baseSpacings.sp3,
|
|
30
|
+
minHeight: i.vars.size.baseSpacings.sp12,
|
|
31
|
+
padding: `0 ${i.vars.size.baseSpacings.sp4}`,
|
|
32
|
+
width: "100%"
|
|
33
|
+
}
|
|
19
34
|
}),
|
|
20
35
|
/**
|
|
21
|
-
|
|
22
|
-
* Estilos para el contenedor del logotipo y nombre.
|
|
23
|
-
* ****************************************************
|
|
36
|
+
* Styles for the primary AppBar section.
|
|
24
37
|
*/
|
|
25
|
-
|
|
26
|
-
display: "flex",
|
|
27
|
-
flexDirection: "row",
|
|
38
|
+
primarySection: ({ theme: i, ownerState: s }) => ({
|
|
28
39
|
alignItems: "center",
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
display: "flex",
|
|
41
|
+
...s?.orientation === "vertical" ? {
|
|
42
|
+
flex: 1,
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
gap: i.vars.size.baseSpacings.sp2,
|
|
45
|
+
minHeight: 0,
|
|
46
|
+
width: "100%"
|
|
47
|
+
} : {
|
|
48
|
+
flex: 1,
|
|
49
|
+
flexDirection: "row",
|
|
50
|
+
gap: i.vars.size.baseSpacings.sp2,
|
|
51
|
+
minWidth: 0
|
|
52
|
+
}
|
|
37
53
|
}),
|
|
38
54
|
/**
|
|
39
|
-
*
|
|
40
|
-
* Estilos para el botón de menú de la barra de app
|
|
41
|
-
* en mobile.
|
|
42
|
-
* ****************************************************
|
|
55
|
+
* Styles for the menu toggle button.
|
|
43
56
|
*/
|
|
44
|
-
menuIconButton:
|
|
45
|
-
border: `1px solid ${s.vars.palette.border.default}`,
|
|
46
|
-
margin: `${s.vars.size.baseSpacings.sp3} 0`
|
|
47
|
-
}),
|
|
57
|
+
menuIconButton: {},
|
|
48
58
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Estilos para el contenedor de los elementos hijos del appbar
|
|
51
|
-
* **************************************************************
|
|
59
|
+
* Styles for the central AppBar content.
|
|
52
60
|
*/
|
|
53
|
-
content: ({ theme: s }) => ({
|
|
54
|
-
|
|
61
|
+
content: ({ theme: i, ownerState: s }) => ({
|
|
62
|
+
alignItems: "center",
|
|
55
63
|
display: "flex",
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
minHeight: 0,
|
|
65
|
+
...s?.orientation === "vertical" ? {
|
|
66
|
+
flex: 1,
|
|
67
|
+
flexDirection: "column",
|
|
68
|
+
gap: i.vars.size.baseSpacings.sp4,
|
|
69
|
+
justifyContent: "flex-start",
|
|
70
|
+
overflow: "visible",
|
|
71
|
+
width: "100%"
|
|
72
|
+
} : {
|
|
73
|
+
flex: 1,
|
|
74
|
+
flexDirection: "row",
|
|
75
|
+
gap: i.vars.size.baseSpacings.sp3,
|
|
76
|
+
justifyContent: "flex-start",
|
|
77
|
+
overflow: "auto hidden",
|
|
78
|
+
width: "100%"
|
|
79
|
+
}
|
|
80
|
+
}),
|
|
81
|
+
/**
|
|
82
|
+
* Styles for the trailing AppBar content.
|
|
83
|
+
*/
|
|
84
|
+
endContent: ({ theme: i, ownerState: s }) => ({
|
|
58
85
|
alignItems: "center",
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
86
|
+
display: "flex",
|
|
87
|
+
flexShrink: 0,
|
|
88
|
+
...s?.orientation === "vertical" ? {
|
|
89
|
+
flexDirection: "column",
|
|
90
|
+
gap: i.vars.size.baseSpacings.sp2,
|
|
91
|
+
paddingTop: s?.hasEndContent ? i.vars.size.baseSpacings.sp4 : 0,
|
|
92
|
+
width: "100%",
|
|
93
|
+
"& > *": {
|
|
94
|
+
width: "100%"
|
|
95
|
+
}
|
|
96
|
+
} : {
|
|
97
|
+
flexDirection: "row",
|
|
98
|
+
gap: i.vars.size.baseSpacings.sp2,
|
|
99
|
+
marginLeft: "auto"
|
|
100
|
+
}
|
|
101
|
+
}),
|
|
102
|
+
/**
|
|
103
|
+
* Compatibility slot kept for existing theme override consumers.
|
|
104
|
+
*/
|
|
105
|
+
containerIsotypeName: () => ({})
|
|
63
106
|
};
|
|
64
107
|
export {
|
|
65
108
|
a as appBarStyles
|
|
@@ -1,68 +1,102 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AppBarSlots } from './slots/AppBarEnum';
|
|
3
|
-
import { APP_BAR_KEY } from './constants';
|
|
4
2
|
import { Theme } from '@mui/material/styles';
|
|
5
3
|
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
6
4
|
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type RootStyleProps = {
|
|
11
|
-
isCollapse: boolean;
|
|
12
|
-
isOffset: boolean;
|
|
13
|
-
isSideBarVisible: boolean;
|
|
14
|
-
};
|
|
5
|
+
import { APP_BAR_KEY } from './constants';
|
|
6
|
+
import { AppBarSlots } from './slots/AppBarEnum';
|
|
7
|
+
export type AppBarOrientation = 'vertical' | 'horizontal';
|
|
15
8
|
export interface AppBarProps {
|
|
16
9
|
/**
|
|
17
|
-
*
|
|
10
|
+
* Optional color contract kept for compatibility with the shared package API.
|
|
18
11
|
*/
|
|
19
12
|
color?: Extract<ComponentPalletColor, 'default'>;
|
|
20
13
|
/**
|
|
21
|
-
*
|
|
14
|
+
* Supported AppBar sizes.
|
|
22
15
|
*/
|
|
23
16
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
24
17
|
/**
|
|
25
|
-
*
|
|
18
|
+
* AppBar visual variant.
|
|
26
19
|
*/
|
|
27
20
|
variant?: 'standard';
|
|
28
21
|
/**
|
|
29
|
-
*
|
|
22
|
+
* AppBar orientation. The new platform contract is vertical-first.
|
|
23
|
+
*/
|
|
24
|
+
orientation?: AppBarOrientation;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the host sidebar is currently in its anchored desktop state.
|
|
30
27
|
*/
|
|
31
28
|
sidebarAnchored: boolean;
|
|
32
29
|
/**
|
|
33
|
-
*
|
|
30
|
+
* Toggle handler for the temporary mobile sidebar drawer.
|
|
34
31
|
*/
|
|
35
32
|
onToggleVisible: () => void;
|
|
36
33
|
/**
|
|
37
|
-
*
|
|
34
|
+
* Toggle handler for the anchored desktop sidebar state.
|
|
38
35
|
*/
|
|
39
36
|
onToggleAnchored: () => void;
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
38
|
+
* Primary content rendered after the internal toggle control.
|
|
39
|
+
*/
|
|
40
|
+
content?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Secondary content rendered at the bottom of the vertical layout or at the
|
|
43
|
+
* end of the horizontal layout.
|
|
44
|
+
*/
|
|
45
|
+
endContent?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Backwards-compatible content slot. When `content` is provided, it wins.
|
|
42
48
|
*/
|
|
43
|
-
children
|
|
49
|
+
children?: ReactNode;
|
|
44
50
|
/**
|
|
45
|
-
*
|
|
51
|
+
* Deprecated company logo prop preserved for compatibility with existing
|
|
52
|
+
* host consumers.
|
|
46
53
|
*/
|
|
47
54
|
companyLogo?: string;
|
|
48
55
|
/**
|
|
49
|
-
*
|
|
56
|
+
* Deprecated company name prop preserved for compatibility with existing
|
|
57
|
+
* host consumers.
|
|
50
58
|
*/
|
|
51
59
|
companyName?: string;
|
|
52
60
|
/**
|
|
53
|
-
*
|
|
61
|
+
* Whether the embedded Areas surface currently has an expanded module.
|
|
62
|
+
* When true, the root uses the elevated `base` background instead of `default`.
|
|
63
|
+
*/
|
|
64
|
+
hasExpandedModule?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Optional `data-testid` suffix for the root slot.
|
|
54
67
|
*/
|
|
55
68
|
dataTestid?: string;
|
|
56
69
|
}
|
|
57
|
-
export
|
|
70
|
+
export interface AppBarOwnerState {
|
|
71
|
+
/**
|
|
72
|
+
* Whether the current device is mobile.
|
|
73
|
+
*/
|
|
58
74
|
isMobile: boolean;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Effective AppBar size.
|
|
77
|
+
*/
|
|
78
|
+
size?: AppBarProps['size'];
|
|
79
|
+
/**
|
|
80
|
+
* Effective AppBar orientation.
|
|
81
|
+
*/
|
|
82
|
+
orientation: AppBarOrientation;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the AppBar currently renders end content.
|
|
85
|
+
*/
|
|
86
|
+
hasEndContent: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Whether the embedded Areas surface currently has an expanded module.
|
|
89
|
+
*/
|
|
90
|
+
hasExpandedModule: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the host sidebar is currently expanded (anchored desktop state).
|
|
93
|
+
*/
|
|
94
|
+
sidebarAnchored: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Extra owner-state fields consumed by styled slots.
|
|
97
|
+
*/
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
}
|
|
63
100
|
export type AppBarSlotsType = keyof typeof AppBarSlots;
|
|
64
|
-
/**
|
|
65
|
-
* Estilos aplicables al `AppBar`
|
|
66
|
-
*/
|
|
67
101
|
export type AppBarStyles = M4LOverridesStyleRules<AppBarSlotsType, typeof APP_BAR_KEY, Theme>;
|
|
68
102
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE1D,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAC/C,eAAe,EACf,OAAO,WAAW,EAClB,KAAK,CACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const CARD_KEY = "M4LCard";
|
|
2
|
-
export declare const CARD_CLASSES: Record<"
|
|
2
|
+
export declare const CARD_CLASSES: Record<"root" | "text" | "selected" | "outlined", string>;
|
|
3
3
|
export declare const CARD_SIZES: {
|
|
4
4
|
compact: number;
|
|
5
5
|
standard: number;
|