@m4l/components 8.1.0-beta.devManuela.TextField → 8.2.0-beta.devDaniel.MenuActionsBug

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 (191) hide show
  1. package/@types/export.d.ts +0 -3
  2. package/@types/types.d.ts +37 -11
  3. package/components/AccountPopover/classes/index.d.ts +1 -1
  4. package/components/CommonActions/classes/index.d.ts +1 -1
  5. package/components/ControlIncrement/ControlIncrement.d.ts +5 -0
  6. package/components/ControlIncrement/ControlIncrement.styles.d.ts +8 -0
  7. package/components/ControlIncrement/constants.d.ts +25 -0
  8. package/components/ControlIncrement/slots/ControlIncrementEnum.d.ts +6 -0
  9. package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +14 -0
  10. package/components/ControlIncrement/slots/index.d.ts +2 -0
  11. package/components/ControlIncrement/stories/ControlClick/ControlIncrement.controlclick.stories.d.ts +13 -0
  12. package/components/ControlIncrement/stories/DefaultAndDisabled/ControlIncrement.defaultanddisabled.stories.d.ts +17 -0
  13. package/components/ControlIncrement/stories/Sizes/ControlIncrement.sizes.stories.d.ts +21 -0
  14. package/components/ControlIncrement/types.d.ts +56 -0
  15. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
  16. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
  17. package/components/DynamicFilter/DynamicFIlter.styles.js +115 -39
  18. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  19. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
  20. package/components/GridLayout/classes/index.d.ts +1 -1
  21. package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +1 -1
  22. package/components/HelperError/HelperError.d.ts +1 -1
  23. package/components/HelperError/HelperError.js +21 -2
  24. package/components/HelperError/HelperError.styles.js +11 -2
  25. package/components/HelperError/constant.d.ts +9 -0
  26. package/components/HelperError/constant.js +3 -1
  27. package/components/HelperError/slots/HelperErrorEnum.d.ts +3 -0
  28. package/components/HelperError/slots/HelperErrorSlots.d.ts +4 -4
  29. package/components/HelperError/slots/HelperErrorSlots.js +1 -1
  30. package/components/HelperError/types.d.ts +28 -5
  31. package/components/Icon/Icon.d.ts +4 -3
  32. package/components/Icon/Icon.js +54 -71
  33. package/components/Icon/Icon.styles.js +85 -31
  34. package/components/Icon/slots/IconEnum.d.ts +2 -1
  35. package/components/Icon/slots/IconEnum.js +1 -0
  36. package/components/Icon/slots/IconSlots.d.ts +3 -0
  37. package/components/Icon/slots/IconSlots.js +7 -1
  38. package/components/Icon/stories/DefaultWithProps/Icon.defaultWithProps.stories.d.ts +35 -0
  39. package/components/Icon/stories/Preset/Icon.preset.stories.d.ts +16 -0
  40. package/components/Icon/stories/Semantic/Icon.semantic.stories.d.ts +30 -0
  41. package/components/Icon/stories/Sizes/icon.sizes.stories.d.ts +40 -0
  42. package/components/Icon/types.d.ts +16 -12
  43. package/components/InputNumberSpinner/InputNumberSpinner.d.ts +9 -0
  44. package/components/InputNumberSpinner/InputNumberSpinner.styles.d.ts +8 -0
  45. package/components/InputNumberSpinner/constants.d.ts +9 -0
  46. package/components/InputNumberSpinner/hooks/types.d.ts +13 -0
  47. package/components/InputNumberSpinner/hooks/useInputNumberSpinner.d.ts +19 -0
  48. package/components/InputNumberSpinner/index.d.ts +2 -0
  49. package/components/InputNumberSpinner/slots/InputNumberSpinnerEnum.d.ts +7 -0
  50. package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +15 -0
  51. package/components/InputNumberSpinner/slots/index.d.ts +2 -0
  52. package/components/InputNumberSpinner/stories/Default/InputNumberSpinner.default.stories.d.ts +25 -0
  53. package/components/InputNumberSpinner/stories/Error/InputNumberSpinner.error.stories.d.ts +25 -0
  54. package/components/InputNumberSpinner/stories/Sizes/InputNumberSpinner.sizes.stories.d.ts +41 -0
  55. package/components/InputNumberSpinner/stories/Variants/InputNumberSpinner.variants.stories.d.ts +25 -0
  56. package/components/InputNumberSpinner/types.d.ts +64 -0
  57. package/components/Label/Label.d.ts +2 -2
  58. package/components/Label/Label.styles.js +5 -5
  59. package/components/Label/slots/LabelSlots.d.ts +1 -1
  60. package/components/Label/types.d.ts +1 -1
  61. package/components/MFLoader/MFLoader.d.ts +1 -1
  62. package/components/NavLink/NavLink.d.ts +1 -1
  63. package/components/PaperForm/classes/index.d.ts +1 -1
  64. package/components/Period/classes/index.d.ts +1 -1
  65. package/components/PropertyValue/classes/index.d.ts +1 -1
  66. package/components/SideBar/classes/index.d.ts +2 -2
  67. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/styles.d.ts +1 -1
  68. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
  69. package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage.d.ts +5 -1
  70. package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage.js +2 -1
  71. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
  72. package/components/areas/components/AreasViewer/classes/index.d.ts +2 -2
  73. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +1 -1
  74. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
  75. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
  76. package/components/areas/contexts/AreasContext/store.d.ts +1 -1
  77. package/components/areas/contexts/AreasContext/store.js +199 -67
  78. package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  79. package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  80. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +2 -2
  81. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
  82. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +1 -1
  83. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +1 -1
  84. package/components/hook-form/RHFCheckbox/classes/index.d.ts +1 -1
  85. package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
  86. package/components/hook-form/RHFColorPicker/classes/index.d.ts +1 -1
  87. package/components/hook-form/RHFDateTime/classes/index.d.ts +1 -1
  88. package/components/hook-form/RHFTextField/RHFTextField.d.ts +4 -0
  89. package/components/hook-form/RHFTextField/RHFTextField.styles.js +2 -2
  90. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  91. package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +1 -1
  92. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +1 -1
  93. package/components/hook-form/RHFormContext/classes/index.d.ts +1 -1
  94. package/components/maps/components/Map/classes/index.d.ts +1 -1
  95. package/components/maps/components/Map/contexts/MapContext/store.d.ts +1 -1
  96. package/components/maps/components/Map/contexts/MapContext/store.js +166 -106
  97. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +1 -1
  98. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +1 -1
  99. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
  100. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +1 -1
  101. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
  102. package/components/modal/classes/index.d.ts +2 -2
  103. package/components/mui_extended/Accordion/Accordion.d.ts +1 -1
  104. package/components/mui_extended/Accordion/classes/index.d.ts +1 -1
  105. package/components/mui_extended/Avatar/classes/index.d.ts +1 -1
  106. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  107. package/components/mui_extended/Button/classes/index.d.ts +1 -1
  108. package/components/mui_extended/Button/styles.d.ts +1 -1
  109. package/components/mui_extended/CheckBox/classes/index.d.ts +1 -1
  110. package/components/mui_extended/IconButton/IconButton.d.ts +4 -4
  111. package/components/mui_extended/IconButton/IconButton.js +65 -29
  112. package/components/mui_extended/IconButton/IconButton.styles.js +20 -5
  113. package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +2 -1
  114. package/components/mui_extended/IconButton/slots/IconButtonEnum.js +1 -0
  115. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +5 -2
  116. package/components/mui_extended/IconButton/slots/IconButtonSlots.js +7 -1
  117. package/components/mui_extended/IconButton/types.d.ts +46 -2
  118. package/components/mui_extended/LoadingButton/classes/index.d.ts +1 -1
  119. package/components/mui_extended/LoadingButton/index.d.ts +1 -1
  120. package/components/mui_extended/MenuActions/MenuActions.d.ts +8 -1
  121. package/components/mui_extended/MenuActions/MenuActions.js +55 -77
  122. package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +4 -0
  123. package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -38
  124. package/components/mui_extended/MenuActions/constants.d.ts +17 -0
  125. package/components/mui_extended/MenuActions/constants.js +6 -2
  126. package/components/mui_extended/MenuActions/dictionary.d.ts +15 -0
  127. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +8 -5
  128. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -4
  129. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +29 -16
  130. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +16 -33
  131. package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +25 -0
  132. package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +13 -0
  133. package/components/mui_extended/MenuActions/types.d.ts +80 -18
  134. package/components/mui_extended/MenuItem/MenuItem.d.ts +11 -0
  135. package/components/mui_extended/MenuItem/MenuItem.js +66 -0
  136. package/components/mui_extended/MenuItem/MenuItem.stories.d.ts +37 -0
  137. package/components/mui_extended/MenuItem/MenuItem.styles.d.ts +2 -0
  138. package/components/mui_extended/MenuItem/MenuItem.styles.js +111 -0
  139. package/components/mui_extended/MenuItem/constants.d.ts +8 -0
  140. package/components/mui_extended/MenuItem/constants.js +4 -0
  141. package/components/mui_extended/MenuItem/index.d.ts +2 -0
  142. package/components/mui_extended/MenuItem/index.js +1 -0
  143. package/components/mui_extended/MenuItem/slots/MenuItemEnum.d.ts +5 -0
  144. package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +9 -0
  145. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +11 -0
  146. package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +24 -0
  147. package/components/mui_extended/MenuItem/slots/index.d.ts +2 -0
  148. package/components/mui_extended/MenuItem/types.d.ts +41 -0
  149. package/components/mui_extended/MenuItem/types.js +1 -0
  150. package/components/mui_extended/Pager/classes/index.d.ts +2 -2
  151. package/components/mui_extended/Select/Select.d.ts +9 -0
  152. package/components/mui_extended/Select/Select.styles.d.ts +2 -0
  153. package/components/mui_extended/Select/constants.d.ts +8 -0
  154. package/components/mui_extended/Select/index.d.ts +2 -0
  155. package/components/mui_extended/Select/slots/SelectEnum.d.ts +6 -0
  156. package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -0
  157. package/components/mui_extended/Select/slots/index.d.ts +2 -0
  158. package/components/mui_extended/Select/stories/SelectOutlied.stories.d.ts +75 -0
  159. package/components/mui_extended/Select/stories/SelectStandar.stories.d.ts +29 -0
  160. package/components/mui_extended/Select/types.d.ts +66 -0
  161. package/components/mui_extended/Skeleton/Skeleton.d.ts +1 -1
  162. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  163. package/components/mui_extended/Skeleton/skeleton.styles.js +1 -1
  164. package/components/mui_extended/Tab/classes/index.d.ts +1 -1
  165. package/components/mui_extended/Tabs/styles.d.ts +1 -1
  166. package/components/mui_extended/TextField/TextField.d.ts +4 -0
  167. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +2 -2
  168. package/components/mui_extended/Typography/Typography.d.ts +1 -1
  169. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  170. package/components/mui_extended/Typography/typography.styles.js +1 -1
  171. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
  172. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +57 -25
  173. package/contexts/RealTimeContext/store.d.ts +1 -1
  174. package/contexts/RealTimeContext/store.js +15 -7
  175. package/hooks/useSizeContainer/index.d.ts +1 -1
  176. package/package.json +1 -1
  177. package/test/mocks.d.ts +7 -7
  178. package/utils/index.d.ts +1 -1
  179. package/components/Icon/Icon.stories.d.ts +0 -166
  180. package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.d.ts +0 -5
  181. package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.stories.d.ts +0 -21
  182. package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.styles.d.ts +0 -2
  183. package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +0 -1
  184. package/components/hook-form/RHFInputNumberSpinner/index.d.ts +0 -1
  185. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +0 -23
  186. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +0 -9
  187. package/components/hook-form/RHFInputNumberSpinner/slots/index.d.ts +0 -2
  188. package/components/hook-form/RHFInputNumberSpinner/subcomponents/SkeletonSpinner/index.d.ts +0 -4
  189. package/components/hook-form/RHFInputNumberSpinner/types.d.ts +0 -21
  190. package/components/hook-form/RHFInputNumberSpinner/useRHFInputNumberSpinner.d.ts +0 -13
  191. package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +0 -25
