@learningpool/ui 1.5.0 → 1.6.0-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 (81) hide show
  1. package/assets/Images.d.ts +9 -0
  2. package/assets/Images.js +4 -1
  3. package/components/navigation/MobileNavigation/MobileNavigation.d.ts +39 -0
  4. package/components/navigation/MobileNavigation/MobileNavigation.js +183 -0
  5. package/components/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +28 -0
  6. package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +122 -0
  7. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +827 -0
  8. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +33 -0
  9. package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +24 -0
  10. package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +148 -0
  11. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +392 -0
  12. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +44 -0
  13. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +19 -0
  14. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +91 -0
  15. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.d.ts +15 -0
  16. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +26 -0
  17. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +112 -0
  18. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +66 -0
  19. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +126 -0
  20. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +71 -0
  21. package/components/navigation/MobileNavigation/MobileNavigationMotion.d.ts +141 -0
  22. package/components/navigation/MobileNavigation/MobileNavigationMotion.js +109 -0
  23. package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +10 -0
  24. package/components/navigation/MobileNavigation/MobileNavigationSearch.js +52 -0
  25. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +257 -0
  26. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +20 -0
  27. package/components/navigation/MobileNavigation/MobileNavigationStyles.d.ts +405 -0
  28. package/components/navigation/MobileNavigation/MobileNavigationStyles.js +104 -0
  29. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +2 -0
  30. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +32 -0
  31. package/components/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +2 -0
  32. package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +26 -0
  33. package/components/navigation/MobileNavigation/MobileNavigationToggleXStyles.d.ts +36 -0
  34. package/components/navigation/MobileNavigation/MobileNavigationToggleXStyles.js +10 -0
  35. package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +25 -10
  36. package/components/navigation/VerticalNavigation/VerticalNavigation.js +179 -92
  37. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +4 -0
  38. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +84 -0
  39. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +827 -0
  40. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +31 -0
  41. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +4 -0
  42. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +91 -0
  43. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +15 -0
  44. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +29 -0
  45. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +112 -0
  46. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +69 -0
  47. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +126 -0
  48. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +70 -0
  49. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +141 -0
  50. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +109 -0
  51. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +31 -90
  52. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +73 -259
  53. package/components/stream/AppSwitcher/AppSwitcher.d.ts +36 -0
  54. package/components/stream/AppSwitcher/AppSwitcher.js +307 -0
  55. package/components/stream/AppSwitcher/AppSwitcherItem.d.ts +16 -0
  56. package/components/stream/AppSwitcher/AppSwitcherItem.js +51 -0
  57. package/components/stream/AppSwitcher/AppSwitcherStyles.d.ts +17 -0
  58. package/components/stream/AppSwitcher/AppSwitcherStyles.js +48 -0
  59. package/components/stream/AppSwitcher/constants.d.ts +34 -0
  60. package/components/stream/AppSwitcher/constants.js +27 -0
  61. package/index.d.ts +1 -0
  62. package/index.js +1 -0
  63. package/lang/en-us.d.ts +6 -0
  64. package/lang/en-us.js +6 -0
  65. package/package.json +6 -2
  66. package/types/components/navigation/VerticalNavigation.d.ts +48 -0
  67. package/types/components/navigation/VerticalNavigation.js +1 -0
  68. package/types/components/navigation/VerticalNavigationAvatar.d.ts +22 -0
  69. package/types/components/navigation/VerticalNavigationAvatar.js +1 -0
  70. package/types/components/stream/AppSwitcher.d.ts +9 -0
  71. package/types/components/stream/AppSwitcher.js +1 -0
  72. package/types/index.d.ts +3 -0
  73. package/types/index.js +3 -0
  74. package/utils/constants.d.ts +6 -0
  75. package/utils/constants.js +6 -0
  76. package/utils/helpers.d.ts +6 -0
  77. package/utils/helpers.js +17 -0
  78. package/utils/hooks.d.ts +1 -0
  79. package/utils/hooks.js +29 -0
  80. package/utils/theme.d.ts +4 -0
  81. package/utils/theme.js +4 -0
