@learningpool/ui 1.6.3 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/assets → assets}/Images.d.ts +0 -0
- package/{dist/assets → assets}/Images.js +2 -2
- package/{dist/components → components}/atoms/Autocomplete/Autocomplete.d.ts +0 -0
- package/{dist/components → components}/atoms/Autocomplete/Autocomplete.js +0 -0
- package/{dist/components → components}/atoms/Button/Button.d.ts +0 -0
- package/{dist/components → components}/atoms/Button/Button.js +0 -0
- package/{dist/components → components}/atoms/Checkbox/Checkbox.d.ts +0 -0
- package/{dist/components → components}/atoms/Checkbox/Checkbox.js +0 -0
- package/{dist/components → components}/atoms/IconButton/IconButton.d.ts +0 -0
- package/{dist/components → components}/atoms/IconButton/IconButton.js +0 -0
- package/{dist/components → components}/atoms/Radio/Radio.d.ts +0 -0
- package/{dist/components → components}/atoms/Radio/Radio.js +0 -0
- package/{dist/components → components}/atoms/Select/Select.d.ts +0 -0
- package/{dist/components → components}/atoms/Select/Select.js +0 -0
- package/{dist/components → components}/atoms/Slider/Slider.d.ts +0 -0
- package/{dist/components → components}/atoms/Slider/Slider.js +0 -0
- package/{dist/components → components}/atoms/Switch/Switch.d.ts +0 -0
- package/{dist/components → components}/atoms/Switch/Switch.js +0 -0
- package/{dist/components → components}/atoms/TextField/TextField.d.ts +0 -0
- package/{dist/components → components}/atoms/TextField/TextField.js +0 -0
- package/{dist/components → components}/atoms/ToggleButton/ToggleButton.d.ts +0 -0
- package/{dist/components → components}/atoms/ToggleButton/ToggleButton.js +0 -0
- package/{dist/components → components}/datadisplay/Avatar/Avatar.d.ts +0 -0
- package/{dist/components → components}/datadisplay/Avatar/Avatar.js +0 -0
- package/{dist/components → components}/datadisplay/Chip/Chip.d.ts +0 -0
- package/{dist/components → components}/datadisplay/Chip/Chip.js +0 -0
- package/{dist/components → components}/datadisplay/List/List.d.ts +0 -0
- package/{dist/components → components}/datadisplay/List/List.js +0 -0
- package/{dist/components → components}/datadisplay/Tooltip/Tooltip.d.ts +0 -0
- package/{dist/components → components}/datadisplay/Tooltip/Tooltip.js +0 -0
- package/{dist/components → components}/feedback/Alert/Alert.d.ts +0 -0
- package/{dist/components → components}/feedback/Alert/Alert.js +0 -0
- package/{dist/components → components}/landmarks/Header/Header.d.ts +0 -0
- package/{dist/components → components}/landmarks/Header/Header.js +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderActionButtons.d.ts +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderActionButtons.js +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderStyles.d.ts +0 -0
- package/{dist/components → components}/landmarks/Header/HeaderStyles.js +0 -0
- package/{dist/components → components}/navigation/Drawer/Drawer.d.ts +0 -0
- package/{dist/components → components}/navigation/Drawer/Drawer.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigation.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigation.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatar.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawer.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +1 -1
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationMotion.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationMotion.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationNotchIndicator.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearch.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearch.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationSearchStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationStyles.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +0 -0
- package/{dist/components → components}/navigation/MobileNavigation/MobileNavigationToggleX.js +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigation.d.ts +1 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigation.js +13 -11
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatar.js +11 -7
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +49 -0
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +33 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +1 -1
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +3 -3
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +1 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +16 -15
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +3 -3
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationMotion.js +0 -0
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +6 -1
- package/{dist/components → components}/navigation/VerticalNavigation/VerticalNavigationStyles.js +14 -15
- package/{dist/components → components}/pages/ErrorPage/ErrorPage.d.ts +0 -0
- package/{dist/components → components}/pages/ErrorPage/ErrorPage.js +0 -0
- package/{dist/components → components}/pages/ErrorPage/ErrorPageStyles.d.ts +0 -0
- package/{dist/components → components}/pages/ErrorPage/ErrorPageStyles.js +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSide.d.ts +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSide.js +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSideStyles.d.ts +0 -0
- package/{dist/components → components}/pages/SideInSide/SideInSideStyles.js +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcher.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcher.js +1 -1
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherItem.js +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherStyles.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/AppSwitcherStyles.js +8 -6
- package/{dist/components → components}/stream/AppSwitcher/constants.d.ts +0 -0
- package/{dist/components → components}/stream/AppSwitcher/constants.js +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/lang/en-us.d.ts +15 -0
- package/lang/en-us.js +18 -0
- package/package.json +3 -70
- package/{dist/types → types}/components/navigation/VerticalNavigation.d.ts +0 -0
- package/{dist/types → types}/components/navigation/VerticalNavigation.js +0 -0
- package/{dist/types → types}/components/navigation/VerticalNavigationAvatar.d.ts +1 -0
- package/{dist/types → types}/components/navigation/VerticalNavigationAvatar.js +0 -0
- package/{dist/types → types}/components/stream/AppSwitcher.d.ts +0 -0
- package/{dist/types → types}/components/stream/AppSwitcher.js +0 -0
- package/{dist/types → types}/index.d.ts +0 -0
- package/{dist/types → types}/index.js +0 -0
- package/{dist/utils → utils}/constants.d.ts +0 -0
- package/{dist/utils → utils}/constants.js +0 -0
- package/{dist/utils → utils}/helpers.d.ts +0 -0
- package/{dist/utils → utils}/helpers.js +0 -0
- package/{dist/utils → utils}/hooks.d.ts +0 -0
- package/{dist/utils → utils}/hooks.js +0 -0
- package/{dist/utils → utils}/index.d.ts +0 -0
- package/{dist/utils → utils}/index.js +0 -0
- package/{dist/utils → utils}/theme.d.ts +0 -0
- package/{dist/utils → utils}/theme.js +0 -0
- package/.eslintrc.js +0 -40
- package/.github/pull_request_template.md +0 -23
- package/.github/renovate.json +0 -57
- package/.github/workflows/integration.yml +0 -53
- package/.github/workflows/wss.yml +0 -22
- package/.jest-test-results.json +0 -1
- package/.releaserc +0 -32
- package/.storybook/learningpoolTheme.js +0 -39
- package/.storybook/main.js +0 -21
- package/.storybook/manager-head.html +0 -175
- package/.storybook/manager.js +0 -34
- package/.storybook/preview-head.html +0 -212
- package/.storybook/preview.js +0 -120
- package/.storybook/storybook-sort.js +0 -54
- package/CHANGELOG.md +0 -20
- package/amplify.yml +0 -16
- package/babel.config.json +0 -14
- package/dist/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +0 -31
- package/dist/lang/en-us.d.ts +0 -6
- package/dist/lang/en-us.js +0 -6
- package/dist/package.json +0 -41
- package/jest.config.ts +0 -11
- package/jest.setup.ts +0 -5
- package/license +0 -7
- package/merge.js +0 -27
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/assets/atoms.svg +0 -5
- package/public/assets/automation.svg +0 -1
- package/public/assets/avatar-1.jpg +0 -0
- package/public/assets/avatar-2.jpg +0 -0
- package/public/assets/avatar-3.jpg +0 -0
- package/public/assets/flux/icon-dark.svg +0 -6
- package/public/assets/flux/icon-light.svg +0 -1
- package/public/assets/flux/icon-white.svg +0 -6
- package/public/assets/flux/icon.svg +0 -6
- package/public/assets/flux/logo-dark.svg +0 -22
- package/public/assets/flux/logo-light.svg +0 -1
- package/public/assets/flux/logo-white.svg +0 -22
- package/public/assets/flux/logo.svg +0 -22
- package/public/assets/iPhone6.jpg +0 -0
- package/public/assets/iPhone6Plus.jpg +0 -0
- package/public/assets/lp-logo.png +0 -0
- package/public/assets/lplogo.svg +0 -1
- package/public/assets/molecules.svg +0 -8
- package/public/assets/organisms.svg +0 -21
- package/public/assets/pages.svg +0 -4
- package/public/assets/particles.svg +0 -3
- package/public/assets/stream-dark.png +0 -0
- package/public/assets/stream-suite-logo.svg +0 -38
- package/public/assets/stream-white.png +0 -0
- package/public/assets/stream.png +0 -0
- package/public/assets/templates.svg +0 -3
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/public/site.webmanifest +0 -1
- package/readme.md +0 -132
- package/src/docs.tsx +0 -167
- package/src/lib/assets/Images.tsx +0 -47
- package/src/lib/assets/stream-suite-logo.svg +0 -38
- package/src/lib/components/atoms/Autocomplete/Autocomplete.test.tsx +0 -179
- package/src/lib/components/atoms/Autocomplete/Autocomplete.tsx +0 -14
- package/src/lib/components/atoms/Button/Button.test.tsx +0 -166
- package/src/lib/components/atoms/Button/Button.tsx +0 -16
- package/src/lib/components/atoms/Checkbox/Checkbox.test.tsx +0 -85
- package/src/lib/components/atoms/Checkbox/Checkbox.tsx +0 -10
- package/src/lib/components/atoms/IconButton/IconButton.test.tsx +0 -60
- package/src/lib/components/atoms/IconButton/IconButton.tsx +0 -9
- package/src/lib/components/atoms/Radio/Radio.test.tsx +0 -136
- package/src/lib/components/atoms/Radio/Radio.tsx +0 -10
- package/src/lib/components/atoms/Select/Select.test.tsx +0 -158
- package/src/lib/components/atoms/Select/Select.tsx +0 -12
- package/src/lib/components/atoms/Slider/Slider.test.tsx +0 -103
- package/src/lib/components/atoms/Slider/Slider.tsx +0 -10
- package/src/lib/components/atoms/Switch/Switch.test.tsx +0 -96
- package/src/lib/components/atoms/Switch/Switch.tsx +0 -10
- package/src/lib/components/atoms/TextField/TextField.test.tsx +0 -131
- package/src/lib/components/atoms/TextField/TextField.tsx +0 -31
- package/src/lib/components/atoms/ToggleButton/ToggleButton.test.tsx +0 -122
- package/src/lib/components/atoms/ToggleButton/ToggleButton.tsx +0 -10
- package/src/lib/components/datadisplay/Avatar/Avatar.test.tsx +0 -187
- package/src/lib/components/datadisplay/Avatar/Avatar.tsx +0 -35
- package/src/lib/components/datadisplay/Avatar/avatar-1.jpg +0 -0
- package/src/lib/components/datadisplay/Chip/Chip.test.tsx +0 -82
- package/src/lib/components/datadisplay/Chip/Chip.tsx +0 -11
- package/src/lib/components/datadisplay/List/List.test.tsx +0 -168
- package/src/lib/components/datadisplay/List/List.tsx +0 -8
- package/src/lib/components/datadisplay/Tooltip/Tooltip.test.tsx +0 -98
- package/src/lib/components/datadisplay/Tooltip/Tooltip.tsx +0 -9
- package/src/lib/components/feedback/Alert/Alert.test.tsx +0 -139
- package/src/lib/components/feedback/Alert/Alert.tsx +0 -10
- package/src/lib/components/landmarks/Header/Header.tsx +0 -140
- package/src/lib/components/landmarks/Header/HeaderActionButtons.tsx +0 -117
- package/src/lib/components/landmarks/Header/HeaderStyles.tsx +0 -62
- package/src/lib/components/navigation/Drawer/Drawer.test.tsx +0 -95
- package/src/lib/components/navigation/Drawer/Drawer.tsx +0 -21
- package/src/lib/components/navigation/MobileNavigation/MobileNavigation.tsx +0 -276
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatar.tsx +0 -334
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.tsx +0 -77
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawer.tsx +0 -197
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.tsx +0 -143
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.tsx +0 -192
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.tsx +0 -67
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.tsx +0 -192
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.tsx +0 -217
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationMotion.tsx +0 -119
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.tsx +0 -35
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearch.tsx +0 -114
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationSearchStyles.tsx +0 -47
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationStyles.tsx +0 -320
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.tsx +0 -59
- package/src/lib/components/navigation/MobileNavigation/MobileNavigationToggleX.tsx +0 -51
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigation.tsx +0 -468
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatar.tsx +0 -208
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.tsx +0 -75
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.tsx +0 -196
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.tsx +0 -94
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.tsx +0 -212
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.tsx +0 -240
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationMotion.tsx +0 -119
- package/src/lib/components/navigation/VerticalNavigation/VerticalNavigationStyles.tsx +0 -302
- package/src/lib/components/pages/ErrorPage/ErrorPage.test.tsx +0 -78
- package/src/lib/components/pages/ErrorPage/ErrorPage.tsx +0 -50
- package/src/lib/components/pages/ErrorPage/ErrorPageStyles.tsx +0 -30
- package/src/lib/components/pages/SideInSide/SideInSide.tsx +0 -100
- package/src/lib/components/pages/SideInSide/SideInSideStyles.tsx +0 -62
- package/src/lib/components/stream/AppSwitcher/AppSwitcher.tsx +0 -381
- package/src/lib/components/stream/AppSwitcher/AppSwitcherItem.tsx +0 -84
- package/src/lib/components/stream/AppSwitcher/AppSwitcherStyles.tsx +0 -325
- package/src/lib/components/stream/AppSwitcher/constants.tsx +0 -28
- package/src/lib/index.tsx +0 -148
- package/src/lib/lang/en-us.js +0 -6
- package/src/lib/types/components/navigation/VerticalNavigation.ts +0 -52
- package/src/lib/types/components/navigation/VerticalNavigationAvatar.ts +0 -26
- package/src/lib/types/components/stream/AppSwitcher.ts +0 -10
- package/src/lib/types/index.ts +0 -9
- package/src/lib/utils/constants.tsx +0 -11
- package/src/lib/utils/helpers.tsx +0 -77
- package/src/lib/utils/hooks.tsx +0 -33
- package/src/lib/utils/index.tsx +0 -4
- package/src/lib/utils/theme.tsx +0 -79
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/stories/Components/DataDisplay/Avatar/Accessibility.stories.mdx +0 -34
- package/src/stories/Components/DataDisplay/Avatar/AllCombinations.tsx +0 -56
- package/src/stories/Components/DataDisplay/Avatar/Avatar.stories.tsx +0 -19
- package/src/stories/Components/DataDisplay/Avatar/Examples.stories.tsx +0 -278
- package/src/stories/Components/DataDisplay/Avatar/Overview.stories.mdx +0 -47
- package/src/stories/Components/DataDisplay/Chip/Accessibility.stories.mdx +0 -29
- package/src/stories/Components/DataDisplay/Chip/AllCombinations.tsx +0 -58
- package/src/stories/Components/DataDisplay/Chip/Chip.stories.tsx +0 -21
- package/src/stories/Components/DataDisplay/Chip/Examples.stories.tsx +0 -126
- package/src/stories/Components/DataDisplay/Chip/Overview.stories.mdx +0 -57
- package/src/stories/Components/DataDisplay/List/Accessibility.stories.mdx +0 -54
- package/src/stories/Components/DataDisplay/List/AllCombinations.tsx +0 -396
- package/src/stories/Components/DataDisplay/List/Examples.stories.tsx +0 -501
- package/src/stories/Components/DataDisplay/List/List.stories.tsx +0 -35
- package/src/stories/Components/DataDisplay/List/Overview.stories.mdx +0 -69
- package/src/stories/Components/DataDisplay/Table/Overview.stories.mdx +0 -70
- package/src/stories/Components/DataDisplay/Tooltip/Accessibility.stories.mdx +0 -39
- package/src/stories/Components/DataDisplay/Tooltip/AllCombinations.tsx +0 -134
- package/src/stories/Components/DataDisplay/Tooltip/Examples.stories.tsx +0 -237
- package/src/stories/Components/DataDisplay/Tooltip/Overview.stories.mdx +0 -58
- package/src/stories/Components/DataDisplay/Tooltip/Tooltip.stories.tsx +0 -22
- package/src/stories/Components/Feedback/Alert/Accessibility.stories.mdx +0 -25
- package/src/stories/Components/Feedback/Alert/Alert.stories.tsx +0 -22
- package/src/stories/Components/Feedback/Alert/AllCombinations.tsx +0 -37
- package/src/stories/Components/Feedback/Alert/Examples.stories.tsx +0 -137
- package/src/stories/Components/Feedback/Alert/Overview.stories.mdx +0 -62
- package/src/stories/Components/Inputs/Autocomplete/Accessibility.stories.mdx +0 -31
- package/src/stories/Components/Inputs/Autocomplete/AllCombinations.tsx +0 -182
- package/src/stories/Components/Inputs/Autocomplete/Autocomplete.stories.tsx +0 -31
- package/src/stories/Components/Inputs/Autocomplete/Examples.stories.tsx +0 -233
- package/src/stories/Components/Inputs/Autocomplete/Overview.stories.mdx +0 -52
- package/src/stories/Components/Inputs/Button/Accessibility.stories.mdx +0 -52
- package/src/stories/Components/Inputs/Button/AllCombinations.tsx +0 -53
- package/src/stories/Components/Inputs/Button/Button.stories.tsx +0 -23
- package/src/stories/Components/Inputs/Button/Examples.stories.tsx +0 -190
- package/src/stories/Components/Inputs/Button/Overview.stories.mdx +0 -52
- package/src/stories/Components/Inputs/Checkbox/Accessibility.stories.mdx +0 -38
- package/src/stories/Components/Inputs/Checkbox/AllCombinations.tsx +0 -55
- package/src/stories/Components/Inputs/Checkbox/Checkbox.stories.tsx +0 -22
- package/src/stories/Components/Inputs/Checkbox/Examples.stories.tsx +0 -363
- package/src/stories/Components/Inputs/Checkbox/Overview.stories.mdx +0 -63
- package/src/stories/Components/Inputs/IconButton/Examples.stories.tsx +0 -24
- package/src/stories/Components/Inputs/IconButton/IconButton.stories.tsx +0 -26
- package/src/stories/Components/Inputs/Radio/Accessibility.stories.mdx +0 -61
- package/src/stories/Components/Inputs/Radio/AllCombinations.tsx +0 -75
- package/src/stories/Components/Inputs/Radio/Examples.stories.tsx +0 -333
- package/src/stories/Components/Inputs/Radio/Overview.stories.mdx +0 -74
- package/src/stories/Components/Inputs/Radio/Radio.stories.tsx +0 -22
- package/src/stories/Components/Inputs/Select/Accessibility.stories.mdx +0 -51
- package/src/stories/Components/Inputs/Select/AllCombinations.tsx +0 -63
- package/src/stories/Components/Inputs/Select/Examples.stories.tsx +0 -803
- package/src/stories/Components/Inputs/Select/Overview.stories.mdx +0 -73
- package/src/stories/Components/Inputs/Select/Select.stories.tsx +0 -22
- package/src/stories/Components/Inputs/Slider/Accessibility.stories.mdx +0 -43
- package/src/stories/Components/Inputs/Slider/AllCombinations.tsx +0 -30
- package/src/stories/Components/Inputs/Slider/Examples.stories.tsx +0 -146
- package/src/stories/Components/Inputs/Slider/Overview.stories.mdx +0 -59
- package/src/stories/Components/Inputs/Slider/Slider.stories.tsx +0 -27
- package/src/stories/Components/Inputs/Switch/Accessibility.stories.mdx +0 -34
- package/src/stories/Components/Inputs/Switch/AllCombinations.tsx +0 -45
- package/src/stories/Components/Inputs/Switch/Examples.stories.tsx +0 -213
- package/src/stories/Components/Inputs/Switch/Overview.stories.mdx +0 -62
- package/src/stories/Components/Inputs/Switch/Switch.stories.tsx +0 -22
- package/src/stories/Components/Inputs/TextField/Accessibility.stories.mdx +0 -29
- package/src/stories/Components/Inputs/TextField/AllCombinations.tsx +0 -57
- package/src/stories/Components/Inputs/TextField/Examples.stories.tsx +0 -127
- package/src/stories/Components/Inputs/TextField/Overview.stories.mdx +0 -60
- package/src/stories/Components/Inputs/TextField/TextField.stories.tsx +0 -261
- package/src/stories/Components/Inputs/ToggleButton/Accessibility.stories.mdx +0 -32
- package/src/stories/Components/Inputs/ToggleButton/AllCombinations.tsx +0 -113
- package/src/stories/Components/Inputs/ToggleButton/Examples.stories.tsx +0 -339
- package/src/stories/Components/Inputs/ToggleButton/Overview.stories.mdx +0 -55
- package/src/stories/Components/Inputs/ToggleButton/ToggleButton.stories.tsx +0 -19
- package/src/stories/Components/Landmarks/Header/Examples.stories.tsx +0 -197
- package/src/stories/Components/Landmarks/Header/Header.stories.tsx +0 -34
- package/src/stories/Components/Landmarks/Header/Overview.stories.mdx +0 -44
- package/src/stories/Components/Navigation/Drawer/Accessibility.stories.mdx +0 -13
- package/src/stories/Components/Navigation/Drawer/Drawer.stories.tsx +0 -80
- package/src/stories/Components/Navigation/Drawer/Examples.stories.tsx +0 -440
- package/src/stories/Components/Navigation/Drawer/Overview.stories.mdx +0 -43
- package/src/stories/Components/Navigation/MobileNavigation/Accessibility.stories.mdx +0 -14
- package/src/stories/Components/Navigation/MobileNavigation/Examples.stories.tsx +0 -384
- package/src/stories/Components/Navigation/MobileNavigation/MobileNavigation.stories.tsx +0 -24
- package/src/stories/Components/Navigation/MobileNavigation/Overview.stories.mdx +0 -47
- package/src/stories/Components/Navigation/VerticalNavigation/Accessibility.stories.mdx +0 -14
- package/src/stories/Components/Navigation/VerticalNavigation/Examples.stories.tsx +0 -307
- package/src/stories/Components/Navigation/VerticalNavigation/Overview.stories.mdx +0 -47
- package/src/stories/Components/Navigation/VerticalNavigation/VerticalNavigation.stories.tsx +0 -24
- package/src/stories/ContactUs.stories.mdx +0 -21
- package/src/stories/Experimental/Test.stories.mdx +0 -46
- package/src/stories/GettingStarted/Designer.stories.mdx +0 -86
- package/src/stories/GettingStarted/Developer.stories.mdx +0 -134
- package/src/stories/Guidelines/Accessibility/AssistiveTechnology.stories.mdx +0 -70
- package/src/stories/Guidelines/Accessibility/ColorAndContrast.stories.mdx +0 -109
- package/src/stories/Guidelines/Accessibility/Hierarchy.stories.mdx +0 -119
- package/src/stories/Guidelines/Accessibility/Imagery.stories.mdx +0 -136
- package/src/stories/Guidelines/Accessibility/Overview.stories.mdx +0 -44
- package/src/stories/Guidelines/Accessibility/Principles.stories.mdx +0 -156
- package/src/stories/Guidelines/Accessibility/SoundAndMotion.stories.mdx +0 -59
- package/src/stories/Guidelines/Accessibility/Typography.stories.mdx +0 -69
- package/src/stories/Guidelines/Accessibility/Writing.stories.mdx +0 -188
- package/src/stories/Guidelines/Styleguide/ColorSwatch.tsx +0 -53
- package/src/stories/Guidelines/Styleguide/Colors.stories.mdx +0 -118
- package/src/stories/Guidelines/Styleguide/Typography.stories.mdx +0 -84
- package/src/stories/Introduction.stories.mdx +0 -65
- package/src/stories/Pages/ErrorPage.stories.tsx +0 -30
- package/src/stories/Pages/SideInSide.stories.tsx +0 -195
- package/src/stories/Roadmap.stories.mdx +0 -19
- package/src/stories/Templates/Login.stories.mdx +0 -46
- package/src/stories/assets/Atomic_Design_Icons-Dark.svg +0 -24
- package/src/stories/assets/Atomic_Design_Icons-Light.svg +0 -25
- package/src/stories/assets/accessibility-1.png +0 -0
- package/src/stories/assets/accessibility-2.png +0 -0
- package/src/stories/assets/accessibility-3.png +0 -0
- package/src/stories/assets/accessibility-banner.png +0 -0
- package/src/stories/assets/atoms.svg +0 -6
- package/src/stories/assets/design_system_2022-02-11_12.22pm.png +0 -0
- package/src/stories/assets/figma-tokens.png +0 -0
- package/src/stories/assets/hierarchy-1.jpg +0 -0
- package/src/stories/assets/hierarchy-2.jpg +0 -0
- package/src/stories/assets/hierarchy-3.jpg +0 -0
- package/src/stories/assets/icon-contrast-1.jpg +0 -0
- package/src/stories/assets/icon-contrast-2.jpg +0 -0
- package/src/stories/assets/imagery-1.png +0 -0
- package/src/stories/assets/imagery-2.png +0 -0
- package/src/stories/assets/imagery-3.png +0 -0
- package/src/stories/assets/imagery-4.jpg +0 -0
- package/src/stories/assets/molecules.svg +0 -9
- package/src/stories/assets/organisms.svg +0 -22
- package/src/stories/assets/pages.svg +0 -5
- package/src/stories/assets/particles.svg +0 -4
- package/src/stories/assets/templates.svg +0 -4
- package/src/stories/assets/testData.tsx +0 -102
- package/src/stories/assets/text-contrast-1.jpg +0 -0
- package/src/stories/assets/text-contrast-2.jpg +0 -0
- package/src/stories/assets/typography-1.png +0 -0
- package/src/stories/assets/visual-clues-1.png +0 -0
- package/src/stories/assets/visual-clues-2.png +0 -0
- package/src/stories/assets/writing-1.jpg +0 -0
- package/src/stories/assets/writing-2.png +0 -0
- package/src/stories/assets/writing-3.png +0 -0
- package/src/stories/assets/writing-4.png +0 -0
- package/src/stories/utils/CustomIcons.tsx +0 -44
- package/tsconfig.eslint.json +0 -16
- package/tsconfig.json +0 -50
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ListItem as SSListItem, ListItemButton as SSListItemButton,
|
|
3
|
-
ListItemText as SSListItemText, ListItemIcon as SSListItemIcon
|
|
4
|
-
} from '../../../../index'
|
|
5
|
-
import { styled } from '@mui/material/styles'
|
|
6
|
-
import { ArrowRight } from '@mui/icons-material'
|
|
7
|
-
|
|
8
|
-
export const DRAWER_WIDTH = {
|
|
9
|
-
Collapsed: 60,
|
|
10
|
-
Expanded: 300
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const ICON = {
|
|
14
|
-
Height: 40,
|
|
15
|
-
Width: 57
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const ListItem = styled(SSListItem, {
|
|
19
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
20
|
-
})<{ isDrawerOpen?: boolean }>`
|
|
21
|
-
align-items: flex-start;
|
|
22
|
-
color: ${props => props.theme.palette.mode === 'dark'
|
|
23
|
-
? props.theme.palette.primary.contrastText
|
|
24
|
-
: props.theme.palette.getContrastText(props.theme.palette.background.paper)};
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
min-height: ${ICON.Height + 8}px;
|
|
27
|
-
padding: 0 !important;
|
|
28
|
-
transition: width
|
|
29
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
30
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
31
|
-
${props => props.isDrawerOpen ? '0ms' : '250ms'};
|
|
32
|
-
width: ${DRAWER_WIDTH.Expanded}px;
|
|
33
|
-
|
|
34
|
-
.MuiListItemIcon-root: {
|
|
35
|
-
margin: ${props => props.theme.spacing(0.5)} 0 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.MuiListItemText-root .MuiTypography-root: {
|
|
39
|
-
white-space: normal;
|
|
40
|
-
}
|
|
41
|
-
`
|
|
42
|
-
|
|
43
|
-
export const ListItemButton = styled(SSListItemButton, {
|
|
44
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
45
|
-
})<{
|
|
46
|
-
isDrawerOpen?: boolean
|
|
47
|
-
}>`
|
|
48
|
-
align-items: flex-start !important;
|
|
49
|
-
background-color: ${props =>
|
|
50
|
-
props.theme.palette.mode === 'dark'
|
|
51
|
-
? props.theme.palette.primary.main
|
|
52
|
-
: props.theme.palette.background.paper};
|
|
53
|
-
color: ${props =>
|
|
54
|
-
props.theme.palette.mode === 'dark'
|
|
55
|
-
? props.theme.palette.primary.contrastText
|
|
56
|
-
: props.theme.palette.getContrastText(props.theme.palette.background.paper)};
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-wrap: wrap;
|
|
59
|
-
min-height: ${ICON.Height + 8}px;
|
|
60
|
-
max-height: ${props => props.isDrawerOpen
|
|
61
|
-
? 'auto'
|
|
62
|
-
: `${ICON.Height + 8}px`};
|
|
63
|
-
text-decoration: none;
|
|
64
|
-
text-transform: none;
|
|
65
|
-
transition: all
|
|
66
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
67
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
68
|
-
0ms !important;
|
|
69
|
-
padding: 0 ${props => props.theme.spacing(2)} 0 0;
|
|
70
|
-
width: 100%;
|
|
71
|
-
|
|
72
|
-
/* Indicator */
|
|
73
|
-
:before {
|
|
74
|
-
background-color: ${props =>
|
|
75
|
-
props.theme.palette.mode === 'dark'
|
|
76
|
-
? 'rgba(255, 255, 255, 0.5)'
|
|
77
|
-
: props.theme.palette.primary.main};
|
|
78
|
-
border-radius: 50px;
|
|
79
|
-
content: '';
|
|
80
|
-
height: calc(100% - 10px);
|
|
81
|
-
opacity: 0;
|
|
82
|
-
position: absolute;
|
|
83
|
-
top: 5px;
|
|
84
|
-
left: 3px;
|
|
85
|
-
transition: all
|
|
86
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
87
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
88
|
-
width: 4px;
|
|
89
|
-
transform: scale(.95);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:hover:before,
|
|
93
|
-
:focus-visible:before {
|
|
94
|
-
opacity: 1;
|
|
95
|
-
transform: scale(1);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
:hover {
|
|
99
|
-
background-color: ${props =>
|
|
100
|
-
props.theme.palette.mode === 'dark'
|
|
101
|
-
? props.theme.palette.primary.main
|
|
102
|
-
: props.theme.palette.background.paper};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
:focus-visible {
|
|
106
|
-
background-color: ${props =>
|
|
107
|
-
props.theme.palette.mode === 'dark'
|
|
108
|
-
? props.theme.palette.primary.dark
|
|
109
|
-
: '#E6EAF0'};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:active {
|
|
113
|
-
background-color: transparent
|
|
114
|
-
}
|
|
115
|
-
`
|
|
116
|
-
|
|
117
|
-
export const ListItemButtonChild = styled(SSListItemButton, {
|
|
118
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
|
|
119
|
-
})<{
|
|
120
|
-
isDrawerOpen?: boolean
|
|
121
|
-
index?: number
|
|
122
|
-
}>`
|
|
123
|
-
align-items: center;
|
|
124
|
-
color: ${props => props.theme.palette.mode === 'dark'
|
|
125
|
-
? 'rgba(255, 255, 255, 0.75)'
|
|
126
|
-
: 'rgba(0, 0, 0, 0.75)'};
|
|
127
|
-
display: flex;
|
|
128
|
-
min-height: none;
|
|
129
|
-
max-height: none;
|
|
130
|
-
text-decoration: none;
|
|
131
|
-
text-transform: none;
|
|
132
|
-
transition: max-height
|
|
133
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
134
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
135
|
-
0ms !important;
|
|
136
|
-
padding: 0;
|
|
137
|
-
width: 100%;
|
|
138
|
-
|
|
139
|
-
.MuiTypography-root: {
|
|
140
|
-
font-size: .9rem;
|
|
141
|
-
opacity: ${props => props.isDrawerOpen ? 1 : 0};
|
|
142
|
-
transition: opacity
|
|
143
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
144
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
145
|
-
${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.MuiListItemText-root: {
|
|
149
|
-
padding: .25rem .5rem;
|
|
150
|
-
}
|
|
151
|
-
`
|
|
152
|
-
|
|
153
|
-
export const ListItemAvatar = styled(ListItemButton, {
|
|
154
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
155
|
-
})<{ isDrawerOpen?: boolean }>`
|
|
156
|
-
align-items: center;
|
|
157
|
-
min-height: 52px;
|
|
158
|
-
max-height: ${props => props.isDrawerOpen
|
|
159
|
-
? '200px'
|
|
160
|
-
: `${ICON.Height + 8}px`};
|
|
161
|
-
transition: max-height
|
|
162
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
163
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
164
|
-
0ms !important;
|
|
165
|
-
|
|
166
|
-
.MuiListItemIcon-root {
|
|
167
|
-
justify-content: center;
|
|
168
|
-
margin: 0;
|
|
169
|
-
min-width: 0;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.MuiAvatar-root {
|
|
173
|
-
height: 32px;
|
|
174
|
-
width: 32px;
|
|
175
|
-
}
|
|
176
|
-
`
|
|
177
|
-
|
|
178
|
-
export const ListItemIcon = styled(SSListItemIcon)`
|
|
179
|
-
align-items: center;
|
|
180
|
-
color: ${props => props.theme.palette.mode === 'dark'
|
|
181
|
-
? props.theme.palette.primary.contrastText
|
|
182
|
-
: props.theme.palette.getContrastText(props.theme.palette.background.paper)};
|
|
183
|
-
height: ${ICON.Height + 8}px;
|
|
184
|
-
justify-content: center;
|
|
185
|
-
margin-top: 0 !important;
|
|
186
|
-
min-width: ${ICON.Width};
|
|
187
|
-
width: ${ICON.Width};
|
|
188
|
-
|
|
189
|
-
[theme.breakpoints.up('sm')] {
|
|
190
|
-
min-width: ${ICON.Width + 8}px;
|
|
191
|
-
width: ${ICON.Width + 8}px;
|
|
192
|
-
}
|
|
193
|
-
`
|
|
194
|
-
|
|
195
|
-
export const ListItemText = styled(SSListItemText, {
|
|
196
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
|
|
197
|
-
})<{
|
|
198
|
-
isDrawerOpen?: boolean
|
|
199
|
-
index?: number
|
|
200
|
-
}>`
|
|
201
|
-
max-width: 210px;
|
|
202
|
-
opacity: ${props => props.isDrawerOpen ? 1 : 0};
|
|
203
|
-
padding: 0.5rem;
|
|
204
|
-
transition: opacity
|
|
205
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
206
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
207
|
-
${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
|
|
208
|
-
white-space: normal;
|
|
209
|
-
width: auto;
|
|
210
|
-
`
|
|
211
|
-
|
|
212
|
-
export const StyledExpandLess = styled(ArrowRight, {
|
|
213
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
214
|
-
})<{ isDrawerOpen?: boolean }>`
|
|
215
|
-
align-self: center;
|
|
216
|
-
font-size: 1.25rem;
|
|
217
|
-
left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
|
|
218
|
-
margin-right: ${props => props.theme.spacing(1)};
|
|
219
|
-
opacity: 1;
|
|
220
|
-
position: relative;
|
|
221
|
-
transition: opacity
|
|
222
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
223
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
224
|
-
200ms !important;
|
|
225
|
-
`
|
|
226
|
-
|
|
227
|
-
export const StyledExpandMore = styled(ArrowRight, {
|
|
228
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
229
|
-
})<{ isDrawerOpen?: boolean }>`
|
|
230
|
-
align-self: center;
|
|
231
|
-
font-size: 1.25rem;
|
|
232
|
-
left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
|
|
233
|
-
margin-right: ${props => props.theme.spacing(1)};
|
|
234
|
-
opacity: 1;
|
|
235
|
-
position: relative;
|
|
236
|
-
transition: opacity
|
|
237
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
238
|
-
${props => props.theme.transitions.easing.easeOut}
|
|
239
|
-
200ms !important;
|
|
240
|
-
`
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
export const motionParent = {
|
|
2
|
-
open: {
|
|
3
|
-
transition: { staggerChildren: 0.07, delayChildren: 0 }
|
|
4
|
-
},
|
|
5
|
-
closed: {
|
|
6
|
-
transition: { staggerChildren: 0.05, staggerDirection: -1 }
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const motionFadeIn = {
|
|
11
|
-
open: {
|
|
12
|
-
opacity: 1
|
|
13
|
-
},
|
|
14
|
-
closed: {
|
|
15
|
-
opacity: 0
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const motionFadeInUp = {
|
|
20
|
-
open: {
|
|
21
|
-
y: 0,
|
|
22
|
-
opacity: 1,
|
|
23
|
-
transition: {
|
|
24
|
-
y: { stiffness: 1000, velocity: -20 }
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
closed: {
|
|
28
|
-
y: 10,
|
|
29
|
-
opacity: 0,
|
|
30
|
-
transition: {
|
|
31
|
-
y: { stiffness: 1000 }
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const motionWhileHover = {
|
|
37
|
-
scale: 1.02
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const motionWhileTap = {
|
|
41
|
-
scale: 0.95
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Old ones...
|
|
45
|
-
export const variantsLogo = {
|
|
46
|
-
open: {
|
|
47
|
-
opacity: 1
|
|
48
|
-
},
|
|
49
|
-
closed: {
|
|
50
|
-
opacity: 0
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const variantsUl = {
|
|
55
|
-
open: {
|
|
56
|
-
transition: { staggerChildren: 0.07, delayChildren: 0.2 }
|
|
57
|
-
},
|
|
58
|
-
closed: {
|
|
59
|
-
transition: { staggerChildren: 0.05, staggerDirection: -1 }
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const variantsLi = {
|
|
64
|
-
open: {
|
|
65
|
-
y: 0,
|
|
66
|
-
opacity: 1,
|
|
67
|
-
transition: {
|
|
68
|
-
y: { stiffness: 1000, velocity: -20 }
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
closed: {
|
|
72
|
-
y: 10,
|
|
73
|
-
opacity: 0,
|
|
74
|
-
transition: {
|
|
75
|
-
y: { stiffness: 1000 }
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const variantsSecondaryUl = {
|
|
81
|
-
open: {
|
|
82
|
-
transition: { staggerChildren: 0.05, delayChildren: 0.5 }
|
|
83
|
-
},
|
|
84
|
-
closed: {
|
|
85
|
-
transition: { staggerChildren: 0.05, staggerDirection: -1 }
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export const variantsSecondaryLi = {
|
|
90
|
-
open: {
|
|
91
|
-
y: 0,
|
|
92
|
-
opacity: 1,
|
|
93
|
-
transition: {
|
|
94
|
-
y: { stiffness: 500, velocity: -10 }
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
closed: {
|
|
98
|
-
y: 10,
|
|
99
|
-
opacity: 0,
|
|
100
|
-
transition: {
|
|
101
|
-
y: { stiffness: 500 }
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export const variantsDivider = {
|
|
107
|
-
open: {
|
|
108
|
-
scaleX: 1,
|
|
109
|
-
opacity: 1,
|
|
110
|
-
transition: {
|
|
111
|
-
type: 'spring',
|
|
112
|
-
delay: 0.5
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
closed: {
|
|
116
|
-
scaleX: 0.25,
|
|
117
|
-
opacity: 0
|
|
118
|
-
}
|
|
119
|
-
}
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
import Drawer from '@mui/material/Drawer'
|
|
2
|
-
import { Box, IconButton } from '../../../index'
|
|
3
|
-
import { styled } from '@mui/material/styles'
|
|
4
|
-
import { animated } from '@react-spring/web'
|
|
5
|
-
|
|
6
|
-
export const DRAWER_WIDTH = {
|
|
7
|
-
Collapsed: 60,
|
|
8
|
-
Expanded: 300
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const ICON = {
|
|
12
|
-
Height: 40,
|
|
13
|
-
Width: 57
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const DrawerHeader = styled(animated.div, {
|
|
17
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
18
|
-
})<{ isDrawerOpen?: any }>`
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
21
|
-
? props.theme.palette.primary.main
|
|
22
|
-
: props.theme.palette.background.paper};
|
|
23
|
-
display: flex;
|
|
24
|
-
flex: 1 auto;
|
|
25
|
-
justify-content: flex-start;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
min-height: 56px !important;
|
|
28
|
-
padding: ${props => props.theme.spacing(1)} 10px 0;
|
|
29
|
-
transition: ${props => props.isDrawerOpen
|
|
30
|
-
? `width
|
|
31
|
-
${props.theme.transitions.duration.enteringScreen}ms
|
|
32
|
-
${props.theme.transitions.easing.easeOut}
|
|
33
|
-
0`
|
|
34
|
-
: `width
|
|
35
|
-
${props.theme.transitions.duration.leavingScreen}ms
|
|
36
|
-
${props.theme.transitions.easing.easeIn}`}
|
|
37
|
-
250ms;
|
|
38
|
-
|
|
39
|
-
/* Testing secondary nav fix ups */
|
|
40
|
-
width: ${props => props.isDrawerOpen ? DRAWER_WIDTH.Expanded : `calc(${props.theme.spacing(7)} + 1px)`};
|
|
41
|
-
|
|
42
|
-
@media (min-width: ${props => props.theme.breakpoints.values.sm}) {
|
|
43
|
-
min-height: 64px !important;
|
|
44
|
-
width: ${props => props.isDrawerOpen ? DRAWER_WIDTH.Expanded : `calc(${props.theme.spacing(8)} + 1px)`};
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
.MuiListItemIcon-root {
|
|
48
|
-
margin: ${props => props.theme.spacing(0.5)} 0 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.MuiListItemText-root {
|
|
52
|
-
align-items: center !important;
|
|
53
|
-
color: ${props =>
|
|
54
|
-
props.theme.palette.mode === 'dark'
|
|
55
|
-
? props.theme.palette.primary.contrastText
|
|
56
|
-
: props.theme.palette.getContrastText(props.theme.palette.background.paper)};
|
|
57
|
-
display: flex;
|
|
58
|
-
min-height: ${ICON.Height + 8}px;
|
|
59
|
-
max-height: ${props => props.isDrawerOpen ? '200px' : `${ICON.Height + 8}px`};
|
|
60
|
-
text-decoration: none;
|
|
61
|
-
text-dransform: none;
|
|
62
|
-
transition: max-height
|
|
63
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
64
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
65
|
-
padding: 0;
|
|
66
|
-
width: 100%;
|
|
67
|
-
|
|
68
|
-
[theme.breakpoints.up('sm')] {
|
|
69
|
-
max-height: ${props => props.isDrawerOpen ? '200px' : `${ICON.Height + 8}px`};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.MuiListItemText-root .MuiTypography-root {
|
|
74
|
-
white-space: normal;
|
|
75
|
-
}
|
|
76
|
-
`
|
|
77
|
-
|
|
78
|
-
export const DrawerToggle = styled(IconButton)`
|
|
79
|
-
background: transparent;
|
|
80
|
-
height: 44px;
|
|
81
|
-
padding: 0 ${props => props.theme.spacing(2)} !important;
|
|
82
|
-
position: absolute;
|
|
83
|
-
transition: all
|
|
84
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
85
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
86
|
-
width: 44px;
|
|
87
|
-
z-index: 10;
|
|
88
|
-
|
|
89
|
-
@media (min-width: ${props => props.theme.breakpoints.values.sm}) {
|
|
90
|
-
padding: 0 ${props => props.theme.spacing(2.5)} !important;
|
|
91
|
-
}
|
|
92
|
-
`
|
|
93
|
-
|
|
94
|
-
export const DrawerToggleHitboxContent = styled('span')`
|
|
95
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
96
|
-
? props.theme.palette.primary.main
|
|
97
|
-
: props.theme.palette.background.paper};
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
box-shadow: 5px 0 15px 0 rgb(0 0 0 / 10%);
|
|
100
|
-
box-sizing: content-box;
|
|
101
|
-
height: 1.75rem;
|
|
102
|
-
padding: ${props => props.theme.spacing(0.5)};
|
|
103
|
-
width: 1.75rem;
|
|
104
|
-
`
|
|
105
|
-
|
|
106
|
-
export const StyledAside = styled('aside')``
|
|
107
|
-
|
|
108
|
-
export const StyledNav = styled('nav')`
|
|
109
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
110
|
-
? props.theme.palette.primary.main
|
|
111
|
-
: props.theme.palette.background.paper};
|
|
112
|
-
display: flex;
|
|
113
|
-
flex: 1 auto;
|
|
114
|
-
flex-direction: column;
|
|
115
|
-
justify-content: flex-start;
|
|
116
|
-
overflow-x: hidden;
|
|
117
|
-
overflow-y: auto;
|
|
118
|
-
|
|
119
|
-
// Firefox and future scrollbars
|
|
120
|
-
* & {
|
|
121
|
-
scrollbar-width: thin;
|
|
122
|
-
scrollbar-color: ${props =>
|
|
123
|
-
props.theme.palette.mode === 'dark'
|
|
124
|
-
? 'rgba(255, 255, 255, 0.12) transparent'
|
|
125
|
-
: 'rgba(0, 0, 0, 0.12) transparent'};
|
|
126
|
-
transition: backgroundColor
|
|
127
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
128
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
* &:hover {
|
|
132
|
-
scrollbar-color: ${props =>
|
|
133
|
-
props.theme.palette.mode === 'dark'
|
|
134
|
-
? 'rgba(255, 255, 255, 0.24) transparent'
|
|
135
|
-
: 'rgba(0, 0, 0, 0.24) transparent'};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Webkit and fall back scrollbars
|
|
139
|
-
::-webkit-scrollbar {
|
|
140
|
-
width: 8px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
::-webkit-scrollbar-track {
|
|
144
|
-
background-color: transparent;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
::-webkit-scrollbar-thumb {
|
|
148
|
-
background-color: ${props =>
|
|
149
|
-
props.theme.palette.mode === 'dark'
|
|
150
|
-
? 'rgba(255, 255, 255, 0.12)'
|
|
151
|
-
: 'rgba(0, 0, 0, 0.12)'};
|
|
152
|
-
border-radius: 55px;
|
|
153
|
-
transition: backgroundColor
|
|
154
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
155
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
::-webkit-scrollbar-thumb:hover {
|
|
159
|
-
background-color: ${props =>
|
|
160
|
-
props.theme.palette.mode === 'dark'
|
|
161
|
-
? 'rgba(255, 255, 255, 0.24)'
|
|
162
|
-
: 'rgba(0, 0, 0, 0.24)'};
|
|
163
|
-
}
|
|
164
|
-
`
|
|
165
|
-
|
|
166
|
-
export const StyledNavSecondary = styled('nav')`
|
|
167
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
168
|
-
? props.theme.palette.primary.main
|
|
169
|
-
: props.theme.palette.background.paper};
|
|
170
|
-
display: flex;
|
|
171
|
-
flex: 1 auto;
|
|
172
|
-
flex-direction: column;
|
|
173
|
-
justify-content: flex-end;
|
|
174
|
-
margin-top: auto;
|
|
175
|
-
overflow: hidden;
|
|
176
|
-
`
|
|
177
|
-
|
|
178
|
-
export const StyledDivider = styled('div', {
|
|
179
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
180
|
-
})<{ isDrawerOpen?: boolean }>`
|
|
181
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
182
|
-
? props.theme.palette.primary.main
|
|
183
|
-
: props.theme.palette.background.paper};
|
|
184
|
-
|
|
185
|
-
:before {
|
|
186
|
-
background-color: ${props =>
|
|
187
|
-
props.theme.palette.mode === 'dark'
|
|
188
|
-
? 'rgba(255, 255, 255, 0.075)'
|
|
189
|
-
: 'rgba(0, 0, 0, 0.075)'};
|
|
190
|
-
border-radius: 55px;
|
|
191
|
-
content: '';
|
|
192
|
-
display: block;
|
|
193
|
-
height: 2px;
|
|
194
|
-
margin: auto;
|
|
195
|
-
transition: all
|
|
196
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
197
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
198
|
-
width: 66%;
|
|
199
|
-
}
|
|
200
|
-
`
|
|
201
|
-
|
|
202
|
-
export const DrawerShadow = styled(Box, {
|
|
203
|
-
shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
|
|
204
|
-
})<{ isDrawerOpen?: boolean }>`
|
|
205
|
-
background: rgba(0,0,0,0.125);
|
|
206
|
-
content: '';
|
|
207
|
-
display: block;
|
|
208
|
-
filter: blur(13px);
|
|
209
|
-
height: 100%;
|
|
210
|
-
left: ${props => props.isDrawerOpen
|
|
211
|
-
? `${DRAWER_WIDTH.Expanded - 38}px`
|
|
212
|
-
: `${DRAWER_WIDTH.Collapsed - 41}px`};
|
|
213
|
-
position: fixed;
|
|
214
|
-
top: 0;
|
|
215
|
-
transition: left
|
|
216
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
217
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
218
|
-
visibility: visible;
|
|
219
|
-
width: 40px;
|
|
220
|
-
|
|
221
|
-
@media (min-width: ${props => props.theme.breakpoints.values.sm}) {
|
|
222
|
-
left: ${props =>
|
|
223
|
-
props.isDrawerOpen
|
|
224
|
-
? `${DRAWER_WIDTH.Expanded - 38}px`
|
|
225
|
-
: `${DRAWER_WIDTH.Collapsed - 33}px`};
|
|
226
|
-
}
|
|
227
|
-
`
|
|
228
|
-
|
|
229
|
-
export const NotchContainer = styled(Box)`
|
|
230
|
-
display: flex;
|
|
231
|
-
justify-content: flex-end;
|
|
232
|
-
height: auto;
|
|
233
|
-
margin-top: -${props => props.theme.spacing(0.5)};
|
|
234
|
-
position: relative;
|
|
235
|
-
transition: width
|
|
236
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
237
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
238
|
-
width: 100%;
|
|
239
|
-
z-index: 9;
|
|
240
|
-
`
|
|
241
|
-
|
|
242
|
-
export const NotchBackground = styled(Box)`
|
|
243
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
244
|
-
? props.theme.palette.primary.main
|
|
245
|
-
: props.theme.palette.background.paper};
|
|
246
|
-
flex: 1;
|
|
247
|
-
height: auto;
|
|
248
|
-
width: auto;
|
|
249
|
-
`
|
|
250
|
-
|
|
251
|
-
export const NotchBackgroundClip = styled(Box)`
|
|
252
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
253
|
-
? props.theme.palette.primary.main
|
|
254
|
-
: props.theme.palette.background.paper};
|
|
255
|
-
clip-path: url("#notch");
|
|
256
|
-
display: flex;
|
|
257
|
-
height: 85px;
|
|
258
|
-
width: 45px;
|
|
259
|
-
`
|
|
260
|
-
|
|
261
|
-
export const NotchSeemMask = styled(Box)`
|
|
262
|
-
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
263
|
-
? props.theme.palette.primary.main
|
|
264
|
-
: props.theme.palette.background.paper};
|
|
265
|
-
height: 90px;
|
|
266
|
-
position: absolute;
|
|
267
|
-
right: 25px;
|
|
268
|
-
top: -2px;
|
|
269
|
-
width: calc(100% - 25px);
|
|
270
|
-
`
|
|
271
|
-
|
|
272
|
-
export const StyledDrawer = styled(Drawer, {
|
|
273
|
-
shouldForwardProp: (prop) => prop !== 'open'
|
|
274
|
-
})<{ open?: boolean }>`
|
|
275
|
-
box-shadow: none;
|
|
276
|
-
box-sizing: border-box;
|
|
277
|
-
flexshrink: 0;
|
|
278
|
-
overflow-x: visible;
|
|
279
|
-
transition: width
|
|
280
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
281
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
282
|
-
white-space: nowrap;
|
|
283
|
-
width: ${props => !props.open ? `calc(${props.theme.spacing(7)} + 1px)` : `${DRAWER_WIDTH.Expanded}px`};
|
|
284
|
-
|
|
285
|
-
.MuiDrawer-paper {
|
|
286
|
-
background: transparent none;
|
|
287
|
-
border: 0;
|
|
288
|
-
box-shadow: none;
|
|
289
|
-
color: ${props =>
|
|
290
|
-
props.theme.palette.mode === 'dark'
|
|
291
|
-
? props.theme.palette.primary.contrastText
|
|
292
|
-
: props.theme.palette.getContrastText(props.theme.palette.background.paper)};
|
|
293
|
-
overflow: visible !important;
|
|
294
|
-
overflow-x: visible;
|
|
295
|
-
transform: translateX(0) !important;
|
|
296
|
-
transition: width
|
|
297
|
-
${props => props.theme.transitions.duration.enteringScreen}ms
|
|
298
|
-
${props => props.theme.transitions.easing.easeOut};
|
|
299
|
-
visibility: visible !important;
|
|
300
|
-
width: ${props => !props.open ? `calc(${props.theme.spacing(7)} + 1px)` : `${DRAWER_WIDTH.Expanded}px`};
|
|
301
|
-
}
|
|
302
|
-
`
|