@m4l/components 9.1.10 → 9.1.12
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/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
- package/components/WindowBase/WindowBase.styles.js +21 -11
- package/components/WindowBase/tests/WindowBase.test.d.ts +1 -0
- package/components/WindowConfirm/WindowConfirm.d.ts +1 -1
- package/components/WindowConfirm/WindowConfirm.js +3 -2
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +3 -3
- package/components/WindowConfirm/slots/WindowConfirmSlots.js +8 -10
- package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.js +1 -1
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/modal/classes/index.d.ts +1 -1
- package/components/mui_extended/Accordion/styles.js +1 -0
- package/components/mui_extended/MenuActions/MenuActions.js +14 -11
- package/components/mui_extended/Tab/Tab.styles.js +2 -1
- package/contexts/ModalContext/index.js +7 -3
- package/package.json +3 -3
- package/storybook/components/{mui_extended → extended/mui}/Accordion/Accordion.stories.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const ModalDialogRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
3
|
}, "children" | "style" | "square" | "variant" | "className" | "classes" | "elevation" | "sx">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "square" | "variant" | "className" | "classes" | "onChange" | "elevation" | "sx" | "translate" | "slot" | "key" | "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" | "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" | "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"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
4
|
-
export declare const DialogRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Dialog').DialogProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "onClose" | "title" | "component" | "scroll" | "id" | "container" | "components" | "hidden" | "color" | "content" | "style" | "open" | "variant" | "maxWidth" | "className" | "classes" | "onChange" | "sx" | "transitionDuration" | "translate" | "TransitionComponent" | "TransitionProps" | "slots" | "slotProps" | "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" | "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" | "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" | "dataTestId" | "
|
|
4
|
+
export declare const DialogRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Dialog').DialogProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "onClose" | "title" | "component" | "scroll" | "id" | "container" | "components" | "hidden" | "color" | "content" | "style" | "open" | "variant" | "maxWidth" | "className" | "classes" | "onChange" | "sx" | "transitionDuration" | "translate" | "TransitionComponent" | "TransitionProps" | "slots" | "slotProps" | "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" | "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" | "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" | "dataTestId" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExited" | "fullScreen" | "fullWidth" | "PaperComponent" | "PaperProps" | keyof import('react').RefAttributes<HTMLDivElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
5
5
|
export declare const ContentComponent: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
6
6
|
export declare const DragResizeWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../DragResizeWindow/types').DragResizeWindowProps & import('react').RefAttributes<HTMLDivElement>, keyof import('../../DragResizeWindow/types').DragResizeWindowProps | keyof import('react').RefAttributes<HTMLDivElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
7
7
|
export declare const PaperModalDialogStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -3,7 +3,7 @@ const windowBaseStyles = {
|
|
|
3
3
|
* Styles for the window base wrapper component.
|
|
4
4
|
* @author cesar - automatic
|
|
5
5
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
6
|
-
* @updatedAt 2024-
|
|
6
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
wrapperWindowBase: ({ theme, ownerState }) => ({
|
|
@@ -25,7 +25,7 @@ const windowBaseStyles = {
|
|
|
25
25
|
* Styles for the content of the window base component.
|
|
26
26
|
* @author cesar - automatic
|
|
27
27
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
28
|
-
* @updatedAt 2024-
|
|
28
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
29
29
|
* @updatedUser cesar - automatic
|
|
30
30
|
*/
|
|
31
31
|
contentWindowBase: ({ theme }) => ({
|
|
@@ -35,7 +35,7 @@ const windowBaseStyles = {
|
|
|
35
35
|
* Styles for the header of the window base component.
|
|
36
36
|
* @author cesar - automatic
|
|
37
37
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
38
|
-
* @updatedAt 2024-
|
|
38
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
39
39
|
* @updatedUser cesar - automatic
|
|
40
40
|
*/
|
|
41
41
|
headerWindowComponent: ({ theme, ownerState }) => ({
|
|
@@ -71,7 +71,7 @@ const windowBaseStyles = {
|
|
|
71
71
|
* Styles for the content of the header of the window base component.
|
|
72
72
|
* @author cesar - automatic
|
|
73
73
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
74
|
-
* @updatedAt 2024-
|
|
74
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
75
75
|
* @updatedUser cesar - automatic
|
|
76
76
|
*/
|
|
77
77
|
headerContentWindowBase: ({ theme }) => ({
|
|
@@ -86,7 +86,7 @@ const windowBaseStyles = {
|
|
|
86
86
|
* Styles for the title of the header of the window base component.
|
|
87
87
|
* @author cesar - automatic
|
|
88
88
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
89
|
-
* @updatedAt 2024-
|
|
89
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
90
90
|
* @updatedUser cesar - automatic
|
|
91
91
|
*/
|
|
92
92
|
headerTitleWindowBase: ({ theme }) => ({
|
|
@@ -98,7 +98,7 @@ const windowBaseStyles = {
|
|
|
98
98
|
* Styles for the subtitle container of the header of the window base component.
|
|
99
99
|
* @author cesar - automatic
|
|
100
100
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
101
|
-
* @updatedAt 2024-
|
|
101
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
102
102
|
* @updatedUser cesar - automatic
|
|
103
103
|
*/
|
|
104
104
|
subtitleContainer: ({ theme }) => ({
|
|
@@ -113,7 +113,7 @@ const windowBaseStyles = {
|
|
|
113
113
|
* @returns An object containing the styles for the dot window base component.
|
|
114
114
|
* @author cesar - automatic
|
|
115
115
|
* @createdAt 2024-11-22 19:40:23 - automatic
|
|
116
|
-
* @updatedAt 2024-
|
|
116
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
117
117
|
* @updatedUser cesar - automatic
|
|
118
118
|
*/
|
|
119
119
|
pointWindowBase: ({ theme, ownerState }) => ({
|
|
@@ -140,7 +140,7 @@ const windowBaseStyles = {
|
|
|
140
140
|
* Styles for the subtitle of the header of the window base component.
|
|
141
141
|
* @author cesar - automatic
|
|
142
142
|
* @createdAt 2024-11-15 18:08:44 - automatic
|
|
143
|
-
* @updatedAt 2024-
|
|
143
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
144
144
|
* @updatedUser cesar - automatic
|
|
145
145
|
*/
|
|
146
146
|
headerSubTitleWindowBase: ({ theme }) => ({
|
|
@@ -152,7 +152,7 @@ const windowBaseStyles = {
|
|
|
152
152
|
* Styles for the icon of the header of the window base component.
|
|
153
153
|
* @author cesar - automatic
|
|
154
154
|
* @createdAt 2024-11-18 08:11:19 - automatic
|
|
155
|
-
* @updatedAt 2024-
|
|
155
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
156
156
|
* @updatedUser cesar - automatic
|
|
157
157
|
*/
|
|
158
158
|
headerIconWindowBase: ({ theme }) => ({
|
|
@@ -166,7 +166,7 @@ const windowBaseStyles = {
|
|
|
166
166
|
* Styles for the icons wrapper of the window base component.
|
|
167
167
|
* @author cesar - automatic
|
|
168
168
|
* @createdAt 2024-11-18 08:11:19 - automatic
|
|
169
|
-
* @updatedAt 2024-
|
|
169
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
170
170
|
* @updatedUser cesar - automatic
|
|
171
171
|
*/
|
|
172
172
|
iconsWrapperWindowBase: () => ({
|
|
@@ -177,7 +177,7 @@ const windowBaseStyles = {
|
|
|
177
177
|
* Styles for the dot icon of the window base component.
|
|
178
178
|
* @author cesar - automatic
|
|
179
179
|
* @createdAt 2024-11-22 19:40:23 - automatic
|
|
180
|
-
* @updatedAt 2024-
|
|
180
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
181
181
|
* @updatedUser cesar - automatic
|
|
182
182
|
*/
|
|
183
183
|
pointIcon: ({ theme, ownerState }) => ({
|
|
@@ -197,6 +197,16 @@ const windowBaseStyles = {
|
|
|
197
197
|
height: theme.vars.size.desktop.medium.base
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
+
}),
|
|
201
|
+
/**
|
|
202
|
+
* Styles for the menu actions of the window base component.
|
|
203
|
+
* @author cesar - automatic
|
|
204
|
+
* @createdAt 2024-12-05 07:49:27 - automatic
|
|
205
|
+
* @updatedAt 2024-12-05 07:49:28 - automatic
|
|
206
|
+
* @updatedUser cesar - automatic
|
|
207
|
+
*/
|
|
208
|
+
menuActionsWindowBase: () => ({
|
|
209
|
+
left: "-50px"
|
|
200
210
|
})
|
|
201
211
|
};
|
|
202
212
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -22,7 +22,7 @@ import { WindowConfirmProps } from './types';
|
|
|
22
22
|
* />
|
|
23
23
|
* @author SebastianM - automatic
|
|
24
24
|
* @createdAt 2024-11-06 09:00:05 - automatic
|
|
25
|
-
* @updatedAt 2024-
|
|
25
|
+
* @updatedAt 2024-12-04 16:53:46 - automatic
|
|
26
26
|
* @updatedUser cesar - automatic
|
|
27
27
|
*/
|
|
28
28
|
export declare const WindowConfirm: (props: WindowConfirmProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,8 @@ import { W as WINDOW_CONFIRM_KEY_COMPONENT } from "./constants.js";
|
|
|
8
8
|
import { g as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
import { W as
|
|
11
|
+
import { W as WindowBase } from "../WindowBase/WindowBase.js";
|
|
12
|
+
import { W as WindowConfirmRootStyled, a as WindowConfirmContentStyled, M as MessageIllustrationStyled, A as ActionsContainerStyled, b as ActionCancelStyled, c as ActionIntroStyled } from "./slots/WindowConfirmSlots.js";
|
|
12
13
|
import { W as WindowConfirmSlots } from "./slots/WindowConfirmEnum.js";
|
|
13
14
|
const WindowConfirm = (props) => {
|
|
14
15
|
const {
|
|
@@ -51,7 +52,7 @@ const WindowConfirm = (props) => {
|
|
|
51
52
|
};
|
|
52
53
|
const { color } = getVariantMapping(variant);
|
|
53
54
|
const mappedVariant = getVariantMapping(variant).color;
|
|
54
|
-
return /* @__PURE__ */ jsx(AppearanceComponentProvider, { defaultSize: currentSize, children: /* @__PURE__ */ jsx(
|
|
55
|
+
return /* @__PURE__ */ jsx(AppearanceComponentProvider, { defaultSize: currentSize, children: /* @__PURE__ */ jsx(WindowBase, { variant: "text", title: getLabel("modal_dialog.label_window_confirm"), onClose: () => closeModal(), children: /* @__PURE__ */ jsx(
|
|
55
56
|
WindowConfirmRootStyled,
|
|
56
57
|
{
|
|
57
58
|
className: clsx(getComponentSlotRoot(WINDOW_CONFIRM_KEY_COMPONENT)),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const WindowBaseRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown>;
|
|
3
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
-
export declare const WrapperWindowBaseStyled: import('@emotion/styled').StyledComponent<
|
|
4
|
+
export declare const WrapperWindowBaseStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown>;
|
|
6
|
-
},
|
|
6
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
7
|
export declare const WindowConfirmRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown> & {
|
|
8
8
|
ownerState: Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown>;
|
|
9
9
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
10
|
export declare const WindowConfirmContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown> & {
|
|
11
11
|
ownerState: Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown>;
|
|
12
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
-
export declare const MessageIllustrationStyled: import('@emotion/styled').StyledComponent<Pick<import('../subcomponents/MessageIllustration').MessageIllustrationProps & import('..').OwnerStateWindowConfirm, "title" | "size" | "color" | "variant" | "msg" |
|
|
13
|
+
export declare const MessageIllustrationStyled: import('@emotion/styled').StyledComponent<Pick<import('../subcomponents/MessageIllustration').MessageIllustrationProps & import('..').OwnerStateWindowConfirm, "title" | "size" | "color" | "variant" | "msg" | keyof import('..').OwnerStateWindowConfirm | "labelIntro" | "labelCancel"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown> & {
|
|
14
14
|
ownerState: Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown>;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export declare const ActionsContainerStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').OwnerStateWindowConfirm> & Record<string, unknown> & {
|
|
@@ -2,7 +2,6 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { W as WINDOW_CONFIRM_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { W as WindowConfirmSlots } from "./WindowConfirmEnum.js";
|
|
4
4
|
import { w as windowConfirmStyles } from "../WindowConfirm.styles.js";
|
|
5
|
-
import { W as WindowBase } from "../../WindowBase/WindowBase.js";
|
|
6
5
|
import { M as MessageIllustration } from "../subcomponents/MessageIllustration/MessageIllustration.js";
|
|
7
6
|
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
8
7
|
import { A as ActionCancel } from "../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
@@ -13,7 +12,7 @@ styled("div", {
|
|
|
13
12
|
name: WINDOW_CONFIRM_KEY_COMPONENT,
|
|
14
13
|
slot: WindowConfirmSlots.windowBaseRoot
|
|
15
14
|
})(windowConfirmStyles?.windowBaseRoot);
|
|
16
|
-
|
|
15
|
+
styled("div", {
|
|
17
16
|
name: WINDOW_CONFIRM_KEY_COMPONENT,
|
|
18
17
|
slot: WindowConfirmSlots.wrapperWindowBase
|
|
19
18
|
})(windowConfirmStyles?.wrapperWindowBase);
|
|
@@ -66,12 +65,11 @@ export {
|
|
|
66
65
|
IllustrationContainerStyled as I,
|
|
67
66
|
MessageIllustrationStyled as M,
|
|
68
67
|
TextContentStyled as T,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
MessageStyled as g
|
|
68
|
+
WindowConfirmRootStyled as W,
|
|
69
|
+
WindowConfirmContentStyled as a,
|
|
70
|
+
ActionCancelStyled as b,
|
|
71
|
+
ActionIntroStyled as c,
|
|
72
|
+
IllustrationIconStyled as d,
|
|
73
|
+
TitleStyled as e,
|
|
74
|
+
MessageStyled as f
|
|
77
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
3
|
import { d as dictionary } from "../../dictionary.js";
|
|
4
|
-
import { I as IllustrationContainerStyled,
|
|
4
|
+
import { I as IllustrationContainerStyled, d as IllustrationIconStyled, T as TextContentStyled, e as TitleStyled, f as MessageStyled } from "../../slots/WindowConfirmSlots.js";
|
|
5
5
|
const MessageIllustration = (props) => {
|
|
6
6
|
const { getLabel } = useModuleDictionary();
|
|
7
7
|
const {
|
|
@@ -8,5 +8,5 @@ export declare const areasViewerClasses: AreasViewerClasses;
|
|
|
8
8
|
* @updatedAt 2024-10-22 19:27:23 - automatic
|
|
9
9
|
* @updatedUser Bruce Escobar - automatic
|
|
10
10
|
*/
|
|
11
|
-
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "
|
|
11
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "windowContent" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "windowRootContainer" | "windowLinearProgressRoot" | "windowLinearProgressBar" | "windowPopupRoot" | "windowModalRoot" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "panelWindowsSeparator" | "loaderContainer" | "containerComponent" | "selectedWindow" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider", string>;
|
|
12
12
|
export type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -14,7 +14,6 @@ export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfirm)
|
|
|
14
14
|
resizeHandle: string;
|
|
15
15
|
windowBaseRoot: string;
|
|
16
16
|
illustrationContainer: string;
|
|
17
|
-
windowContent: string;
|
|
18
17
|
containerWindow: string;
|
|
19
18
|
headerContainer: string;
|
|
20
19
|
iconHeader: string;
|
|
@@ -25,4 +24,5 @@ export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfirm)
|
|
|
25
24
|
messageContainer: string;
|
|
26
25
|
illustration: string;
|
|
27
26
|
windowConfirm: string;
|
|
27
|
+
windowContent: string;
|
|
28
28
|
};
|
|
@@ -100,6 +100,7 @@ const accordionStyles = {
|
|
|
100
100
|
padding: theme.vars.size.baseSpacings.sp3,
|
|
101
101
|
background: theme.vars.palette.background.default,
|
|
102
102
|
display: "flex",
|
|
103
|
+
flexDirection: "column",
|
|
103
104
|
alignItems: "flex-start",
|
|
104
105
|
alignSelf: "stretch",
|
|
105
106
|
borderBottomLeftRadius: `${theme.size.borderRadius.r1}`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useState, useMemo, createElement } from "react";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { useTheme } from "@mui/material/styles";
|
|
5
5
|
import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_, b as MENU_ACTIONS_EMPTY } from "./constants.js";
|
|
@@ -29,15 +29,14 @@ function MenuActions(props) {
|
|
|
29
29
|
...other
|
|
30
30
|
} = props;
|
|
31
31
|
const { currentSize } = useComponentSize(sizes);
|
|
32
|
-
const rootRef = useRef(null);
|
|
33
32
|
const OwnerState = {
|
|
34
33
|
iconSize: currentSize
|
|
35
34
|
};
|
|
36
35
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
37
36
|
const { getLabel } = useModuleDictionary();
|
|
38
|
-
const [
|
|
37
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
39
38
|
const handleOpenClose = () => {
|
|
40
|
-
|
|
39
|
+
setAnchorEl(null);
|
|
41
40
|
};
|
|
42
41
|
const theme = useTheme();
|
|
43
42
|
const urlFinalIcon = useMemo(() => {
|
|
@@ -48,8 +47,12 @@ function MenuActions(props) {
|
|
|
48
47
|
}, [urlIcon, host_static_assets, environment_assets]);
|
|
49
48
|
const handleClick = (e, menuAction) => {
|
|
50
49
|
e.stopPropagation();
|
|
50
|
+
setAnchorEl(null);
|
|
51
51
|
menuAction.onClick && menuAction.onClick(e);
|
|
52
|
-
|
|
52
|
+
};
|
|
53
|
+
const handleButtonClick = (e) => {
|
|
54
|
+
e.stopPropagation();
|
|
55
|
+
setAnchorEl(e.currentTarget);
|
|
53
56
|
};
|
|
54
57
|
const finalActions = useMemo(() => {
|
|
55
58
|
let ret;
|
|
@@ -60,17 +63,17 @@ function MenuActions(props) {
|
|
|
60
63
|
}
|
|
61
64
|
return ret;
|
|
62
65
|
}, [menuActions, objItem]);
|
|
63
|
-
return /* @__PURE__ */ jsxs(RootStyled, { ownerState: { OwnerState },
|
|
66
|
+
return /* @__PURE__ */ jsxs(RootStyled, { ownerState: { OwnerState }, children: [
|
|
64
67
|
/* @__PURE__ */ jsx(
|
|
65
68
|
IconButtonStyled,
|
|
66
69
|
{
|
|
67
70
|
ownerState: { OwnerState },
|
|
68
71
|
size: sizes,
|
|
69
72
|
src: urlFinalIcon,
|
|
70
|
-
onClick:
|
|
73
|
+
onClick: handleButtonClick,
|
|
71
74
|
tooltip: toolTip,
|
|
72
75
|
className: iconButtonClassName,
|
|
73
|
-
selected:
|
|
76
|
+
selected: Boolean(externalOpen ?? anchorEl),
|
|
74
77
|
disabled
|
|
75
78
|
}
|
|
76
79
|
),
|
|
@@ -79,8 +82,8 @@ function MenuActions(props) {
|
|
|
79
82
|
{
|
|
80
83
|
ownerState: { OwnerState },
|
|
81
84
|
id: "Popover",
|
|
82
|
-
open,
|
|
83
|
-
anchorEl: externalOpen ??
|
|
85
|
+
open: Boolean(externalOpen ?? anchorEl),
|
|
86
|
+
anchorEl: externalOpen ?? anchorEl,
|
|
84
87
|
onClose: () => handleOpenClose(),
|
|
85
88
|
arrowType,
|
|
86
89
|
sx: {
|
|
@@ -99,10 +102,10 @@ function MenuActions(props) {
|
|
|
99
102
|
{
|
|
100
103
|
ownerState: { OwnerState },
|
|
101
104
|
size: sizes,
|
|
105
|
+
...menuAction,
|
|
102
106
|
onClick: (e) => {
|
|
103
107
|
handleClick(e, menuAction);
|
|
104
108
|
},
|
|
105
|
-
...menuAction,
|
|
106
109
|
key: `${MENU_ACTIONS_}${index}`
|
|
107
110
|
}
|
|
108
111
|
)) }) : /* @__PURE__ */ jsx(
|
|
@@ -87,7 +87,8 @@ const tabStyles = {
|
|
|
87
87
|
backgroundColor: !ownerState.disabled ? ownerState.paletteColor?.main : theme.vars.palette.text.secondary
|
|
88
88
|
},
|
|
89
89
|
"span": {
|
|
90
|
-
color: !ownerState.disabled ?
|
|
90
|
+
color: !ownerState.disabled ? theme.vars.palette.primary.main : theme.vars.palette.text.secondary
|
|
91
|
+
//ownerState.paletteColor?.main
|
|
91
92
|
},
|
|
92
93
|
// Efecto ripple en estado seleccionado
|
|
93
94
|
"& .MuiTouchRipple-root": {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useState } from "react";
|
|
3
|
+
import { M as ModalDialog } from "../../components/ModalDialog/ModalDialog.js";
|
|
3
4
|
const ModalContext = createContext(null);
|
|
4
5
|
function ModalProvider({ children }) {
|
|
5
6
|
const [modalOptions, setModalOptions] = useState({
|
|
@@ -17,7 +18,7 @@ function ModalProvider({ children }) {
|
|
|
17
18
|
const closeModal = () => {
|
|
18
19
|
setModalOptions((last) => ({ ...last, open: false }));
|
|
19
20
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
21
22
|
ModalContext.Provider,
|
|
22
23
|
{
|
|
23
24
|
value: {
|
|
@@ -25,7 +26,10 @@ function ModalProvider({ children }) {
|
|
|
25
26
|
openModal,
|
|
26
27
|
closeModal
|
|
27
28
|
},
|
|
28
|
-
children
|
|
29
|
+
children: [
|
|
30
|
+
children,
|
|
31
|
+
/* @__PURE__ */ jsx(ModalDialog, {})
|
|
32
|
+
]
|
|
29
33
|
}
|
|
30
34
|
);
|
|
31
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.12",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"lint-staged": {
|
|
6
6
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@m4l/graphics": "^7.0.2",
|
|
56
56
|
"@m4l/styles": "^7.1.5",
|
|
57
57
|
"@mui/lab": "5.0.0-alpha.173",
|
|
58
|
-
"@mui/material": "
|
|
59
|
-
"@mui/x-date-pickers": "
|
|
58
|
+
"@mui/material": "5.16.7",
|
|
59
|
+
"@mui/x-date-pickers": "6.20.2"
|
|
60
60
|
},
|
|
61
61
|
"resolutions": {
|
|
62
62
|
"react": "^18.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { Accordion } from '
|
|
2
|
+
import { Accordion } from '../../../../../src/components/mui_extended/Accordion/Accordion';
|
|
3
3
|
declare const meta: Meta<typeof Accordion>;
|
|
4
4
|
type Story = StoryObj<typeof Accordion>;
|
|
5
5
|
/**********************************************
|