@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.
- package/{dist/assets → assets}/Images.d.ts +0 -0
- package/{dist/assets → assets}/Images.js +0 -0
- package/{dist/components → components}/atoms/Autocomplete/Autocomplete.d.ts +0 -0
- package/{dist/components → components}/atoms/Autocomplete/Autocomplete.js +0 -0
- package/{dist/components → components}/atoms/Button/Button.d.ts +0 -0
- package/{dist/components → components}/atoms/Button/Button.js +0 -0
- package/{dist/components → components}/atoms/Checkbox/Checkbox.d.ts +0 -0
- package/{dist/components → components}/atoms/Checkbox/Checkbox.js +0 -0
- package/{dist/components → components}/atoms/IconButton/IconButton.d.ts +0 -0
- package/{dist/components → components}/atoms/IconButton/IconButton.js +0 -0
- package/{dist/components → components}/atoms/Radio/Radio.d.ts +0 -0
- package/{dist/components → components}/atoms/Radio/Radio.js +0 -0
- package/{dist/components → components}/atoms/Select/Select.d.ts +0 -0
- package/{dist/components → components}/atoms/Select/Select.js +0 -0
- package/{dist/components → components}/atoms/Slider/Slider.d.ts +0 -0
- package/{dist/components → components}/atoms/Slider/Slider.js +0 -0
- package/{dist/components → components}/atoms/Switch/Switch.d.ts +0 -0
- package/{dist/components → components}/atoms/Switch/Switch.js +0 -0
- package/{dist/components → components}/atoms/TextField/TextField.d.ts +0 -0
- package/{dist/components → components}/atoms/TextField/TextField.js +0 -0
- package/{dist/components → components}/atoms/ToggleButton/ToggleButton.d.ts +0 -0
- package/{dist/components → components}/atoms/ToggleButton/ToggleButton.js +0 -0
- package/{dist/components → components}/datadisplay/Avatar/Avatar.d.ts +0 -0
- package/{dist/components → components}/datadisplay/Avatar/Avatar.js +0 -0
- package/{dist/components → components}/datadisplay/Chip/Chip.d.ts +0 -0
- package/{dist/components → components}/datadisplay/Chip/Chip.js +0 -0
- package/{dist/components → components}/datadisplay/List/List.d.ts +0 -0
- package/{dist/components → components}/datadisplay/List/List.js +0 -0
- package/{dist/components → components}/datadisplay/Tooltip/Tooltip.d.ts +0 -0
- package/{dist/components → components}/datadisplay/Tooltip/Tooltip.js +0 -0
- package/{dist/components → components}/feedback/Alert/Alert.d.ts +0 -0
- package/{dist/components → components}/feedback/Alert/Alert.js +0 -0
- package/{dist/components → components}/landmarks/Header/Header.d.ts +0 -0
- package/{dist/components → components}/landmarks/Header/Header.js +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderActionButtons.d.ts +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderActionButtons.js +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderStyles.d.ts +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderStyles.js +0 -0
- package/{dist/components → components}/navigation/Drawer/Drawer.d.ts +0 -0
- package/{dist/components → components}/navigation/Drawer/Drawer.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigation.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigation.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatar.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawer.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationMotion.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationMotion.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationNotchIndicator.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearch.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearch.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearchStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleX.js +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigation.d.ts +1 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigation.js +12 -10
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatar.js +11 -7
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +49 -0
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +33 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +3 -3
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +1 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +16 -15
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +3 -3
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationMotion.js +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +6 -1
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationStyles.js +14 -15
- package/{dist/components → components}/pages/ErrorPage/ErrorPage.d.ts +0 -0
- package/{dist/components → components}/pages/ErrorPage/ErrorPage.js +0 -0
- package/{dist/components → components}/pages/ErrorPage/ErrorPageStyles.d.ts +0 -0
- package/{dist/components → components}/pages/ErrorPage/ErrorPageStyles.js +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSide.d.ts +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSide.js +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSideStyles.d.ts +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSideStyles.js +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcher.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcher.js +1 -1
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.js +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherStyles.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherStyles.js +8 -6
- package/{dist/components → components}/stream/AppSwitcher/constants.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/constants.js +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/lang/en-us.d.ts +15 -0
- package/lang/en-us.js +18 -0
- package/package.json +3 -70
- package/{dist/types → types}/components/navigation/VerticalNavigation.d.ts +0 -0
- package/{dist/types → types}/components/navigation/VerticalNavigation.js +0 -0
- package/{dist/types → types}/components/navigation/VerticalNavigationAvatar.d.ts +1 -0
- package/{dist/types → types}/components/navigation/VerticalNavigationAvatar.js +0 -0
- package/{dist/types → types}/components/stream/AppSwitcher.d.ts +0 -0
- package/{dist/types → types}/components/stream/AppSwitcher.js +0 -0
- package/{dist/types → types}/index.d.ts +0 -0
- package/{dist/types → types}/index.js +0 -0
- package/{dist/utils → utils}/constants.d.ts +0 -0
- package/{dist/utils → utils}/constants.js +0 -0
- package/{dist/utils → utils}/helpers.d.ts +0 -0
- package/{dist/utils → utils}/helpers.js +0 -0
- package/{dist/utils → utils}/hooks.d.ts +0 -0
- package/{dist/utils → utils}/hooks.js +0 -0
- package/{dist/utils → utils}/index.d.ts +0 -0
- package/{dist/utils → utils}/index.js +0 -0
- package/{dist/utils → utils}/theme.d.ts +0 -0
- package/{dist/utils → utils}/theme.js +0 -0
- package/.eslintrc.js +0 -40
- package/.github/pull_request_template.md +0 -23
- package/.github/renovate.json +0 -57
- package/.github/workflows/integration.yml +0 -53
- package/.github/workflows/wss.yml +0 -22
- package/.jest-test-results.json +0 -1
- package/.releaserc +0 -32
- package/.storybook/learningpoolTheme.js +0 -39
- package/.storybook/main.js +0 -21
- package/.storybook/manager-head.html +0 -175
- package/.storybook/manager.js +0 -34
- package/.storybook/preview-head.html +0 -212
- package/.storybook/preview.js +0 -120
- package/.storybook/storybook-sort.js +0 -54
- package/CHANGELOG.md +0 -20
- package/amplify.yml +0 -16
- package/babel.config.json +0 -14
- package/dist/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +0 -31
- package/dist/lang/en-us.d.ts +0 -6
- package/dist/lang/en-us.js +0 -6
- package/dist/package.json +0 -41
- package/jest.config.ts +0 -11
- package/jest.setup.ts +0 -5
- package/license +0 -7
- package/merge.js +0 -27
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/assets/atoms.svg +0 -5
- package/public/assets/automation.svg +0 -1
- package/public/assets/avatar-1.jpg +0 -0
- package/public/assets/avatar-2.jpg +0 -0
- package/public/assets/avatar-3.jpg +0 -0
- package/public/assets/flux/icon-dark.svg +0 -6
- package/public/assets/flux/icon-light.svg +0 -1
- package/public/assets/flux/icon-white.svg +0 -6
- package/public/assets/flux/icon.svg +0 -6
- package/public/assets/flux/logo-dark.svg +0 -22
- package/public/assets/flux/logo-light.svg +0 -1
- package/public/assets/flux/logo-white.svg +0 -22
- package/public/assets/flux/logo.svg +0 -22
- package/public/assets/iPhone6.jpg +0 -0
- package/public/assets/iPhone6Plus.jpg +0 -0
- package/public/assets/lp-logo.png +0 -0
- package/public/assets/lplogo.svg +0 -1
- package/public/assets/molecules.svg +0 -8
- package/public/assets/organisms.svg +0 -21
- package/public/assets/pages.svg +0 -4
- package/public/assets/particles.svg +0 -3
- package/public/assets/stream-dark.png +0 -0
- package/public/assets/stream-suite-logo.svg +0 -38
- package/public/assets/stream-white.png +0 -0
- package/public/assets/stream.png +0 -0
- package/public/assets/templates.svg +0 -3
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/public/site.webmanifest +0 -1
- package/readme.md +0 -132
- package/src/docs.tsx +0 -167
- package/src/lib/assets/Images.tsx +0 -47
- package/src/lib/assets/stream-suite-logo.svg +0 -38
- package/src/lib/components/atoms/Autocomplete/Autocomplete.test.tsx +0 -179
- package/src/lib/components/atoms/Autocomplete/Autocomplete.tsx +0 -14
- package/src/lib/components/atoms/Button/Button.test.tsx +0 -166
- package/src/lib/components/atoms/Button/Button.tsx +0 -16
- package/src/lib/components/atoms/Checkbox/Checkbox.test.tsx +0 -85
- package/src/lib/components/atoms/Checkbox/Checkbox.tsx +0 -10
- package/src/lib/components/atoms/IconButton/IconButton.test.tsx +0 -60
- package/src/lib/components/atoms/IconButton/IconButton.tsx +0 -9
- package/src/lib/components/atoms/Radio/Radio.test.tsx +0 -136
- package/src/lib/components/atoms/Radio/Radio.tsx +0 -10
- package/src/lib/components/atoms/Select/Select.test.tsx +0 -158
- package/src/lib/components/atoms/Select/Select.tsx +0 -12
- package/src/lib/components/atoms/Slider/Slider.test.tsx +0 -103
- package/src/lib/components/atoms/Slider/Slider.tsx +0 -10
- package/src/lib/components/atoms/Switch/Switch.test.tsx +0 -96
- package/src/lib/components/atoms/Switch/Switch.tsx +0 -10
- package/src/lib/components/atoms/TextField/TextField.test.tsx +0 -131
- package/src/lib/components/atoms/TextField/TextField.tsx +0 -31
- package/src/lib/components/atoms/ToggleButton/ToggleButton.test.tsx +0 -122
- package/src/lib/components/atoms/ToggleButton/ToggleButton.tsx +0 -10
- package/src/lib/components/datadisplay/Avatar/Avatar.test.tsx +0 -187
- package/src/lib/components/datadisplay/Avatar/Avatar.tsx +0 -35
- package/src/lib/components/datadisplay/Avatar/avatar-1.jpg +0 -0
- package/src/lib/components/datadisplay/Chip/Chip.test.tsx +0 -82
- package/src/lib/components/datadisplay/Chip/Chip.tsx +0 -11
- package/src/lib/components/datadisplay/List/List.test.tsx +0 -168
- package/src/lib/components/datadisplay/List/List.tsx +0 -8
- package/src/lib/components/datadisplay/Tooltip/Tooltip.test.tsx +0 -98
- package/src/lib/components/datadisplay/Tooltip/Tooltip.tsx +0 -9
- package/src/lib/components/feedback/Alert/Alert.test.tsx +0 -139
- package/src/lib/components/feedback/Alert/Alert.tsx +0 -10
- package/src/lib/components/landmarks/Header/Header.tsx +0 -140
- package/src/lib/components/landmarks/Header/HeaderActionButtons.tsx +0 -117
- package/src/lib/components/landmarks/Header/HeaderStyles.tsx +0 -62
- package/src/lib/components/navigation/Drawer/Drawer.test.tsx +0 -95
- package/src/lib/components/navigation/Drawer/Drawer.tsx +0 -21
- package/src/lib/components/navigation/MobileNavigation/MobileNavigation.tsx +0 -276
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatar.tsx +0 -334
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.tsx +0 -77
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawer.tsx +0 -197
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.tsx +0 -143
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.tsx +0 -192
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.tsx +0 -67
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.tsx +0 -192
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.tsx +0 -217
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationMotion.tsx +0 -119
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.tsx +0 -35
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearch.tsx +0 -114
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearchStyles.tsx +0 -47
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationStyles.tsx +0 -320
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.tsx +0 -59
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleX.tsx +0 -51
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigation.tsx +0 -468
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatar.tsx +0 -208
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.tsx +0 -75
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.tsx +0 -196
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.tsx +0 -94
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.tsx +0 -212
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.tsx +0 -240
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationMotion.tsx +0 -119
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationStyles.tsx +0 -302
- package/src/lib/components/pages/ErrorPage/ErrorPage.test.tsx +0 -78
- package/src/lib/components/pages/ErrorPage/ErrorPage.tsx +0 -50
- package/src/lib/components/pages/ErrorPage/ErrorPageStyles.tsx +0 -30
- package/src/lib/components/pages/SideInSide/SideInSide.tsx +0 -100
- package/src/lib/components/pages/SideInSide/SideInSideStyles.tsx +0 -62
- package/src/lib/components/stream/AppSwitcher/AppSwitcher.tsx +0 -381
- package/src/lib/components/stream/AppSwitcher/AppSwitcherItem.tsx +0 -84
- package/src/lib/components/stream/AppSwitcher/AppSwitcherStyles.tsx +0 -325
- package/src/lib/components/stream/AppSwitcher/constants.tsx +0 -28
- package/src/lib/index.tsx +0 -148
- package/src/lib/lang/en-us.js +0 -6
- package/src/lib/types/components/navigation/VerticalNavigation.ts +0 -52
- package/src/lib/types/components/navigation/VerticalNavigationAvatar.ts +0 -26
- package/src/lib/types/components/stream/AppSwitcher.ts +0 -10
- package/src/lib/types/index.ts +0 -9
- package/src/lib/utils/constants.tsx +0 -11
- package/src/lib/utils/helpers.tsx +0 -77
- package/src/lib/utils/hooks.tsx +0 -33
- package/src/lib/utils/index.tsx +0 -4
- package/src/lib/utils/theme.tsx +0 -79
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/stories/Components/DataDisplay/Avatar/Accessibility.stories.mdx +0 -34
- package/src/stories/Components/DataDisplay/Avatar/AllCombinations.tsx +0 -56
- package/src/stories/Components/DataDisplay/Avatar/Avatar.stories.tsx +0 -19
- package/src/stories/Components/DataDisplay/Avatar/Examples.stories.tsx +0 -278
- package/src/stories/Components/DataDisplay/Avatar/Overview.stories.mdx +0 -47
- package/src/stories/Components/DataDisplay/Chip/Accessibility.stories.mdx +0 -29
- package/src/stories/Components/DataDisplay/Chip/AllCombinations.tsx +0 -58
- package/src/stories/Components/DataDisplay/Chip/Chip.stories.tsx +0 -21
- package/src/stories/Components/DataDisplay/Chip/Examples.stories.tsx +0 -126
- package/src/stories/Components/DataDisplay/Chip/Overview.stories.mdx +0 -57
- package/src/stories/Components/DataDisplay/List/Accessibility.stories.mdx +0 -54
- package/src/stories/Components/DataDisplay/List/AllCombinations.tsx +0 -396
- package/src/stories/Components/DataDisplay/List/Examples.stories.tsx +0 -501
- package/src/stories/Components/DataDisplay/List/List.stories.tsx +0 -35
- package/src/stories/Components/DataDisplay/List/Overview.stories.mdx +0 -69
- package/src/stories/Components/DataDisplay/Table/Overview.stories.mdx +0 -70
- package/src/stories/Components/DataDisplay/Tooltip/Accessibility.stories.mdx +0 -39
- package/src/stories/Components/DataDisplay/Tooltip/AllCombinations.tsx +0 -134
- package/src/stories/Components/DataDisplay/Tooltip/Examples.stories.tsx +0 -237
- package/src/stories/Components/DataDisplay/Tooltip/Overview.stories.mdx +0 -58
- package/src/stories/Components/DataDisplay/Tooltip/Tooltip.stories.tsx +0 -22
- package/src/stories/Components/Feedback/Alert/Accessibility.stories.mdx +0 -25
- package/src/stories/Components/Feedback/Alert/Alert.stories.tsx +0 -22
- package/src/stories/Components/Feedback/Alert/AllCombinations.tsx +0 -37
- package/src/stories/Components/Feedback/Alert/Examples.stories.tsx +0 -137
- package/src/stories/Components/Feedback/Alert/Overview.stories.mdx +0 -62
- package/src/stories/Components/Inputs/Autocomplete/Accessibility.stories.mdx +0 -31
- package/src/stories/Components/Inputs/Autocomplete/AllCombinations.tsx +0 -182
- package/src/stories/Components/Inputs/Autocomplete/Autocomplete.stories.tsx +0 -31
- package/src/stories/Components/Inputs/Autocomplete/Examples.stories.tsx +0 -233
- package/src/stories/Components/Inputs/Autocomplete/Overview.stories.mdx +0 -52
- package/src/stories/Components/Inputs/Button/Accessibility.stories.mdx +0 -52
- package/src/stories/Components/Inputs/Button/AllCombinations.tsx +0 -53
- package/src/stories/Components/Inputs/Button/Button.stories.tsx +0 -23
- package/src/stories/Components/Inputs/Button/Examples.stories.tsx +0 -190
- package/src/stories/Components/Inputs/Button/Overview.stories.mdx +0 -52
- package/src/stories/Components/Inputs/Checkbox/Accessibility.stories.mdx +0 -38
- package/src/stories/Components/Inputs/Checkbox/AllCombinations.tsx +0 -55
- package/src/stories/Components/Inputs/Checkbox/Checkbox.stories.tsx +0 -22
- package/src/stories/Components/Inputs/Checkbox/Examples.stories.tsx +0 -363
- package/src/stories/Components/Inputs/Checkbox/Overview.stories.mdx +0 -63
- package/src/stories/Components/Inputs/IconButton/Examples.stories.tsx +0 -24
- package/src/stories/Components/Inputs/IconButton/IconButton.stories.tsx +0 -26
- package/src/stories/Components/Inputs/Radio/Accessibility.stories.mdx +0 -61
- package/src/stories/Components/Inputs/Radio/AllCombinations.tsx +0 -75
- package/src/stories/Components/Inputs/Radio/Examples.stories.tsx +0 -333
- package/src/stories/Components/Inputs/Radio/Overview.stories.mdx +0 -74
- package/src/stories/Components/Inputs/Radio/Radio.stories.tsx +0 -22
- package/src/stories/Components/Inputs/Select/Accessibility.stories.mdx +0 -51
- package/src/stories/Components/Inputs/Select/AllCombinations.tsx +0 -63
- package/src/stories/Components/Inputs/Select/Examples.stories.tsx +0 -803
- package/src/stories/Components/Inputs/Select/Overview.stories.mdx +0 -73
- package/src/stories/Components/Inputs/Select/Select.stories.tsx +0 -22
- package/src/stories/Components/Inputs/Slider/Accessibility.stories.mdx +0 -43
- package/src/stories/Components/Inputs/Slider/AllCombinations.tsx +0 -30
- package/src/stories/Components/Inputs/Slider/Examples.stories.tsx +0 -146
- package/src/stories/Components/Inputs/Slider/Overview.stories.mdx +0 -59
- package/src/stories/Components/Inputs/Slider/Slider.stories.tsx +0 -27
- package/src/stories/Components/Inputs/Switch/Accessibility.stories.mdx +0 -34
- package/src/stories/Components/Inputs/Switch/AllCombinations.tsx +0 -45
- package/src/stories/Components/Inputs/Switch/Examples.stories.tsx +0 -213
- package/src/stories/Components/Inputs/Switch/Overview.stories.mdx +0 -62
- package/src/stories/Components/Inputs/Switch/Switch.stories.tsx +0 -22
- package/src/stories/Components/Inputs/TextField/Accessibility.stories.mdx +0 -29
- package/src/stories/Components/Inputs/TextField/AllCombinations.tsx +0 -57
- package/src/stories/Components/Inputs/TextField/Examples.stories.tsx +0 -127
- package/src/stories/Components/Inputs/TextField/Overview.stories.mdx +0 -60
- package/src/stories/Components/Inputs/TextField/TextField.stories.tsx +0 -261
- package/src/stories/Components/Inputs/ToggleButton/Accessibility.stories.mdx +0 -32
- package/src/stories/Components/Inputs/ToggleButton/AllCombinations.tsx +0 -113
- package/src/stories/Components/Inputs/ToggleButton/Examples.stories.tsx +0 -339
- package/src/stories/Components/Inputs/ToggleButton/Overview.stories.mdx +0 -55
- package/src/stories/Components/Inputs/ToggleButton/ToggleButton.stories.tsx +0 -19
- package/src/stories/Components/Landmarks/Header/Examples.stories.tsx +0 -197
- package/src/stories/Components/Landmarks/Header/Header.stories.tsx +0 -34
- package/src/stories/Components/Landmarks/Header/Overview.stories.mdx +0 -44
- package/src/stories/Components/Navigation/Drawer/Accessibility.stories.mdx +0 -13
- package/src/stories/Components/Navigation/Drawer/Drawer.stories.tsx +0 -80
- package/src/stories/Components/Navigation/Drawer/Examples.stories.tsx +0 -440
- package/src/stories/Components/Navigation/Drawer/Overview.stories.mdx +0 -43
- package/src/stories/Components/Navigation/MobileNavigation/Accessibility.stories.mdx +0 -14
- package/src/stories/Components/Navigation/MobileNavigation/Examples.stories.tsx +0 -384
- package/src/stories/Components/Navigation/MobileNavigation/MobileNavigation.stories.tsx +0 -24
- package/src/stories/Components/Navigation/MobileNavigation/Overview.stories.mdx +0 -47
- package/src/stories/Components/Navigation/VerticalNavigation/Accessibility.stories.mdx +0 -14
- package/src/stories/Components/Navigation/VerticalNavigation/Examples.stories.tsx +0 -307
- package/src/stories/Components/Navigation/VerticalNavigation/Overview.stories.mdx +0 -47
- package/src/stories/Components/Navigation/VerticalNavigation/VerticalNavigation.stories.tsx +0 -24
- package/src/stories/ContactUs.stories.mdx +0 -21
- package/src/stories/Experimental/Test.stories.mdx +0 -46
- package/src/stories/GettingStarted/Designer.stories.mdx +0 -86
- package/src/stories/GettingStarted/Developer.stories.mdx +0 -134
- package/src/stories/Guidelines/Accessibility/AssistiveTechnology.stories.mdx +0 -70
- package/src/stories/Guidelines/Accessibility/ColorAndContrast.stories.mdx +0 -109
- package/src/stories/Guidelines/Accessibility/Hierarchy.stories.mdx +0 -119
- package/src/stories/Guidelines/Accessibility/Imagery.stories.mdx +0 -136
- package/src/stories/Guidelines/Accessibility/Overview.stories.mdx +0 -44
- package/src/stories/Guidelines/Accessibility/Principles.stories.mdx +0 -156
- package/src/stories/Guidelines/Accessibility/SoundAndMotion.stories.mdx +0 -59
- package/src/stories/Guidelines/Accessibility/Typography.stories.mdx +0 -69
- package/src/stories/Guidelines/Accessibility/Writing.stories.mdx +0 -188
- package/src/stories/Guidelines/Styleguide/ColorSwatch.tsx +0 -53
- package/src/stories/Guidelines/Styleguide/Colors.stories.mdx +0 -118
- package/src/stories/Guidelines/Styleguide/Typography.stories.mdx +0 -84
- package/src/stories/Introduction.stories.mdx +0 -65
- package/src/stories/Pages/ErrorPage.stories.tsx +0 -30
- package/src/stories/Pages/SideInSide.stories.tsx +0 -195
- package/src/stories/Roadmap.stories.mdx +0 -19
- package/src/stories/Templates/Login.stories.mdx +0 -46
- package/src/stories/assets/Atomic_Design_Icons-Dark.svg +0 -24
- package/src/stories/assets/Atomic_Design_Icons-Light.svg +0 -25
- package/src/stories/assets/accessibility-1.png +0 -0
- package/src/stories/assets/accessibility-2.png +0 -0
- package/src/stories/assets/accessibility-3.png +0 -0
- package/src/stories/assets/accessibility-banner.png +0 -0
- package/src/stories/assets/atoms.svg +0 -6
- package/src/stories/assets/design_system_2022-02-11_12.22pm.png +0 -0
- package/src/stories/assets/figma-tokens.png +0 -0
- package/src/stories/assets/hierarchy-1.jpg +0 -0
- package/src/stories/assets/hierarchy-2.jpg +0 -0
- package/src/stories/assets/hierarchy-3.jpg +0 -0
- package/src/stories/assets/icon-contrast-1.jpg +0 -0
- package/src/stories/assets/icon-contrast-2.jpg +0 -0
- package/src/stories/assets/imagery-1.png +0 -0
- package/src/stories/assets/imagery-2.png +0 -0
- package/src/stories/assets/imagery-3.png +0 -0
- package/src/stories/assets/imagery-4.jpg +0 -0
- package/src/stories/assets/molecules.svg +0 -9
- package/src/stories/assets/organisms.svg +0 -22
- package/src/stories/assets/pages.svg +0 -5
- package/src/stories/assets/particles.svg +0 -4
- package/src/stories/assets/templates.svg +0 -4
- package/src/stories/assets/testData.tsx +0 -102
- package/src/stories/assets/text-contrast-1.jpg +0 -0
- package/src/stories/assets/text-contrast-2.jpg +0 -0
- package/src/stories/assets/typography-1.png +0 -0
- package/src/stories/assets/visual-clues-1.png +0 -0
- package/src/stories/assets/visual-clues-2.png +0 -0
- package/src/stories/assets/writing-1.jpg +0 -0
- package/src/stories/assets/writing-2.png +0 -0
- package/src/stories/assets/writing-3.png +0 -0
- package/src/stories/assets/writing-4.png +0 -0
- package/src/stories/utils/CustomIcons.tsx +0 -44
- package/tsconfig.eslint.json +0 -16
- package/tsconfig.json +0 -50
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
2
|
-
import * as React from 'react'
|
|
3
|
-
import { DOCS } from '../../../../docs'
|
|
4
|
-
import List from '../../../../lib/components/datadisplay/List/List'
|
|
5
|
-
import Checkbox from '../../../../lib/components/atoms/Checkbox/Checkbox'
|
|
6
|
-
import IconButton from '../../../../lib/components/atoms/IconButton/IconButton'
|
|
7
|
-
import {
|
|
8
|
-
ListItem, ListItemButton, ListItemIcon,
|
|
9
|
-
ListItemText, ListSubheader, ListItemAvatar
|
|
10
|
-
} from '../../../../lib/'
|
|
11
|
-
import {
|
|
12
|
-
Stack, Box, Typography,
|
|
13
|
-
Avatar, Divider, Collapse
|
|
14
|
-
} from '@mui/material'
|
|
15
|
-
import InboxIcon from '@mui/icons-material/Inbox'
|
|
16
|
-
import DraftsIcon from '@mui/icons-material/Drafts'
|
|
17
|
-
import ImageIcon from '@mui/icons-material/Image'
|
|
18
|
-
import WorkIcon from '@mui/icons-material/Work'
|
|
19
|
-
import BeachAccessIcon from '@mui/icons-material/BeachAccess'
|
|
20
|
-
import SendIcon from '@mui/icons-material/Send'
|
|
21
|
-
import ExpandLess from '@mui/icons-material/ExpandLess'
|
|
22
|
-
import ExpandMore from '@mui/icons-material/ExpandMore'
|
|
23
|
-
import StarBorder from '@mui/icons-material/StarBorder'
|
|
24
|
-
import CommentIcon from '@mui/icons-material/Comment'
|
|
25
|
-
import AllCombinations from './AllCombinations'
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
title: 'Components/Data Display/List/Examples',
|
|
29
|
-
component: List
|
|
30
|
-
} as ComponentMeta<typeof List>
|
|
31
|
-
|
|
32
|
-
export const Default: ComponentStory<typeof List> = (args) => {
|
|
33
|
-
return (
|
|
34
|
-
<Box sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
35
|
-
<nav aria-label="Demo List">
|
|
36
|
-
<List>
|
|
37
|
-
<ListItem disablePadding>
|
|
38
|
-
<ListItemButton>
|
|
39
|
-
<ListItemText primary="One" />
|
|
40
|
-
</ListItemButton>
|
|
41
|
-
</ListItem>
|
|
42
|
-
<ListItem disablePadding>
|
|
43
|
-
<ListItemButton>
|
|
44
|
-
<ListItemText primary="Two" />
|
|
45
|
-
</ListItemButton>
|
|
46
|
-
</ListItem>
|
|
47
|
-
<ListItem disablePadding>
|
|
48
|
-
<ListItemButton>
|
|
49
|
-
<ListItemText primary="Three" />
|
|
50
|
-
</ListItemButton>
|
|
51
|
-
</ListItem>
|
|
52
|
-
<ListItem disablePadding>
|
|
53
|
-
<ListItemButton>
|
|
54
|
-
<ListItemText primary="Four" />
|
|
55
|
-
</ListItemButton>
|
|
56
|
-
</ListItem>
|
|
57
|
-
<ListItem disablePadding>
|
|
58
|
-
<ListItemButton>
|
|
59
|
-
<ListItemText primary="Five" />
|
|
60
|
-
</ListItemButton>
|
|
61
|
-
</ListItem>
|
|
62
|
-
</List>
|
|
63
|
-
</nav>
|
|
64
|
-
</Box>
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
Default.parameters = {
|
|
68
|
-
docs: {
|
|
69
|
-
description: {
|
|
70
|
-
component: DOCS.List.Default
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
backgrounds: { default: 'light' }
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const Basic: ComponentStory<typeof AllCombinations> = (args) => {
|
|
77
|
-
return (
|
|
78
|
-
<Box sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
79
|
-
<nav aria-label="main mailbox folders">
|
|
80
|
-
<List>
|
|
81
|
-
<ListItem disablePadding>
|
|
82
|
-
<ListItemButton>
|
|
83
|
-
<ListItemIcon>
|
|
84
|
-
<InboxIcon />
|
|
85
|
-
</ListItemIcon>
|
|
86
|
-
<ListItemText primary="Inbox" />
|
|
87
|
-
</ListItemButton>
|
|
88
|
-
</ListItem>
|
|
89
|
-
<ListItem disablePadding>
|
|
90
|
-
<ListItemButton>
|
|
91
|
-
<ListItemIcon>
|
|
92
|
-
<DraftsIcon />
|
|
93
|
-
</ListItemIcon>
|
|
94
|
-
<ListItemText primary="Drafts" />
|
|
95
|
-
</ListItemButton>
|
|
96
|
-
</ListItem>
|
|
97
|
-
</List>
|
|
98
|
-
</nav>
|
|
99
|
-
<Divider />
|
|
100
|
-
<nav aria-label="secondary mailbox folders">
|
|
101
|
-
<List>
|
|
102
|
-
<ListItem disablePadding>
|
|
103
|
-
<ListItemButton>
|
|
104
|
-
<ListItemText primary="Trash" />
|
|
105
|
-
</ListItemButton>
|
|
106
|
-
</ListItem>
|
|
107
|
-
<ListItem disablePadding>
|
|
108
|
-
<ListItemButton component="a" href="#simple-list">
|
|
109
|
-
<ListItemText primary="Spam" />
|
|
110
|
-
</ListItemButton>
|
|
111
|
-
</ListItem>
|
|
112
|
-
</List>
|
|
113
|
-
</nav>
|
|
114
|
-
</Box>
|
|
115
|
-
)
|
|
116
|
-
}
|
|
117
|
-
Basic.parameters = {
|
|
118
|
-
docs: {
|
|
119
|
-
description: {
|
|
120
|
-
story: DOCS.List.Basic
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
backgrounds: { default: 'light' }
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export const Nested: ComponentStory<typeof AllCombinations> = (args) => {
|
|
127
|
-
const [open, setOpen] = React.useState(true)
|
|
128
|
-
|
|
129
|
-
const handleClick = (): void => {
|
|
130
|
-
setOpen(!open)
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return (
|
|
134
|
-
<List
|
|
135
|
-
sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}
|
|
136
|
-
component="nav"
|
|
137
|
-
aria-labelledby="nested-list-subheader"
|
|
138
|
-
subheader={
|
|
139
|
-
<ListSubheader component="div" id="nested-list-subheader">
|
|
140
|
-
Nested List Items
|
|
141
|
-
</ListSubheader>
|
|
142
|
-
}
|
|
143
|
-
>
|
|
144
|
-
<ListItemButton>
|
|
145
|
-
<ListItemIcon>
|
|
146
|
-
<SendIcon />
|
|
147
|
-
</ListItemIcon>
|
|
148
|
-
<ListItemText primary="Sent mail" />
|
|
149
|
-
</ListItemButton>
|
|
150
|
-
<ListItemButton>
|
|
151
|
-
<ListItemIcon>
|
|
152
|
-
<DraftsIcon />
|
|
153
|
-
</ListItemIcon>
|
|
154
|
-
<ListItemText primary="Drafts" />
|
|
155
|
-
</ListItemButton>
|
|
156
|
-
<ListItemButton onClick={handleClick}>
|
|
157
|
-
<ListItemIcon>
|
|
158
|
-
<InboxIcon />
|
|
159
|
-
</ListItemIcon>
|
|
160
|
-
<ListItemText primary="Inbox" />
|
|
161
|
-
{open ? <ExpandLess /> : <ExpandMore />}
|
|
162
|
-
</ListItemButton>
|
|
163
|
-
<Collapse in={open} timeout="auto" unmountOnExit>
|
|
164
|
-
<List component="div" disablePadding>
|
|
165
|
-
<ListItemButton sx={{ pl: 4 }}>
|
|
166
|
-
<ListItemIcon>
|
|
167
|
-
<StarBorder />
|
|
168
|
-
</ListItemIcon>
|
|
169
|
-
<ListItemText primary="Starred" />
|
|
170
|
-
</ListItemButton>
|
|
171
|
-
</List>
|
|
172
|
-
</Collapse>
|
|
173
|
-
</List>
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
Nested.parameters = {
|
|
177
|
-
docs: {
|
|
178
|
-
description: {
|
|
179
|
-
story: DOCS.List.Nested
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
backgrounds: { default: 'light' }
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export const Folder: ComponentStory<typeof AllCombinations> = (args) => {
|
|
186
|
-
return (
|
|
187
|
-
<List sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
188
|
-
<ListItem>
|
|
189
|
-
<ListItemAvatar>
|
|
190
|
-
<Avatar>
|
|
191
|
-
<ImageIcon />
|
|
192
|
-
</Avatar>
|
|
193
|
-
</ListItemAvatar>
|
|
194
|
-
<ListItemText primary="Photos" secondary="Jan 9, 2022" />
|
|
195
|
-
</ListItem>
|
|
196
|
-
<ListItem>
|
|
197
|
-
<ListItemAvatar>
|
|
198
|
-
<Avatar>
|
|
199
|
-
<WorkIcon />
|
|
200
|
-
</Avatar>
|
|
201
|
-
</ListItemAvatar>
|
|
202
|
-
<ListItemText primary="Work" secondary="Jan 7, 2022" />
|
|
203
|
-
</ListItem>
|
|
204
|
-
<ListItem>
|
|
205
|
-
<ListItemAvatar>
|
|
206
|
-
<Avatar>
|
|
207
|
-
<BeachAccessIcon />
|
|
208
|
-
</Avatar>
|
|
209
|
-
</ListItemAvatar>
|
|
210
|
-
<ListItemText primary="Vacation" secondary="July 20, 2021" />
|
|
211
|
-
</ListItem>
|
|
212
|
-
</List>
|
|
213
|
-
)
|
|
214
|
-
}
|
|
215
|
-
Folder.parameters = {
|
|
216
|
-
docs: {
|
|
217
|
-
description: {
|
|
218
|
-
story: DOCS.List.Folder
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
backgrounds: { default: 'light' }
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export const SelectedListItem: ComponentStory<typeof AllCombinations> = (args) => {
|
|
225
|
-
const [selectedIndex, setSelectedIndex] = React.useState(1)
|
|
226
|
-
|
|
227
|
-
const handleListItemClick = (
|
|
228
|
-
event: React.MouseEvent<HTMLDivElement, MouseEvent>,
|
|
229
|
-
index: number
|
|
230
|
-
): void => {
|
|
231
|
-
setSelectedIndex(index)
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
return (
|
|
235
|
-
<Box sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
236
|
-
<List component="nav" aria-label="main mailbox folders">
|
|
237
|
-
<ListItemButton
|
|
238
|
-
selected={selectedIndex === 0}
|
|
239
|
-
onClick={(event) => handleListItemClick(event, 0)}
|
|
240
|
-
>
|
|
241
|
-
<ListItemIcon>
|
|
242
|
-
<InboxIcon />
|
|
243
|
-
</ListItemIcon>
|
|
244
|
-
<ListItemText primary="Inbox" />
|
|
245
|
-
</ListItemButton>
|
|
246
|
-
<ListItemButton
|
|
247
|
-
selected={selectedIndex === 1}
|
|
248
|
-
onClick={(event) => handleListItemClick(event, 1)}
|
|
249
|
-
>
|
|
250
|
-
<ListItemIcon>
|
|
251
|
-
<DraftsIcon />
|
|
252
|
-
</ListItemIcon>
|
|
253
|
-
<ListItemText primary="Drafts" />
|
|
254
|
-
</ListItemButton>
|
|
255
|
-
</List>
|
|
256
|
-
<Divider />
|
|
257
|
-
<List component="nav" aria-label="secondary mailbox folder">
|
|
258
|
-
<ListItemButton
|
|
259
|
-
selected={selectedIndex === 2}
|
|
260
|
-
onClick={(event) => handleListItemClick(event, 2)}
|
|
261
|
-
>
|
|
262
|
-
<ListItemText primary="Trash" />
|
|
263
|
-
</ListItemButton>
|
|
264
|
-
<ListItemButton
|
|
265
|
-
selected={selectedIndex === 3}
|
|
266
|
-
onClick={(event) => handleListItemClick(event, 3)}
|
|
267
|
-
>
|
|
268
|
-
<ListItemText primary="Spam" />
|
|
269
|
-
</ListItemButton>
|
|
270
|
-
</List>
|
|
271
|
-
</Box>
|
|
272
|
-
)
|
|
273
|
-
}
|
|
274
|
-
SelectedListItem.parameters = {
|
|
275
|
-
docs: {
|
|
276
|
-
description: {
|
|
277
|
-
story: DOCS.List.SelectedListItem
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
backgrounds: { default: 'light' }
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export const AlignListItems: ComponentStory<typeof AllCombinations> = (args) => {
|
|
284
|
-
return (
|
|
285
|
-
<List sx={{ width: '100%', maxWidth: 360, bgcolor: 'background.paper' }}>
|
|
286
|
-
<ListItem alignItems="flex-start">
|
|
287
|
-
<ListItemAvatar>
|
|
288
|
-
<Avatar alt="Remy Sharp" />
|
|
289
|
-
</ListItemAvatar>
|
|
290
|
-
<ListItemText
|
|
291
|
-
primary="Brunch this weekend?"
|
|
292
|
-
secondary={
|
|
293
|
-
<React.Fragment>
|
|
294
|
-
<Typography
|
|
295
|
-
sx={{ display: 'inline' }}
|
|
296
|
-
component="span"
|
|
297
|
-
variant="body2"
|
|
298
|
-
color="text.primary"
|
|
299
|
-
>
|
|
300
|
-
Ali Connors
|
|
301
|
-
</Typography>
|
|
302
|
-
{" — I'll be in your neighborhood doing errands this…"}
|
|
303
|
-
</React.Fragment>
|
|
304
|
-
}
|
|
305
|
-
/>
|
|
306
|
-
</ListItem>
|
|
307
|
-
<Divider variant="inset" component="li" />
|
|
308
|
-
<ListItem alignItems="flex-start">
|
|
309
|
-
<ListItemAvatar>
|
|
310
|
-
<Avatar alt="Travis Howard" />
|
|
311
|
-
</ListItemAvatar>
|
|
312
|
-
<ListItemText
|
|
313
|
-
primary="Summer BBQ"
|
|
314
|
-
secondary={
|
|
315
|
-
<React.Fragment>
|
|
316
|
-
<Typography
|
|
317
|
-
sx={{ display: 'inline' }}
|
|
318
|
-
component="span"
|
|
319
|
-
variant="body2"
|
|
320
|
-
color="text.primary"
|
|
321
|
-
>
|
|
322
|
-
to Scott, Alex, Jennifer
|
|
323
|
-
</Typography>
|
|
324
|
-
{" — Wish I could come, but I'm out of town this…"}
|
|
325
|
-
</React.Fragment>
|
|
326
|
-
}
|
|
327
|
-
/>
|
|
328
|
-
</ListItem>
|
|
329
|
-
<Divider variant="inset" component="li" />
|
|
330
|
-
<ListItem alignItems="flex-start">
|
|
331
|
-
<ListItemAvatar>
|
|
332
|
-
<Avatar alt="Cindy Baker" />
|
|
333
|
-
</ListItemAvatar>
|
|
334
|
-
<ListItemText
|
|
335
|
-
primary="Oui Oui"
|
|
336
|
-
secondary={
|
|
337
|
-
<React.Fragment>
|
|
338
|
-
<Typography
|
|
339
|
-
sx={{ display: 'inline' }}
|
|
340
|
-
component="span"
|
|
341
|
-
variant="body2"
|
|
342
|
-
color="text.primary"
|
|
343
|
-
>
|
|
344
|
-
Sandra Adams
|
|
345
|
-
</Typography>
|
|
346
|
-
{' — Do you have Paris recommendations? Have you ever…'}
|
|
347
|
-
</React.Fragment>
|
|
348
|
-
}
|
|
349
|
-
/>
|
|
350
|
-
</ListItem>
|
|
351
|
-
</List>
|
|
352
|
-
)
|
|
353
|
-
}
|
|
354
|
-
AlignListItems.parameters = {
|
|
355
|
-
docs: {
|
|
356
|
-
description: {
|
|
357
|
-
story: DOCS.List.AlignListItems
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
backgrounds: { default: 'light' }
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export const ListControls: ComponentStory<typeof AllCombinations> = (args) => {
|
|
364
|
-
const [checked, setChecked] = React.useState([0])
|
|
365
|
-
|
|
366
|
-
const handleToggle = (value: number) => () => {
|
|
367
|
-
const currentIndex = checked.indexOf(value)
|
|
368
|
-
const newChecked = [...checked]
|
|
369
|
-
|
|
370
|
-
if (currentIndex === -1) {
|
|
371
|
-
newChecked.push(value)
|
|
372
|
-
} else {
|
|
373
|
-
newChecked.splice(currentIndex, 1)
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
setChecked(newChecked)
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
return (
|
|
380
|
-
<Stack spacing={2}>
|
|
381
|
-
|
|
382
|
-
<List sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
383
|
-
{[0, 1, 2, 3].map((value) => {
|
|
384
|
-
const labelId = `checkbox-list-label-${value}`
|
|
385
|
-
|
|
386
|
-
return (
|
|
387
|
-
<ListItem
|
|
388
|
-
key={value}
|
|
389
|
-
secondaryAction={
|
|
390
|
-
<IconButton edge="end" aria-label="comments">
|
|
391
|
-
<CommentIcon />
|
|
392
|
-
</IconButton>
|
|
393
|
-
}
|
|
394
|
-
disablePadding
|
|
395
|
-
>
|
|
396
|
-
<ListItemButton role={undefined} onClick={handleToggle(value)} dense>
|
|
397
|
-
<ListItemIcon>
|
|
398
|
-
<Checkbox
|
|
399
|
-
edge="start"
|
|
400
|
-
checked={checked.includes(value)}
|
|
401
|
-
tabIndex={-1}
|
|
402
|
-
disableRipple
|
|
403
|
-
inputProps={{ 'aria-labelledby': labelId }}
|
|
404
|
-
/>
|
|
405
|
-
</ListItemIcon>
|
|
406
|
-
<ListItemText id={labelId} primary={`Line item ${value + 1}`} />
|
|
407
|
-
</ListItemButton>
|
|
408
|
-
</ListItem>
|
|
409
|
-
)
|
|
410
|
-
})}
|
|
411
|
-
</List>
|
|
412
|
-
|
|
413
|
-
<List dense sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
414
|
-
{[0, 1, 2, 3].map((value) => {
|
|
415
|
-
const labelId = `checkbox-list-secondary-label-${value}`
|
|
416
|
-
return (
|
|
417
|
-
<ListItem
|
|
418
|
-
key={value}
|
|
419
|
-
secondaryAction={
|
|
420
|
-
<Checkbox
|
|
421
|
-
edge="end"
|
|
422
|
-
onChange={handleToggle(value)}
|
|
423
|
-
checked={checked.includes(value)}
|
|
424
|
-
inputProps={{ 'aria-labelledby': labelId }}
|
|
425
|
-
/>
|
|
426
|
-
}
|
|
427
|
-
disablePadding
|
|
428
|
-
>
|
|
429
|
-
<ListItemButton>
|
|
430
|
-
<ListItemAvatar>
|
|
431
|
-
<Avatar
|
|
432
|
-
alt={`Avatar n°${value + 1}`}
|
|
433
|
-
src={`/static/images/avatar/${value + 1}.jpg`}
|
|
434
|
-
/>
|
|
435
|
-
</ListItemAvatar>
|
|
436
|
-
<ListItemText id={labelId} primary={`Line item ${value + 1}`} />
|
|
437
|
-
</ListItemButton>
|
|
438
|
-
</ListItem>
|
|
439
|
-
)
|
|
440
|
-
})}
|
|
441
|
-
</List>
|
|
442
|
-
|
|
443
|
-
</Stack>
|
|
444
|
-
)
|
|
445
|
-
}
|
|
446
|
-
ListControls.parameters = {
|
|
447
|
-
docs: {
|
|
448
|
-
description: {
|
|
449
|
-
story: DOCS.List.ListControls
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
backgrounds: { default: 'light' }
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export const StickySubheader: ComponentStory<typeof AllCombinations> = (args) => (
|
|
456
|
-
<List
|
|
457
|
-
sx={{
|
|
458
|
-
width: '100%',
|
|
459
|
-
minWidth: 360,
|
|
460
|
-
bgcolor: 'background.paper',
|
|
461
|
-
position: 'relative',
|
|
462
|
-
overflow: 'auto',
|
|
463
|
-
maxHeight: 300,
|
|
464
|
-
'& ul': { padding: 0 }
|
|
465
|
-
}}
|
|
466
|
-
subheader={<li />}
|
|
467
|
-
>
|
|
468
|
-
{[0, 1, 2, 3, 4].map((sectionId) => (
|
|
469
|
-
<li key={`section-${sectionId}`}>
|
|
470
|
-
<ul>
|
|
471
|
-
<ListSubheader>{`I'm sticky ${sectionId}`}</ListSubheader>
|
|
472
|
-
{[0, 1, 2].map((item) => (
|
|
473
|
-
<ListItem key={`item-${sectionId}-${item}`}>
|
|
474
|
-
<ListItemText primary={`Item ${item}`} />
|
|
475
|
-
</ListItem>
|
|
476
|
-
))}
|
|
477
|
-
</ul>
|
|
478
|
-
</li>
|
|
479
|
-
))}
|
|
480
|
-
</List>
|
|
481
|
-
)
|
|
482
|
-
StickySubheader.parameters = {
|
|
483
|
-
docs: {
|
|
484
|
-
description: {
|
|
485
|
-
story: DOCS.List.StickySubheader
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
backgrounds: { default: 'light' }
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
export const All: ComponentStory<typeof AllCombinations> = (args) => (
|
|
492
|
-
<AllCombinations />
|
|
493
|
-
)
|
|
494
|
-
All.parameters = {
|
|
495
|
-
docs: {
|
|
496
|
-
description: {
|
|
497
|
-
story: DOCS.List.All
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
backgrounds: { default: 'light' }
|
|
501
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
2
|
-
import * as React from 'react'
|
|
3
|
-
import List from '../../../../lib/components/datadisplay/List/List'
|
|
4
|
-
import { ListItem, ListItemText } from '../../../../lib/'
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/Data Display/List/Properties',
|
|
8
|
-
component: List,
|
|
9
|
-
parameters: {
|
|
10
|
-
controls: {
|
|
11
|
-
sort: 'requiredFirst'
|
|
12
|
-
},
|
|
13
|
-
backgrounds: { default: 'light' }
|
|
14
|
-
}
|
|
15
|
-
} as ComponentMeta<typeof List>
|
|
16
|
-
|
|
17
|
-
// 👇 We create a “template” of how args map to rendering
|
|
18
|
-
const Template: ComponentStory<typeof List> = (args) => {
|
|
19
|
-
return (
|
|
20
|
-
<List {...args} sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
21
|
-
<ListItem>
|
|
22
|
-
<ListItemText primary="One" />
|
|
23
|
-
</ListItem>
|
|
24
|
-
<ListItem>
|
|
25
|
-
<ListItemText primary="Two" />
|
|
26
|
-
</ListItem>
|
|
27
|
-
<ListItem>
|
|
28
|
-
<ListItemText primary="Three" />
|
|
29
|
-
</ListItem>
|
|
30
|
-
</List>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const Properties = Template.bind({})
|
|
35
|
-
Properties.args = {}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import List from '../../../../lib/components/datadisplay/List/List';
|
|
3
|
-
import Chip from '../../../../lib/components/datadisplay/Chip/Chip';
|
|
4
|
-
import {
|
|
5
|
-
ListItem, ListItemButton, ListItemIcon,
|
|
6
|
-
ListItemText, ListSubheader, ListItemAvatar } from '../../../../lib/';
|
|
7
|
-
import { MUIIcon, MaterialDesignIcon, W3CIcon, FigmaIcon, GithubIcon } from '../../../utils/CustomIcons';
|
|
8
|
-
import Stack from '@mui/material/Stack';
|
|
9
|
-
import DeleteIcon from '@mui/icons-material/Delete';
|
|
10
|
-
import IconButton from '@mui/material/IconButton';
|
|
11
|
-
|
|
12
|
-
<Meta title="Components/Data Display/List/Overview" component={List} />
|
|
13
|
-
|
|
14
|
-
[](#list-overview)List Overview <span class="sbdocs-edit-link"><Chip clickable component="a" href="https://github.com/ht2-labs/design-system/tree/main/src/stories/Components/DataDisplay/List/Overview.stories.mdx" size="small" label="Edit" variant="outlined" /></span>
|
|
15
|
-
=================================================================================
|
|
16
|
-
|
|
17
|
-
### [](#what-does-it-do)What does it do?
|
|
18
|
-
|
|
19
|
-
Lists are continuous, vertical indexes of text or images.
|
|
20
|
-
|
|
21
|
-
<Stack direction="row" spacing={1}>
|
|
22
|
-
<Chip clickable component="a" href="https://mui.com/components/radio-buttons/" size="small" icon={<MUIIcon viewBox="-5 0 40 30" />} label="Material UI" variant="outlined" />
|
|
23
|
-
<Chip clickable component="a" href="https://material.io/components/selection-controls#radio-buttons" size="small" icon={<MaterialDesignIcon />} label="Material Design" variant="outlined" />
|
|
24
|
-
<Chip clickable component="a" href="https://www.w3.org/TR/wai-aria-practices/#radiobutton" size="small" icon={<W3CIcon />} label="WAI-ARIA" variant="outlined" />
|
|
25
|
-
<Chip clickable component="a" href="https://www.figma.com/proto/mBDuFn79U8wQIIEoCGpMew/DS%3A-Component-Library?node-id=1065%3A17356&scaling=min-zoom&page-id=1059%3A17709&starting-point-node-id=1065%3A17356" size="small" icon={<FigmaIcon />} label="Figma" variant="outlined" />
|
|
26
|
-
<Chip clickable component="a" href="https://github.com/HT2-Labs/design-system/tree/main/src/lib/components/atoms/Radio" size="small" icon={<GithubIcon />} label="Github" variant="outlined" />
|
|
27
|
-
</Stack>
|
|
28
|
-
|
|
29
|
-
### [](#why-use-it)Why use it?
|
|
30
|
-
|
|
31
|
-
* Use a List component when you want to display a a continuous group of text or images. They are composed of items containing primary and supplemental actions, which are represented by icons and text.
|
|
32
|
-
|
|
33
|
-
### [](#how-to-implement-it)How to implement it?
|
|
34
|
-
|
|
35
|
-
Below is basic example of the List component:
|
|
36
|
-
|
|
37
|
-
<Canvas isExpanded>
|
|
38
|
-
<List>
|
|
39
|
-
<ListItem>
|
|
40
|
-
<ListItemButton>
|
|
41
|
-
<ListItemText primary="One" />
|
|
42
|
-
</ListItemButton>
|
|
43
|
-
</ListItem>
|
|
44
|
-
<ListItem>
|
|
45
|
-
<ListItemButton>
|
|
46
|
-
<ListItemText primary="Two" />
|
|
47
|
-
</ListItemButton>
|
|
48
|
-
</ListItem>
|
|
49
|
-
<ListItem>
|
|
50
|
-
<ListItemButton>
|
|
51
|
-
<ListItemText primary="Three" />
|
|
52
|
-
</ListItemButton>
|
|
53
|
-
</ListItem>
|
|
54
|
-
</List>
|
|
55
|
-
</Canvas>
|
|
56
|
-
|
|
57
|
-
### [](#when-to-avoid-it)When to avoid it?
|
|
58
|
-
|
|
59
|
-
* Do not use a List when you need to present large complex sets of data; use a data table instead.
|
|
60
|
-
|
|
61
|
-
### [](#best-practices)Best practices
|
|
62
|
-
|
|
63
|
-
* Generally, lists should be used to present simple sets of information.
|
|
64
|
-
* When using nested lists, avoid nesting just a single item. Try to find other ways it can be expressed in the higher level layer
|
|
65
|
-
* Use bulleted lists when you don't need to convey a specific order for list items.
|
|
66
|
-
* Use numbered lists when you need to convey a priority, hierarchy, or sequence between list items.
|
|
67
|
-
|
|
68
|
-
### [](#design-prototype)Design prototype
|
|
69
|
-
TODO: Add design prototype
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import { Paper, TableContainer, Table, TableHead, TableRow, TableCell, TableBody } from '../../../../lib/index';
|
|
3
|
-
import Chip from '../../../../lib/components/datadisplay/Chip/Chip';
|
|
4
|
-
import { MUIIcon, MaterialDesignIcon, W3CIcon, FigmaIcon, GithubIcon } from '../../../utils/CustomIcons';
|
|
5
|
-
import Stack from '@mui/material/Stack';
|
|
6
|
-
|
|
7
|
-
<Meta title="Components/Data Display/Table/Overview" component={Table} />
|
|
8
|
-
|
|
9
|
-
[](#component-overview)Table Overview <span class="sbdocs-edit-link"><Chip clickable component="a" href="https://github.com/ht2-labs/design-system/tree/main/src/stories/Guidelines/Templates/ComponentOverview.stories.mdx" size="small" label="Edit" variant="outlined" /></span>
|
|
10
|
-
=================================================================================
|
|
11
|
-
|
|
12
|
-
### [](#what-does-it-do)What does it do?
|
|
13
|
-
|
|
14
|
-
Tables display sets of data. They can be fully customized.
|
|
15
|
-
|
|
16
|
-
<Stack direction="row" spacing={1}>
|
|
17
|
-
<Chip clickable component="a" href="https://mui.com/material-ui/react-table/" size="small" icon={<MUIIcon viewBox="-5 0 40 30" />} label="Material UI" variant="outlined" />
|
|
18
|
-
<Chip clickable component="a" href="https://material.io/components/data-tables" size="small" icon={<MaterialDesignIcon />} label="Material Design" variant="outlined" />
|
|
19
|
-
<Chip clickable component="a" href="https://www.w3.org/WAI/ARIA/apg/patterns/table/" size="small" icon={<W3CIcon />} label="WAI-ARIA" variant="outlined" />
|
|
20
|
-
</Stack>
|
|
21
|
-
|
|
22
|
-
### [](#why-use-it)Why use it?
|
|
23
|
-
|
|
24
|
-
Tables display information in a way that's easy to scan, so that users can look for patterns and insights. They can be embedded in primary content, such as cards. They can include:
|
|
25
|
-
|
|
26
|
-
* A corresponding visualization
|
|
27
|
-
* Navigation
|
|
28
|
-
* Tools to query and manipulate data
|
|
29
|
-
|
|
30
|
-
### [](#how-to-implement-it)How to implement it?
|
|
31
|
-
|
|
32
|
-
Below is basic example of the Table component:
|
|
33
|
-
|
|
34
|
-
<Canvas isExpanded>
|
|
35
|
-
<TableContainer component={Paper}>
|
|
36
|
-
<Table sx={{ minWidth: 650 }} aria-label="simple table">
|
|
37
|
-
<TableHead>
|
|
38
|
-
<TableRow>
|
|
39
|
-
<TableCell>Dessert (100g serving)</TableCell>
|
|
40
|
-
<TableCell align="right">Calories</TableCell>
|
|
41
|
-
<TableCell align="right">Fat (g)</TableCell>
|
|
42
|
-
<TableCell align="right">Carbs (g)</TableCell>
|
|
43
|
-
<TableCell align="right">Protein (g)</TableCell>
|
|
44
|
-
</TableRow>
|
|
45
|
-
</TableHead>
|
|
46
|
-
<TableBody>
|
|
47
|
-
{[
|
|
48
|
-
{ name: 'Frozen yoghurt', calories: 159, fat: 6.0, carbs: 24, protein: 4.0 },
|
|
49
|
-
{ name: 'Ice cream sandwich', calories: 237, fat: 9.0, carbs: 37, protein: 4.3 },
|
|
50
|
-
{ name: 'Eclair', calories: 262, fat: 16.0, carbs: 24, protein: 6.0 },
|
|
51
|
-
{ name: 'Cupcake', calories: 305, fat: 3.7, carbs: 67, protein: 4.3 },
|
|
52
|
-
{ name: 'Gingerbread', calories: 356, fat: 16.0, carbs: 49, protein: 3.9 }
|
|
53
|
-
].map((row) => (
|
|
54
|
-
<TableRow
|
|
55
|
-
key={row.name}
|
|
56
|
-
sx={{ '&:last-child td, &:last-child th': { border: 0 } }}
|
|
57
|
-
>
|
|
58
|
-
<TableCell component="th" scope="row">
|
|
59
|
-
{row.name}
|
|
60
|
-
</TableCell>
|
|
61
|
-
<TableCell align="right">{row.calories}</TableCell>
|
|
62
|
-
<TableCell align="right">{row.fat}</TableCell>
|
|
63
|
-
<TableCell align="right">{row.carbs}</TableCell>
|
|
64
|
-
<TableCell align="right">{row.protein}</TableCell>
|
|
65
|
-
</TableRow>
|
|
66
|
-
))}
|
|
67
|
-
</TableBody>
|
|
68
|
-
</Table>
|
|
69
|
-
</TableContainer>
|
|
70
|
-
</Canvas>
|