@m4l/components 9.2.60 → 9.2.62

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