@m4l/components 7.2.2 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  3. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
  4. package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +4 -0
  5. package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
  6. package/components/HelperError/HelperError.js +2 -3
  7. package/components/HelperError/types.d.ts +1 -1
  8. package/components/Label/Label.js +9 -1
  9. package/components/Label/Label.styles.js +1 -1
  10. package/components/Label/slots/LabelSlots.d.ts +1 -1
  11. package/components/MFLoader/MFLoader.js +1 -1
  12. package/components/NavLink/NavLink.js +2 -3
  13. package/components/NavLink/types.d.ts +1 -1
  14. package/components/Period/Period.js +2 -2
  15. package/components/PropertyValue/classes/index.d.ts +1 -1
  16. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/styles.d.ts +1 -1
  17. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
  18. package/components/areas/components/AreasViewer/classes/index.d.ts +4 -0
  19. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +5 -0
  20. package/components/areas/contexts/AreasContext/store.js +2 -2
  21. package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  22. package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  23. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.js +1 -1
  24. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.js +1 -1
  25. package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
  26. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +1 -1
  27. package/components/hook-form/RHFInputNumberSpinner/useRHFInputNumberSpinner.d.ts +2 -2
  28. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  29. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +4 -0
  30. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.js +1 -1
  31. package/components/hook-form/RHFormContext/classes/index.d.ts +1 -1
  32. package/components/maps/components/Map/contexts/MapContext/store.d.ts +5 -0
  33. package/components/maps/components/Map/contexts/MapContext/store.js +246 -2
  34. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +3 -0
  35. package/components/maps/components/Map/hooks/useAutoFocus/index.js +1 -1
  36. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +4 -0
  37. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +1 -1
  38. package/components/mui_extended/Accordion/Accordion.js +0 -2
  39. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  40. package/components/mui_extended/Button/styles.d.ts +1 -1
  41. package/components/mui_extended/IconButton/IconButton.d.ts +4 -3
  42. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
  43. package/components/mui_extended/LoadingButton/index.js +1 -1
  44. package/components/mui_extended/LoadingButton/types.d.ts +1 -2
  45. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
  46. package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +3 -2
  47. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  48. package/components/mui_extended/Skeleton/Slots/skeletonSlots.js +2 -2
  49. package/components/mui_extended/Skeleton/skeleton.styles.d.ts +1 -1
  50. package/components/mui_extended/Skeleton/skeleton.styles.js +2 -2
  51. package/components/mui_extended/Tabs/styles.d.ts +1 -1
  52. package/components/mui_extended/Typography/Typography.d.ts +17 -1
  53. package/components/mui_extended/Typography/Typography.js +34 -13
  54. package/components/mui_extended/Typography/constants.d.ts +9 -0
  55. package/components/mui_extended/Typography/constants.js +6 -0
  56. package/components/mui_extended/Typography/slots/typographyEnum.d.ts +7 -0
  57. package/components/mui_extended/Typography/slots/typographyEnum.js +8 -0
  58. package/components/mui_extended/Typography/slots/typographySlots.d.ts +14 -0
  59. package/components/mui_extended/Typography/slots/typographySlots.js +18 -0
  60. package/components/mui_extended/Typography/types.d.ts +53 -4
  61. package/components/mui_extended/Typography/typography.styles.d.ts +2 -0
  62. package/components/mui_extended/Typography/typography.styles.js +332 -0
  63. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +5 -0
  64. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +37 -1
  65. package/contexts/RealTimeContext/store.d.ts +5 -0
  66. package/contexts/RealTimeContext/store.js +14 -2
  67. package/hooks/useSizeContainer/index.d.ts +4 -0
  68. package/hooks/useSizeContainer/index.js +1 -1
  69. package/package.json +9 -27
  70. package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Circular/skeleton.defaultCircular.stories.d.ts +14 -0
  71. package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rectangular/skeleton.defaultRectangular.stories.d.ts +14 -0
  72. package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rounded/skeleton.defaultRounded.stories.d.ts +15 -0
  73. package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Text/skeleton.defaultText.stories.d.ts +15 -0
  74. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/body/Estados/typography.body.estados.stories.d.ts +23 -0
  75. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/bodyDens/Estados/typography.bodyDens.estados.stories.d.ts +23 -0
  76. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h1/Estados/typography.h1.estados.stories.d.ts +23 -0
  77. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h2/Estados/typography.h2.estados.stories.d.ts +23 -0
  78. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h3/Estados/typography.h3.estados.stories.d.ts +23 -0
  79. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h5/Estados/typography.h5.estados.stories.d.ts +23 -0
  80. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraph/Estados/typography.paragraph.estados.stories.d.ts +23 -0
  81. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraphDens/Estados/typography.paragraphDens.estados.stories.d.ts +23 -0
  82. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitle/Estados/typography.subtitle.estados.stories.d.ts +23 -0
  83. package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitleDens/Estados/typography.subtitleDens.estados.stories.d.ts +23 -0
  84. package/test/mocks.d.ts +7 -7
  85. package/utils/index.d.ts +1 -1
  86. package/components/mui_extended/Typography/styles.d.ts +0 -1
  87. package/components/mui_extended/Typography/styles.js +0 -7
  88. package/components/mui_extended/Typography/subcomponents/index.d.ts +0 -5
  89. package/components/mui_extended/Typography/subcomponents/index.js +0 -9
  90. package/components/mui_extended/Typography/subcomponents/types.d.ts +0 -2
  91. package/components/mui_extended/Typography/tests/constants.d.ts +0 -1
  92. package/components/mui_extended/Typography/tests/constants.js +0 -4
  93. package/components/mui_extended/Typography/tests/index.test.d.ts +0 -1
  94. package/components/mui_extended/Typography/tests/utils.d.ts +0 -2
  95. package/components/mui_extended/Typography/tests/utils.js +0 -7
  96. package/components/mui_extended/Typography/utils/Clases/index.d.ts +0 -9
  97. package/components/mui_extended/Typography/utils/Clases/index.js +0 -22
  98. package/components/mui_extended/Typography/utils/Clases/types.d.ts +0 -4
