@m4l/components 8.1.0-beta.devManuela.TextField → 8.2.0-beta.devDaniel.MenuActionsBug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +0 -3
- package/@types/types.d.ts +37 -11
- package/components/AccountPopover/classes/index.d.ts +1 -1
- package/components/CommonActions/classes/index.d.ts +1 -1
- package/components/ControlIncrement/ControlIncrement.d.ts +5 -0
- package/components/ControlIncrement/ControlIncrement.styles.d.ts +8 -0
- package/components/ControlIncrement/constants.d.ts +25 -0
- package/components/ControlIncrement/slots/ControlIncrementEnum.d.ts +6 -0
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +14 -0
- package/components/ControlIncrement/slots/index.d.ts +2 -0
- package/components/ControlIncrement/stories/ControlClick/ControlIncrement.controlclick.stories.d.ts +13 -0
- package/components/ControlIncrement/stories/DefaultAndDisabled/ControlIncrement.defaultanddisabled.stories.d.ts +17 -0
- package/components/ControlIncrement/stories/Sizes/ControlIncrement.sizes.stories.d.ts +21 -0
- package/components/ControlIncrement/types.d.ts +56 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
- package/components/DynamicFilter/DynamicFIlter.styles.js +115 -39
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +1 -1
- package/components/HelperError/HelperError.d.ts +1 -1
- package/components/HelperError/HelperError.js +21 -2
- package/components/HelperError/HelperError.styles.js +11 -2
- package/components/HelperError/constant.d.ts +9 -0
- package/components/HelperError/constant.js +3 -1
- package/components/HelperError/slots/HelperErrorEnum.d.ts +3 -0
- package/components/HelperError/slots/HelperErrorSlots.d.ts +4 -4
- package/components/HelperError/slots/HelperErrorSlots.js +1 -1
- package/components/HelperError/types.d.ts +28 -5
- package/components/Icon/Icon.d.ts +4 -3
- package/components/Icon/Icon.js +54 -71
- package/components/Icon/Icon.styles.js +85 -31
- package/components/Icon/slots/IconEnum.d.ts +2 -1
- package/components/Icon/slots/IconEnum.js +1 -0
- package/components/Icon/slots/IconSlots.d.ts +3 -0
- package/components/Icon/slots/IconSlots.js +7 -1
- package/components/Icon/stories/DefaultWithProps/Icon.defaultWithProps.stories.d.ts +35 -0
- package/components/Icon/stories/Preset/Icon.preset.stories.d.ts +16 -0
- package/components/Icon/stories/Semantic/Icon.semantic.stories.d.ts +30 -0
- package/components/Icon/stories/Sizes/icon.sizes.stories.d.ts +40 -0
- package/components/Icon/types.d.ts +16 -12
- package/components/InputNumberSpinner/InputNumberSpinner.d.ts +9 -0
- package/components/InputNumberSpinner/InputNumberSpinner.styles.d.ts +8 -0
- package/components/InputNumberSpinner/constants.d.ts +9 -0
- package/components/InputNumberSpinner/hooks/types.d.ts +13 -0
- package/components/InputNumberSpinner/hooks/useInputNumberSpinner.d.ts +19 -0
- package/components/InputNumberSpinner/index.d.ts +2 -0
- package/components/InputNumberSpinner/slots/InputNumberSpinnerEnum.d.ts +7 -0
- package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +15 -0
- package/components/InputNumberSpinner/slots/index.d.ts +2 -0
- package/components/InputNumberSpinner/stories/Default/InputNumberSpinner.default.stories.d.ts +25 -0
- package/components/InputNumberSpinner/stories/Error/InputNumberSpinner.error.stories.d.ts +25 -0
- package/components/InputNumberSpinner/stories/Sizes/InputNumberSpinner.sizes.stories.d.ts +41 -0
- package/components/InputNumberSpinner/stories/Variants/InputNumberSpinner.variants.stories.d.ts +25 -0
- package/components/InputNumberSpinner/types.d.ts +64 -0
- package/components/Label/Label.d.ts +2 -2
- package/components/Label/Label.styles.js +5 -5
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/Label/types.d.ts +1 -1
- package/components/MFLoader/MFLoader.d.ts +1 -1
- package/components/NavLink/NavLink.d.ts +1 -1
- package/components/PaperForm/classes/index.d.ts +1 -1
- package/components/Period/classes/index.d.ts +1 -1
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/SideBar/classes/index.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/styles.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage.d.ts +5 -1
- package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage.js +2 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
- package/components/areas/components/AreasViewer/classes/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
- package/components/areas/contexts/AreasContext/store.d.ts +1 -1
- package/components/areas/contexts/AreasContext/store.js +199 -67
- package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +2 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/classes/index.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +1 -1
- package/components/hook-form/RHFDateTime/classes/index.d.ts +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +4 -0
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +2 -2
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +1 -1
- package/components/hook-form/RHFormContext/classes/index.d.ts +1 -1
- package/components/maps/components/Map/classes/index.d.ts +1 -1
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +1 -1
- package/components/maps/components/Map/contexts/MapContext/store.js +166 -106
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +1 -1
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
- package/components/modal/classes/index.d.ts +2 -2
- package/components/mui_extended/Accordion/Accordion.d.ts +1 -1
- package/components/mui_extended/Accordion/classes/index.d.ts +1 -1
- package/components/mui_extended/Avatar/classes/index.d.ts +1 -1
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/classes/index.d.ts +1 -1
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/CheckBox/classes/index.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +4 -4
- package/components/mui_extended/IconButton/IconButton.js +65 -29
- package/components/mui_extended/IconButton/IconButton.styles.js +20 -5
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +2 -1
- package/components/mui_extended/IconButton/slots/IconButtonEnum.js +1 -0
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +5 -2
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +7 -1
- package/components/mui_extended/IconButton/types.d.ts +46 -2
- package/components/mui_extended/LoadingButton/classes/index.d.ts +1 -1
- package/components/mui_extended/LoadingButton/index.d.ts +1 -1
- package/components/mui_extended/MenuActions/MenuActions.d.ts +8 -1
- package/components/mui_extended/MenuActions/MenuActions.js +55 -77
- package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +4 -0
- package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -38
- package/components/mui_extended/MenuActions/constants.d.ts +17 -0
- package/components/mui_extended/MenuActions/constants.js +6 -2
- package/components/mui_extended/MenuActions/dictionary.d.ts +15 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +8 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -4
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +29 -16
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +16 -33
- package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +25 -0
- package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +13 -0
- package/components/mui_extended/MenuActions/types.d.ts +80 -18
- package/components/mui_extended/MenuItem/MenuItem.d.ts +11 -0
- package/components/mui_extended/MenuItem/MenuItem.js +66 -0
- package/components/mui_extended/MenuItem/MenuItem.stories.d.ts +37 -0
- package/components/mui_extended/MenuItem/MenuItem.styles.d.ts +2 -0
- package/components/mui_extended/MenuItem/MenuItem.styles.js +111 -0
- package/components/mui_extended/MenuItem/constants.d.ts +8 -0
- package/components/mui_extended/MenuItem/constants.js +4 -0
- package/components/mui_extended/MenuItem/index.d.ts +2 -0
- package/components/mui_extended/MenuItem/index.js +1 -0
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.d.ts +5 -0
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +9 -0
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +11 -0
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +24 -0
- package/components/mui_extended/MenuItem/slots/index.d.ts +2 -0
- package/components/mui_extended/MenuItem/types.d.ts +41 -0
- package/components/mui_extended/MenuItem/types.js +1 -0
- package/components/mui_extended/Pager/classes/index.d.ts +2 -2
- package/components/mui_extended/Select/Select.d.ts +9 -0
- package/components/mui_extended/Select/Select.styles.d.ts +2 -0
- package/components/mui_extended/Select/constants.d.ts +8 -0
- package/components/mui_extended/Select/index.d.ts +2 -0
- package/components/mui_extended/Select/slots/SelectEnum.d.ts +6 -0
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -0
- package/components/mui_extended/Select/slots/index.d.ts +2 -0
- package/components/mui_extended/Select/stories/SelectOutlied.stories.d.ts +75 -0
- package/components/mui_extended/Select/stories/SelectStandar.stories.d.ts +29 -0
- package/components/mui_extended/Select/types.d.ts +66 -0
- package/components/mui_extended/Skeleton/Skeleton.d.ts +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/skeleton.styles.js +1 -1
- package/components/mui_extended/Tab/classes/index.d.ts +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.d.ts +4 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +2 -2
- package/components/mui_extended/Typography/Typography.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/typography.styles.js +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +57 -25
- package/contexts/RealTimeContext/store.d.ts +1 -1
- package/contexts/RealTimeContext/store.js +15 -7
- package/hooks/useSizeContainer/index.d.ts +1 -1
- package/package.json +1 -1
- package/test/mocks.d.ts +7 -7
- package/utils/index.d.ts +1 -1
- package/components/Icon/Icon.stories.d.ts +0 -166
- package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.d.ts +0 -5
- package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.stories.d.ts +0 -21
- package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.styles.d.ts +0 -2
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +0 -1
- package/components/hook-form/RHFInputNumberSpinner/index.d.ts +0 -1
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +0 -23
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +0 -9
- package/components/hook-form/RHFInputNumberSpinner/slots/index.d.ts +0 -2
- package/components/hook-form/RHFInputNumberSpinner/subcomponents/SkeletonSpinner/index.d.ts +0 -4
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +0 -21
- package/components/hook-form/RHFInputNumberSpinner/useRHFInputNumberSpinner.d.ts +0 -13
- package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +0 -25
|
@@ -57,7 +57,7 @@ export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponen
|
|
|
57
57
|
}, {}, {}>;
|
|
58
58
|
export declare const PopoverMenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
59
59
|
ref?: ((instance: HTMLLIElement | 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<HTMLLIElement> | null | undefined;
|
|
60
|
-
}, "
|
|
60
|
+
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "key" | "selected" | "disableGutters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
61
61
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
62
62
|
}, {}, {}>;
|
|
63
63
|
export declare const PopoverMenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
@@ -54,7 +54,7 @@ export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponen
|
|
|
54
54
|
}, {}, {}>;
|
|
55
55
|
export declare const PopoverMenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
56
56
|
ref?: ((instance: HTMLLIElement | 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<HTMLLIElement> | null | undefined;
|
|
57
|
-
}, "
|
|
57
|
+
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "key" | "selected" | "disableGutters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
58
58
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
59
59
|
}, {}, {}>;
|
|
60
60
|
export declare const PopoverMenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
@@ -3,5 +3,5 @@ export declare const gridLayoutClasses: GridLayoutClasses;
|
|
|
3
3
|
/**
|
|
4
4
|
* TODO: Documentar
|
|
5
5
|
*/
|
|
6
|
-
export declare const useUtilityClasses: () => Record<"
|
|
6
|
+
export declare const useUtilityClasses: () => Record<"static" | "root" | "invisible" | "colapsed" | "resizing" | "dragging" | "gridItemRoot" | "gridItemPlaceholder" | "gridItemFreeMove" | "maximizeMe" | "maximizeOther" | "resizeHide" | "cssTransforms", string>;
|
|
7
7
|
export type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -14,7 +14,7 @@ type MinimalParameters = Pick<CoreProps, 'containerWidth' | 'containerHeight' |
|
|
|
14
14
|
/**
|
|
15
15
|
* TODO: Documentar
|
|
16
16
|
* @author Juan Escobar - automatic
|
|
17
|
-
* @updatedAt 2024-10-22
|
|
17
|
+
* @updatedAt 2024-10-22 19:27:23 - automatic
|
|
18
18
|
* @updatedUser Bruce Escobar - automatic
|
|
19
19
|
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
20
20
|
*/
|
|
@@ -7,7 +7,7 @@ import { HelperErrorProps } from './types';
|
|
|
7
7
|
* @returns {JSX.Element} The rendered HelperError component.
|
|
8
8
|
* @author Bruce Escobar - automatic
|
|
9
9
|
* @createdAt 2024-10-22 09:42:38 - automatic
|
|
10
|
-
* @updatedAt 2024-10-22
|
|
10
|
+
* @updatedAt 2024-10-22 19:47:05 - automatic
|
|
11
11
|
* @updatedUser Bruce Escobar - automatic
|
|
12
12
|
*/
|
|
13
13
|
export declare const HelperError: (props: HelperErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme } from "@mui/material";
|
|
3
|
+
import { getPropertyByString } from "@m4l/core";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { H as HELPER_ERROR_SPINNER_SPECIFY } from "./constant.js";
|
|
6
|
+
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
2
7
|
import { T as TypographyStyled } from "./slots/HelperErrorSlots.js";
|
|
3
8
|
const HelperError = (props) => {
|
|
4
|
-
const { message = "", skeletonWidth } = props;
|
|
9
|
+
const { message = "", skeletonWidth, size = "medium", className } = props;
|
|
10
|
+
const { currentSize } = useComponentSize(size);
|
|
11
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
const paletteColor = getPropertyByString(
|
|
14
|
+
theme.palette,
|
|
15
|
+
"error",
|
|
16
|
+
theme.palette.default
|
|
17
|
+
);
|
|
18
|
+
const ownerState = {
|
|
19
|
+
helperErrorPaletteColor: paletteColor,
|
|
20
|
+
helperErrorSizes: size
|
|
21
|
+
};
|
|
5
22
|
return /* @__PURE__ */ jsx(
|
|
6
23
|
TypographyStyled,
|
|
7
24
|
{
|
|
8
|
-
|
|
25
|
+
className: clsx(HELPER_ERROR_SPINNER_SPECIFY, className),
|
|
26
|
+
ownerState: { ...ownerState, size: currentSize },
|
|
27
|
+
size: adjustedSize,
|
|
9
28
|
variant: "body",
|
|
10
29
|
skeletonWidth,
|
|
11
30
|
children: message
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { H as HELPER_ERROR_SPINNER_SPECIFY } from "./constant.js";
|
|
1
2
|
const helperErrorStyles = {
|
|
2
3
|
/**
|
|
3
4
|
* Estilos para el slot del root HelperError
|
|
5
|
+
* @author Bruce Escobar - automatic
|
|
6
|
+
* @createdAt 2024-10-22 19:27:21 - automatic
|
|
7
|
+
* @updatedAt 2024-10-22 19:47:05 - automatic
|
|
8
|
+
* @updatedUser Bruce Escobar - automatic
|
|
4
9
|
*/
|
|
5
10
|
root: ({ theme, ownerState }) => ({
|
|
6
|
-
|
|
7
|
-
color:
|
|
11
|
+
[`&.${HELPER_ERROR_SPINNER_SPECIFY}`]: {
|
|
12
|
+
color: ownerState.helperErrorPaletteColor?.main,
|
|
8
13
|
...ownerState.size === "small" && {
|
|
9
14
|
...theme.generalSettings.isMobile ? { height: theme.size.typography.mobile.small } : { height: theme.size.typography.desktop.small }
|
|
10
15
|
},
|
|
@@ -15,6 +20,10 @@ const helperErrorStyles = {
|
|
|
15
20
|
}),
|
|
16
21
|
/**
|
|
17
22
|
* Estilos personalizados Skeleton
|
|
23
|
+
* @author Bruce Escobar - automatic
|
|
24
|
+
* @createdAt 2024-10-22 19:27:21 - automatic
|
|
25
|
+
* @updatedAt 2024-10-22 19:47:05 - automatic
|
|
26
|
+
* @updatedUser Bruce Escobar - automatic
|
|
18
27
|
*/
|
|
19
28
|
skeletonStyled: ({ theme, ownerState }) => ({
|
|
20
29
|
...ownerState.size === "small" && {
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A constant representing the key for the M4L Helper Error component.
|
|
3
|
+
* This key is used to uniquely identify the Helper Error component within the application.
|
|
4
|
+
*/
|
|
1
5
|
export declare const HELPER_ERROR_KEY_COMPONENT = "M4LHelperError";
|
|
6
|
+
/**
|
|
7
|
+
* Nombre de clase creado para aportar especificidad a los estilos del componente. Es usado para sobreescribir los estilos de MUI sin
|
|
8
|
+
* tener la necesidad de agregar valores en !important.
|
|
9
|
+
*/
|
|
10
|
+
export declare const HELPER_ERROR_SPINNER_SPECIFY = "M4lclassCssSpecificity";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('
|
|
2
|
-
ownerState: Partial<import('
|
|
1
|
+
export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').HelperErrorOwnerState> & Record<string, unknown> & {
|
|
2
|
+
ownerState: Partial<import('../types').HelperErrorOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, {}, {}>;
|
|
4
|
-
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('
|
|
5
|
-
ownerState: Partial<import('
|
|
4
|
+
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').HelperErrorOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../types').HelperErrorOwnerState> & Record<string, unknown>;
|
|
6
6
|
}, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { H as HelperErrorSlots } from "./HelperErrorEnum.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as HELPER_ERROR_KEY_COMPONENT } from "../constant.js";
|
|
4
4
|
import { h as helperErrorStyles } from "../HelperError.styles.js";
|
|
5
5
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
6
6
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Theme } from '@mui/material';
|
|
1
|
+
import { PaletteColor, Theme } from '@mui/material';
|
|
2
2
|
import { TypographyProps } from '../mui_extended/Typography/types';
|
|
3
3
|
import { HELPER_ERROR_KEY_COMPONENT } from './constant';
|
|
4
4
|
import { HelperErrorSlots } from './slots';
|
|
5
5
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
6
|
-
import { Sizes } from '@m4l/styles';
|
|
7
|
-
export type HelperErrorSize = 'small' | 'medium';
|
|
6
|
+
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
8
7
|
/**
|
|
9
8
|
* Extiende de TypographyProps para incluir propiedades de esqueleto y añade la propiedad `message`.
|
|
10
9
|
* `message` es el mensaje de error a mostrar.
|
|
@@ -14,13 +13,37 @@ export interface HelperErrorProps extends Pick<TypographyProps, 'skeletonWidth'>
|
|
|
14
13
|
* Mensaje que se visualiza en el componente HelperError.
|
|
15
14
|
*/
|
|
16
15
|
message: string | undefined;
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Propiedad que permite administrar estilos para su uso en los slots
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Tamaño del componente, puede ser uno de los valores definidos en 'small' , 'medium'.
|
|
22
|
+
*/
|
|
23
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* Representa el estado del componente HelperError, incluyendo todas las propiedades de HelperErrorProps.
|
|
21
27
|
* Se utiliza para controlar el estilo del componente basado en su estado.
|
|
22
28
|
*/
|
|
23
|
-
export
|
|
29
|
+
export interface HelperErrorOwnerState {
|
|
30
|
+
/**
|
|
31
|
+
* Color de la paleta del campo de texto.
|
|
32
|
+
*/
|
|
33
|
+
helperErrorPaletteColor: PaletteColor;
|
|
34
|
+
/**
|
|
35
|
+
* Color de la paleta del componente del campo de texto.
|
|
36
|
+
*/
|
|
37
|
+
helperErrorComponentPaletteColor?: ComponentPalletColor;
|
|
38
|
+
/**
|
|
39
|
+
* Tamaño del campo de texto.
|
|
40
|
+
*/
|
|
41
|
+
helperErrorSizes: Extract<Sizes, 'small' | 'medium'>;
|
|
42
|
+
/**
|
|
43
|
+
* Indica si el campo de texto es error.
|
|
44
|
+
*/
|
|
45
|
+
helperStateError?: boolean;
|
|
46
|
+
}
|
|
24
47
|
/**
|
|
25
48
|
* Define los tipos de slots disponibles en HelperError utilizando las claves de HelperErrorSlots.
|
|
26
49
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IconProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Provee de un medio por el cual se carga un icono svg en la plataforma web, aporta su versión provisional de carga en red.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
4
|
+
* @author Bruce Escobar - automatic
|
|
5
|
+
* @createdAt 2024-10-22 19:08:59 - automatic
|
|
6
|
+
* @updatedAt 2024-10-22 19:09:00 - automatic
|
|
7
|
+
* @updatedUser Bruce Escobar - automatic
|
|
7
8
|
*/
|
|
8
9
|
export declare const Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
package/components/Icon/Icon.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
+
import { a as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
4
4
|
import { I as ICON_PREFIX } from "./constants.js";
|
|
5
5
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
6
|
-
import { T as TooltipStyled, R as RootStyled, I as IconStyled } from "./slots/IconSlots.js";
|
|
6
|
+
import { T as TooltipStyled, R as RootStyled, I as IconStyled, a as IconSkeletonStyled } from "./slots/IconSlots.js";
|
|
7
7
|
import { I as IconSlots } from "./slots/IconEnum.js";
|
|
8
8
|
const Icon = (props) => {
|
|
9
9
|
const {
|
|
10
10
|
src,
|
|
11
|
-
size = "
|
|
11
|
+
size = "medium",
|
|
12
12
|
rotationAngle,
|
|
13
13
|
tooltipContent,
|
|
14
|
-
securityArea,
|
|
15
14
|
color = "text.primary",
|
|
16
15
|
className,
|
|
17
16
|
placement = "bottom",
|
|
@@ -19,72 +18,56 @@ const Icon = (props) => {
|
|
|
19
18
|
disabled
|
|
20
19
|
} = props;
|
|
21
20
|
const { currentSize } = useComponentSize(size);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
const isSkeleton = useModuleSkeleton();
|
|
22
|
+
const ownerState = {
|
|
23
|
+
iconSize: currentSize,
|
|
24
|
+
iconColor: color,
|
|
25
|
+
iconSrc: src,
|
|
26
|
+
iconDisabled: disabled,
|
|
27
|
+
iconRotationAngle: rotationAngle,
|
|
28
|
+
isSkeleton
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
tooltipContent ? /* @__PURE__ */ jsx(
|
|
32
|
+
TooltipStyled,
|
|
33
|
+
{
|
|
34
|
+
title: tooltipContent,
|
|
35
|
+
ownerState: { ...ownerState },
|
|
36
|
+
placement,
|
|
37
|
+
...getPropDataTestId(ICON_PREFIX, IconSlots.tooltip, instaceDataTestId),
|
|
38
|
+
children: /* @__PURE__ */ jsx(
|
|
39
|
+
RootStyled,
|
|
40
|
+
{
|
|
41
|
+
className,
|
|
42
|
+
ownerState: { ...ownerState },
|
|
43
|
+
...getPropDataTestId(ICON_PREFIX, IconSlots.root, instaceDataTestId),
|
|
44
|
+
children: /* @__PURE__ */ jsx(
|
|
45
|
+
IconStyled,
|
|
46
|
+
{
|
|
47
|
+
ownerState: { ...ownerState },
|
|
48
|
+
...getPropDataTestId(ICON_PREFIX, IconSlots.icon, instaceDataTestId)
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
}
|
|
33
52
|
)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
54
|
-
[TEST_PROP_ID]: getNameDataTestId(
|
|
55
|
-
ICON_PREFIX,
|
|
56
|
-
IconSlots.icon,
|
|
57
|
-
instaceDataTestId
|
|
58
|
-
)
|
|
59
|
-
} : {}
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
) : /* @__PURE__ */ jsx(
|
|
66
|
-
RootStyled,
|
|
67
|
-
{
|
|
68
|
-
className,
|
|
69
|
-
ownerState: { securityArea, size: currentSize },
|
|
70
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(ICON_PREFIX, IconSlots.root, instaceDataTestId) } : {},
|
|
71
|
-
children: /* @__PURE__ */ jsx(
|
|
72
|
-
IconStyled,
|
|
73
|
-
{
|
|
74
|
-
ownerState: {
|
|
75
|
-
src,
|
|
76
|
-
rotationAngle,
|
|
77
|
-
size: currentSize,
|
|
78
|
-
color,
|
|
79
|
-
disabled
|
|
80
|
-
},
|
|
81
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
82
|
-
[TEST_PROP_ID]: getNameDataTestId(ICON_PREFIX, IconSlots.icon, instaceDataTestId)
|
|
83
|
-
} : {}
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
) });
|
|
53
|
+
}
|
|
54
|
+
) : /* @__PURE__ */ jsx(
|
|
55
|
+
RootStyled,
|
|
56
|
+
{
|
|
57
|
+
className,
|
|
58
|
+
ownerState: { ...ownerState },
|
|
59
|
+
...getPropDataTestId(ICON_PREFIX, IconSlots.root, instaceDataTestId),
|
|
60
|
+
children: /* @__PURE__ */ jsx(
|
|
61
|
+
IconStyled,
|
|
62
|
+
{
|
|
63
|
+
ownerState: { ...ownerState },
|
|
64
|
+
...getPropDataTestId(ICON_PREFIX, IconSlots.icon, instaceDataTestId)
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
isSkeleton && /* @__PURE__ */ jsx(IconSkeletonStyled, { variant: "rectangular", ownerState: { ...ownerState } })
|
|
70
|
+
] });
|
|
88
71
|
};
|
|
89
72
|
export {
|
|
90
73
|
Icon as I
|
|
@@ -1,54 +1,108 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
2
|
const iconStyles = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Slot root: Contiene los estilos para el contenedor principal del ícono.
|
|
5
|
+
* Este slot es responsable de definir el layout del ícono dentro de su contenedor,
|
|
6
|
+
* incluyendo propiedades de flexbox para centrar su contenido, y el tamaño
|
|
7
|
+
* dinámico basado en el dispositivo (móvil o desktop) y el tamaño del ícono
|
|
8
|
+
* ('small' o 'medium'). También incluye animaciones como la transición
|
|
9
|
+
* suave de transformación.
|
|
10
|
+
* @author Bruce Escobar - automatic
|
|
11
|
+
* @createdAt 2024-10-22 19:08:59 - automatic
|
|
12
|
+
* @updatedAt 2024-10-22 19:09:00 - automatic
|
|
13
|
+
* @updatedUser Bruce Escobar - automatic
|
|
5
14
|
*/
|
|
6
15
|
root: ({ theme, ownerState }) => ({
|
|
7
|
-
display: "flex",
|
|
16
|
+
display: ownerState.isSkeleton ? "none" : "flex",
|
|
8
17
|
justifyContent: "center",
|
|
9
18
|
alignItems: "center",
|
|
10
19
|
width: "fit-content",
|
|
11
20
|
transition: "transform 0.5s ease-in-out",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
...ownerState.iconSize === "medium" && {
|
|
22
|
+
...theme.generalSettings.isMobile ? {
|
|
23
|
+
width: theme.vars.size.mobile.medium.base,
|
|
24
|
+
height: theme.vars.size.mobile.medium.base
|
|
25
|
+
} : {
|
|
26
|
+
width: theme.vars.size.desktop.medium.base,
|
|
27
|
+
height: theme.vars.size.desktop.medium.base
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
...ownerState.iconSize === "small" && {
|
|
31
|
+
...theme.generalSettings.isMobile ? {
|
|
32
|
+
width: theme.vars.size.mobile.small.base,
|
|
33
|
+
height: theme.vars.size.mobile.small.base
|
|
34
|
+
} : {
|
|
35
|
+
width: theme.vars.size.desktop.small.base,
|
|
36
|
+
height: theme.vars.size.desktop.small.base
|
|
37
|
+
}
|
|
38
|
+
}
|
|
15
39
|
}),
|
|
16
|
-
tooltip: () => ({}),
|
|
17
40
|
/**
|
|
18
|
-
*
|
|
41
|
+
* Slot icon: Define los estilos para el ícono que se carga dinámicamente.
|
|
42
|
+
* Este slot gestiona cómo se carga y muestra el recurso gráfico en formato de máscara,
|
|
43
|
+
* incluyendo su posición, repetición y ajuste de tamaño. También controla la rotación
|
|
44
|
+
* del ícono basada en el ángulo de rotación proporcionado, y el color de fondo que
|
|
45
|
+
* se ajusta de acuerdo con el estado de deshabilitación o no del ícono.
|
|
46
|
+
* @author Bruce Escobar - automatic
|
|
47
|
+
* @createdAt 2024-10-22 19:08:59 - automatic
|
|
48
|
+
* @updatedAt 2024-10-22 19:09:00 - automatic
|
|
49
|
+
* @updatedUser Bruce Escobar - automatic
|
|
19
50
|
*/
|
|
20
51
|
icon: ({ theme, ownerState }) => ({
|
|
21
52
|
maskPosition: "center",
|
|
22
53
|
maskRepeat: "no-repeat",
|
|
23
54
|
maskSize: "cover",
|
|
24
55
|
WebkitMaskRepeat: "no-repeat",
|
|
25
|
-
mask: `url(${ownerState.
|
|
26
|
-
WebkitMask: `url(${ownerState.
|
|
56
|
+
mask: `url(${ownerState.iconSrc})`,
|
|
57
|
+
WebkitMask: `url(${ownerState.iconSrc})`,
|
|
27
58
|
WebkitMaskSize: "cover",
|
|
28
|
-
...ownerState.
|
|
29
|
-
transform: `rotate(${ownerState.
|
|
30
|
-
},
|
|
31
|
-
backgroundColor: !ownerState.disabled ? getPropertyByString(theme.vars.palette, ownerState.color || "text.primary") : theme.vars.palette.text.disabled,
|
|
32
|
-
...ownerState.size === "medium" && {
|
|
33
|
-
...theme.generalSettings.isMobile ? {
|
|
34
|
-
minWidth: theme.vars.size.mobile.medium.action,
|
|
35
|
-
minHeight: theme.vars.size.mobile.medium.action
|
|
36
|
-
} : {
|
|
37
|
-
minWidth: theme.vars.size.desktop.medium.base,
|
|
38
|
-
minHeight: theme.vars.size.desktop.medium.base
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
...ownerState.size === "small" && {
|
|
42
|
-
...theme.generalSettings.isMobile ? {
|
|
43
|
-
minWidth: theme.vars.size.mobile.small.base,
|
|
44
|
-
minHeight: theme.vars.size.mobile.small.action
|
|
45
|
-
} : {
|
|
46
|
-
minWidth: theme.vars.size.desktop.small.base,
|
|
47
|
-
minHeight: theme.vars.size.desktop.small.base
|
|
48
|
-
}
|
|
59
|
+
...ownerState.iconRotationAngle && {
|
|
60
|
+
transform: `rotate(${ownerState.iconRotationAngle}deg)`
|
|
49
61
|
},
|
|
62
|
+
backgroundColor: !ownerState.iconDisabled ? getPropertyByString(theme.vars.palette, String(ownerState.iconColor) || "text.primary") : theme.vars.palette.text.disabled,
|
|
63
|
+
width: "inherit",
|
|
64
|
+
height: "inherit",
|
|
50
65
|
variants: []
|
|
51
|
-
})
|
|
66
|
+
}),
|
|
67
|
+
/**
|
|
68
|
+
* Slot iconSkeleton: Define los estilos para el esqueleto del ícono.
|
|
69
|
+
* Se utiliza cuando el ícono aún no está completamente cargado, proporcionando
|
|
70
|
+
* un contorno visible para indicar que la carga está en progreso. Incluye un
|
|
71
|
+
* borde redondeado y tamaño del ícono.
|
|
72
|
+
* @author Bruce Escobar - automatic
|
|
73
|
+
* @createdAt 2024-10-22 19:08:59 - automatic
|
|
74
|
+
* @updatedAt 2024-10-22 19:09:00 - automatic
|
|
75
|
+
* @updatedUser Bruce Escobar - automatic
|
|
76
|
+
*/
|
|
77
|
+
iconSkeleton: ({ theme, ownerState }) => ({
|
|
78
|
+
"&.M4lclassCssSpecificity": {
|
|
79
|
+
borderRadius: theme.size.borderRadius.r1,
|
|
80
|
+
...ownerState.iconSize === "medium" && {
|
|
81
|
+
...theme.generalSettings.isMobile ? {
|
|
82
|
+
width: theme.vars.size.mobile.medium.base,
|
|
83
|
+
height: theme.vars.size.mobile.medium.base
|
|
84
|
+
} : {
|
|
85
|
+
width: theme.vars.size.desktop.medium.base,
|
|
86
|
+
height: theme.vars.size.desktop.medium.base
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
...ownerState.iconSize === "small" && {
|
|
90
|
+
...theme.generalSettings.isMobile ? {
|
|
91
|
+
width: theme.vars.size.mobile.small.base,
|
|
92
|
+
height: theme.vars.size.mobile.small.base
|
|
93
|
+
} : {
|
|
94
|
+
width: theme.vars.size.desktop.small.base,
|
|
95
|
+
height: theme.vars.size.desktop.small.base
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
/**
|
|
101
|
+
* Slot tooltip: Define los estilos para el tooltip asociado al ícono.
|
|
102
|
+
* Este slot permite agregar una descripción emergente cuando el ícono es
|
|
103
|
+
* hovereado o enfocado.
|
|
104
|
+
*/
|
|
105
|
+
tooltip: {}
|
|
52
106
|
};
|
|
53
107
|
export {
|
|
54
108
|
iconStyles as i
|
|
@@ -7,3 +7,6 @@ export declare const TooltipStyled: import('@emotion/styled').StyledComponent<Pi
|
|
|
7
7
|
export declare const IconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').IconOwnerState> & Record<string, unknown> & {
|
|
8
8
|
ownerState: Partial<import('..').IconOwnerState> & Record<string, unknown>;
|
|
9
9
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const IconSkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').IconOwnerState> & Record<string, unknown> & {
|
|
11
|
+
ownerState: Partial<import('..').IconOwnerState> & Record<string, unknown>;
|
|
12
|
+
}, {}, {}>;
|