@m4l/components 9.1.41 → 9.1.43

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 (38) hide show
  1. package/.storybook/constants.d.ts +11 -0
  2. package/.storybook/decorators/WithDictionaryContext/contants.d.ts +3 -0
  3. package/.storybook/decorators/WithDictionaryContext/index.d.ts +1 -0
  4. package/components/BaseModule/BaseModule.js +3 -1
  5. package/components/BaseModule/types.d.ts +2 -0
  6. package/components/CommonActions/components/ActionFormIntro/index.js +1 -1
  7. package/components/MFIsolationApp/MFIsolationApp.js +7 -4
  8. package/components/MFIsolationApp/types.d.ts +10 -0
  9. package/components/MenuActions/MenuActions.js +17 -14
  10. package/components/MenuActions/types.d.ts +1 -1
  11. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +1 -1
  12. package/components/mui_extended/Button/Button.js +6 -3
  13. package/components/mui_extended/Button/ButtonStyles.js +11 -11
  14. package/components/mui_extended/CircularProgress/CircularProgress.test.d.ts +1 -0
  15. package/components/mui_extended/LoadingButton/LoadingButton.d.ts +1 -1
  16. package/components/mui_extended/LoadingButton/LoadingButton.js +17 -55
  17. package/components/mui_extended/LoadingButton/LoadingButton.styles.js +10 -155
  18. package/components/mui_extended/LoadingButton/constants.d.ts +5 -0
  19. package/components/mui_extended/LoadingButton/slots/LoadingButtonEnum.d.ts +1 -3
  20. package/components/mui_extended/LoadingButton/slots/LoadingButtonEnum.js +1 -3
  21. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +4 -20
  22. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.js +6 -18
  23. package/components/mui_extended/LoadingButton/types.d.ts +3 -5
  24. package/components/mui_extended/MenuItem/MenuItem.js +28 -29
  25. package/components/mui_extended/MenuItem/MenuItem.styles.js +0 -12
  26. package/components/mui_extended/Popover/Popover.d.ts +1 -1
  27. package/components/mui_extended/Popover/Popover.js +7 -0
  28. package/components/mui_extended/Select/Select.d.ts +7 -5
  29. package/components/mui_extended/Select/Select.test.d.ts +1 -0
  30. package/components/mui_extended/Select/dictionary.d.ts +3 -0
  31. package/components/mui_extended/Select/slots/SelectEnum.d.ts +7 -2
  32. package/components/mui_extended/Select/slots/SelectSlots.d.ts +16 -4
  33. package/components/mui_extended/Select/slots/index.d.ts +2 -2
  34. package/components/mui_extended/Select/types.d.ts +16 -14
  35. package/package.json +3 -3
  36. package/test/TestAppWrapper.d.ts +2 -0
  37. package/components/mui_extended/Select/stories/SelectOutlied.stories.d.ts +0 -75
  38. package/components/mui_extended/Select/stories/SelectStandar.stories.d.ts +0 -29
@@ -1,8 +1,6 @@
1
1
  var LoadingButtonSlots = /* @__PURE__ */ ((LoadingButtonSlots2) => {
2
- LoadingButtonSlots2["loadingButtonRoot"] = "loadingButtonRoot";
2
+ LoadingButtonSlots2["root"] = "root";
3
3
  LoadingButtonSlots2["skeletonLoadingButton"] = "skeletonLoadingButton";
4
- LoadingButtonSlots2["loadingButtonIcon"] = "loadingButtonIcon";
5
- LoadingButtonSlots2["textLoadingButton"] = "textLoadingButton";
6
4
  LoadingButtonSlots2["circularProgress"] = "circularProgress";
7
5
  return LoadingButtonSlots2;
8
6
  })(LoadingButtonSlots || {});
@@ -2,37 +2,21 @@
2
2
  * `LoadingButtonRootStyled`
3
3
  * Componente raíz del botón que usa el componente `Button` de material UI.
4
4
  */
