@learningpool/ui 1.6.2 → 1.6.5

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 (424) hide show
  1. package/{dist/assets → assets}/Images.d.ts +0 -0
  2. package/{dist/assets → assets}/Images.js +0 -0
  3. package/{dist/components → components}/atoms/Autocomplete/Autocomplete.d.ts +0 -0
  4. package/{dist/components → components}/atoms/Autocomplete/Autocomplete.js +0 -0
  5. package/{dist/components → components}/atoms/Button/Button.d.ts +0 -0
  6. package/{dist/components → components}/atoms/Button/Button.js +0 -0
  7. package/{dist/components → components}/atoms/Checkbox/Checkbox.d.ts +0 -0
  8. package/{dist/components → components}/atoms/Checkbox/Checkbox.js +0 -0
  9. package/{dist/components → components}/atoms/IconButton/IconButton.d.ts +0 -0
  10. package/{dist/components → components}/atoms/IconButton/IconButton.js +0 -0
  11. package/{dist/components → components}/atoms/Radio/Radio.d.ts +0 -0
  12. package/{dist/components → components}/atoms/Radio/Radio.js +0 -0
  13. package/{dist/components → components}/atoms/Select/Select.d.ts +0 -0
  14. package/{dist/components → components}/atoms/Select/Select.js +0 -0
  15. package/{dist/components → components}/atoms/Slider/Slider.d.ts +0 -0
  16. package/{dist/components → components}/atoms/Slider/Slider.js +0 -0
  17. package/{dist/components → components}/atoms/Switch/Switch.d.ts +0 -0
  18. package/{dist/components → components}/atoms/Switch/Switch.js +0 -0
  19. package/{dist/components → components}/atoms/TextField/TextField.d.ts +0 -0
  20. package/{dist/components → components}/atoms/TextField/TextField.js +0 -0
  21. package/{dist/components → components}/atoms/ToggleButton/ToggleButton.d.ts +0 -0
  22. package/{dist/components → components}/atoms/ToggleButton/ToggleButton.js +0 -0
  23. package/{dist/components → components}/datadisplay/Avatar/Avatar.d.ts +0 -0
  24. package/{dist/components → components}/datadisplay/Avatar/Avatar.js +0 -0
  25. package/{dist/components → components}/datadisplay/Chip/Chip.d.ts +0 -0
  26. package/{dist/components → components}/datadisplay/Chip/Chip.js +0 -0
  27. package/{dist/components → components}/datadisplay/List/List.d.ts +0 -0
  28. package/{dist/components → components}/datadisplay/List/List.js +0 -0
  29. package/{dist/components → components}/datadisplay/Tooltip/Tooltip.d.ts +0 -0
  30. package/{dist/components → components}/datadisplay/Tooltip/Tooltip.js +0 -0
  31. package/{dist/components → components}/feedback/Alert/Alert.d.ts +0 -0
  32. package/{dist/components → components}/feedback/Alert/Alert.js +0 -0
  33. package/{dist/components → components}/landmarks/Header/Header.d.ts +0 -0
  34. package/{dist/components → components}/landmarks/Header/Header.js +0 -0
  35. package/{dist/components → components}/landmarks/Header/HeaderActionButtons.d.ts +0 -0
  36. package/{dist/components → components}/landmarks/Header/HeaderActionButtons.js +0 -0
  37. package/{dist/components → components}/landmarks/Header/HeaderStyles.d.ts +0 -0
  38. package/{dist/components → components}/landmarks/Header/HeaderStyles.js +0 -0
  39. package/{dist/components → components}/navigation/Drawer/Drawer.d.ts +0 -0
  40. package/{dist/components → components}/navigation/Drawer/Drawer.js +0 -0
  41. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigation.d.ts +0 -0
  42. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigation.js +0 -0
  43. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +0 -0
  44. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatar.js +0 -0
  45. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +0 -0
  46. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +0 -0
  47. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +0 -0
  48. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawer.js +0 -0
  49. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +0 -0
  50. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +0 -0
  51. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +0 -0
  52. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +0 -0
  53. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.d.ts +0 -0
  54. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +0 -0
  55. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +0 -0
  56. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +0 -0
  57. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +0 -0
  58. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +0 -0
  59. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationMotion.d.ts +0 -0
  60. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationMotion.js +0 -0
  61. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationNotchIndicator.d.ts +0 -0
  62. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +0 -0
  63. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearch.d.ts +0 -0
  64. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearch.js +0 -0
  65. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +0 -0
  66. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearchStyles.js +0 -0
  67. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationStyles.d.ts +0 -0
  68. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationStyles.js +0 -0
  69. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +0 -0
  70. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +0 -0
  71. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +0 -0
  72. package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleX.js +0 -0
  73. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigation.d.ts +1 -0
  74. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigation.js +12 -10
  75. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +0 -0
  76. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatar.js +11 -7
  77. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +49 -0
  78. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +33 -0
  79. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +0 -0
  80. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +0 -0
  81. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +0 -0
  82. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +3 -3
  83. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +1 -0
  84. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +16 -15
  85. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +0 -0
  86. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +3 -3
  87. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +0 -0
  88. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationMotion.js +0 -0
  89. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +6 -1
  90. package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationStyles.js +14 -15
  91. package/{dist/components → components}/pages/ErrorPage/ErrorPage.d.ts +0 -0
  92. package/{dist/components → components}/pages/ErrorPage/ErrorPage.js +0 -0
  93. package/{dist/components → components}/pages/ErrorPage/ErrorPageStyles.d.ts +0 -0
  94. package/{dist/components → components}/pages/ErrorPage/ErrorPageStyles.js +0 -0
  95. package/{dist/components → components}/pages/SideInSide/SideInSide.d.ts +0 -0
  96. package/{dist/components → components}/pages/SideInSide/SideInSide.js +0 -0
  97. package/{dist/components → components}/pages/SideInSide/SideInSideStyles.d.ts +0 -0
  98. package/{dist/components → components}/pages/SideInSide/SideInSideStyles.js +0 -0
  99. package/{dist/components → components}/stream/AppSwitcher/AppSwitcher.d.ts +0 -0
  100. package/{dist/components → components}/stream/AppSwitcher/AppSwitcher.js +1 -11
  101. package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.d.ts +1 -0
  102. package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.js +14 -14
  103. package/{dist/components → components}/stream/AppSwitcher/AppSwitcherStyles.d.ts +0 -0
  104. package/{dist/components → components}/stream/AppSwitcher/AppSwitcherStyles.js +8 -6
  105. package/{dist/components → components}/stream/AppSwitcher/constants.d.ts +0 -0
  106. package/{dist/components → components}/stream/AppSwitcher/constants.js +0 -0
  107. package/{dist/index.d.ts → index.d.ts} +0 -0
  108. package/{dist/index.js → index.js} +0 -0
  109. package/lang/en-us.d.ts +15 -0
  110. package/lang/en-us.js +18 -0
  111. package/package.json +3 -70
  112. package/{dist/types → types}/components/navigation/VerticalNavigation.d.ts +0 -0
  113. package/{dist/types → types}/components/navigation/VerticalNavigation.js +0 -0
  114. package/{dist/types → types}/components/navigation/VerticalNavigationAvatar.d.ts +1 -0
  115. package/{dist/types → types}/components/navigation/VerticalNavigationAvatar.js +0 -0
  116. package/{dist/types → types}/components/stream/AppSwitcher.d.ts +0 -0
  117. package/{dist/types → types}/components/stream/AppSwitcher.js +0 -0
  118. package/{dist/types → types}/index.d.ts +0 -0
  119. package/{dist/types → types}/index.js +0 -0
  120. package/{dist/utils → utils}/constants.d.ts +0 -0
  121. package/{dist/utils → utils}/constants.js +0 -0
  122. package/{dist/utils → utils}/helpers.d.ts +0 -0
  123. package/{dist/utils → utils}/helpers.js +0 -0
  124. package/{dist/utils → utils}/hooks.d.ts +0 -0
  125. package/{dist/utils → utils}/hooks.js +0 -0
  126. package/{dist/utils → utils}/index.d.ts +0 -0
  127. package/{dist/utils → utils}/index.js +0 -0
  128. package/{dist/utils → utils}/theme.d.ts +0 -0
  129. package/{dist/utils → utils}/theme.js +0 -0
  130. package/.eslintrc.js +0 -40
  131. package/.github/pull_request_template.md +0 -23
  132. package/.github/renovate.json +0 -57
  133. package/.github/workflows/integration.yml +0 -53
  134. package/.github/workflows/wss.yml +0 -22
  135. package/.jest-test-results.json +0 -1
  136. package/.releaserc +0 -32
  137. package/.storybook/learningpoolTheme.js +0 -39
  138. package/.storybook/main.js +0 -21
  139. package/.storybook/manager-head.html +0 -175
  140. package/.storybook/manager.js +0 -34
  141. package/.storybook/preview-head.html +0 -212
  142. package/.storybook/preview.js +0 -120
  143. package/.storybook/storybook-sort.js +0 -54
  144. package/CHANGELOG.md +0 -13
  145. package/amplify.yml +0 -16
  146. package/babel.config.json +0 -14
  147. package/dist/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +0 -31
  148. package/dist/lang/en-us.d.ts +0 -6
  149. package/dist/lang/en-us.js +0 -6
  150. package/dist/package.json +0 -41
  151. package/jest.config.ts +0 -11
  152. package/jest.setup.ts +0 -5
  153. package/license +0 -7
  154. package/merge.js +0 -27
  155. package/public/android-chrome-192x192.png +0 -0
  156. package/public/android-chrome-512x512.png +0 -0
  157. package/public/apple-touch-icon.png +0 -0
  158. package/public/assets/atoms.svg +0 -5
  159. package/public/assets/automation.svg +0 -1
  160. package/public/assets/avatar-1.jpg +0 -0
  161. package/public/assets/avatar-2.jpg +0 -0
  162. package/public/assets/avatar-3.jpg +0 -0
  163. package/public/assets/flux/icon-dark.svg +0 -6
  164. package/public/assets/flux/icon-light.svg +0 -1
  165. package/public/assets/flux/icon-white.svg +0 -6
  166. package/public/assets/flux/icon.svg +0 -6
  167. package/public/assets/flux/logo-dark.svg +0 -22
  168. package/public/assets/flux/logo-light.svg +0 -1
  169. package/public/assets/flux/logo-white.svg +0 -22
  170. package/public/assets/flux/logo.svg +0 -22
  171. package/public/assets/iPhone6.jpg +0 -0
  172. package/public/assets/iPhone6Plus.jpg +0 -0
  173. package/public/assets/lp-logo.png +0 -0
  174. package/public/assets/lplogo.svg +0 -1
  175. package/public/assets/molecules.svg +0 -8
  176. package/public/assets/organisms.svg +0 -21
  177. package/public/assets/pages.svg +0 -4
  178. package/public/assets/particles.svg +0 -3
  179. package/public/assets/stream-dark.png +0 -0
  180. package/public/assets/stream-suite-logo.svg +0 -38
  181. package/public/assets/stream-white.png +0 -0
  182. package/public/assets/stream.png +0 -0
  183. package/public/assets/templates.svg +0 -3
  184. package/public/favicon-16x16.png +0 -0
  185. package/public/favicon-32x32.png +0 -0
  186. package/public/favicon.ico +0 -0
  187. package/public/index.html +0 -43
  188. package/public/logo192.png +0 -0
  189. package/public/logo512.png +0 -0
  190. package/public/manifest.json +0 -25
  191. package/public/robots.txt +0 -3
  192. package/public/site.webmanifest +0 -1
  193. package/readme.md +0 -132
  194. package/src/docs.tsx +0 -167
  195. package/src/lib/assets/Images.tsx +0 -47
  196. package/src/lib/assets/stream-suite-logo.svg +0 -38
  197. package/src/lib/components/atoms/Autocomplete/Autocomplete.test.tsx +0 -179
  198. package/src/lib/components/atoms/Autocomplete/Autocomplete.tsx +0 -14
  199. package/src/lib/components/atoms/Button/Button.test.tsx +0 -166
  200. package/src/lib/components/atoms/Button/Button.tsx +0 -16
  201. package/src/lib/components/atoms/Checkbox/Checkbox.test.tsx +0 -85
  202. package/src/lib/components/atoms/Checkbox/Checkbox.tsx +0 -10
  203. package/src/lib/components/atoms/IconButton/IconButton.test.tsx +0 -60
  204. package/src/lib/components/atoms/IconButton/IconButton.tsx +0 -9
  205. package/src/lib/components/atoms/Radio/Radio.test.tsx +0 -136
  206. package/src/lib/components/atoms/Radio/Radio.tsx +0 -10
  207. package/src/lib/components/atoms/Select/Select.test.tsx +0 -158
  208. package/src/lib/components/atoms/Select/Select.tsx +0 -12
  209. package/src/lib/components/atoms/Slider/Slider.test.tsx +0 -103
  210. package/src/lib/components/atoms/Slider/Slider.tsx +0 -10
  211. package/src/lib/components/atoms/Switch/Switch.test.tsx +0 -96
  212. package/src/lib/components/atoms/Switch/Switch.tsx +0 -10
  213. package/src/lib/components/atoms/TextField/TextField.test.tsx +0 -131
  214. package/src/lib/components/atoms/TextField/TextField.tsx +0 -31
  215. package/src/lib/components/atoms/ToggleButton/ToggleButton.test.tsx +0 -122
  216. package/src/lib/components/atoms/ToggleButton/ToggleButton.tsx +0 -10
  217. package/src/lib/components/datadisplay/Avatar/Avatar.test.tsx +0 -187
  218. package/src/lib/components/datadisplay/Avatar/Avatar.tsx +0 -35
  219. package/src/lib/components/datadisplay/Avatar/avatar-1.jpg +0 -0
  220. package/src/lib/components/datadisplay/Chip/Chip.test.tsx +0 -82
  221. package/src/lib/components/datadisplay/Chip/Chip.tsx +0 -11
  222. package/src/lib/components/datadisplay/List/List.test.tsx +0 -168
  223. package/src/lib/components/datadisplay/List/List.tsx +0 -8
  224. package/src/lib/components/datadisplay/Tooltip/Tooltip.test.tsx +0 -98
  225. package/src/lib/components/datadisplay/Tooltip/Tooltip.tsx +0 -9
  226. package/src/lib/components/feedback/Alert/Alert.test.tsx +0 -139
  227. package/src/lib/components/feedback/Alert/Alert.tsx +0 -10
  228. package/src/lib/components/landmarks/Header/Header.tsx +0 -140
  229. package/src/lib/components/landmarks/Header/HeaderActionButtons.tsx +0 -117
  230. package/src/lib/components/landmarks/Header/HeaderStyles.tsx +0 -62
  231. package/src/lib/components/navigation/Drawer/Drawer.test.tsx +0 -95
  232. package/src/lib/components/navigation/Drawer/Drawer.tsx +0 -21
  233. package/src/lib/components/navigation/MobileNavigation/MobileNavigation.tsx +0 -276
  234. package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatar.tsx +0 -334
  235. package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.tsx +0 -77
  236. package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawer.tsx +0 -197
  237. package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.tsx +0 -143
  238. package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.tsx +0 -192
  239. package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.tsx +0 -67
  240. package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.tsx +0 -192
  241. package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.tsx +0 -217
  242. package/src/lib/components/navigation/MobileNavigation/MobileNavigationMotion.tsx +0 -119
  243. package/src/lib/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.tsx +0 -35
  244. package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearch.tsx +0 -114
  245. package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearchStyles.tsx +0 -47
  246. package/src/lib/components/navigation/MobileNavigation/MobileNavigationStyles.tsx +0 -320
  247. package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.tsx +0 -59
  248. package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleX.tsx +0 -51
  249. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigation.tsx +0 -468
  250. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatar.tsx +0 -208
  251. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.tsx +0 -75
  252. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.tsx +0 -196
  253. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.tsx +0 -94
  254. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.tsx +0 -212
  255. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.tsx +0 -240
  256. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationMotion.tsx +0 -119
  257. package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationStyles.tsx +0 -302
  258. package/src/lib/components/pages/ErrorPage/ErrorPage.test.tsx +0 -78
  259. package/src/lib/components/pages/ErrorPage/ErrorPage.tsx +0 -50
  260. package/src/lib/components/pages/ErrorPage/ErrorPageStyles.tsx +0 -30
  261. package/src/lib/components/pages/SideInSide/SideInSide.tsx +0 -100
  262. package/src/lib/components/pages/SideInSide/SideInSideStyles.tsx +0 -62
  263. package/src/lib/components/stream/AppSwitcher/AppSwitcher.tsx +0 -392
  264. package/src/lib/components/stream/AppSwitcher/AppSwitcherItem.tsx +0 -83
  265. package/src/lib/components/stream/AppSwitcher/AppSwitcherStyles.tsx +0 -325
  266. package/src/lib/components/stream/AppSwitcher/constants.tsx +0 -28
  267. package/src/lib/index.tsx +0 -148
  268. package/src/lib/lang/en-us.js +0 -6
  269. package/src/lib/types/components/navigation/VerticalNavigation.ts +0 -52
  270. package/src/lib/types/components/navigation/VerticalNavigationAvatar.ts +0 -26
  271. package/src/lib/types/components/stream/AppSwitcher.ts +0 -10
  272. package/src/lib/types/index.ts +0 -9
  273. package/src/lib/utils/constants.tsx +0 -11
  274. package/src/lib/utils/helpers.tsx +0 -77
  275. package/src/lib/utils/hooks.tsx +0 -33
  276. package/src/lib/utils/index.tsx +0 -4
  277. package/src/lib/utils/theme.tsx +0 -79
  278. package/src/react-app-env.d.ts +0 -1
  279. package/src/setupTests.ts +0 -5
  280. package/src/stories/Components/DataDisplay/Avatar/Accessibility.stories.mdx +0 -34
  281. package/src/stories/Components/DataDisplay/Avatar/AllCombinations.tsx +0 -56
  282. package/src/stories/Components/DataDisplay/Avatar/Avatar.stories.tsx +0 -19
  283. package/src/stories/Components/DataDisplay/Avatar/Examples.stories.tsx +0 -278
  284. package/src/stories/Components/DataDisplay/Avatar/Overview.stories.mdx +0 -47
  285. package/src/stories/Components/DataDisplay/Chip/Accessibility.stories.mdx +0 -29
  286. package/src/stories/Components/DataDisplay/Chip/AllCombinations.tsx +0 -58
  287. package/src/stories/Components/DataDisplay/Chip/Chip.stories.tsx +0 -21
  288. package/src/stories/Components/DataDisplay/Chip/Examples.stories.tsx +0 -126
  289. package/src/stories/Components/DataDisplay/Chip/Overview.stories.mdx +0 -57
  290. package/src/stories/Components/DataDisplay/List/Accessibility.stories.mdx +0 -54
  291. package/src/stories/Components/DataDisplay/List/AllCombinations.tsx +0 -396
  292. package/src/stories/Components/DataDisplay/List/Examples.stories.tsx +0 -501
  293. package/src/stories/Components/DataDisplay/List/List.stories.tsx +0 -35
  294. package/src/stories/Components/DataDisplay/List/Overview.stories.mdx +0 -69
  295. package/src/stories/Components/DataDisplay/Table/Overview.stories.mdx +0 -70
  296. package/src/stories/Components/DataDisplay/Tooltip/Accessibility.stories.mdx +0 -39
  297. package/src/stories/Components/DataDisplay/Tooltip/AllCombinations.tsx +0 -134
  298. package/src/stories/Components/DataDisplay/Tooltip/Examples.stories.tsx +0 -237
  299. package/src/stories/Components/DataDisplay/Tooltip/Overview.stories.mdx +0 -58
  300. package/src/stories/Components/DataDisplay/Tooltip/Tooltip.stories.tsx +0 -22
  301. package/src/stories/Components/Feedback/Alert/Accessibility.stories.mdx +0 -25
  302. package/src/stories/Components/Feedback/Alert/Alert.stories.tsx +0 -22
  303. package/src/stories/Components/Feedback/Alert/AllCombinations.tsx +0 -37
  304. package/src/stories/Components/Feedback/Alert/Examples.stories.tsx +0 -137
  305. package/src/stories/Components/Feedback/Alert/Overview.stories.mdx +0 -62
  306. package/src/stories/Components/Inputs/Autocomplete/Accessibility.stories.mdx +0 -31
  307. package/src/stories/Components/Inputs/Autocomplete/AllCombinations.tsx +0 -182
  308. package/src/stories/Components/Inputs/Autocomplete/Autocomplete.stories.tsx +0 -31
  309. package/src/stories/Components/Inputs/Autocomplete/Examples.stories.tsx +0 -233
  310. package/src/stories/Components/Inputs/Autocomplete/Overview.stories.mdx +0 -52
  311. package/src/stories/Components/Inputs/Button/Accessibility.stories.mdx +0 -52
  312. package/src/stories/Components/Inputs/Button/AllCombinations.tsx +0 -53
  313. package/src/stories/Components/Inputs/Button/Button.stories.tsx +0 -23
  314. package/src/stories/Components/Inputs/Button/Examples.stories.tsx +0 -190
  315. package/src/stories/Components/Inputs/Button/Overview.stories.mdx +0 -52
  316. package/src/stories/Components/Inputs/Checkbox/Accessibility.stories.mdx +0 -38
  317. package/src/stories/Components/Inputs/Checkbox/AllCombinations.tsx +0 -55
  318. package/src/stories/Components/Inputs/Checkbox/Checkbox.stories.tsx +0 -22
  319. package/src/stories/Components/Inputs/Checkbox/Examples.stories.tsx +0 -363
  320. package/src/stories/Components/Inputs/Checkbox/Overview.stories.mdx +0 -63
  321. package/src/stories/Components/Inputs/IconButton/Examples.stories.tsx +0 -24
  322. package/src/stories/Components/Inputs/IconButton/IconButton.stories.tsx +0 -26
  323. package/src/stories/Components/Inputs/Radio/Accessibility.stories.mdx +0 -61
  324. package/src/stories/Components/Inputs/Radio/AllCombinations.tsx +0 -75
  325. package/src/stories/Components/Inputs/Radio/Examples.stories.tsx +0 -333
  326. package/src/stories/Components/Inputs/Radio/Overview.stories.mdx +0 -74
  327. package/src/stories/Components/Inputs/Radio/Radio.stories.tsx +0 -22
  328. package/src/stories/Components/Inputs/Select/Accessibility.stories.mdx +0 -51
  329. package/src/stories/Components/Inputs/Select/AllCombinations.tsx +0 -63
  330. package/src/stories/Components/Inputs/Select/Examples.stories.tsx +0 -803
  331. package/src/stories/Components/Inputs/Select/Overview.stories.mdx +0 -73
  332. package/src/stories/Components/Inputs/Select/Select.stories.tsx +0 -22
  333. package/src/stories/Components/Inputs/Slider/Accessibility.stories.mdx +0 -43
  334. package/src/stories/Components/Inputs/Slider/AllCombinations.tsx +0 -30
  335. package/src/stories/Components/Inputs/Slider/Examples.stories.tsx +0 -146
  336. package/src/stories/Components/Inputs/Slider/Overview.stories.mdx +0 -59
  337. package/src/stories/Components/Inputs/Slider/Slider.stories.tsx +0 -27
  338. package/src/stories/Components/Inputs/Switch/Accessibility.stories.mdx +0 -34
  339. package/src/stories/Components/Inputs/Switch/AllCombinations.tsx +0 -45
  340. package/src/stories/Components/Inputs/Switch/Examples.stories.tsx +0 -213
  341. package/src/stories/Components/Inputs/Switch/Overview.stories.mdx +0 -62
  342. package/src/stories/Components/Inputs/Switch/Switch.stories.tsx +0 -22
  343. package/src/stories/Components/Inputs/TextField/Accessibility.stories.mdx +0 -29
  344. package/src/stories/Components/Inputs/TextField/AllCombinations.tsx +0 -57
  345. package/src/stories/Components/Inputs/TextField/Examples.stories.tsx +0 -127
  346. package/src/stories/Components/Inputs/TextField/Overview.stories.mdx +0 -60
  347. package/src/stories/Components/Inputs/TextField/TextField.stories.tsx +0 -261
  348. package/src/stories/Components/Inputs/ToggleButton/Accessibility.stories.mdx +0 -32
  349. package/src/stories/Components/Inputs/ToggleButton/AllCombinations.tsx +0 -113
  350. package/src/stories/Components/Inputs/ToggleButton/Examples.stories.tsx +0 -339
  351. package/src/stories/Components/Inputs/ToggleButton/Overview.stories.mdx +0 -55
  352. package/src/stories/Components/Inputs/ToggleButton/ToggleButton.stories.tsx +0 -19
  353. package/src/stories/Components/Landmarks/Header/Examples.stories.tsx +0 -197
  354. package/src/stories/Components/Landmarks/Header/Header.stories.tsx +0 -34
  355. package/src/stories/Components/Landmarks/Header/Overview.stories.mdx +0 -44
  356. package/src/stories/Components/Navigation/Drawer/Accessibility.stories.mdx +0 -13
  357. package/src/stories/Components/Navigation/Drawer/Drawer.stories.tsx +0 -80
  358. package/src/stories/Components/Navigation/Drawer/Examples.stories.tsx +0 -440
  359. package/src/stories/Components/Navigation/Drawer/Overview.stories.mdx +0 -43
  360. package/src/stories/Components/Navigation/MobileNavigation/Accessibility.stories.mdx +0 -14
  361. package/src/stories/Components/Navigation/MobileNavigation/Examples.stories.tsx +0 -384
  362. package/src/stories/Components/Navigation/MobileNavigation/MobileNavigation.stories.tsx +0 -24
  363. package/src/stories/Components/Navigation/MobileNavigation/Overview.stories.mdx +0 -47
  364. package/src/stories/Components/Navigation/VerticalNavigation/Accessibility.stories.mdx +0 -14
  365. package/src/stories/Components/Navigation/VerticalNavigation/Examples.stories.tsx +0 -307
  366. package/src/stories/Components/Navigation/VerticalNavigation/Overview.stories.mdx +0 -47
  367. package/src/stories/Components/Navigation/VerticalNavigation/VerticalNavigation.stories.tsx +0 -24
  368. package/src/stories/ContactUs.stories.mdx +0 -21
  369. package/src/stories/Experimental/Test.stories.mdx +0 -46
  370. package/src/stories/GettingStarted/Designer.stories.mdx +0 -86
  371. package/src/stories/GettingStarted/Developer.stories.mdx +0 -134
  372. package/src/stories/Guidelines/Accessibility/AssistiveTechnology.stories.mdx +0 -70
  373. package/src/stories/Guidelines/Accessibility/ColorAndContrast.stories.mdx +0 -109
  374. package/src/stories/Guidelines/Accessibility/Hierarchy.stories.mdx +0 -119
  375. package/src/stories/Guidelines/Accessibility/Imagery.stories.mdx +0 -136
  376. package/src/stories/Guidelines/Accessibility/Overview.stories.mdx +0 -44
  377. package/src/stories/Guidelines/Accessibility/Principles.stories.mdx +0 -156
  378. package/src/stories/Guidelines/Accessibility/SoundAndMotion.stories.mdx +0 -59
  379. package/src/stories/Guidelines/Accessibility/Typography.stories.mdx +0 -69
  380. package/src/stories/Guidelines/Accessibility/Writing.stories.mdx +0 -188
  381. package/src/stories/Guidelines/Styleguide/ColorSwatch.tsx +0 -53
  382. package/src/stories/Guidelines/Styleguide/Colors.stories.mdx +0 -118
  383. package/src/stories/Guidelines/Styleguide/Typography.stories.mdx +0 -84
  384. package/src/stories/Introduction.stories.mdx +0 -65
  385. package/src/stories/Pages/ErrorPage.stories.tsx +0 -30
  386. package/src/stories/Pages/SideInSide.stories.tsx +0 -195
  387. package/src/stories/Roadmap.stories.mdx +0 -19
  388. package/src/stories/Templates/Login.stories.mdx +0 -46
  389. package/src/stories/assets/Atomic_Design_Icons-Dark.svg +0 -24
  390. package/src/stories/assets/Atomic_Design_Icons-Light.svg +0 -25
  391. package/src/stories/assets/accessibility-1.png +0 -0
  392. package/src/stories/assets/accessibility-2.png +0 -0
  393. package/src/stories/assets/accessibility-3.png +0 -0
  394. package/src/stories/assets/accessibility-banner.png +0 -0
  395. package/src/stories/assets/atoms.svg +0 -6
  396. package/src/stories/assets/design_system_2022-02-11_12.22pm.png +0 -0
  397. package/src/stories/assets/figma-tokens.png +0 -0
  398. package/src/stories/assets/hierarchy-1.jpg +0 -0
  399. package/src/stories/assets/hierarchy-2.jpg +0 -0
  400. package/src/stories/assets/hierarchy-3.jpg +0 -0
  401. package/src/stories/assets/icon-contrast-1.jpg +0 -0
  402. package/src/stories/assets/icon-contrast-2.jpg +0 -0
  403. package/src/stories/assets/imagery-1.png +0 -0
  404. package/src/stories/assets/imagery-2.png +0 -0
  405. package/src/stories/assets/imagery-3.png +0 -0
  406. package/src/stories/assets/imagery-4.jpg +0 -0
  407. package/src/stories/assets/molecules.svg +0 -9
  408. package/src/stories/assets/organisms.svg +0 -22
  409. package/src/stories/assets/pages.svg +0 -5
  410. package/src/stories/assets/particles.svg +0 -4
  411. package/src/stories/assets/templates.svg +0 -4
  412. package/src/stories/assets/testData.tsx +0 -102
  413. package/src/stories/assets/text-contrast-1.jpg +0 -0
  414. package/src/stories/assets/text-contrast-2.jpg +0 -0
  415. package/src/stories/assets/typography-1.png +0 -0
  416. package/src/stories/assets/visual-clues-1.png +0 -0
  417. package/src/stories/assets/visual-clues-2.png +0 -0
  418. package/src/stories/assets/writing-1.jpg +0 -0
  419. package/src/stories/assets/writing-2.png +0 -0
  420. package/src/stories/assets/writing-3.png +0 -0
  421. package/src/stories/assets/writing-4.png +0 -0
  422. package/src/stories/utils/CustomIcons.tsx +0 -44
  423. package/tsconfig.eslint.json +0 -16
  424. package/tsconfig.json +0 -50