@@ -1,5 +1,5 @@
1
1
  export declare const StyledMUISkeleton: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
2
2
  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;
3
- }, "children" | "height" | "width" | "animation" | "sx" | "classes" | "className" | "style" | "variant">, "children" | "ref" | "title" | "id" | "color" | "content" | "height" | "translate" | "width" | "animation" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "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" | "key" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').SkeletonOwnerState> & Record<string, unknown> & {
3
+ }, "height" | "width" | "animation" | "sx" | "classes" | "className" | "style" | "children" | "variant">, "color" | "content" | "height" | "translate" | "width" | "animation" | "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" | "key" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').SkeletonOwnerState> & Record<string, unknown> & {
4
4
  ownerState: Partial<import('../types').SkeletonOwnerState> & Record<string, unknown>;
5
5
  }, {}, {}>;
@@ -1,12 +1,12 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { i as iconButtonStyles } from "../skeleton.styles.js";
2
+ import { s as skeletonStyles } from "../skeleton.styles.js";
3
3
  import { S as SkeletonSlots } from "./skeletonEnum.js";
4
4
  import { Skeleton } from "@mui/material";
5
5
  import { a as SKELETON_KEY_COMPONENT } from "../constants.js";
6
6
  const StyledMUISkeleton = styled(Skeleton, {
7
7
  name: SKELETON_KEY_COMPONENT,
8
8
  slot: SkeletonSlots.root
9
- })(iconButtonStyles?.root);
9
+ })(skeletonStyles?.root);
10
10
  export {
11
11
  StyledMUISkeleton as S
12
12
  };
@@ -1,2 +1,2 @@
1
1
  import { SkeletonStyles } from './types';