@@ -0,0 +1,126 @@
1
+ /// <reference types="react" />
2
+ export declare const DRAWER_WIDTH: {
3
+ Collapsed: number;
4
+ Expanded: number;
5
+ };
6
+ export declare const ListItem: import("@emotion/styled").StyledComponent<{
7
+ button?: false | undefined;
8
+ } & import("@mui/material").ListItemBaseProps & {
9
+ components?: {
10
+ Root?: import("react").ElementType<any> | undefined;
11
+ } | undefined;
12
+ componentsProps?: {
13
+ root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
14
+ } | undefined;
15
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
16
+ ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
17
+ }, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
18
+ isDrawerOpen?: boolean | undefined;
19
+ }, {}, {}>;
20
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
21
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
22
+ centerRipple?: boolean | undefined;
23
+ children?: import("react").ReactNode;
24
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
25
+ disabled?: boolean | undefined;
26
+ disableRipple?: boolean | undefined;
27
+ disableTouchRipple?: boolean | undefined;
28
+ focusRipple?: boolean | undefined;
29
+ focusVisibleClassName?: string | undefined;
30
+ LinkComponent?: import("react").ElementType<any> | undefined;
31
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
32
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
33
+ tabIndex?: number | undefined;
34
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
35
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
36
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
37
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
38
+ }, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
39
+ isDrawerOpen?: boolean | undefined;
40
+ isExpanded?: boolean | undefined;
41
+ }, {}, {}>;
42
+ export declare const ListItemButtonChild: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
43
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
44
+ centerRipple?: boolean | undefined;
45
+ children?: import("react").ReactNode;
46
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
47
+ disabled?: boolean | undefined;
48
+ disableRipple?: boolean | undefined;
49
+ disableTouchRipple?: boolean | undefined;
50
+ focusRipple?: boolean | undefined;
51
+ focusVisibleClassName?: string | undefined;
52
+ LinkComponent?: import("react").ElementType<any> | undefined;
53
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
54
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
55
+ tabIndex?: number | undefined;
56
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
57
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
58
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
59
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
60
+ }, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
61
+ isDrawerOpen?: boolean | undefined;
62
+ index?: number | undefined;
63
+ }, {}, {}>;
64
+ export declare const ListItemAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
65
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
66
+ centerRipple?: boolean | undefined;
67
+ children?: import("react").ReactNode;
68
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
69
+ disabled?: boolean | undefined;
70
+ disableRipple?: boolean | undefined;
71
+ disableTouchRipple?: boolean | undefined;
72
+ focusRipple?: boolean | undefined;
73
+ focusVisibleClassName?: string | undefined;
74
+ LinkComponent?: import("react").ElementType<any> | undefined;
75
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
76
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
77
+ tabIndex?: number | undefined;
78
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
79
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
80
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
81
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
82
+ }, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
83
+ isDrawerOpen?: boolean | undefined;
84
+ isExpanded?: boolean | undefined;
85
+ } & {
86
+ children?: import("react").ReactNode;
87
+ } & {
88
+ isDrawerOpen?: boolean | undefined;
89
+ }, {}, {}>;
90
+ export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
91
+ export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
92
+ isDrawerOpen?: boolean | undefined;
93
+ index?: number | undefined;
94
+ }, {}, {}>;
95
+ export declare const StyledExpandLess: import("@emotion/styled").StyledComponent<{
96
+ children?: import("react").ReactNode;
97
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
98
+ color?: "inherit" | "action" | "disabled" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
99
+ fontSize?: "small" | "inherit" | "large" | "medium" | undefined;
100
+ htmlColor?: string | undefined;
101
+ inheritViewBox?: boolean | undefined;
102
+ shapeRendering?: string | undefined;
103
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
104
+ titleAccess?: string | undefined;
105
+ viewBox?: string | undefined;
106
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "color" | "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" | "children" | "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" | "cursor" | "direction" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "href" | "name" | "type" | "media" | "target" | "origin" | "max" | "method" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
107
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
108
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "fontSize" | "shapeRendering" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
109
+ isDrawerOpen?: boolean | undefined;
110
+ }, {}, {}>;
111
+ export declare const StyledExpandMore: import("@emotion/styled").StyledComponent<{
112
+ children?: import("react").ReactNode;
113
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
114
+ color?: "inherit" | "action" | "disabled" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
115
+ fontSize?: "small" | "inherit" | "large" | "medium" | undefined;
116
+ htmlColor?: string | undefined;
117
+ inheritViewBox?: boolean | undefined;
118
+ shapeRendering?: string | undefined;
119
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
120
+ titleAccess?: string | undefined;
121
+ viewBox?: string | undefined;
122
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "color" | "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" | "children" | "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" | "cursor" | "direction" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "href" | "name" | "type" | "media" | "target" | "origin" | "max" | "method" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
123
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
124
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "fontSize" | "shapeRendering" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
125
+ isDrawerOpen?: boolean | undefined;
126
+ }, {}, {}>;
@@ -0,0 +1,71 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemText as SSListItemText, ListItemIcon as SSListItemIcon } from '../../../../index';
6
+ import { styled } from '@mui/material/styles';
7
+ import { motion } from '../../../../utils/theme';
8
+ import { ArrowRight } from '@mui/icons-material';
9
+ export var DRAWER_WIDTH = {
10
+ Collapsed: 60,
11
+ Expanded: 300
12
+ };
13
+ var ICON = {
14
+ Height: 40,
15
+ Width: 57
16
+ };
17
+ export var ListItem = styled(SSListItem, {
18
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
19
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n color: ", ";\n min-height: ", "px;\n padding: 0 !important;\n transition: width 225ms ", " ", ";\n width: ", "px;\n\n .MuiListItemIcon-root: {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root .MuiTypography-root: {\n white-space: normal;\n }\n"], ["\n align-items: flex-start;\n color: ", ";\n min-height: ", "px;\n padding: 0 !important;\n transition: width 225ms ", " ", ";\n width: ", "px;\n\n .MuiListItemIcon-root: {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root .MuiTypography-root: {\n white-space: normal;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
20
+ ? props.theme.palette.primary.contrastText
21
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, ICON.Height + 8, motion.easeInOut, function (props) { return props.isDrawerOpen ? '0ms' : '250ms'; }, DRAWER_WIDTH.Expanded, function (props) { return props.theme.spacing(0.5); });
22
+ export var ListItemButton = styled(SSListItemButton, {
23
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'isExpanded'; }
24
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start !important;\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-wrap: wrap;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0ms !important;\n padding: 0 ", " 0 0;\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 3px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: ", ";\n }\n\n :focus-visible {\n background-color: ", ";\n }\n\n :active {\n background-color: transparent\n }\n"], ["\n align-items: flex-start !important;\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-wrap: wrap;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0ms !important;\n padding: 0 ", " 0 0;\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 3px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: ", ";\n }\n\n :focus-visible {\n background-color: ", ";\n }\n\n :active {\n background-color: transparent\n }\n"])), function (props) {
25
+ return props.theme.palette.mode === 'dark'
26
+ ? props.theme.palette.primary.main
27
+ : props.theme.palette.background.paper;
28
+ }, function (props) {
29
+ return props.theme.palette.mode === 'dark'
30
+ ? props.theme.palette.primary.contrastText
31
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper);
32
+ }, ICON.Height + 8, function (props) { return props.isDrawerOpen
33
+ ? props.isExpanded
34
+ ? 'auto'
35
+ : '200px'
36
+ : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut, function (props) { return props.theme.spacing(2); }, function (props) {
37
+ return props.theme.palette.mode === 'dark'
38
+ ? 'rgba(255, 255, 255, 0.5)'
39
+ : props.theme.palette.primary.main;
40
+ }, motion.easeInOut, function (props) {
41
+ return props.theme.palette.mode === 'dark'
42
+ ? props.theme.palette.primary.main
43
+ : props.theme.palette.background.paper;
44
+ }, function (props) {
45
+ return props.theme.palette.mode === 'dark'
46
+ ? props.theme.palette.primary.dark
47
+ : '#E6EAF0';
48
+ });
49
+ export var ListItemButtonChild = styled(SSListItemButton, {
50
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
51
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n min-height: none;\n max-height: none;\n text-decoration: none;\n text-transform: none;\n transition: max-height 225ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity 225ms ", " ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n min-height: none;\n max-height: none;\n text-decoration: none;\n text-transform: none;\n transition: max-height 225ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity 225ms ", " ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
52
+ ? 'rgba(255, 255, 255, 0.75)'
53
+ : 'rgba(0, 0, 0, 0.75)'; }, motion.easeInOut, function (props) { return props.isDrawerOpen ? 1 : 0; }, motion.easeInOut, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
54
+ export var ListItemAvatar = styled(ListItemButton, {
55
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
56
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height 225ms ", " 0ms !important;\n\n .MuiListItemIcon-root {\n justify-content: center;\n margin: 0;\n min-width: 0;\n }\n\n .MuiAvatar-root {\n height: 32px;\n width: 32px;\n }\n"], ["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height 225ms ", " 0ms !important;\n\n .MuiListItemIcon-root {\n justify-content: center;\n margin: 0;\n min-width: 0;\n }\n\n .MuiAvatar-root {\n height: 32px;\n width: 32px;\n }\n"])), function (props) { return props.isDrawerOpen
57
+ ? '200px'
58
+ : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut);
59
+ export var ListItemIcon = styled(SSListItemIcon)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n height: ", "px;\n justify-content: center;\n margin-top: 0 !important;\n min-width: ", ";\n width: ", ";\n\n [theme.breakpoints.up('sm')] {\n min-width: ", "px;\n width: ", "px;\n }\n"], ["\n align-items: center;\n color: ", ";\n height: ", "px;\n justify-content: center;\n margin-top: 0 !important;\n min-width: ", ";\n width: ", ";\n\n [theme.breakpoints.up('sm')] {\n min-width: ", "px;\n width: ", "px;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
60
+ ? props.theme.palette.primary.contrastText
61
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, ICON.Height + 8, ICON.Width, ICON.Width, ICON.Width + 8, ICON.Width + 8);
62
+ export var ListItemText = styled(SSListItemText, {
63
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
64
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n transition: opacity 225ms ", " ", "s !important;\n white-space: normal;\n width: auto;\n"], ["\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n transition: opacity 225ms ", " ", "s !important;\n white-space: normal;\n width: auto;\n"])), function (props) { return props.isDrawerOpen ? 1 : 0; }, motion.easeInOut, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
65
+ export var StyledExpandLess = styled(ArrowRight, {
66
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
67
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"], ["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, motion.easeInOut);
68
+ export var StyledExpandMore = styled(ArrowRight, {
69
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
70
+ })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"], ["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, motion.easeInOut);
71
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -0,0 +1,141 @@
1
+ export declare const motionParent: {
2
+ open: {
3
+ transition: {
4
+ staggerChildren: number;
5
+ delayChildren: number;
6
+ };
7
+ };
8
+ closed: {
9
+ transition: {
10
+ staggerChildren: number;
11
+ staggerDirection: number;
12
+ };
13
+ };
14
+ };
15
+ export declare const motionFadeIn: {
16
+ open: {
17
+ opacity: number;
18
+ };
19
+ closed: {
20
+ opacity: number;
21
+ };
22
+ };
23
+ export declare const motionFadeInUp: {
24
+ open: {
25
+ y: number;
26
+ opacity: number;
27
+ transition: {
28
+ y: {
29
+ stiffness: number;
30
+ velocity: number;
31
+ };
32
+ };
33
+ };
34
+ closed: {
35
+ y: number;
36
+ opacity: number;
37
+ transition: {
38
+ y: {
39
+ stiffness: number;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ export declare const motionWhileHover: {
45
+ scale: number;
46
+ };
47
+ export declare const motionWhileTap: {
48
+ scale: number;
49
+ };
50
+ export declare const variantsLogo: {
51
+ open: {
52
+ opacity: number;
53
+ };
54
+ closed: {
55
+ opacity: number;
56
+ };
57
+ };
58
+ export declare const variantsUl: {
59
+ open: {
60
+ transition: {
61
+ staggerChildren: number;
62
+ delayChildren: number;
63
+ };
64
+ };
65
+ closed: {
66
+ transition: {
67
+ staggerChildren: number;
68
+ staggerDirection: number;
69
+ };
70
+ };
71
+ };
72
+ export declare const variantsLi: {
73
+ open: {
74
+ y: number;
75
+ opacity: number;
76
+ transition: {
77
+ y: {
78
+ stiffness: number;
79
+ velocity: number;
80
+ };
81
+ };
82
+ };
83
+ closed: {
84
+ y: number;
85
+ opacity: number;
86
+ transition: {
87
+ y: {
88
+ stiffness: number;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ export declare const variantsSecondaryUl: {
94
+ open: {
95
+ transition: {
96
+ staggerChildren: number;
97
+ delayChildren: number;
98
+ };
99
+ };
100
+ closed: {
101
+ transition: {
102
+ staggerChildren: number;
103
+ staggerDirection: number;
104
+ };
105
+ };
106
+ };
107
+ export declare const variantsSecondaryLi: {
108
+ open: {
109
+ y: number;
110
+ opacity: number;
111
+ transition: {
112
+ y: {
113
+ stiffness: number;
114
+ velocity: number;
115
+ };
116
+ };
117
+ };
118
+ closed: {
119
+ y: number;
120
+ opacity: number;
121
+ transition: {
122
+ y: {
123
+ stiffness: number;
124
+ };
125
+ };
126
+ };
127
+ };
128
+ export declare const variantsDivider: {
129
+ open: {
130
+ scaleX: number;
131
+ opacity: number;
132
+ transition: {
133
+ type: string;
134
+ delay: number;
135
+ };
136
+ };
137
+ closed: {
138
+ scaleX: number;
139
+ opacity: number;
140
+ };
141
+ };
@@ -0,0 +1,109 @@
1
+ export var motionParent = {
2
+ open: {
3
+ transition: { staggerChildren: 0.07, delayChildren: 0 }
4
+ },
5
+ closed: {
6
+ transition: { staggerChildren: 0.05, staggerDirection: -1 }
7
+ }
8
+ };
9
+ export var motionFadeIn = {
10
+ open: {
11
+ opacity: 1
12
+ },
13
+ closed: {
14
+ opacity: 0
15
+ }
16
+ };
17
+ export var motionFadeInUp = {
18
+ open: {
19
+ y: 0,
20
+ opacity: 1,
21
+ transition: {
22
+ y: { stiffness: 1000, velocity: -20 }
23
+ }
24
+ },
25
+ closed: {
26
+ y: 10,
27
+ opacity: 0,
28
+ transition: {
29
+ y: { stiffness: 1000 }
30
+ }
31
+ }
32
+ };
33
+ export var motionWhileHover = {
34
+ scale: 1.02
35
+ };
36
+ export var motionWhileTap = {
37
+ scale: 0.95
38
+ };
39
+ // Old ones...
40
+ export var variantsLogo = {
41
+ open: {
42
+ opacity: 1
43
+ },
44
+ closed: {
45
+ opacity: 0
46
+ }
47
+ };
48
+ export var variantsUl = {
49
+ open: {
50
+ transition: { staggerChildren: 0.07, delayChildren: 0.2 }
51
+ },
52
+ closed: {
53
+ transition: { staggerChildren: 0.05, staggerDirection: -1 }
54
+ }
55
+ };
56
+ export var variantsLi = {
57
+ open: {
58
+ y: 0,
59
+ opacity: 1,
60
+ transition: {
61
+ y: { stiffness: 1000, velocity: -20 }
62
+ }
63
+ },
64
+ closed: {
65
+ y: 10,
66
+ opacity: 0,
67
+ transition: {
68
+ y: { stiffness: 1000 }
69
+ }
70
+ }
71
+ };
72
+ export var variantsSecondaryUl = {
73
+ open: {
74
+ transition: { staggerChildren: 0.05, delayChildren: 0.5 }
75
+ },
76
+ closed: {
77
+ transition: { staggerChildren: 0.05, staggerDirection: -1 }
78
+ }
79
+ };
80
+ export var variantsSecondaryLi = {
81
+ open: {
82
+ y: 0,
83
+ opacity: 1,
84
+ transition: {
85
+ y: { stiffness: 500, velocity: -10 }
86
+ }
87
+ },
88
+ closed: {
89
+ y: 10,
90
+ opacity: 0,
91
+ transition: {
92
+ y: { stiffness: 500 }
93
+ }
94
+ }
95
+ };
96
+ export var variantsDivider = {
97
+ open: {
98
+ scaleX: 1,
99
+ opacity: 1,
100
+ transition: {
101
+ type: 'spring',
102
+ delay: 0.5
103
+ }
104
+ },
105
+ closed: {
106
+ scaleX: 0.25,
107
+ opacity: 0
108
+ }
109
+ };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface ISwipeableTemporarySearch {
3
+ isSearchOpen: boolean;
4
+ setIsSearchOpen?: any;
5
+ searchPanelPlaceholder?: string;
6
+ searchPanelDefaultValue?: string;
7
+ searchPanelOnClickSearch?: any;
8
+ }
9
+ export default function SwipeableTemporarySearch(props: ISwipeableTemporarySearch): JSX.Element;
10
+ export {};
@@ -0,0 +1,52 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { FormControl, InputAdornment, Stack, IconButton } from '../../../index';
15
+ import { StyledBox, StyledSwipeableSearch, StyledOutlinedInput, StyledOutlinedInputLabel } from './MobileNavigationSearchStyles';
16
+ import Search from '@mui/icons-material/Search';
17
+ import { motion } from 'framer-motion';
18
+ export default function SwipeableTemporarySearch(props) {
19
+ var isSearchOpen = props.isSearchOpen, setIsSearchOpen = props.setIsSearchOpen, searchPanelPlaceholder = props.searchPanelPlaceholder, searchPanelDefaultValue = props.searchPanelDefaultValue, searchPanelOnClickSearch = props.searchPanelOnClickSearch;
20
+ var _a = React.useState(isSearchOpen !== null && isSearchOpen !== void 0 ? isSearchOpen : false), isOpen = _a[0], setIsOpen = _a[1];
21
+ var _b = React.useState(searchPanelDefaultValue !== null && searchPanelDefaultValue !== void 0 ? searchPanelDefaultValue : ''), searchValue = _b[0], setSearchValue = _b[1];
22
+ React.useEffect(function () { return handleOpenState(isSearchOpen); }, [isSearchOpen]);
23
+ var handleOpenState = function (open) {
24
+ setIsOpen(open);
25
+ setIsSearchOpen(open);
26
+ };
27
+ var toggleSearch = function (open) {
28
+ return function (event) {
29
+ if (event && event.type === 'keydown' &&
30
+ (event.key === 'Tab' ||
31
+ event.key === 'Shift')) {
32
+ return;
33
+ }
34
+ handleOpenState(open);
35
+ };
36
+ };
37
+ var handleSearch = function (event) {
38
+ if (event && event.type === 'keydown' &&
39
+ (event.key !== 'Enter')) {
40
+ return;
41
+ }
42
+ // Pass search value into the onClick function
43
+ searchPanelOnClickSearch && searchPanelOnClickSearch(searchValue);
44
+ };
45
+ return (_jsx(StyledSwipeableSearch, __assign({ anchor: 'bottom', open: isOpen, onClose: toggleSearch(false), onOpen: toggleSearch(true), swipeAreaWidth: 44, variant: 'persistent', ModalProps: {
46
+ keepMounted: true
47
+ } }, { children: _jsx(StyledBox, { children: _jsx(Stack, __assign({ spacing: 2 }, { children: _jsx(motion.div, __assign({ animate: isSearchOpen
48
+ ? { opacity: 1 }
49
+ : { opacity: 0 }, transition: isSearchOpen
50
+ ? { delay: 0.1 }
51
+ : { delay: 0 } }, { children: _jsxs(FormControl, __assign({ fullWidth: true, variant: 'outlined' }, { children: [_jsx(StyledOutlinedInputLabel, __assign({ htmlFor: 'mobile-nav-search' }, { children: searchPanelPlaceholder !== null && searchPanelPlaceholder !== void 0 ? searchPanelPlaceholder : 'Search' })), _jsx(StyledOutlinedInput, { label: searchPanelPlaceholder !== null && searchPanelPlaceholder !== void 0 ? searchPanelPlaceholder : 'Search', id: 'mobile-nav-search', endAdornment: _jsx(InputAdornment, __assign({ position: 'end' }, { children: _jsx(IconButton, __assign({ "aria-label": 'Search', edge: 'end', onClick: handleSearch }, { children: _jsx(Search, {}) })) })), onKeyDown: handleSearch, value: searchValue, onChange: function (event) { var _a; return setSearchValue((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value); } })] })) })) })) }) })));
52
+ }