@learningpool/ui 1.15.5 → 1.16.0

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 (84) hide show
  1. package/assets/Images.js +7 -18
  2. package/components/atoms/Autocomplete/Autocomplete.js +3 -14
  3. package/components/atoms/Button/Button.js +2 -13
  4. package/components/atoms/Checkbox/Checkbox.js +3 -26
  5. package/components/atoms/IconButton/IconButton.js +2 -13
  6. package/components/atoms/Radio/Radio.js +3 -26
  7. package/components/atoms/Select/Select.js +3 -26
  8. package/components/atoms/Slider/Slider.js +3 -26
  9. package/components/atoms/Switch/Switch.js +3 -26
  10. package/components/atoms/TextField/TextField.js +2 -13
  11. package/components/atoms/ToggleButton/ToggleButton.js +3 -26
  12. package/components/datadisplay/Avatar/Avatar.js +13 -28
  13. package/components/datadisplay/Chip/Chip.js +3 -26
  14. package/components/datadisplay/List/List.js +2 -13
  15. package/components/feedback/Alert/Alert.js +3 -26
  16. package/components/landmarks/Header/Header.js +15 -41
  17. package/components/landmarks/Header/HeaderActionButtons.d.ts +1 -2
  18. package/components/landmarks/Header/HeaderActionButtons.js +22 -33
  19. package/components/landmarks/Header/HeaderStyles.js +54 -11
  20. package/components/navigation/Drawer/Drawer.js +5 -31
  21. package/components/navigation/MobileNavigation/MobileNavigation.js +70 -82
  22. package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +75 -83
  23. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +102 -52
  24. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +71 -13
  25. package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +1 -1
  26. package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +41 -68
  27. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +34 -18
  28. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +133 -20
  29. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +22 -45
  30. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +8 -19
  31. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +151 -52
  32. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +171 -50
  33. package/components/navigation/MobileNavigation/MobileNavigationMotion.js +11 -11
  34. package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +11 -15
  35. package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +1 -2
  36. package/components/navigation/MobileNavigation/MobileNavigationSearch.js +25 -34
  37. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +34 -18
  38. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +47 -9
  39. package/components/navigation/MobileNavigation/MobileNavigationStyles.js +262 -66
  40. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +21 -20
  41. package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +21 -20
  42. package/components/navigation/VerticalNavigation/VerticalNavigation.js +150 -185
  43. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +50 -61
  44. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +102 -52
  45. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +86 -14
  46. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +27 -51
  47. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +15 -28
  48. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +135 -39
  49. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +167 -29
  50. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +11 -11
  51. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +34 -18
  52. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +236 -42
  53. package/components/navigation/helpers.d.ts +1 -2
  54. package/components/navigation/helpers.js +28 -32
  55. package/components/pages/ErrorPage/ErrorPage.js +6 -17
  56. package/components/pages/ErrorPage/ErrorPageStyles.js +13 -18
  57. package/components/pages/SideInSide/SideInSide.js +12 -23
  58. package/components/pages/SideInSide/SideInSideStyles.js +6 -6
  59. package/components/stream/AppHub/AppHub.js +13 -42
  60. package/components/stream/AppHub/AppHubAdvertStyles.js +24 -8
  61. package/components/stream/AppHub/AppHubBannerAdvert.d.ts +1 -2
  62. package/components/stream/AppHub/AppHubBannerAdvert.js +9 -20
  63. package/components/stream/AppHub/AppHubCustom.js +8 -19
  64. package/components/stream/AppHub/AppHubCustomStyles.d.ts +1 -1
  65. package/components/stream/AppHub/AppHubCustomStyles.js +78 -18
  66. package/components/stream/AppHub/AppHubProduct.js +26 -48
  67. package/components/stream/AppHub/AppHubProductStyles.js +104 -19
  68. package/components/stream/AppHub/AppHubStyles.js +31 -11
  69. package/components/stream/AppHub/constants.d.ts +1 -2
  70. package/components/stream/AppHub/constants.js +14 -14
  71. package/components/stream/AppSwitcher/AppSwitcher.js +225 -316
  72. package/components/stream/AppSwitcher/AppSwitcherItem.js +11 -22
  73. package/components/stream/AppSwitcher/AppSwitcherStyles.js +337 -42
  74. package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.js +255 -21
  75. package/components/stream/AppSwitcher/PromotionalCampaignItem.js +7 -19
  76. package/components/stream/AppSwitcher/constants.js +3 -3
  77. package/lang/en-us.js +1 -1
  78. package/package.json +7 -2
  79. package/utils/constants.d.ts +7 -0
  80. package/utils/constants.js +11 -4
  81. package/utils/dataAttributes.js +1 -1
  82. package/utils/helpers.js +33 -40
  83. package/utils/hooks.js +10 -11
  84. package/utils/theme.js +26 -19