5
- declare const LoadingButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
6
- ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
7
- }, "children" | "size" | "action" | "color" | "style" | "disabled" | "variant" | "sx" | "classes" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "startIcon" | "endIcon" | "fullWidth" | "disableElevation">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "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" | "form" | "key" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "startIcon" | "endIcon" | "fullWidth" | "disableElevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
5
+ declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "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" | "form" | "label" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "startIcon" | "endIcon" | "skeletonWidth" | "fullWidth" | "disableElevation" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
8
6
  ownerState: Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown>;
9
7
  }, {}, {}>;
10
8
  /**
11
9
  * `SkeletonLoadingButtonStyled`
12
10
  * Esqueleto de carga del botón que usa el componente `Skeleton` de M4L.
13
11
  */
14
- declare const SkeletonLoadingButtonStyled: 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').LoadingButtonOwnerState> & Record<string, unknown> & {
15
- ownerState: Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown>;
16
- }, {}, {}>;
17
- /**
18
- * `LoadingButtonIconStyled`
19
- * Ícono estilizado del botón (inicio o fin) que usa el componente `Icon` de M4L.
20
- */
21
- declare const LoadingButtonIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../..').IconProps, keyof import('../../..').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
22
- ownerState: Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown>;
23
- }, {}, {}>;
24
- /**
25
- * `TextLoadingButtonStyled`
26
- * Texto estilizado del botón del componente `Typography` de M4L.
27
- */
28
- declare const TextLoadingButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
12
+ declare const SkeletonLoadingButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
29
13
  ownerState: Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown>;
30
14
  }, {}, {}>;
31
15
  /**
32
16
  * `CircularProgressStyled`
33
17
  * Indicador de progreso circular estilizado del componente `CircularProgress` de M4L.
34
18
  */
35
- declare const CircularProgressStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CircularProgress/types').CircularProgressProps, keyof import('../../CircularProgress/types').CircularProgressProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
19
+ declare const CircularProgressStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CircularProgress/types').CircularProgressProps, keyof import('../../CircularProgress/types').CircularProgressProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown> & {
36
20
  ownerState: Partial<import('../types').LoadingButtonOwnerState> & Record<string, unknown>;
37
21
  }, {}, {}>;
38
- export { LoadingButtonRootStyled, SkeletonLoadingButtonStyled, LoadingButtonIconStyled, TextLoadingButtonStyled, CircularProgressStyled, };
22
+ export { RootStyled, SkeletonLoadingButtonStyled, CircularProgressStyled, };
@@ -1,36 +1,24 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { Button } from "@mui/material";
3
2
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
4
- import { I as Icon } from "../../../Icon/Icon.js";
5
- import { T as Typography } from "../../Typography/Typography.js";
6
3
  import { C as CircularProgress } from "../../CircularProgress/CircularProgress.js";
7
4
  import { l as loadingButtonStyles } from "../LoadingButton.styles.js";
8
5
  import { L as LOADING_BUTTON_KEY_COMPONENT } from "../constants.js";
9
6
  import { L as LoadingButtonSlots } from "./LoadingButtonEnum.js";
10
- const LoadingButtonRootStyled = styled(Button, {
7
+ import { B as Button } from "../../Button/Button.js";
8
+ const RootStyled = styled(Button, {
11
9
  name: LOADING_BUTTON_KEY_COMPONENT,
12
- slot: LoadingButtonSlots.loadingButtonRoot
13
- })(loadingButtonStyles?.loadingButtonRoot);
10
+ slot: LoadingButtonSlots.root
11
+ })(loadingButtonStyles?.root);
14
12
  const SkeletonLoadingButtonStyled = styled(Skeleton, {
15
13
  name: LOADING_BUTTON_KEY_COMPONENT,
16
14
  slot: LoadingButtonSlots.skeletonLoadingButton
17
15
  })(loadingButtonStyles?.skeletonLoadingButton);
