@m4l/components 9.1.87 → 9.1.89

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 (53) hide show
  1. package/@types/types.d.ts +9 -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/MenuActions/MenuActions.d.ts +1 -1
  6. package/components/MenuActions/MenuActions.js +18 -2
  7. package/components/MenuActions/MenuActions.styles.js +17 -4
  8. package/components/MenuActions/slots/MenuActionsEnum.d.ts +3 -1
  9. package/components/MenuActions/slots/MenuActionsEnum.js +2 -0
  10. package/components/MenuActions/slots/MenuActionsSlots.d.ts +6 -0
  11. package/components/MenuActions/slots/MenuActionsSlots.js +10 -0
  12. package/components/MenuActions/types.d.ts +11 -3
  13. package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +4 -0
  14. package/components/hook-form/RHFDateTime/RHFDateTime.js +39 -86
  15. package/components/hook-form/RHFDateTime/RHFDateTime.styles.d.ts +2 -0
  16. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +17 -0
  17. package/components/hook-form/RHFDateTime/constants.d.ts +1 -0
  18. package/components/hook-form/RHFDateTime/constants.js +4 -0
  19. package/components/hook-form/RHFDateTime/slots/RHFDateTimeEnum.d.ts +3 -0
  20. package/components/hook-form/RHFDateTime/slots/RHFDateTimeEnum.js +7 -0
  21. package/components/hook-form/RHFDateTime/slots/RHFDateTimeSlots.d.ts +1 -0
  22. package/components/hook-form/RHFDateTime/slots/RHFDateTimeSlots.js +9 -0
  23. package/components/hook-form/RHFDateTime/tests/RHFDateTime.test.d.ts +1 -0
  24. package/components/hook-form/RHFDateTime/types.d.ts +13 -12
  25. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +1 -5
  26. package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +33 -0
  27. package/components/mui_extended/DateTimePicker/DateTimePicker.js +154 -0
  28. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.d.ts +2 -0
  29. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +752 -0
  30. package/components/mui_extended/DateTimePicker/constants.d.ts +1 -0
  31. package/components/mui_extended/DateTimePicker/constants.js +4 -0
  32. package/components/mui_extended/DateTimePicker/icons.d.ts +4 -0
  33. package/components/mui_extended/DateTimePicker/icons.js +10 -0
  34. package/components/mui_extended/DateTimePicker/slots/DateTimePickerEnum.d.ts +10 -0
  35. package/components/mui_extended/DateTimePicker/slots/DateTimePickerEnum.js +14 -0
  36. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +26 -0
  37. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +49 -0
  38. package/components/mui_extended/DateTimePicker/tests/DateTimePicker.test.d.ts +1 -0
  39. package/components/mui_extended/DateTimePicker/types.d.ts +51 -0
  40. package/package.json +1 -1
  41. package/components/hook-form/RHFDateTime/classes/constants.d.ts +0 -1
  42. package/components/hook-form/RHFDateTime/classes/constants.js +0 -4
  43. package/components/hook-form/RHFDateTime/classes/index.d.ts +0 -11
  44. package/components/hook-form/RHFDateTime/classes/index.js +0 -45
  45. package/components/hook-form/RHFDateTime/classes/types.d.ts +0 -16
  46. package/components/hook-form/RHFDateTime/styles.js +0 -7
  47. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +0 -5
  48. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.js +0 -15
  49. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +0 -5
  50. package/components/hook-form/RHFDateTime/test/constants.d.ts +0 -1
  51. package/components/hook-form/RHFDateTime/test/constants.js +0 -4
  52. package/components/hook-form/RHFDateTime/test/utils.d.ts +0 -2
  53. package/components/hook-form/RHFDateTime/test/utils.js +0 -7
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.87",
3
+ "version": "9.1.89",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -1 +0,0 @@
1
- export declare const componentName = "M4LRHFDateTime";
@@ -1,4 +0,0 @@
1
- const componentName = "M4LRHFDateTime";
2
- export {
3
- componentName as c
4
- };
@@ -1,11 +0,0 @@
1
- import { RHFDateTimeClassesType } from './types';
2
- import { OwnerState } from '../types';
3
- export declare const dateTimeClasses: RHFDateTimeClassesType;
4
- export declare function getRHFCheckboxUtilityClass(slot: string): string;
5
- /**
6
- * TODO: Documentar
7
- */
8
- export declare const useUtilityClasses: (ownerState: OwnerState) => {
9
- skeleton: string;
10
- root: string;
11
- };
@@ -1,45 +0,0 @@
1
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
- import { unstable_composeClasses } from "@mui/base";
3
- import { c as componentName } from "./constants.js";
4
- generateUtilityClasses(componentName, [
5
- /* elements */
6
- "root",
7
- "skeleton",
8
- /* states or variants of elements */
9
- "small",
10
- "medium",
11
- "isFocus",
12
- "isTabSelected",
13
- "isDisabled",
14
- "variantInfo",
15
- "variantSuccess",
16
- "variantWarning",
17
- "variantError"
18
- ]);
19
- function getRHFCheckboxUtilityClass(slot) {
20
- return generateUtilityClass(componentName, slot);
21
- }
22
- const useUtilityClasses = (ownerState) => {
23
- const slots = {
24
- root: [
25
- "root",
26
- ownerState.size === "small" && "small",
27
- ownerState.size === "medium" && "medium",
28
- ownerState.isFocus && "isFocus",
29
- ownerState.isTabSelected && "isTabSelected",
30
- ownerState.disabled && "isDisabled",
31
- ownerState.variant === "info" && "variantInfo",
32
- ownerState.variant === "success" && "variantSuccess",
33
- ownerState.variant === "warning" && "variantWarning",
34
- ownerState.variant === "error" && "variantError"
35
- ],
36
- skeleton: ["skeleton"]
37
- };
38
- const composedClasses = unstable_composeClasses(slots, getRHFCheckboxUtilityClass, {});
39
- return {
40
- ...composedClasses
41
- };
42
- };
43
- export {
44
- useUtilityClasses as u
45
- };
@@ -1,16 +0,0 @@
1
- import { useUtilityClasses } from '.';
2
- export interface RHFDateTimeClassesType {
3
- root: string;
4
- skeleton: string;
5
- small: string;
6
- medium: string;
7
- isFocus: string;
8
- isTabSelected: string;
9
- isDisabled: string;
10
- variantInfo: string;
11
- variantSuccess: string;
12
- variantWarning: string;
13
- variantError: string;
14
- }
15
- export type RHFDateTimeClassesKey = keyof RHFDateTimeClassesType;
16
- export type RHFDateTimeClasses = ReturnType<typeof useUtilityClasses>;
@@ -1,7 +0,0 @@
1
- import { styled } from "@mui/material";
2
- const RHFDateTimeRoot = styled("div")(({ theme }) => ({
3
- ...theme.components?.M4LRHFDateTime?.styleOverrides || {}
4
- }));
5
- export {
6
- RHFDateTimeRoot as R
7
- };
@@ -1,5 +0,0 @@
1
- import { SkeletonRHFDateTimeProps } from './types';
2
- /**
3
- * TODO: Documentar
4
- */
5
- export declare const SkeletonRHFDateTime: (props: SkeletonRHFDateTimeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Skeleton } from "@mui/material";
3
- const SkeletonRHFDateTime = (props) => {
4
- const { skeletonWidth, skeletonHeight, className, label } = props;
5
- return /* @__PURE__ */ jsxs(Fragment, { children: [
6
- label && /* @__PURE__ */ jsx(Skeleton, { variant: "text", height: "14px", width: "30%" }),
7
- /* @__PURE__ */ jsxs("div", { className: className.skeleton, children: [
8
- /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletonHeight }),
9
- /* @__PURE__ */ jsx(Skeleton, { variant: "circular" })
10
- ] })
11
- ] });
12
- };
13
- export {
14
- SkeletonRHFDateTime as S
15
- };
@@ -1,5 +0,0 @@
1
- import { RHFDateTimeProps } from '../../types';
2
- import { RHFDateTimeClasses } from '../../classes/types';
3
- export interface SkeletonRHFDateTimeProps extends Pick<RHFDateTimeProps, 'skeletonWidth' | 'skeletonHeight' | 'label'> {
4
- className: RHFDateTimeClasses;
5
- }
@@ -1 +0,0 @@
1
- export declare const RHFDATETIME_PREFIX = "RHFDateTime";
@@ -1,4 +0,0 @@
1
- const RHFDATETIME_PREFIX = "RHFDateTime";
2
- export {
3
- RHFDATETIME_PREFIX as R
4
- };
@@ -1,2 +0,0 @@
1
- import { RHFDateTimeClassesKey } from '../classes/types';
2
- export declare const getNameRHFDateTimeDataTestId: (KEY: RHFDateTimeClassesKey) => string;
@@ -1,7 +0,0 @@
1
- import { R as RHFDATETIME_PREFIX } from "./constants.js";
2
- const getNameRHFDateTimeDataTestId = (KEY) => {
3
- return `${RHFDATETIME_PREFIX}-${KEY}`;
4
- };
5
- export {
6
- getNameRHFDateTimeDataTestId as g
7
- };