@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.
Files changed (186) hide show
  1. package/components/AccountPopover/AccountPopover.d.ts.map +1 -1
  2. package/components/AccountPopover/AccountPopover.js +43 -39
  3. package/components/AccountPopover/constants.d.ts +3 -0
  4. package/components/AccountPopover/constants.d.ts.map +1 -1
  5. package/components/AccountPopover/constants.js +11 -3
  6. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +7 -7
  7. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts.map +1 -1
  8. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +45 -43
  9. package/components/AccountPopover/types.d.ts +9 -0
  10. package/components/AccountPopover/types.d.ts.map +1 -1
  11. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
  12. package/components/AppBar/AppBar.d.ts +3 -18
  13. package/components/AppBar/AppBar.d.ts.map +1 -1
  14. package/components/AppBar/AppBar.js +64 -45
  15. package/components/AppBar/slots/AppBarEnum.d.ts +3 -1
  16. package/components/AppBar/slots/AppBarEnum.d.ts.map +1 -1
  17. package/components/AppBar/slots/AppBarEnum.js +2 -2
  18. package/components/AppBar/slots/AppBarSlots.d.ts +7 -1
  19. package/components/AppBar/slots/AppBarSlots.d.ts.map +1 -1
  20. package/components/AppBar/slots/AppBarSlots.js +30 -22
  21. package/components/AppBar/styles.d.ts.map +1 -1
  22. package/components/AppBar/styles.js +90 -47
  23. package/components/AppBar/types.d.ts +63 -29
  24. package/components/AppBar/types.d.ts.map +1 -1
  25. package/components/Card/constants.d.ts +1 -1
  26. package/components/CheckableList/slots/styled.d.ts +9 -9
  27. package/components/Chip/slots/ChipSlots.d.ts +4 -4
  28. package/components/ColorPicker/slots/ColorPickerSlots.d.ts +2 -2
  29. package/components/CommonActions/classes/index.d.ts +1 -1
  30. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  31. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  32. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
  33. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  34. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  35. package/components/DateRangeCalendarPicker/constants.d.ts +1 -1
  36. package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.d.ts +9 -9
  37. package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
  38. package/components/DaysOfWeekPicker/constants.d.ts +1 -1
  39. package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
  40. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +7 -7
  41. package/components/DynamicForm/constants.d.ts +1 -1
  42. package/components/DynamicForm/slots/DynamicFormSlots.d.ts +3 -3
  43. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +7 -7
  44. package/components/EditLabel/constants.d.ts +1 -1
  45. package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
  46. package/components/GridLayout/classes/index.d.ts +1 -1
  47. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  48. package/components/ImageSelector/constants.d.ts +1 -1
  49. package/components/ImageSelector/slots/ImageSelectorSlots.d.ts +4 -4
  50. package/components/ImageText/constants.d.ts +1 -1
  51. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  52. package/components/Label/slots/LabelSlots.d.ts +2 -2
  53. package/components/LanguagePopover/LanguagePopover.d.ts +7 -7
  54. package/components/LanguagePopover/LanguagePopover.d.ts.map +1 -1
  55. package/components/LanguagePopover/LanguagePopover.js +40 -36
  56. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  57. package/components/LanguagePopover/types.d.ts +12 -3
  58. package/components/LanguagePopover/types.d.ts.map +1 -1
  59. package/components/LoadingError/LoadingError.js +4 -4
  60. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  61. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  62. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  63. package/components/MenuActions/types.d.ts +1 -1
  64. package/components/MenuActions/types.d.ts.map +1 -1
  65. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  66. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  67. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
  68. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  69. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  70. package/components/PropertyValue/slots/PropertyValueSlots.d.ts +1 -1
  71. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
  72. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  73. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  74. package/components/TabsNavigator/constants.d.ts +1 -1
  75. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +3 -3
  76. package/components/TimePicker/slots/TimePickerSlots.d.ts +8 -8
  77. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  78. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  79. package/components/WindowConfirm/WindowConfirm.js +10 -10
  80. package/components/WindowConfirm/WindowConfirm.styles.d.ts.map +1 -1
  81. package/components/WindowConfirm/WindowConfirm.styles.js +26 -5
  82. package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +5 -5
  83. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +1 -2
  84. package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
  85. package/components/areas/components/AreasAdmin/AreasAdmin.js +295 -119
  86. package/components/areas/components/AreasAdmin/AreasAdmin.styles.d.ts.map +1 -1
  87. package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +309 -70
  88. package/components/areas/components/AreasAdmin/constants.d.ts +8 -0
  89. package/components/areas/components/AreasAdmin/constants.d.ts.map +1 -1
  90. package/components/areas/components/AreasAdmin/constants.js +10 -2
  91. package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts +19 -0
  92. package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts.map +1 -1
  93. package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.js +2 -2
  94. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +66 -9
  95. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts.map +1 -1
  96. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +176 -93
  97. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts +6 -0
  98. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.d.ts.map +1 -0
  99. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/ContainerModules.js +191 -0
  100. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts +2 -0
  101. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/index.d.ts.map +1 -0
  102. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts +37 -0
  103. package/components/areas/components/AreasAdmin/subcomponents/ContainerModules/types.d.ts.map +1 -0
  104. package/components/areas/components/AreasAdmin/types.d.ts +29 -3
  105. package/components/areas/components/AreasAdmin/types.d.ts.map +1 -1
  106. package/components/areas/dictionary.d.ts +3 -0
  107. package/components/areas/dictionary.d.ts.map +1 -1
  108. package/components/areas/dictionary.js +4 -1
  109. package/components/areas/hooks/index.d.ts +1 -1
  110. package/components/areas/hooks/index.d.ts.map +1 -1
  111. package/components/areas/hooks/useAreas/index.d.ts +5 -0
  112. package/components/areas/hooks/useAreas/index.d.ts.map +1 -1
  113. package/components/areas/hooks/useAreas/index.js +16 -7
  114. package/components/areas/icons.js +3 -10
  115. package/components/datagrids/slots/DataGridSlot.d.ts +6 -6
  116. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  117. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +5 -5
  118. package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +4 -4
  119. package/components/extended/mui/Autocomplete/constants.d.ts +1 -1
  120. package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
  121. package/components/extended/mui/Avatar/slots/AvatarSlots.d.ts +1 -1
  122. package/components/extended/mui/Badge/slots/BadgeSlots.d.ts +1 -1
  123. package/components/extended/mui/Button/slots/ButtonSlots.d.ts +2 -2
  124. package/components/extended/mui/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  125. package/components/extended/mui/DatePicker/constants.d.ts +1 -1
  126. package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +3 -3
  127. package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  128. package/components/extended/mui/Divider/slots/DividerSlots.d.ts +1 -1
  129. package/components/extended/mui/IconButton/slots/IconButtonSlots.d.ts +1 -1
  130. package/components/extended/mui/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  131. package/components/extended/mui/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  132. package/components/extended/mui/MenuItem/slots/MenuItemSlots.d.ts +4 -4
  133. package/components/extended/mui/NavLink/slots/NavLinkSlots.d.ts +1 -1
  134. package/components/extended/mui/Popover/Popover.d.ts.map +1 -1
  135. package/components/extended/mui/Popover/Popover.js +41 -41
  136. package/components/extended/mui/Popper/slots/PopperStlots.d.ts +1 -1
  137. package/components/extended/mui/Radio/constants.d.ts +1 -1
  138. package/components/extended/mui/Radio/slots/styled.d.ts +2 -2
  139. package/components/extended/mui/Select/constants.d.ts +1 -1
  140. package/components/extended/mui/Select/slots/SelectSlots.d.ts +5 -5
  141. package/components/extended/mui/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  142. package/components/extended/mui/Stack/slots/StackSlot.d.ts +1 -1
  143. package/components/extended/mui/Switch/constants.d.ts +1 -1
  144. package/components/extended/mui/Switch/slots/SwitchSlots.d.ts +2 -2
  145. package/components/extended/mui/Tab/Slots/TabSlots.d.ts +4 -4
  146. package/components/extended/mui/Tab/constants.d.ts +1 -1
  147. package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
  148. package/components/extended/mui/TextField/constants.d.ts +1 -1
  149. package/components/extended/mui/TextField/slots/TextFieldSlots.d.ts +4 -4
  150. package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  151. package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  152. package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  153. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  154. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  155. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  156. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  157. package/components/formatters/ImageFormatter/constants.d.ts +1 -1
  158. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
  159. package/components/formatters/NestedFormatter/constants.d.ts +1 -1
  160. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  161. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  162. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  163. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  164. package/components/hook-form/RHFCheckableList/constants.d.ts +1 -1
  165. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  166. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
  167. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  168. package/components/hook-form/RHFRadioGroup/constants.d.ts +1 -1
  169. package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +1 -1
  170. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  171. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  172. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  173. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  174. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
  175. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
  176. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
  177. package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
  178. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
  179. package/index.js +674 -673
  180. package/package.json +7 -7
  181. package/test/mocks/dictionary-mock.d.ts +1 -0
  182. package/test/mocks/dictionary-mock.d.ts.map +1 -1
  183. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +0 -171
  184. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js +0 -45
  185. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +0 -69
  186. 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
