@m4l/components 9.1.88 → 9.1.90

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 (76) hide show
  1. package/@types/types.d.ts +19 -1
  2. package/components/Chip/Chip.js +3 -1
  3. package/components/Chip/ChipStyles.js +19 -14
  4. package/components/Chip/types.d.ts +8 -3
  5. package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +4 -0
  6. package/components/hook-form/RHFDateTime/RHFDateTime.js +39 -86
  7. package/components/hook-form/RHFDateTime/RHFDateTime.styles.d.ts +2 -0
  8. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +17 -0
  9. package/components/hook-form/RHFDateTime/constants.d.ts +1 -0
  10. package/components/hook-form/RHFDateTime/constants.js +4 -0
  11. package/components/hook-form/RHFDateTime/slots/RHFDateTimeEnum.d.ts +3 -0
  12. package/components/hook-form/RHFDateTime/slots/RHFDateTimeEnum.js +7 -0
  13. package/components/hook-form/RHFDateTime/slots/RHFDateTimeSlots.d.ts +1 -0
  14. package/components/hook-form/RHFDateTime/slots/RHFDateTimeSlots.js +9 -0
  15. package/components/hook-form/RHFDateTime/tests/RHFDateTime.test.d.ts +1 -0
  16. package/components/hook-form/RHFDateTime/types.d.ts +13 -12
  17. package/components/index.d.ts +1 -1
  18. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +1 -5
  19. package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +33 -0
  20. package/components/mui_extended/DateTimePicker/DateTimePicker.js +154 -0
  21. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.d.ts +2 -0
  22. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +752 -0
  23. package/components/mui_extended/DateTimePicker/constants.d.ts +1 -0
  24. package/components/mui_extended/DateTimePicker/constants.js +4 -0
  25. package/components/mui_extended/DateTimePicker/icons.d.ts +4 -0
  26. package/components/mui_extended/DateTimePicker/icons.js +10 -0
  27. package/components/mui_extended/DateTimePicker/slots/DateTimePickerEnum.d.ts +10 -0
  28. package/components/mui_extended/DateTimePicker/slots/DateTimePickerEnum.js +14 -0
  29. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +26 -0
  30. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +49 -0
  31. package/components/mui_extended/DateTimePicker/tests/DateTimePicker.test.d.ts +1 -0
  32. package/components/mui_extended/DateTimePicker/types.d.ts +51 -0
  33. package/components/mui_extended/NavLink/NavLink.d.ts +9 -0
  34. package/components/mui_extended/NavLink/NavLink.js +68 -0
  35. package/components/mui_extended/NavLink/NavLink.styles.d.ts +2 -0
  36. package/components/mui_extended/NavLink/NavLink.styles.js +85 -0
  37. package/components/mui_extended/NavLink/constants.d.ts +14 -0
  38. package/components/mui_extended/NavLink/constants.js +10 -0
  39. package/components/mui_extended/NavLink/slots/NavLinkEnum.d.ts +6 -0
  40. package/components/mui_extended/NavLink/slots/NavLinkEnum.js +10 -0
  41. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +12 -0
  42. package/components/mui_extended/NavLink/slots/NavLinkSlots.js +29 -0
  43. package/components/mui_extended/NavLink/slots/index.d.ts +0 -0
  44. package/components/mui_extended/NavLink/tests/NavLink.test.d.ts +1 -0
  45. package/components/mui_extended/NavLink/types.d.ts +36 -0
  46. package/index.js +1 -1
  47. package/package.json +1 -1
  48. package/components/NavLink/NavLink.d.ts +0 -9
  49. package/components/NavLink/NavLink.js +0 -32
  50. package/components/NavLink/classes/constant.d.ts +0 -1
  51. package/components/NavLink/classes/constant.js +0 -4
  52. package/components/NavLink/classes/index.d.ts +0 -9
  53. package/components/NavLink/classes/index.js +0 -23
  54. package/components/NavLink/classes/types.d.ts +0 -4
  55. package/components/NavLink/styles.d.ts +0 -1
  56. package/components/NavLink/styles.js +0 -7
  57. package/components/NavLink/tests/constants.d.ts +0 -1
  58. package/components/NavLink/tests/constants.js +0 -4
  59. package/components/NavLink/tests/utils.d.ts +0 -2
  60. package/components/NavLink/tests/utils.js +0 -7
  61. package/components/NavLink/types.d.ts +0 -5
  62. package/components/hook-form/RHFDateTime/classes/constants.d.ts +0 -1
  63. package/components/hook-form/RHFDateTime/classes/constants.js +0 -4
  64. package/components/hook-form/RHFDateTime/classes/index.d.ts +0 -11
  65. package/components/hook-form/RHFDateTime/classes/index.js +0 -45
  66. package/components/hook-form/RHFDateTime/classes/types.d.ts +0 -16
  67. package/components/hook-form/RHFDateTime/styles.js +0 -7
  68. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +0 -5
  69. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.js +0 -15
  70. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +0 -5
  71. package/components/hook-form/RHFDateTime/test/constants.d.ts +0 -1
  72. package/components/hook-form/RHFDateTime/test/constants.js +0 -4
  73. package/components/hook-form/RHFDateTime/test/utils.d.ts +0 -2
  74. package/components/hook-form/RHFDateTime/test/utils.js +0 -7
  75. /package/components/{NavLink → mui_extended/NavLink}/index.d.ts +0 -0
  76. /package/components/{NavLink → mui_extended/NavLink}/index.js +0 -0
