@learningpool/ui 1.6.0 → 1.6.1
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/.eslintrc.js +40 -0
- package/.github/pull_request_template.md +23 -0
- package/.github/renovate.json +57 -0
- package/.github/workflows/integration.yml +53 -0
- package/.github/workflows/wss.yml +22 -0
- package/.jest-test-results.json +1 -0
- package/.releaserc +32 -0
- package/.storybook/learningpoolTheme.js +39 -0
- package/.storybook/main.js +21 -0
- package/.storybook/manager-head.html +175 -0
- package/.storybook/manager.js +34 -0
- package/.storybook/preview-head.html +212 -0
- package/.storybook/preview.js +120 -0
- package/.storybook/storybook-sort.js +54 -0
- package/CHANGELOG.md +6 -0
- package/amplify.yml +16 -0
- package/babel.config.json +14 -0
- package/{assets → dist/assets}/Images.d.ts +0 -0
- package/{assets → dist/assets}/Images.js +0 -0
- package/{components → dist/components}/atoms/Autocomplete/Autocomplete.d.ts +0 -0
- package/{components → dist/components}/atoms/Autocomplete/Autocomplete.js +0 -0
- package/{components → dist/components}/atoms/Button/Button.d.ts +0 -0
- package/{components → dist/components}/atoms/Button/Button.js +0 -0
- package/{components → dist/components}/atoms/Checkbox/Checkbox.d.ts +0 -0
- package/{components → dist/components}/atoms/Checkbox/Checkbox.js +0 -0
- package/{components → dist/components}/atoms/IconButton/IconButton.d.ts +0 -0
- package/{components → dist/components}/atoms/IconButton/IconButton.js +0 -0
- package/{components → dist/components}/atoms/Radio/Radio.d.ts +0 -0
- package/{components → dist/components}/atoms/Radio/Radio.js +0 -0
- package/{components → dist/components}/atoms/Select/Select.d.ts +0 -0
- package/{components → dist/components}/atoms/Select/Select.js +0 -0
- package/{components → dist/components}/atoms/Slider/Slider.d.ts +0 -0
- package/{components → dist/components}/atoms/Slider/Slider.js +0 -0
- package/{components → dist/components}/atoms/Switch/Switch.d.ts +0 -0
- package/{components → dist/components}/atoms/Switch/Switch.js +0 -0
- package/{components → dist/components}/atoms/TextField/TextField.d.ts +0 -0
- package/{components → dist/components}/atoms/TextField/TextField.js +0 -0
- package/{components → dist/components}/atoms/ToggleButton/ToggleButton.d.ts +0 -0
- package/{components → dist/components}/atoms/ToggleButton/ToggleButton.js +0 -0
- package/{components → dist/components}/datadisplay/Avatar/Avatar.d.ts +0 -0
- package/{components → dist/components}/datadisplay/Avatar/Avatar.js +0 -0
- package/{components → dist/components}/datadisplay/Chip/Chip.d.ts +0 -0
- package/{components → dist/components}/datadisplay/Chip/Chip.js +0 -0
- package/{components → dist/components}/datadisplay/List/List.d.ts +0 -0
- package/{components → dist/components}/datadisplay/List/List.js +0 -0
- package/{components → dist/components}/datadisplay/Tooltip/Tooltip.d.ts +0 -0
- package/{components → dist/components}/datadisplay/Tooltip/Tooltip.js +0 -0
- package/{components → dist/components}/feedback/Alert/Alert.d.ts +0 -0
- package/{components → dist/components}/feedback/Alert/Alert.js +0 -0
- package/{components → dist/components}/landmarks/Header/Header.d.ts +0 -0
- package/{components → dist/components}/landmarks/Header/Header.js +0 -0
- package/{components → dist/components}/landmarks/Header/HeaderActionButtons.d.ts +0 -0
- package/{components → dist/components}/landmarks/Header/HeaderActionButtons.js +0 -0
- package/{components → dist/components}/landmarks/Header/HeaderStyles.d.ts +0 -0
- package/{components → dist/components}/landmarks/Header/HeaderStyles.js +0 -0
- package/{components → dist/components}/navigation/Drawer/Drawer.d.ts +0 -0
- package/{components → dist/components}/navigation/Drawer/Drawer.js +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigation.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigation.js +64 -41
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationAvatar.js +23 -19
- package/dist/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +3296 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +4 -4
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +0 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationDrawer.js +71 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +1215 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +2 -2
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationMotion.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationMotion.js +0 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.d.ts +3 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +19 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationSearch.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationSearch.js +8 -6
- package/dist/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +1080 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationSearchStyles.js +2 -2
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationStyles.d.ts +0 -0
- package/{components → dist/components}/navigation/MobileNavigation/MobileNavigationStyles.js +0 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +3 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +28 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +3 -0
- package/dist/components/navigation/MobileNavigation/MobileNavigationToggleX.js +28 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigation.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigation.js +18 -16
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationAvatar.js +20 -25
- package/dist/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +3296 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +4 -4
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +5 -1
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +0 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationMotion.js +0 -0
- package/dist/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +1163 -0
- package/{components → dist/components}/navigation/VerticalNavigation/VerticalNavigationStyles.js +3 -2
- package/{components → dist/components}/pages/ErrorPage/ErrorPage.d.ts +0 -0
- package/{components → dist/components}/pages/ErrorPage/ErrorPage.js +0 -0
- package/{components → dist/components}/pages/ErrorPage/ErrorPageStyles.d.ts +0 -0
- package/{components → dist/components}/pages/ErrorPage/ErrorPageStyles.js +0 -0
- package/{components → dist/components}/pages/SideInSide/SideInSide.d.ts +0 -0
- package/{components → dist/components}/pages/SideInSide/SideInSide.js +0 -0
- package/{components → dist/components}/pages/SideInSide/SideInSideStyles.d.ts +0 -0
- package/{components → dist/components}/pages/SideInSide/SideInSideStyles.js +0 -0
- package/{components → dist/components}/stream/AppSwitcher/AppSwitcher.d.ts +0 -0
- package/{components → dist/components}/stream/AppSwitcher/AppSwitcher.js +0 -0
- package/{components → dist/components}/stream/AppSwitcher/AppSwitcherItem.d.ts +0 -0
- package/{components → dist/components}/stream/AppSwitcher/AppSwitcherItem.js +0 -0
- package/{components → dist/components}/stream/AppSwitcher/AppSwitcherStyles.d.ts +0 -0
- package/{components → dist/components}/stream/AppSwitcher/AppSwitcherStyles.js +0 -0
- package/{components → dist/components}/stream/AppSwitcher/constants.d.ts +0 -0
- package/{components → dist/components}/stream/AppSwitcher/constants.js +0 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{lang → dist/lang}/en-us.d.ts +0 -0
- package/{lang → dist/lang}/en-us.js +0 -0
- package/dist/package.json +41 -0
- package/{types → dist/types}/components/navigation/VerticalNavigation.d.ts +0 -0
- package/{types → dist/types}/components/navigation/VerticalNavigation.js +0 -0
- package/{types → dist/types}/components/navigation/VerticalNavigationAvatar.d.ts +1 -0
- package/{types → dist/types}/components/navigation/VerticalNavigationAvatar.js +0 -0
- package/{types → dist/types}/components/stream/AppSwitcher.d.ts +0 -0
- package/{types → dist/types}/components/stream/AppSwitcher.js +0 -0
- package/{types → dist/types}/index.d.ts +0 -0
- package/{types → dist/types}/index.js +0 -0
- package/{utils → dist/utils}/constants.d.ts +0 -0
- package/{utils → dist/utils}/constants.js +0 -0
- package/dist/utils/helpers.d.ts +21 -0
- package/dist/utils/helpers.js +64 -0
- package/{utils → dist/utils}/hooks.d.ts +0 -0
- package/{utils → dist/utils}/hooks.js +0 -0
- package/{utils → dist/utils}/index.d.ts +0 -0
- package/{utils → dist/utils}/index.js +0 -0
- package/{utils → dist/utils}/theme.d.ts +0 -0
- package/{utils → dist/utils}/theme.js +0 -0
- package/jest.config.ts +11 -0
- package/jest.setup.ts +5 -0
- package/{LICENSE → license} +0 -0
- package/merge.js +27 -0
- package/package.json +71 -4
- 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 +5 -0
- package/public/assets/automation.svg +1 -0
- 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 +6 -0
- package/public/assets/flux/icon-light.svg +1 -0
- package/public/assets/flux/icon-white.svg +6 -0
- package/public/assets/flux/icon.svg +6 -0
- package/public/assets/flux/logo-dark.svg +22 -0
- package/public/assets/flux/logo-light.svg +1 -0
- package/public/assets/flux/logo-white.svg +22 -0
- package/public/assets/flux/logo.svg +22 -0
- 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 +1 -0
- package/public/assets/molecules.svg +8 -0
- package/public/assets/organisms.svg +21 -0
- package/public/assets/pages.svg +4 -0
- package/public/assets/particles.svg +3 -0
- package/public/assets/stream-dark.png +0 -0
- package/public/assets/stream-suite-logo.svg +38 -0
- package/public/assets/stream-white.png +0 -0
- package/public/assets/stream.png +0 -0
- package/public/assets/templates.svg +3 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/public/site.webmanifest +1 -0
- package/{README.md → readme.md} +0 -0
- package/src/docs.tsx +167 -0
- package/src/lib/assets/Images.tsx +47 -0
- package/src/lib/assets/stream-suite-logo.svg +38 -0
- package/src/lib/components/atoms/Autocomplete/Autocomplete.test.tsx +179 -0
- package/src/lib/components/atoms/Autocomplete/Autocomplete.tsx +14 -0
- package/src/lib/components/atoms/Button/Button.test.tsx +166 -0
- package/src/lib/components/atoms/Button/Button.tsx +16 -0
- package/src/lib/components/atoms/Checkbox/Checkbox.test.tsx +85 -0
- package/src/lib/components/atoms/Checkbox/Checkbox.tsx +10 -0
- package/src/lib/components/atoms/IconButton/IconButton.test.tsx +60 -0
- package/src/lib/components/atoms/IconButton/IconButton.tsx +9 -0
- package/src/lib/components/atoms/Radio/Radio.test.tsx +136 -0
- package/src/lib/components/atoms/Radio/Radio.tsx +10 -0
- package/src/lib/components/atoms/Select/Select.test.tsx +158 -0
- package/src/lib/components/atoms/Select/Select.tsx +12 -0
- package/src/lib/components/atoms/Slider/Slider.test.tsx +103 -0
- package/src/lib/components/atoms/Slider/Slider.tsx +10 -0
- package/src/lib/components/atoms/Switch/Switch.test.tsx +96 -0
- package/src/lib/components/atoms/Switch/Switch.tsx +10 -0
- package/src/lib/components/atoms/TextField/TextField.test.tsx +131 -0
- package/src/lib/components/atoms/TextField/TextField.tsx +31 -0
- package/src/lib/components/atoms/ToggleButton/ToggleButton.test.tsx +122 -0
- package/src/lib/components/atoms/ToggleButton/ToggleButton.tsx +10 -0
- package/src/lib/components/datadisplay/Avatar/Avatar.test.tsx +187 -0
- package/src/lib/components/datadisplay/Avatar/Avatar.tsx +35 -0
- package/src/lib/components/datadisplay/Avatar/avatar-1.jpg +0 -0
- package/src/lib/components/datadisplay/Chip/Chip.test.tsx +82 -0
- package/src/lib/components/datadisplay/Chip/Chip.tsx +11 -0
- package/src/lib/components/datadisplay/List/List.test.tsx +168 -0
- package/src/lib/components/datadisplay/List/List.tsx +8 -0
- package/src/lib/components/datadisplay/Tooltip/Tooltip.test.tsx +98 -0
- package/src/lib/components/datadisplay/Tooltip/Tooltip.tsx +9 -0
- package/src/lib/components/feedback/Alert/Alert.test.tsx +139 -0
- package/src/lib/components/feedback/Alert/Alert.tsx +10 -0
- package/src/lib/components/landmarks/Header/Header.tsx +140 -0
- package/src/lib/components/landmarks/Header/HeaderActionButtons.tsx +117 -0
- package/src/lib/components/landmarks/Header/HeaderStyles.tsx +62 -0
- package/src/lib/components/navigation/Drawer/Drawer.test.tsx +95 -0
- package/src/lib/components/navigation/Drawer/Drawer.tsx +21 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigation.tsx +276 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatar.tsx +334 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.tsx +77 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawer.tsx +197 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.tsx +143 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.tsx +192 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.tsx +67 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.tsx +192 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.tsx +217 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationMotion.tsx +119 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.tsx +35 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearch.tsx +114 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearchStyles.tsx +47 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationStyles.tsx +320 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.tsx +59 -0
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleX.tsx +51 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigation.tsx +467 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatar.tsx +208 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.tsx +75 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.tsx +196 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.tsx +94 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.tsx +212 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.tsx +240 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationMotion.tsx +119 -0
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationStyles.tsx +303 -0
- package/src/lib/components/pages/ErrorPage/ErrorPage.test.tsx +78 -0
- package/src/lib/components/pages/ErrorPage/ErrorPage.tsx +50 -0
- package/src/lib/components/pages/ErrorPage/ErrorPageStyles.tsx +30 -0
- package/src/lib/components/pages/SideInSide/SideInSide.tsx +100 -0
- package/src/lib/components/pages/SideInSide/SideInSideStyles.tsx +62 -0
- package/src/lib/components/stream/AppSwitcher/AppSwitcher.tsx +392 -0
- package/src/lib/components/stream/AppSwitcher/AppSwitcherItem.tsx +83 -0
- package/src/lib/components/stream/AppSwitcher/AppSwitcherStyles.tsx +325 -0
- package/src/lib/components/stream/AppSwitcher/constants.tsx +28 -0
- package/src/lib/index.tsx +148 -0
- package/src/lib/lang/en-us.js +6 -0
- package/src/lib/types/components/navigation/VerticalNavigation.ts +52 -0
- package/src/lib/types/components/navigation/VerticalNavigationAvatar.ts +26 -0
- package/src/lib/types/components/stream/AppSwitcher.ts +10 -0
- package/src/lib/types/index.ts +9 -0
- package/src/lib/utils/constants.tsx +11 -0
- package/src/lib/utils/helpers.tsx +77 -0
- package/src/lib/utils/hooks.tsx +33 -0
- package/src/lib/utils/index.tsx +4 -0
- package/src/lib/utils/theme.tsx +79 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/setupTests.ts +5 -0
- package/src/stories/Components/DataDisplay/Avatar/Accessibility.stories.mdx +34 -0
- package/src/stories/Components/DataDisplay/Avatar/AllCombinations.tsx +56 -0
- package/src/stories/Components/DataDisplay/Avatar/Avatar.stories.tsx +19 -0
- package/src/stories/Components/DataDisplay/Avatar/Examples.stories.tsx +278 -0
- package/src/stories/Components/DataDisplay/Avatar/Overview.stories.mdx +47 -0
- package/src/stories/Components/DataDisplay/Chip/Accessibility.stories.mdx +29 -0
- package/src/stories/Components/DataDisplay/Chip/AllCombinations.tsx +58 -0
- package/src/stories/Components/DataDisplay/Chip/Chip.stories.tsx +21 -0
- package/src/stories/Components/DataDisplay/Chip/Examples.stories.tsx +126 -0
- package/src/stories/Components/DataDisplay/Chip/Overview.stories.mdx +57 -0
- package/src/stories/Components/DataDisplay/List/Accessibility.stories.mdx +54 -0
- package/src/stories/Components/DataDisplay/List/AllCombinations.tsx +396 -0
- package/src/stories/Components/DataDisplay/List/Examples.stories.tsx +501 -0
- package/src/stories/Components/DataDisplay/List/List.stories.tsx +35 -0
- package/src/stories/Components/DataDisplay/List/Overview.stories.mdx +69 -0
- package/src/stories/Components/DataDisplay/Table/Overview.stories.mdx +70 -0
- package/src/stories/Components/DataDisplay/Tooltip/Accessibility.stories.mdx +39 -0
- package/src/stories/Components/DataDisplay/Tooltip/AllCombinations.tsx +134 -0
- package/src/stories/Components/DataDisplay/Tooltip/Examples.stories.tsx +237 -0
- package/src/stories/Components/DataDisplay/Tooltip/Overview.stories.mdx +58 -0
- package/src/stories/Components/DataDisplay/Tooltip/Tooltip.stories.tsx +22 -0
- package/src/stories/Components/Feedback/Alert/Accessibility.stories.mdx +25 -0
- package/src/stories/Components/Feedback/Alert/Alert.stories.tsx +22 -0
- package/src/stories/Components/Feedback/Alert/AllCombinations.tsx +37 -0
- package/src/stories/Components/Feedback/Alert/Examples.stories.tsx +137 -0
- package/src/stories/Components/Feedback/Alert/Overview.stories.mdx +62 -0
- package/src/stories/Components/Inputs/Autocomplete/Accessibility.stories.mdx +31 -0
- package/src/stories/Components/Inputs/Autocomplete/AllCombinations.tsx +182 -0
- package/src/stories/Components/Inputs/Autocomplete/Autocomplete.stories.tsx +31 -0
- package/src/stories/Components/Inputs/Autocomplete/Examples.stories.tsx +233 -0
- package/src/stories/Components/Inputs/Autocomplete/Overview.stories.mdx +52 -0
- package/src/stories/Components/Inputs/Button/Accessibility.stories.mdx +52 -0
- package/src/stories/Components/Inputs/Button/AllCombinations.tsx +53 -0
- package/src/stories/Components/Inputs/Button/Button.stories.tsx +23 -0
- package/src/stories/Components/Inputs/Button/Examples.stories.tsx +190 -0
- package/src/stories/Components/Inputs/Button/Overview.stories.mdx +52 -0
- package/src/stories/Components/Inputs/Checkbox/Accessibility.stories.mdx +38 -0
- package/src/stories/Components/Inputs/Checkbox/AllCombinations.tsx +55 -0
- package/src/stories/Components/Inputs/Checkbox/Checkbox.stories.tsx +22 -0
- package/src/stories/Components/Inputs/Checkbox/Examples.stories.tsx +363 -0
- package/src/stories/Components/Inputs/Checkbox/Overview.stories.mdx +63 -0
- package/src/stories/Components/Inputs/IconButton/Examples.stories.tsx +24 -0
- package/src/stories/Components/Inputs/IconButton/IconButton.stories.tsx +26 -0
- package/src/stories/Components/Inputs/Radio/Accessibility.stories.mdx +61 -0
- package/src/stories/Components/Inputs/Radio/AllCombinations.tsx +75 -0
- package/src/stories/Components/Inputs/Radio/Examples.stories.tsx +333 -0
- package/src/stories/Components/Inputs/Radio/Overview.stories.mdx +74 -0
- package/src/stories/Components/Inputs/Radio/Radio.stories.tsx +22 -0
- package/src/stories/Components/Inputs/Select/Accessibility.stories.mdx +51 -0
- package/src/stories/Components/Inputs/Select/AllCombinations.tsx +63 -0
- package/src/stories/Components/Inputs/Select/Examples.stories.tsx +803 -0
- package/src/stories/Components/Inputs/Select/Overview.stories.mdx +73 -0
- package/src/stories/Components/Inputs/Select/Select.stories.tsx +22 -0
- package/src/stories/Components/Inputs/Slider/Accessibility.stories.mdx +43 -0
- package/src/stories/Components/Inputs/Slider/AllCombinations.tsx +30 -0
- package/src/stories/Components/Inputs/Slider/Examples.stories.tsx +146 -0
- package/src/stories/Components/Inputs/Slider/Overview.stories.mdx +59 -0
- package/src/stories/Components/Inputs/Slider/Slider.stories.tsx +27 -0
- package/src/stories/Components/Inputs/Switch/Accessibility.stories.mdx +34 -0
- package/src/stories/Components/Inputs/Switch/AllCombinations.tsx +45 -0
- package/src/stories/Components/Inputs/Switch/Examples.stories.tsx +213 -0
- package/src/stories/Components/Inputs/Switch/Overview.stories.mdx +62 -0
- package/src/stories/Components/Inputs/Switch/Switch.stories.tsx +22 -0
- package/src/stories/Components/Inputs/TextField/Accessibility.stories.mdx +29 -0
- package/src/stories/Components/Inputs/TextField/AllCombinations.tsx +57 -0
- package/src/stories/Components/Inputs/TextField/Examples.stories.tsx +127 -0
- package/src/stories/Components/Inputs/TextField/Overview.stories.mdx +60 -0
- package/src/stories/Components/Inputs/TextField/TextField.stories.tsx +261 -0
- package/src/stories/Components/Inputs/ToggleButton/Accessibility.stories.mdx +32 -0
- package/src/stories/Components/Inputs/ToggleButton/AllCombinations.tsx +113 -0
- package/src/stories/Components/Inputs/ToggleButton/Examples.stories.tsx +339 -0
- package/src/stories/Components/Inputs/ToggleButton/Overview.stories.mdx +55 -0
- package/src/stories/Components/Inputs/ToggleButton/ToggleButton.stories.tsx +19 -0
- package/src/stories/Components/Landmarks/Header/Examples.stories.tsx +197 -0
- package/src/stories/Components/Landmarks/Header/Header.stories.tsx +34 -0
- package/src/stories/Components/Landmarks/Header/Overview.stories.mdx +44 -0
- package/src/stories/Components/Navigation/Drawer/Accessibility.stories.mdx +13 -0
- package/src/stories/Components/Navigation/Drawer/Drawer.stories.tsx +80 -0
- package/src/stories/Components/Navigation/Drawer/Examples.stories.tsx +440 -0
- package/src/stories/Components/Navigation/Drawer/Overview.stories.mdx +43 -0
- package/src/stories/Components/Navigation/MobileNavigation/Accessibility.stories.mdx +14 -0
- package/src/stories/Components/Navigation/MobileNavigation/Examples.stories.tsx +384 -0
- package/src/stories/Components/Navigation/MobileNavigation/MobileNavigation.stories.tsx +24 -0
- package/src/stories/Components/Navigation/MobileNavigation/Overview.stories.mdx +47 -0
- package/src/stories/Components/Navigation/VerticalNavigation/Accessibility.stories.mdx +14 -0
- package/src/stories/Components/Navigation/VerticalNavigation/Examples.stories.tsx +307 -0
- package/src/stories/Components/Navigation/VerticalNavigation/Overview.stories.mdx +47 -0
- package/src/stories/Components/Navigation/VerticalNavigation/VerticalNavigation.stories.tsx +24 -0
- package/src/stories/ContactUs.stories.mdx +21 -0
- package/src/stories/Experimental/Test.stories.mdx +46 -0
- package/src/stories/GettingStarted/Designer.stories.mdx +86 -0
- package/src/stories/GettingStarted/Developer.stories.mdx +134 -0
- package/src/stories/Guidelines/Accessibility/AssistiveTechnology.stories.mdx +70 -0
- package/src/stories/Guidelines/Accessibility/ColorAndContrast.stories.mdx +109 -0
- package/src/stories/Guidelines/Accessibility/Hierarchy.stories.mdx +119 -0
- package/src/stories/Guidelines/Accessibility/Imagery.stories.mdx +136 -0
- package/src/stories/Guidelines/Accessibility/Overview.stories.mdx +44 -0
- package/src/stories/Guidelines/Accessibility/Principles.stories.mdx +156 -0
- package/src/stories/Guidelines/Accessibility/SoundAndMotion.stories.mdx +59 -0
- package/src/stories/Guidelines/Accessibility/Typography.stories.mdx +69 -0
- package/src/stories/Guidelines/Accessibility/Writing.stories.mdx +188 -0
- package/src/stories/Guidelines/Styleguide/ColorSwatch.tsx +53 -0
- package/src/stories/Guidelines/Styleguide/Colors.stories.mdx +118 -0
- package/src/stories/Guidelines/Styleguide/Typography.stories.mdx +84 -0
- package/src/stories/Introduction.stories.mdx +65 -0
- package/src/stories/Pages/ErrorPage.stories.tsx +30 -0
- package/src/stories/Pages/SideInSide.stories.tsx +195 -0
- package/src/stories/Roadmap.stories.mdx +19 -0
- package/src/stories/Templates/Login.stories.mdx +46 -0
- package/src/stories/assets/Atomic_Design_Icons-Dark.svg +24 -0
- package/src/stories/assets/Atomic_Design_Icons-Light.svg +25 -0
- 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 +6 -0
- 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 +9 -0
- package/src/stories/assets/organisms.svg +22 -0
- package/src/stories/assets/pages.svg +5 -0
- package/src/stories/assets/particles.svg +4 -0
- package/src/stories/assets/templates.svg +4 -0
- package/src/stories/assets/testData.tsx +102 -0
- 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 +44 -0
- package/tsconfig.eslint.json +16 -0
- package/tsconfig.json +50 -0
- package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +0 -827
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +0 -147
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +0 -392
- package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.d.ts +0 -3
- package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +0 -31
- package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +0 -257
- package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +0 -3
- package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +0 -33
- package/components/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +0 -3
- package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +0 -27
- package/components/navigation/MobileNavigation/MobileNavigationToggleXStyles.d.ts +0 -36
- package/components/navigation/MobileNavigation/MobileNavigationToggleXStyles.js +0 -10
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +0 -827
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +0 -88
- package/utils/helpers.d.ts +0 -6
- package/utils/helpers.js +0 -17
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import List from '../../../../lib/components/datadisplay/List/List'
|
|
3
|
+
import Checkbox from '../../../../lib/components/atoms/Checkbox/Checkbox'
|
|
4
|
+
import IconButton from '../../../../lib/components/atoms/IconButton/IconButton'
|
|
5
|
+
import {
|
|
6
|
+
ListItem, ListItemButton, ListItemIcon,
|
|
7
|
+
ListItemText, ListSubheader, ListItemAvatar
|
|
8
|
+
} from '../../../../lib/'
|
|
9
|
+
import {
|
|
10
|
+
Stack, Box, Typography,
|
|
11
|
+
Avatar, Divider, Collapse
|
|
12
|
+
} from '@mui/material'
|
|
13
|
+
import InboxIcon from '@mui/icons-material/Inbox'
|
|
14
|
+
import DraftsIcon from '@mui/icons-material/Drafts'
|
|
15
|
+
import ImageIcon from '@mui/icons-material/Image'
|
|
16
|
+
import WorkIcon from '@mui/icons-material/Work'
|
|
17
|
+
import BeachAccessIcon from '@mui/icons-material/BeachAccess'
|
|
18
|
+
import SendIcon from '@mui/icons-material/Send'
|
|
19
|
+
import ExpandLess from '@mui/icons-material/ExpandLess'
|
|
20
|
+
import ExpandMore from '@mui/icons-material/ExpandMore'
|
|
21
|
+
import StarBorder from '@mui/icons-material/StarBorder'
|
|
22
|
+
import CommentIcon from '@mui/icons-material/Comment'
|
|
23
|
+
|
|
24
|
+
const ListGrid = (args: any): JSX.Element => {
|
|
25
|
+
const [open, setOpen] = React.useState(true)
|
|
26
|
+
|
|
27
|
+
const handleClick = (): void => {
|
|
28
|
+
setOpen(!open)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const [selectedIndex, setSelectedIndex] = React.useState(1)
|
|
32
|
+
|
|
33
|
+
const handleListItemClick = (
|
|
34
|
+
event: React.MouseEvent<HTMLDivElement, MouseEvent>,
|
|
35
|
+
index: number
|
|
36
|
+
): void => {
|
|
37
|
+
setSelectedIndex(index)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const [checked, setChecked] = React.useState([0])
|
|
41
|
+
|
|
42
|
+
const handleToggle = (value: number) => () => {
|
|
43
|
+
const currentIndex = checked.indexOf(value)
|
|
44
|
+
const newChecked = [...checked]
|
|
45
|
+
|
|
46
|
+
if (currentIndex === -1) {
|
|
47
|
+
newChecked.push(value)
|
|
48
|
+
} else {
|
|
49
|
+
newChecked.splice(currentIndex, 1)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
setChecked(newChecked)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<Stack spacing={2}>
|
|
57
|
+
<Box sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
58
|
+
<nav aria-label="Demo List">
|
|
59
|
+
<List>
|
|
60
|
+
<ListItem disablePadding>
|
|
61
|
+
<ListItemButton>
|
|
62
|
+
<ListItemText primary="One" />
|
|
63
|
+
</ListItemButton>
|
|
64
|
+
</ListItem>
|
|
65
|
+
<ListItem disablePadding>
|
|
66
|
+
<ListItemButton>
|
|
67
|
+
<ListItemText primary="Two" />
|
|
68
|
+
</ListItemButton>
|
|
69
|
+
</ListItem>
|
|
70
|
+
<ListItem disablePadding>
|
|
71
|
+
<ListItemButton>
|
|
72
|
+
<ListItemText primary="Three" />
|
|
73
|
+
</ListItemButton>
|
|
74
|
+
</ListItem>
|
|
75
|
+
<ListItem disablePadding>
|
|
76
|
+
<ListItemButton>
|
|
77
|
+
<ListItemText primary="Four" />
|
|
78
|
+
</ListItemButton>
|
|
79
|
+
</ListItem>
|
|
80
|
+
<ListItem disablePadding>
|
|
81
|
+
<ListItemButton>
|
|
82
|
+
<ListItemText primary="Five" />
|
|
83
|
+
</ListItemButton>
|
|
84
|
+
</ListItem>
|
|
85
|
+
</List>
|
|
86
|
+
</nav>
|
|
87
|
+
</Box>
|
|
88
|
+
|
|
89
|
+
<Box sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
90
|
+
<nav aria-label="main mailbox folders">
|
|
91
|
+
<List>
|
|
92
|
+
<ListItem disablePadding>
|
|
93
|
+
<ListItemButton>
|
|
94
|
+
<ListItemIcon>
|
|
95
|
+
<InboxIcon />
|
|
96
|
+
</ListItemIcon>
|
|
97
|
+
<ListItemText primary="Inbox" />
|
|
98
|
+
</ListItemButton>
|
|
99
|
+
</ListItem>
|
|
100
|
+
<ListItem disablePadding>
|
|
101
|
+
<ListItemButton>
|
|
102
|
+
<ListItemIcon>
|
|
103
|
+
<DraftsIcon />
|
|
104
|
+
</ListItemIcon>
|
|
105
|
+
<ListItemText primary="Drafts" />
|
|
106
|
+
</ListItemButton>
|
|
107
|
+
</ListItem>
|
|
108
|
+
</List>
|
|
109
|
+
</nav>
|
|
110
|
+
<Divider />
|
|
111
|
+
<nav aria-label="secondary mailbox folders">
|
|
112
|
+
<List>
|
|
113
|
+
<ListItem disablePadding>
|
|
114
|
+
<ListItemButton>
|
|
115
|
+
<ListItemText primary="Trash" />
|
|
116
|
+
</ListItemButton>
|
|
117
|
+
</ListItem>
|
|
118
|
+
<ListItem disablePadding>
|
|
119
|
+
<ListItemButton component="a" href="#simple-list">
|
|
120
|
+
<ListItemText primary="Spam" />
|
|
121
|
+
</ListItemButton>
|
|
122
|
+
</ListItem>
|
|
123
|
+
</List>
|
|
124
|
+
</nav>
|
|
125
|
+
</Box>
|
|
126
|
+
|
|
127
|
+
<List
|
|
128
|
+
sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}
|
|
129
|
+
component="nav"
|
|
130
|
+
aria-labelledby="nested-list-subheader"
|
|
131
|
+
subheader={
|
|
132
|
+
<ListSubheader component="div" id="nested-list-subheader">
|
|
133
|
+
Nested List Items
|
|
134
|
+
</ListSubheader>
|
|
135
|
+
}
|
|
136
|
+
>
|
|
137
|
+
<ListItemButton>
|
|
138
|
+
<ListItemIcon>
|
|
139
|
+
<SendIcon />
|
|
140
|
+
</ListItemIcon>
|
|
141
|
+
<ListItemText primary="Sent mail" />
|
|
142
|
+
</ListItemButton>
|
|
143
|
+
<ListItemButton>
|
|
144
|
+
<ListItemIcon>
|
|
145
|
+
<DraftsIcon />
|
|
146
|
+
</ListItemIcon>
|
|
147
|
+
<ListItemText primary="Drafts" />
|
|
148
|
+
</ListItemButton>
|
|
149
|
+
<ListItemButton onClick={handleClick}>
|
|
150
|
+
<ListItemIcon>
|
|
151
|
+
<InboxIcon />
|
|
152
|
+
</ListItemIcon>
|
|
153
|
+
<ListItemText primary="Inbox" />
|
|
154
|
+
{open ? <ExpandLess /> : <ExpandMore />}
|
|
155
|
+
</ListItemButton>
|
|
156
|
+
<Collapse in={open} timeout="auto" unmountOnExit>
|
|
157
|
+
<List component="div" disablePadding>
|
|
158
|
+
<ListItemButton sx={{ pl: 4 }}>
|
|
159
|
+
<ListItemIcon>
|
|
160
|
+
<StarBorder />
|
|
161
|
+
</ListItemIcon>
|
|
162
|
+
<ListItemText primary="Starred" />
|
|
163
|
+
</ListItemButton>
|
|
164
|
+
</List>
|
|
165
|
+
</Collapse>
|
|
166
|
+
</List>
|
|
167
|
+
|
|
168
|
+
<List sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
169
|
+
<ListItem>
|
|
170
|
+
<ListItemAvatar>
|
|
171
|
+
<Avatar>
|
|
172
|
+
<ImageIcon />
|
|
173
|
+
</Avatar>
|
|
174
|
+
</ListItemAvatar>
|
|
175
|
+
<ListItemText primary="Photos" secondary="Jan 9, 2022" />
|
|
176
|
+
</ListItem>
|
|
177
|
+
<ListItem>
|
|
178
|
+
<ListItemAvatar>
|
|
179
|
+
<Avatar>
|
|
180
|
+
<WorkIcon />
|
|
181
|
+
</Avatar>
|
|
182
|
+
</ListItemAvatar>
|
|
183
|
+
<ListItemText primary="Work" secondary="Jan 7, 2022" />
|
|
184
|
+
</ListItem>
|
|
185
|
+
<ListItem>
|
|
186
|
+
<ListItemAvatar>
|
|
187
|
+
<Avatar>
|
|
188
|
+
<BeachAccessIcon />
|
|
189
|
+
</Avatar>
|
|
190
|
+
</ListItemAvatar>
|
|
191
|
+
<ListItemText primary="Vacation" secondary="July 20, 2021" />
|
|
192
|
+
</ListItem>
|
|
193
|
+
</List>
|
|
194
|
+
|
|
195
|
+
<Box sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
196
|
+
<List component="nav" aria-label="main mailbox folders">
|
|
197
|
+
<ListItemButton
|
|
198
|
+
selected={selectedIndex === 0}
|
|
199
|
+
onClick={(event) => handleListItemClick(event, 0)}
|
|
200
|
+
>
|
|
201
|
+
<ListItemIcon>
|
|
202
|
+
<InboxIcon />
|
|
203
|
+
</ListItemIcon>
|
|
204
|
+
<ListItemText primary="Inbox" />
|
|
205
|
+
</ListItemButton>
|
|
206
|
+
<ListItemButton
|
|
207
|
+
selected={selectedIndex === 1}
|
|
208
|
+
onClick={(event) => handleListItemClick(event, 1)}
|
|
209
|
+
>
|
|
210
|
+
<ListItemIcon>
|
|
211
|
+
<DraftsIcon />
|
|
212
|
+
</ListItemIcon>
|
|
213
|
+
<ListItemText primary="Drafts" />
|
|
214
|
+
</ListItemButton>
|
|
215
|
+
</List>
|
|
216
|
+
<Divider />
|
|
217
|
+
<List component="nav" aria-label="secondary mailbox folder">
|
|
218
|
+
<ListItemButton
|
|
219
|
+
selected={selectedIndex === 2}
|
|
220
|
+
onClick={(event) => handleListItemClick(event, 2)}
|
|
221
|
+
>
|
|
222
|
+
<ListItemText primary="Trash" />
|
|
223
|
+
</ListItemButton>
|
|
224
|
+
<ListItemButton
|
|
225
|
+
selected={selectedIndex === 3}
|
|
226
|
+
onClick={(event) => handleListItemClick(event, 3)}
|
|
227
|
+
>
|
|
228
|
+
<ListItemText primary="Spam" />
|
|
229
|
+
</ListItemButton>
|
|
230
|
+
</List>
|
|
231
|
+
</Box>
|
|
232
|
+
|
|
233
|
+
<List sx={{ width: '100%', maxWidth: 360, bgcolor: 'background.paper' }}>
|
|
234
|
+
<ListItem alignItems="flex-start">
|
|
235
|
+
<ListItemAvatar>
|
|
236
|
+
<Avatar alt="Remy Sharp" />
|
|
237
|
+
</ListItemAvatar>
|
|
238
|
+
<ListItemText
|
|
239
|
+
primary="Brunch this weekend?"
|
|
240
|
+
secondary={
|
|
241
|
+
<React.Fragment>
|
|
242
|
+
<Typography
|
|
243
|
+
sx={{ display: 'inline' }}
|
|
244
|
+
component="span"
|
|
245
|
+
variant="body2"
|
|
246
|
+
color="text.primary"
|
|
247
|
+
>
|
|
248
|
+
Ali Connors
|
|
249
|
+
</Typography>
|
|
250
|
+
{" — I'll be in your neighborhood doing errands this…"}
|
|
251
|
+
</React.Fragment>
|
|
252
|
+
}
|
|
253
|
+
/>
|
|
254
|
+
</ListItem>
|
|
255
|
+
<Divider variant="inset" component="li" />
|
|
256
|
+
<ListItem alignItems="flex-start">
|
|
257
|
+
<ListItemAvatar>
|
|
258
|
+
<Avatar alt="Travis Howard" />
|
|
259
|
+
</ListItemAvatar>
|
|
260
|
+
<ListItemText
|
|
261
|
+
primary="Summer BBQ"
|
|
262
|
+
secondary={
|
|
263
|
+
<React.Fragment>
|
|
264
|
+
<Typography
|
|
265
|
+
sx={{ display: 'inline' }}
|
|
266
|
+
component="span"
|
|
267
|
+
variant="body2"
|
|
268
|
+
color="text.primary"
|
|
269
|
+
>
|
|
270
|
+
to Scott, Alex, Jennifer
|
|
271
|
+
</Typography>
|
|
272
|
+
{" — Wish I could come, but I'm out of town this…"}
|
|
273
|
+
</React.Fragment>
|
|
274
|
+
}
|
|
275
|
+
/>
|
|
276
|
+
</ListItem>
|
|
277
|
+
<Divider variant="inset" component="li" />
|
|
278
|
+
<ListItem alignItems="flex-start">
|
|
279
|
+
<ListItemAvatar>
|
|
280
|
+
<Avatar alt="Cindy Baker" />
|
|
281
|
+
</ListItemAvatar>
|
|
282
|
+
<ListItemText
|
|
283
|
+
primary="Oui Oui"
|
|
284
|
+
secondary={
|
|
285
|
+
<React.Fragment>
|
|
286
|
+
<Typography
|
|
287
|
+
sx={{ display: 'inline' }}
|
|
288
|
+
component="span"
|
|
289
|
+
variant="body2"
|
|
290
|
+
color="text.primary"
|
|
291
|
+
>
|
|
292
|
+
Sandra Adams
|
|
293
|
+
</Typography>
|
|
294
|
+
{' — Do you have Paris recommendations? Have you ever…'}
|
|
295
|
+
</React.Fragment>
|
|
296
|
+
}
|
|
297
|
+
/>
|
|
298
|
+
</ListItem>
|
|
299
|
+
</List>
|
|
300
|
+
|
|
301
|
+
<List sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
302
|
+
{[0, 1, 2, 3].map((value) => {
|
|
303
|
+
const labelId = `checkbox-list-label-${value}`
|
|
304
|
+
|
|
305
|
+
return (
|
|
306
|
+
<ListItem
|
|
307
|
+
key={value}
|
|
308
|
+
secondaryAction={
|
|
309
|
+
<IconButton edge="end" aria-label="comments">
|
|
310
|
+
<CommentIcon />
|
|
311
|
+
</IconButton>
|
|
312
|
+
}
|
|
313
|
+
disablePadding
|
|
314
|
+
>
|
|
315
|
+
<ListItemButton role={undefined} onClick={handleToggle(value)} dense>
|
|
316
|
+
<ListItemIcon>
|
|
317
|
+
<Checkbox
|
|
318
|
+
edge="start"
|
|
319
|
+
checked={checked.includes(value)}
|
|
320
|
+
tabIndex={-1}
|
|
321
|
+
disableRipple
|
|
322
|
+
inputProps={{ 'aria-labelledby': labelId }}
|
|
323
|
+
/>
|
|
324
|
+
</ListItemIcon>
|
|
325
|
+
<ListItemText id={labelId} primary={`Line item ${value + 1}`} />
|
|
326
|
+
</ListItemButton>
|
|
327
|
+
</ListItem>
|
|
328
|
+
)
|
|
329
|
+
})}
|
|
330
|
+
</List>
|
|
331
|
+
|
|
332
|
+
<List dense sx={{ width: '100%', minWidth: 360, bgcolor: 'background.paper' }}>
|
|
333
|
+
{[0, 1, 2, 3].map((value) => {
|
|
334
|
+
const labelId = `checkbox-list-secondary-label-${value}`
|
|
335
|
+
return (
|
|
336
|
+
<ListItem
|
|
337
|
+
key={value}
|
|
338
|
+
secondaryAction={
|
|
339
|
+
<Checkbox
|
|
340
|
+
edge="end"
|
|
341
|
+
onChange={handleToggle(value)}
|
|
342
|
+
checked={checked.includes(value)}
|
|
343
|
+
inputProps={{ 'aria-labelledby': labelId }}
|
|
344
|
+
/>
|
|
345
|
+
}
|
|
346
|
+
disablePadding
|
|
347
|
+
>
|
|
348
|
+
<ListItemButton>
|
|
349
|
+
<ListItemAvatar>
|
|
350
|
+
<Avatar
|
|
351
|
+
alt={`Avatar n°${value + 1}`}
|
|
352
|
+
src={`/static/images/avatar/${value + 1}.jpg`}
|
|
353
|
+
/>
|
|
354
|
+
</ListItemAvatar>
|
|
355
|
+
<ListItemText id={labelId} primary={`Line item ${value + 1}`} />
|
|
356
|
+
</ListItemButton>
|
|
357
|
+
</ListItem>
|
|
358
|
+
)
|
|
359
|
+
})}
|
|
360
|
+
</List>
|
|
361
|
+
|
|
362
|
+
<List
|
|
363
|
+
sx={{
|
|
364
|
+
width: '100%',
|
|
365
|
+
minWidth: 360,
|
|
366
|
+
bgcolor: 'background.paper',
|
|
367
|
+
position: 'relative',
|
|
368
|
+
overflow: 'auto',
|
|
369
|
+
maxHeight: 300,
|
|
370
|
+
'& ul': { padding: 0 }
|
|
371
|
+
}}
|
|
372
|
+
subheader={<li />}
|
|
373
|
+
>
|
|
374
|
+
{[0, 1, 2, 3, 4].map((sectionId) => (
|
|
375
|
+
<li key={`section-${sectionId}`}>
|
|
376
|
+
<ul>
|
|
377
|
+
<ListSubheader>{`I'm sticky ${sectionId}`}</ListSubheader>
|
|
378
|
+
{[0, 1, 2].map((item) => (
|
|
379
|
+
<ListItem key={`item-${sectionId}-${item}`}>
|
|
380
|
+
<ListItemText primary={`Item ${item}`} />
|
|
381
|
+
</ListItem>
|
|
382
|
+
))}
|
|
383
|
+
</ul>
|
|
384
|
+
</li>
|
|
385
|
+
))}
|
|
386
|
+
</List>
|
|
387
|
+
|
|
388
|
+
</Stack>
|
|
389
|
+
)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export default function AllCombinations (): JSX.Element {
|
|
393
|
+
return (
|
|
394
|
+
<ListGrid />
|
|
395
|
+
)
|
|
396
|
+
}
|