@zealicsolutions/web-ui 1.0.80-beta.1 → 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.
Files changed (47) hide show
  1. package/dist/cjs/contexts/LayoutContext/LayoutContext.d.ts +1 -0
  2. package/dist/cjs/contexts/LayoutContext/LayoutContextProvider.d.ts +1 -0
  3. package/dist/cjs/helpers/styles.d.ts +1 -0
  4. package/dist/cjs/index.js +1585 -1585
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/molecules/Button/Button.d.ts +3 -3
  7. package/dist/cjs/molecules/Calendar/hooks/useCalendarStyling.d.ts +1 -1
  8. package/dist/cjs/molecules/Divider/Divider.d.ts +1 -1
  9. package/dist/cjs/molecules/Divider/Divider.stories.d.ts +7 -6
  10. package/dist/cjs/molecules/Drawer/Drawer.stories.d.ts +3 -16
  11. package/dist/cjs/molecules/Drawer/styles.d.ts +15 -46
  12. package/dist/cjs/molecules/Drawer/types.d.ts +8 -2
  13. package/dist/esm/contexts/LayoutContext/LayoutContext.d.ts +1 -0
  14. package/dist/esm/contexts/LayoutContext/LayoutContext.js +1 -1
  15. package/dist/esm/contexts/LayoutContext/LayoutContext.js.map +1 -1
  16. package/dist/esm/contexts/LayoutContext/LayoutContextProvider.d.ts +1 -0
  17. package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js +1 -1
  18. package/dist/esm/contexts/LayoutContext/LayoutContextProvider.js.map +1 -1
  19. package/dist/esm/helpers/styles.d.ts +1 -0
  20. package/dist/esm/helpers/styles.js +1 -1
  21. package/dist/esm/helpers/styles.js.map +1 -1
  22. package/dist/esm/molecules/Accordion/Accordion.js +1 -1
  23. package/dist/esm/molecules/Avatar/Avatar.js +1 -1
  24. package/dist/esm/molecules/BaseMolecule.js +1 -1
  25. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  26. package/dist/esm/molecules/Button/Button.d.ts +3 -3
  27. package/dist/esm/molecules/Button/Button.js +1 -1
  28. package/dist/esm/molecules/Button/Button.js.map +1 -1
  29. package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.d.ts +1 -1
  30. package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js +1 -1
  31. package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js.map +1 -1
  32. package/dist/esm/molecules/Divider/Divider.d.ts +1 -1
  33. package/dist/esm/molecules/Divider/Divider.js +1 -1
  34. package/dist/esm/molecules/Divider/Divider.js.map +1 -1
  35. package/dist/esm/molecules/Divider/Divider.stories.d.ts +7 -6
  36. package/dist/esm/molecules/Drawer/Drawer.js +1 -1
  37. package/dist/esm/molecules/Drawer/Drawer.js.map +1 -1
  38. package/dist/esm/molecules/Drawer/Drawer.stories.d.ts +3 -16
  39. package/dist/esm/molecules/Drawer/styles.d.ts +15 -46
  40. package/dist/esm/molecules/Drawer/styles.js +1 -1
  41. package/dist/esm/molecules/Drawer/styles.js.map +1 -1
  42. package/dist/esm/molecules/Drawer/types.d.ts +8 -2
  43. package/dist/esm/molecules/Menu/Menu.js +1 -1
  44. package/dist/esm/molecules/PasswordSetup/PasswordSetup.js +1 -1
  45. package/dist/esm/molecules/Stepper/Stepper.js +1 -1
  46. package/dist/index.d.ts +13 -5
  47. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import React from 'react';
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: number | string;
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: 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>>;
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 {};
@@ -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 DefaultDivider: StoryFn<DividerProps>;
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?: "content" | "header" | undefined;
12
9
  }>;
13
- export declare const ClippedDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
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?: "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;
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
36
  positionType?: "absolute" | "normal" | undefined;
39
37
  }, {}, {}>;
40
- export declare type IconWrapperProps = {
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
- 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> & {
41
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
+ export declare const DrawerContent: import("@emotion/styled").StyledComponent<{
53
43
  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>> & {
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<{
58
47
  theme?: import("@emotion/react").Theme | undefined;
59
- }, {}, {}>;
48
+ as?: import("react").ElementType<any> | undefined;
49
+ } & {
50
+ top?: string | number | undefined;
51
+ left?: string | number | undefined;
52
+ borderRadius?: string | number | undefined;
53
+ elevation?: number | undefined;
54
+ backgroundColor?: string | undefined;
55
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
60
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>> & {
61
57
  ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
62
58
  }, "className" | "style" | "classes" | "children" | "sx" | "subheader" | "dense" | "disablePadding"> & {
63
59
  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;
69
60
  } & {
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;
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;
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
- buttonCornerRadius?: string | number;
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
- closeIconPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
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
  }
@@ -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 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};
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":"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
+ {"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"}
@@ -4,5 +4,6 @@ export interface LayoutProviderProps extends PropsWithChildren {
4
4
  headerHeight?: string;
5
5
  drawerMaxWidthPercent?: number;
6
6
  isMLR?: boolean;
7
+ isMobile?: boolean;
7
8
  }
8
9
  export declare const LayoutProvider: React.FC<LayoutProviderProps>;
@@ -1,2 +1,2 @@
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};
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","_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,IA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cC,YAASC,MAAOJ,GAAY,CAAA1C,SACzC2C,WACEI,IAAK9B,EACL+B,MAAO,CACLpC,SAAU,WACVD,MAAO,OACPsC,OAAQ,OACRC,SAAU,WACX,CAAAlD,SAEAA,OAIT"}
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,GAAK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cC,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 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};
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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