@learningpool/ui 1.6.3 → 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 -1
  101. package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.d.ts +0 -0
  102. package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.js +0 -0
  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 -20
  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 -381
  264. package/src/lib/components/stream/AppSwitcher/AppSwitcherItem.tsx +0 -84
  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,34 +0,0 @@
1
- // .storybook/manager.js
2
-
3
- import { addons } from '@storybook/addons';
4
- import learningpoolTheme from './learningpoolTheme';
5
-
6
- addons.setConfig({
7
- isFullscreen: false,
8
- showNav: true,
9
- showPanel: true,
10
- panelPosition: 'bottom',
11
- enableShortcuts: true,
12
- isToolshown: true,
13
- theme: learningpoolTheme,
14
- selectedPanel: undefined,
15
- initialActive: 'sidebar',
16
- sidebar: {
17
- showRoots: false,
18
- collapsedRoots: [
19
- 'Getting Started',
20
- 'Guidelines',
21
- 'Components',
22
- 'Templates',
23
- 'Pages',
24
- 'other'
25
- ],
26
- },
27
- toolbar: {
28
- title: { hidden: false, },
29
- zoom: { hidden: false, },
30
- eject: { hidden: false, },
31
- copy: { hidden: false, },
32
- fullscreen: { hidden: false, },
33
- },
34
- });
@@ -1,212 +0,0 @@
1
- <link
2
- rel="stylesheet"
3
- href="https://fonts.googleapis.com/icon?family=Material+Icons"
4
- />
5
- <style type="text/css">
6
- @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
7
-
8
- /* @font-face {
9
- font-weight: 400 700;
10
- font-family: 'AudiType';
11
- font-style: normal;
12
- font-stretch: 100% 130%;
13
- src: url('https://assets.audi.com/audi-fonts/1/AudiTypeVF.woff2')
14
- format('woff2-variations');
15
- font-display: swap;
16
- } */
17
-
18
- .sb-show-main {
19
- margin: 0;
20
- /* padding: 0.5em !important; */
21
- }
22
-
23
- .sbdocs-p,
24
- .sbdocs-li,
25
- .sbdocs-ul,
26
- .sbdocs-ol,
27
- .sbdocs-table,
28
- .sbdocs-h1,
29
- .sbdocs-h2,
30
- .sbdocs-h3,
31
- .sbdocs-h4,
32
- .sbdocs-h5,
33
- .sbdocs-h6,
34
- .sbdocs-title {
35
- color: #333 !important;
36
- -webkit-font-smoothing: antialiased !important;
37
- }
38
-
39
- .sbdocs-p,
40
- .sbdocs-li,
41
- .sbdocs-ul,
42
- .sbdocs-ol,
43
- .sbdocs-table {
44
- font-weight: 400 !important;
45
- font-size: 16px !important;
46
- /* font-family: AudiType, sans-serif !important; */
47
- font-style: normal !important;
48
- font-stretch: 105% !important;
49
- line-height: 26px !important;
50
- }
51
-
52
- .sbdocs > strong,
53
- .sbdocs-table th {
54
- font-weight: 700 !important;
55
- /* font-family: AudiType, sans-serif !important; */
56
- font-style: normal !important;
57
- font-stretch: 105% !important;
58
- }
59
-
60
- .sbdocs-a {
61
- padding-bottom: 0.06125em !important;
62
- color: #003366 !important;
63
- font-weight: 700 !important;
64
- font-size: inherit !important;
65
- font-style: normal !important;
66
- font-stretch: 105.25% !important;
67
- line-height: inherit !important;
68
- border-bottom: 1px solid #003366 !important;
69
- transition: color 0.3s linear, border 0.3s linear !important;
70
- }
71
-
72
- .sbdocs-p,
73
- .sbdocs-li,
74
- .sbdocs-ul,
75
- .sbdocs-ol {
76
- margin-bottom: 0.5rem;
77
- }
78
-
79
- .sbdocs-h1,
80
- .sbdocs-h2,
81
- .sbdocs-h3,
82
- .sbdocs-h4,
83
- .sbdocs-h5,
84
- .sbdocs-h6,
85
- .sbdocs-title {
86
- margin: 1.1em 0 0 0 !important;
87
- padding: 0 !important;
88
-
89
- font-weight: 700 !important;
90
- /* font-family: AudiType, sans-serif !important; */
91
- font-stretch: 130% !important;
92
-
93
- letter-spacing: -0.015em;
94
-
95
- border-bottom: none !important;
96
- }
97
-
98
- /* Fixed Headlines */
99
-
100
- /* Order 1 */
101
- .sbdocs-h1,
102
- .sbdocs-title {
103
- margin-top: 0 !important;
104
-
105
- font-size: 40px !important;
106
- line-height: 60px !important;
107
- }
108
-
109
- /* Order 2 */
110
- .sbdocs-h2 {
111
- font-size: 32px !important;
112
- line-height: 48px !important;
113
- }
114
-
115
- /* Order 3 */
116
- .sbdocs-h3 {
117
- font-size: 24px !important;
118
- line-height: 36px !important;
119
- }
120
-
121
- /* Order 4 */
122
- .sbdocs-h4,
123
- .sbdocs-h5,
124
- .sbdocs-h6 {
125
- font-size: 18px !important;
126
- line-height: 28px !important;
127
- }
128
-
129
- .tabbutton {
130
- font-size: 16px !important;
131
- /* font-family: AudiType, sans-serif; */
132
- font-stretch: 105%;
133
- line-height: normal !important;
134
- font-weight: normal !important;
135
-
136
- border-bottom-width: 2px !important;
137
- border-top-width: 2px !important;
138
- }
139
-
140
- /* .subheading {
141
- font-size: 14px !important;
142
- color: #003366 !important;
143
- letter-spacing: 2px !important;
144
- } */
145
-
146
-
147
- .sbdocs-section-container {
148
- display: flex;
149
- flex-direction: row;
150
- align-items: flex-start;
151
- margin-bottom: 50px !important;
152
- }
153
-
154
- .sbdocs-section-img {
155
- max-width: 200px !important;
156
- width: 100%;
157
- height: auto;
158
- margin-right: 25px;
159
- flex: 1;
160
- }
161
-
162
- .sbdocs-section-text {
163
- display: flex;
164
- flex-direction: column;
165
- flex-basis: 75%;
166
- }
167
-
168
- .sbdocs-section-container a {
169
- border-bottom: 0 !important;
170
- }
171
-
172
- .sbdocs-edit-link {
173
- float: right;
174
- }
175
-
176
- /*
177
- * Hide the "stories" heading.
178
- * We just visually hide it, but don't remove it from the DOM
179
- * to preseve the heading hierarchy for screen readers.
180
- */
181
- .sbdocs-content #stories {
182
- clip: rect(0 0 0 0);
183
- clip-path: inset(50%);
184
- height: 1px;
185
- width: 1px;
186
- overflow: hidden;
187
- position: absolute;
188
- white-space: nowrap;
189
- }
190
-
191
- /* Hide the docblock-argstable section on the All Stories and Examples pages */
192
- .sbdocs-content div[id*="all-stories--default"] + div .docblock-argstable,
193
- .sbdocs-content div[id*="all-stories--default"] + div.docblock-emptyblock,
194
- .sbdocs-content div[id*="examples--default"] + div .docblock-argstable,
195
- .sbdocs-content div[id*="examples--default"] + div.docblock-emptyblock {
196
- display: none;
197
- }
198
-
199
- /* Style the avatars list */
200
- .sbdocs-content .sbdocs-avatar-list {
201
- border-bottom: none !important;
202
- }
203
-
204
- .sbdocs-content .sbdocs-avatar {
205
- background-color: grey;
206
- border-radius: 50%;
207
- margin: 0.25rem 0.25rem 0.25rem 0;
208
- max-width: 70px;
209
- width: 70px;
210
- }
211
-
212
- </style>
@@ -1,120 +0,0 @@
1
- // .storybook/preview.js
2
-
3
- import learningpoolTheme from './learningpoolTheme'
4
- import { withTests } from '@storybook/addon-jest'
5
-
6
- import results from '../.jest-test-results.json'
7
-
8
- // @TODO: Pull from Design Tokens when module is available
9
- const customViewports = {
10
- small: {
11
- name: 'S (600px)',
12
- styles: {
13
- height: '100%',
14
- width: '600px',
15
- },
16
- },
17
- medium: {
18
- name: 'M (900px)',
19
- styles: {
20
- height: '100%',
21
- width: '900px',
22
- },
23
- },
24
- large: {
25
- name: 'L (1200px)',
26
- styles: {
27
- height: '100%',
28
- width: '1200px',
29
- },
30
- },
31
- extraLarge: {
32
- name: 'XL (1536px)',
33
- styles: {
34
- height: '100%',
35
- width: '1536px',
36
- },
37
- },
38
- };
39
-
40
- export const decorators = [
41
- withTests({
42
- results,
43
- }),
44
- ]
45
-
46
- // or global addParameters
47
- export const parameters = {
48
- actions: { argTypesRegex: "^on[A-Z].*" },
49
- controls: {
50
- matchers: {
51
- color: /(background|color)$/i,
52
- date: /Date$/,
53
- },
54
- },
55
- docs: {
56
- theme: learningpoolTheme,
57
- },
58
- layout: 'centered',
59
- options: {
60
- storySort: {
61
- method: 'alphabetical',
62
- order: [
63
- 'Introduction',
64
- 'Getting Started', [
65
- '*'
66
- ],
67
- 'Guidelines', [
68
- 'Accessibility', ['Overview', 'Principles', 'Assistive Technology', 'Heirarchy', 'Typography', 'Color and Contrast', 'Writing', 'Imagery', 'Sound and Motion', '*'],
69
- ],
70
- 'Components', [
71
- 'Inputs', [
72
- 'Autocomplete', ['Overview', 'Accessibility', 'Properties', '*'],
73
- 'Button', ['Overview', 'Accessibility', 'Properties', '*'],
74
- 'Checkbox', ['Overview', 'Accessibility', 'Properties', '*'],
75
- 'Radio', ['Overview', 'Accessibility', 'Properties', '*'],
76
- 'Select', ['Overview', 'Accessibility', 'Properties', '*'],
77
- 'Slider', ['Overview', 'Accessibility', 'Properties', '*'],
78
- 'Switch', ['Overview', 'Accessibility', 'Properties', '*'],
79
- 'TextField', ['Overview', 'Accessibility', 'Properties', '*'],
80
- 'ToggleButton', ['Overview', 'Accessibility', 'Properties', '*'],
81
- ],
82
- 'Data Display', [
83
- 'Avatar', ['Overview', 'Accessibility', 'Properties', '*'],
84
- 'Chip', ['Overview', 'Accessibility', 'Properties', '*'],
85
- 'List', ['Overview', 'Accessibility', 'Properties', '*'],
86
- 'Tooltip', ['Overview', 'Accessibility', 'Properties', '*'],
87
- ],
88
- 'Feedback', [
89
- 'Alert', ['Overview', 'Accessibility', 'Properties', '*'],
90
- ],
91
- 'Landmarks', [
92
- 'Header', ['Overview', 'Accessibility', 'Properties', '*'],
93
- ],
94
- 'Navigation', [
95
- 'Drawer', ['Overview', 'Accessibility', 'Properties', '*'],
96
- 'Vertical Navigation', ['Overview', 'Accessibility', 'Properties', '*'],
97
- 'Mobile Navigation', ['Overview', 'Accessibility', 'Properties', '*'],
98
- ]
99
- ],
100
- 'Templates', [
101
- 'Button', ['Overview', 'Accessibility', 'Properties', '*'],
102
- ],
103
- 'Pages', [
104
- 'Button', ['Overview', 'Accessibility', 'Properties', '*'],
105
- ],
106
- 'Experimental', [
107
- 'Button', ['Overview', 'Accessibility', 'Properties', '*'],
108
- ],
109
- 'Roadmap',
110
- 'Contact Us',
111
- '*',
112
- 'WIP'
113
- ],
114
- locales: ''
115
- },
116
- },
117
- viewport: {
118
- viewports: customViewports,
119
- },
120
- };
@@ -1,54 +0,0 @@
1
- export const storySort = options => (a, b) => {
2
- // Debug.
3
- // console.log({a, b});
4
-
5
- // If the two stories have the same story kind, then use the default
6
- // ordering, which is the order they are defined in the story file.
7
- if (a[1].kind === b[1].kind) {
8
- return 0;
9
- }
10
-
11
- const storyKindA = a[1].kind.split('/');
12
- const storyKindB = b[1].kind.split('/');
13
- let depth = 0;
14
- let nameA, nameB, indexA, indexB, index;
15
- let ordering = options.order || [];
16
-
17
- while (true) {
18
- nameA = storyKindA[depth] ? storyKindA[depth] : '';
19
- nameB = storyKindB[depth] ? storyKindB[depth] : '';
20
-
21
- if (nameA === nameB) {
22
- // If a nested array is provided for a name, use it for ordering.
23
- index = ordering.indexOf(nameA);
24
- if (index !== -1 && Array.isArray(ordering[index + 1])) {
25
- ordering = ordering[index + 1];
26
- }
27
-
28
- // We'll need to look at the next part of the name.
29
- depth++;
30
- continue;
31
- }
32
- else {
33
- // Look for the names in the given `ordering` array.
34
- indexA = ordering.indexOf(nameA);
35
- indexB = ordering.indexOf(nameB);
36
-
37
- // If at least one of the names is found, sort by the `ordering` array.
38
- if (indexA !== -1 || indexB !== -1) {
39
- // If one of the names is not found in `ordering`, list it last.
40
- if (indexA === -1) {
41
- indexA = ordering.length;
42
- }
43
- if (indexB === -1) {
44
- indexB = ordering.length;
45
- }
46
-
47
- return indexA - indexB;
48
- }
49
- }
50
-
51
- // Otherwise, use alphabetical order.
52
- return nameA.localeCompare(nameB);
53
- }
54
- };
package/CHANGELOG.md DELETED
@@ -1,20 +0,0 @@
1
- ## [1.6.3](https://github.com/HT2-Labs/design-system/compare/v1.6.2...v1.6.3) (2023-02-09)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **AppSwitcher:** Uses 'customName' for applications (if set) [HOME-1121] ([#150](https://github.com/HT2-Labs/design-system/issues/150)) ([5b84774](https://github.com/HT2-Labs/design-system/commit/5b84774f34ffe5bbcc67a9bc92f85419f089340b))
7
-
8
- ## [1.6.2](https://github.com/HT2-Labs/design-system/compare/v1.6.1...v1.6.2) (2023-02-07)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * **VerticalNavigatioin:** - Fix overflow of long flyoutmenu items [DS-605] ([#149](https://github.com/HT2-Labs/design-system/issues/149)) ([bd1f88b](https://github.com/HT2-Labs/design-system/commit/bd1f88b36067af093ccf1dc8deb0deb061b34a82))
14
-
15
- ## [1.6.1](https://github.com/HT2-Labs/design-system/compare/v1.6.0...v1.6.1) (2023-02-07)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * **AnimationLibrary:** Swapping out framer-motion to react-spring [DS-604] ([#144](https://github.com/HT2-Labs/design-system/issues/144)) ([8b95ade](https://github.com/HT2-Labs/design-system/commit/8b95ade36dca5ba9351d87086a0ff360331fd3ed))
package/amplify.yml DELETED
@@ -1,16 +0,0 @@
1
- version: 1
2
- frontend:
3
- phases:
4
- preBuild:
5
- commands:
6
- - npm install
7
- build:
8
- commands:
9
- - npm run build
10
- artifacts:
11
- baseDirectory: /storybook-static
12
- files:
13
- - '**/*'
14
- cache:
15
- paths:
16
- - node_modules/**/*
package/babel.config.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "presets": [
3
- ["@babel/preset-env", {
4
- "modules": "commonjs",
5
- "targets": {
6
- "node": "current"
7
- }
8
- }
9
- ],
10
- "@babel/preset-react",
11
- "@babel/preset-typescript"
12
- ],
13
- "plugins": []
14
- }
@@ -1,31 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { Avatar, Button, ListItemButton, Typography } from '../../../index';
6
- import { Drawer } from '@mui/material';
7
- import { styled } from '@mui/material/styles';
8
- import { animated } from '@react-spring/web';
9
- export var StyledSwipeableAvatar = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
10
- ? props.theme.palette.primary.contrastText
11
- : props.theme.palette.text.primary; });
12
- export var StyledBox = styled(animated.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n font-family: ", ";\n height: 100%;\n justify-content: flex-start;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n font-family: ", ";\n height: 100%;\n justify-content: flex-start;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"])), function (props) { return props.theme.palette.mode === 'dark'
13
- ? props.theme.palette.primary.dark
14
- : '#E6EAF0'; }, function (props) { return props.theme.typography.fontFamily; }, function (props) { return props.theme.spacing(2); });
15
- export var StyledBoxProfile = styled(animated.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 2rem;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 2rem;\n"])));
16
- export var StyledBoxProfileEdit = styled(animated.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
17
- export var StyledAvatarName = styled(Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n font-size: 1.75rem;\n"], ["\n color: ", ";\n font-size: 1.75rem;\n"])), function (props) { return props.theme.palette.mode === 'dark'
18
- ? props.theme.palette.primary.contrastText
19
- : props.theme.palette.text.primary; });
20
- export var StyledOutlineButton = styled(Button)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-color: ", ";\n color: ", ";\n"], ["\n border-color: ", ";\n color: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
21
- ? props.theme.palette.primary.contrastText
22
- : props.theme.palette.primary.main; }, function (props) { return props.theme.palette.mode === 'dark'
23
- ? props.theme.palette.primary.contrastText
24
- : props.theme.palette.primary.main; });
25
- export var StyledAvatar = styled(Avatar)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n font-size: 0.85rem;\n"], ["\n background-color: ", ";\n color: ", ";\n font-size: 0.85rem;\n"])), function (props) { return props.theme.palette.mode === 'dark'
26
- ? props.theme.palette.primary.contrastText
27
- : props.theme.palette.primary.main; }, function (props) { return props.theme.palette.mode === 'dark'
28
- ? props.theme.palette.primary.main
29
- : props.theme.palette.primary.contrastText; });
30
- export var StyledListItemButton = styled(ListItemButton)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border-radius: 50px;\n white-space: normal;\n"], ["\n border-radius: 50px;\n white-space: normal;\n"])));
31
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -1,6 +0,0 @@
1
- export const defaultMessages: {
2
- 'your-apps': string;
3
- 'back-to': string;
4
- 'select-an-organisation': string;
5
- search: string;
6
- };
@@ -1,6 +0,0 @@
1
- export var defaultMessages = {
2
- 'your-apps': 'Your Stream suite apps',
3
- 'back-to': 'Back',
4
- 'select-an-organisation': 'Select an organisation',
5
- search: 'Search'
6
- };
package/dist/package.json DELETED
@@ -1,41 +0,0 @@
1
- {
2
- "name": "@learningpool/ui",
3
- "author": "Learning Pool",
4
- "description": "UI library for use on modern Learning Pool projects, built on top of MUI.",
5
- "license": "MIT",
6
- "keywords": [
7
- "learning-pool",
8
- "react",
9
- "components",
10
- "ui"
11
- ],
12
- "version": "1.6.2",
13
- "private": false,
14
- "main": "index.js",
15
- "module": "index.js",
16
- "dependencies": {
17
- "@emotion/react": "^11.7.1",
18
- "@emotion/styled": "^11.6.0",
19
- "@learningpool/design-tokens": "^1.1.0-beta.7",
20
- "@mui/icons-material": "^5.8.4",
21
- "@mui/material": "^5.8.5",
22
- "@mui/x-data-grid": "^5.12.3",
23
- "@react-spring/web": "^9.6.1",
24
- "@types/jest": "^27.4.0",
25
- "@types/node": "^16.11.45",
26
- "@types/react": "^17.0.48",
27
- "@types/react-dom": "^17.0.18",
28
- "@typescript-eslint/parser": "^5.31.0",
29
- "anysort": "^2.0.0",
30
- "eslint-plugin-n": "^15.2.4",
31
- "focus-trap-react": "^8.11.0",
32
- "jwt-decode": "^3.1.2",
33
- "query-string": "^7.1.1",
34
- "tss-react": "^3.3.6",
35
- "typescript": "^4.6.2",
36
- "web-vitals": "^2.1.4"
37
- },
38
- "publishConfig": {
39
- "access": "public"
40
- }
41
- }
package/jest.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { Config } from '@jest/types'
2
-
3
- const config: Config.InitialOptions = {
4
- setupFilesAfterEnv: ['./jest.setup.ts'],
5
- collectCoverageFrom: ['./src/lib/**/*.{ts,tsx}'],
6
- collectCoverage: true,
7
- testEnvironment: 'jsdom',
8
- transformIgnorePatterns: [] // @TODO: check knock on effects from adding
9
- }
10
-
11
- export default config
package/jest.setup.ts DELETED
@@ -1,5 +0,0 @@
1
- // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
- // allows you to do things like:
3
- // expect(element).toHaveTextContent(/react/i)
4
- // learn more: https://github.com/testing-library/jest-dom
5
- import '@testing-library/jest-dom';
package/license DELETED
@@ -1,7 +0,0 @@
1
- Copyright (c) 2022 Learningpool.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/merge.js DELETED
@@ -1,27 +0,0 @@
1
- const fs = require('fs')
2
- const _ = require('lodash')
3
-
4
- const localPackageJson = require('./package.json')
5
-
6
- const hardDeps = [
7
- 'react',
8
- 'react-dom',
9
- '@testing-library/react',
10
- '@testing-library/jest',
11
- '@testing-library/jest-dom',
12
- '@testing-library/user-event',
13
- 'react-scripts'
14
- ]
15
-
16
- delete localPackageJson.browserslist
17
- delete localPackageJson.devDependencies
18
- delete localPackageJson.scripts
19
-
20
- localPackageJson.main = 'index.js'
21
- localPackageJson.module = 'index.js'
22
-
23
- const dependencies = _.omit(localPackageJson.dependencies, hardDeps)
24
-
25
- localPackageJson.dependencies = dependencies
26
-
27
- fs.writeFileSync('./dist/package.json', JSON.stringify(localPackageJson, null, 2))
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- <svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="200" cy="200.25" r="72.5" stroke="#6F9EFF" stroke-width="5"/>
3
- <circle cx="200" cy="200.25" r="41" fill="#2570EE"/>
4
- <circle cx="234" cy="136.25" r="14" fill="#2570EE"/>
5
- </svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><svg id="Layer_2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 58.84 51.92"><defs><style>.cls-1,.cls-2{fill:#87b900;}.cls-2{opacity:.7;}</style></defs><g id="Layer_1-2"><g><path class="cls-2" d="M47.96,20.32h0l10.88,31.6h-10.88l-7.4-23.13c-1.51-4.71,2.53-9.33,7.4-8.47Z"/><path class="cls-2" d="M34.34,34.74h0l8.05,17.18-10.71-1.89-3.39-10.38c-1.18-3.63,2.74-6.81,6.05-4.9Z"/><path class="cls-2" d="M16.38,44.04h0c-.91-1.09-2.62,.05-1.96,1.31l.59,1.13,9.42,5.44-8.04-7.88Z"/><path class="cls-1" d="M58.84,0h0V51.92h-10.88V10.88C47.96,4.87,52.83,0,58.84,0Z"/><path class="cls-1" d="M45.26,19.13h0V51.22h-10.88V30.01c0-6,4.87-10.88,10.88-10.88Z" transform="translate(6.71 -6.38) rotate(10)"/><path class="cls-1" d="M30.11,30.7h0v19.83h-10.88v-8.96c0-6,4.87-10.88,10.88-10.88Z" transform="translate(23.61 -6.89) rotate(30)"/><path class="cls-1" d="M13.63,37.69h0v12.26H2.75v-1.38c0-6,4.87-10.88,10.88-10.88Z" transform="translate(36.49 9.38) rotate(50)"/></g></g></svg>
Binary file
Binary file
Binary file
@@ -1,6 +0,0 @@
1
- <svg width="612" height="567" viewBox="0 0 612 567" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M430.89 83.09C424.18 66.96 414.29 52.15 401.52 39.44C388.75 26.72 373.89 16.87 357.69 10.19C357.12 9.95 356.54 9.71999 355.97 9.48999C351.3 7.62999 346.51 6.04 341.63 4.72C330.19 1.62 318.24 0.02 306.04 0C293.85 0.02 281.9 1.62 270.46 4.72C265.58 6.04 260.79 7.62999 256.12 9.48999C255.55 9.71999 254.97 9.94 254.4 10.19C238.2 16.86 223.34 26.72 210.57 39.44C197.8 52.16 187.91 66.96 181.2 83.09C174.49 99.22 170.98 116.66 170.98 134.63L170.87 193.75C170.87 202.36 180.19 207.75 187.65 203.44L247.04 169.14C252.58 165.94 255.99 160.03 255.99 153.64L256.1 134.63C256.1 134.49 256.1 134.35 256.12 134.21C256.14 130.92 256.49 127.7 257.13 124.59C257.79 121.35 258.78 118.21 260.04 115.24C262.57 109.27 266.24 103.9 270.77 99.39C275.28 94.88 280.68 91.22 286.67 88.7C292.63 86.21 299.16 84.82 306.04 84.8C312.92 84.82 319.45 86.21 325.41 88.7C331.4 91.23 336.8 94.88 341.31 99.39C345.84 103.9 349.51 109.27 352.04 115.24C353.29 118.22 354.29 121.35 354.95 124.59C355.59 127.69 355.94 130.91 355.96 134.2C355.98 134.34 355.98 134.48 355.98 134.62L355.87 153.63C355.87 160.02 359.28 165.93 364.82 169.13L424.21 203.43C431.67 207.74 440.99 202.35 440.99 193.74L441.1 134.62C441.1 116.64 437.58 99.21 430.88 83.08L430.89 83.09Z" fill="#003366"/>
3
- <path d="M393.72 291.95V372.57C393.72 378.97 390.31 384.88 384.77 388.07L314.95 428.37C309.41 431.57 302.59 431.57 297.05 428.37L227.23 388.06C221.69 384.86 218.28 378.95 218.28 372.56V291.94C218.28 285.54 221.69 279.64 227.23 276.44L297.05 236.13C302.59 232.93 309.41 232.93 314.95 236.13L384.77 276.44C390.31 279.64 393.72 285.55 393.72 291.94V291.95Z" fill="#003366"/>
4
- <path d="M456.38 565.21C473.66 567.8 491.44 566.97 508.93 562.61C526.41 558.24 542.53 550.61 556.61 540.19C557.12 539.82 557.61 539.45 558.1 539.07C562.11 536.04 565.94 532.75 569.59 529.26C578.16 521.06 585.7 511.66 592.01 501.23C598.29 490.78 603.09 479.72 606.35 468.32C607.74 463.46 608.85 458.54 609.67 453.58C609.77 452.97 609.88 452.36 609.96 451.74C612.61 434.42 611.85 416.61 607.55 399.11C603.26 381.61 595.69 365.49 585.34 351.42C574.99 337.35 561.88 325.33 546.49 316.04L495.92 285.41C488.55 280.96 479.12 286.17 478.96 294.78L477.65 363.35C477.53 369.74 480.83 375.72 486.3 379.02L502.52 388.93C502.64 389 502.76 389.07 502.87 389.16C505.68 390.88 508.26 392.84 510.58 394.99C513.01 397.23 515.18 399.7 517.09 402.31C520.9 407.56 523.6 413.48 525.12 419.69C526.65 425.88 527 432.4 526.06 438.83C525.12 445.22 522.94 451.53 519.4 457.43C515.83 463.31 511.26 468.18 506.06 472C500.8 475.83 494.88 478.56 488.69 480.09C482.49 481.64 476 482.01 469.57 481.09C466.37 480.63 463.17 479.86 460.06 478.75C457.07 477.7 454.13 476.33 451.31 474.65C451.18 474.59 451.06 474.52 450.94 474.45L434.72 464.54C429.24 461.24 422.42 461.11 416.82 464.2L356.77 497.34C349.23 501.5 349.02 512.27 356.4 516.71L406.97 547.34C422.36 556.62 439.11 562.62 456.39 565.21H456.38Z" fill="#003366"/>
5
- <path d="M155.62 565.21C138.34 567.8 120.56 566.97 103.07 562.61C85.5899 558.24 69.4699 550.61 55.3899 540.19C54.8799 539.82 54.3899 539.45 53.8999 539.07C49.8899 536.04 46.0599 532.75 42.4099 529.26C33.8399 521.06 26.2999 511.66 19.9899 501.23C13.7099 490.78 8.90992 479.72 5.64992 468.32C4.25992 463.46 3.14993 458.54 2.32993 453.58C2.22993 452.97 2.11992 452.36 2.03992 451.74C-0.610076 434.42 0.149927 416.61 4.44993 399.11C8.73993 381.61 16.3099 365.49 26.6599 351.42C37.0099 337.35 50.1199 325.33 65.5099 316.04L116.08 285.41C123.45 280.96 132.88 286.17 133.04 294.78L134.35 363.35C134.47 369.74 131.17 375.72 125.7 379.02L109.48 388.93C109.36 389 109.24 389.07 109.13 389.16C106.32 390.88 103.74 392.84 101.42 394.99C98.9899 397.23 96.8199 399.7 94.9099 402.31C91.0999 407.56 88.3999 413.48 86.8799 419.69C85.3499 425.88 84.9999 432.4 85.9399 438.83C86.8799 445.22 89.0599 451.53 92.5999 457.43C96.1699 463.31 100.74 468.18 105.94 472C111.2 475.83 117.12 478.56 123.31 480.09C129.51 481.64 136 482.01 142.43 481.09C145.63 480.63 148.83 479.86 151.94 478.75C154.93 477.7 157.87 476.33 160.69 474.65C160.82 474.59 160.94 474.52 161.06 474.45L177.28 464.54C182.76 461.24 189.58 461.11 195.18 464.2L255.23 497.34C262.77 501.5 262.98 512.27 255.6 516.71L205.03 547.34C189.64 556.62 172.89 562.62 155.61 565.21H155.62Z" fill="#003366"/>
6
- </svg>