@@ -0,0 +1 @@
1
+ export declare const DATE_TIME_PICKER_KEY_COMPONENT = "M4LDateTimePicker";
@@ -0,0 +1,4 @@
1
+ const DATE_TIME_PICKER_KEY_COMPONENT = "M4LDateTimePicker";
2
+ export {
3
+ DATE_TIME_PICKER_KEY_COMPONENT as D
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const date = "frontend/components/date_time_picker/assets/icons/date.svg";
2
+ export declare const chevron_left = "frontend/components/date_time_picker/assets/icons/chevron_left_sm.svg";
3
+ export declare const chevron_right = "frontend/components/date_time_picker/assets/icons/chevron_right_sm.svg";
4
+ export declare const chevron_down = "frontend/components/date_time_picker/assets/icons/chevron_down_sm.svg";
@@ -0,0 +1,10 @@
1
+ const date = "frontend/components/date_time_picker/assets/icons/date.svg";
2
+ const chevron_left = "frontend/components/date_time_picker/assets/icons/chevron_left_sm.svg";
3
+ const chevron_right = "frontend/components/date_time_picker/assets/icons/chevron_right_sm.svg";
4
+ const chevron_down = "frontend/components/date_time_picker/assets/icons/chevron_down_sm.svg";
5
+ export {
6
+ chevron_left as a,
7
+ chevron_down as b,
8
+ chevron_right as c,
9
+ date as d
10
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum DateTimePickerEnum {
2
+ rootDesktop = "rootDesktop",
3
+ rootMobile = "rootMobile",
4
+ popper = "popper",
5
+ paper = "paper",
6
+ pickersCalendarHeader = "pickersCalendarHeader",
7
+ iconButton = "iconButton",
8
+ pickersDay = "pickersDay",
9
+ skeleton = "skeleton"
10
+ }
@@ -0,0 +1,14 @@
1
+ var DateTimePickerEnum = /* @__PURE__ */ ((DateTimePickerEnum2) => {
2
+ DateTimePickerEnum2["rootDesktop"] = "rootDesktop";
3
+ DateTimePickerEnum2["rootMobile"] = "rootMobile";
4
+ DateTimePickerEnum2["popper"] = "popper";
5
+ DateTimePickerEnum2["paper"] = "paper";
6
+ DateTimePickerEnum2["pickersCalendarHeader"] = "pickersCalendarHeader";
7
+ DateTimePickerEnum2["iconButton"] = "iconButton";
8
+ DateTimePickerEnum2["pickersDay"] = "pickersDay";
9
+ DateTimePickerEnum2["skeleton"] = "skeleton";
10
+ return DateTimePickerEnum2;
11
+ })(DateTimePickerEnum || {});
12
+ export {
13
+ DateTimePickerEnum as D
14
+ };
@@ -0,0 +1,26 @@
1
+ export declare const DesktopDateTimePickerRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').DesktopDateTimePickerProps<unknown> & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('@mui/x-date-pickers').DesktopDateTimePickerProps<unknown>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
2
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
3
+ }, {}, {}>;
4
+ export declare const MobileDateTimePickerRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').MobileDateTimePickerProps<unknown, import('@mui/x-date-pickers').DateOrTimeView> & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('@mui/x-date-pickers').MobileDateTimePickerProps<unknown, import('@mui/x-date-pickers').DateOrTimeView>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
5
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
6
+ }, {}, {}>;
7
+ export declare const PopperStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PopperProps & import('react').RefAttributes<HTMLDivElement>, "children" | "ref" | "title" | "component" | "id" | "container" | "components" | "hidden" | "color" | "content" | "style" | "open" | "transition" | "translate" | "sx" | "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" | "placement" | "slotProps" | "slots" | "anchorEl" | "disablePortal" | "keepMounted" | "modifiers" | "popperOptions" | "popperRef" | "key"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
8
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
9
+ }, {}, {}>;
10
+ export declare const PaperStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
+ 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;
12
+ }, "children" | "style" | "square" | "variant" | "sx" | "classes" | "className" | "elevation">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "square" | "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" | "key" | "elevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
13
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
14
+ }, {}, {}>;
15
+ export declare const PickersCalendarHeaderStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown> & import('react').RefAttributes<HTMLButtonElement>, keyof import('react').RefAttributes<HTMLButtonElement> | keyof import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
16
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
17
+ }, {}, {}>;
18
+ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "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" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
19
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
20
+ }, {}, {}>;
21
+ export declare const PickersDayStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').PickersDayProps<unknown> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "ref" | "title" | "component" | "name" | "id" | "type" | "selected" | "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" | "form" | "key" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "day" | "disableHighlightToday" | "showDaysOutsideCurrentMonth" | "disableMargin" | "isAnimating" | "onDaySelect" | "outsideCurrentMonth" | "isFirstVisibleCell" | "isLastVisibleCell" | "today"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
22
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
23
+ }, {}, {}>;
24
+ export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
25
+ ownerState: Partial<import('../types').DateTimePickerOwnerState> & Record<string, unknown>;
26
+ }, {}, {}>;
@@ -0,0 +1,49 @@
1
+ import { styled, Popper, Paper } from "@mui/material";
2
+ import { DesktopDateTimePicker, MobileDateTimePicker, PickersCalendarHeader, PickersDay } from "@mui/x-date-pickers";
3
+ import { d as dateTimePickerStyles } from "../DateTimePicker.styles.js";
4
+ import { D as DATE_TIME_PICKER_KEY_COMPONENT } from "../constants.js";
5
+ import { D as DateTimePickerEnum } from "./DateTimePickerEnum.js";
6
+ import { I as IconButton } from "../../IconButton/IconButton.js";
7
+ import { S as Skeleton } from "../../Skeleton/Skeleton.js";
8
+ const DesktopDateTimePickerRootStyled = styled(DesktopDateTimePicker, {
9
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
10
+ slot: DateTimePickerEnum.rootDesktop
11
+ })(dateTimePickerStyles.rootDesktop);
12
+ const MobileDateTimePickerRootStyled = styled(MobileDateTimePicker, {
13
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
14
+ slot: DateTimePickerEnum.rootMobile
15
+ })(dateTimePickerStyles.rootMobile);
16
+ const PopperStyled = styled(Popper, {
17
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
18
+ slot: DateTimePickerEnum.popper
19
+ })(dateTimePickerStyles.popper);
20
+ const PaperStyled = styled(Paper, {
21
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
22
+ slot: DateTimePickerEnum.paper
23
+ })(dateTimePickerStyles.paper);
24
+ const PickersCalendarHeaderStyled = styled(PickersCalendarHeader, {
25
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
26
+ slot: DateTimePickerEnum.pickersCalendarHeader
27
+ })(dateTimePickerStyles.pickersCalendarHeader);
28
+ const IconButtonStyled = styled(IconButton, {
29
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
30
+ slot: DateTimePickerEnum.iconButton
31
+ })(dateTimePickerStyles.iconButton);
32
+ const PickersDayStyled = styled(PickersDay, {
33
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
34
+ slot: DateTimePickerEnum.pickersDay
35
+ })(dateTimePickerStyles.pickersDay);
36
+ const SkeletonStyled = styled(Skeleton, {
37
+ name: DATE_TIME_PICKER_KEY_COMPONENT,
38
+ slot: DateTimePickerEnum.skeleton
39
+ })(dateTimePickerStyles.skeleton);
40
+ export {
41
+ DesktopDateTimePickerRootStyled as D,
42
+ IconButtonStyled as I,
43
+ MobileDateTimePickerRootStyled as M,
44
+ PopperStyled as P,
45
+ SkeletonStyled as S,
46
+ PickersCalendarHeaderStyled as a,
47
+ PickersDayStyled as b,
48
+ PaperStyled as c
49
+ };
@@ -0,0 +1,51 @@
1
+ import { Theme } from '@mui/material';
2
+ import { Sizes } from '@m4l/styles';
3
+ import { DateTimePickerProps as MuiDateTimePickerProps } from '@mui/x-date-pickers';
4
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
5
+ import { TextFieldVariants } from '../TextField/types';
6
+ import { DateTimePickerEnum } from './slots/DateTimePickerEnum';
7
+ import { DATE_TIME_PICKER_KEY_COMPONENT } from './constants';
8
+ export interface DateTimePickerProps<T extends Date> extends MuiDateTimePickerProps<T> {
9
+ /**
10
+ * Tamaño del componente.
11
+ */
12
+ size?: Extract<Sizes, 'small' | 'medium'>;
13
+ /**
14
+ * Indica si esta en error.
15
+ */
16
+ error?: boolean;
17
+ /**
18
+ * ClassName
19
+ */
20
+ className?: string;
21
+ /**
22
+ * dataTestId
23
+ */
24
+ dataTestId?: string;
25
+ /**
26
+ * Variante del campo de texto.
27
+ * variant="text"
28
+ */
29
+ variant?: TextFieldVariants;
30
+ }
31
+ export type DateTimePickerOwnerState = {
32
+ /**
33
+ * Tamaño del componente.
34
+ */
35
+ size: Extract<Sizes, 'small' | 'medium'>;
36
+ /**
37
+ * Indica si esta en error.
38
+ */
39
+ error?: boolean;
40
+ /**
41
+ * Variante del campo de texto.
42
+ * variant="text"
43
+ */
44
+ variant?: TextFieldVariants;
45
+ /**
46
+ *
47
+ */
48
+ disabled: boolean;
49
+ };
50
+ export type DateTimePickerSlotsType = keyof typeof DateTimePickerEnum;
51
+ export type DateTimePickerStyles = M4LOverridesStyleRules<DateTimePickerSlotsType, typeof DATE_TIME_PICKER_KEY_COMPONENT, Theme>;
@@ -0,0 +1,9 @@
1
+ import { NavLinkProps } from './types';
2
+ /**
3
+ * NavLink es un componente de presentación e interacción diseñado para facilitar la navegación dentro de una aplicación o sitio web.
4
+ * Este componente utiliza un texto o enlace visualmente destacado que permite a los usuarios acceder rápidamente a una página o sección de interés. Su diseño lo hace fácilmente identificable,
5
+ * lo que mejora la experiencia de usuario al proporcionar una interfaz clara e intuitiva.
6
+ * @param {NavLinkProps} props - Las propiedades del componente.
7
+ * @returns {JSX.Element} El componente NavLink renderizado.
8
+ */
9
+ export declare const NavLink: (props: NavLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,68 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { R as RouterNavLinkRootStyled, a as RouterNavLinkStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/NavLinkSlots.js";
3
+ import { useModuleSkeleton } from "@m4l/core";
4
+ import { N as NAV_LINK_KEY_COMPONENT, c as classNavLinkRoot, a as NAV_LINK_SPECIFY } from "./constants.js";
5
+ import { N as NavLinkSlots } from "./slots/NavLinkEnum.js";
6
+ import { clsx } from "clsx";
7
+ import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
8
+ import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
9
+ const NavLink = (props) => {
10
+ const {
11
+ children,
12
+ text,
13
+ size = "medium",
14
+ disabled,
15
+ skeletonWidth,
16
+ color,
17
+ dataTestId,
18
+ ...others
19
+ } = props;
20
+ const isSkeleton = useModuleSkeleton();
21
+ const { currentSize } = useComponentSize(size);
22
+ const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
23
+ const ownerState = {
24
+ disabled,
25
+ size
26
+ };
27
+ return /* @__PURE__ */ jsx(
28
+ RouterNavLinkRootStyled,
29
+ {
30
+ ownerState: {},
31
+ ...getPropDataTestId(NAV_LINK_KEY_COMPONENT, NavLinkSlots.root, dataTestId),
32
+ children: !isSkeleton ? /* @__PURE__ */ jsx(
33
+ RouterNavLinkStyled,
34
+ {
35
+ size: adjustedSize,
36
+ role: "link",
37
+ ownerState,
38
+ disabled,
39
+ "aria-disabled": disabled,
40
+ ...others,
41
+ children: ({ isActive }) => /* @__PURE__ */ jsxs(Fragment, { children: [
42
+ /* @__PURE__ */ jsx(
43
+ TypographyStyled,
44
+ {
45
+ size: adjustedSize,
46
+ color,
47
+ disabled,
48
+ ownerState,
49
+ skeletonWidth,
50
+ className: clsx(
51
+ classNavLinkRoot,
52
+ NAV_LINK_SPECIFY,
53
+ "M4lclassCssSpecificity",
54
+ { active: isActive, inactive: !isActive }
55
+ ),
56
+ children: text
57
+ }
58
+ ),
59
+ typeof children === "function" ? children({ isActive }) : children
60
+ ] })
61
+ }
62
+ ) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: {}, variant: "rounded" }) })
63
+ }
64
+ );
65
+ };
66
+ export {
67
+ NavLink as N
68
+ };
@@ -0,0 +1,2 @@
1
+ import { NavLinkStyles } from './types';
2
+ export declare const navLinkStyles: NavLinkStyles;
@@ -0,0 +1,85 @@
1
+ import { g as getHeightSizeStyles } from "../../../utils/getHeightSizeStyles.js";
2
+ import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
3
+ const navLinkStyles = {
4
+ /** 🌳 Estilos para el componente raiz 🌳 */
5
+ root: () => ({}),
6
+ /** 🔠 Estilos para el componente Typography 🔠 */
7
+ typographyStyled: ({ ownerState, theme }) => ({
8
+ "&.MuiTypography-root": {
9
+ color: "inherit",
10
+ cursor: ownerState.disabled ? "not-allowed" : "inherit",
11
+ /** 🔠 Estilos para tamaños de la tipografia 🔠 */
12
+ ...getTypographyStyles(
13
+ theme.generalSettings.isMobile,
14
+ ownerState.size || "medium",
15
+ "body"
16
+ ),
17
+ ...getTypographyStyles(
18
+ theme.generalSettings.isMobile,
19
+ ownerState.size || "small",
20
+ "body"
21
+ )
22
+ }
23
+ }),
24
+ /** 💀 Estilo para el componente Skeleton 💀 */
25
+ skeletonStyled: ({ ownerState, theme }) => ({
26
+ "&.MuiSkeleton-root": {
27
+ "&.M4lclassCssSpecificity": {
28
+ width: "100px",
29
+ borderRadius: theme.vars.size.borderRadius.r1,
30
+ display: "flex",
31
+ padding: theme.vars.size.baseSpacings.sp1,
32
+ backgroundColor: theme.vars.palette.skeleton.transition,
33
+ /** ☠️ Estilos para tamaños del Skeleton ☠️ */
34
+ ...getHeightSizeStyles(
35
+ theme.generalSettings.isMobile,
36
+ ownerState.size || "medium",
37
+ "base"
38
+ ),
39
+ ...getHeightSizeStyles(
40
+ theme.generalSettings.isMobile,
41
+ ownerState.size || "small",
42
+ "base"
43
+ )
44
+ }
45
+ }
46
+ }),
47
+ /** 👻 Estilo para el componente RouterNavLink 👻 */
48
+ routerNavLinkStyled: ({ theme, ownerState }) => ({
49
+ /** 😶‍🌫️ Estilo Disabeld & Enabled para el componente RouterNavLink 😶‍🌫️ */
50
+ cursor: ownerState.disabled ? "not-allowed" : "pointer",
51
+ pointerEvents: ownerState.disabled ? "none" : "auto",
52
+ color: ownerState.disabled ? theme.vars.palette.text.disabled : theme.vars.palette.primary.enabled,
53
+ /** Estilo Hover para el componente RouterNavLink */
54
+ "&:hover": {
55
+ color: theme.vars.palette.primary.hover
56
+ },
57
+ /** Estilo para la clase active para el componente Typography hace la funcion de "Visited" 👌*/
58
+ "&.active": {
59
+ color: theme.vars.palette.primary.focus,
60
+ //Estado visitado del componente
61
+ "&:hover": {
62
+ color: theme.vars.palette.primary.hover
63
+ // Hover del Typography
64
+ },
65
+ "&.Mui-focusVisible, &:focus-visible": {
66
+ outline: `1px solid ${theme.vars.palette["primary"].focusVisible}`,
67
+ outlineOffset: 2
68
+ }
69
+ },
70
+ /** Estilo Active para el componente RouterNavLink */
71
+ "&:active": {
72
+ color: theme.vars.palette.primary.active
73
+ },
74
+ /** Estilo Focus-Visible para el componente RouterNavLink */
75
+ "&:focus-visible": {
76
+ color: theme.vars.palette.primary.focusVisible,
77
+ outline: `1px solid ${theme.vars.palette["primary"].focusVisible}`,
78
+ outlineOffset: 2,
79
+ borderRadius: theme.vars.size.borderRadius["r0-5"]
80
+ }
81
+ })
82
+ };
83
+ export {
84
+ navLinkStyles as n
85
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Clave de componente para el componente Label
3
+ */
4
+ export declare const NAV_LINK_KEY_COMPONENT = "M4LNavLink";
5
+ export declare const classLabelRoot: string;
6
+ /**
7
+ * Nombre de clase creado para aportar especificidad a los estilos del componente. Es usado para sobreescribir los estilos de MUI sin
8
+ * tener la necesidad de agregar valores en !important.
9
+ */
10
+ export declare const NAV_LINK_SPECIFY = "M4lclassCssSpecificity";
11
+ /**
12
+ * Inventario de clases CSS para el componente Typography.
13
+ */
14
+ export declare const classNavLinkRoot: Record<string, string>;
@@ -0,0 +1,10 @@
1
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
+ import { N as NavLinkSlots } from "./slots/NavLinkEnum.js";
3
+ const NAV_LINK_KEY_COMPONENT = "M4LNavLink";
4
+ const NAV_LINK_SPECIFY = "M4lclassCssSpecificity";
5
+ const classNavLinkRoot = getComponentClasses(NAV_LINK_KEY_COMPONENT, NavLinkSlots);
6
+ export {
7
+ NAV_LINK_KEY_COMPONENT as N,
8
+ NAV_LINK_SPECIFY as a,
9
+ classNavLinkRoot as c
10
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum NavLinkSlots {
2
+ root = "root",
3
+ typographyStyled = "typographyStyled",
4
+ skeletonStyled = "skeletonStyled",
5
+ routerNavLinkStyled = "routerNavLinkStyled"
6
+ }
@@ -0,0 +1,10 @@
1
+ var NavLinkSlots = /* @__PURE__ */ ((NavLinkSlots2) => {
2
+ NavLinkSlots2["root"] = "root";
3
+ NavLinkSlots2["typographyStyled"] = "typographyStyled";
4
+ NavLinkSlots2["skeletonStyled"] = "skeletonStyled";
5
+ NavLinkSlots2["routerNavLinkStyled"] = "routerNavLinkStyled";
6
+ return NavLinkSlots2;
7
+ })(NavLinkSlots || {});
8
+ export {
9
+ NavLinkSlots as N
10
+ };
@@ -0,0 +1,12 @@
1
+ export declare const RouterNavLinkRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState: Partial<import('../types').NavLinkOwnerState> & Record<string, unknown>;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
4
+ export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
+ ownerState: Partial<import('../types').NavLinkOwnerState> & Record<string, unknown>;
6
+ }, {}, {}>;
7
+ export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
+ ownerState: Partial<import('../types').NavLinkOwnerState> & Record<string, unknown>;
9
+ }, {}, {}>;
10
+ export declare const RouterNavLinkStyled: import('@emotion/styled').StyledComponent<Pick<import('react-router-dom').NavLinkProps & import('react').RefAttributes<HTMLAnchorElement>, keyof import('react').RefAttributes<HTMLAnchorElement> | keyof import('react-router-dom').NavLinkProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
+ ownerState: Partial<import('../types').NavLinkOwnerState> & Record<string, unknown>;
12
+ }, {}, {}>;
@@ -0,0 +1,29 @@
1
+ import { NavLink } from "react-router-dom";
2
+ import { styled } from "@mui/material/styles";
3
+ import { N as NavLinkSlots } from "./NavLinkEnum.js";
4
+ import { N as NAV_LINK_KEY_COMPONENT } from "../constants.js";
5
+ import { S as Skeleton } from "../../Skeleton/Skeleton.js";
6
+ import { n as navLinkStyles } from "../NavLink.styles.js";
7
+ import { T as Typography } from "../../Typography/Typography.js";
8
+ const RouterNavLinkRootStyled = styled("div", {
9
+ name: NAV_LINK_KEY_COMPONENT,
10
+ slot: NavLinkSlots.root
11
+ })(navLinkStyles?.root);
12
+ const TypographyStyled = styled(Typography, {
13
+ name: NAV_LINK_KEY_COMPONENT,
14
+ slot: NavLinkSlots.typographyStyled
15
+ })(navLinkStyles?.typographyStyled);
16
+ const SkeletonStyled = styled(Skeleton, {
17
+ name: NAV_LINK_KEY_COMPONENT,
18
+ slot: NavLinkSlots.skeletonStyled
19
+ })(navLinkStyles?.skeletonStyled);
20
+ const RouterNavLinkStyled = styled(NavLink, {
21
+ name: NAV_LINK_KEY_COMPONENT,
22
+ slot: NavLinkSlots.routerNavLinkStyled
23
+ })(navLinkStyles.routerNavLinkStyled);
24
+ export {
25
+ RouterNavLinkRootStyled as R,
26
+ SkeletonStyled as S,
27
+ TypographyStyled as T,
28
+ RouterNavLinkStyled as a
29
+ };
@@ -0,0 +1,36 @@
1
+ import { NavLinkProps as RouterNavLinkProps } from 'react-router-dom';
2
+ import { TypographyProps } from '../Typography/types';
3
+ import { ComponentPalletColor, Sizes } from '@m4l/styles';
4
+ import { NavLinkSlots } from './slots/NavLinkEnum';
5
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
6
+ import { NAV_LINK_KEY_COMPONENT } from './constants';
7
+ import { Theme } from '@mui/material';
8
+ /**
9
+ * 💃 Propiedades del componente NavLink(NavLinkProps)💃.
10
+ */
11
+ export interface NavLinkProps extends RouterNavLinkProps, Pick<TypographyProps, 'skeletonWidth'> {
12
+ text: string;
13
+ /** Define el color del texto. Por defecto es 'primary'. */
14
+ color?: Exclude<ComponentPalletColor, 'primary'>;
15
+ /** Define el with of skeleton mode */
16
+ skeletonWidth?: string | number;
17
+ /** Define el tamaño de la etiqueta. Puede ser 'small' o 'medium'. Por defecto es 'medium'.*/
18
+ size?: Extract<Sizes, 'small' | 'medium'>;
19
+ /** Define el variant de la etiqueta. Por defecto es 'standard'. */
20
+ variant?: 'standard';
21
+ /** Indica si el campo de texto está deshabilitado. */
22
+ disabled?: boolean;
23
+ /** Estilos personalizados para el componente. */
24
+ dataTestId?: string;
25
+ }
26
+ /** Estado del propietario del NavLink.*/
27
+ export type NavLinkOwnerState = Pick<NavLinkProps, 'color'> & {
28
+ /** Indica si el NavLink está deshabilitado. */
29
+ disabled?: boolean;
30
+ /** Define el tamaño de la etiqueta. Puede ser 'small' o 'medium'. Por defecto es 'medium'.*/
31
+ size: Extract<Sizes, 'small' | 'medium'>;
32
+ /** Define el color de la paleta del componente. */
33
+ componentPaletteColor?: ComponentPalletColor;
34
+ };
35
+ export type NavLinkSlotsType = keyof typeof NavLinkSlots;
36
+ export type NavLinkStyles = M4LOverridesStyleRules<NavLinkSlotsType, typeof NAV_LINK_KEY_COMPONENT, Theme>;
package/index.js CHANGED
@@ -3,7 +3,7 @@ import { D } from "./components/DataGrid/index.js";
3
3
  import { g } from "./components/DataGrid/dictionary.js";
