qpp-style 0.0.9 → 0.0.10
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 +28 -28
- package/.husky/pre-commit +5 -0
- package/README.md +45 -0
- package/components/Accordion/index.jsx +35 -43
- package/components/Alert/index.js +53 -0
- package/components/Breadcrumb/index.js +4 -4
- package/components/Button/index.js +17 -6
- package/components/CalloutBox/index.js +109 -0
- package/components/Card/index.js +137 -0
- package/components/Details/DetailsIcons.js +50 -0
- package/components/Details/index.js +53 -0
- package/components/Dropdown/index.js +85 -0
- package/components/DropdownButton/Menu.js +25 -0
- package/components/DropdownButton/MenuButton.js +41 -0
- package/components/DropdownButton/MenuItem.js +25 -0
- package/components/DropdownButton/MenuItemLink.js +27 -0
- package/components/Error/Collapsible.jsx +2 -2
- package/components/Footer/FooterUI.jsx +175 -177
- package/components/Footer/footer.js +2 -12
- package/components/GovBanner/index.js +117 -0
- package/components/Header/HeaderAccountMenu.jsx +49 -75
- package/components/Header/HeaderContainer.jsx +46 -34
- package/components/Header/HeaderLogo.jsx +40 -17
- package/components/Header/HeaderMenuButton.js +38 -12
- package/components/Header/HeaderMenuItem.jsx +204 -64
- package/components/Header/HeaderMenuLink.js +46 -10
- package/components/Header/HeaderMenuSignOutButton.js +46 -10
- package/components/Header/HeaderMobileButton.js +15 -6
- package/components/Header/HeaderUI.jsx +118 -117
- package/components/Header/HelpIcon.jsx +7 -5
- package/components/Header/ImpersonatorBanner.jsx +81 -0
- package/components/Header/header.js +2 -0
- package/components/Header/hooks.js +53 -1
- package/components/Header/utag-helpers.js +9 -0
- package/components/Infotip/Infotip.jsx +6 -10
- package/components/Infotip/InfotipContent.jsx +46 -0
- package/components/Infotip/InfotipIcon.jsx +3 -3
- package/components/Link/index.js +61 -0
- package/components/Modal/Modal.jsx +53 -40
- package/components/Modal/index.jsx +11 -11
- package/components/NotificationBanner/CollapsedView.js +39 -0
- package/components/NotificationBanner/ExpandedView.js +45 -0
- package/components/NotificationBanner/index.js +219 -30
- package/components/Search/index.js +98 -0
- package/components/SessionDialog/sessionDialog.js +26 -0
- package/components/SessionDialogUI.jsx +34 -26
- package/components/SideNav/AnimationGroup/AnimationGroup.jsx +9 -2
- package/components/SideNav/Chart/ScoreChart.jsx +1 -1
- package/components/SideNav/Chart/__tests__/ScoreChart.test.js +3 -12
- package/components/SideNav/Chart/__tests__/__snapshots__/ScoreChart.test.js.snap +144 -35
- package/components/SideNav/Chart/index.js +1 -1
- package/components/SideNav/Content/LevelOneContent.jsx +145 -255
- package/components/SideNav/Content/LevelTwoContent.jsx +12 -10
- package/components/SideNav/Content/SelectRole/index.js +77 -0
- package/components/SideNav/Content/SelectRole/utils.js +140 -0
- package/components/SideNav/Details/PracticeDetails.jsx +4 -0
- package/components/SideNav/Links/CmsSwitchLink.jsx +1 -1
- package/components/SideNav/Links/NavLinkContainer.jsx +29 -34
- package/components/SideNav/Links/NavLinkDrawer.jsx +100 -17
- package/components/SideNav/Links/NavLinkInline.jsx +7 -2
- package/components/SideNav/SideNav.md +28 -27
- package/components/SideNav/UI/SideNavUI.jsx +122 -129
- package/components/SideNav/UI/default-content.json +117 -0
- package/components/SideNav/helpers.js +316 -4
- package/components/Tabs/TabPanel.js +5 -0
- package/components/Tabs/Tabs.js +73 -0
- package/components/TextInput/index.js +137 -0
- package/components/hooks/useGetConfig.js +75 -0
- package/components/index.js +103 -9
- package/coverage/clover.xml +1465 -41
- package/coverage/coverage-final.json +72 -1
- package/coverage/lcov-report/block-navigation.js +8 -0
- package/coverage/lcov-report/components/Accordion/index.html +26 -21
- package/coverage/lcov-report/components/Accordion/index.jsx.html +106 -131
- package/coverage/lcov-report/{SideNav/Chart → components/Button}/index.html +29 -24
- package/coverage/lcov-report/{Error/Collapsible.jsx.html → components/Button/index.js.html} +125 -114
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +92 -87
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +32 -33
- package/coverage/lcov-report/components/Error/index.html +11 -6
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +200 -189
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +24 -61
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +18 -13
- package/coverage/lcov-report/components/Footer/index.html +35 -45
- package/coverage/lcov-report/components/{InfoModal → GovBanner}/index.html +27 -22
- package/coverage/lcov-report/components/{InfoModal/index.jsx.html → GovBanner/index.js.html} +157 -122
- package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +93 -520
- package/coverage/lcov-report/components/Header/HeaderCancel.jsx.html +19 -23
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +280 -0
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkContainer.jsx.html → Header/HeaderLogo.jsx.html} +78 -67
- package/coverage/lcov-report/components/{SideNav/Links/NavItemInline.jsx.html → Header/HeaderMenuButton.js.html} +71 -78
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkDrawer.jsx.html → Header/HeaderMenuItem.jsx.html} +291 -268
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +253 -0
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +271 -0
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkToggle.jsx.html → Header/HeaderMobileButton.js.html} +64 -47
- package/coverage/lcov-report/components/Header/HeaderUI.jsx.html +176 -756
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +181 -0
- package/coverage/lcov-report/{Accordion/index.jsx.html → components/Header/ImpersonatorBanner.jsx.html} +109 -167
- package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +24 -19
- package/coverage/lcov-report/components/Header/hooks.js.html +283 -0
- package/coverage/lcov-report/components/Header/index.html +203 -33
- package/coverage/lcov-report/components/{SideNav/Links/index.js.html → Header/utag-helpers.js.html} +35 -42
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +53 -48
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +37 -32
- package/coverage/lcov-report/components/Infotip/index.html +8 -3
- package/coverage/lcov-report/components/Infotip/index.js.html +8 -3
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +301 -0
- package/coverage/lcov-report/{HeaderUI.jsx.html → components/Modal/Modal.jsx.html} +169 -257
- package/coverage/lcov-report/components/Modal/index.html +146 -0
- package/coverage/lcov-report/components/{SideNav/Details/IndividualDetails.jsx.html → Modal/index.jsx.html} +50 -42
- package/coverage/lcov-report/components/NotificationBanner/CollapsedView.js.html +202 -0
- package/coverage/lcov-report/components/NotificationBanner/ExpandedView.js.html +220 -0
- package/coverage/lcov-report/components/NotificationBanner/index.html +58 -23
- package/coverage/lcov-report/components/{SideNav/Content/LevelTwoContent.jsx.html → NotificationBanner/index.js.html} +292 -272
- package/coverage/lcov-report/components/SanitizedContent/index.html +8 -3
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +475 -50
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +248 -255
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +272 -408
- package/coverage/lcov-report/components/SideNav/Chart/index.html +28 -38
- package/coverage/lcov-report/components/SideNav/Content/SelectRole/index.html +116 -0
- package/coverage/lcov-report/components/SideNav/Content/SelectRole/utils.js.html +505 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +987 -46
- package/coverage/lcov-report/components/SideNav/index.html +24 -19
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +70 -65
- package/coverage/lcov-report/components/Tooltip/index.html +8 -3
- package/coverage/lcov-report/components/Tooltip/index.js.html +8 -3
- package/coverage/lcov-report/components/Tooltip/position.js.html +57 -64
- package/coverage/lcov-report/components/hooks/index.html +116 -0
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +310 -0
- package/coverage/lcov-report/components/index.html +10 -5
- package/coverage/lcov-report/index.html +401 -21
- package/coverage/lcov-report/{Error/ErrorUI.jsx.html → lib/Chevron.jsx.html} +44 -42
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +1840 -0
- package/coverage/lcov-report/lib/index.html +34 -14
- package/coverage/lcov-report/react/components/Accordion/index.html +26 -21
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +67 -86
- package/coverage/lcov-report/react/components/{FlashNotification → Button}/index.html +23 -33
- package/coverage/lcov-report/{components/SideNav/Links/NavLinkInline.jsx.html → react/components/Button/index.js.html} +119 -120
- package/coverage/lcov-report/react/components/{Tabs → Dropdown}/index.html +23 -33
- package/coverage/lcov-report/react/components/{InfoModal/index.jsx.html → Dropdown/index.js.html} +102 -154
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +26 -21
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +11 -6
- package/coverage/lcov-report/react/components/Error/error.js.html +8 -3
- package/coverage/lcov-report/react/components/Error/index.html +11 -6
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +196 -194
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +9 -4
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +18 -13
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +18 -13
- package/coverage/lcov-report/react/components/Footer/footer.js.html +12 -37
- package/coverage/lcov-report/react/components/Footer/index.html +35 -45
- package/coverage/lcov-report/react/components/{InfoModal → GovBanner}/index.html +27 -22
- package/coverage/lcov-report/react/components/{Tabs/TabsUI.jsx.html → GovBanner/index.js.html} +146 -153
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +81 -154
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +15 -10
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +91 -50
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +105 -31
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +109 -26
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +510 -85
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +137 -24
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +134 -21
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +56 -24
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +172 -179
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +30 -19
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +331 -0
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +9 -4
- package/coverage/lcov-report/react/components/Header/header.js.html +15 -4
- package/coverage/lcov-report/react/components/Header/hooks.js.html +187 -26
- package/coverage/lcov-report/react/components/Header/index.html +157 -122
- package/coverage/lcov-report/react/components/{Spinner/index.js.html → Header/utag-helpers.js.html} +26 -21
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +12 -7
- package/coverage/lcov-report/react/components/{Tabs/tabs.js.html → Infotip/InfotipContent.jsx.html} +83 -48
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +12 -7
- package/coverage/lcov-report/react/components/Infotip/index.html +8 -3
- package/coverage/lcov-report/react/components/Infotip/index.js.html +8 -3
- package/coverage/lcov-report/react/components/{FlashNotification/FlashNotificationUI.jsx.html → Modal/LegacyModal.jsx.html} +89 -84
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +505 -0
- package/coverage/lcov-report/react/components/Modal/index.html +52 -17
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +38 -201
- package/coverage/lcov-report/{components/SideNav/Links/CmsSwitchLink.jsx.html → react/components/NotificationBanner/CollapsedView.js.html} +52 -50
- package/coverage/lcov-report/{components/SideNav/Details/PracticeDetails.jsx.html → react/components/NotificationBanner/ExpandedView.js.html} +74 -57
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +56 -21
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +615 -43
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +8 -3
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +12 -7
- package/coverage/lcov-report/react/components/{Spinner → SessionDialog}/index.html +11 -6
- package/coverage/lcov-report/react/components/{FlashNotification/index.js.html → SessionDialog/sessionDialog.js.html} +35 -42
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +80 -51
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +38 -12
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +18 -13
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +67 -56
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +26 -21
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +9 -4
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +189 -514
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +28 -17
- package/coverage/lcov-report/{components/SideNav/Details → react/components/SideNav/Content/SelectRole}/index.html +42 -52
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +316 -0
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +505 -0
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +32 -27
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +8 -3
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +10 -5
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +26 -9
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +23 -18
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +8 -3
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +9 -4
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +8 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +54 -64
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +281 -27
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +66 -46
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +8 -3
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +44 -39
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +8 -3
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +165 -181
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +28 -23
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +8 -3
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +967 -26
- package/coverage/lcov-report/react/components/SideNav/index.html +27 -22
- package/coverage/lcov-report/react/components/SideNav/index.js.html +8 -3
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +20 -15
- package/coverage/lcov-report/react/components/Tooltip/index.html +8 -3
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +8 -3
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +22 -17
- package/coverage/lcov-report/{components/SideNav/AnimationGroup → react/components/hooks}/index.html +29 -24
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +310 -0
- package/coverage/lcov-report/react/components/index.html +10 -5
- package/coverage/lcov-report/react/index.html +20 -15
- package/coverage/lcov-report/react/index.js.html +29 -9
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +181 -0
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +221 -132
- package/coverage/lcov-report/react/lib/index.html +32 -27
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +8 -3
- package/coverage/lcov-report/react/session/index.html +32 -27
- package/coverage/lcov-report/react/session/index.js.html +8 -3
- package/coverage/lcov-report/react/session/logout.js.html +122 -18
- package/coverage/lcov-report/react/session/refresh.js.html +12 -7
- package/coverage/lcov-report/react/session/ttl.js.html +9 -4
- package/coverage/lcov-report/session/index.html +50 -45
- package/coverage/lcov-report/session/index.js.html +8 -3
- package/coverage/lcov-report/session/logout.js.html +144 -49
- package/coverage/lcov-report/session/refresh.js.html +41 -36
- package/coverage/lcov-report/session/ttl.js.html +34 -29
- package/coverage/lcov-report/sorter.js +26 -0
- package/coverage/lcov.info +3189 -46
- package/dist/browser.js +1 -1
- package/dist/browser.js.LICENSE.txt +1 -7
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1 -7
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.LICENSE.txt +16 -16
- package/dist/react/index.js.map +1 -1
- package/fonts/PublicSans-Black.ttf +0 -0
- package/fonts/PublicSans-BlackItalic.ttf +0 -0
- package/fonts/PublicSans-Bold.ttf +0 -0
- package/fonts/PublicSans-BoldItalic.ttf +0 -0
- package/fonts/PublicSans-ExtraBold.ttf +0 -0
- package/fonts/PublicSans-ExtraBoldItalic.ttf +0 -0
- package/fonts/PublicSans-ExtraLight.ttf +0 -0
- package/fonts/PublicSans-ExtraLightItalic.ttf +0 -0
- package/fonts/PublicSans-Italic.ttf +0 -0
- package/fonts/PublicSans-Light.ttf +0 -0
- package/fonts/PublicSans-LightItalic.ttf +0 -0
- package/fonts/PublicSans-Medium.ttf +0 -0
- package/fonts/PublicSans-MediumItalic.ttf +0 -0
- package/fonts/PublicSans-Regular.ttf +0 -0
- package/fonts/PublicSans-SemiBold.ttf +0 -0
- package/fonts/PublicSans-SemiBoldItalic.ttf +0 -0
- package/fonts/PublicSans-Thin.ttf +0 -0
- package/fonts/PublicSans-ThinItalic.ttf +0 -0
- package/images/icon-dot-gov.svg +1 -0
- package/images/icon-https.svg +1 -0
- package/images/icons/close-x.svg +6 -0
- package/images/icons/svg/arrow-down.svg +3 -0
- package/images/icons/svg/arrow-download.svg +1 -0
- package/images/icons/svg/arrow-right.svg +1 -0
- package/images/icons/svg/arrow-up.svg +3 -0
- package/images/icons/svg/block.svg +5 -0
- package/images/icons/svg/calendar.svg +1 -0
- package/images/icons/svg/check-circle.svg +5 -0
- package/images/icons/svg/checkmark.svg +7 -0
- package/images/icons/svg/chevron-down.svg +11 -0
- package/images/icons/svg/chevron-left.svg +12 -0
- package/images/icons/svg/chevron-right.svg +12 -0
- package/images/icons/svg/chevron-up.svg +12 -0
- package/images/icons/svg/clipboard.svg +1 -0
- package/images/icons/svg/close.svg +1 -0
- package/images/icons/svg/divide.svg +13 -0
- package/images/icons/svg/doctors-and-clinicians-preview.svg +10 -0
- package/images/icons/svg/download.svg +1 -0
- package/images/icons/svg/dropdown-arrow.svg +1 -0
- package/images/icons/svg/equals.svg +13 -0
- package/images/icons/svg/exclamation.svg +11 -0
- package/images/icons/svg/external.svg +1 -0
- package/images/icons/svg/file-download.svg +1 -0
- package/images/icons/svg/file-upload.svg +1 -0
- package/images/icons/svg/info.svg +20 -0
- package/images/icons/svg/manage-user-access.svg +8 -0
- package/images/icons/svg/multiply.svg +12 -0
- package/images/icons/svg/performance-feedback.svg +1 -0
- package/images/icons/svg/plus.svg +12 -0
- package/images/icons/svg/preview.svg +17 -0
- package/images/icons/svg/print.svg +1 -0
- package/images/icons/svg/registration.svg +8 -0
- package/images/icons/svg/reporting.svg +17 -0
- package/images/icons/svg/save-disk.svg +5 -0
- package/images/icons/svg/search.svg +1 -0
- package/images/icons/svg/subtract.svg +15 -0
- package/images/icons/svg/targeted-review.svg +15 -0
- package/images/icons/svg/tooltip-question.svg +1 -0
- package/images/icons/svg/trash.svg +1 -0
- package/images/icons/svg/upload.svg +1 -0
- package/images/us_flag_small.png +0 -0
- package/index.js +5 -0
- package/jest.config.js +139 -132
- package/lib/Chevron.jsx +32 -0
- package/lib/SvgComponents.jsx +197 -49
- package/package.json +60 -78
- package/session/logout.js +35 -2
- package/styles/_global.scss +63 -62
- package/styles/_main.scss +6 -0
- package/styles/_qpp-style.scss +0 -3
- package/styles/components/_accordion.scss +249 -246
- package/styles/components/_autocomplete.scss +0 -3
- package/styles/components/_spinner.scss +0 -2
- package/styles/components/_tables.scss +77 -67
- package/styles/components/_text.scss +102 -102
- package/styles/components/_variables.scss +12 -12
- package/styles/qppds/base/_backgrounds.scss +1 -6
- package/styles/qppds/base/_fonts.scss +24 -0
- package/styles/qppds/base/_icon.scss +31 -0
- package/styles/qppds/base/_layout.scss +5 -0
- package/styles/qppds/base/_typography.scss +77 -43
- package/styles/qppds/base/index.scss +3 -6
- package/styles/qppds/components/_alert.scss +101 -0
- package/styles/qppds/components/_breadcrumbs.scss +42 -10
- package/styles/qppds/components/_button.scss +38 -12
- package/styles/qppds/components/_card.scss +175 -0
- package/styles/qppds/components/_checkbox.scss +199 -0
- package/styles/qppds/components/_circular-loader.scss +47 -0
- package/styles/qppds/components/_details.scss +90 -0
- package/styles/qppds/components/_dropdown-menu.scss +125 -0
- package/styles/qppds/components/_dropdown.scss +5 -0
- package/styles/qppds/components/_footer.scss +606 -0
- package/styles/qppds/components/_gov-banner.scss +344 -0
- package/styles/{components → qppds/components}/_header.scss +460 -24
- package/styles/qppds/components/_link.scss +32 -9
- package/styles/qppds/components/_modal.scss +61 -21
- package/styles/qppds/components/_page-header.scss +65 -2
- package/styles/qppds/components/_pagination.scss +227 -0
- package/styles/qppds/components/_process-list.scss +104 -0
- package/styles/qppds/components/_radio-button.scss +184 -0
- package/styles/qppds/components/_search.scss +118 -0
- package/styles/{components → qppds/components}/_sidebar.scss +2 -0
- package/styles/qppds/components/_step-indicator.scss +190 -0
- package/styles/qppds/components/_table.scss +157 -0
- package/styles/qppds/components/_tabs.scss +197 -0
- package/styles/qppds/components/_text-input.scss +60 -0
- package/styles/qppds/components/index.scss +18 -0
- package/styles/{components → qppds/components}/sidebar/_links.scss +48 -1
- package/styles/qppds/components/sidebar/_select-role-dropdown.scss +21 -0
- package/styles/{components → qppds/components}/sidebar/_sidebar-animation.scss +4 -0
- package/styles/qppds/components/sidebar/_sidebar.scss +146 -0
- package/styles/qppds/settings/_functions.scss +3 -1
- package/styles/qppds/settings/mixins/_borders.scss +6 -0
- package/styles/qppds/settings/mixins/_focus.scss +7 -1
- package/styles/qppds/settings/mixins/_icons.scss +39 -4
- package/styles/qppds/settings/mixins/_index.scss +3 -0
- package/styles/qppds/settings/mixins/_layout.scss +46 -7
- package/styles/qppds/settings/mixins/_table.scss +91 -0
- package/styles/qppds/settings/mixins/_type.scss +89 -0
- package/styles/qppds/settings/variables/_color.scss +47 -1
- package/styles/qppds/settings/variables/_index.scss +2 -1
- package/styles/qppds/settings/variables/_layout.scss +34 -9
- package/styles/qppds/settings/variables/_type.scss +41 -0
- package/styles/qppds/settings/variables/_z-index.scss +8 -0
- package/styles/qppds/utilities/_background-color.scss +4 -0
- package/styles/qppds/utilities/_color.scss +24 -0
- package/styles/qppds/utilities/{_display-visability.scss → _display-visibility.scss} +8 -0
- package/styles/qppds/utilities/_flexbox.scss +113 -0
- package/styles/qppds/utilities/_font-family.scss +4 -0
- package/styles/qppds/utilities/_gap.scss +38 -0
- package/styles/qppds/utilities/_height.scss +79 -0
- package/styles/qppds/utilities/_list-style.scss +18 -0
- package/styles/qppds/utilities/_position.scss +24 -0
- package/styles/qppds/utilities/_text-align.scss +40 -0
- package/styles/qppds/utilities/_text-transform.scss +7 -0
- package/styles/qppds/utilities/_truncate.scss +5 -5
- package/styles/qppds/utilities/_vertical-align.scss +72 -0
- package/styles/qppds/utilities/_width.scss +38 -1
- package/styles/qppds/utilities/index.scss +8 -2
- package/svgo.config.js +14 -0
- package/test/components/Accordion.test.js +4 -13
- package/test/components/ErrorUI.test.js +10 -46
- package/test/components/FooterUI.test.js +0 -30
- package/test/components/HeaderUI.test.js +32 -40
- package/test/components/Infotip.test.js +18 -12
- package/test/components/SessionDialogUI.test.js +55 -70
- package/test-setup.js +0 -8
- package/webpack.config.js +29 -39
- package/webpack.config.react.js +7 -18
- package/.storybook/.babelrc +0 -4
- package/.storybook/main.js +0 -88
- package/.storybook/preview-head.html +0 -9
- package/.storybook/preview.js +0 -5
- package/Session.vim +0 -83
- package/components/Accordion/Accordion.stories.js +0 -20
- package/components/Breadcrumb/Breadcrumb.stories.js +0 -58
- package/components/Button/Button.stories.js +0 -125
- package/components/Footer/Footer.stories.js +0 -20
- package/components/Footer/LegacyFooterUI.jsx +0 -194
- package/components/Header/Header.stories.js +0 -32
- package/components/InfoModal/InfoModal.stories.js +0 -98
- package/components/InfoModal/index.jsx +0 -104
- package/components/Infotip/Infotip.stories.js +0 -50
- package/components/Modal/Modal.stories.js +0 -159
- package/components/NotificationBanner/NotificationBanner.stories.js +0 -22
- package/components/NotificationBanner/NotificationBannerUI.jsx +0 -282
- package/components/SideNav/SideNav.stories.js +0 -397
- package/components/Spinner/index.js +0 -9
- package/components/Tabs/TabsUI.jsx +0 -118
- package/components/Tabs/tabs.js +0 -36
- package/components/Tooltip/Tooltip.jsx +0 -88
- package/components/Tooltip/Tooltip.stories.js +0 -80
- package/components/Tooltip/index.js +0 -3
- package/components/Tooltip/position.js +0 -68
- package/components/UnwrappedSpinner/index.js +0 -8
- package/components/UnwrappedTabs/TabPanelUI.jsx +0 -16
- package/components/UnwrappedTabs/TabsUI.jsx +0 -82
- package/coverage/lcov-report/Accordion/index.html +0 -111
- package/coverage/lcov-report/Error/index.html +0 -126
- package/coverage/lcov-report/ScoreChart.jsx.html +0 -1025
- package/coverage/lcov-report/SideNav/Chart/ScoreChart.jsx.html +0 -1025
- package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +0 -668
- package/coverage/lcov-report/components/NotificationBanner/NotificationBannerUI.jsx.html +0 -1010
- package/coverage/lcov-report/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +0 -131
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +0 -89
- package/coverage/lcov-report/components/SideNav/Content/LevelOneContent.jsx.html +0 -1007
- package/coverage/lcov-report/components/SideNav/Content/index.html +0 -141
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +0 -92
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +0 -92
- package/coverage/lcov-report/components/SideNav/Links/index.html +0 -201
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +0 -1298
- package/coverage/lcov-report/components/SideNav/UI/index.html +0 -126
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +0 -89
- package/coverage/lcov-report/lib/svg-definitions.svg.html +0 -1319
- package/coverage/lcov-report/react/components/NotificationBanner/NotificationBannerUI.jsx.html +0 -926
- package/styles/components/_footer.scss +0 -593
- package/styles/components/_header_backup.scss +0 -574
- package/styles/components/sidebar/_sidebar.scss +0 -141
- package/test/components/Tooltip.test.js +0 -147
- package/test/components/__snapshots__/Accordion.test.js.snap +0 -11439
- package/test/components/__snapshots__/HeaderUI.test.js.snap +0 -3
- /package/styles/{components → qppds/components}/sidebar/_animations.scss +0 -0
- /package/styles/{components → qppds/components}/sidebar/_cms.scss +0 -0
- /package/styles/{components → qppds/components}/sidebar/_details.scss +0 -0
- /package/styles/{components → qppds/components}/sidebar/_sidebar-tooltip.scss +0 -0
- /package/styles/{components → qppds/components}/sidebar/project-specific/_wi.scss +0 -0
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
// comment out until we're ready to replace old font-face definitions
|
|
3
3
|
// @import './fonts';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
// this can help avoid conflicts between new qppds styles and legacy styles
|
|
7
|
-
.qppds {
|
|
8
|
-
@import './typography';
|
|
9
|
-
}
|
|
10
|
-
|
|
5
|
+
@import './typography';
|
|
11
6
|
@import './backgrounds';
|
|
7
|
+
@import './layout';
|
|
8
|
+
@import './icon';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@import '../settings/index';
|
|
2
|
+
|
|
3
|
+
.qpp-c-alert {
|
|
4
|
+
font-family: $font-rubik;
|
|
5
|
+
font-size: $font-size-14;
|
|
6
|
+
line-height: $line-height-lg;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
background-color: $gray-10;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
background-size: $spacing-32;
|
|
11
|
+
padding: $spacing-16;
|
|
12
|
+
position: relative;
|
|
13
|
+
border-left: 4px solid $gray-60;
|
|
14
|
+
border-radius: 3px;
|
|
15
|
+
|
|
16
|
+
.qpp-c-alert__body {
|
|
17
|
+
vertical-align: top;
|
|
18
|
+
margin-left: $spacing-40;
|
|
19
|
+
max-width: 600px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.qpp-c-alert__heading {
|
|
23
|
+
font-size: $font-size-16;
|
|
24
|
+
margin-top: 0;
|
|
25
|
+
margin-bottom: $spacing-8;
|
|
26
|
+
line-height: $line-height-md;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.qpp-c-alert__text {
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&::before {
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
background-repeat: no-repeat;
|
|
36
|
+
content: '';
|
|
37
|
+
height: 100%;
|
|
38
|
+
left: 0;
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
width: $spacing-24;
|
|
42
|
+
margin: $spacing-16;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.qpp-c-alert--info {
|
|
46
|
+
background-color: $blue-05;
|
|
47
|
+
color: $black;
|
|
48
|
+
border-left: 4px solid $blue-60;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='24' height='24'%3E%3Cpath fill='currentColor' d='M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z' class=''%3E%3C/path%3E%3C/svg%3E");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.qpp-c-alert--warning {
|
|
56
|
+
background-color: $gold-05;
|
|
57
|
+
color: $black;
|
|
58
|
+
border-left: 4px solid $gold-20;
|
|
59
|
+
|
|
60
|
+
&::before {
|
|
61
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='24' height='24'%3E%3Cpath fill='currentColor' d='M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z' class=''%3E%3C/path%3E%3C/svg%3E");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.qpp-c-alert--error {
|
|
66
|
+
background-color: $red-10;
|
|
67
|
+
color: $black;
|
|
68
|
+
border-left: 4px solid $red-50;
|
|
69
|
+
|
|
70
|
+
&::before {
|
|
71
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='24' height='24'%3E%3Cpath fill='currentColor' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z' class=''%3E%3C/path%3E%3C/svg%3E");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.qpp-c-alert--success {
|
|
76
|
+
background-color: $green-05;
|
|
77
|
+
color: $black;
|
|
78
|
+
border-left: 4px solid $green-30;
|
|
79
|
+
|
|
80
|
+
&::before {
|
|
81
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='24' height='24'%3E%3Cpath fill='currentColor' d='M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z' class=''%3E%3C/path%3E%3C/svg%3E");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.qpp-c-alert--calendar {
|
|
86
|
+
&::before {
|
|
87
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z'/%3E%3C/svg%3E");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.qppds .qpp-c-alert a,
|
|
93
|
+
.qpp-c-alert .qpp-c-link {
|
|
94
|
+
color: $blue-80;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.qppds .qpp-c-alert p {
|
|
98
|
+
font-family: $font-rubik;
|
|
99
|
+
font-size: $font-size-14;
|
|
100
|
+
line-height: $line-height-lg;
|
|
101
|
+
}
|
|
@@ -13,14 +13,17 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.qpp-c-breadcrumbs__list-item {
|
|
16
|
-
display: inline;
|
|
16
|
+
display: inline-block;
|
|
17
17
|
white-space: nowrap;
|
|
18
18
|
|
|
19
19
|
&::after {
|
|
20
|
-
|
|
21
|
-
margin-left: $spacing-
|
|
22
|
-
margin-right: $spacing-
|
|
23
|
-
|
|
20
|
+
display: inline-block;
|
|
21
|
+
margin-left: $spacing-8;
|
|
22
|
+
margin-right: $spacing-8;
|
|
23
|
+
transform: translateY(3px) rotate(20deg);
|
|
24
|
+
border-right: 0.1em solid fade-out($gray-80, 0.7);
|
|
25
|
+
height: 0.9em;
|
|
26
|
+
content: '';
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
&.qpp-c-breadcrumbs__list-item--current::after {
|
|
@@ -30,30 +33,59 @@
|
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
.qpp-c-breadcrumbs__link
|
|
36
|
+
.qpp-c-breadcrumbs__link {
|
|
34
37
|
color: $gray-80;
|
|
35
38
|
text-decoration: none;
|
|
39
|
+
text-underline-offset: rem(4px);
|
|
40
|
+
text-decoration-thickness: rem(1px);
|
|
41
|
+
|
|
42
|
+
&:not(.qpp-c-button) {
|
|
43
|
+
&:focus {
|
|
44
|
+
@include link-focus;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
36
47
|
|
|
37
|
-
&:
|
|
38
|
-
|
|
48
|
+
&:hover {
|
|
49
|
+
> span {
|
|
50
|
+
text-decoration-thickness: rem(2px);
|
|
51
|
+
}
|
|
39
52
|
}
|
|
40
53
|
|
|
41
54
|
> span {
|
|
42
55
|
text-decoration: underline;
|
|
43
56
|
}
|
|
44
57
|
}
|
|
58
|
+
|
|
59
|
+
&--return {
|
|
60
|
+
.qpp-c-breadcrumbs__link {
|
|
61
|
+
color: $blue-60;
|
|
62
|
+
font-weight: $font-medium;
|
|
63
|
+
> svg {
|
|
64
|
+
@include inline-icon-lg;
|
|
65
|
+
display: inline-block;
|
|
66
|
+
margin-left: -0.7em;
|
|
67
|
+
margin-right: -0.1em;
|
|
68
|
+
margin-top: -0.415em;
|
|
69
|
+
height: 1.715em;
|
|
70
|
+
width: 1.715em;
|
|
71
|
+
}
|
|
72
|
+
> span {
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
45
77
|
}
|
|
46
78
|
|
|
47
79
|
.qpp-c-breadcrumbs--light {
|
|
48
80
|
color: $white;
|
|
49
81
|
|
|
50
|
-
.qpp-c-breadcrumbs__link
|
|
82
|
+
.qpp-c-breadcrumbs__link {
|
|
51
83
|
color: $white;
|
|
52
84
|
}
|
|
53
85
|
|
|
54
86
|
.qpp-c-breadcrumbs__list-item {
|
|
55
87
|
&::after {
|
|
56
|
-
|
|
88
|
+
border-right: 0.1em solid fade-out($white, 0.6);
|
|
57
89
|
}
|
|
58
90
|
}
|
|
59
91
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
@import '../settings/index';
|
|
2
2
|
|
|
3
|
+
/* stylelint-disable selector-max-specificity */
|
|
4
|
+
|
|
3
5
|
// Default / Primary Button
|
|
4
6
|
.qpp-c-button,
|
|
5
|
-
.qpp-c-button:visited
|
|
7
|
+
.qpp-c-button:visited,
|
|
8
|
+
.qppds .qpp-c-button,
|
|
9
|
+
.qppds .qpp-c-button:visited {
|
|
6
10
|
background-color: $blue-60;
|
|
7
11
|
border: 1px solid $blue-60;
|
|
8
12
|
border-radius: 3px;
|
|
@@ -12,7 +16,7 @@
|
|
|
12
16
|
display: inline-block;
|
|
13
17
|
font-family: $font-rubik;
|
|
14
18
|
font-size: $font-size-14;
|
|
15
|
-
font-weight: $font-
|
|
19
|
+
font-weight: $font-medium;
|
|
16
20
|
letter-spacing: $letter-spacing-sm;
|
|
17
21
|
line-height: $line-height-xs;
|
|
18
22
|
padding: $spacing-12 $spacing-16;
|
|
@@ -29,10 +33,14 @@
|
|
|
29
33
|
&:focus,
|
|
30
34
|
&.qpp-c-button--focus {
|
|
31
35
|
border: 1px solid $blue-70;
|
|
36
|
+
border-radius: 3px;
|
|
32
37
|
box-shadow: 0 0 0 4px $blue-10;
|
|
33
38
|
outline: none;
|
|
34
39
|
text-decoration: none;
|
|
35
40
|
color: $white;
|
|
41
|
+
padding: $spacing-12 $spacing-16;
|
|
42
|
+
margin-left: 0;
|
|
43
|
+
margin-right: 0;
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
&:active,
|
|
@@ -165,8 +173,8 @@
|
|
|
165
173
|
// Danger / Destructive Button
|
|
166
174
|
&.qpp-c-button--danger {
|
|
167
175
|
background-color: transparent;
|
|
168
|
-
border: 1px solid $red-
|
|
169
|
-
color: $red-
|
|
176
|
+
border: 1px solid $red-50;
|
|
177
|
+
color: $red-50;
|
|
170
178
|
font-size: $font-size-14;
|
|
171
179
|
|
|
172
180
|
&:disabled,
|
|
@@ -179,6 +187,7 @@
|
|
|
179
187
|
&:hover,
|
|
180
188
|
&.qpp-c-button--hover {
|
|
181
189
|
background-color: fade-out($red-50, 0.9);
|
|
190
|
+
color: $red-60;
|
|
182
191
|
}
|
|
183
192
|
|
|
184
193
|
&:active,
|
|
@@ -202,7 +211,8 @@
|
|
|
202
211
|
}
|
|
203
212
|
}
|
|
204
213
|
|
|
205
|
-
.qpp-c-button.qpp-c-button--text
|
|
214
|
+
.qpp-c-button.qpp-c-button--text,
|
|
215
|
+
.qppds .qpp-c-button.qpp-c-button--text {
|
|
206
216
|
color: $blue-60;
|
|
207
217
|
|
|
208
218
|
&:disabled,
|
|
@@ -210,14 +220,15 @@
|
|
|
210
220
|
color: $gray-60;
|
|
211
221
|
}
|
|
212
222
|
|
|
213
|
-
&:hover,
|
|
214
|
-
&.qpp-c-button--hover {
|
|
215
|
-
color: $blue-70;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
223
|
&:focus,
|
|
219
224
|
&.qpp-c-button--focus {
|
|
220
225
|
border: 1px solid $blue-60;
|
|
226
|
+
color: $blue-60;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&:hover,
|
|
230
|
+
&.qpp-c-button--hover {
|
|
231
|
+
color: $blue-70;
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
&.qpp-c-button--danger {
|
|
@@ -266,11 +277,24 @@
|
|
|
266
277
|
// TODO: Text buttons (https://zeroheight.com/079543162/p/56ad70-button/t/17855d)
|
|
267
278
|
|
|
268
279
|
.qpp-c-button > svg {
|
|
280
|
+
@include inline-icon-md;
|
|
281
|
+
font-size: inherit;
|
|
282
|
+
|
|
283
|
+
&.qpp-icon-mat {
|
|
284
|
+
@include mat-icon-medium;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* stylelint-disable selector-no-qualifying-type */
|
|
289
|
+
.qpp-c-button > svg.qpp-icon-inline {
|
|
269
290
|
@include inline-icon;
|
|
270
|
-
height: 1rem;
|
|
271
|
-
width: 1rem;
|
|
272
291
|
}
|
|
273
292
|
|
|
293
|
+
.qpp-c-button > svg.qpp-icon-inline--lg {
|
|
294
|
+
@include inline-icon-lg;
|
|
295
|
+
}
|
|
296
|
+
/* stylelint-enable selector-no-qualifying-type */
|
|
297
|
+
|
|
274
298
|
.qpp-c-button--icon-before > svg {
|
|
275
299
|
margin-right: $spacing-8;
|
|
276
300
|
}
|
|
@@ -278,3 +302,5 @@
|
|
|
278
302
|
.qpp-c-button--icon-after > svg {
|
|
279
303
|
margin-left: $spacing-8;
|
|
280
304
|
}
|
|
305
|
+
|
|
306
|
+
/* stylelint-enable selector-max-specificity */
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
@import '../settings/index';
|
|
2
|
+
|
|
3
|
+
.qpp-c-card {
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
display: flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
.qpp-c-card__content {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.qpp-c-card__header {
|
|
15
|
+
border-top: 4px solid $blue-60;
|
|
16
|
+
box-shadow: none;
|
|
17
|
+
height: auto;
|
|
18
|
+
background: transparent;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
position: relative;
|
|
22
|
+
z-index: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.qpp-c-card__eyebrow {
|
|
27
|
+
color: $gray-80;
|
|
28
|
+
padding: $spacing-16 0 0;
|
|
29
|
+
margin: 0;
|
|
30
|
+
display: block;
|
|
31
|
+
order: -1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.qpp-c-card__title {
|
|
35
|
+
color: $gray-80;
|
|
36
|
+
padding: $spacing-16 0 $spacing-8;
|
|
37
|
+
margin: 0;
|
|
38
|
+
font-weight: $font-regular;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.qpp-c-card__body {
|
|
42
|
+
display: block;
|
|
43
|
+
padding: 0 0 $spacing-8;
|
|
44
|
+
margin: 0;
|
|
45
|
+
|
|
46
|
+
p {
|
|
47
|
+
color: $gray-80;
|
|
48
|
+
font-size: $font-size-16;
|
|
49
|
+
padding: 0;
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.qpp-c-card__cta {
|
|
55
|
+
display: block;
|
|
56
|
+
margin: 0;
|
|
57
|
+
padding-top: rem(7px);
|
|
58
|
+
line-height: $line-height-xs;
|
|
59
|
+
|
|
60
|
+
.qpp-c-button {
|
|
61
|
+
margin: -1px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.qpp-c-card__media {
|
|
66
|
+
display: block;
|
|
67
|
+
width: 100%;
|
|
68
|
+
order: -1;
|
|
69
|
+
padding: 0 0 $spacing-8;
|
|
70
|
+
|
|
71
|
+
img {
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[role='img'] {
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
background-size: cover;
|
|
81
|
+
background-position: center;
|
|
82
|
+
background-repeat: no-repeat;
|
|
83
|
+
position: relative;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.qpp-c-card--image {
|
|
88
|
+
.qpp-c-card__header {
|
|
89
|
+
border-top: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.qpp-c-card--flag {
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
|
|
96
|
+
.qpp-c-card__media {
|
|
97
|
+
flex: 0 50%;
|
|
98
|
+
padding: 0 $spacing-24 0 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.qpp-c-card__content {
|
|
102
|
+
flex: 0 50%;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* stylelint-disable max-nesting-depth */
|
|
107
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
108
|
+
$value: map-get($breakpoints, $breakpoint);
|
|
109
|
+
|
|
110
|
+
@media (min-width: $value) {
|
|
111
|
+
&.qpp-c-#{$breakpoint}-card--flag {
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
|
|
114
|
+
.qpp-c-card__media {
|
|
115
|
+
flex: 0 50%;
|
|
116
|
+
padding: 0 $spacing-24 0 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.qpp-c-card__content {
|
|
120
|
+
flex: 0 50%;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&.qpp-c-#{$breakpoint}-card--default {
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
|
|
126
|
+
.qpp-c-card__media {
|
|
127
|
+
flex: 0 1 auto;
|
|
128
|
+
padding: 0 0 $spacing-8;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.qpp-c-card__content {
|
|
132
|
+
flex: 0 1 auto;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/* stylelint-enable max-nesting-depth */
|
|
138
|
+
|
|
139
|
+
// "fixed image height" helper variants to match existing FE design.
|
|
140
|
+
// Required when using "background-image" cards, but not for img element media cards
|
|
141
|
+
&.qpp-c-card--small {
|
|
142
|
+
.qpp-c-card__media {
|
|
143
|
+
> img,
|
|
144
|
+
> [role='img'] {
|
|
145
|
+
height: 175px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.qpp-c-card__title {
|
|
150
|
+
font-size: $font-size-18;
|
|
151
|
+
|
|
152
|
+
@media (min-width: $width-xs) {
|
|
153
|
+
font-size: $font-size-20;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.qpp-c-card--medium {
|
|
159
|
+
.qpp-c-card__media {
|
|
160
|
+
> img,
|
|
161
|
+
> [role='img'] {
|
|
162
|
+
height: 220px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.qpp-c-card--large {
|
|
168
|
+
.qpp-c-card__media {
|
|
169
|
+
> img,
|
|
170
|
+
> [role='img'] {
|
|
171
|
+
height: 286px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@import '../settings/index';
|
|
3
|
+
|
|
4
|
+
$forced-color-active: active;
|
|
5
|
+
|
|
6
|
+
/* stylelint-disable selector-max-specificity, max-nesting-depth, selector-max-compound-selectors, value-list-comma-newline-after */
|
|
7
|
+
.qpp-c-checkbox,
|
|
8
|
+
.qppds .qpp-c-checkbox,
|
|
9
|
+
.qpp-prose .qpp-c-checkbox {
|
|
10
|
+
background: $white;
|
|
11
|
+
|
|
12
|
+
.qpp-c-checkbox__label {
|
|
13
|
+
font-size: $font-size-16;
|
|
14
|
+
line-height: $line-height-lg;
|
|
15
|
+
&::before,
|
|
16
|
+
&::after {
|
|
17
|
+
width: $spacing-20;
|
|
18
|
+
height: $spacing-20;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--small {
|
|
23
|
+
.qpp-c-checkbox__label {
|
|
24
|
+
font-size: $font-size-14;
|
|
25
|
+
line-height: $line-height-md;
|
|
26
|
+
&::before,
|
|
27
|
+
&::after {
|
|
28
|
+
width: $spacing-16;
|
|
29
|
+
height: $spacing-16;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--indeterminate {
|
|
35
|
+
.qpp-c-checkbox__input {
|
|
36
|
+
&:checked + [class*='__label']::before,
|
|
37
|
+
&:checked:disabled + [class*='__label']::before,
|
|
38
|
+
&:checked[aria-disabled='true'] + [class*='__label']::before {
|
|
39
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' role='img' stroke='transparent' fill='white' viewBox='1.5 1.5 21 21'%3E%3Cpath fill-rule='evenodd' d='M4 11h16v2H4z'/%3E%3C/svg%3E"),
|
|
40
|
+
linear-gradient(transparent, transparent);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.qpp-c-checkbox__input {
|
|
47
|
+
// The actual input element is only visible to screen readers, because
|
|
48
|
+
// all visual styling is done via the label.
|
|
49
|
+
@include visually-hidden;
|
|
50
|
+
+ [class*='__label'] {
|
|
51
|
+
&:hover {
|
|
52
|
+
&::before {
|
|
53
|
+
background-color: $gray-04;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:active {
|
|
58
|
+
&::after {
|
|
59
|
+
box-shadow: 0 0 0 0.5rem $blue-10;
|
|
60
|
+
transition: box-shadow 0.08s ease;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus {
|
|
66
|
+
outline: none;
|
|
67
|
+
|
|
68
|
+
+ [class*='__label']::before {
|
|
69
|
+
@include focus-ring;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:disabled,
|
|
74
|
+
&[aria-disabled='true'] {
|
|
75
|
+
+ [class*='__label'] {
|
|
76
|
+
color: rgba(27, 27, 27, 0.3); // TODO: DS styles
|
|
77
|
+
|
|
78
|
+
&:active {
|
|
79
|
+
&::after {
|
|
80
|
+
box-shadow: 0 0 0 0 transparent;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
+ [class*='__label'],
|
|
85
|
+
+ [class*='__label']::before {
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
+ [class*='__label']::before {
|
|
89
|
+
background-color: $gray-10;
|
|
90
|
+
border: rem(1px) solid $gray-10;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Checkboxes with tap-friendly targets
|
|
95
|
+
&--tile {
|
|
96
|
+
// TODO: designs and styles for "tile" mode to support friendler
|
|
97
|
+
// mobile tap targets for checkboxes and radios (USWDS feature).
|
|
98
|
+
+ [class*='__label'] {
|
|
99
|
+
background-color: $white;
|
|
100
|
+
border: 2px solid rgba(27, 27, 27, 0.3);
|
|
101
|
+
color: #1b1b1b;
|
|
102
|
+
border-radius: 0.25rem;
|
|
103
|
+
margin-top: $spacing-8;
|
|
104
|
+
padding: $spacing-12 $spacing-16 $spacing-12 $spacing-40;
|
|
105
|
+
|
|
106
|
+
&::before {
|
|
107
|
+
left: $spacing-8;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:checked + [class*='__label']::before,
|
|
113
|
+
&:checked:disabled + [class*='__label']::before,
|
|
114
|
+
&:checked[aria-disabled='true'] + [class*='__label']::before {
|
|
115
|
+
background-position: center center;
|
|
116
|
+
background-size: contain;
|
|
117
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' role='img' stroke='transparent' fill='white' viewBox='1.5 1.5 21 21'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"),
|
|
118
|
+
linear-gradient(transparent, transparent);
|
|
119
|
+
background-repeat: no-repeat;
|
|
120
|
+
@media print {
|
|
121
|
+
background-image: none;
|
|
122
|
+
background-color: $white;
|
|
123
|
+
content: '\2714';
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (forced-colors: $forced-color-active) {
|
|
128
|
+
background-color: ButtonText;
|
|
129
|
+
|
|
130
|
+
&--tile {
|
|
131
|
+
background-color: ButtonText;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:checked:not(:disabled, [aria-disabled='true']) {
|
|
137
|
+
+ [class*='__label']::before {
|
|
138
|
+
background-color: $blue-60;
|
|
139
|
+
border: rem(1px) solid $blue-60;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:checked:not(:disabled, [aria-disabled='true']) + [class*='__label'] {
|
|
144
|
+
&:hover {
|
|
145
|
+
&::before {
|
|
146
|
+
background-color: $blue-70;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.qpp-c-checkbox__label,
|
|
153
|
+
.qppds .qpp-c-checkbox__label,
|
|
154
|
+
.qpp-prose .qpp-c-checkbox__label {
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
display: inherit;
|
|
157
|
+
font-weight: $font-regular;
|
|
158
|
+
margin-top: $spacing-12;
|
|
159
|
+
padding-left: $spacing-32;
|
|
160
|
+
position: relative;
|
|
161
|
+
|
|
162
|
+
&::before {
|
|
163
|
+
content: ' ';
|
|
164
|
+
background: $white;
|
|
165
|
+
border: 1px solid $gray-80;
|
|
166
|
+
border-radius: 3px;
|
|
167
|
+
box-sizing: border-box;
|
|
168
|
+
display: block;
|
|
169
|
+
top: 0;
|
|
170
|
+
left: 0;
|
|
171
|
+
margin-left: 0;
|
|
172
|
+
margin-top: 0;
|
|
173
|
+
position: absolute;
|
|
174
|
+
z-index: 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&::after {
|
|
178
|
+
content: ' ';
|
|
179
|
+
background: none;
|
|
180
|
+
border-radius: 1rem;
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
display: block;
|
|
183
|
+
top: 0;
|
|
184
|
+
left: 0;
|
|
185
|
+
margin-left: 0;
|
|
186
|
+
margin-top: 0;
|
|
187
|
+
position: absolute;
|
|
188
|
+
z-index: 0;
|
|
189
|
+
box-shadow: 0 0 0 0 transparent;
|
|
190
|
+
transition: box-shadow 0.5s ease 0.04s;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.qpp-c-checkbox__label-description {
|
|
195
|
+
display: block;
|
|
196
|
+
//font-size: $font-size-base;
|
|
197
|
+
margin-top: $spacing-16;
|
|
198
|
+
}
|
|
199
|
+
/* stylelint-enable selector-max-specificity, max-nesting-depth, selector-max-compound-selectors, value-list-comma-newline-after */
|