@zealicsolutions/web-ui 1.0.80-beta.13 → 1.0.80-beta.2
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/contexts/LayoutContext/LayoutContext.d.ts +0 -1
- package/dist/cjs/contexts/LayoutContext/LayoutContextProvider.d.ts +0 -1
- package/dist/cjs/helpers/styles.d.ts +0 -1
- 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/Divider/Divider.d.ts +1 -1
- package/dist/cjs/molecules/Divider/Divider.stories.d.ts +6 -7
- package/dist/cjs/molecules/Drawer/Drawer.stories.d.ts +16 -4
- package/dist/cjs/molecules/Drawer/styles.d.ts +46 -15
- package/dist/cjs/molecules/Drawer/types.d.ts +2 -8
- package/dist/esm/contexts/LayoutContext/LayoutContext.d.ts +0 -1
- 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 +0 -1
- 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 +0 -1
- 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/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/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 +6 -7
- 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 +16 -4
- package/dist/esm/molecules/Drawer/styles.d.ts +46 -15
- 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 +2 -8
- 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/index.d.ts +5 -13
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
|
1
|
+
import React from '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: 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"> & 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
|
227
|
+
getMaterialElevation: (elevation?: number) => string;
|
228
228
|
};
|
229
229
|
export {};
|
@@ -15,4 +15,4 @@ export interface DividerProps {
|
|
15
15
|
marginLeft?: string | number;
|
16
16
|
configurationItemInfo?: ConfigurationItemInfo;
|
17
17
|
}
|
18
|
-
export declare const Divider: ({ moleculeId,
|
18
|
+
export declare const Divider: ({ moleculeId, lineWeight, orientation, borderColor, borderRadius, sx, marginTop, marginRight, marginBottom, marginLeft, configurationItemInfo, }: DividerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
@@ -1,9 +1,8 @@
|
|
1
|
+
import type { StoryFn } from '@storybook/react';
|
1
2
|
import { DividerProps } from './Divider';
|
2
|
-
declare const _default:
|
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
|
+
};
|
3
7
|
export default _default;
|
4
|
-
export declare const
|
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>;
|
8
|
+
export declare const DefaultDivider: StoryFn<DividerProps>;
|
@@ -1,20 +1,32 @@
|
|
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>;
|
4
5
|
export declare const PermanentDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
|
5
6
|
showHeader?: boolean | undefined;
|
6
7
|
headerTitle?: string | undefined;
|
7
8
|
headerHeight?: number | undefined;
|
9
|
+
contentPadding?: number | undefined;
|
8
10
|
contentText?: string | undefined;
|
11
|
+
buttonPosition?: "content" | "header" | undefined;
|
9
12
|
}>;
|
10
|
-
export declare const
|
13
|
+
export declare const ClippedDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
|
11
14
|
showHeader?: boolean | undefined;
|
12
15
|
headerTitle?: string | undefined;
|
13
16
|
headerHeight?: number | undefined;
|
17
|
+
contentPadding?: number | undefined;
|
14
18
|
contentText?: string | undefined;
|
19
|
+
buttonPosition?: "content" | "header" | 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?: "content" | "header" | undefined;
|
15
30
|
}>;
|
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>;
|
18
31
|
export declare const ConfigurationMode: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
19
32
|
export declare const Playground: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
20
|
-
export declare const ConfigurationModeWithButton: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
@@ -11,6 +11,7 @@ export declare type StyledDrawerProps = DrawerComponentProps & {
|
|
11
11
|
height?: number | string;
|
12
12
|
width?: number | string;
|
13
13
|
backgroundColor?: string;
|
14
|
+
gap?: number | string;
|
14
15
|
marginTop?: string;
|
15
16
|
marginRight?: string;
|
16
17
|
marginBottom?: string;
|
@@ -29,34 +30,64 @@ export declare const BaseDrawer: import("@emotion/styled").StyledComponent<Drawe
|
|
29
30
|
height?: string | number | undefined;
|
30
31
|
width?: string | number | undefined;
|
31
32
|
backgroundColor?: string | undefined;
|
33
|
+
gap?: string | number | undefined;
|
32
34
|
marginTop?: string | undefined;
|
33
35
|
marginRight?: string | undefined;
|
34
36
|
marginBottom?: string | undefined;
|
35
37
|
marginLeft?: string | undefined;
|
36
38
|
positionType?: "absolute" | "normal" | undefined;
|
37
39
|
}, {}, {}>;
|
38
|
-
export declare
|
39
|
-
|
40
|
-
|
41
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
42
|
-
export declare const DrawerContent: import("@emotion/styled").StyledComponent<{
|
43
|
-
theme?: import("@emotion/react").Theme | undefined;
|
44
|
-
as?: import("react").ElementType<any> | undefined;
|
45
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
40
|
+
export declare type IconWrapperProps = {
|
41
|
+
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
42
|
+
};
|
46
43
|
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
47
44
|
theme?: import("@emotion/react").Theme | undefined;
|
48
45
|
as?: import("react").ElementType<any> | undefined;
|
49
46
|
} & {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
47
|
+
activeOpacity?: number | undefined;
|
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>> & {
|
58
|
+
theme?: import("@emotion/react").Theme | undefined;
|
59
|
+
}, {}, {}>;
|
56
60
|
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
61
|
ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
|
58
62
|
}, "className" | "style" | "classes" | "children" | "sx" | "subheader" | "dense" | "disablePadding"> & {
|
59
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
|
+
}, "alignItems" | "action" | "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "disableGutters" | "dense" | "divider" | "selected"> & {
|
68
|
+
theme?: import("@emotion/react").Theme | undefined;
|
60
69
|
} & {
|
61
|
-
|
70
|
+
backgroundColor?: string | undefined;
|
71
|
+
paddingTop?: string | undefined;
|
72
|
+
paddingRight?: string | undefined;
|
73
|
+
paddingBottom?: string | undefined;
|
74
|
+
paddingLeft?: string | undefined;
|
75
|
+
textAlign?: "left" | "right" | "center" | "justify" | undefined;
|
62
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
|
+
}, "maxWidth" | "maxHeight" | "minWidth" | "minHeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "typography" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
80
|
+
theme?: import("@emotion/react").Theme | undefined;
|
81
|
+
} & {
|
82
|
+
textColor?: string | undefined;
|
83
|
+
fontSize?: string | undefined;
|
84
|
+
fontWeight?: "bold" | "normal" | undefined;
|
85
|
+
fontFamily?: string | undefined;
|
86
|
+
wrap?: boolean | undefined;
|
87
|
+
textAlign?: "left" | "right" | "center" | "justify" | undefined;
|
88
|
+
}, {}, {}>;
|
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,7 +92,6 @@ export interface DrawerProps {
|
|
92
92
|
paddingLeft?: string;
|
93
93
|
height?: number | string;
|
94
94
|
width?: number | string;
|
95
|
-
mobileWidth?: string | number;
|
96
95
|
backgroundColor?: string;
|
97
96
|
gap?: number | string;
|
98
97
|
marginTop?: string;
|
@@ -112,7 +111,7 @@ export interface DrawerProps {
|
|
112
111
|
buttonGap?: number | string;
|
113
112
|
buttonStartIcon?: string;
|
114
113
|
buttonEndIcon?: string;
|
115
|
-
|
114
|
+
buttonCornerRadius?: string | number;
|
116
115
|
buttonMarginTop?: string;
|
117
116
|
buttonMarginRight?: string;
|
118
117
|
buttonMarginBottom?: string;
|
@@ -125,12 +124,7 @@ export interface DrawerProps {
|
|
125
124
|
closeIconColor?: ThemeColors | string;
|
126
125
|
closeIconName?: string;
|
127
126
|
closeIconSize?: number;
|
128
|
-
|
129
|
-
closeIconVisible?: boolean;
|
130
|
-
closeIconTop?: string | number;
|
131
|
-
closeIconLeft?: string | number;
|
132
|
-
closeIconBorderRadius?: number | string;
|
133
|
-
closeIconElevation?: number;
|
127
|
+
closeIconPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
134
128
|
moleculeId?: string;
|
135
129
|
configurationItemInfo?: ConfigurationItemInfo;
|
136
130
|
}
|
@@ -12,7 +12,6 @@ export interface LayoutContextType {
|
|
12
12
|
setDrawerContainerRef?: (ref: Element | null) => void;
|
13
13
|
headerHeight?: string;
|
14
14
|
setHeaderHeight?: (height: string) => void;
|
15
|
-
isMobile?: boolean;
|
16
15
|
isMLR?: boolean;
|
17
16
|
}
|
18
17
|
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 r=e({drawer:{width:0,position:"right",isOpen:!1,positionType:"normal"},updateDrawer:function(){},drawerContainerRef:void 0,setDrawerContainerRef:function(){},headerHeight:"0px",setHeaderHeight:function(){},isMLR:!1});export{r 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","
|
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":"sCAsBO,IAAMA,EAAgBC,EAAiC,CAC5DC,OAAQ,CAAEC,MAAO,EAAGC,SAAU,QAASC,QAAQ,EAAOC,aAAc,UACpEC,aAAc,WAAQ,EACtBC,wBAAoBC,EACpBC,sBAAuB,WAAQ,EAC/BC,aAAc,MACdC,gBAAiB,WAAQ,EACzBC,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 t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useState as e,useRef as r,useEffect as n,useMemo as o}from"react";import{LayoutContext as d}from"./LayoutContext.js";var u=function(u){var s=u.children,a=u.layoutPosition,c=void 0===a?"normal":a,h=u.drawerMaxWidthPercent,p=void 0===h?80:h,f=u.headerHeight,v=void 0===f?"0px":f,l=u.isMLR,m=void 0!==l&&l,w=e({width:0,position:"right",isOpen:!1,positionType:c}),y=w[0],x=w[1],M=r(null),O=e(null),T=O[0],j=O[1];n((function(){x((function(t){return i(i({},t),{positionType:c})}))}),[c]),n((function(){if(M.current){var t=function(){var t;if(y.isOpen){var e=(null===(t=M.current)||void 0===t?void 0:t.clientWidth)||0,r=Math.floor(e*(p/100));y.width>r&&x((function(t){return i(i({},t),{width:r})}))}};t();var e=new ResizeObserver((function(){t()}));return e.observe(M.current),function(){e.disconnect()}}}),[y.isOpen,y.width,p]);var R=o((function(){return function(t){x((function(e){var r=void 0!==t.width?t.width:e.width;if(M.current&&(t.isOpen||e.isOpen)){var n=M.current.clientWidth,o=Math.floor(n*(p/100));r=Math.min(r,o)}var d=void 0!==t.positionType?t.positionType:e.positionType;return i(i(i({},e),t),{width:r,positionType:d})}))}}),[p]),b=o((function(){return{drawer:y,updateDrawer:R,drawerContainerRef:T,setDrawerContainerRef:j,headerHeight:v,isMLR:m}}),[y,R,T,v,m]);return t(d.Provider,i({value:b},{children:t("div",i({ref:M,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"}},{children:s}))}))};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","
|
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","_g","drawerContainerRef","setDrawerContainerRef","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":"uSAWO,IAAMA,EAAgD,SAACC,GAC5D,IAAAC,aACAC,EAAAF,EAAAG,eAAAA,aAAiB,SAAQD,EACzBE,EAAAJ,EAAAK,sBAAAA,OAAqB,IAAAD,EAAG,GAAEA,EAC1BE,EAAAN,EAAAO,aAAAA,OAAY,IAAAD,EAAG,MAAKA,EACpBE,UAAAC,OAAQ,IAAAD,GAAKA,EAGPE,EAAsBC,EAAsB,CAChDC,MAAO,EACPC,SAAU,QACVC,QAAQ,EACRC,aAAcZ,IAJTa,EAAMN,EAAA,GAAEO,OAQTC,EAAeC,EAAuB,MAGtCC,EAA8CT,EAAyB,MAAtEU,EAAkBD,EAAA,GAAEE,EAAqBF,EAAA,GAGhDG,GAAU,WACRN,GAAU,SAACO,GAAY,OAClBC,EAAAA,EAAA,CAAA,EAAAD,GACH,CAAAT,aAAcZ,GACd,GACJ,GAAG,CAACA,IAGJoB,GAAU,WACR,GAAKL,EAAaM,QAAlB,CAGA,IAAME,EAAuB,iBAC3B,GAAKV,EAAOF,OAAZ,CAEA,IAAMa,GAAuC,QAAtB3B,EAAAkB,EAAaM,eAAS,IAAAxB,OAAA,EAAAA,EAAA4B,cAAe,EACtDC,EAAWC,KAAKC,MAAMJ,GAAkBtB,EAAwB,MAElEW,EAAOJ,MAAQiB,GACjBZ,GAAU,SAACO,GAAY,OAClBC,EAAAA,EAAA,CAAA,EAAAD,GACH,CAAAZ,MAAOiB,GACP,GATuB,CAW7B,EAGAH,IAGA,IAAMM,EAAiB,IAAIC,gBAAe,WACxCP,GACF,IAIA,OAFAM,EAAeE,QAAQhB,EAAaM,SAE7B,WACLQ,EAAeG,YACjB,CA7BkC,CA8BpC,GAAG,CAACnB,EAAOF,OAAQE,EAAOJ,MAAOP,IAGjC,IAAM+B,EAAeC,GACnB,WAAM,OAAA,SAACC,GACLrB,GAAU,SAACO,GAET,IAAIe,OAA2BC,IAAhBF,EAAM1B,MAAsB0B,EAAM1B,MAAQY,EAAQZ,MAGjE,GAAIM,EAAaM,UAAYc,EAAMxB,QAAUU,EAAQV,QAAS,CAC5D,IAAMa,EAAiBT,EAAaM,QAAQI,YACtCC,EAAWC,KAAKC,MAAMJ,GAAkBtB,EAAwB,MAEtEkC,EAAWT,KAAKW,IAAIF,EAAUV,EAC/B,CAGD,IAAMa,OACmBF,IAAvBF,EAAMvB,aAA6BuB,EAAMvB,aAAeS,EAAQT,aAElE,OACKU,EAAAA,EAAAA,EAAA,CAAA,EAAAD,GACAc,GACH,CAAA1B,MAAO2B,EACPxB,aAAc2B,GAElB,GACF,CAAC,GACD,CAACrC,IAIGsC,EAAeN,GACnB,WAAM,MAAC,CACLrB,OAAMA,EACNoB,aAAYA,EACZf,mBAAkBA,EAClBC,sBAAqBA,EACrBf,aAAYA,EACZE,MAAKA,EAND,GAQN,CAACO,EAAQoB,EAAcf,EAAoBd,EAAcE,IAG3D,OACEmC,EAACC,EAAcC,YAASC,MAAOJ,GAAY,CAAA1C,SACzC2C,WACEI,IAAK9B,EACL+B,MAAO,CACLpC,SAAU,WACVD,MAAO,OACPsC,OAAQ,OACRC,SAAU,WACX,CAAAlD,SAEAA,OAIT"}
|
@@ -3,4 +3,3 @@ 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 n=function(n){return{maxWidth:n,maxHeight:n,minWidth:n,minHeight:n}},t=function(n,t){var r=[parseInt(n.substring(1,3),16),parseInt(n.substring(3,5),16),parseInt(n.substring(5,7),16)],i=t>=0,u=(r=r.map((function(n){var r=i?255-n:n;return n+Math.round(r*t)})))[0],a=r[1],o=r[2];return"rgb(".concat(u,", ").concat(a,", ").concat(o,")")},r=function(n,r){return void 0===r&&(r=.7),t(n,r)},i=function(n,r){return void 0===r&&(r=-.65),t(n,r)};export{t as changeColorTint,i as getShadeColor,n 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"
|
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"}
|