- flexDirection: "row",
10
- flexWrap: "nowrap",
11
- alignItems: "center",
12
- height: s.vars.size.baseSpacings.sp12,
13
- minHeight: s.vars.size.baseSpacings.sp12,
14
- padding: `0 ${s.generalSettings.isMobile ? s.vars.size.baseSpacings.sp2 : s.vars.size.baseSpacings.sp4}`,
15
- borderBottom: `1px solid ${s.vars.palette.border.default}`,
16
- gap: s.vars.size.baseSpacings.sp3,
17
- width: "100%",
18
- overflow: "hidden"
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
- containerIsotypeName: ({ theme: s }) => ({
26
- display: "flex",
27
- flexDirection: "row",
38
+ primarySection: ({ theme: i, ownerState: s }) => ({
28
39
  alignItems: "center",
29
- justifyContent: "space-between",
30
- gap: s.vars.size.baseSpacings.sp3,
31
- padding: `${s.vars.size.baseSpacings.sp3} 0`,
32
- /**
33
- * Se pone los px directamente porque no existe un token con este valor
34
- */
35
- width: "204px",
36
- minWidth: "204px"
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: ({ theme: s }) => ({
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
- padding: `0 ${s.vars.size.baseSpacings.sp2}`,
61
+ content: ({ theme: i, ownerState: s }) => ({
62
+ alignItems: "center",
55
63
  display: "flex",
56
- flexDirection: "row",
57
- justifyContent: "flex-start",
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
- flex: "1",
60
- height: s.vars.size.baseSpacings.sp12,
61
- overflow: "auto"
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
- * Propiedades de estilo para el componente raíz de la barra de aplicaciones.
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
- * Color de la barra de aplicaciones.
10
+ * Optional color contract kept for compatibility with the shared package API.
18
11
  */
19
12
  color?: Extract<ComponentPalletColor, 'default'>;
20
13
  /**
21
- * Opción de tamaño de la barra de aplicaciones.
14
+ * Supported AppBar sizes.
22
15
  */
23
16
  size?: Extract<Sizes, 'small' | 'medium'>;
24
17
  /**
25
- * Opción de aparición de la barra de aplicaciones.
18
+ * AppBar visual variant.
26
19
  */
27
20
  variant?: 'standard';
28
21
  /**
29
- * Indica si la barra lateral está anclada.
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
- * Función que activa la visualización del menú de la aplicación en la vista móvil.
30
+ * Toggle handler for the temporary mobile sidebar drawer.
34
31
  */
35
32
  onToggleVisible: () => void;
36
33
  /**
37
- * Función que activa la visualización del menú de la aplicación en la vista móvil.
34
+ * Toggle handler for the anchored desktop sidebar state.
38
35
  */
39
36
  onToggleAnchored: () => void;
40
37
  /**
41
- * Elementos secundarios de la barra de aplicaciones.
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: ReactNode;
49
+ children?: ReactNode;
44
50
  /**
45
- * URL de la imagen del logotipo de la compañía.
51
+ * Deprecated company logo prop preserved for compatibility with existing
52
+ * host consumers.
46
53
  */
47
54
  companyLogo?: string;
48
55
  /**
49
- * Nombre de la compañía.
56
+ * Deprecated company name prop preserved for compatibility with existing
57
+ * host consumers.
50
58
  */
51
59
  companyName?: string;
52
60
  /**
53
- * Identificador de prueba.
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 type AppBarOwnerState = Pick<AppBarProps, 'size'> & {
70
+ export interface AppBarOwnerState {
71
+ /**
72
+ * Whether the current device is mobile.
73
+ */
58
74
  isMobile: boolean;
59
- };
60
- /**
61
- * Define los tipos de Slots disponibles para el `AppBar`.
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,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,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;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAG3B,UAAU,EAAE,OAAO,CAAC;IAGpB,QAAQ,EAAE,OAAO,CAAC;IAGlB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AACF,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,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG;IACzD,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAA;AACD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,eAAe,EAAE,OAAO,WAAW,EAAE,KAAK,CAAC,CAAC"}
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<"text" | "root" | "selected" | "outlined", string>;
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;