@@ -1,40 +1,178 @@
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
1
  /* eslint-disable indent */
6
2
  import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemText as SSListItemText, ListItemIcon as SSListItemIcon } from '../../../../index';
7
3
  import { styled } from '@mui/material/styles';
8
4
  import ArrowRightIcon from '@mui/icons-material/ArrowRight';
9
5
  import { getNavigationBackground, getNavigationContrastText, getOffsetNavigationBackground } from '../../helpers';
10
- export var DRAWER_WIDTH = {
6
+ export const DRAWER_WIDTH = {
11
7
  Collapsed: 60,
12
8
  Expanded: 300
13
9
  };
14
- var ICON = {
10
+ const ICON = {
15
11
  Height: 40,
16
12
  Width: 57
17
13
  };
18
- export var ListItem = styled(SSListItem, {
19
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
20
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n color: ", ";\n flex-direction: column;\n min-height: ", "px;\n padding: 0 !important;\n transition: width ", "ms ", " ", ";\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 flex-direction: column;\n min-height: ", "px;\n padding: 0 !important;\n transition: width ", "ms ", " ", ";\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 getNavigationContrastText(props.theme); }, ICON.Height + 8, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.isDrawerOpen ? '0ms' : '250ms'; }, DRAWER_WIDTH.Expanded, function (props) { return props.theme.spacing(0.5); });
21
- export var ListItemButton = styled(SSListItemButton, {
22
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
23
- })(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 ", "ms ", " 0ms !important;\n padding: 0;\n padding-inline-end: ", ";\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: ", ";\n right: ", ";\n transition: all ", "ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover,\n :focus-visible {\n background-color: ", ";\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\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 ", "ms ", " 0ms !important;\n padding: 0;\n padding-inline-end: ", ";\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: ", ";\n right: ", ";\n transition: all ", "ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover,\n :focus-visible {\n background-color: ", ";\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :active {\n background-color: transparent;\n }\n"])), function (props) { return getNavigationBackground(props.theme); }, function (props) { return getNavigationContrastText(props.theme); }, ICON.Height + 8, function (props) { return props.isDrawerOpen ? 'auto' : "".concat(ICON.Height + 8, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.theme.spacing(2); }, function (props) { return getNavigationContrastText(props.theme); }, function (props) { return props.theme.direction === 'ltr' ? '3px' : 'auto'; }, function (props) { return props.theme.direction === 'rtl' ? '3px' : 'auto'; }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.isDrawerOpen ? getOffsetNavigationBackground(props.theme) : 'transparent'; });
24
- export var ListItemButtonChild = styled(SSListItemButton, {
25
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
26
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\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 ", "ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n :hover,\n :focus-visible {\n background-color: ", ";\n }\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity ", "ms ", " ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"], ["\n align-items: center;\n background-color: ", ";\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 ", "ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n :hover,\n :focus-visible {\n background-color: ", ";\n }\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity ", "ms ", " ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"])), function (props) { return getNavigationBackground(props.theme); }, function (props) { return getNavigationContrastText(props.theme); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return getOffsetNavigationBackground(props.theme); }, function (props) { return props.isDrawerOpen ? 1 : 0; }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
27
- export var ListItemAvatar = styled(ListItemButton, {
28
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
29
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height ", "ms ", " 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 ", "ms ", " 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 ? '200px' : "".concat(ICON.Height + 8, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
30
- 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 getNavigationContrastText(props.theme); }, ICON.Height + 8, ICON.Width, ICON.Width, ICON.Width + 8, ICON.Width + 8);
31
- export var ListItemText = styled(SSListItemText, {
32
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
33
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n min-width: 210px;\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n text-align: ", ";\n transition: opacity ", "ms ", " ", "s !important;\n white-space: normal;\n width: auto;\n"], ["\n color: ", ";\n min-width: 210px;\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n text-align: ", ";\n transition: opacity ", "ms ", " ", "s !important;\n white-space: normal;\n width: auto;\n"])), function (props) { return getNavigationContrastText(props.theme); }, function (props) { return props.isDrawerOpen ? 1 : 0; }, function (props) { return props.theme.direction === 'rtl' ? 'right' : 'left'; }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
34
- export var StyledExpandLess = styled(ArrowRightIcon, {
35
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
36
- })(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 ", "ms ", " 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 ", "ms ", " 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
37
- export var StyledExpandMore = styled(ArrowRightIcon, {
38
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
39
- })(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 ", " 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 ", " 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, function (props) { return props.theme.transitions.easing.easeOut; });
40
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
14
+ export const ListItem = styled(SSListItem, {
15
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
16
+ }) `
17
+ align-items: flex-start;
18
+ color: ${props => getNavigationContrastText(props.theme)};
19
+ flex-direction: column;
20
+ min-height: ${ICON.Height + 8}px;
21
+ padding: 0 !important;
22
+ transition: width ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} ${props => props.isDrawerOpen ? '0ms' : '250ms'};
23
+ width: ${DRAWER_WIDTH.Expanded}px;
24
+
25
+ .MuiListItemIcon-root: {
26
+ margin: ${props => props.theme.spacing(0.5)} 0 0;
27
+ }
28
+
29
+ .MuiListItemText-root .MuiTypography-root: {
30
+ white-space: normal;
31
+ }
32
+ `;
33
+ export const ListItemButton = styled(SSListItemButton, {
34
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
35
+ }) `
36
+ align-items: flex-start !important;
37
+ background-color: ${props => getNavigationBackground(props.theme)};
38
+ color: ${props => getNavigationContrastText(props.theme)};
39
+ display: flex;
40
+ flex-wrap: wrap;
41
+ min-height: ${ICON.Height + 8}px;
42
+ max-height: ${props => props.isDrawerOpen ? 'auto' : `${ICON.Height + 8}px`};
43
+ text-decoration: none;
44
+ text-transform: none;
45
+ transition: all ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} 0ms !important;
46
+ padding: 0;
47
+ padding-inline-end: ${props => props.theme.spacing(2)};
48
+ width: 100%;
49
+
50
+ /* Indicator */
51
+ :before {
52
+ background-color: ${props => getNavigationContrastText(props.theme)};
53
+ border-radius: 50px;
54
+ content: '';
55
+ height: calc(100% - 10px);
56
+ opacity: 0;
57
+ position: absolute;
58
+ top: 5px;
59
+ left: ${props => props.theme.direction === 'ltr' ? '3px' : 'auto'};
60
+ right: ${props => props.theme.direction === 'rtl' ? '3px' : 'auto'};
61
+ transition: all ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut};
62
+ width: 4px;
63
+ transform: scale(.95);
64
+ }
65
+
66
+ :hover,
67
+ :focus-visible {
68
+ background-color: ${props => props.isDrawerOpen ? getOffsetNavigationBackground(props.theme) : 'transparent'};
69
+ }
70
+
71
+ :hover:before,
72
+ :focus-visible:before {
73
+ opacity: 1;
74
+ transform: scale(1);
75
+ }
76
+
77
+ :active {
78
+ background-color: transparent;
79
+ }
80
+ `;
81
+ export const ListItemButtonChild = styled(SSListItemButton, {
82
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
83
+ }) `
84
+ align-items: center;
85
+ background-color: ${props => getNavigationBackground(props.theme)};
86
+ color: ${props => getNavigationContrastText(props.theme)};
87
+ display: flex;
88
+ min-height: none;
89
+ max-height: none;
90
+ text-decoration: none;
91
+ text-transform: none;
92
+ transition: max-height ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} 0ms !important;
93
+ padding: 0;
94
+ width: 100%;
95
+
96
+ :hover,
97
+ :focus-visible {
98
+ background-color: ${props => getOffsetNavigationBackground(props.theme)};
99
+ }
100
+
101
+ .MuiTypography-root: {
102
+ font-size: .9rem;
103
+ opacity: ${props => props.isDrawerOpen ? 1 : 0};
104
+ transition: opacity ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} ${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
105
+ }
106
+
107
+ .MuiListItemText-root: {
108
+ padding: .25rem .5rem;
109
+ }
110
+ `;
111
+ export const ListItemAvatar = styled(ListItemButton, {
112
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
113
+ }) `
114
+ align-items: center;
115
+ min-height: 52px;
116
+ max-height: ${props => props.isDrawerOpen ? '200px' : `${ICON.Height + 8}px`};
117
+ transition: max-height ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} 0ms !important;
118
+
119
+ .MuiListItemIcon-root {
120
+ justify-content: center;
121
+ margin: 0;
122
+ min-width: 0;
123
+ }
124
+
125
+ .MuiAvatar-root {
126
+ height: 32px;
127
+ width: 32px;
128
+ }
129
+ `;
130
+ export const ListItemIcon = styled(SSListItemIcon) `
131
+ align-items: center;
132
+ color: ${props => getNavigationContrastText(props.theme)};
133
+ height: ${ICON.Height + 8}px;
134
+ justify-content: center;
135
+ margin-top: 0 !important;
136
+ min-width: ${ICON.Width};
137
+ width: ${ICON.Width};
138
+
139
+ [theme.breakpoints.up('sm')] {
140
+ min-width: ${ICON.Width + 8}px;
141
+ width: ${ICON.Width + 8}px;
142
+ }
143
+ `;
144
+ export const ListItemText = styled(SSListItemText, {
145
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
146
+ }) `
147
+ color: ${props => getNavigationContrastText(props.theme)};
148
+ min-width: 210px;
149
+ max-width: 210px;
150
+ opacity: ${props => props.isDrawerOpen ? 1 : 0};
151
+ padding: 0.5rem;
152
+ text-align: ${props => props.theme.direction === 'rtl' ? 'right' : 'left'};
153
+ transition: opacity ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} ${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
154
+ white-space: normal;
155
+ width: auto;
156
+ `;
157
+ export const StyledExpandLess = styled(ArrowRightIcon, {
158
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
159
+ }) `
160
+ align-self: center;
161
+ font-size: 1.25rem;
162
+ left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
163
+ margin-right: ${props => props.theme.spacing(1)};
164
+ opacity: 1;
165
+ position: relative;
166
+ transition: opacity ${props => props.theme.transitions.duration.enteringScreen}ms ${props => props.theme.transitions.easing.easeOut} 200ms !important;
167
+ `;
168
+ export const StyledExpandMore = styled(ArrowRightIcon, {
169
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
170
+ }) `
171
+ align-self: center;
172
+ font-size: 1.25rem;
173
+ left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
174
+ margin-right: ${props => props.theme.spacing(1)};
175
+ opacity: 1;
176
+ position: relative;
177
+ transition: opacity ${props => props.theme.transitions.easing.easeOut} 200ms !important;
178
+ `;
@@ -1,4 +1,4 @@
1
- export var motionParent = {
1
+ export const motionParent = {
2
2
  open: {
3
3
  transition: { staggerChildren: 0.07, delayChildren: 0 }
4
4
  },
@@ -6,7 +6,7 @@ export var motionParent = {
6
6
  transition: { staggerChildren: 0.05, staggerDirection: -1 }
7
7
  }
8
8
  };
9
- export var motionFadeIn = {
9
+ export const motionFadeIn = {
10
10
  open: {
11
11
  opacity: 1
12
12
  },
@@ -14,7 +14,7 @@ export var motionFadeIn = {
14
14
  opacity: 0
15
15
  }
16
16
  };
17
- export var motionFadeInUp = {
17
+ export const motionFadeInUp = {
18
18
  open: {
19
19
  y: 0,
20
20
  opacity: 1,
@@ -30,14 +30,14 @@ export var motionFadeInUp = {
30
30
  }
31
31
  }
32
32
  };
33
- export var motionWhileHover = {
33
+ export const motionWhileHover = {
34
34
  scale: 1.02
35
35
  };
36
- export var motionWhileTap = {
36
+ export const motionWhileTap = {
37
37
  scale: 0.95
38
38
  };
39
39
  // Old ones...
40
- export var variantsLogo = {
40
+ export const variantsLogo = {
41
41
  open: {
42
42
  opacity: 1
43
43
  },
@@ -45,7 +45,7 @@ export var variantsLogo = {
45
45
  opacity: 0
46
46
  }
47
47
  };
48
- export var variantsUl = {
48
+ export const variantsUl = {
49
49
  open: {
50
50
  transition: { staggerChildren: 0.07, delayChildren: 0.2 }
51
51
  },
@@ -53,7 +53,7 @@ export var variantsUl = {
53
53
  transition: { staggerChildren: 0.05, staggerDirection: -1 }
54
54
  }
55
55
  };
56
- export var variantsLi = {
56
+ export const variantsLi = {
57
57
  open: {
58
58
  y: 0,
59
59
  opacity: 1,
@@ -69,7 +69,7 @@ export var variantsLi = {
69
69
  }
70
70
  }
71
71
  };
72
- export var variantsSecondaryUl = {
72
+ export const variantsSecondaryUl = {
73
73
  open: {
74
74
  transition: { staggerChildren: 0.05, delayChildren: 0.5 }
75
75
  },
@@ -77,7 +77,7 @@ export var variantsSecondaryUl = {
77
77
  transition: { staggerChildren: 0.05, staggerDirection: -1 }
78
78
  }
79
79
  };
80
- export var variantsSecondaryLi = {
80
+ export const variantsSecondaryLi = {
81
81
  open: {
82
82
  y: 0,
83
83
  opacity: 1,
@@ -93,7 +93,7 @@ export var variantsSecondaryLi = {
93
93
  }
94
94
  }
95
95
  };
96
- export var variantsDivider = {
96
+ export const variantsDivider = {
97
97
  open: {
98
98
  scaleX: 1,
99
99
  opacity: 1,
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react" />
3
- /// <reference types="trusted-types" />
4
3
  export declare const DRAWER_WIDTH: {
5
4
  Collapsed: number;
6
5
  Expanded: number;
@@ -24,6 +23,8 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
24
23
  animationIterationCount?: import("csstype").Property.AnimationIterationCount | undefined;
25
24
  animationName?: import("csstype").Property.AnimationName | undefined;
26
25
  animationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
26
+ animationRangeEnd?: import("csstype").Property.AnimationRangeEnd<string | number> | undefined;
27
+ animationRangeStart?: import("csstype").Property.AnimationRangeStart<string | number> | undefined;
27
28
  animationTimeline?: import("csstype").Property.AnimationTimeline | undefined;
28
29
  animationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
29
30
  appearance?: import("csstype").Property.Appearance | undefined;
@@ -145,6 +146,10 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
145
146
  fontStretch?: import("csstype").Property.FontStretch | undefined;
146
147
  fontStyle?: import("csstype").Property.FontStyle | undefined;
147
148
  fontSynthesis?: import("csstype").Property.FontSynthesis | undefined;
149
+ fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition | undefined;
150
+ fontSynthesisSmallCaps?: import("csstype").Property.FontSynthesisSmallCaps | undefined;
151
+ fontSynthesisStyle?: import("csstype").Property.FontSynthesisStyle | undefined;
152
+ fontSynthesisWeight?: import("csstype").Property.FontSynthesisWeight | undefined;
148
153
  fontVariant?: import("csstype").Property.FontVariant | undefined;
149
154
  fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
150
155
  fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
@@ -218,6 +223,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
218
223
  maskRepeat?: import("csstype").Property.MaskRepeat | undefined;
219
224
  maskSize?: import("csstype").Property.MaskSize<string | number> | undefined;
220
225
  maskType?: import("csstype").Property.MaskType | undefined;
226
+ masonryAutoFlow?: import("csstype").Property.MasonryAutoFlow | undefined;
221
227
  mathDepth?: import("csstype").Property.MathDepth | undefined;
222
228
  mathShift?: import("csstype").Property.MathShift | undefined;
223
229
  mathStyle?: import("csstype").Property.MathStyle | undefined;
@@ -257,6 +263,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
257
263
  overflowWrap?: import("csstype").Property.OverflowWrap | undefined;
258
264
  overflowX?: import("csstype").Property.OverflowX | undefined;
259
265
  overflowY?: import("csstype").Property.OverflowY | undefined;
266
+ overlay?: import("csstype").Property.Overlay | undefined;
260
267
  overscrollBehaviorBlock?: import("csstype").Property.OverscrollBehaviorBlock | undefined;
261
268
  overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
262
269
  overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
@@ -344,12 +351,15 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
344
351
  textTransform?: import("csstype").Property.TextTransform | undefined;
345
352
  textUnderlineOffset?: import("csstype").Property.TextUnderlineOffset<string | number> | undefined;
346
353
  textUnderlinePosition?: import("csstype").Property.TextUnderlinePosition | undefined;
354
+ textWrap?: import("csstype").Property.TextWrap | undefined;
355
+ timelineScope?: import("csstype").Property.TimelineScope | undefined;
347
356
  top?: import("csstype").Property.Top<string | number> | undefined;
348
357
  touchAction?: import("csstype").Property.TouchAction | undefined;
349
358
  transform?: string | undefined;
350
359
  transformBox?: import("csstype").Property.TransformBox | undefined;
351
360
  transformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
352
361
  transformStyle?: import("csstype").Property.TransformStyle | undefined;
362
+ transitionBehavior?: import("csstype").Property.TransitionBehavior | undefined;
353
363
  transitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
354
364
  transitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
355
365
  transitionProperty?: import("csstype").Property.TransitionProperty | undefined;
@@ -358,9 +368,14 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
358
368
  unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
359
369
  userSelect?: import("csstype").Property.UserSelect | undefined;
360
370
  verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
371
+ viewTimelineAxis?: import("csstype").Property.ViewTimelineAxis | undefined;
372
+ viewTimelineInset?: import("csstype").Property.ViewTimelineInset<string | number> | undefined;
373
+ viewTimelineName?: import("csstype").Property.ViewTimelineName | undefined;
361
374
  viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
362
375
  visibility?: import("csstype").Property.Visibility | undefined;
363
376
  whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
377
+ whiteSpaceCollapse?: import("csstype").Property.WhiteSpaceCollapse | undefined;
378
+ whiteSpaceTrim?: import("csstype").Property.WhiteSpaceTrim | undefined;
364
379
  widows?: import("csstype").Property.Widows | undefined;
365
380
  width?: import("csstype").Property.Width<string | number> | undefined;
366
381
  willChange?: import("csstype").Property.WillChange | undefined;
@@ -372,6 +387,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
372
387
  zoom?: import("csstype").Property.Zoom | undefined;
373
388
  all?: import("csstype").Globals | undefined;
374
389
  animation?: import("csstype").Property.Animation<string & {}> | undefined;
390
+ animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
375
391
  background?: import("csstype").Property.Background<string | number> | undefined;
376
392
  backgroundPosition?: import("csstype").Property.BackgroundPosition<string | number> | undefined;
377
393
  border?: import("csstype").Property.Border<string | number> | undefined;
@@ -436,6 +452,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
436
452
  textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
437
453
  textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
438
454
  transition?: import("csstype").Property.Transition<string & {}> | undefined;
455
+ viewTimeline?: import("csstype").Property.ViewTimeline | undefined;
439
456
  MozAnimationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
440
457
  MozAnimationDirection?: import("csstype").Property.AnimationDirection | undefined;
441
458
  MozAnimationDuration?: import("csstype").Property.AnimationDuration<string & {}> | undefined;
@@ -445,7 +462,6 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
445
462
  MozAnimationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
446
463
  MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
447
464
  MozAppearance?: import("csstype").Property.MozAppearance | undefined;
448
- MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
449
465
  MozBinding?: import("csstype").Property.MozBinding | undefined;
450
466
  MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
451
467
  MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
@@ -472,20 +488,16 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
472
488
  MozMarginStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
473
489
  MozOrient?: import("csstype").Property.MozOrient | undefined;
474
490
  MozOsxFontSmoothing?: import("csstype").Property.FontSmooth<string | number> | undefined;
491
+ MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
492
+ MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
493
+ MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
494
+ MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
475
495
  MozPaddingEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
476
496
  MozPaddingStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
477
- MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
478
- MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
479
497
  MozStackSizing?: import("csstype").Property.MozStackSizing | undefined;
480
498
  MozTabSize?: import("csstype").Property.TabSize<string | number> | undefined;
481
499
  MozTextBlink?: import("csstype").Property.MozTextBlink | undefined;
482
500
  MozTextSizeAdjust?: import("csstype").Property.TextSizeAdjust | undefined;
483
- MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
484
- MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
485
- MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
486
- MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
487
- MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
488
- MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
489
501
  MozUserFocus?: import("csstype").Property.MozUserFocus | undefined;
490
502
  MozUserModify?: import("csstype").Property.MozUserModify | undefined;
491
503
  MozUserSelect?: import("csstype").Property.UserSelect | undefined;
@@ -665,7 +677,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
665
677
  MozBorderImage?: import("csstype").Property.BorderImage | undefined;
666
678
  MozColumnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
667
679
  MozColumns?: import("csstype").Property.Columns<string | number> | undefined;
668
- MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
680
+ MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
669
681
  msContentZoomLimit?: import("csstype").Property.MsContentZoomLimit | undefined;
670
682
  msContentZoomSnap?: import("csstype").Property.MsContentZoomSnap | undefined;
671
683
  msFlex?: import("csstype").Property.Flex<string | number> | undefined;
@@ -723,6 +735,7 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
723
735
  KhtmlLineBreak?: import("csstype").Property.LineBreak | undefined;
724
736
  KhtmlOpacity?: import("csstype").Property.Opacity | undefined;
725
737
  KhtmlUserSelect?: import("csstype").Property.UserSelect | undefined;
738
+ MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
726
739
  MozBackgroundClip?: import("csstype").Property.BackgroundClip | undefined;
727
740
  MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
728
741
  MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
@@ -744,17 +757,22 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
744
757
  MozOpacity?: import("csstype").Property.Opacity | undefined;
745
758
  MozOutline?: import("csstype").Property.Outline<string | number> | undefined;
746
759
  MozOutlineColor?: import("csstype").Property.OutlineColor | undefined;
747
- MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
748
- MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
749
- MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
750
- MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
751
- MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
752
760
  MozOutlineStyle?: import("csstype").Property.OutlineStyle | undefined;
753
761
  MozOutlineWidth?: import("csstype").Property.OutlineWidth<string | number> | undefined;
762
+ MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
763
+ MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
754
764
  MozTextAlignLast?: import("csstype").Property.TextAlignLast | undefined;
755
765
  MozTextDecorationColor?: import("csstype").Property.TextDecorationColor | undefined;
756
766
  MozTextDecorationLine?: import("csstype").Property.TextDecorationLine | undefined;
757
767
  MozTextDecorationStyle?: import("csstype").Property.TextDecorationStyle | undefined;
768
+ MozTransform?: import("csstype").Property.Transform | undefined;
769
+ MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
770
+ MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
771
+ MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
772
+ MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
773
+ MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
774
+ MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
775
+ MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
758
776
  MozUserInput?: import("csstype").Property.MozUserInput | undefined;
759
777
  msImeMode?: import("csstype").Property.ImeMode | undefined;
760
778
  OAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
@@ -787,8 +805,6 @@ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<imp
787
805
  WebkitBoxOrdinalGroup?: import("csstype").Property.BoxOrdinalGroup | undefined;
788
806
  WebkitBoxOrient?: import("csstype").Property.BoxOrient | undefined;
789
807
  WebkitBoxPack?: import("csstype").Property.BoxPack | undefined;
790
- WebkitScrollSnapPointsX?: import("csstype").Property.ScrollSnapPointsX | undefined;
791
- WebkitScrollSnapPointsY?: import("csstype").Property.ScrollSnapPointsY | undefined;
792
808
  alignmentBaseline?: import("csstype").Property.AlignmentBaseline | undefined;
793
809
  baselineShift?: import("csstype").Property.BaselineShift<string | number> | undefined;
794
810
  clipRule?: import("csstype").Property.ClipRule | undefined;