2
- export declare const iconButtonStyles: SkeletonStyles;
2
+ export declare const skeletonStyles: SkeletonStyles;
@@ -1,4 +1,4 @@
1
- const iconButtonStyles = {
1
+ const skeletonStyles = {
2
2
  /**
3
3
  * Slot: root
4
4
  * Componente extendido de MUI Skeleton, que permite personalizar los estilos del componente.
@@ -33,5 +33,5 @@ const iconButtonStyles = {
33
33
  })
34
34
  };
35
35
  export {
36
- iconButtonStyles as i
36
+ skeletonStyles as s
37
37
  };
@@ -1,3 +1,3 @@
1
1
  export declare const MUITabs: import('@emotion/styled').StyledComponent<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
3
- }, "children" | "value" | "sx" | "classes" | "className" | "style" | "aria-label" | "aria-labelledby" | "onChange" | "slotProps" | "slots" | "action" | "variant" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
+ }, "sx" | "classes" | "className" | "style" | "aria-label" | "aria-labelledby" | "children" | "onChange" | "slotProps" | "slots" | "action" | "value" | "variant" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,5 +1,21 @@
1
1
  import { TypographyProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * El componente `Typography` es una extensión de MUI `Typography`
4
+ * que incorpora una capa adicional de diseño basada en el sistema de diseño,
5
+ * junto con la funcionalidad de skeleton.
6
+ *
7
+ * La capa de skeleton se utiliza para mostrar un marcador de posición mientras el contenido real está cargando.
8
+ * El componente puede configurarse para mostrar varias filas de skeleton.
9
+ * @param {TypographyProps} props - The properties for the Typography component.
10
+ * @param {string} [props.skeletonWidth] - The width of the skeleton loader.
11
+ * @param {number} [props.skeletonRows] - The number of rows for the skeleton loader.
12
+ * @param {string} [props.variant] - The variant of the typography.
13
+ * @param {string} [props.color] - The color of the typography.
14
+ * @param {string} [props.size] - The size of the typography.
15
+ * @param {string} [props.className] - Additional class names for the component.
16
+ * @param {string} [props.dataTestid] - The data-testid attribute for testing purposes.
17
+ * @param {React.ReactNode} [props.children] - The content of the typography.
18
+ * @param {object} [props.other] - Additional properties to be passed to the component.
19
+ * @returns {JSX.Element} The rendered Typography component.
4
20
  */
5
21
  export declare function Typography(props: TypographyProps): import("react/jsx-runtime").JSX.Element;
@@ -1,28 +1,49 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useModuleSkeleton } from "@m4l/core";
3
- import { Typography as Typography$1 } from "@mui/material";
4
- import { W as WarpperTypography } from "./styles.js";
5
- import { S as SkeletonTypography } from "./subcomponents/index.js";
6
- import { u as useUtilityClasses } from "./utils/Clases/index.js";
7
2
  import clsx from "clsx";
8
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
9
- import { g as getNameDataTestId } from "./tests/utils.js";
3
+ import { useModuleSkeleton } from "@m4l/core";
4
+ import { T as TYPOGRAPHY_CLASS_NAME_SPECIFY, a as TYPOGRAPHY_KEY_COMPONENT } from "./constants.js";
5
+ import { T as TypographySlots } from "./slots/typographyEnum.js";
6
+ import { S as StyledMUITypography, a as StyledSkeleton } from "./slots/typographySlots.js";
7
+ import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
8
+ import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
10
9
  function Typography(props) {
11
10
  const {
12
11
  skeletonWidth = "100%",
13
- skeletonHeight = "18px",
12
+ skeletonRows = 1,
14
13
  variant = "body",
14
+ color = "text.primary",
15
+ size = "medium",
15
16
  className,
17
+ dataTestid,
18
+ children,
16
19
  ...other
17
20
  } = props;
18
21
  const isSkeleton = useModuleSkeleton();
19
- const classes = useUtilityClasses();
22
+ const { currentSize } = useComponentSize(size);
23
+ const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
24
+ const ownerState = {
25
+ typographyColor: color,
26
+ typographySize: adjustedSize,
27
+ typographyskeletonRows: skeletonRows,
28
+ typographyVariant: variant
29
+ };
20
30
  return /* @__PURE__ */ jsx(
21
- WarpperTypography,
31
+ StyledMUITypography,
22
32
  {
23
- className: clsx(classes.root, className),
24
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
25
- children: !isSkeleton ? /* @__PURE__ */ jsx(Typography$1, { ...other, variant }) : /* @__PURE__ */ jsx(SkeletonTypography, { skeletonWidth, skeletonHeight })
33
+ className: clsx(className, TYPOGRAPHY_CLASS_NAME_SPECIFY),
34
+ variant,
35
+ ownerState: { ...ownerState },
36
+ ...getPropDataTestId(TYPOGRAPHY_KEY_COMPONENT, TypographySlots.root, dataTestid),
37
+ ...other,
38
+ children: !isSkeleton ? children : Array.from({ length: skeletonRows }).map((_, index) => /* @__PURE__ */ jsx(
39
+ StyledSkeleton,
40
+ {
41
+ width: index === skeletonRows - 1 ? skeletonWidth : "100%",
42
+ variant: "text",
43
+ ownerState: { ...ownerState }
44
+ },
45
+ index
46
+ ))
26
47
  }
27
48
  );
28
49
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Nombre de clase css usada para asociarse en los slots del componente.
3
+ */
4
+ export declare const TYPOGRAPHY_KEY_COMPONENT = "M4LTypography";
5
+ /**
6
+ * Nombre de clase creado para aportar especificidad a los estilos del componente. Es usado para sobreescribir los estilos de MUI sin
7
+ * tener la necesidad de agregar valores en !important.
8
+ */
9
+ export declare const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
@@ -0,0 +1,6 @@
1
+ const TYPOGRAPHY_KEY_COMPONENT = "M4LTypography";
2
+ const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
3
+ export {
4
+ TYPOGRAPHY_CLASS_NAME_SPECIFY as T,
5
+ TYPOGRAPHY_KEY_COMPONENT as a
6
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Slots del componente Typography
3
+ */
4
+ export declare enum TypographySlots {
5
+ root = "root",
6
+ skeleton = "skeleton"
7
+ }
@@ -0,0 +1,8 @@
1
+ var TypographySlots = /* @__PURE__ */ ((TypographySlots2) => {
2
+ TypographySlots2["root"] = "root";
3
+ TypographySlots2["skeleton"] = "skeleton";
4
+ return TypographySlots2;
5
+ })(TypographySlots || {});
6
+ export {
7
+ TypographySlots as T
8
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Componente slot styled de Mui Typography
3
+ */
4
+ export declare const StyledMUITypography: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
+ 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;
6
+ }, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "sx" | "classes" | "className" | "style" | "children" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "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" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "key" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TypographyOwnerState> & Record<string, unknown> & {
7
+ ownerState: Partial<import('../types').TypographyOwnerState> & Record<string, unknown>;
8
+ }, {}, {}>;
9
+ /**
10
+ * Componente slot styled de Skeleton
11
+ */
12
+ export declare const StyledSkeleton: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TypographyOwnerState> & Record<string, unknown> & {
13
+ ownerState: Partial<import('../types').TypographyOwnerState> & Record<string, unknown>;
14
+ }, {}, {}>;
@@ -0,0 +1,18 @@
1
+ import { Typography } from "@mui/material";
2
+ import { styled } from "@mui/material/styles";
3
+ import { a as TYPOGRAPHY_KEY_COMPONENT } from "../constants.js";
4
+ import { T as TypographySlots } from "./typographyEnum.js";
5
+ import { t as typographyStyles } from "../typography.styles.js";
6
+ import { S as Skeleton } from "../../Skeleton/Skeleton.js";
7
+ const StyledMUITypography = styled(Typography, {
8
+ name: TYPOGRAPHY_KEY_COMPONENT,
9
+ slot: TypographySlots.root
10
+ })(typographyStyles?.root);
11
+ const StyledSkeleton = styled(Skeleton, {
12
+ name: TYPOGRAPHY_KEY_COMPONENT,
13
+ slot: TypographySlots.root
14
+ })(typographyStyles?.skeleton);
15
+ export {
16
+ StyledMUITypography as S,
17
+ StyledSkeleton as a
18
+ };
@@ -1,7 +1,56 @@
1
- import { TypographyProps as MUITypographyProps } from '@mui/material';
2
- export interface SkeletonProps {
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ import { TypographyProps as MUITypographyProps, Theme } from '@mui/material';
3
+ import { Sizes, M4LTypographyVariants } from '@m4l/styles';
4
+ import { TypographySlots } from './slots/typographyEnum';
5
+ import { TYPOGRAPHY_KEY_COMPONENT } from './constants';
6
+ /**
7
+ * Define la propiedades del componente, se une a las capacidades originales de MUI Typography.
8
+ */
9
+ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'variant' | 'children'> {
10
+ /**
11
+ * Anchura del elemento Skeleton.
12
+ */
3
13
  skeletonWidth?: string | number;
4
- skeletonHeight?: string | number;
14
+ /**
15
+ * Número de filas de texto que se visualizan en skeleton, pueden ser mínimo una y máximo cinco.
16
+ */
17
+ skeletonRows?: 1 | 2 | 3 | 4 | 5;
18
+ /**
19
+ * Opción de color usada para pintar el componente.
20
+ */
21
+ color?: 'text.primary' | 'text.secondary' | 'text.disabled';
22
+ /**
23
+ * Opciones de tamaño del componente.
24
+ */
25
+ size?: Extract<Sizes, 'small' | 'medium'>;
26
+ /**
27
+ * Listas de variantes de tipografía disponibles para la aplicación web.
28
+ */
29
+ variant?: M4LTypographyVariants;
30
+ /**
31
+ * Contenido del componente.
32
+ */
33
+ children?: string;
34
+ /**
35
+ * Nombre identificador del componente, es útil para realizar pruebas del componente.
36
+ */
37
+ dataTestid?: string;
5
38
  }
6
- export interface TypographyProps extends MUITypographyProps, SkeletonProps {
39
+ /**
40
+ * Define valores de estado necesarios para estilar el componente.
41
+ */
42
+ export interface TypographyOwnerState {
43
+ typographyColor: TypographyProps['color'];
44
+ typographyVariant: TypographyProps['variant'];
45
+ typographySize: TypographyProps['size'];
46
+ typographyskeletonRows: TypographyProps['skeletonRows'];
7
47
  }
48
+ /**
49
+ * Agrupa la lista de slots del componente.
50
+ */
51
+ export type TypographySlotsType = keyof typeof TypographySlots;
52
+ /**
53
+ * Define las capacidades de estilos css disponibles para los slots del componente,
54
+ * también asocia la clase TYPOGRAPHY_KEY_COMPONENT a cada slot.
55
+ */
56
+ export type TypographyStyles = Partial<OverridesStyleRules<TypographySlotsType, typeof TYPOGRAPHY_KEY_COMPONENT, Theme> | undefined> | undefined;
@@ -0,0 +1,2 @@
1
+ import { TypographyStyles } from './types';
2
+ export declare const typographyStyles: TypographyStyles;