@@ -6,6 +6,6 @@ export declare function getButtonUtilityClass(slot: string): string;
6
6
  * TODO: Documentar
7
7
  */
8
8
  export declare const useUtilityClasses: (onwerState: OwnerState) => {
9
- root: string;
10
9
  skeleton: string;
10
+ root: string;
11
11
  };
@@ -1,4 +1,4 @@
1
1
  export declare const ButtonRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
2
  export declare const SKTButton: import('@emotion/styled').StyledComponent<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
4
- }, "height" | "width" | "animation" | "sx" | "classes" | "className" | "style" | "children" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
+ }, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -6,6 +6,6 @@ export declare function getRHFCheckboxUtilityClass(slot: string): string;
6
6
  * TODO: Documentar
7
7
  */
8
8
  export declare const useUtilityClasses: (ownerState: OwnerState) => {
9
- root: string;
10
9
  skeleton: string;
10
+ root: string;
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import { IconButtonProps } from './types';
2
2
  /**
3
- * Provee un botón con un icono para que los clientes ejecuten acciones en la plataforma web. Aporta su versión provisional de carga en red.
3
+ *Los Icon button son habitualmente ubicados en barras de aplicaciones y barras de herramientas. Además, resulta adecuado emplear iconos en botones de alternancia que posibilitan la selección o deselección de una única opción, como añadir o eliminar una estrella a un elemento.
4
4
  * @param props
5
5
  * @returns
6
- * @author Juan Escobar - automatic
7
- * @updatedAt 2024-10-22 09:42:39 - automatic
6
+ * @author Bruce Escobar - automatic
7
+ * @createdAt 2024-10-22 19:53:39 - automatic
8
+ * @updatedAt 2024-10-22 19:53:40 - automatic
8
9
  * @updatedUser Bruce Escobar - automatic
9
- * @createdAt 2024-10-15 17:33:28 - automatic
10
10
  */
11
11
  export declare const IconButton: (props: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
+ import { getPropertyByString } from "@m4l/core";
3
4
  import { useTheme } from "@mui/material";
4
5
  import { e as evalIconColor } from "./helpers/evalIconColor.js";
5
- import { getPropertyByString, useModuleDictionary } from "@m4l/core";
6
6
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
7
- import { S as StyledMUIIconButton, B as BadgeStyled, I as IconStyled } from "./slots/IconButtonSlots.js";
7
+ import { T as TooltipStyled, S as StyledMUIIconButton, B as BadgeStyled, I as IconStyled } from "./slots/IconButtonSlots.js";
8
8
  const IconButton = (props) => {
9
9
  const {
10
10
  src,
@@ -14,18 +14,24 @@ const IconButton = (props) => {
14
14
  disabled,
15
15
  onClick,
16
16
  badgeContent,
17
- withBadge = false,
18
17
  dictionaryTooltipId,
18
+ tooltipContent,
19
+ placement = "bottom",
20
+ instaceDataTestId,
19
21
  componentPaletteColor = "default",
20
- rotationAngle,
21
22
  ...other
22
23
  } = props;
23
24
  const { currentSize } = useComponentSize(size);
25
+ const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
24
26
  const theme = useTheme();
25
- const paletteColor = getPropertyByString(theme.palette, disabled ? "default" : componentPaletteColor, theme.palette.default);
27
+ const paletteColor = getPropertyByString(
28
+ theme.palette,
29
+ disabled ? "default" : componentPaletteColor,
30
+ theme.palette.default
31
+ );
26
32
  const ownerState = {
27
33
  variant,
28
- size,
34
+ size: adjustedSize,
29
35
  disabled,
30
36
  paletteColor,
31
37
  componentPaletteColor
@@ -34,20 +40,53 @@ const IconButton = (props) => {
34
40
  () => evalIconColor(componentPaletteColor, variant),
35
41
  [componentPaletteColor, variant]
36
42
  );
37
- const { getLabel } = useModuleDictionary();
38
- const finalTooltip = useMemo(() => {
39
- if (disabled) {
40
- return void 0;
41
- }
42
- if (tooltip && tooltip !== "") {
43
- return tooltip;
44
- }
45
- if (dictionaryTooltipId && getLabel) {
46
- return getLabel(dictionaryTooltipId);
43
+ return /* @__PURE__ */ jsx(Fragment, { children: tooltipContent ? /* @__PURE__ */ jsx(
44
+ TooltipStyled,
45
+ {
46
+ title: tooltipContent.toString(),
47
+ ownerState: {},
48
+ placement,
49
+ children: /* @__PURE__ */ jsx(
50
+ StyledMUIIconButton,
51
+ {
52
+ ownerState: { ...ownerState },
53
+ onClick: !disabled ? onClick : void 0,
54
+ disableRipple: true,
55
+ disabled,
56
+ "data-testid": "IconButtonRoot",
57
+ tabIndex: 0,
58
+ ...other,
59
+ children: badgeContent ? /* @__PURE__ */ jsx(
60
+ BadgeStyled,
61
+ {
62
+ ownerState: { ...ownerState },
63
+ badgeContent,
64
+ componentPaletteColor,
65
+ children: /* @__PURE__ */ jsx(
66
+ IconStyled,
67
+ {
68
+ ownerState: { ...ownerState },
69
+ src,
70
+ size: adjustedSize,
71
+ color: iconColor,
72
+ disabled
73
+ }
74
+ )
75
+ }
76
+ ) : /* @__PURE__ */ jsx(
77
+ IconStyled,
78
+ {
79
+ ownerState: { ...ownerState },
80
+ src,
81
+ size: adjustedSize,
82
+ color: iconColor,
83
+ disabled
84
+ }
85
+ )
86
+ }
87
+ )
47
88
  }
48
- return void 0;
49
- }, [tooltip, dictionaryTooltipId, getLabel, disabled]);
50
- return /* @__PURE__ */ jsx(
89
+ ) : /* @__PURE__ */ jsx(
51
90
  StyledMUIIconButton,
52
91
  {
53
92
  ownerState: { ...ownerState },
@@ -57,7 +96,7 @@ const IconButton = (props) => {
57
96
  "data-testid": "IconButtonRoot",
58
97
  tabIndex: 0,
59
98
  ...other,
60
- children: withBadge ? /* @__PURE__ */ jsx(
99
+ children: badgeContent ? /* @__PURE__ */ jsx(
61
100
  BadgeStyled,
62
101
  {
63
102
  ownerState: { ...ownerState },
@@ -68,11 +107,9 @@ const IconButton = (props) => {
68
107
  {
69
108
  ownerState: { ...ownerState },
70
109
  src,
71
- size: currentSize,
110
+ size: adjustedSize,
72
111
  color: iconColor,
73
- disabled,
74
- tooltipContent: finalTooltip,
75
- rotationAngle
112
+ disabled
76
113
  }
77
114
  )
78
115
  }
@@ -81,14 +118,13 @@ const IconButton = (props) => {
81
118
  {
82
119
  ownerState: { ...ownerState },
83
120
  src,
84
- size: currentSize,
121
+ size: adjustedSize,
85
122
  color: iconColor,
86
- disabled,
87
- tooltipContent: finalTooltip
123
+ disabled
88
124
  }
89
125
  )
90
126
  }
91
- );
127
+ ) });
92
128
  };
93
129
  export {
94
130
  IconButton as I
@@ -2,16 +2,24 @@ const iconButtonStyles = {
2
2
  /**
3
3
  * TODO: Documentar
4
4
  * @updatedUser Bruce Escobar - automatic
5
- * @updatedAt 2024-10-22 09:42:39 - automatic
5
+ * @updatedAt 2024-10-22 19:53:40 - automatic
6
+ * @createdAt 2024-10-22 19:53:39 - automatic
7
+ * @author Bruce Escobar - automatic
8
+ * @updatedUser Bruce Escobar - automatic
9
+ * @updatedAt 2024-10-22 19:53:40 - automatic
10
+ * @createdAt 2024-10-22 19:27:22 - automatic
11
+ * @author Bruce Escobar - automatic
12
+ * @updatedUser Bruce Escobar - automatic
13
+ * @updatedAt 2024-10-22 19:53:40 - automatic
6
14
  * @createdAt 2024-10-22 09:42:38 - automatic
7
15
  * @author Bruce Escobar - automatic
8
16
  * @updatedUser Bruce Escobar - automatic
9
- * @updatedAt 2024-10-22 09:42:39 - automatic
17
+ * @updatedAt 2024-10-22 19:53:40 - automatic
10
18
  * @createdAt 2024-10-22 09:41:31 - automatic
11
19
  * @author Bruce Escobar - automatic
12
20
  * @author Bruce Escobar - automatic
13
21
  * @createdAt 2024-10-22 09:41:31 - automatic
14
- * @updatedAt 2024-10-22 09:42:39 - automatic
22
+ * @updatedAt 2024-10-22 19:53:40 - automatic
15
23
  * @updatedUser Bruce Escobar - automatic
16
24
  */
17
25
  styledMUIIconButton: ({ ownerState, theme }) => ({
@@ -267,12 +275,19 @@ const iconButtonStyles = {
267
275
  }
268
276
  }
269
277
  }),
270
- //
278
+ /**
279
+ * Tooltip Styles
280
+ * @author Bruce Escobar - automatic
281
+ * @createdAt 2024-10-22 19:53:39 - automatic
282
+ * @updatedAt 2024-10-22 19:53:40 - automatic
283
+ * @updatedUser Bruce Escobar - automatic
284
+ */
285
+ tooltip: () => ({}),
271
286
  /**
272
287
  * Comentado por el momento, falta de documentación en Figma de Badge
273
288
  * @author Bruce Escobar - automatic
274
289
  * @createdAt 2024-10-22 09:41:31 - automatic
275
- * @updatedAt 2024-10-22 09:42:39 - automatic
290
+ * @updatedAt 2024-10-22 19:53:40 - automatic
276
291
  * @updatedUser Bruce Escobar - automatic
277
292
  */
278
293
  badgeIconButton: () => ({
@@ -1,5 +1,6 @@
1
1
  export declare enum IconButtonSlots {
2
2
  styledMUIIconButton = "styledMUIIconButton",
3
3
  icon = "icon",
4
- badgeIconButton = "badgeIconButton"
4
+ badgeIconButton = "badgeIconButton",
5
+ tooltip = "tooltip"
5
6
  }
@@ -2,6 +2,7 @@ var IconButtonSlots = /* @__PURE__ */ ((IconButtonSlots2) => {
2
2
  IconButtonSlots2["styledMUIIconButton"] = "styledMUIIconButton";
3
3
  IconButtonSlots2["icon"] = "icon";
4
4
  IconButtonSlots2["badgeIconButton"] = "badgeIconButton";
5
+ IconButtonSlots2["tooltip"] = "tooltip";
5
6
  return IconButtonSlots2;
6
7
  })(IconButtonSlots || {});
7
8
  export {
@@ -1,6 +1,6 @@
1
1
  export declare const StyledMUIIconButton: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
3
- }, "color" | "size" | "disabled" | "sx" | "classes" | "className" | "style" | "tabIndex" | "children" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "color" | "content" | "translate" | "size" | "disabled" | "sx" | "classes" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "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" | "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" | "children" | "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" | "onResize" | "onResizeCapture" | "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" | "ref" | "action" | "name" | "form" | "key" | "value" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
3
+ }, "children" | "size" | "action" | "color" | "style" | "disabled" | "sx" | "classes" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "form" | "key" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
4
4
  ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
5
5
  }, {}, {}>;
6
6
  export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
@@ -8,6 +8,9 @@ export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<
8
8
  }, {}, {}>;
9
9
  export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').BadgeOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
10
10
  ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
11
- }, "color" | "sx" | "classes" | "className" | "style" | "children" | "components" | "componentsProps" | "slotProps" | "slots" | "badgeContent" | "variant" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "color" | "content" | "translate" | "sx" | "classes" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "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" | "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" | "children" | "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" | "onResize" | "onResizeCapture" | "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" | "components" | "componentsProps" | "slotProps" | "slots" | "ref" | "key" | "badgeContent" | "variant" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
11
+ }, "children" | "components" | "color" | "style" | "variant" | "sx" | "classes" | "className" | "componentsProps" | "slotProps" | "slots" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "componentsProps" | "slotProps" | "slots" | "key" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
12
+ ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
13
+ }, {}, {}>;
14
+ export declare const TooltipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Tooltip').TooltipProps, keyof import('../../Tooltip').TooltipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').IconButtonOwnerState> & Record<string, unknown> & {
12
15
  ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
13
16
  }, {}, {}>;
@@ -4,6 +4,7 @@ import { i as iconButtonStyles } from "../IconButton.styles.js";
4
4
  import { I as IconButtonSlots } from "./IconButtonEnum.js";
5
5
  import { IconButton, Badge } from "@mui/material";
6
6
  import { I as Icon } from "../../../Icon/Icon.js";
7
+ import { T as Tooltip } from "../../Tooltip/Tooltip.js";
7
8
  const StyledMUIIconButton = styled(IconButton, {
8
9
  name: ICON_BUTTON_KEY_COMPONENT,
9
10
  slot: IconButtonSlots.styledMUIIconButton
@@ -16,8 +17,13 @@ const BadgeStyled = styled(Badge, {
16
17
  name: ICON_BUTTON_KEY_COMPONENT,
17
18
  slot: IconButtonSlots.badgeIconButton
18
19
  })(iconButtonStyles?.badgeIconButton);
20
+ const TooltipStyled = styled(Tooltip, {
21
+ name: ICON_BUTTON_KEY_COMPONENT,
22
+ slot: IconButtonSlots.tooltip
23
+ })(iconButtonStyles?.tooltip);
19
24
  export {
20
25
  BadgeStyled as B,
21
26
  IconStyled as I,
22
- StyledMUIIconButton as S
27
+ StyledMUIIconButton as S,
28
+ TooltipStyled as T
23
29
  };
@@ -6,16 +6,60 @@ import { ComponentPalletColor, Sizes } from '@m4l/styles';
6
6
  import { ICON_BUTTON_KEY_COMPONENT } from './constants';
7
7
  import { IconButtonSlots } from './slots';
8
8
  import { BadgeProps } from '../Badge';
9
+ import { TooltipProps } from '../../mui_extended';
10
+ import { ReactNode } from 'react';
9
11
  export type IconButtonVariants = 'contained' | 'outline' | 'text';
10
12
  export type IconButtonSize = 'small' | 'medium';
11
- export interface IconButtonProps extends Omit<IconProps, 'size' | 'color'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>, Pick<BadgeProps, 'badgeContent'> {
13
+ /**
14
+ * Props for the IconButton component.
15
+ * Omit<IconProps, 'size' | 'color'>
16
+ * Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>
17
+ * Pick<BadgeProps, 'badgeContent'>
18
+ * Pick<TooltipProps, 'placement'>
19
+ * [tooltip] - The text to display in the tooltip.
20
+ * [dictionaryTooltipId] - The ID for the dictionary tooltip.
21
+ * [variant] - The variant of the IconButton.
22
+ * [size] - The size of the IconButton.
23
+ * [withBadge] - Whether the IconButton includes a badge.
24
+ * [tooltipContent] - The content to display in the tooltip.
25
+ * [componentPaletteColor] - The color palette for the component.
26
+ * [disabled] - Whether the IconButton is disabled.
27
+ * [instaceDataTestId] - A unique identifier for the HTML element, useful for unit and integration testing.
28
+ */
29
+ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>, Pick<BadgeProps, 'badgeContent'>, Pick<TooltipProps, 'placement'> {
30
+ /**
31
+ * Define el uso de tooltip en IconButton
32
+ */
12
33
  tooltip?: string;
34
+ /**
35
+ * Representa la identificación del tooltip en el diccionario para que designe internamente el getLabel
36
+ */
13
37
  dictionaryTooltipId?: string;
38
+ /**
39
+ * Variante del componente , modifica la aparencia grafica
40
+ */
14
41
  variant?: IconButtonVariants;
42
+ /**
43
+ * Define el tamaño del componente
44
+ */
15
45
  size?: Sizes;
16
- withBadge?: boolean;
46
+ /**
47
+ * Define el mensaje interno del tooltip
48
+ */
49
+ tooltipContent?: ReactNode;
50
+ /**
51
+ * Opciones de color del componente
52
+ */
17
53
  componentPaletteColor?: ComponentPalletColor;
54
+ /**
55
+ * Representa si el componente se encuentra deshabilitado
56
+ */
18
57
  disabled?: boolean;
58
+ /**
59
+ * Propiedad que sirve para complementar el nombre del data-testid, aporta un identificador único del elemento html en toda aplicación.
60
+ * Es útil para realizar pruebas unitarias y de integración.
61
+ */
62
+ instaceDataTestId?: string;
19
63
  }
20
64
  export type OwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'componentPaletteColor'> & {
21
65
  disabled?: boolean;
@@ -6,6 +6,6 @@ export declare function getLoadingButtonUtilityClass(slot: string): string;
6
6
  * TODO: Documentar
7
7
  */
8
8
  export declare const useUtilityClasses: (onwerState: OwnerState) => {
9
- root: string;
10
9
  skeleton: string;
10
+ root: string;
11
11
  };
@@ -3,7 +3,7 @@ import { MuiLabLoadingButtonProps } from './types';
3
3
  * TODO: Documentar
4
4
  * @author Bruce Escobar - automatic
5
5
  * @createdAt 2024-10-22 09:41:31 - automatic
6
- * @updatedAt 2024-10-22 09:42:39 - automatic
6
+ * @updatedAt 2024-10-22 19:27:23 - automatic
7
7
  * @updatedUser Bruce Escobar - automatic
8
8
  */
9
9
  export declare const LoadingButton: (props: MuiLabLoadingButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,15 @@
1
1
  import { default as React } from 'react';
2
2
  import { MenuActionsProps } from './types';
3
3
  /**
4
- * TODO: Documentar
4
+ * Componente `MenuActions`:
5
+ * Un componente interactivo que despliega un menú con diferentes acciones,
6
+ * accesible a través de un botón con ícono. Ofrece soporte para mostrar acciones personalizadas
7
+ * y estilos configurables.
5
8
  */
6
9
  export declare function MenuActions(props: MenuActionsProps): import("react/jsx-runtime").JSX.Element;
10
+ /**
11
+ * Componente `MemonizedMenuActions`:
12
+ * Una versión memorizada del componente `MenuActions` para mejorar el rendimiento.
13
+ */
7
14
  export declare const MemonizedMenuActions: React.MemoExoticComponent<typeof MenuActions>;
8
15
  export default MenuActions;