18
- const LoadingButtonIconStyled = styled(Icon, {
19
- name: LOADING_BUTTON_KEY_COMPONENT,
20
- slot: LoadingButtonSlots.loadingButtonIcon
21
- })(loadingButtonStyles?.loadingButtonIcon);
22
- const TextLoadingButtonStyled = styled(Typography, {
23
- name: LOADING_BUTTON_KEY_COMPONENT,
24
- slot: LoadingButtonSlots.textLoadingButton
25
- })(loadingButtonStyles?.textLoadingButton);
26
16
  const CircularProgressStyled = styled(CircularProgress, {
27
17
  name: LOADING_BUTTON_KEY_COMPONENT,
28
18
  slot: LoadingButtonSlots.circularProgress
29
19
  })(loadingButtonStyles?.circularProgress);
30
20
  export {
31
21
  CircularProgressStyled as C,
32
- LoadingButtonRootStyled as L,
33
- SkeletonLoadingButtonStyled as S,
34
- TextLoadingButtonStyled as T,
35
- LoadingButtonIconStyled as a
22
+ RootStyled as R,
23
+ SkeletonLoadingButtonStyled as S
36
24
  };
@@ -1,15 +1,13 @@
1
1
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
- import { PaletteColor, Theme } from '@mui/material';
2
+ import { Theme } from '@mui/material';
3
3
  import { LOADING_BUTTON_KEY_COMPONENT } from './constants';
4
4
  import { LoadingButtonSlots } from './slots/LoadingButtonEnum';
5
5
  import { ButtonProps } from '../Button/types';
