@m4l/components 9.3.4 → 9.3.6
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 +15 -0
- package/components/ObjectLogs/subcomponents/DetailDialog/index.js +3 -8
- package/components/ObjectLogs/types.d.ts +0 -2
- package/components/SettingsLayout/SettingsLayout.d.ts +5 -0
- package/components/SettingsLayout/SettingsLayout.js +34 -0
- package/components/SettingsLayout/SettingsLayout.styles.d.ts +2 -0
- package/components/SettingsLayout/SettingsLayout.styles.js +270 -0
- package/components/SettingsLayout/constants.d.ts +7 -0
- package/components/SettingsLayout/constants.js +10 -0
- package/components/SettingsLayout/dictionary.d.ts +8 -0
- package/components/SettingsLayout/dictionary.js +11 -0
- package/components/SettingsLayout/icons.d.ts +14 -0
- package/components/SettingsLayout/icons.js +17 -0
- package/components/SettingsLayout/index.d.ts +2 -0
- package/components/SettingsLayout/index.js +1 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.d.ts +17 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.js +21 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +47 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.js +83 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.js +37 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +37 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +40 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.d.ts +8 -0
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.js +23 -0
- package/components/SettingsLayout/subcomponents/SettingItem/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingItem/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingItem/types.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.d.ts +8 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +24 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/types.d.ts +6 -0
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +36 -0
- package/components/SettingsLayout/subcomponents/SettingMode/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingMode/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingMode/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +76 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/types.d.ts +5 -0
- package/components/SettingsLayout/test/SettingsLayout.test.d.ts +18 -0
- package/components/SettingsLayout/types.d.ts +47 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.d.ts +7 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.js +31 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.styles.d.ts +2 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.styles.js +12 -0
- package/components/extended/React-Json-Viewer/constants.d.ts +2 -0
- package/components/extended/React-Json-Viewer/constants.js +8 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.d.ts +8 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js +23 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/index.d.ts +1 -0
- package/components/extended/React-Json-Viewer/index.d.ts +1 -0
- package/components/extended/React-Json-Viewer/index.js +1 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerEnum.d.ts +3 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerEnum.js +7 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.d.ts +1 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.js +11 -0
- package/components/extended/React-Json-Viewer/test/ReactJsonViewer.test.d.ts +1 -0
- package/components/extended/React-Json-Viewer/types.d.ts +12 -0
- package/components/extended/index.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/index.js +46 -42
- package/package.json +1 -1
- package/storybook/components/SettingsLayout/SettingsLayout.stories.d.ts +6 -0
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/SettingsLayoutsRender.d.ts +5 -0
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/index.d.ts +1 -0
- package/storybook/components/extended/React-Json-Viewer/ReactJsonViewer.stories.d.ts +9 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const SettingsLayoutRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const BackdropStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').BackdropOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
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;
|
|
6
|
+
}, "children" | "ref" | "title" | "timeout" | "id" | "components" | "exit" | "hidden" | "color" | "content" | "style" | "open" | "easing" | "transitionDuration" | "translate" | "className" | "classes" | "sx" | "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" | "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" | "enter" | "componentsProps" | "TransitionComponent" | "in" | "mountOnEnter" | "unmountOnExit" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "invisible" | "appear">, "children" | "ref" | "title" | "timeout" | "id" | "components" | "exit" | "hidden" | "color" | "content" | "style" | "open" | "easing" | "transitionDuration" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "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" | "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" | "enter" | "componentsProps" | "TransitionComponent" | "in" | "mountOnEnter" | "unmountOnExit" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "invisible" | "appear"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
7
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').IconProps, keyof import('../..').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
10
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
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').Theme> & Record<string, unknown> & {
|
|
13
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export declare const HeaderContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
16
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
17
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
18
|
+
export declare const HeaderActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
19
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
20
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
21
|
+
export declare const DividerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
22
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
23
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
24
|
+
export declare const BodyContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
25
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
26
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
27
|
+
export declare const SettingContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
28
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
29
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
30
|
+
export declare const SettingIconTitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
31
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
32
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
33
|
+
export declare const SettingItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
34
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
35
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
36
|
+
export declare const SettingItemContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
37
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
38
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
39
|
+
export declare const SettingItemColorStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').IconProps, keyof import('../..').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
40
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
export declare const SettingItemColorContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
43
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
44
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
45
|
+
export declare const SettingFullscreenStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
46
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
47
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { S as SettingsLayoutSlots } from "./SettingsLayoutEnum.js";
|
|
3
|
+
import { a as SETTINGS_LAYOUT_COMPONENT_KEY } from "../constants.js";
|
|
4
|
+
import { s as settingsLayoutStyles } from "../SettingsLayout.styles.js";
|
|
5
|
+
import { Backdrop } from "@mui/material";
|
|
6
|
+
import { I as Icon } from "../../Icon/Icon.js";
|
|
7
|
+
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
8
|
+
import { B as Button } from "../../mui_extended/Button/Button.js";
|
|
9
|
+
const SettingsLayoutRootStyled = styled("div", {
|
|
10
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
11
|
+
slot: SettingsLayoutSlots.root
|
|
12
|
+
})(settingsLayoutStyles.root);
|
|
13
|
+
const BackdropStyled = styled(Backdrop, {
|
|
14
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
15
|
+
slot: SettingsLayoutSlots.backdrop
|
|
16
|
+
})(settingsLayoutStyles.backdrop);
|
|
17
|
+
styled(Icon, {
|
|
18
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
19
|
+
slot: SettingsLayoutSlots.icon
|
|
20
|
+
})(settingsLayoutStyles.icon);
|
|
21
|
+
const TypographyStyled = styled(Typography, {
|
|
22
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
23
|
+
slot: SettingsLayoutSlots.typography
|
|
24
|
+
})(settingsLayoutStyles.typography);
|
|
25
|
+
const HeaderContainerStyled = styled("div", {
|
|
26
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
27
|
+
slot: SettingsLayoutSlots.headerContainer
|
|
28
|
+
})(settingsLayoutStyles.headerContainer);
|
|
29
|
+
const HeaderActionsStyled = styled("div", {
|
|
30
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
31
|
+
slot: SettingsLayoutSlots.headerActions
|
|
32
|
+
})(settingsLayoutStyles.headerActions);
|
|
33
|
+
styled("div", {
|
|
34
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
35
|
+
slot: SettingsLayoutSlots.divider
|
|
36
|
+
})(settingsLayoutStyles.divider);
|
|
37
|
+
const BodyContentStyled = styled("div", {
|
|
38
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
39
|
+
slot: SettingsLayoutSlots.bodyContent
|
|
40
|
+
})(settingsLayoutStyles.bodyContent);
|
|
41
|
+
const SettingContainerStyled = styled("div", {
|
|
42
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
43
|
+
slot: SettingsLayoutSlots.settingContainer
|
|
44
|
+
})(settingsLayoutStyles.settingContainer);
|
|
45
|
+
const SettingIconTitleStyled = styled("div", {
|
|
46
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
47
|
+
slot: SettingsLayoutSlots.settingIconTitle
|
|
48
|
+
})(settingsLayoutStyles.settingIconTitle);
|
|
49
|
+
const SettingItemStyled = styled("div", {
|
|
50
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
51
|
+
slot: SettingsLayoutSlots.settingItem
|
|
52
|
+
})(settingsLayoutStyles.settingItem);
|
|
53
|
+
const SettingItemContentStyled = styled("div", {
|
|
54
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
55
|
+
slot: SettingsLayoutSlots.settingItemContent
|
|
56
|
+
})(settingsLayoutStyles.settingItemContent);
|
|
57
|
+
const SettingItemColorStyled = styled(Icon, {
|
|
58
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
59
|
+
slot: SettingsLayoutSlots.settingItemColor
|
|
60
|
+
})(settingsLayoutStyles.settingItemColor);
|
|
61
|
+
const SettingItemColorContainerStyled = styled("div", {
|
|
62
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
63
|
+
slot: SettingsLayoutSlots.settingItemColorContainer
|
|
64
|
+
})(settingsLayoutStyles.settingItemColorContainer);
|
|
65
|
+
const SettingFullscreenStyled = styled(Button, {
|
|
66
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
67
|
+
slot: SettingsLayoutSlots.settingFullscreen
|
|
68
|
+
})(settingsLayoutStyles.settingFullscreen);
|
|
69
|
+
export {
|
|
70
|
+
BackdropStyled as B,
|
|
71
|
+
HeaderContainerStyled as H,
|
|
72
|
+
SettingContainerStyled as S,
|
|
73
|
+
TypographyStyled as T,
|
|
74
|
+
SettingIconTitleStyled as a,
|
|
75
|
+
SettingItemContentStyled as b,
|
|
76
|
+
SettingFullscreenStyled as c,
|
|
77
|
+
SettingItemStyled as d,
|
|
78
|
+
SettingItemColorContainerStyled as e,
|
|
79
|
+
SettingItemColorStyled as f,
|
|
80
|
+
SettingsLayoutRootStyled as g,
|
|
81
|
+
HeaderActionsStyled as h,
|
|
82
|
+
BodyContentStyled as i
|
|
83
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Typography } from "@mui/material";
|
|
3
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { S as SettingContainerStyled, a as SettingIconTitleStyled, b as SettingItemContentStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
5
|
+
import { D as DICTIONARY } from "../../dictionary.js";
|
|
6
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
7
|
+
import { useThemeSettingsStore } from "@m4l/graphics";
|
|
8
|
+
import { S as SettingItemColor } from "../SettingItemColor/SettingItemColor.js";
|
|
9
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
10
|
+
const SettingColorPresets = (props) => {
|
|
11
|
+
const { prefixPathIcon } = props;
|
|
12
|
+
const { themeUserSettings, settingsActions, presetsOptionsColorMain } = useThemeSettingsStore((state) => state);
|
|
13
|
+
const { themeColor: themeColorPresets } = themeUserSettings;
|
|
14
|
+
const { onChangeColor } = settingsActions;
|
|
15
|
+
const { getLabel } = useModuleDictionary();
|
|
16
|
+
return /* @__PURE__ */ jsxs(SettingContainerStyled, { children: [
|
|
17
|
+
/* @__PURE__ */ jsxs(SettingIconTitleStyled, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Icon, { src: `${prefixPathIcon}/${PATH_ICONS.PALETTE}` }),
|
|
19
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", children: getLabel(DICTIONARY.PRESETS) })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ jsx(SettingItemContentStyled, { role: "group", "aria-label": "theme-preset-options", children: presetsOptionsColorMain.map((color, index) => {
|
|
22
|
+
const isSelected = themeColorPresets === color.name;
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
SettingItemColor,
|
|
25
|
+
{
|
|
26
|
+
color: color.name,
|
|
27
|
+
selected: isSelected,
|
|
28
|
+
onChange: () => onChangeColor(color.name)
|
|
29
|
+
},
|
|
30
|
+
`${color.name}-${index}`
|
|
31
|
+
);
|
|
32
|
+
}) })
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
SettingColorPresets as S
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingColorPresets } from './SettingColorPresets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
4
|
+
import { S as SettingContainerStyled, a as SettingIconTitleStyled, b as SettingItemContentStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
5
|
+
import { D as DICTIONARY } from "../../dictionary.js";
|
|
6
|
+
import { useThemeSettingsStore } from "@m4l/graphics";
|
|
7
|
+
import { T as Typography } from "../../../mui_extended/Typography/Typography.js";
|
|
8
|
+
import { S as SettingItem } from "../SettingItem/SettingItem.js";
|
|
9
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
10
|
+
function SettingDirection(props) {
|
|
11
|
+
const { prefixPathIcon } = props;
|
|
12
|
+
const { themeUserSettings, settingsActions } = useThemeSettingsStore((state) => state);
|
|
13
|
+
const { themeDirection } = themeUserSettings;
|
|
14
|
+
const { onChangeDirection } = settingsActions;
|
|
15
|
+
const { getLabel } = useModuleDictionary();
|
|
16
|
+
return /* @__PURE__ */ jsxs(SettingContainerStyled, { children: [
|
|
17
|
+
/* @__PURE__ */ jsxs(SettingIconTitleStyled, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Icon, { src: `${prefixPathIcon}/${PATH_ICONS.DIRECTION}` }),
|
|
19
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", children: getLabel(DICTIONARY.DIRECTION) })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ jsx(SettingItemContentStyled, { role: "group", "aria-label": "theme-direction-options", children: ["ltr", "rtl"].map((direction, index) => {
|
|
22
|
+
const isSelected = themeDirection === direction;
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
SettingItem,
|
|
25
|
+
{
|
|
26
|
+
iconUrl: direction === "ltr" ? `${prefixPathIcon}/${PATH_ICONS.ALIGN_LEFT}` : `${prefixPathIcon}/${PATH_ICONS.ALIGN_RIGHT}`,
|
|
27
|
+
selected: isSelected,
|
|
28
|
+
onChange: () => onChangeDirection(direction)
|
|
29
|
+
},
|
|
30
|
+
`${direction}-${index}`
|
|
31
|
+
);
|
|
32
|
+
}) })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
SettingDirection as S
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SettingDirection';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
4
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
5
|
+
import { D as DICTIONARY } from "../../dictionary.js";
|
|
6
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
7
|
+
import { c as SettingFullscreenStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
8
|
+
const SettingFullscreen = (props) => {
|
|
9
|
+
const { prefixPathIcon } = props;
|
|
10
|
+
const [fullscreen, setFullscreen] = useState(false);
|
|
11
|
+
const { getLabel } = useModuleDictionary();
|
|
12
|
+
const toggleFullScreen = () => {
|
|
13
|
+
if (!document.fullscreenElement) {
|
|
14
|
+
document.documentElement.requestFullscreen();
|
|
15
|
+
setFullscreen(true);
|
|
16
|
+
} else if (document.exitFullscreen) {
|
|
17
|
+
document.exitFullscreen();
|
|
18
|
+
setFullscreen(false);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
SettingFullscreenStyled,
|
|
23
|
+
{
|
|
24
|
+
fullWidth: true,
|
|
25
|
+
variant: "contained",
|
|
26
|
+
color: "default",
|
|
27
|
+
startIcon: /* @__PURE__ */ jsx(
|
|
28
|
+
Icon,
|
|
29
|
+
{
|
|
30
|
+
src: fullscreen ? `${prefixPathIcon}/${PATH_ICONS.FULLSCREEN_EXIT}` : `${prefixPathIcon}/${PATH_ICONS.FULLSCREEN}`
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
onClick: toggleFullScreen,
|
|
34
|
+
label: getLabel(fullscreen ? DICTIONARY.EXIT_FULLSCREEN : DICTIONARY.FULLSCREEN)
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
SettingFullscreen as S
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingFullscreen } from './SettingFullscreen';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SettingItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente para el item de configuración.
|
|
4
|
+
* Este componente se utiliza para mostrar un item de configuración en el componente SettingsLayout.
|
|
5
|
+
* @param props - Propiedades del componente.
|
|
6
|
+
* @returns Componente SettingItem.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SettingItem: (props: SettingItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { d as SettingItemStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
3
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
4
|
+
const SettingItem = (props) => {
|
|
5
|
+
const { iconUrl, onChange, selected } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
SettingItemStyled,
|
|
8
|
+
{
|
|
9
|
+
...onChange ? {
|
|
10
|
+
onClick: onChange,
|
|
11
|
+
tabIndex: 0,
|
|
12
|
+
role: "radio",
|
|
13
|
+
"aria-label": "theme-mode-options",
|
|
14
|
+
"aria-checked": true
|
|
15
|
+
} : {},
|
|
16
|
+
ownerState: { selected, onChange: !!onChange },
|
|
17
|
+
children: /* @__PURE__ */ jsx(Icon, { src: iconUrl, color: selected ? "primary.enabled" : "text.secondary" })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
SettingItem as S
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingItem } from './SettingItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SettingItemColorProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente para el item de configuración.
|
|
4
|
+
* Este componente se utiliza para mostrar un item de configuración en el componente SettingsLayout.
|
|
5
|
+
* @param props - Propiedades del componente.
|
|
6
|
+
* @returns Componente SettingItem.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SettingItemColor: (props: SettingItemColorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { e as SettingItemColorContainerStyled, f as SettingItemColorStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
3
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
4
|
+
import { useEnvironment } from "@m4l/core";
|
|
5
|
+
const SettingItemColor = (props) => {
|
|
6
|
+
const { onChange, selected, color } = props;
|
|
7
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
8
|
+
return /* @__PURE__ */ jsx(SettingItemColorContainerStyled, { children: /* @__PURE__ */ jsx(
|
|
9
|
+
SettingItemColorStyled,
|
|
10
|
+
{
|
|
11
|
+
src: `${host_static_assets}/${environment_assets}/${PATH_ICONS.COLOR}`,
|
|
12
|
+
...onChange ? {
|
|
13
|
+
onClick: onChange,
|
|
14
|
+
tabIndex: 0,
|
|
15
|
+
role: "radio",
|
|
16
|
+
"aria-checked": true
|
|
17
|
+
} : {},
|
|
18
|
+
ownerState: { selected, onChange: !!onChange, color }
|
|
19
|
+
}
|
|
20
|
+
) });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
SettingItemColor as S
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingItemColor } from './SettingItemColor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
3
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
5
|
+
import { D as DICTIONARY } from "../../dictionary.js";
|
|
6
|
+
import { S as SettingContainerStyled, a as SettingIconTitleStyled, b as SettingItemContentStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
7
|
+
import { useThemeSettingsStore } from "@m4l/graphics";
|
|
8
|
+
import { T as Typography } from "../../../mui_extended/Typography/Typography.js";
|
|
9
|
+
import { S as SettingItem } from "../SettingItem/SettingItem.js";
|
|
10
|
+
const SettingMode = (props) => {
|
|
11
|
+
const { prefixPathIcon } = props;
|
|
12
|
+
const { settingsActions, themeUserSettings } = useThemeSettingsStore((state) => state);
|
|
13
|
+
const { onChangeMode } = settingsActions;
|
|
14
|
+
const { getLabel } = useModuleDictionary();
|
|
15
|
+
return /* @__PURE__ */ jsxs(SettingContainerStyled, { role: "group", "aria-label": "theme-mode-options", children: [
|
|
16
|
+
/* @__PURE__ */ jsxs(SettingIconTitleStyled, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Icon, { src: `${prefixPathIcon}/${PATH_ICONS.MODE}` }),
|
|
18
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", children: getLabel(DICTIONARY.MODE) })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ jsx(SettingItemContentStyled, { children: ["light", "dark"].map((mode, index) => {
|
|
21
|
+
const isSelected = themeUserSettings.themeMode === mode;
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
SettingItem,
|
|
24
|
+
{
|
|
25
|
+
iconUrl: mode === "light" ? `${prefixPathIcon}/${PATH_ICONS.SUN}` : `${prefixPathIcon}/${PATH_ICONS.MOON}`,
|
|
26
|
+
selected: isSelected,
|
|
27
|
+
onChange: () => onChangeMode(mode)
|
|
28
|
+
},
|
|
29
|
+
`${mode}-${index}`
|
|
30
|
+
);
|
|
31
|
+
}) })
|
|
32
|
+
] });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
SettingMode as S
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingMode } from './SettingMode';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatePresence } from "framer-motion";
|
|
3
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
5
|
+
import { B as BackdropStyled, g as SettingsLayoutRootStyled, H as HeaderContainerStyled, T as TypographyStyled, h as HeaderActionsStyled, i as BodyContentStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
6
|
+
import { S as SettingDirection } from "../SettingDirection/SettingDirection.js";
|
|
7
|
+
import { D as DICTIONARY } from "../../dictionary.js";
|
|
8
|
+
import { useThemeSettingsStore } from "@m4l/graphics";
|
|
9
|
+
import { b as SETTINGS_LAYOUT_CLASSES } from "../../constants.js";
|
|
10
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
11
|
+
import { S as SettingMode } from "../SettingMode/SettingMode.js";
|
|
12
|
+
import { S as SettingColorPresets } from "../SettingColorPresets/SettingColorPresets.js";
|
|
13
|
+
import { S as SettingFullscreen } from "../SettingFullscreen/SettingFullscreen.js";
|
|
14
|
+
const SettingsLayoutBase = (props) => {
|
|
15
|
+
const {
|
|
16
|
+
open,
|
|
17
|
+
themeUserSettings,
|
|
18
|
+
settingsActions
|
|
19
|
+
} = useThemeSettingsStore((state) => state);
|
|
20
|
+
const { prefixPathIcon, width } = props;
|
|
21
|
+
const { themeDirection } = themeUserSettings;
|
|
22
|
+
const { onResetSetting, handleOpen } = settingsActions;
|
|
23
|
+
const { getLabel } = useModuleDictionary();
|
|
24
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
BackdropStyled,
|
|
27
|
+
{
|
|
28
|
+
ownerState: {},
|
|
29
|
+
open,
|
|
30
|
+
onClick: () => handleOpen()
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(SettingsLayoutRootStyled, { role: "form", "aria-label": "settings-layout", ownerState: { themeDirection, width }, className: SETTINGS_LAYOUT_CLASSES.root, children: [
|
|
34
|
+
/* @__PURE__ */ jsxs(HeaderContainerStyled, { ownerState: {}, className: SETTINGS_LAYOUT_CLASSES.headerContainer, children: [
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
TypographyStyled,
|
|
37
|
+
{
|
|
38
|
+
ownerState: {},
|
|
39
|
+
variant: "subtitleDens",
|
|
40
|
+
ellipsis: true,
|
|
41
|
+
children: getLabel(DICTIONARY.MODULE_NAME)
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ jsxs(HeaderActionsStyled, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(
|
|
46
|
+
IconButton,
|
|
47
|
+
{
|
|
48
|
+
src: `${prefixPathIcon}/${PATH_ICONS.REFRESH}`,
|
|
49
|
+
onClick: onResetSetting,
|
|
50
|
+
role: "button",
|
|
51
|
+
"aria-label": "reset-setting"
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ jsx(
|
|
55
|
+
IconButton,
|
|
56
|
+
{
|
|
57
|
+
src: `${prefixPathIcon}/${PATH_ICONS.CLOSE}`,
|
|
58
|
+
onClick: () => handleOpen(),
|
|
59
|
+
role: "button",
|
|
60
|
+
"aria-label": "close-settings"
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ jsxs(BodyContentStyled, { ownerState: {}, children: [
|
|
66
|
+
/* @__PURE__ */ jsx(SettingMode, { prefixPathIcon }),
|
|
67
|
+
/* @__PURE__ */ jsx(SettingDirection, { prefixPathIcon }),
|
|
68
|
+
/* @__PURE__ */ jsx(SettingColorPresets, { prefixPathIcon }),
|
|
69
|
+
/* @__PURE__ */ jsx(SettingFullscreen, { prefixPathIcon })
|
|
70
|
+
] })
|
|
71
|
+
] }) })
|
|
72
|
+
] });
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
SettingsLayoutBase as S
|
|
76
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingsLayoutBase } from './SettingsLayoutBase';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|