@zealicsolutions/web-ui 1.0.79 → 1.0.80-beta.10
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/dist/cjs/components/Buttons/TextButton.d.ts +1 -1
- package/dist/cjs/components/Input/helpers.d.ts +1 -1
- package/dist/cjs/contexts/LayoutContext/LayoutContext.d.ts +1 -0
- package/dist/cjs/contexts/LayoutContext/LayoutContextProvider.d.ts +1 -0
- package/dist/cjs/helpers/styles.d.ts +1 -0
- package/dist/cjs/index.js +1585 -1585
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Button/Button.d.ts +3 -3
- package/dist/cjs/molecules/Calendar/hooks/useCalendarStyling.d.ts +1 -1
- package/dist/cjs/molecules/Checklist/Checklist.stories.d.ts +5 -5
- package/dist/cjs/molecules/Divider/Divider.d.ts +1 -1
- package/dist/cjs/molecules/Divider/Divider.stories.d.ts +7 -6
- package/dist/cjs/molecules/Drawer/Drawer.stories.d.ts +3 -16
- package/dist/cjs/molecules/Drawer/styles.d.ts +17 -48
- package/dist/cjs/molecules/Drawer/types.d.ts +8 -2
- package/dist/cjs/molecules/Stepper/Stepper.stories.d.ts +5 -5
- package/dist/cjs/molecules/Tabs/Tabs.stories.d.ts +5 -5
- package/dist/esm/components/Buttons/TextButton.d.ts +1 -1
- package/dist/esm/components/Input/helpers.d.ts +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContext.d.ts +1 -0
- package/dist/esm/contexts/LayoutContext/LayoutContext.js +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContext.js.map +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.d.ts +1 -0
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js +1 -1
- package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js.map +1 -1
- package/dist/esm/helpers/styles.d.ts +1 -0
- package/dist/esm/helpers/styles.js +1 -1
- package/dist/esm/helpers/styles.js.map +1 -1
- package/dist/esm/molecules/Accordion/Accordion.js +1 -1
- package/dist/esm/molecules/Avatar/Avatar.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Button/Button.d.ts +3 -3
- package/dist/esm/molecules/Button/Button.js +1 -1
- package/dist/esm/molecules/Button/Button.js.map +1 -1
- package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.d.ts +1 -1
- package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js +1 -1
- package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js.map +1 -1
- package/dist/esm/molecules/Checklist/Checklist.stories.d.ts +5 -5
- package/dist/esm/molecules/Divider/Divider.d.ts +1 -1
- package/dist/esm/molecules/Divider/Divider.js +1 -1
- package/dist/esm/molecules/Divider/Divider.js.map +1 -1
- package/dist/esm/molecules/Divider/Divider.stories.d.ts +7 -6
- package/dist/esm/molecules/Drawer/Drawer.js +1 -1
- package/dist/esm/molecules/Drawer/Drawer.js.map +1 -1
- package/dist/esm/molecules/Drawer/Drawer.stories.d.ts +3 -16
- package/dist/esm/molecules/Drawer/styles.d.ts +17 -48
- package/dist/esm/molecules/Drawer/styles.js +1 -1
- package/dist/esm/molecules/Drawer/styles.js.map +1 -1
- package/dist/esm/molecules/Drawer/types.d.ts +8 -2
- package/dist/esm/molecules/Menu/Menu.js +1 -1
- package/dist/esm/molecules/PasswordSetup/PasswordSetup.js +1 -1
- package/dist/esm/molecules/Stepper/Stepper.js +1 -1
- package/dist/esm/molecules/Stepper/Stepper.stories.d.ts +5 -5
- package/dist/esm/molecules/Tabs/Tabs.stories.d.ts +5 -5
- package/dist/index.d.ts +14 -6
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
2
|
import { ButtonProps as MuiButtonProps, TypographyProps } from '@mui/material';
|
3
3
|
import { ConfigurationItemInfo } from 'containers';
|
4
4
|
import { IconRendererProps } from 'molecules/Icon';
|
5
5
|
export interface ButtonProps extends MuiButtonProps {
|
6
|
-
gap
|
6
|
+
gap?: number | string;
|
7
7
|
moleculeId?: string;
|
8
8
|
configurationItemInfo?: ConfigurationItemInfo;
|
9
9
|
borderRadius?: string | number;
|
@@ -34,4 +34,4 @@ export interface ButtonProps extends MuiButtonProps {
|
|
34
34
|
* We use `forwardRef` so that the ref passed from parent Component (Menu)
|
35
35
|
* will correctly point to the underlying <MuiButton> element.
|
36
36
|
*/
|
37
|
-
export declare const Button:
|
37
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Pick<ButtonProps, "color" | "fontFamily" | "fontSize" | "fontWeight" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "textAlign" | "translate" | "width" | "borderRadius" | "gap" | "action" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "form" | "link" | "slot" | "title" | "text" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "value" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "textColor" | "configurationItemInfo" | "moleculeId" | "wrapText" | "elevated" | "disabledColor"> & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -224,6 +224,6 @@ export declare const useCalendarStyling: (props: CalendarStylingProps) => {
|
|
224
224
|
readonly borderColor: string | undefined;
|
225
225
|
};
|
226
226
|
};
|
227
|
-
getMaterialElevation: (elevation?: number) => string;
|
227
|
+
getMaterialElevation: (elevation?: number | undefined) => string;
|
228
228
|
};
|
229
229
|
export {};
|
@@ -81,7 +81,7 @@ declare const _default: {
|
|
81
81
|
};
|
82
82
|
};
|
83
83
|
export default _default;
|
84
|
-
export declare const UserInteractiveCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
84
|
+
export declare const UserInteractiveCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "maxWidth" | "minWidth" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "width" | "gap"> & {
|
85
85
|
gap: number | string;
|
86
86
|
width: number | string;
|
87
87
|
minWidth: number | string;
|
@@ -98,7 +98,7 @@ export declare const UserInteractiveCheckboxes: import("@storybook/types").Annot
|
|
98
98
|
interacted: 'checked' | 'unchecked';
|
99
99
|
}> | undefined;
|
100
100
|
}>;
|
101
|
-
export declare const SystemDrivenCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
101
|
+
export declare const SystemDrivenCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "maxWidth" | "minWidth" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "width" | "gap"> & {
|
102
102
|
gap: number | string;
|
103
103
|
width: number | string;
|
104
104
|
minWidth: number | string;
|
@@ -115,7 +115,7 @@ export declare const SystemDrivenCheckboxes: import("@storybook/types").Annotate
|
|
115
115
|
interacted: 'checked' | 'unchecked';
|
116
116
|
}> | undefined;
|
117
117
|
}>;
|
118
|
-
export declare const MixedChecklistWithWidthConstraints: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
118
|
+
export declare const MixedChecklistWithWidthConstraints: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "maxWidth" | "minWidth" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "width" | "gap"> & {
|
119
119
|
gap: number | string;
|
120
120
|
width: number | string;
|
121
121
|
minWidth: number | string;
|
@@ -132,7 +132,7 @@ export declare const MixedChecklistWithWidthConstraints: import("@storybook/type
|
|
132
132
|
interacted: 'checked' | 'unchecked';
|
133
133
|
}> | undefined;
|
134
134
|
}>;
|
135
|
-
export declare const WithCustomSpacing: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
135
|
+
export declare const WithCustomSpacing: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "maxWidth" | "minWidth" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "width" | "gap"> & {
|
136
136
|
gap: number | string;
|
137
137
|
width: number | string;
|
138
138
|
minWidth: number | string;
|
@@ -149,7 +149,7 @@ export declare const WithCustomSpacing: import("@storybook/types").AnnotatedStor
|
|
149
149
|
interacted: 'checked' | 'unchecked';
|
150
150
|
}> | undefined;
|
151
151
|
}>;
|
152
|
-
export declare const WithStateObjectValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
152
|
+
export declare const WithStateObjectValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "maxWidth" | "minWidth" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "width" | "gap"> & {
|
153
153
|
gap: number | string;
|
154
154
|
width: number | string;
|
155
155
|
minWidth: number | string;
|
@@ -15,4 +15,4 @@ export interface DividerProps {
|
|
15
15
|
marginLeft?: string | number;
|
16
16
|
configurationItemInfo?: ConfigurationItemInfo;
|
17
17
|
}
|
18
|
-
export declare const Divider: ({ moleculeId, lineWeight, orientation, borderColor, borderRadius, sx, marginTop, marginRight, marginBottom, marginLeft, configurationItemInfo, }: DividerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
18
|
+
export declare const Divider: ({ moleculeId, variant, lineWeight, orientation, borderColor, borderRadius, sx, marginTop, marginRight, marginBottom, marginLeft, configurationItemInfo, }: DividerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
2
1
|
import { DividerProps } from './Divider';
|
3
|
-
declare const _default:
|
4
|
-
title: string;
|
5
|
-
component: ({ moleculeId, lineWeight, orientation, borderColor, borderRadius, sx, marginTop, marginRight, marginBottom, marginLeft, configurationItemInfo, }: DividerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
6
|
-
};
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
7
3
|
export default _default;
|
8
|
-
export declare const
|
4
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
5
|
+
export declare const Vertical: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
6
|
+
export declare const ThickColored: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
7
|
+
export declare const StyledVertical: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
8
|
+
export declare const DrawerStyle: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
9
|
+
export declare const Playground: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DividerProps>;
|
@@ -1,32 +1,19 @@
|
|
1
1
|
import { DrawerProps } from './types';
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
3
3
|
export default _default;
|
4
|
-
export declare const BasicDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
5
4
|
export declare const PermanentDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
|
6
5
|
showHeader?: boolean | undefined;
|
7
6
|
headerTitle?: string | undefined;
|
8
7
|
headerHeight?: number | undefined;
|
9
|
-
contentPadding?: number | undefined;
|
10
8
|
contentText?: string | undefined;
|
11
|
-
buttonPosition?: "header" | "content" | undefined;
|
12
9
|
}>;
|
13
|
-
export declare const
|
10
|
+
export declare const PersistentDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
|
14
11
|
showHeader?: boolean | undefined;
|
15
12
|
headerTitle?: string | undefined;
|
16
13
|
headerHeight?: number | undefined;
|
17
|
-
contentPadding?: number | undefined;
|
18
14
|
contentText?: string | undefined;
|
19
|
-
buttonPosition?: "header" | "content" | undefined;
|
20
|
-
}>;
|
21
|
-
export declare const MixedItemsDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
22
|
-
export declare const BottomDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
23
|
-
export declare const ResponsiveDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
|
24
|
-
showHeader?: boolean | undefined;
|
25
|
-
headerTitle?: string | undefined;
|
26
|
-
headerHeight?: number | undefined;
|
27
|
-
contentPadding?: number | undefined;
|
28
|
-
contentText?: string | undefined;
|
29
|
-
buttonPosition?: "header" | "content" | undefined;
|
30
15
|
}>;
|
16
|
+
export declare const TemporaryDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
17
|
+
export declare const EnhancedCloseIcon: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
31
18
|
export declare const ConfigurationMode: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
32
19
|
export declare const Playground: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
@@ -11,7 +11,6 @@ export declare type StyledDrawerProps = DrawerComponentProps & {
|
|
11
11
|
height?: number | string;
|
12
12
|
width?: number | string;
|
13
13
|
backgroundColor?: string;
|
14
|
-
gap?: number | string;
|
15
14
|
marginTop?: string;
|
16
15
|
marginRight?: string;
|
17
16
|
marginBottom?: string;
|
@@ -30,64 +29,34 @@ export declare const BaseDrawer: import("@emotion/styled").StyledComponent<Drawe
|
|
30
29
|
height?: string | number | undefined;
|
31
30
|
width?: string | number | undefined;
|
32
31
|
backgroundColor?: string | undefined;
|
33
|
-
gap?: string | number | undefined;
|
34
32
|
marginTop?: string | undefined;
|
35
33
|
marginRight?: string | undefined;
|
36
34
|
marginBottom?: string | undefined;
|
37
35
|
marginLeft?: string | undefined;
|
38
|
-
positionType?: "
|
36
|
+
positionType?: "absolute" | "normal" | undefined;
|
39
37
|
}, {}, {}>;
|
40
|
-
export declare
|
41
|
-
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
42
|
-
};
|
43
|
-
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
38
|
+
export declare const DrawerWithCloseIcon: import("@emotion/styled").StyledComponent<{
|
44
39
|
theme?: import("@emotion/react").Theme | undefined;
|
45
40
|
as?: import("react").ElementType<any> | undefined;
|
46
|
-
}
|
47
|
-
|
48
|
-
withoutOpacityEffect?: boolean | undefined;
|
49
|
-
disabled?: boolean | undefined;
|
50
|
-
} & {
|
51
|
-
children?: import("react").ReactNode;
|
52
|
-
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
53
|
-
theme?: import("@emotion/react").Theme | undefined;
|
54
|
-
} & IconWrapperProps, {}, {}>;
|
55
|
-
export declare const DrawerContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
56
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
57
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
41
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
42
|
+
export declare const DrawerContent: import("@emotion/styled").StyledComponent<{
|
58
43
|
theme?: import("@emotion/react").Theme | undefined;
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
}, "children" | "className" | "style" | "classes" | "sx" | "dense" | "disablePadding" | "subheader"> & {
|
63
|
-
theme?: import("@emotion/react").Theme | undefined;
|
64
|
-
}, {}, {}>;
|
65
|
-
export declare const DrawerMenuItem: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
66
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
67
|
-
}, "children" | "divider" | "disabled" | "selected" | "className" | "style" | "classes" | "sx" | "tabIndex" | "autoFocus" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "dense" | "disableGutters"> & {
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
46
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
68
47
|
theme?: import("@emotion/react").Theme | undefined;
|
48
|
+
as?: import("react").ElementType<any> | undefined;
|
69
49
|
} & {
|
50
|
+
top?: string | number | undefined;
|
51
|
+
left?: string | number | undefined;
|
52
|
+
borderRadius?: string | number | undefined;
|
53
|
+
elevation?: number | undefined;
|
70
54
|
backgroundColor?: string | undefined;
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
textAlign?: "left" | "center" | "right" | "justify" | undefined;
|
76
|
-
}, {}, {}>;
|
77
|
-
export declare const DrawerMenuItemText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
78
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
79
|
-
}, "children" | "width" | "height" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "borderRadius" | "minWidth" | "maxWidth" | "top" | "bottom" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "variant" | "color" | "left" | "borderColor" | "right" | "className" | "style" | "classes" | "sx" | "p" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "maxHeight" | "minHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "position" | "rowGap" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "borderTop" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
55
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
56
|
+
export declare const DrawerItemsList: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
|
57
|
+
ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
|
58
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "subheader" | "dense" | "disablePadding"> & {
|
80
59
|
theme?: import("@emotion/react").Theme | undefined;
|
81
60
|
} & {
|
82
|
-
|
83
|
-
fontSize?: string | undefined;
|
84
|
-
fontWeight?: "bold" | "normal" | undefined;
|
85
|
-
fontFamily?: string | undefined;
|
86
|
-
wrap?: boolean | undefined;
|
87
|
-
textAlign?: "left" | "center" | "right" | "justify" | undefined;
|
61
|
+
gap?: string | number | undefined;
|
88
62
|
}, {}, {}>;
|
89
|
-
export declare const ButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
90
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
91
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
92
|
-
theme?: import("@emotion/react").Theme | undefined;
|
93
|
-
} & import("@mui/material").Theme, {}, {}>;
|
@@ -92,6 +92,7 @@ export interface DrawerProps {
|
|
92
92
|
paddingLeft?: string;
|
93
93
|
height?: number | string;
|
94
94
|
width?: number | string;
|
95
|
+
mobileWidth?: string | number;
|
95
96
|
backgroundColor?: string;
|
96
97
|
gap?: number | string;
|
97
98
|
marginTop?: string;
|
@@ -111,7 +112,7 @@ export interface DrawerProps {
|
|
111
112
|
buttonGap?: number | string;
|
112
113
|
buttonStartIcon?: string;
|
113
114
|
buttonEndIcon?: string;
|
114
|
-
|
115
|
+
buttonBorderRadius?: string | number;
|
115
116
|
buttonMarginTop?: string;
|
116
117
|
buttonMarginRight?: string;
|
117
118
|
buttonMarginBottom?: string;
|
@@ -124,7 +125,12 @@ export interface DrawerProps {
|
|
124
125
|
closeIconColor?: ThemeColors | string;
|
125
126
|
closeIconName?: string;
|
126
127
|
closeIconSize?: number;
|
127
|
-
|
128
|
+
closeIconBackgroundColor?: string;
|
129
|
+
closeIconVisible?: boolean;
|
130
|
+
closeIconTop?: string | number;
|
131
|
+
closeIconLeft?: string | number;
|
132
|
+
closeIconBorderRadius?: number | string;
|
133
|
+
closeIconElevation?: number;
|
128
134
|
moleculeId?: string;
|
129
135
|
configurationItemInfo?: ConfigurationItemInfo;
|
130
136
|
}
|
@@ -85,7 +85,7 @@ declare const _default: {
|
|
85
85
|
};
|
86
86
|
};
|
87
87
|
export default _default;
|
88
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
88
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "borderRadius" | "gap" | "iconSize" | "stepGap" | "lineWidth" | "lineRadius" | "iconBorderRadius"> & {
|
89
89
|
gap: number | string;
|
90
90
|
stepGap: number | string;
|
91
91
|
iconSize: number | string;
|
@@ -102,7 +102,7 @@ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import
|
|
102
102
|
marginLeft: number | string;
|
103
103
|
borderRadius: number | string;
|
104
104
|
}>;
|
105
|
-
export declare const Horizontal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
105
|
+
export declare const Horizontal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "borderRadius" | "gap" | "iconSize" | "stepGap" | "lineWidth" | "lineRadius" | "iconBorderRadius"> & {
|
106
106
|
gap: number | string;
|
107
107
|
stepGap: number | string;
|
108
108
|
iconSize: number | string;
|
@@ -119,7 +119,7 @@ export declare const Horizontal: import("@storybook/types").AnnotatedStoryFn<imp
|
|
119
119
|
marginLeft: number | string;
|
120
120
|
borderRadius: number | string;
|
121
121
|
}>;
|
122
|
-
export declare const WithCustomGap: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
122
|
+
export declare const WithCustomGap: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "borderRadius" | "gap" | "iconSize" | "stepGap" | "lineWidth" | "lineRadius" | "iconBorderRadius"> & {
|
123
123
|
gap: number | string;
|
124
124
|
stepGap: number | string;
|
125
125
|
iconSize: number | string;
|
@@ -136,7 +136,7 @@ export declare const WithCustomGap: import("@storybook/types").AnnotatedStoryFn<
|
|
136
136
|
marginLeft: number | string;
|
137
137
|
borderRadius: number | string;
|
138
138
|
}>;
|
139
|
-
export declare const MobileView: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
139
|
+
export declare const MobileView: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "borderRadius" | "gap" | "iconSize" | "stepGap" | "lineWidth" | "lineRadius" | "iconBorderRadius"> & {
|
140
140
|
gap: number | string;
|
141
141
|
stepGap: number | string;
|
142
142
|
iconSize: number | string;
|
@@ -153,7 +153,7 @@ export declare const MobileView: import("@storybook/types").AnnotatedStoryFn<imp
|
|
153
153
|
marginLeft: number | string;
|
154
154
|
borderRadius: number | string;
|
155
155
|
}>;
|
156
|
-
export declare const WithMarginAndPadding: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
156
|
+
export declare const WithMarginAndPadding: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "borderRadius" | "gap" | "iconSize" | "stepGap" | "lineWidth" | "lineRadius" | "iconBorderRadius"> & {
|
157
157
|
gap: number | string;
|
158
158
|
stepGap: number | string;
|
159
159
|
iconSize: number | string;
|
@@ -130,7 +130,7 @@ declare const _default: {
|
|
130
130
|
};
|
131
131
|
};
|
132
132
|
export default _default;
|
133
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
133
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "gap" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft" | "lineWidth"> & {
|
134
134
|
gap: number | string;
|
135
135
|
lineWidth: number | string;
|
136
136
|
marginTop: number | string;
|
@@ -146,7 +146,7 @@ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import
|
|
146
146
|
buttonPaddingBottom: number | string;
|
147
147
|
buttonPaddingLeft: number | string;
|
148
148
|
}>;
|
149
|
-
export declare const NoIndicator: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
149
|
+
export declare const NoIndicator: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "gap" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft" | "lineWidth"> & {
|
150
150
|
gap: number | string;
|
151
151
|
lineWidth: number | string;
|
152
152
|
marginTop: number | string;
|
@@ -162,7 +162,7 @@ export declare const NoIndicator: import("@storybook/types").AnnotatedStoryFn<im
|
|
162
162
|
buttonPaddingBottom: number | string;
|
163
163
|
buttonPaddingLeft: number | string;
|
164
164
|
}>;
|
165
|
-
export declare const MobileVersion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
165
|
+
export declare const MobileVersion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "gap" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft" | "lineWidth"> & {
|
166
166
|
gap: number | string;
|
167
167
|
lineWidth: number | string;
|
168
168
|
marginTop: number | string;
|
@@ -178,7 +178,7 @@ export declare const MobileVersion: import("@storybook/types").AnnotatedStoryFn<
|
|
178
178
|
buttonPaddingBottom: number | string;
|
179
179
|
buttonPaddingLeft: number | string;
|
180
180
|
}>;
|
181
|
-
export declare const AdvancedStyling: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
181
|
+
export declare const AdvancedStyling: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "gap" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft" | "lineWidth"> & {
|
182
182
|
gap: number | string;
|
183
183
|
lineWidth: number | string;
|
184
184
|
marginTop: number | string;
|
@@ -194,7 +194,7 @@ export declare const AdvancedStyling: import("@storybook/types").AnnotatedStoryF
|
|
194
194
|
buttonPaddingBottom: number | string;
|
195
195
|
buttonPaddingLeft: number | string;
|
196
196
|
}>;
|
197
|
-
export declare const VerticalTabs: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
197
|
+
export declare const VerticalTabs: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "gap" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft" | "lineWidth"> & {
|
198
198
|
gap: number | string;
|
199
199
|
lineWidth: number | string;
|
200
200
|
marginTop: number | string;
|
@@ -10,7 +10,7 @@ export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClic
|
|
10
10
|
textColor: string;
|
11
11
|
}>;
|
12
12
|
export declare const BaseTextButton: React.FC<TextButtonProps & React.AnchorHTMLAttributes<HTMLAnchorElement>>;
|
13
|
-
export declare const TextButton: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, "children" | "
|
13
|
+
export declare const TextButton: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & Partial<{
|
14
14
|
buttonLink: string;
|
15
15
|
elementId: string;
|
16
16
|
$styles: StylesType;
|
@@ -10,7 +10,7 @@ export declare type MaskConfig = {
|
|
10
10
|
};
|
11
11
|
export declare const getSpecificInputProps: (type: string) => {
|
12
12
|
type?: HTMLInputTypeAttribute | undefined;
|
13
|
-
inputMode?: "
|
13
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
14
14
|
};
|
15
15
|
export declare const getMaskInputProps: (type?: any, config?: MaskConfig) => Pick<MaskedInputProps, 'pipe' | 'mask' | 'placeholder' | 'keepCharPositions'>;
|
16
16
|
export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<Partial<{
|
@@ -12,6 +12,7 @@ export interface LayoutContextType {
|
|
12
12
|
setDrawerContainerRef?: (ref: Element | null) => void;
|
13
13
|
headerHeight?: string;
|
14
14
|
setHeaderHeight?: (height: string) => void;
|
15
|
+
isMobile?: boolean;
|
15
16
|
isMLR?: boolean;
|
16
17
|
}
|
17
18
|
export declare const LayoutContext: import("react").Context<LayoutContextType>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{createContext as e}from"react";var
|
1
|
+
import{createContext as e}from"react";var i=e({drawer:{width:0,position:"right",isOpen:!1,positionType:"normal"},updateDrawer:function(){},drawerContainerRef:void 0,setDrawerContainerRef:function(){},headerHeight:"0px",setHeaderHeight:function(){},isMobile:!1,isMLR:!1});export{i as LayoutContext};
|
2
2
|
//# sourceMappingURL=LayoutContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LayoutContext.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContext.ts"],"sourcesContent":[null],"names":["LayoutContext","createContext","drawer","width","position","isOpen","positionType","updateDrawer","drawerContainerRef","undefined","setDrawerContainerRef","headerHeight","setHeaderHeight","isMLR"],"mappings":"
|
1
|
+
{"version":3,"file":"LayoutContext.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContext.ts"],"sourcesContent":[null],"names":["LayoutContext","createContext","drawer","width","position","isOpen","positionType","updateDrawer","drawerContainerRef","undefined","setDrawerContainerRef","headerHeight","setHeaderHeight","isMobile","isMLR"],"mappings":"sCAuBO,IAAMA,EAAgBC,EAAiC,CAC5DC,OAAQ,CAAEC,MAAO,EAAGC,SAAU,QAASC,QAAQ,EAAOC,aAAc,UACpEC,aAAc,WAAS,EACvBC,wBAAoBC,EACpBC,sBAAuB,WAAS,EAChCC,aAAc,MACdC,gBAAiB,WAAS,EAC1BC,UAAU,EACVC,OAAO"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as i}from"../../node_modules/tslib/tslib.es6.js";import{jsx as
|
1
|
+
import{__assign as i}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useState as t,useRef as r,useEffect as o,useMemo as n}from"react";import"../../theme/theme.js";import"../../theme/provider.js";import"../../theme/toastStyles.js";import{useMediaQuery as s}from"../../theme/useMediaQuery.js";import{LayoutContext as d}from"./LayoutContext.js";var u=function(u){var a=u.children,h=u.layoutPosition,p=void 0===h?"normal":h,c=u.drawerMaxWidthPercent,m=void 0===c?80:c,v=u.headerHeight,f=void 0===v?"0px":v,l=u.isMLR,w=void 0!==l&&l,y=u.isMobile,j=void 0!==y&&y,M=t({width:0,position:"right",isOpen:!1,positionType:p}),x=M[0],b=M[1],O=r(null),T=t(null),R=T[0],g=T[1],C=j||s("xs");o((function(){b((function(e){return i(i({},e),{positionType:p})}))}),[p]),o((function(){if(O.current){var e=function(){var e;if(x.isOpen){var t=(null===(e=O.current)||void 0===e?void 0:e.clientWidth)||0,r=Math.floor(t*(m/100));x.width>r&&b((function(e){return i(i({},e),{width:r})}))}};e();var t=new ResizeObserver((function(){e()}));return t.observe(O.current),function(){t.disconnect()}}}),[x.isOpen,x.width,m]);var L=n((function(){return function(e){b((function(t){var r=void 0!==e.width?e.width:t.width;if(O.current&&(e.isOpen||t.isOpen)){var o=O.current.clientWidth,n=Math.floor(o*(m/100));r=Math.min(r,n)}var s=void 0!==e.positionType?e.positionType:t.positionType;return i(i(i({},t),e),{width:r,positionType:s})}))}}),[m]),P=n((function(){return{drawer:x,updateDrawer:L,drawerContainerRef:R,setDrawerContainerRef:g,headerHeight:f,isMobile:C,isMLR:w}}),[x,L,R,f,C,w]);return e(d.Provider,i({value:P},{children:e("div",i({ref:O,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"}},{children:a}))}))};export{u as LayoutProvider};
|
2
2
|
//# sourceMappingURL=LayoutContextProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LayoutContextProvider.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContextProvider.tsx"],"sourcesContent":[null],"names":["LayoutProvider","_a","children","_b","layoutPosition","_c","drawerMaxWidthPercent","_d","headerHeight","_e","isMLR","_f","useState","width","position","isOpen","positionType","drawer","setDrawer","containerRef","useRef","
|
1
|
+
{"version":3,"file":"LayoutContextProvider.js","sources":["../../../../../src/contexts/LayoutContext/LayoutContextProvider.tsx"],"sourcesContent":[null],"names":["LayoutProvider","_a","children","_b","layoutPosition","_c","drawerMaxWidthPercent","_d","headerHeight","_e","isMLR","_f","isMobile","isMobileProp","_g","useState","width","position","isOpen","positionType","drawer","setDrawer","containerRef","useRef","_h","drawerContainerRef","setDrawerContainerRef","useMediaQuery","useEffect","current","__assign","constrainDrawerWidth","containerWidth","clientWidth","maxWidth","Math","floor","resizeObserver","ResizeObserver","observe","disconnect","updateDrawer","useMemo","props","newWidth","undefined","min","newPositionType","contextValue","_jsx","LayoutContext","Provider","value","ref","style","height","overflow"],"mappings":"ocAcO,IAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAAAF,EAAAG,eAAAA,aAAiB,SAAQD,EACzBE,EAAAJ,EAAAK,sBAAAA,OAAqB,IAAAD,EAAG,GAAEA,EAC1BE,EAAAN,EAAAO,aAAAA,aAAe,MAAKD,EACpBE,EAAAR,EAAAS,MAAAA,OAAK,IAAAD,GAAQA,EACbE,EAA8BV,EAAAW,SAApBC,OAAY,IAAAF,GAAQA,EAGxBG,EAAsBC,EAAsB,CAChDC,MAAO,EACPC,SAAU,QACVC,QAAQ,EACRC,aAAcf,IAJTgB,EAAMN,EAAA,GAAEO,OAQTC,EAAeC,EAAuB,MAGtCC,EAA8CT,EAAyB,MAAtEU,EAAkBD,EAAA,GAAEE,EAAqBF,EAAA,GAE1CZ,EAAWC,GAAgBc,EAAc,MAG/CC,GAAU,WACRP,GAAU,SAACQ,GAAY,OAClBC,EAAAA,EAAA,CAAA,EAAAD,GACH,CAAAV,aAAcf,GACd,GACJ,GAAG,CAACA,IAGJwB,GAAU,WACR,GAAKN,EAAaO,QAAlB,CAGA,IAAME,EAAuB,iBAC3B,GAAKX,EAAOF,OAAZ,CAEA,IAAMc,GAAuC,QAAtB/B,EAAAqB,EAAaO,eAAS,IAAA5B,OAAA,EAAAA,EAAAgC,cAAe,EACtDC,EAAWC,KAAKC,MAAMJ,GAAkB1B,EAAwB,MAElEc,EAAOJ,MAAQkB,GACjBb,GAAU,SAACQ,GAAY,OAClBC,EAAAA,EAAA,CAAA,EAAAD,GACH,CAAAb,MAAOkB,GACP,GATuB,CAW7B,EAGAH,IAGA,IAAMM,EAAiB,IAAIC,gBAAe,WACxCP,GACF,IAIA,OAFAM,EAAeE,QAAQjB,EAAaO,SAE7B,WACLQ,EAAeG,YACjB,CA7BkC,CA8BpC,GAAG,CAACpB,EAAOF,OAAQE,EAAOJ,MAAOV,IAGjC,IAAMmC,EAAeC,GACnB,WAAM,OAAA,SAACC,GACLtB,GAAU,SAACQ,GAET,IAAIe,OAA2BC,IAAhBF,EAAM3B,MAAsB2B,EAAM3B,MAAQa,EAAQb,MAGjE,GAAIM,EAAaO,UAAYc,EAAMzB,QAAUW,EAAQX,QAAS,CAC5D,IAAMc,EAAiBV,EAAaO,QAAQI,YACtCC,EAAWC,KAAKC,MAAMJ,GAAkB1B,EAAwB,MAEtEsC,EAAWT,KAAKW,IAAIF,EAAUV,EAC/B,CAGD,IAAMa,OACmBF,IAAvBF,EAAMxB,aAA6BwB,EAAMxB,aAAeU,EAAQV,aAElE,OACKW,EAAAA,EAAAA,EAAA,CAAA,EAAAD,GACAc,GACH,CAAA3B,MAAO4B,EACPzB,aAAc4B,GAElB,GACF,CAAC,GACD,CAACzC,IAIG0C,EAAeN,GACnB,WAAM,MAAC,CACLtB,OAAMA,EACNqB,aAAYA,EACZhB,mBAAkBA,EAClBC,sBAAqBA,EACrBlB,aAAYA,EACZI,SAAQA,EACRF,MAAKA,EACL,GACF,CAACU,EAAQqB,EAAchB,EAAoBjB,EAAcI,EAAUF,IAGrE,OACEuC,EAACC,EAAcC,YAASC,MAAOJ,GAAY,CAAA9C,SACzC+C,WACEI,IAAK/B,EACLgC,MAAO,CACLrC,SAAU,WACVD,MAAO,OACPuC,OAAQ,OACRC,SAAU,WACX,CAAAtD,SAEAA,OAIT"}
|
@@ -3,3 +3,4 @@ export declare const getSizeStyle: (size: number) => Pick<CSSObject, 'maxWidth'
|
|
3
3
|
export declare const changeColorTint: (color: string, percent: number) => string;
|
4
4
|
export declare const getTintColor: (color: string, percent?: number) => string;
|
5
5
|
export declare const getShadeColor: (color: string, percent?: number) => string;
|
6
|
+
export declare const getMaterialElevation: (elevation?: number) => string;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var
|
1
|
+
var p=function(p){return{maxWidth:p,maxHeight:p,minWidth:p,minHeight:p}},x=function(p,x){var r=[parseInt(p.substring(1,3),16),parseInt(p.substring(3,5),16),parseInt(p.substring(5,7),16)],a=x>=0,g=(r=r.map((function(p){var r=a?255-p:p;return p+Math.round(r*x)})))[0],b=r[1],n=r[2];return"rgb(".concat(g,", ").concat(b,", ").concat(n,")")},r=function(p,r){return void 0===r&&(r=.7),x(p,r)},a=function(p,r){return void 0===r&&(r=-.65),x(p,r)},g=function(p){if(!p||p<0)return"none";var x={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",5:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12)",6:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",7:"0px 4px 5px -2px rgba(0,0,0,0.2), 0px 7px 10px 1px rgba(0,0,0,0.14), 0px 2px 16px 1px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",9:"0px 5px 6px -3px rgba(0,0,0,0.2), 0px 9px 12px 1px rgba(0,0,0,0.14), 0px 3px 16px 2px rgba(0,0,0,0.12)",10:"0px 6px 6px -3px rgba(0,0,0,0.2), 0px 10px 14px 1px rgba(0,0,0,0.14), 0px 4px 18px 3px rgba(0,0,0,0.12)",11:"0px 6px 7px -4px rgba(0,0,0,0.2), 0px 11px 15px 1px rgba(0,0,0,0.14), 0px 4px 20px 3px rgba(0,0,0,0.12)",12:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",13:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12)",14:"0px 7px 9px -4px rgba(0,0,0,0.2), 0px 14px 21px 2px rgba(0,0,0,0.14), 0px 5px 26px 4px rgba(0,0,0,0.12)",15:"0px 8px 9px -5px rgba(0,0,0,0.2), 0px 15px 22px 2px rgba(0,0,0,0.14), 0px 6px 28px 5px rgba(0,0,0,0.12)",16:"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)",17:"0px 8px 11px -5px rgba(0,0,0,0.2), 0px 17px 26px 2px rgba(0,0,0,0.14), 0px 6px 32px 5px rgba(0,0,0,0.12)",18:"0px 9px 11px -5px rgba(0,0,0,0.2), 0px 18px 28px 2px rgba(0,0,0,0.14), 0px 7px 34px 6px rgba(0,0,0,0.12)",19:"0px 9px 12px -6px rgba(0,0,0,0.2), 0px 19px 29px 2px rgba(0,0,0,0.14), 0px 7px 36px 6px rgba(0,0,0,0.12)",20:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 20px 31px 3px rgba(0,0,0,0.14), 0px 8px 38px 7px rgba(0,0,0,0.12)",21:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 21px 33px 3px rgba(0,0,0,0.14), 0px 8px 40px 7px rgba(0,0,0,0.12)",22:"0px 10px 14px -6px rgba(0,0,0,0.2), 0px 22px 35px 3px rgba(0,0,0,0.14), 0px 8px 42px 7px rgba(0,0,0,0.12)",23:"0px 11px 14px -7px rgba(0,0,0,0.2), 0px 23px 36px 3px rgba(0,0,0,0.14), 0px 9px 44px 8px rgba(0,0,0,0.12)",24:"0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)"};return x[Math.min(Math.max(Math.round(p),0),24)]||x[0]};export{x as changeColorTint,g as getMaterialElevation,a as getShadeColor,p as getSizeStyle,r as getTintColor};
|
2
2
|
//# sourceMappingURL=styles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/helpers/styles.ts"],"sourcesContent":[null],"names":["getSizeStyle","size","maxWidth","maxHeight","minWidth","minHeight","changeColorTint","color","percent","rgb","parseInt","substring","isTint","r","map","c","difference","Math","round","g","b","concat","getTintColor","getShadeColor"],"mappings":"IAEaA,EAAe,SAC1BC,GACyE,MAAC,CAC1EC,SAAUD,EACVE,UAAWF,EACXG,SAAUH,EACVI,UAAWJ,EACV,EAEUK,EAAkB,SAACC,EAAeC,GAC7C,IAAIC,EAAM,CACRC,SAASH,EAAMI,UAAU,EAAG,GAAI,IAChCD,SAASH,EAAMI,UAAU,EAAG,GAAI,IAChCD,SAASH,EAAMI,UAAU,EAAG,GAAI,KAG5BC,EAASJ,GAAW,EAQpBK,GANNJ,EAAMA,EAAIK,KAAI,SAACC,GACb,IAAMC,EAAaJ,EAAS,IAAMG,EAAIA,EAEtC,OAAOA,EAAIE,KAAKC,MAAMF,EAAaR,EACrC,KAEc,GACRW,EAAIV,EAAI,GACRW,EAAIX,EAAI,GAEd,MAAO,cAAOI,EAAC,MAAAQ,OAAKF,EAAM,MAAAE,OAAAD,MAC5B,EAEaE,EAAe,SAACf,EAAeC,GAC1C,YAD0C,IAAAA,IAAAA,EAAqB,IAC/DF,EAAgBC,EAAOC,EAAvB,EACWe,EAAgB,SAAChB,EAAeC,GAC3C,YAD2C,IAAAA,IAAAA,GAAmB,KAC9DF,EAAgBC,EAAOC,EAAvB"}
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../src/helpers/styles.ts"],"sourcesContent":[null],"names":["getSizeStyle","size","maxWidth","maxHeight","minWidth","minHeight","changeColorTint","color","percent","rgb","parseInt","substring","isTint","r","map","c","difference","Math","round","g","b","concat","getTintColor","getShadeColor","getMaterialElevation","elevation","shadows","min","max"],"mappings":"IAEaA,EAAe,SAC1BC,GACyE,MAAC,CAC1EC,SAAUD,EACVE,UAAWF,EACXG,SAAUH,EACVI,UAAWJ,EACV,EAEUK,EAAkB,SAACC,EAAeC,GAC7C,IAAIC,EAAM,CACRC,SAASH,EAAMI,UAAU,EAAG,GAAI,IAChCD,SAASH,EAAMI,UAAU,EAAG,GAAI,IAChCD,SAASH,EAAMI,UAAU,EAAG,GAAI,KAG5BC,EAASJ,GAAW,EAQpBK,GANNJ,EAAMA,EAAIK,KAAI,SAACC,GACb,IAAMC,EAAaJ,EAAS,IAAMG,EAAIA,EAEtC,OAAOA,EAAIE,KAAKC,MAAMF,EAAaR,EACrC,KAEc,GACRW,EAAIV,EAAI,GACRW,EAAIX,EAAI,GAEd,MAAO,cAAOI,EAAC,MAAAQ,OAAKF,EAAM,MAAAE,OAAAD,MAC5B,EAEaE,EAAe,SAACf,EAAeC,GAC1C,YAD0C,IAAAA,IAAAA,EAAqB,IAC/DF,EAAgBC,EAAOC,EAAvB,EACWe,EAAgB,SAAChB,EAAeC,GAC3C,YAD2C,IAAAA,IAAAA,GAAmB,KAC9DF,EAAgBC,EAAOC,EAAvB,EAGWgB,EAAuB,SAACC,GACnC,IAAKA,GAAaA,EAAY,EAAG,MAAO,OAExC,IAAMC,EAAU,CACd,EAAG,OACH,EAAG,uGACH,EAAG,uGACH,EAAG,uGACH,EAAG,wGACH,EAAG,wGACH,EAAG,yGACH,EAAG,yGACH,EAAG,yGACH,EAAG,yGACH,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,2GACJ,GAAI,2GACJ,GAAI,2GACJ,GAAI,2GACJ,GAAI,4GACJ,GAAI,4GACJ,GAAI,4GACJ,GAAI,4GACJ,GAAI,6GAKN,OAAOA,EADkBT,KAAKU,IAAIV,KAAKW,IAAIX,KAAKC,MAAMO,GAAY,GAAI,MACVC,EAAQ,EACtE"}
|