6
- export interface LoadingButtonProps extends Omit<ButtonProps, 'label'> {
7
- label?: string;
6
+ export interface LoadingButtonProps extends ButtonProps {
8
7
  loading?: boolean;
9
8
  }
10
9
  export interface LoadingButtonOwnerState extends Pick<LoadingButtonProps, 'size' | 'variant' | 'color' | 'disabled' | 'loading'> {
11
10
  disabled?: boolean;
12
- paletteColor: PaletteColor;
13
11
  }
14
12
  export type LoadingButtonSlotsType = keyof typeof LoadingButtonSlots;
15
- export type LoadingButtonStyles = Partial<OverridesStyleRules<LoadingButtonSlotsType, typeof LOADING_BUTTON_KEY_COMPONENT, Theme> | undefined> | undefined;
13
+ export type LoadingButtonStyles = OverridesStyleRules<LoadingButtonSlotsType, typeof LOADING_BUTTON_KEY_COMPONENT, Theme>;
@@ -1,5 +1,4 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { createElement } from "react";
3
2
  import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
4
3
  import { useTheme } from "@mui/material";
5
4
  import clsx from "clsx";
@@ -12,7 +11,6 @@ const MenuItem = (props) => {
12
11
  const {
13
12
  startIcon,
14
13
  endIcon,
15
- key,
16
14
  label,
17
15
  value,
18
16
  skeletonWidth = "100%",
@@ -74,41 +72,42 @@ const MenuItem = (props) => {
74
72
  };
75
73
  const checkedIcon = "https://s3.us-east-1.amazonaws.com/static.made4labs/environments/d1/frontend/components/menu_item/checked.svg";
76
74
  const hasCheckedIcon = checked && checkedIcon;
77
- return /* @__PURE__ */ createElement(
75
+ return /* @__PURE__ */ jsxs(
78
76
  MenuItemRootStyled,
79
77
  {
80
78
  ...other,
81
- key,
82
79
  value,
83
80
  ownerState: { ...ownerState },
84
81
  disabled,
85
82
  disableRipple: true,
86
83
  className: clsx("M4LMenuItemRoot", classes.root, className),
87
- "data-testid": "MenuItemRoot"
88
- },
89
- hasCheckedIcon && /* @__PURE__ */ jsx(
90
- MenuItemIconCheckedStyled,
91
- {
92
- src: checkedIcon,
93
- ownerState: { ...ownerState },
94
- className: classes.menuItemIconChecked
95
- }
96
- ),
97
- /* @__PURE__ */ jsxs(MenuItemContainerStyled, { ownerState: { ...ownerState }, className: classes.menuItemContainer, children: [
98
- renderIcon(startIcon, "MenuItemStartIcon", getComponentSlotRoot("MenuItemStartIcon")),
99
- /* @__PURE__ */ jsx(
100
- MenuItemTypographyStyled,
101
- {
102
- ownerState: { ...ownerState },
103
- variant: "body",
104
- size: adjustedSize,
105
- "data-testid": "MenuItemLabel",
106
- className: classes.menuItemTypography,
107
- children: label
108
- }
109
- ),
110
- renderIcon(endIcon, "MenuItemEndIcon", getComponentSlotRoot("MenuItemEndIcon"))
111
- ] })
84
+ "data-testid": "MenuItemRoot",
85
+ children: [
86
+ hasCheckedIcon && /* @__PURE__ */ jsx(
87
+ MenuItemIconCheckedStyled,
88
+ {
89
+ src: checkedIcon,
90
+ ownerState: { ...ownerState },
91
+ className: classes.menuItemIconChecked
92
+ }
93
+ ),
94
+ /* @__PURE__ */ jsxs(MenuItemContainerStyled, { ownerState: { ...ownerState }, className: classes.menuItemContainer, children: [
95
+ renderIcon(startIcon, "MenuItemStartIcon", getComponentSlotRoot("MenuItemStartIcon")),
96
+ /* @__PURE__ */ jsx(
97
+ MenuItemTypographyStyled,
98
+ {
99
+ ownerState: { ...ownerState },
100
+ variant: "body",
101
+ size: adjustedSize,
102
+ "data-testid": "MenuItemLabel",
103
+ className: classes.menuItemTypography,
104
+ children: label
105
+ }
106
+ ),
107
+ renderIcon(endIcon, "MenuItemEndIcon", getComponentSlotRoot("MenuItemEndIcon"))
108
+ ] })
109
+ ]
110
+ }
112
111
  );
113
112
  };
114
113
  export {
@@ -5,18 +5,6 @@ const menuItemStyles = {
5
5
  * @updatedAt 2024-12-27 08:28:36 - automatic
6
6
  * @createdAt 2024-12-27 08:28:33 - automatic
7
7
  * @author Andrés Quintero - automatic
8
- * @updatedUser Andrés Quintero - automatic
9
- * @updatedAt 2024-12-27 08:28:36 - automatic
10
- * @createdAt 2024-12-27 08:27:31 - automatic
11
- * @author Andrés Quintero - automatic
12
- * @updatedUser Andrés Quintero - automatic
13
- * @updatedAt 2024-12-27 08:28:36 - automatic
14
- * @createdAt 2024-12-13 12:45:48 - automatic
15
- * @author SebastianM - automatic
16
- * @author Bruce Escobar - automatic
17
- * @createdAt 2024-10-22 10:38:00 - automatic
18
- * @updatedAt 2024-12-27 08:28:36 - automatic
19
- * @updatedUser Andrés Quintero - automatic
20
8
  */
21
9
  menuItemRoot: ({ theme, ownerState }) => ({
22
10
  width: "100%",
@@ -19,4 +19,4 @@ import { PopoverProps } from './types';
19
19
  * @updatedAt 2024-12-27 08:28:37 - automatic
20
20
  * @updatedUser Andrés Quintero - automatic
21
21
  */
22
- export declare const Popover: (props: PopoverProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Popover: (props: PopoverProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -12,8 +12,14 @@ const Popover = (props) => {
12
12
  instaceDataTestId,
13
13
  anchorOrigin = { vertical: "bottom", horizontal: "right" },
14
14
  transformOrigin = { vertical: "top", horizontal: "right" },
15
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
16
+ arrowType = "no-arrow",
17
+ open,
15
18
  ...other
16
19
  } = props;
20
+ if (!open) {
21
+ return null;
22
+ }
17
23
  return (
18
24
  /* PopoverRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los
19
25
  overrides que provienen del objeto del tema. Se usa para garantizar de que estos estilos no se
@@ -22,6 +28,7 @@ const Popover = (props) => {
22
28
  PopoverRootStyled,
23
29
  {
24
30
  ownerState: {},
31
+ open,
25
32
  className: clsx(className, POPOVER_CLASS_NAME_SPECIFY),
26
33
  "data-testid": "PopoverRoot",
27
34
  anchorOrigin,
@@ -1,9 +1,11 @@
1
1
  import { SelectProps } from './types';
2
2
  /**
3
- * Select component is an extended version of Material UI Select, which offers additional features such as size control, color palette customization, and icon support.
4
- * @author Bruce Escobar - automatic
5
- * @createdAt 2024-10-22 10:30:26 - automatic
6
- * @updatedAt 2024-10-22 20:03:58 - automatic
7
- * @updatedUser Bruce Escobar - automatic
3
+ * Select component for rendering a dropdown with various options.
4
+ * @param {SelectProps} props - The properties for the Select component.
5
+ * @returns {JSX.Element} The rendered Select component.
6
+ * @author SebastianM - automatic
7
+ * @createdAt 2024-12-23 10:47:53 - automatic
8
+ * @updatedAt 2024-12-30 16:12:59 - automatic
9
+ * @updatedUser SebastianM - automatic
8
10
  */
9
11
  export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Dictionary } from '@m4l/core';
2
+ export declare function getSelectComponentsDictionary(): string[];
3
+ export declare const defaultSelectDictionary: Dictionary;
@@ -1,6 +1,11 @@
1
1
  export declare enum SelectSlots {
2
2
  selectRoot = "selectRoot",
3
- rowIconSelect = "rowIconSelect",
3
+ iconButton = "iconButton",
4
4
  menuItemSelect = "menuItemSelect",
5
- skeletonSelect = "skeletonMenuItem"
5
+ skeletonSelect = "skeletonMenuItem",
6
+ renderOptionContainer = "renderOptionContainer",
7
+ labelOption = "labelOption",
8
+ labelPlaceholer = "labelPlaceholer",
9
+ menuOptions = "menuOptions",
10
+ menu = "menu"
6
11
  }
@@ -1,12 +1,24 @@
1
- export declare const SelectRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SelectProps<unknown>, "children" | "value" | "ref" | "onClose" | "title" | "size" | "name" | "error" | "input" | "rows" | "id" | "type" | "components" | "hidden" | "color" | "content" | "style" | "open" | "multiple" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "slotProps" | "slots" | "label" | "autoComplete" | "placeholder" | "readOnly" | "required" | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "native" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
1
+ export declare const SelectRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SelectProps<unknown>, "children" | "value" | "ref" | "onClose" | "title" | "size" | "name" | "error" | "input" | "rows" | "id" | "type" | "components" | "hidden" | "color" | "content" | "style" | "open" | "multiple" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "slotProps" | "slots" | "label" | "autoComplete" | "placeholder" | "readOnly" | "required" | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "native" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
3
3
  }, {}, {}>;
4
- export declare const RowIconSelect: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
4
+ 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> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
- export declare const MenuItemSelect: import('@emotion/styled').StyledComponent<Pick<import('../../MenuItem').MenuItemProps, keyof import('../../MenuItem').MenuItemProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
7
+ export declare const MenuItemSelectStyled: import('@emotion/styled').StyledComponent<Pick<import('../../MenuItem').MenuItemProps, keyof import('../../MenuItem').MenuItemProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
8
8
  ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
9
9
  }, {}, {}>;
10
- export declare const SkeletonSelect: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
10
+ export declare const SkeletonSelectStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
11
+ ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
12
+ }, {}, {}>;
13
+ export declare const RenderOptionContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
14
+ ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
15
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
16
+ export declare const MenuOptionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
17
+ ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
18
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
19
+ export declare const LabelOptionStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
20
+ ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
21
+ }, {}, {}>;
22
+ export declare const LabelPlaceholerStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
11
23
  ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
12
24
  }, {}, {}>;
@@ -1,2 +1,2 @@
1
- export * from './';
2
- export { SelectSlots } from './SelectEnum';
1
+ export * from './SelectEnum';
2
+ export * from './SelectSlots';
@@ -1,7 +1,7 @@
1
+ import { ComponentPalletColor, Sizes } from '@m4l/styles';
2
+ import { PaletteColor, Theme } from '@mui/material';
1
3
  import { SelectProps as MUISelectProps } from '@mui/material/Select';
2
- import { Theme, PaletteColor } from '@mui/material';
3
4
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
4
- import { Sizes, ComponentPalletColor } from '@m4l/styles';
5
5
  import { SELECT_KEY_COMPONENT } from './constants';
6
6
  import { SelectSlots } from './slots';
7
7
  /**
@@ -12,9 +12,10 @@ import { SelectSlots } from './slots';
12
12
  * @createdAt 2024-10-22 10:30:26 - automatic
13
13
  */
14
14
  export type selectOption = {
15
- id: number | string;
15
+ id: string;
16
16
  label: string;
17
- icon?: string;
17
+ startAdornment?: string;
18
+ endAdornment?: string;
18
19
  };
19
20
  /**
20
21
  * Propiedades que acepta el componente `Select`, extendiendo las propiedades de Material-UI `SelectProps`.
@@ -32,28 +33,29 @@ export type selectOption = {
32
33
  * variant - Variante del Select.
33
34
  * @author Bruce Escobar - automatic
34
35
  * @createdAt 2024-10-22 10:30:26 - automatic
35
- * @updatedAt 2024-10-22 20:03:58 - automatic
36
- * @updatedUser Bruce Escobar - automatic
36
+ * @updatedAt 2024-12-30 16:12:59 - automatic
37
+ * @updatedUser SebastianM - automatic
37
38
  */
38
- export interface SelectProps extends Omit<MUISelectProps, 'size' | 'onChange' | 'value' | 'error'> {
39
+ export interface SelectProps extends Omit<MUISelectProps, 'size' | 'onChange' | 'value' | 'error' | 'variant' | 'color'> {
39
40
  id?: string;
40
- size?: Sizes;
41
+ size?: Extract<Sizes, 'small' | 'medium'>;
41
42
  src?: string;
42
43
  options: Array<selectOption>;
43
44
  value: number | string | string[] | number[];
44
45
  onChange: (options: selectOption | selectOption[]) => void;
45
- multiple?: boolean;
46
46
  disabled?: boolean;
47
47
  error?: boolean;
48
- componentPaletteColor?: ComponentPalletColor;
49
- color?: Extract<ComponentPalletColor, 'primary'>;
50
- variant: 'standard' | 'outlined';
48
+ placeholder?: string;
49
+ color?: Extract<ComponentPalletColor, 'default'>;
50
+ variant: 'text' | 'outlined';
51
+ className?: string;
51
52
  }
52
53
  /**
53
54
  * Propiedades internas que definen el estado del componente `Select`.
54
55
  * paletteColor - Color de la paleta aplicado al Select.
55
56
  */
56
- export interface SelectOwnerState extends Pick<SelectProps, 'classes' | 'size' | 'error' | 'componentPaletteColor' | 'variant' | 'disabled'> {
57
+ export interface SelectOwnerState extends Pick<SelectProps, 'classes' | 'size' | 'error' | 'color' | 'variant' | 'disabled'> {
58
+ dissabled?: boolean;
57
59
  paletteColor: PaletteColor;
58
60
  }
59
61
  /**
@@ -63,4 +65,4 @@ export type SelectSlotsType = keyof typeof SelectSlots;
63
65
  /**
64
66
  * Estilos aplicables al componente Select.
65
67
  */
66
- export type SelectStyles = Partial<OverridesStyleRules<SelectSlotsType, typeof SELECT_KEY_COMPONENT, Theme> | undefined> | undefined;
68
+ export type SelectStyles = Partial<OverridesStyleRules<SelectSlotsType, typeof SELECT_KEY_COMPONENT, Theme>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.41",
3
+ "version": "9.1.43",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -52,8 +52,8 @@
52
52
  "zustand": "4.3.6"
53
53
  },
54
54
  "peerDependencies": {
55
- "@m4l/core": "^2.0.12",
56
- "@m4l/graphics": "^7.0.2",
55
+ "@m4l/core": "^2.0.15",
56
+ "@m4l/graphics": "7.0.8",
57
57
  "@m4l/styles": "^7.1.18",
58
58
  "@mui/lab": "5.0.0-alpha.173",
59
59
  "@mui/material": "5.16.7",
@@ -1,5 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { DeviceType } from '@m4l/graphics';
2
3
  interface TestAppWrapperProps {
4
+ forcedDeviceType?: DeviceType;
3
5
  children: ReactNode;
4
6
  }
5
7
  /**
@@ -1,75 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Select } from '../Select';
3
- declare const meta: Meta<typeof Select>;
4
- export default meta;
5
- type Story = StoryObj<typeof Select>;
6
- /**
7
- * Historia base del componente Select.
8
- * Utiliza el tamaño 'medium' y una lista de opciones predefinidas.
9
- * El color del componente es 'primary' y tiene un evento onChange
10
- * que maneja el cambio de la selección.
11
- * - name: Nombre del input del componente.
12
- * - size: Tamaño del select, se puede usar 'small' o 'medium' (en este caso 'medium').
13
- * - options: Lista de opciones disponibles para seleccionar en el componente, en sus propiedades puede llegara "icono" que es la url del icono que se visualizara en las opciones.
14
- * - color: Color del select, con valor por defecto 'primary'.
15
- * - componentPaletteColor: Paleta de colores personalizada para el select (en este caso 'primary').
16
- * - onChange: Función callback que maneja el evento cuando el usuario selecciona una opción.
17
- * @author Bruce Escobar - automatic
18
- * @createdAt 2024-10-22 10:38:00 - automatic
19
- * @updatedAt 2024-10-22 20:03:58 - automatic
20
- * @updatedUser Bruce Escobar - automatic
21
- */
22
- export declare const Base: Story;
23
- /**
24
- * Historia select con valor seleccionado sin icono, los argumentos son los mismos de la historia Base
25
- * @createdAt 2024-10-22 10:38:00 - automatic
26
- */
27
- export declare const SelectWithoutIcon: Story;
28
- /**
29
- * Historia select con valor seleccionado con icono, los argumentos son los mismos de la historia Base
30
- * @createdAt 2024-10-22 10:38:00 - automatic
31
- */
32
- export declare const SelectWithIcon: Story;
33
- /**
34
- *Historia select hover con valor seleccionado sin icono, los argumentos son los mismos de la historia Base
35
- * @createdAt 2024-10-22 10:38:00 - automatic
36
- */
37
- export declare const SelectWithHoverWithoutIcon: Story;
38
- /**
39
- *Historia select hover con valor seleccionado con icono, los argumentos son los mismos de la historia Base
40
- * @createdAt 2024-10-22 10:38:00 - automatic
41
- */
42
- export declare const SelectWithHoverWithIcon: Story;
43
- /**
44
- *Historia select focus con valor seleccionado sin icono, los argumentos son los mismos de la historia Base
45
- * @createdAt 2024-10-22 10:38:00 - automatic
46
- */
47
- export declare const SelectWithFocusWithoutIcon: Story;
48
- /**
49
- *Historia select focus con valor seleccionado con icono, los argumentos son los mismos de la historia Base
50
- * @createdAt 2024-10-22 10:38:00 - automatic
51
- */
52
- export declare const SelectWithFocusWithIcon: Story;
53
- /**
54
- * Historias select con estado error,
55
- * @createdAt 2024-10-22 20:03:57 - automatic
56
- * @createdAt 2024-10-22 10:39:37 - automatic
57
- * @createdAt 2024-10-22 10:39:37 - automatic
58
- */
59
- export declare const SelectWithErrorWithoutIcon: Story;
60
- export declare const SelectWithErrorWithIcon: Story;
61
- export declare const SelectErrorWithHoverWithoutIcon: Story;
62
- export declare const SelectErrorWithHoverWithIcon: Story;
63
- /**
64
- * Historias select con estado error,
65
- */
66
- export declare const SelectDisabledWithoutIcon: Story;
67
- /**
68
- * Historia select disabled con icono en el item
69
- * @createdAt 2024-10-22 10:38:00 - automatic
70
- */
71
- export declare const SelectDisabledWithIcon: Story;
72
- /**
73
- * Select in skeleton mode
74
- */
75
- export declare const WithSkeleton: Story;