4
4
  import { N, T } from "./components/DataGrid/subcomponents/editors/TextEditor/index.js";
5
5
  import { g as g2 } from "./components/DataGrid/utils/getDataGridRowsFromSet.js";
6
- import { N as N2 } from "./components/NavLink/NavLink.js";
6
+ import { N as N2 } from "./components/mui_extended/NavLink/NavLink.js";
7
7
  import { S } from "./components/ScrollToTop/index.js";
8
8
  import { I } from "./components/Icon/Icon.js";
9
9
  import { I as I2 } from "./components/animate/IconButtonAnimate/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.88",
3
+ "version": "9.1.90",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -1,9 +0,0 @@
1
- import { NavLinkProps } from './types';
2
- /**
3
- * TODO: Documentar
4
- * @author Bruce Escobar - automatic
5
- * @createdAt 2024-10-22 09:41:31 - automatic
6
- * @updatedAt 2024-11-25 09:34:36 - automatic
7
- * @updatedUser cesar - automatic
8
- */
9
- export declare const NavLink: (props: NavLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,32 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { NavLink as NavLink$1 } from "react-router-dom";
3
- import { u as useUtilityClasses } from "./classes/index.js";
4
- import { N as NavLinkRoot } from "./styles.js";
5
- import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
6
- import { g as getNameDataTestId } from "./tests/utils.js";
7
- import { T as Typography } from "../mui_extended/Typography/Typography.js";
8
- const NavLink = (props) => {
9
- const { children, text, skeletonWidth, ...others } = props;
10
- const classes = useUtilityClasses();
11
- return /* @__PURE__ */ jsx(
12
- NavLinkRoot,
13
- {
14
- className: classes.root,
15
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
16
- children: /* @__PURE__ */ jsxs(NavLink$1, { ...others, children: [
17
- /* @__PURE__ */ jsx(
18
- Typography,
19
- {
20
- variant: "body",
21
- skeletonWidth,
22
- children: text
23
- }
24
- ),
25
- typeof children === "function" ? children({ isActive: false }) : children
26
- ] })
27
- }
28
- );
29
- };
30
- export {
31
- NavLink as N
32
- };
@@ -1 +0,0 @@
1
- export declare const componentName = "M4LNavLink";