@@ -1,192 +0,0 @@
1
- import {
2
- List, ListItem, ListItemButton as SSListItemButton,
3
- Paper, Typography
4
- } from '../../../../index'
5
- import { styled } from '@mui/material/styles'
6
- import { motion } from '../../../../utils/theme'
7
- import { NotchMiniSVG } from '../../../../assets/Images'
8
-
9
- export const DRAWER_WIDTH = {
10
- Collapsed: 60,
11
- Expanded: 300
12
- }
13
-
14
- export const FlyoutMenuPaper = styled(Paper, {
15
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'open' && prop !== 'anchorEl'
16
- })<{
17
- anchorEl: HTMLElement | undefined
18
- isDrawerOpen?: boolean
19
- open?: boolean
20
- }>`
21
- background: transparent none;
22
- box-shadow: none;
23
- left: ${props => props.isDrawerOpen ? `${DRAWER_WIDTH.Expanded}px` : `${DRAWER_WIDTH.Collapsed - 3}px`};
24
- perspective: 800px;
25
- pointer-events: ${props => props.open ? 'auto' : 'none'};
26
- position: fixed;
27
- /* Check against height of browser should be top or bottom positioned */
28
- top: ${props => props.anchorEl
29
- ? `${props.anchorEl.getBoundingClientRect().top}px`
30
- : 'auto'};
31
- width: 200px;
32
- z-index: 2;
33
- `
34
-
35
- export const FlyoutMenuWrap = styled('div', {
36
- shouldForwardProp: (prop) => prop !== 'open'
37
- })<{ open?: boolean }>`
38
- background-color: ${props => props.theme.palette.mode === 'dark'
39
- ? props.theme.palette.primary.dark
40
- : '#E6EAF0'};
41
- color: ${props => props.theme.palette.mode === 'dark'
42
- ? props.theme.palette.primary.contrastText
43
- : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
44
- border-radius: 0 8px 8px 0;
45
- box-shadow: 5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%);
46
- opacity: ${props => props.open ? 1 : 0};
47
- visibility: ${props => props.open ? 'visible' : 'hidden'};
48
- transform: ${props => props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(15deg) scale(.97)'};
49
- transform-origin: left center;
50
- transition: ${props => props.open
51
- ? `all 250ms ${motion.easeInOut}`
52
- : `all 150ms ${motion.easeOut}`};
53
- `
54
-
55
- export const FlyoutMenuList = styled(List, {
56
- shouldForwardProp: (prop) => prop !== 'open'
57
- })<{ open?: boolean }>`
58
- padding: ${props => props.theme.spacing(1, 2)};
59
- pointer-events: ${props => props.open ? 'auto' : 'none'};
60
- `
61
-
62
- export const FlyoutMenuHeader = styled(Typography)`
63
- font-weight: bold;
64
- padding: 12px ${props => props.theme.spacing(2)} 0 ${props => props.theme.spacing(3)};
65
- `
66
-
67
- export const FlyoutMenuItem = styled(ListItem)`
68
- font-size: 14px;
69
- padding: 0;
70
- white-space: normal;
71
- background: transparent !important;
72
- `
73
-
74
- export const FlyoutMenuButton = styled(SSListItemButton, {
75
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'isExpanded'
76
- })<{
77
- isDrawerOpen?: boolean
78
- isExpanded?: boolean
79
- }>`
80
- align-items: flex-start;
81
- background-color: transparent;
82
- color: ${props =>
83
- props.theme.palette.mode === 'dark'
84
- ? props.theme.palette.primary.contrastText
85
- : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
86
- border-radius: 5px;
87
- display: flex;
88
- flex-wrap: wrap;
89
- text-decoration: none;
90
- text-transform: none;
91
- transition: all 225ms ${motion.easeInOut} 0;
92
- padding: ${props => props.theme.spacing(1, 2)};
93
- width: 100%;
94
-
95
- /* Indicator */
96
- :before {
97
- background-color: ${props =>
98
- props.theme.palette.mode === 'dark'
99
- ? 'rgba(255, 255, 255, 0.5)'
100
- : props.theme.palette.primary.main};
101
- border-radius: 50px;
102
- content: '';
103
- height: calc(100% - 10px);
104
- opacity: 0;
105
- position: absolute;
106
- top: 5px;
107
- left: 5px;
108
- transition: all 180ms ${motion.easeInOut};
109
- width: 4px;
110
- transform: scale(.95);
111
- }
112
-
113
- :hover:before,
114
- :focus:before {
115
- opacity: 1;
116
- transform: scale(1);
117
- }
118
-
119
- :hover {
120
- background-color: rgba(0, 0, 0, .05);
121
- }
122
-
123
- :focus {
124
- background-color: ${props =>
125
- props.theme.palette.mode === 'dark'
126
- ? props.theme.palette.primary.dark
127
- : '#E6EAF0'};
128
- }
129
- `
130
-
131
- // FullHeight
132
- export const FullHeightFlyoutMenuPaper = styled(Paper, {
133
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'open'
134
- })<{
135
- isDrawerOpen?: boolean
136
- open?: boolean
137
- }>`
138
- background: transparent none;
139
- box-shadow: none;
140
- color: ${props => props.theme.palette.mode === 'dark'
141
- ? props.theme.palette.primary.contrastText
142
- : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
143
- height: 100%;
144
- left: ${props => props.isDrawerOpen ? `${DRAWER_WIDTH.Expanded}px` : `${DRAWER_WIDTH.Collapsed - 3}px`};
145
- perspective: 800px;
146
- pointer-events: ${props => props.open ? 'auto' : 'none'};
147
- position: fixed;
148
- top: 0;
149
- z-index: 1;
150
- `
151
-
152
- export const FullHeightFlyoutMenuWrapper = styled('div', {
153
- shouldForwardProp: (prop) => prop !== 'open'
154
- })<{ open?: boolean }>`
155
- background-color: ${props => props.theme.palette.mode === 'dark'
156
- ? props.theme.palette.primary.main
157
- : props.theme.palette.background.paper};
158
- box-shadow: 35px 0 15px 0 rgb(0 0 0 / 10%);
159
- height: 100%;
160
- max-width: 300px;
161
- min-width: 300px;
162
- opacity: ${props => props.open ? 1 : 0};
163
- pointer-events: ${props => props.open ? 'auto' : 'none'};
164
- transform: ${props => props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(8deg) scale(.98)'};
165
- transform-origin: left center;
166
- transition: ${props => props.open ? `all 150ms ${motion.easeInOut}` : `all 100ms ${motion.easeOut}`};
167
- visibility: ${props => props.open ? 'visible' : 'hidden'};
168
- width: ${props => props.open ? '300' : 0};
169
- `
170
-
171
- export const FlyoutNotchMask = styled('div')`
172
- background-color: ${props => props.theme.palette.mode === 'dark'
173
- ? props.theme.palette.primary.dark
174
- : '#E6EAF0'};
175
- content: '';
176
- display: block;
177
- height: 80px;
178
- left: -40px;
179
- position: absolute;
180
- top: 65px;
181
- width: 80px;
182
- z-index: -1;
183
- `
184
-
185
- export const NotchMini = styled(NotchMiniSVG)`
186
- fill: ${props => props.theme.palette.mode === 'dark'
187
- ? props.theme.palette.primary.dark
188
- : '#E6EAF0'};
189
- left: -12px;
190
- pointer-events: none;
191
- position: absolute;
192
- `
@@ -1,217 +0,0 @@
1
- import {
2
- ListItem as SSListItem, ListItemButton as SSListItemButton,
3
- ListItemText as SSListItemText, ListItemIcon as SSListItemIcon
4
- } from '../../../../index'
5
- import { styled } from '@mui/material/styles'
6
- import { motion } from '../../../../utils/theme'
7
- import { ArrowRight } from '@mui/icons-material'
8
-
9
- export const DRAWER_WIDTH = {
10
- Collapsed: 60,
11
- Expanded: 300
12
- }
13
-
14
- const ICON = {
15
- Height: 40,
16
- Width: 57
17
- }
18
-
19
- export const ListItem = styled(SSListItem, {
20
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
21
- })<{ isDrawerOpen?: boolean }>`
22
- align-items: flex-start;
23
- color: ${props => props.theme.palette.mode === 'dark'
24
- ? props.theme.palette.primary.contrastText
25
- : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
26
- min-height: ${ICON.Height + 8}px;
27
- padding: 0 !important;
28
- transition: width 225ms ${motion.easeInOut} ${props => props.isDrawerOpen ? '0ms' : '250ms'};
29
- width: ${DRAWER_WIDTH.Expanded}px;
30
-
31
- .MuiListItemIcon-root: {
32
- margin: ${props => props.theme.spacing(0.5)} 0 0;
33
- }
34
-
35
- .MuiListItemText-root .MuiTypography-root: {
36
- white-space: normal;
37
- }
38
- `
39
-
40
- export const ListItemButton = styled(SSListItemButton, {
41
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'isExpanded'
42
- })<{
43
- isDrawerOpen?: boolean
44
- isExpanded?: boolean
45
- }>`
46
- align-items: flex-start !important;
47
- background-color: ${props =>
48
- props.theme.palette.mode === 'dark'
49
- ? props.theme.palette.primary.main
50
- : props.theme.palette.background.paper};
51
- color: ${props =>
52
- props.theme.palette.mode === 'dark'
53
- ? props.theme.palette.primary.contrastText
54
- : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
55
- display: flex;
56
- flex-wrap: wrap;
57
- min-height: ${ICON.Height + 8}px;
58
- max-height: ${props => props.isDrawerOpen
59
- ? props.isExpanded
60
- ? 'auto'
61
- : '200px'
62
- : `${ICON.Height + 8}px`};
63
- text-decoration: none;
64
- text-transform: none;
65
- transition: all 225ms ${motion.easeInOut} 0ms !important;
66
- padding: 0 ${props => props.theme.spacing(2)} 0 0;
67
- width: 100%;
68
-
69
- /* Indicator */
70
- :before {
71
- background-color: ${props =>
72
- props.theme.palette.mode === 'dark'
73
- ? 'rgba(255, 255, 255, 0.5)'
74
- : props.theme.palette.primary.main};
75
- border-radius: 50px;
76
- content: '';
77
- height: calc(100% - 10px);
78
- opacity: 0;
79
- position: absolute;
80
- top: 5px;
81
- left: 3px;
82
- transition: all 180ms ${motion.easeInOut};
83
- width: 4px;
84
- transform: scale(.95);
85
- }
86
-
87
- :hover:before,
88
- :focus-visible:before {
89
- opacity: 1;
90
- transform: scale(1);
91
- }
92
-
93
- :hover {
94
- background-color: ${props =>
95
- props.theme.palette.mode === 'dark'
96
- ? props.theme.palette.primary.main
97
- : props.theme.palette.background.paper};
98
- }
99
-
100
- :focus-visible {
101
- background-color: ${props =>
102
- props.theme.palette.mode === 'dark'
103
- ? props.theme.palette.primary.dark
104
- : '#E6EAF0'};
105
- }
106
-
107
- :active {
108
- background-color: transparent
109
- }
110
- `
111
-
112
- export const ListItemButtonChild = styled(SSListItemButton, {
113
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
114
- })<{
115
- isDrawerOpen?: boolean
116
- index?: number
117
- }>`
118
- align-items: center;
119
- color: ${props => props.theme.palette.mode === 'dark'
120
- ? 'rgba(255, 255, 255, 0.75)'
121
- : 'rgba(0, 0, 0, 0.75)'};
122
- display: flex;
123
- min-height: none;
124
- max-height: none;
125
- text-decoration: none;
126
- text-transform: none;
127
- transition: max-height 225ms ${motion.easeInOut} 0ms !important;
128
- padding: 0;
129
- width: 100%;
130
-
131
- .MuiTypography-root: {
132
- font-size: .9rem;
133
- opacity: ${props => props.isDrawerOpen ? 1 : 0};
134
- transition: opacity 225ms ${motion.easeInOut} ${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
135
- }
136
-
137
- .MuiListItemText-root: {
138
- padding: .25rem .5rem;
139
- }
140
- `
141
-
142
- export const ListItemAvatar = styled(ListItemButton, {
143
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
144
- })<{ isDrawerOpen?: boolean }>`
145
- align-items: center;
146
- min-height: 52px;
147
- max-height: ${props => props.isDrawerOpen
148
- ? '200px'
149
- : `${ICON.Height + 8}px`};
150
- transition: max-height 225ms ${motion.easeInOut} 0ms !important;
151
-
152
- .MuiListItemIcon-root {
153
- justify-content: center;
154
- margin: 0;
155
- min-width: 0;
156
- }
157
-
158
- .MuiAvatar-root {
159
- height: 32px;
160
- width: 32px;
161
- }
162
- `
163
-
164
- export const ListItemIcon = styled(SSListItemIcon)`
165
- align-items: center;
166
- color: ${props => props.theme.palette.mode === 'dark'
167
- ? props.theme.palette.primary.contrastText
168
- : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
169
- height: ${ICON.Height + 8}px;
170
- justify-content: center;
171
- margin-top: 0 !important;
172
- min-width: ${ICON.Width};
173
- width: ${ICON.Width};
174
-
175
- [theme.breakpoints.up('sm')] {
176
- min-width: ${ICON.Width + 8}px;
177
- width: ${ICON.Width + 8}px;
178
- }
179
- `
180
-
181
- export const ListItemText = styled(SSListItemText, {
182
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
183
- })<{
184
- isDrawerOpen?: boolean
185
- index?: number
186
- }>`
187
- max-width: 210px;
188
- opacity: ${props => props.isDrawerOpen ? 1 : 0};
189
- padding: 0.5rem;
190
- transition: opacity 225ms ${motion.easeInOut} ${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
191
- white-space: normal;
192
- width: auto;
193
- `
194
-
195
- export const StyledExpandLess = styled(ArrowRight, {
196
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
197
- })<{ isDrawerOpen?: boolean }>`
198
- align-self: center;
199
- font-size: 1.25rem;
200
- left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
201
- margin-right: ${props => props.theme.spacing(1)};
202
- opacity: 1;
203
- position: relative;
204
- transition: opacity 225ms ${motion.easeInOut} 200ms !important;
205
- `
206
-
207
- export const StyledExpandMore = styled(ArrowRight, {
208
- shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
209
- })<{ isDrawerOpen?: boolean }>`
210
- align-self: center;
211
- font-size: 1.25rem;
212
- left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
213
- margin-right: ${props => props.theme.spacing(1)};
214
- opacity: 1;
215
- position: relative;
216
- transition: opacity 225ms ${motion.easeInOut} 200ms !important;
217
- `
@@ -1,119 +0,0 @@
1
- export const motionParent = {
2
- open: {
3
- transition: { staggerChildren: 0.07, delayChildren: 0 }
4
- },
5
- closed: {
6
- transition: { staggerChildren: 0.05, staggerDirection: -1 }
7
- }
8
- }
9
-
10
- export const motionFadeIn = {
11
- open: {
12
- opacity: 1
13
- },
14
- closed: {
15
- opacity: 0
16
- }
17
- }
18
-
19
- export const motionFadeInUp = {
20
- open: {
21
- y: 0,
22
- opacity: 1,
23
- transition: {
24
- y: { stiffness: 1000, velocity: -20 }
25
- }
26
- },
27
- closed: {
28
- y: 10,
29
- opacity: 0,
30
- transition: {
31
- y: { stiffness: 1000 }
32
- }
33
- }
34
- }
35
-
36
- export const motionWhileHover = {
37
- scale: 1.02
38
- }
39
-
40
- export const motionWhileTap = {
41
- scale: 0.95
42
- }
43
-
44
- // Old ones...
45
- export const variantsLogo = {
46
- open: {
47
- opacity: 1
48
- },
49
- closed: {
50
- opacity: 0
51
- }
52
- }
53
-
54
- export const variantsUl = {
55
- open: {
56
- transition: { staggerChildren: 0.07, delayChildren: 0.2 }
57
- },
58
- closed: {
59
- transition: { staggerChildren: 0.05, staggerDirection: -1 }
60
- }
61
- }
62
-
63
- export const variantsLi = {
64
- open: {
65
- y: 0,
66
- opacity: 1,
67
- transition: {
68
- y: { stiffness: 1000, velocity: -20 }
69
- }
70
- },
71
- closed: {
72
- y: 10,
73
- opacity: 0,
74
- transition: {
75
- y: { stiffness: 1000 }
76
- }
77
- }
78
- }
79
-
80
- export const variantsSecondaryUl = {
81
- open: {
82
- transition: { staggerChildren: 0.05, delayChildren: 0.5 }
83
- },
84
- closed: {
85
- transition: { staggerChildren: 0.05, staggerDirection: -1 }
86
- }
87
- }
88
-
89
- export const variantsSecondaryLi = {
90
- open: {
91
- y: 0,
92
- opacity: 1,
93
- transition: {
94
- y: { stiffness: 500, velocity: -10 }
95
- }
96
- },
97
- closed: {
98
- y: 10,
99
- opacity: 0,
100
- transition: {
101
- y: { stiffness: 500 }
102
- }
103
- }
104
- }
105
-
106
- export const variantsDivider = {
107
- open: {
108
- scaleX: 1,
109
- opacity: 1,
110
- transition: {
111
- type: 'spring',
112
- delay: 0.5
113
- }
114
- },
115
- closed: {
116
- scaleX: 0.25,
117
- opacity: 0
118
- }
119
- }
@@ -1,35 +0,0 @@
1
- import * as React from 'react'
2
- import { useSpring, animated } from '@react-spring/web'
3
- import {
4
- StyledNotchShadow, StyledNotchShadowMask, StyledNotchSVG
5
- } from './MobileNavigationStyles'
6
-
7
- const NotchIndicator = (props: any): React.ReactElement => {
8
- const styles = useSpring({
9
- ...props
10
- })
11
-
12
- return (
13
- <animated.div
14
- style={{
15
- bottom: '58px',
16
- position: 'fixed',
17
- zIndex: '-1',
18
- ...styles
19
- }}
20
- >
21
- <StyledNotchShadow />
22
- <StyledNotchSVG
23
- viewBox="0 0 22 85"
24
- xmlns="http://www.w3.org/2000/svg"
25
- >
26
- <animated.path
27
- d="M0 0V85V76.0381C0.774 69.7533 4.9101 64.7829 7.5488 63.5975C7.668 63.5518 7.7867 63.5052 7.9049 63.4576C16.1679 60.1279 22 52.035 22 42.5799C22 33.1612 16.2126 25.0941 8 21.7408C7.8723 21.6887 7.7441 21.6377 7.6153 21.5879C4.8325 20.3142 0.4173 14.8748 0 8.13255V0Z"
28
- />
29
- </StyledNotchSVG>
30
- <StyledNotchShadowMask />
31
- </animated.div>
32
- )
33
- }
34
-
35
- export default NotchIndicator
@@ -1,114 +0,0 @@
1
- import * as React from 'react'
2
- import {
3
- FormControl, InputAdornment, Stack, IconButton
4
- } from '../../../index'
5
- import {
6
- StyledBox, StyledSwipeableSearch,
7
- StyledOutlinedInput, StyledOutlinedInputLabel
8
- } from './MobileNavigationSearchStyles'
9
- import Search from '@mui/icons-material/Search'
10
- import { animated, config, useSpring } from '@react-spring/web'
11
-
12
- interface ISwipeableTemporarySearch {
13
- isSearchOpen: boolean
14
- setIsSearchOpen?: any
15
- searchPanelPlaceholder?: string
16
- searchPanelDefaultValue?: string
17
- searchPanelOnClickSearch?: any
18
- }
19
-
20
- export default function SwipeableTemporarySearch (props: ISwipeableTemporarySearch) {
21
- const {
22
- isSearchOpen, setIsSearchOpen,
23
- searchPanelPlaceholder, searchPanelDefaultValue,
24
- searchPanelOnClickSearch
25
- } = props
26
- const [isOpen, setIsOpen] = React.useState(isSearchOpen ?? false)
27
- const [searchValue, setSearchValue] = React.useState(searchPanelDefaultValue ?? '')
28
-
29
- React.useEffect(() => handleOpenState(isSearchOpen), [isSearchOpen])
30
-
31
- const handleOpenState = (open: boolean): void => {
32
- setIsOpen(open)
33
- setIsSearchOpen(open)
34
- }
35
-
36
- const toggleSearch =
37
- (open: boolean) =>
38
- (event: React.KeyboardEvent | React.MouseEvent) => {
39
- if (event && event.type === 'keydown' &&
40
- ((event as React.KeyboardEvent).key === 'Tab' ||
41
- (event as React.KeyboardEvent).key === 'Shift')
42
- ) {
43
- return
44
- }
45
-
46
- handleOpenState(open)
47
- }
48
-
49
- const handleSearch = (event: React.KeyboardEvent | React.MouseEvent): void => {
50
- if (event && event.type === 'keydown' &&
51
- ((event as React.KeyboardEvent).key !== 'Enter')
52
- ) {
53
- return
54
- }
55
-
56
- // Pass search value into the onClick function
57
- searchPanelOnClickSearch && searchPanelOnClickSearch(searchValue)
58
- }
59
-
60
- return (
61
- <StyledSwipeableSearch
62
- anchor='bottom'
63
- open={isOpen}
64
- onClose={toggleSearch(false)}
65
- onOpen={toggleSearch(true)}
66
- swipeAreaWidth={44}
67
- variant='persistent'
68
- ModalProps={{
69
- keepMounted: true
70
- }}
71
- >
72
- <StyledBox>
73
- <Stack spacing={2}>
74
- <animated.div
75
- style={useSpring({
76
- from: { opacity: 0, y: 10 },
77
- to: { opacity: 1, y: 0 },
78
- delay: isSearchOpen ? 100 : 0,
79
- reverse: !isSearchOpen,
80
- config: {
81
- ...config.default,
82
- mass: 1
83
- }
84
- })}
85
- >
86
- <FormControl fullWidth variant='outlined'>
87
- <StyledOutlinedInputLabel htmlFor='mobile-nav-search'>
88
- {searchPanelPlaceholder ?? 'Search'}
89
- </StyledOutlinedInputLabel>
90
- <StyledOutlinedInput
91
- label={searchPanelPlaceholder ?? 'Search'}
92
- id='mobile-nav-search'
93
- endAdornment={
94
- <InputAdornment position='end'>
95
- <IconButton
96
- aria-label='Search'
97
- edge='end'
98
- onClick={handleSearch}
99
- >
100
- <Search />
101
- </IconButton>
102
- </InputAdornment>
103
- }
104
- onKeyDown={handleSearch}
105
- value={searchValue}
106
- onChange={event => setSearchValue(event?.target?.value)}
107
- />
108
- </FormControl>
109
- </animated.div>
110
- </Stack>
111
- </StyledBox>
112
- </StyledSwipeableSearch>
113
- )
114
- }