@m4l/components 9.3.26 → 9.3.27
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/types.d.ts +18 -5
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +1 -1
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/Card/constants.d.ts +1 -1
- package/components/Chip/constants.d.ts +1 -1
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Color/slots/ColorSlots.d.ts +1 -1
- package/components/ContainerFlow/constants.d.ts +1 -1
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/formatter.d.ts +8 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/index.d.ts +3 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/types.d.ts +5 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/useColumnEditLabel.d.ts +9 -0
- package/components/DataGrid/tests/helpers/types.d.ts +2 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/EditLabel/EditLabel.d.ts +7 -0
- package/components/EditLabel/EditLabel.styles.d.ts +2 -0
- package/components/EditLabel/constants.d.ts +2 -0
- package/components/EditLabel/hooks/types.d.ts +17 -0
- package/components/EditLabel/hooks/useEditLabel.d.ts +7 -0
- package/components/EditLabel/icons.d.ts +5 -0
- package/components/EditLabel/index.d.ts +2 -0
- package/components/EditLabel/slots/EditLabelEnum.d.ts +8 -0
- package/components/EditLabel/slots/EditLabelSlots.d.ts +18 -0
- package/components/EditLabel/test/EditLabel.test.d.ts +1 -0
- package/components/EditLabel/types.d.ts +43 -0
- package/components/FormContainer/constants.d.ts +1 -1
- package/components/Icon/Icon.js +6 -3
- package/components/Icon/types.d.ts +4 -0
- package/components/Image/constant.d.ts +1 -1
- package/components/ImageText/ImageText.styles.js +1 -1
- package/components/ImageText/constants.d.ts +1 -1
- package/components/LanguagePopover/LanguagePopover.js +2 -0
- package/components/MFIsolationApp/MFIsolationApp.js +13 -8
- package/components/MFIsolationApp/MFIsolationApp.styles.d.ts +2 -0
- package/components/MFIsolationApp/MFIsolationApp.styles.js +22 -0
- package/components/MFIsolationApp/constants.d.ts +1 -0
- package/components/MFIsolationApp/constants.js +4 -0
- package/components/MFIsolationApp/icons.d.ts +3 -0
- package/components/MFIsolationApp/icons.js +6 -0
- package/components/MFIsolationApp/slots/MFIsolationAppEnum.d.ts +4 -0
- package/components/MFIsolationApp/slots/MFIsolationAppEnum.js +8 -0
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -0
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.js +17 -0
- package/components/MFIsolationApp/subcomponents/AppBarSettings/AppBarSettings.js +21 -0
- package/components/MFIsolationApp/subcomponents/AppBarSettings/index.js +1 -0
- package/components/MFIsolationApp/types.d.ts +8 -0
- package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +137 -0
- package/components/MFIsolationAppStorybook/index.js +1 -0
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.js +44 -0
- package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.js +1 -0
- package/components/MFIsolationAppStorybook/types.d.ts +0 -4
- package/components/MenuActions/MenuActions.js +1 -1
- package/components/MenuActions/constants.d.ts +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/ModalDialog/ModalDialog.js +1 -0
- package/components/NoItemSelected/constant.d.ts +1 -1
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/WindowBase/constants.d.ts +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/extended/React-Json-Viewer/constants.d.ts +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
- package/components/formatters/ChipStatusFormatter/constants.d.ts +1 -1
- package/components/formatters/EditLabelFormatter/EditLabelFormatter.d.ts +5 -0
- package/components/formatters/EditLabelFormatter/EditLabelFormatter.styles.d.ts +2 -0
- package/components/formatters/EditLabelFormatter/constants.d.ts +5 -0
- package/components/formatters/EditLabelFormatter/index.d.ts +2 -0
- package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterEnum.d.ts +4 -0
- package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterSlots.d.ts +5 -0
- package/components/formatters/EditLabelFormatter/test/EditLabelFormatter.test.d.ts +1 -0
- package/components/formatters/EditLabelFormatter/types.d.ts +23 -0
- package/components/formatters/TagsFormatter/constants.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +7 -1
- package/components/hook-form/RHFAutocomplete/constants.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/types.d.ts +13 -0
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +7 -1
- package/components/hook-form/RHFAutocompleteAsync/slots/RHFAutocompleteSlotsAsync.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/constants.d.ts +1 -1
- package/components/hook-form/RHFSelect/constants.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +25 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.js +5 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
- package/components/hook-form/RHFormContext/index.d.ts +110 -10
- package/components/hook-form/RHFormContext/index.js +23 -21
- package/components/hook-form/RHFormContext/types.d.ts +64 -1
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/Autocomplete.d.ts +4 -8
- package/components/mui_extended/Autocomplete/Autocomplete.js +24 -112
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +41 -12
- package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts +26 -0
- package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +166 -0
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +2 -1
- package/components/mui_extended/Autocomplete/hooks/useMultipleChips.d.ts +17 -0
- package/components/mui_extended/Autocomplete/hooks/useMultipleChips.js +108 -0
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.d.ts +0 -2
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +11 -17
- package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.d.ts +2 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.js +1 -0
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +5 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/LoadingText.d.ts +2 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/LoadingText.js +14 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/LoadingText/index.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.d.ts +2 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.js +14 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/NoOptionsText/index.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/PopperComponent.d.ts +8 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/PopperComponent.js +23 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/index.d.ts +2 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/index.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/types.d.ts +7 -0
- package/components/mui_extended/Autocomplete/subcomponents/PopperComponent/types.js +1 -0
- package/components/mui_extended/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.d.ts +6 -0
- package/components/mui_extended/Autocomplete/subcomponents/RenderAdornment/RenderAdornment.js +45 -0
- package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.d.ts +9 -0
- package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.js +61 -0
- package/components/mui_extended/Autocomplete/subcomponents/renderOptions/types.d.ts +7 -0
- package/components/mui_extended/Autocomplete/types.d.ts +21 -1
- package/components/mui_extended/Button/Button.js +15 -4
- package/components/mui_extended/Button/ButtonStyles.js +165 -82
- package/components/mui_extended/Button/{constans.d.ts → constants.d.ts} +1 -0
- package/components/mui_extended/Button/constants.js +8 -0
- package/components/mui_extended/Button/slots/ButtonSlots.js +1 -1
- package/components/mui_extended/Button/types.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.js +1 -0
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/constants.d.ts +1 -1
- package/components/mui_extended/IconButton/constants.js +4 -1
- package/components/mui_extended/MenuItem/MenuItem.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +4 -1
- package/components/mui_extended/MenuItem/constants.d.ts +1 -1
- package/components/mui_extended/NavLink/constants.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +2 -2
- package/components/mui_extended/Select/constants.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/TextField/constants.d.ts +1 -1
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.js +16 -4
- package/components/mui_extended/Tooltip/constants.d.ts +1 -1
- package/components/mui_extended/Typography/constants.d.ts +1 -1
- package/components/mui_extended/Typography/types.d.ts +2 -1
- package/components/mui_extended/Typography/typography.styles.js +4 -9
- package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +9 -1
- package/index.js +12 -10
- package/package.json +1 -1
- package/utils/getComponentSlotRoot.d.ts +3 -1
- package/components/mui_extended/Autocomplete/hooks/useStartAdornments.d.ts +0 -21
- package/components/mui_extended/Autocomplete/hooks/useStartAdornments.js +0 -31
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +0 -22
- package/components/mui_extended/Autocomplete/renderOptions/index.js +0 -24
- package/components/mui_extended/Button/constans.js +0 -4
- /package/components/{MFIsolationAppStorybook → MFIsolationApp}/subcomponents/AppBarSettings/AppBarSettings.d.ts +0 -0
- /package/components/{MFIsolationAppStorybook → MFIsolationApp}/subcomponents/AppBarSettings/index.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ToggleIconButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "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" | "exportparts" | "part" | "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" | "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" | "instaceDataTestId" | "placement" | "rotationAngle" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ToggleIconButtonOwnerState> & Record<string, unknown> & {
|
|
1
|
+
export declare const ToggleIconButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "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" | "exportparts" | "part" | "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" | "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" | "instaceDataTestId" | "placement" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ToggleIconButtonOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('..').ToggleIconButtonOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, {}, {}>;
|
|
@@ -8,6 +8,7 @@ const tooltipStyles = {
|
|
|
8
8
|
* Estilos del texto del componente Tooltip
|
|
9
9
|
*/
|
|
10
10
|
text: ({ theme, ownerState }) => ({
|
|
11
|
+
color: theme.vars.palette.text.contrastText,
|
|
11
12
|
...getTypographyStyles(
|
|
12
13
|
theme.generalSettings.isMobile,
|
|
13
14
|
ownerState?.size || "medium",
|
|
@@ -18,14 +19,25 @@ const tooltipStyles = {
|
|
|
18
19
|
* Estilos del componente Tooltip
|
|
19
20
|
*/
|
|
20
21
|
tooltip: ({ theme }) => ({
|
|
21
|
-
background: theme.vars.palette.background.
|
|
22
|
+
background: theme.vars.palette.background.contrastDefault,
|
|
22
23
|
padding: theme.vars.size.baseSpacings.sp2,
|
|
23
24
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
24
25
|
boxShadow: theme.vars.customShadows.z3,
|
|
25
|
-
".MuiTooltip-arrow": {
|
|
26
|
+
"&.MuiTooltip-tooltipPlacementLeft .MuiTooltip-arrow": {
|
|
27
|
+
marginRight: "-0.6em"
|
|
28
|
+
},
|
|
29
|
+
"&.MuiTooltip-tooltipPlacementTop .MuiTooltip-arrow": {
|
|
30
|
+
marginBottom: "-0.6em"
|
|
31
|
+
},
|
|
32
|
+
"&&& .MuiTooltip-arrow": {
|
|
33
|
+
overflow: "visible",
|
|
26
34
|
"&::before": {
|
|
27
|
-
backgroundColor: theme.vars.palette.background.
|
|
28
|
-
borderRadius: theme.vars.size.borderRadius["
|
|
35
|
+
backgroundColor: theme.vars.palette.background.contrastDefault,
|
|
36
|
+
borderRadius: theme.vars.size.borderRadius["r1"],
|
|
37
|
+
width: theme.vars.size.baseSpacings.sp3,
|
|
38
|
+
height: theme.vars.size.baseSpacings.sp3,
|
|
39
|
+
border: "unset",
|
|
40
|
+
margin: "unset"
|
|
29
41
|
}
|
|
30
42
|
}
|
|
31
43
|
})
|
|
@@ -2,7 +2,7 @@ export declare const TOOLTIP_KEY_COMPONENT = "M4LTooltip";
|
|
|
2
2
|
/**
|
|
3
3
|
* Clases del componente Tooltip
|
|
4
4
|
*/
|
|
5
|
-
export declare const TOOLTIP_CLASSES: Record<
|
|
5
|
+
export declare const TOOLTIP_CLASSES: Record<"text" | "tooltip" | "root", string>;
|
|
6
6
|
/**
|
|
7
7
|
* Desplazamiento predeterminado del tooltip (X, Y)
|
|
8
8
|
*/
|
|
@@ -10,7 +10,7 @@ export declare const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
|
|
|
10
10
|
/**
|
|
11
11
|
* Inventario de clases CSS para el componente Typography.
|
|
12
12
|
*/
|
|
13
|
-
export declare const TYPOGRAPHY_CLASSES: Record<
|
|
13
|
+
export declare const TYPOGRAPHY_CLASSES: Record<"skeleton" | "root", string>;
|
|
14
14
|
export declare const TYPOGRAPHY_FONTS: {
|
|
15
15
|
Inter: string;
|
|
16
16
|
Jura: string;
|
|
@@ -3,6 +3,7 @@ import { Sizes, TypographyVariants } from '@m4l/styles';
|
|
|
3
3
|
import { TypographySlots } from './slots/typographyEnum';
|
|
4
4
|
import { TYPOGRAPHY_KEY_COMPONENT } from './constants';
|
|
5
5
|
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
6
|
+
import { DeepKeyOf } from '../../../utils/types';
|
|
6
7
|
/**
|
|
7
8
|
* Define los colores de tipografía disponibles para el componente.
|
|
8
9
|
*/
|
|
@@ -23,7 +24,7 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
23
24
|
/**
|
|
24
25
|
* Opción de color usada para pintar el componente.
|
|
25
26
|
*/
|
|
26
|
-
color?:
|
|
27
|
+
color?: DeepKeyOf<Theme['vars']['palette']> | string;
|
|
27
28
|
/**
|
|
28
29
|
* Opciones de tamaño del componente.
|
|
29
30
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getPropertyByString } from "@m4l/core";
|
|
1
2
|
import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
3
|
import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
|
|
3
4
|
const typographyStyles = {
|
|
@@ -19,17 +20,11 @@ const typographyStyles = {
|
|
|
19
20
|
flexDirection: "column"
|
|
20
21
|
},
|
|
21
22
|
// Override de estilos generales de MUI 🚫
|
|
22
|
-
// color text.primary 🎨
|
|
23
|
-
...ownerState?.color === "text.primary" && {
|
|
24
|
-
color: theme.vars.palette.text.primary
|
|
25
|
-
},
|
|
26
|
-
// color text.secondary 🎨
|
|
27
|
-
...ownerState?.color === "text.secondary" && {
|
|
28
|
-
color: theme.vars.palette.text.secondary
|
|
29
|
-
},
|
|
30
23
|
// color text.disabled 🎨
|
|
31
|
-
...
|
|
24
|
+
...ownerState?.disabled || ownerState?.color === "text.disabled" ? {
|
|
32
25
|
color: theme.vars.palette.text.disabled
|
|
26
|
+
} : {
|
|
27
|
+
color: getPropertyByString(theme.vars.palette, ownerState?.color || "text.primary", "text.primary")
|
|
33
28
|
},
|
|
34
29
|
...getTypographyStyles(
|
|
35
30
|
theme.generalSettings.isMobile,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useRef } from "react";
|
|
2
|
+
import { createContext, useRef, useEffect } from "react";
|
|
3
3
|
import { DEFAULT_SIZE } from "@m4l/styles";
|
|
4
4
|
import { c as createAppearanceComponentStore } from "./AppearanceComponentStore.js";
|
|
5
5
|
const AppearanceComponentContext = createContext(null);
|
|
@@ -12,6 +12,14 @@ function AppearanceComponentProvider(props) {
|
|
|
12
12
|
storeId
|
|
13
13
|
}, storeDevtoolsEnabled);
|
|
14
14
|
}
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (appearanceComponentStoreRef.current && defaultSize) {
|
|
17
|
+
const currentStoreSize = appearanceComponentStoreRef.current.getState().defaultSize;
|
|
18
|
+
if (currentStoreSize !== defaultSize) {
|
|
19
|
+
appearanceComponentStoreRef.current.getState().actions.setDefaultSize(defaultSize);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, [defaultSize]);
|
|
15
23
|
return /* @__PURE__ */ jsx(AppearanceComponentContext.Provider, { value: appearanceComponentStoreRef.current, children });
|
|
16
24
|
}
|
|
17
25
|
export {
|
package/index.js
CHANGED
|
@@ -169,7 +169,8 @@ import { g as g22 } from "./components/LoadingError/dictionary.js";
|
|
|
169
169
|
import { g as g23 } from "./components/MenuActions/dictionary.js";
|
|
170
170
|
import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
171
171
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
172
|
-
import { M as M5 } from "./components/
|
|
172
|
+
import { M as M5 } from "./components/MFIsolationAppStorybook/MFIsolationAppStorybook.js";
|
|
173
|
+
import { M as M6 } from "./components/MFLoader/MFLoader.js";
|
|
173
174
|
import { g as g24 } from "./components/MFLoader/dictionary.js";
|
|
174
175
|
import { I as I6 } from "./components/ImageText/ImageText.js";
|
|
175
176
|
import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
|
|
@@ -192,12 +193,12 @@ import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage
|
|
|
192
193
|
import { W as W2 } from "./components/WindowBase/WindowBase.js";
|
|
193
194
|
import { u as u17 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
194
195
|
import { u as u18, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
195
|
-
import { M as
|
|
196
|
+
import { M as M7, W as W3, a as a12 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
196
197
|
import { c as c3 } from "./components/WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
197
|
-
import { D as D10, a as a13, M as
|
|
198
|
+
import { D as D10, a as a13, M as M8 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
198
199
|
import { W as W4 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
199
200
|
import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
200
|
-
import { M as
|
|
201
|
+
import { M as M9 } from "./components/ModalDialog/ModalDialog.js";
|
|
201
202
|
import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
202
203
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
203
204
|
import { u as u19 } from "./components/Stepper/hooks/useStepper/index.js";
|
|
@@ -217,7 +218,7 @@ import { F as F3, R as R23, u as u20 } from "./components/hook-form/RHFormContex
|
|
|
217
218
|
import { g as g30 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
218
219
|
import { u as u21 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
219
220
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
220
|
-
import { a as a15, M as
|
|
221
|
+
import { a as a15, M as M10 } from "./contexts/ModalContext/index.js";
|
|
221
222
|
import { u as u22 } from "./hooks/useFormAddEdit/index.js";
|
|
222
223
|
import { u as u23 } from "./hooks/useModal/index.js";
|
|
223
224
|
import { u as u24 } from "./hooks/useTab/index.js";
|
|
@@ -330,14 +331,15 @@ export {
|
|
|
330
331
|
L10 as LoadingError,
|
|
331
332
|
L as LoadingScreen,
|
|
332
333
|
M4 as MFIsolationApp,
|
|
333
|
-
M5 as
|
|
334
|
-
|
|
334
|
+
M5 as MFIsolationAppStorybook,
|
|
335
|
+
M6 as MFLoader,
|
|
336
|
+
M8 as MemonizedDynamicMFParmsProvider,
|
|
335
337
|
a9 as MemonizedMenuActions,
|
|
336
|
-
|
|
338
|
+
M7 as MemonizedWindowToolsMFContext,
|
|
337
339
|
M3 as MenuActions,
|
|
338
340
|
a15 as ModalContext,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
+
M9 as ModalDialog,
|
|
342
|
+
M10 as ModalProvider,
|
|
341
343
|
M as MotionContainer,
|
|
342
344
|
M2 as MotionLazyContainer,
|
|
343
345
|
N2 as NavLink,
|
package/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Esta función es utilizada para asignar un asignar un className a un componente
|
|
4
4
|
*/
|
|
5
5
|
export declare function getComponentSlotRoot(componentKey: string): string;
|
|
6
|
+
type ComponentSlots = Record<string, string> | readonly string[];
|
|
6
7
|
/**
|
|
7
8
|
* Función para construir el nombre del slot para className de un componente.
|
|
8
9
|
*/
|
|
9
|
-
export declare const getComponentClasses: <T extends
|
|
10
|
+
export declare const getComponentClasses: <T extends ComponentSlots>(componentName: string, slotList: T) => T extends readonly string[] ? Record<T[number], string> : Record<keyof T, string>;
|
|
11
|
+
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AutocompleteOwnerState } from '../types';
|
|
2
|
-
export type UseAdornmentsProps<T> = {
|
|
3
|
-
selectedValue: T | T[] | null;
|
|
4
|
-
multiple?: boolean;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
adjustedSize: 'small' | 'medium';
|
|
7
|
-
getOptionLabelLocal: (option: T) => string;
|
|
8
|
-
ownerState: AutocompleteOwnerState;
|
|
9
|
-
handleDelete: (option: T) => void;
|
|
10
|
-
getOptionUrlImage?: (option: T) => string;
|
|
11
|
-
selectedOption?: T;
|
|
12
|
-
getOptionUrlImageLocal: (option: T) => string;
|
|
13
|
-
refresh?: () => void;
|
|
14
|
-
handleRefresh: () => void;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
onOpenLocal: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Hook para el componente Autocomplete local
|
|
20
|
-
*/
|
|
21
|
-
export declare function useStartAdornments<T>(props: UseAdornmentsProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { b as ContainerMultipleValuesStyled, c as ContainerWrapperStyled, d as ChipStyled } from "../slots/AutocompleteSlots.js";
|
|
3
|
-
function useStartAdornments(props) {
|
|
4
|
-
const {
|
|
5
|
-
selectedValue,
|
|
6
|
-
multiple,
|
|
7
|
-
adjustedSize,
|
|
8
|
-
getOptionLabelLocal,
|
|
9
|
-
ownerState,
|
|
10
|
-
handleDelete,
|
|
11
|
-
disabled
|
|
12
|
-
} = props;
|
|
13
|
-
if (!(Array.isArray(selectedValue) && multiple)) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return /* @__PURE__ */ jsx(ContainerMultipleValuesStyled, { children: /* @__PURE__ */ jsx(ContainerWrapperStyled, { children: selectedValue.map((option, index) => /* @__PURE__ */ jsx(
|
|
17
|
-
ChipStyled,
|
|
18
|
-
{
|
|
19
|
-
size: adjustedSize,
|
|
20
|
-
label: getOptionLabelLocal(option),
|
|
21
|
-
opacity: true,
|
|
22
|
-
onDeleted: () => handleDelete(option),
|
|
23
|
-
disabledDeleteButton: disabled,
|
|
24
|
-
ownerState: { ...ownerState }
|
|
25
|
-
},
|
|
26
|
-
`${option}-${index}`
|
|
27
|
-
)) }) });
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
useStartAdornments as u
|
|
31
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { Sizes } from '@m4l/styles';
|
|
3
|
-
/**
|
|
4
|
-
* Higher-order function to generate a render option function for Autocomplete.
|
|
5
|
-
* It supports rendering options with `startAd` and `endIcon`.
|
|
6
|
-
* @param color - The color for the MenuItem.
|
|
7
|
-
*/
|
|
8
|
-
type OptionType<T> = T & {
|
|
9
|
-
label: string;
|
|
10
|
-
selected?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
startAdornment?: ReactNode;
|
|
13
|
-
endAdornment?: ReactNode;
|
|
14
|
-
size: Extract<Sizes, 'small' | 'medium'>;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Render option for Autocomplete.
|
|
18
|
-
*/
|
|
19
|
-
export declare const renderOption: <T>(optionProps: HTMLAttributes<HTMLLIElement> & {
|
|
20
|
-
key: string;
|
|
21
|
-
}, option: OptionType<T>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from "react";
|
|
3
|
-
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
4
|
-
const MemoizedMenuItem = memo(MenuItem);
|
|
5
|
-
const renderOption = (optionProps, option) => {
|
|
6
|
-
const { className, key, ...otherOptionProps } = optionProps;
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
MemoizedMenuItem,
|
|
9
|
-
{
|
|
10
|
-
...otherOptionProps,
|
|
11
|
-
selected: option.selected,
|
|
12
|
-
color: "default",
|
|
13
|
-
label: option.label,
|
|
14
|
-
disabled: option.disabled,
|
|
15
|
-
startIcon: option.startAdornment,
|
|
16
|
-
endIcon: option.endAdornment,
|
|
17
|
-
size: option.size
|
|
18
|
-
},
|
|
19
|
-
option.label
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
renderOption as r
|
|
24
|
-
};
|
|
File without changes
|
|
File without changes
|