@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,77 +0,0 @@
1
- import { useSpring, config } from '@react-spring/web'
2
-
3
- /**
4
- * Accepts a string and returns 2 characters (max) as initials e.g. AN from Avatar Name
5
- * @param avatarName string - Expected full name but accepts any string
6
- * @returns string
7
- */
8
- export const handleAvatarInitials = (avatarName: string): string => {
9
- let firstInitial = avatarName.split('')[0] || ''
10
- let secondInitial = ''
11
-
12
- if (avatarName.split(' ')?.length > 1) {
13
- firstInitial = avatarName.split(' ')[0][0]
14
-
15
- if (avatarName.split(' ')[1]?.length > 0) {
16
- secondInitial = avatarName?.split(' ')[1][0]
17
- }
18
- }
19
-
20
- return `${firstInitial}${secondInitial}`
21
- }
22
-
23
- const STAGGER_ITEMS_DELAY = 70
24
-
25
- /**
26
- * Accepts a number and returns a react-spring style object from useSpring
27
- * @param trigger boolean - Trigger to reverse the animation from main component
28
- * @param animationCount number - Count tracking items from main component
29
- * @param incrementAnimationCount Function - Function to increment animationCount from main component
30
- * @returns Object
31
- */
32
- export const useStaggerAnimation = (trigger: boolean, animationCount: number, incrementAnimationCount: Function): Object => {
33
- const defaultAnimationConfig = {
34
- from: { opacity: 0, y: 10 },
35
- to: { opacity: 1, y: 0 },
36
- reverse: !trigger,
37
- config: {
38
- ...config.default,
39
- mass: 1
40
- }
41
- }
42
-
43
- const staggerAnimation = useSpring({
44
- ...defaultAnimationConfig,
45
- delay: trigger ? STAGGER_ITEMS_DELAY * (animationCount + 1) : 0
46
- })
47
-
48
- incrementAnimationCount()
49
-
50
- return staggerAnimation
51
- }
52
-
53
- /**
54
- * Accepts a number and returns a react-spring style object from useSpring
55
- * @param animationCount number - Count tracking items from main component
56
- * @param incrementAnimationCount Function - Function to increment animationCount from main component
57
- * @returns Object
58
- */
59
- export const useFadeIn = (animationCount: number, incrementAnimationCount: Function): Object => {
60
- const defaultAnimationConfig = {
61
- from: { opacity: 0 },
62
- to: { opacity: 1 },
63
- config: {
64
- ...config.default,
65
- mass: 1
66
- }
67
- }
68
-
69
- const staggerFadeInUpAnimation = useSpring({
70
- ...defaultAnimationConfig,
71
- delay: STAGGER_ITEMS_DELAY * (animationCount + 1)
72
- })
73
-
74
- incrementAnimationCount()
75
-
76
- return staggerFadeInUpAnimation
77
- }
@@ -1,33 +0,0 @@
1
- import { useState, useEffect } from 'react'
2
-
3
- const getWidth = () => window.innerWidth ??
4
- document.documentElement.clientWidth ??
5
- document.body.clientWidth
6
-
7
- export const useCurrentWidth = () => {
8
- // save current window width in the state object
9
- const [width, setWidth] = useState(getWidth())
10
-
11
- // in this case useEffect will execute only once because
12
- // it does not have any dependencies.
13
- useEffect(() => {
14
- // timeoutId for debounce mechanism
15
- let timeoutId: any
16
- const resizeListener = () => {
17
- // prevent execution of previous setTimeout
18
- clearTimeout(timeoutId)
19
- // change width from the state object after 150 milliseconds
20
- timeoutId = setTimeout(() => setWidth(getWidth()), 150)
21
- }
22
- // set resize listener
23
- window.addEventListener('resize', resizeListener)
24
-
25
- // clean up function
26
- return () => {
27
- // remove resize listener
28
- window.removeEventListener('resize', resizeListener)
29
- }
30
- }, [])
31
-
32
- return width
33
- }
@@ -1,4 +0,0 @@
1
- /* Export */
2
-
3
- /* Theming */
4
- export { defaultTheme, darkTheme, lightTheme } from './theme'
@@ -1,79 +0,0 @@
1
- import { amber, blue } from '@mui/material/colors'
2
-
3
- const DEFAULT_HEADER_TYPOGRAPHY = {
4
- fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif'
5
- }
6
-
7
- const DEFAULT_BODY_TYPOGRAPHY = {
8
- fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif'
9
- }
10
-
11
- // @TODO: Discuss this with the experience design team, according to the UUI Figma
12
- export const defaultTheme = {
13
- typography: {
14
- ...DEFAULT_BODY_TYPOGRAPHY,
15
- h1: DEFAULT_HEADER_TYPOGRAPHY,
16
- h2: DEFAULT_HEADER_TYPOGRAPHY,
17
- h3: DEFAULT_HEADER_TYPOGRAPHY,
18
- h4: DEFAULT_HEADER_TYPOGRAPHY,
19
- h5: DEFAULT_HEADER_TYPOGRAPHY,
20
- h6: DEFAULT_HEADER_TYPOGRAPHY,
21
- subtitle1: DEFAULT_BODY_TYPOGRAPHY,
22
- subtitle2: DEFAULT_BODY_TYPOGRAPHY,
23
- body1: DEFAULT_BODY_TYPOGRAPHY,
24
- body2: DEFAULT_BODY_TYPOGRAPHY,
25
- button: {
26
- ...DEFAULT_BODY_TYPOGRAPHY,
27
- fontWeight: 700
28
- },
29
- caption: DEFAULT_BODY_TYPOGRAPHY,
30
- overline: DEFAULT_BODY_TYPOGRAPHY
31
- }
32
- // overrides: {
33
- // MuiCssBaseline: {
34
- // '@global': {
35
- // '.MuiAvatarGroup-root .MuiAvatar-root:first-of-type': {
36
- // backgroundColor: '#eee',
37
- // color: '#333'
38
- // }
39
- // }
40
- // }
41
- // }
42
- }
43
-
44
- export const lightTheme = {
45
- palette: {
46
- primary: {
47
- main: '#0069b4'
48
- },
49
- secondary: {
50
- main: blue[500]
51
- },
52
- divider: 'rgba(0, 0, 0, 0.075)',
53
- text: {
54
- primary: 'rgba(0,0,0,0.95)'
55
- }
56
- }
57
- }
58
-
59
- export const darkTheme = {
60
- palette: {
61
- primary: amber,
62
- divider: 'rgba(255, 255, 255, 0.075)',
63
- text: {
64
- primary: 'rgba(255,255,255,0.95)'
65
- }
66
- }
67
- }
68
-
69
- export const motion = {
70
- ease: 'cubic-bezier(0.4, 0.0, 0.2, 1)',
71
- easeOut: 'cubic-bezier(0.0, 0.0, 0.2, 1)',
72
- easeIn: 'cubic-bezier(0.4, 0.0, 1, 1)',
73
- easeInOut: 'cubic-bezier(0.4, 0.0, 0.6, 1)'
74
- }
75
-
76
- export const tooltipDelay = {
77
- start: 500,
78
- end: 200
79
- }
@@ -1 +0,0 @@
1
- /// <reference types="react-scripts" />
package/src/setupTests.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';
@@ -1,34 +0,0 @@
1
- import { Canvas, Meta, Story } from '@storybook/addon-docs'
2
- import { Avatar, AvatarGroup } from '../../../../lib/'
3
- import Chip from '../../../../lib/components/datadisplay/Chip/Chip'
4
- import { Box, Typography, IconButton} from '@mui/material'
5
- import DeleteIcon from '@mui/icons-material/Delete'
6
-
7
- <Meta title="Components/Data Display/Avatar/Accessibility" />
8
-
9
- [](#avatar-accessibility)Avatar Accessibility <span class="sbdocs-edit-link"><Chip clickable component="a" href="https://github.com/ht2-labs/design-system/tree/main/src/stories/Components/DataDisplay/Avatar/Accessibility.stories.mdx" size="small" label="Edit" variant="outlined" /></span>
10
- =================================================================================
11
-
12
- This component has been validated to meet the WCAG 2.1 AA and Section 508 accessibility guidelines; however, changes made by the developer can affect accessibility compliance.
13
-
14
- ## [](#guidelines)Guidelines
15
-
16
- * When using the Avatar with text initials on a background color, the component will automatically set the correct text color with the highest contrast ratio.
17
-
18
- ### [](#screen-readers)Screen readers
19
-
20
- When using the Avatar with an image, include a clear and concise description with an `alt` tag.
21
-
22
- <Canvas isExpanded>
23
- <Stack direction="row" spacing={2}>
24
- <Avatar alt="User One Profile" src="/assets/avatar-1.jpg" />
25
- </Stack>
26
- </Canvas>
27
-
28
- When using the Avatar with text initials, include a clear and concise description with an `aria-label` tag.
29
-
30
- <Canvas isExpanded>
31
- <Stack direction="row" spacing={2}>
32
- <Avatar aria-label="LP User Profile">LP</Avatar>
33
- </Stack>
34
- </Canvas>
@@ -1,56 +0,0 @@
1
- import * as React from 'react'
2
- import { Stack } from '@mui/material'
3
- import { Avatar, AvatarGroup } from '../../../../lib/'
4
- import FolderIcon from '@mui/icons-material/Folder'
5
-
6
- const AvatarGrid = (args: any): JSX.Element => {
7
- return (
8
- <>
9
- <Stack direction="column" mb={5}>
10
- <Stack direction="row" spacing={2} alignItems="center" mb={1}>
11
- <Avatar {...args} alt="User One" src="/assets/avatar-1.jpg" />
12
- <Avatar {...args}>LP</Avatar>
13
- <Avatar {...args} sx={{ bgcolor: '#333' }}>LP</Avatar>
14
- <Avatar {...args}>
15
- <FolderIcon />
16
- </Avatar>
17
- <Avatar {...args} sx={{ width: 64, height: 64 }}>LP</Avatar>
18
- </Stack>
19
- <Stack direction="row" spacing={2} alignItems="center" mb={1}>
20
- <AvatarGroup max={4}>
21
- <Avatar {...args}>RD</Avatar>
22
- <Avatar {...args}>NS</Avatar>
23
- <Avatar {...args}>AM</Avatar>
24
- <Avatar {...args}>KW</Avatar>
25
- <Avatar {...args}>DD</Avatar>
26
- <Avatar {...args}>NT</Avatar>
27
- </AvatarGroup>
28
- <AvatarGroup total={25}>
29
- <Avatar {...args}>RD</Avatar>
30
- <Avatar {...args}>NS</Avatar>
31
- <Avatar {...args}>AM</Avatar>
32
- <Avatar {...args}>KW</Avatar>
33
- <Avatar {...args}>DD</Avatar>
34
- <Avatar {...args}>NT</Avatar>
35
- </AvatarGroup>
36
- </Stack>
37
- </Stack>
38
- </>
39
- )
40
- }
41
-
42
- export default function AllCombinations (): JSX.Element {
43
- const combinations = [
44
- { variant: 'circular' },
45
- { variant: 'square' },
46
- { variant: 'rounded' }
47
- ]
48
-
49
- return (
50
- <Stack>
51
- {combinations.map(AvatarConfig => (
52
- <AvatarGrid {...AvatarConfig} />
53
- ))}
54
- </Stack>
55
- )
56
- }
@@ -1,19 +0,0 @@
1
- import { ComponentMeta, ComponentStory } from '@storybook/react'
2
- import * as React from 'react'
3
- import { Avatar } from '../../../../lib/'
4
-
5
- export default {
6
- title: 'Components/Data Display/Avatar/Properties',
7
- component: Avatar,
8
- parameters: {
9
- controls: {
10
- sort: 'requiredFirst'
11
- }
12
- }
13
- } as ComponentMeta<typeof Avatar>
14
-
15
- // 👇 We create a “template” of how args map to rendering
16
- const Template: ComponentStory<typeof Avatar> = (args) => <Avatar {...args}>LP</Avatar>
17
-
18
- export const Properties = Template.bind({})
19
- Properties.args = {}
@@ -1,278 +0,0 @@
1
- import { ComponentMeta, ComponentStory } from '@storybook/react'
2
- import * as React from 'react'
3
- import { DOCS } from '../../../../docs'
4
- import { Avatar, AvatarGroup } from '../../../../lib/'
5
- import { Stack, Badge } from '@mui/material'
6
- import FolderIcon from '@mui/icons-material/Folder'
7
- import PageviewIcon from '@mui/icons-material/Pageview'
8
- import AssignmentIcon from '@mui/icons-material/Assignment'
9
- import { green, blue } from '@mui/material/colors'
10
- import { styled } from '@mui/material/styles'
11
- import AllCombinations from './AllCombinations'
12
-
13
- export default {
14
- title: 'Components/Data Display/Avatar/Examples',
15
- component: Avatar
16
- } as ComponentMeta<typeof Avatar>
17
-
18
- export const Default: ComponentStory<typeof Avatar> = (args): JSX.Element => {
19
- return (
20
- <Stack direction="row" spacing={2}>
21
- <Avatar alt="LP">LP</Avatar>
22
- </Stack>
23
- )
24
- }
25
- Default.parameters = {
26
- docs: {
27
- description: {
28
- component: DOCS.Avatar.Default
29
- }
30
- }
31
- }
32
-
33
- export const ImageAvatars: ComponentStory<typeof Avatar> = (args): JSX.Element => {
34
- return (
35
- <Stack direction="row" spacing={2}>
36
- <Avatar alt="User One" src="/assets/avatar-1.jpg" />
37
- <Avatar alt="User Two" src="/assets/avatar-2.jpg" />
38
- <Avatar alt="User Three" src="/assets/avatar-3.jpg" />
39
- </Stack>
40
- )
41
- }
42
- ImageAvatars.parameters = {
43
- docs: {
44
- description: {
45
- story: DOCS.Avatar.ImageAvatars
46
- }
47
- }
48
- }
49
-
50
- export const LetterAvatars: ComponentStory<typeof Avatar> = (args): JSX.Element => {
51
- return (
52
- <Stack direction="row" spacing={2}>
53
- <Avatar>L</Avatar>
54
- <Avatar>P</Avatar>
55
- <Avatar>LP</Avatar>
56
- </Stack>
57
- )
58
- }
59
- LetterAvatars.parameters = {
60
- docs: {
61
- description: {
62
- story: DOCS.Avatar.LetterAvatars
63
- },
64
- source: {
65
- type: 'code'
66
- }
67
- }
68
- }
69
-
70
- export const Sizes: ComponentStory<typeof Avatar> = (args): JSX.Element => {
71
- return (
72
- <Stack direction="row" spacing={2}>
73
- <Avatar sx={{ width: 24, height: 24 }} alt="User One" src="/assets/avatar-1.jpg" />
74
- <Avatar alt="User One" src="/assets/avatar-1.jpg" />
75
- <Avatar sx={{ width: 56, height: 56 }} alt="User One" src="/assets/avatar-1.jpg" />
76
- </Stack>
77
- )
78
- }
79
- Sizes.parameters = {
80
- docs: {
81
- description: {
82
- story: DOCS.Avatar.Sizes
83
- },
84
- source: {
85
- type: 'code'
86
- }
87
- }
88
- }
89
-
90
- export const Colors: ComponentStory<typeof Avatar> = (args): JSX.Element => {
91
- return (
92
- <Stack direction="row" spacing={2}>
93
- <Avatar sx={{ bgcolor: '#eee' }}>LP</Avatar>
94
- <Avatar sx={{ bgcolor: '#333' }}>LP</Avatar>
95
- <Avatar sx={{ bgcolor: green[500] }}>LP</Avatar>
96
- </Stack>
97
- )
98
- }
99
- Colors.parameters = {
100
- docs: {
101
- description: {
102
- story: DOCS.Avatar.Colors
103
- },
104
- source: {
105
- type: 'code'
106
- }
107
- }
108
- }
109
-
110
- export const IconAvatars: ComponentStory<typeof Avatar> = (args): JSX.Element => {
111
- return (
112
- <Stack direction="row" spacing={2}>
113
- <Avatar>
114
- <AssignmentIcon />
115
- </Avatar>
116
- <Avatar sx={{ bgcolor: '#eee' }}>
117
- <FolderIcon />
118
- </Avatar>
119
- <Avatar sx={{ bgcolor: '#333' }}>
120
- <PageviewIcon />
121
- </Avatar>
122
- </Stack>
123
- )
124
- }
125
- IconAvatars.parameters = {
126
- docs: {
127
- description: {
128
- story: DOCS.Avatar.IconAvatars
129
- },
130
- source: {
131
- type: 'code'
132
- }
133
- }
134
- }
135
-
136
- export const Variants: ComponentStory<typeof Avatar> = (args): JSX.Element => {
137
- return (
138
- <Stack direction="row" spacing={2}>
139
- <Avatar variant="square" sx={{ bgcolor: blue[800] }}>LP</Avatar>
140
- <Avatar variant="rounded" sx={{ bgcolor: blue[800] }}>LP</Avatar>
141
- </Stack>
142
- )
143
- }
144
- Variants.parameters = {
145
- docs: {
146
- description: {
147
- story: DOCS.Avatar.Variants
148
- },
149
- source: {
150
- type: 'code'
151
- }
152
- }
153
- }
154
-
155
- export const Grouped: ComponentStory<typeof Avatar> = (args): JSX.Element => {
156
- return (
157
- <AvatarGroup max={4}>
158
- <Avatar>RD</Avatar>
159
- <Avatar>NS</Avatar>
160
- <Avatar>AM</Avatar>
161
- <Avatar>KW</Avatar>
162
- <Avatar>DD</Avatar>
163
- <Avatar>NT</Avatar>
164
- </AvatarGroup>
165
- )
166
- }
167
- Grouped.parameters = {
168
- docs: {
169
- description: {
170
- story: DOCS.Avatar.Grouped
171
- },
172
- source: {
173
- type: 'code'
174
- }
175
- }
176
- }
177
-
178
- export const TotalAvatars: ComponentStory<typeof Avatar> = (args): JSX.Element => {
179
- return (
180
- <AvatarGroup total={25}>
181
- <Avatar>RD</Avatar>
182
- <Avatar>NS</Avatar>
183
- <Avatar>AM</Avatar>
184
- <Avatar>KW</Avatar>
185
- <Avatar>DD</Avatar>
186
- <Avatar>NT</Avatar>
187
- </AvatarGroup>
188
- )
189
- }
190
- TotalAvatars.parameters = {
191
- docs: {
192
- description: {
193
- story: DOCS.Avatar.TotalAvatars
194
- },
195
- source: {
196
- type: 'code'
197
- }
198
- }
199
- }
200
-
201
- export const BadgeAvatars: ComponentStory<typeof AllCombinations> = (args): JSX.Element => {
202
- const StyledBadge = styled(Badge)(({ theme }) => ({
203
- '& .MuiBadge-badge': {
204
- backgroundColor: '#44b700',
205
- color: '#44b700',
206
- boxShadow: `0 0 0 2px ${theme.palette.background.paper}`,
207
- '&::after': {
208
- position: 'absolute',
209
- top: 0,
210
- left: 0,
211
- width: '100%',
212
- height: '100%',
213
- borderRadius: '50%',
214
- animation: 'ripple 1.2s infinite ease-in-out',
215
- border: '1px solid currentColor',
216
- content: '""'
217
- }
218
- },
219
- '@keyframes ripple': {
220
- '0%': {
221
- transform: 'scale(.8)',
222
- opacity: 1
223
- },
224
- '100%': {
225
- transform: 'scale(2.4)',
226
- opacity: 0
227
- }
228
- }
229
- }))
230
-
231
- const SmallAvatar = styled(Avatar)(({ theme }) => ({
232
- width: 22,
233
- height: 22,
234
- border: '2px solid #eee'
235
- }))
236
-
237
- return (
238
- <Stack direction="row" spacing={2}>
239
- <StyledBadge
240
- overlap="circular"
241
- anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
242
- variant="dot"
243
- >
244
- <Avatar alt="User One" src="/assets/avatar-1.jpg" />
245
- </StyledBadge>
246
- <Badge
247
- overlap="circular"
248
- anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
249
- badgeContent={
250
- <SmallAvatar alt="User One" src="/assets/avatar-1.jpg" />
251
- }
252
- >
253
- <Avatar alt="User One" src="/assets/avatar-1.jpg" />
254
- </Badge>
255
- </Stack>
256
- )
257
- }
258
- BadgeAvatars.parameters = {
259
- docs: {
260
- description: {
261
- story: DOCS.Avatar.BadgeAvatars
262
- },
263
- source: {
264
- type: 'code'
265
- }
266
- }
267
- }
268
-
269
- export const All: ComponentStory<typeof AllCombinations> = (args): JSX.Element => (
270
- <AllCombinations />
271
- )
272
- All.parameters = {
273
- docs: {
274
- description: {
275
- story: DOCS.Avatar.All
276
- }
277
- }
278
- }
@@ -1,47 +0,0 @@
1
- import { Canvas, Meta, Story } from '@storybook/addon-docs';
2
- import { Avatar } from '../../../../lib/'
3
- import { MUIIcon, MaterialDesignIcon, W3CIcon, FigmaIcon, GithubIcon } from '../../../utils/CustomIcons';
4
- import Chip from '@mui/material/Chip';
5
- import Stack from '@mui/material/Stack';
6
-
7
- <Meta title="Components/Data Display/Avatar/Overview" component={Avatar} />
8
-
9
- [](#Avatar-overview)Avatar Overview <span class="sbdocs-edit-link"><Chip clickable component="a" href="https://github.com/ht2-labs/design-system/tree/main/src/stories/Components/DataDisplay/Avatar/Overview.stories.mdx" size="small" label="Edit" variant="outlined" /></span>
10
- =================================================================================
11
-
12
- ### [](#what-does-it-do)What does it do?
13
-
14
- Avatars are found throughout material design with uses in everything from tables to dialog menus.
15
-
16
- <Stack direction="row" spacing={1}>
17
- <Chip clickable component="a" href="https://mui.com/components/Avatares/" size="small" icon={<MUIIcon viewBox="-5 0 40 30" />} label="Material UI" variant="outlined" />
18
- <Chip clickable component="a" href="https://material.io/components/selection-controls#Avatares" size="small" icon={<MaterialDesignIcon />} label="Material Design" variant="outlined" />
19
- <Chip clickable component="a" href="https://www.figma.com/proto/mBDuFn79U8wQIIEoCGpMew/DS%3A-Component-Library?node-id=1142%3A17936&scaling=min-zoom&page-id=1141%3A18763&starting-point-node-id=1142%3A17936" size="small" icon={<FigmaIcon />} label="Figma" variant="outlined" />
20
- <Chip clickable component="a" href="https://github.com/HT2-Labs/design-system/tree/main/src/lib/components/datadisplay/Avatar" size="small" icon={<GithubIcon />} label="Github" variant="outlined" />
21
- </Stack>
22
-
23
- ### [](#why-use-it)Why use it?
24
-
25
- * Use an Avatar as a visual representation of a user.
26
- * Use an AvatarGroup to display a group of avatars.
27
-
28
- ### [](#how-to-implement-it)How to implement it?
29
-
30
- An Avatar can be `circular`, `square` or `rounded` depending on usage. The default is a circular.
31
-
32
- <Canvas isExpanded>
33
- <Stack direction="row" spacing={2}>
34
- <Avatar>LP</Avatar>
35
- <Avatar variant="square">LP</Avatar>
36
- <Avatar variant="rounded">LP</Avatar>
37
- </Stack>
38
- </Canvas>
39
-
40
- ### [](#best-practices)Best practices
41
-
42
- * Follow the [Badge Avatar example](/?path=/docs/components-data-display-avatar-examples--badge-avatars#badge-avatars) pattern to display a user's status with a round indicator at the bottom right.
43
- * Use the `AvatarGroup` component to display a group of avatars.
44
- * Provide an `alt` tag with a clear description of the avatar for screen readers when using an image.
45
-
46
- ### [](#design-prototype)Design prototype
47
- TODO: Add design prototype
@@ -1,29 +0,0 @@
1
- import { Canvas, Meta, Story } from '@storybook/addon-docs';
2
- import Chip from '../../../../lib/components/datadisplay/Chip/Chip';
3
- import { Box, Typography} from '@mui/material';
4
-
5
- <Meta title="Components/Data Display/Chip/Accessibility" />
6
-
7
- [](#Chip-accessibility)Chip Accessibility <span class="sbdocs-edit-link"><Chip clickable component="a" href="https://github.com/ht2-labs/design-system/tree/main/src/stories/Components/DataDisplay/Chip/Accessibility.stories.mdx" size="small" label="Edit" variant="outlined" /></span>
8
- =================================================================================
9
-
10
- This component has been validated to meet the WCAG 2.1 AA and Section 508 accessibility guidelines; however, changes made by the developer can affect accessibility compliance.
11
-
12
- Please follow the guidance in this section and see [WAI-ARIA](https://www.w3.org/TR/wai-aria-practices/) for more information.
13
-
14
- ## [](#guidelines)Guidelines
15
- The component handles most of the work necessary to make it accessible. However, you need to make sure that:
16
-
17
- * A chip should have a short and clear label.
18
- * Color should not be used as the only means to differentiate between different chip categories.
19
- * If a Chip is deletable or clickable then it is a button in tab order.
20
- * When a Chip is focused, releasing (keyup event) `Backspace` or `Delete` will call the `onDelete` handler, while releasing `Escape` will blur the Chip.
21
-
22
- ### [](#when-to-use-this-component)When to use this component
23
- Chips are used for content that needs to be labeled, categorized, or organized using keywords that describe them.
24
-
25
- ### [](#screen-readers)Screen readers
26
- Chips should have a short and concise label using the `label` prop. Adding Chips can increase the visual noise on a page, so use short labels to make scanning easy.
27
- <Canvas isExpanded>
28
- <Chip label="Chip Label" />
29
- </Canvas>