@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,34 @@
|
|
|
1
|
+
// .storybook/manager.js
|
|
2
|
+
|
|
3
|
+
import { addons } from '@storybook/addons';
|
|
4
|
+
import learningpoolTheme from './learningpoolTheme';
|
|
5
|
+
|
|
6
|
+
addons.setConfig({
|
|
7
|
+
isFullscreen: false,
|
|
8
|
+
showNav: true,
|
|
9
|
+
showPanel: true,
|
|
10
|
+
panelPosition: 'bottom',
|
|
11
|
+
enableShortcuts: true,
|
|
12
|
+
isToolshown: true,
|
|
13
|
+
theme: learningpoolTheme,
|
|
14
|
+
selectedPanel: undefined,
|
|
15
|
+
initialActive: 'sidebar',
|
|
16
|
+
sidebar: {
|
|
17
|
+
showRoots: false,
|
|
18
|
+
collapsedRoots: [
|
|
19
|
+
'Getting Started',
|
|
20
|
+
'Guidelines',
|
|
21
|
+
'Components',
|
|
22
|
+
'Templates',
|
|
23
|
+
'Pages',
|
|
24
|
+
'other'
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
toolbar: {
|
|
28
|
+
title: { hidden: false, },
|
|
29
|
+
zoom: { hidden: false, },
|
|
30
|
+
eject: { hidden: false, },
|
|
31
|
+
copy: { hidden: false, },
|
|
32
|
+
fullscreen: { hidden: false, },
|
|
33
|
+
},
|
|
34
|
+
});
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
<link
|
|
2
|
+
rel="stylesheet"
|
|
3
|
+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
|
4
|
+
/>
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
7
|
+
|
|
8
|
+
/* @font-face {
|
|
9
|
+
font-weight: 400 700;
|
|
10
|
+
font-family: 'AudiType';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-stretch: 100% 130%;
|
|
13
|
+
src: url('https://assets.audi.com/audi-fonts/1/AudiTypeVF.woff2')
|
|
14
|
+
format('woff2-variations');
|
|
15
|
+
font-display: swap;
|
|
16
|
+
} */
|
|
17
|
+
|
|
18
|
+
.sb-show-main {
|
|
19
|
+
margin: 0;
|
|
20
|
+
/* padding: 0.5em !important; */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sbdocs-p,
|
|
24
|
+
.sbdocs-li,
|
|
25
|
+
.sbdocs-ul,
|
|
26
|
+
.sbdocs-ol,
|
|
27
|
+
.sbdocs-table,
|
|
28
|
+
.sbdocs-h1,
|
|
29
|
+
.sbdocs-h2,
|
|
30
|
+
.sbdocs-h3,
|
|
31
|
+
.sbdocs-h4,
|
|
32
|
+
.sbdocs-h5,
|
|
33
|
+
.sbdocs-h6,
|
|
34
|
+
.sbdocs-title {
|
|
35
|
+
color: #333 !important;
|
|
36
|
+
-webkit-font-smoothing: antialiased !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sbdocs-p,
|
|
40
|
+
.sbdocs-li,
|
|
41
|
+
.sbdocs-ul,
|
|
42
|
+
.sbdocs-ol,
|
|
43
|
+
.sbdocs-table {
|
|
44
|
+
font-weight: 400 !important;
|
|
45
|
+
font-size: 16px !important;
|
|
46
|
+
/* font-family: AudiType, sans-serif !important; */
|
|
47
|
+
font-style: normal !important;
|
|
48
|
+
font-stretch: 105% !important;
|
|
49
|
+
line-height: 26px !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.sbdocs > strong,
|
|
53
|
+
.sbdocs-table th {
|
|
54
|
+
font-weight: 700 !important;
|
|
55
|
+
/* font-family: AudiType, sans-serif !important; */
|
|
56
|
+
font-style: normal !important;
|
|
57
|
+
font-stretch: 105% !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.sbdocs-a {
|
|
61
|
+
padding-bottom: 0.06125em !important;
|
|
62
|
+
color: #003366 !important;
|
|
63
|
+
font-weight: 700 !important;
|
|
64
|
+
font-size: inherit !important;
|
|
65
|
+
font-style: normal !important;
|
|
66
|
+
font-stretch: 105.25% !important;
|
|
67
|
+
line-height: inherit !important;
|
|
68
|
+
border-bottom: 1px solid #003366 !important;
|
|
69
|
+
transition: color 0.3s linear, border 0.3s linear !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sbdocs-p,
|
|
73
|
+
.sbdocs-li,
|
|
74
|
+
.sbdocs-ul,
|
|
75
|
+
.sbdocs-ol {
|
|
76
|
+
margin-bottom: 0.5rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sbdocs-h1,
|
|
80
|
+
.sbdocs-h2,
|
|
81
|
+
.sbdocs-h3,
|
|
82
|
+
.sbdocs-h4,
|
|
83
|
+
.sbdocs-h5,
|
|
84
|
+
.sbdocs-h6,
|
|
85
|
+
.sbdocs-title {
|
|
86
|
+
margin: 1.1em 0 0 0 !important;
|
|
87
|
+
padding: 0 !important;
|
|
88
|
+
|
|
89
|
+
font-weight: 700 !important;
|
|
90
|
+
/* font-family: AudiType, sans-serif !important; */
|
|
91
|
+
font-stretch: 130% !important;
|
|
92
|
+
|
|
93
|
+
letter-spacing: -0.015em;
|
|
94
|
+
|
|
95
|
+
border-bottom: none !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Fixed Headlines */
|
|
99
|
+
|
|
100
|
+
/* Order 1 */
|
|
101
|
+
.sbdocs-h1,
|
|
102
|
+
.sbdocs-title {
|
|
103
|
+
margin-top: 0 !important;
|
|
104
|
+
|
|
105
|
+
font-size: 40px !important;
|
|
106
|
+
line-height: 60px !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Order 2 */
|
|
110
|
+
.sbdocs-h2 {
|
|
111
|
+
font-size: 32px !important;
|
|
112
|
+
line-height: 48px !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Order 3 */
|
|
116
|
+
.sbdocs-h3 {
|
|
117
|
+
font-size: 24px !important;
|
|
118
|
+
line-height: 36px !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Order 4 */
|
|
122
|
+
.sbdocs-h4,
|
|
123
|
+
.sbdocs-h5,
|
|
124
|
+
.sbdocs-h6 {
|
|
125
|
+
font-size: 18px !important;
|
|
126
|
+
line-height: 28px !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.tabbutton {
|
|
130
|
+
font-size: 16px !important;
|
|
131
|
+
/* font-family: AudiType, sans-serif; */
|
|
132
|
+
font-stretch: 105%;
|
|
133
|
+
line-height: normal !important;
|
|
134
|
+
font-weight: normal !important;
|
|
135
|
+
|
|
136
|
+
border-bottom-width: 2px !important;
|
|
137
|
+
border-top-width: 2px !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* .subheading {
|
|
141
|
+
font-size: 14px !important;
|
|
142
|
+
color: #003366 !important;
|
|
143
|
+
letter-spacing: 2px !important;
|
|
144
|
+
} */
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
.sbdocs-section-container {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: row;
|
|
150
|
+
align-items: flex-start;
|
|
151
|
+
margin-bottom: 50px !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.sbdocs-section-img {
|
|
155
|
+
max-width: 200px !important;
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: auto;
|
|
158
|
+
margin-right: 25px;
|
|
159
|
+
flex: 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.sbdocs-section-text {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
flex-basis: 75%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sbdocs-section-container a {
|
|
169
|
+
border-bottom: 0 !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.sbdocs-edit-link {
|
|
173
|
+
float: right;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/*
|
|
177
|
+
* Hide the "stories" heading.
|
|
178
|
+
* We just visually hide it, but don't remove it from the DOM
|
|
179
|
+
* to preseve the heading hierarchy for screen readers.
|
|
180
|
+
*/
|
|
181
|
+
.sbdocs-content #stories {
|
|
182
|
+
clip: rect(0 0 0 0);
|
|
183
|
+
clip-path: inset(50%);
|
|
184
|
+
height: 1px;
|
|
185
|
+
width: 1px;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
position: absolute;
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Hide the docblock-argstable section on the All Stories and Examples pages */
|
|
192
|
+
.sbdocs-content div[id*="all-stories--default"] + div .docblock-argstable,
|
|
193
|
+
.sbdocs-content div[id*="all-stories--default"] + div.docblock-emptyblock,
|
|
194
|
+
.sbdocs-content div[id*="examples--default"] + div .docblock-argstable,
|
|
195
|
+
.sbdocs-content div[id*="examples--default"] + div.docblock-emptyblock {
|
|
196
|
+
display: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Style the avatars list */
|
|
200
|
+
.sbdocs-content .sbdocs-avatar-list {
|
|
201
|
+
border-bottom: none !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.sbdocs-content .sbdocs-avatar {
|
|
205
|
+
background-color: grey;
|
|
206
|
+
border-radius: 50%;
|
|
207
|
+
margin: 0.25rem 0.25rem 0.25rem 0;
|
|
208
|
+
max-width: 70px;
|
|
209
|
+
width: 70px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
</style>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// .storybook/preview.js
|
|
2
|
+
|
|
3
|
+
import learningpoolTheme from './learningpoolTheme'
|
|
4
|
+
import { withTests } from '@storybook/addon-jest'
|
|
5
|
+
|
|
6
|
+
import results from '../.jest-test-results.json'
|
|
7
|
+
|
|
8
|
+
// @TODO: Pull from Design Tokens when module is available
|
|
9
|
+
const customViewports = {
|
|
10
|
+
small: {
|
|
11
|
+
name: 'S (600px)',
|
|
12
|
+
styles: {
|
|
13
|
+
height: '100%',
|
|
14
|
+
width: '600px',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
medium: {
|
|
18
|
+
name: 'M (900px)',
|
|
19
|
+
styles: {
|
|
20
|
+
height: '100%',
|
|
21
|
+
width: '900px',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
large: {
|
|
25
|
+
name: 'L (1200px)',
|
|
26
|
+
styles: {
|
|
27
|
+
height: '100%',
|
|
28
|
+
width: '1200px',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
extraLarge: {
|
|
32
|
+
name: 'XL (1536px)',
|
|
33
|
+
styles: {
|
|
34
|
+
height: '100%',
|
|
35
|
+
width: '1536px',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const decorators = [
|
|
41
|
+
withTests({
|
|
42
|
+
results,
|
|
43
|
+
}),
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
// or global addParameters
|
|
47
|
+
export const parameters = {
|
|
48
|
+
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
49
|
+
controls: {
|
|
50
|
+
matchers: {
|
|
51
|
+
color: /(background|color)$/i,
|
|
52
|
+
date: /Date$/,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
docs: {
|
|
56
|
+
theme: learningpoolTheme,
|
|
57
|
+
},
|
|
58
|
+
layout: 'centered',
|
|
59
|
+
options: {
|
|
60
|
+
storySort: {
|
|
61
|
+
method: 'alphabetical',
|
|
62
|
+
order: [
|
|
63
|
+
'Introduction',
|
|
64
|
+
'Getting Started', [
|
|
65
|
+
'*'
|
|
66
|
+
],
|
|
67
|
+
'Guidelines', [
|
|
68
|
+
'Accessibility', ['Overview', 'Principles', 'Assistive Technology', 'Heirarchy', 'Typography', 'Color and Contrast', 'Writing', 'Imagery', 'Sound and Motion', '*'],
|
|
69
|
+
],
|
|
70
|
+
'Components', [
|
|
71
|
+
'Inputs', [
|
|
72
|
+
'Autocomplete', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
73
|
+
'Button', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
74
|
+
'Checkbox', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
75
|
+
'Radio', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
76
|
+
'Select', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
77
|
+
'Slider', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
78
|
+
'Switch', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
79
|
+
'TextField', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
80
|
+
'ToggleButton', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
81
|
+
],
|
|
82
|
+
'Data Display', [
|
|
83
|
+
'Avatar', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
84
|
+
'Chip', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
85
|
+
'List', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
86
|
+
'Tooltip', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
87
|
+
],
|
|
88
|
+
'Feedback', [
|
|
89
|
+
'Alert', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
90
|
+
],
|
|
91
|
+
'Landmarks', [
|
|
92
|
+
'Header', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
93
|
+
],
|
|
94
|
+
'Navigation', [
|
|
95
|
+
'Drawer', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
96
|
+
'Vertical Navigation', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
97
|
+
'Mobile Navigation', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
98
|
+
]
|
|
99
|
+
],
|
|
100
|
+
'Templates', [
|
|
101
|
+
'Button', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
102
|
+
],
|
|
103
|
+
'Pages', [
|
|
104
|
+
'Button', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
105
|
+
],
|
|
106
|
+
'Experimental', [
|
|
107
|
+
'Button', ['Overview', 'Accessibility', 'Properties', '*'],
|
|
108
|
+
],
|
|
109
|
+
'Roadmap',
|
|
110
|
+
'Contact Us',
|
|
111
|
+
'*',
|
|
112
|
+
'WIP'
|
|
113
|
+
],
|
|
114
|
+
locales: ''
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
viewport: {
|
|
118
|
+
viewports: customViewports,
|
|
119
|
+
},
|
|
120
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const storySort = options => (a, b) => {
|
|
2
|
+
// Debug.
|
|
3
|
+
// console.log({a, b});
|
|
4
|
+
|
|
5
|
+
// If the two stories have the same story kind, then use the default
|
|
6
|
+
// ordering, which is the order they are defined in the story file.
|
|
7
|
+
if (a[1].kind === b[1].kind) {
|
|
8
|
+
return 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const storyKindA = a[1].kind.split('/');
|
|
12
|
+
const storyKindB = b[1].kind.split('/');
|
|
13
|
+
let depth = 0;
|
|
14
|
+
let nameA, nameB, indexA, indexB, index;
|
|
15
|
+
let ordering = options.order || [];
|
|
16
|
+
|
|
17
|
+
while (true) {
|
|
18
|
+
nameA = storyKindA[depth] ? storyKindA[depth] : '';
|
|
19
|
+
nameB = storyKindB[depth] ? storyKindB[depth] : '';
|
|
20
|
+
|
|
21
|
+
if (nameA === nameB) {
|
|
22
|
+
// If a nested array is provided for a name, use it for ordering.
|
|
23
|
+
index = ordering.indexOf(nameA);
|
|
24
|
+
if (index !== -1 && Array.isArray(ordering[index + 1])) {
|
|
25
|
+
ordering = ordering[index + 1];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// We'll need to look at the next part of the name.
|
|
29
|
+
depth++;
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
// Look for the names in the given `ordering` array.
|
|
34
|
+
indexA = ordering.indexOf(nameA);
|
|
35
|
+
indexB = ordering.indexOf(nameB);
|
|
36
|
+
|
|
37
|
+
// If at least one of the names is found, sort by the `ordering` array.
|
|
38
|
+
if (indexA !== -1 || indexB !== -1) {
|
|
39
|
+
// If one of the names is not found in `ordering`, list it last.
|
|
40
|
+
if (indexA === -1) {
|
|
41
|
+
indexA = ordering.length;
|
|
42
|
+
}
|
|
43
|
+
if (indexB === -1) {
|
|
44
|
+
indexB = ordering.length;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return indexA - indexB;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Otherwise, use alphabetical order.
|
|
52
|
+
return nameA.localeCompare(nameB);
|
|
53
|
+
}
|
|
54
|
+
};
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
## [1.6.1](https://github.com/HT2-Labs/design-system/compare/v1.6.0...v1.6.1) (2023-02-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **AnimationLibrary:** Swapping out framer-motion to react-spring [DS-604] ([#144](https://github.com/HT2-Labs/design-system/issues/144)) ([8b95ade](https://github.com/HT2-Labs/design-system/commit/8b95ade36dca5ba9351d87086a0ff360331fd3ed))
|
package/amplify.yml
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|