@worksafevictoria/wcl7.5 1.0.0
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/.editorconfig +13 -0
- package/.env +4 -0
- package/.eslintrc.cjs +10 -0
- package/.eslintrc.js +25 -0
- package/.husky/commit-msg +4 -0
- package/.prettierrc +5 -0
- package/.prettierrc.json +8 -0
- package/.storybook/main.js +18 -0
- package/.storybook/preview.js +34 -0
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/babel.config.js +8 -0
- package/bin/clean.sh +52 -0
- package/bin/deploy.sh +25 -0
- package/ci/build/Build_Validation.md +35 -0
- package/ci/build/build_validation.yml +47 -0
- package/ci/release/Release_Beta.md +39 -0
- package/ci/release/Release_Master.md +29 -0
- package/ci/release/beta.yml +69 -0
- package/ci/release/master.yml +39 -0
- package/commitlint.config.js +1 -0
- package/index.html +13 -0
- package/jest.config.js +21 -0
- package/lib/detect-browser.js +33 -0
- package/lib/utility.js +59 -0
- package/lib/utility.test.js +15 -0
- package/package.json +93 -0
- package/public/favicon.ico +0 -0
- package/src/assets/base.css +86 -0
- package/src/assets/fonts/VIC-Bold.eot +0 -0
- package/src/assets/fonts/VIC-Bold.ttf +0 -0
- package/src/assets/fonts/VIC-Bold.woff +0 -0
- package/src/assets/fonts/VIC-Bold.woff2 +0 -0
- package/src/assets/fonts/VIC-BoldItalic.eot +0 -0
- package/src/assets/fonts/VIC-BoldItalic.ttf +0 -0
- package/src/assets/fonts/VIC-BoldItalic.woff +0 -0
- package/src/assets/fonts/VIC-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-ExtraLight.eot +0 -0
- package/src/assets/fonts/VIC-ExtraLight.ttf +0 -0
- package/src/assets/fonts/VIC-ExtraLight.woff +0 -0
- package/src/assets/fonts/VIC-ExtraLight.woff2 +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.eot +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.ttf +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.woff +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Italic.eot +0 -0
- package/src/assets/fonts/VIC-Italic.ttf +0 -0
- package/src/assets/fonts/VIC-Italic.woff +0 -0
- package/src/assets/fonts/VIC-Italic.woff2 +0 -0
- package/src/assets/fonts/VIC-Light.eot +0 -0
- package/src/assets/fonts/VIC-Light.ttf +0 -0
- package/src/assets/fonts/VIC-Light.woff +0 -0
- package/src/assets/fonts/VIC-Light.woff2 +0 -0
- package/src/assets/fonts/VIC-LightItalic.eot +0 -0
- package/src/assets/fonts/VIC-LightItalic.ttf +0 -0
- package/src/assets/fonts/VIC-LightItalic.woff +0 -0
- package/src/assets/fonts/VIC-LightItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Medium.eot +0 -0
- package/src/assets/fonts/VIC-Medium.ttf +0 -0
- package/src/assets/fonts/VIC-Medium.woff +0 -0
- package/src/assets/fonts/VIC-Medium.woff2 +0 -0
- package/src/assets/fonts/VIC-MediumItalic.eot +0 -0
- package/src/assets/fonts/VIC-MediumItalic.ttf +0 -0
- package/src/assets/fonts/VIC-MediumItalic.woff +0 -0
- package/src/assets/fonts/VIC-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Regular.eot +0 -0
- package/src/assets/fonts/VIC-Regular.ttf +0 -0
- package/src/assets/fonts/VIC-Regular.woff +0 -0
- package/src/assets/fonts/VIC-Regular.woff2 +0 -0
- package/src/assets/fonts/VIC-SemiBold.eot +0 -0
- package/src/assets/fonts/VIC-SemiBold.ttf +0 -0
- package/src/assets/fonts/VIC-SemiBold.woff +0 -0
- package/src/assets/fonts/VIC-SemiBold.woff2 +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.eot +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.ttf +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.woff +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.woff2 +0 -0
- package/src/assets/icons/AppFooter/australian-aboriginal-flag.svg +7 -0
- package/src/assets/icons/AppFooter/facebook-ws-footer.svg +58 -0
- package/src/assets/icons/AppFooter/facebook-ww-footer.svg +59 -0
- package/src/assets/icons/AppFooter/instagram-ww-footer.svg +70 -0
- package/src/assets/icons/AppFooter/linkedin-ws-footer.svg +59 -0
- package/src/assets/icons/AppFooter/linkedin-ww-footer.svg +60 -0
- package/src/assets/icons/AppFooter/logo-workwell-reversed.svg +45 -0
- package/src/assets/icons/AppFooter/pride-flag.svg +12 -0
- package/src/assets/icons/AppFooter/torres-strait-islanders-flag.svg +9 -0
- package/src/assets/icons/AppFooter/twitter-ws-footer.svg +58 -0
- package/src/assets/icons/AppFooter/twitter-ww-footer.svg +59 -0
- package/src/assets/icons/AppFooter/worksafe-footer-logo.svg +9 -0
- package/src/assets/icons/AppFooter/youtube-ws-footer.svg +55 -0
- package/src/assets/icons/AppFooter/youtube-ww-footer.svg +56 -0
- package/src/assets/icons/AppHeader/chev-down-16.svg +17 -0
- package/src/assets/icons/AppHeader/chev-left-24px.svg +13 -0
- package/src/assets/icons/AppHeader/chev-right-16px.svg +25 -0
- package/src/assets/icons/AppHeader/chev-right-24px.svg +13 -0
- package/src/assets/icons/AppHeader/close-32px.svg +15 -0
- package/src/assets/icons/AppHeader/menu-32px.svg +20 -0
- package/src/assets/icons/AppHeader/search-32px.svg +19 -0
- package/src/assets/icons/Email-circle-black.svg +4 -0
- package/src/assets/icons/Info-circle-fill.svg +10 -0
- package/src/assets/icons/Phone-circle-black.svg +4 -0
- package/src/assets/icons/SocialShare/bookmark-white.svg +3 -0
- package/src/assets/icons/SocialShare/bookmark-ww-footer.svg +57 -0
- package/src/assets/icons/SocialShare/bookmark.svg +56 -0
- package/src/assets/icons/SocialShare/email-white.svg +3 -0
- package/src/assets/icons/SocialShare/facebook-white.svg +3 -0
- package/src/assets/icons/SocialShare/facebook-ws-footer.svg +58 -0
- package/src/assets/icons/SocialShare/facebook-ww-footer.svg +59 -0
- package/src/assets/icons/SocialShare/facebook.svg +1 -0
- package/src/assets/icons/SocialShare/office-file-pdf.svg +1 -0
- package/src/assets/icons/SocialShare/print.svg +3 -0
- package/src/assets/icons/SocialShare/twitter-white.svg +3 -0
- package/src/assets/icons/SocialShare/twitter-ws-footer.svg +58 -0
- package/src/assets/icons/SocialShare/twitter-ww-footer.svg +59 -0
- package/src/assets/icons/SocialShare/twitter.svg +1 -0
- package/src/assets/icons/Strip/AlertDismiss.svg +4 -0
- package/src/assets/icons/Strip/Arrow right.svg +4 -0
- package/src/assets/icons/Strip/Chevron right.svg +3 -0
- package/src/assets/icons/Strip/Dismiss.svg +4 -0
- package/src/assets/icons/Strip/Exclamation triangle fill.svg +8 -0
- package/src/assets/icons/Strip/Info circle fill.svg +15 -0
- package/src/assets/icons/Strip/Information.svg +15 -0
- package/src/assets/icons/Strip/Warning.svg +8 -0
- package/src/assets/icons/arrow-left.svg +9 -0
- package/src/assets/icons/arrow-right.svg +9 -0
- package/src/assets/icons/bookmark.svg +56 -0
- package/src/assets/icons/brand-VicStateGov-logo-reversed.svg +72 -0
- package/src/assets/icons/bullet-empty.svg +3 -0
- package/src/assets/icons/bullet.svg +3 -0
- package/src/assets/icons/caret-down.svg +1 -0
- package/src/assets/icons/caret-left.svg +9 -0
- package/src/assets/icons/caret-right.svg +9 -0
- package/src/assets/icons/caret-up.svg +1 -0
- package/src/assets/icons/chev-down-white.svg +3 -0
- package/src/assets/icons/chev-down.svg +3 -0
- package/src/assets/icons/chev-left.svg +3 -0
- package/src/assets/icons/chev-right.svg +3 -0
- package/src/assets/icons/chev-up.svg +3 -0
- package/src/assets/icons/clock.svg +3 -0
- package/src/assets/icons/close.svg +1 -0
- package/src/assets/icons/cross.svg +3 -0
- package/src/assets/icons/document.svg +1 -0
- package/src/assets/icons/earth.svg +1 -0
- package/src/assets/icons/email.svg +6 -0
- package/src/assets/icons/external-link-16px.svg +18 -0
- package/src/assets/icons/external-link.svg +4 -0
- package/src/assets/icons/icon-close.svg +15 -0
- package/src/assets/icons/instagram.svg +3 -0
- package/src/assets/icons/key.svg +3 -0
- package/src/assets/icons/location.svg +10 -0
- package/src/assets/icons/phone.svg +3 -0
- package/src/assets/icons/refresh.svg +3 -0
- package/src/assets/icons/right-arrow.svg +3 -0
- package/src/assets/icons/search.svg +5 -0
- package/src/assets/icons/tick.svg +3 -0
- package/src/assets/icons/video-play.svg +4 -0
- package/src/assets/images/hero-header-chevron.svg +9 -0
- package/src/assets/images/hero-header-mask.png +0 -0
- package/src/assets/images/hero-header-mask.svg +3 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +35 -0
- package/src/assets/styles/button.scss +206 -0
- package/src/assets/styles/focus.scss +4 -0
- package/src/assets/styles/generated-icons.scss +374 -0
- package/src/assets/styles/modal.scss +12 -0
- package/src/assets/styles/rtl.scss +8 -0
- package/src/assets/styles/storybook.scss +9 -0
- package/src/assets/styles/stylesheet.scss +7 -0
- package/src/assets/styles/webfonts.css +155 -0
- package/src/components/Common/CardGrid/cardgrid.stories.js +269 -0
- package/src/components/Common/CardGrid/index.vue +321 -0
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +164 -0
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +163 -0
- package/src/components/Common/CardGridItem/index.vue +848 -0
- package/src/components/Common/FilterButton/index.vue +93 -0
- package/src/components/Containers/Column/index.stories.js +35 -0
- package/src/components/Containers/Column/index.vue +14 -0
- package/src/components/Containers/Container/index.stories.js +13 -0
- package/src/components/Containers/Container/index.vue +15 -0
- package/src/components/Containers/HomepageHeader/index.stories.js +78 -0
- package/src/components/Containers/HomepageHeader/index.vue +186 -0
- package/src/components/Containers/Row/index.stories.js +12 -0
- package/src/components/Containers/Row/index.vue +14 -0
- package/src/components/Containers/SectionGroup/index.stories.js +148 -0
- package/src/components/Containers/SectionGroup/index.vue +310 -0
- package/src/components/Containers/Subheader/index.stories.js +74 -0
- package/src/components/Containers/Subheader/index.vue +149 -0
- package/src/components/Global/AlertStrip/index.stories.js +13 -0
- package/src/components/Global/AlertStrip/index.vue +145 -0
- package/src/components/Global/AlertStrip/styles.scss +78 -0
- package/src/components/Global/AppFooter/FooterSocialShare/index.vue +105 -0
- package/src/components/Global/AppFooter/FooterSocialShare/styles.scss +41 -0
- package/src/components/Global/AppFooter/index.stories.js +24 -0
- package/src/components/Global/AppFooter/index.vue +632 -0
- package/src/components/Global/AppFooter/storiesConst.js +110 -0
- package/src/components/Global/AppFooter/styles.scss +393 -0
- package/src/components/Global/AppHeader/ModalSearch/index.vue +66 -0
- package/src/components/Global/AppHeader/ModalSearch/styles.scss +43 -0
- package/src/components/Global/AppHeader/includes.scss +68 -0
- package/src/components/Global/AppHeader/index.stories.js +82 -0
- package/src/components/Global/AppHeader/index.vue +878 -0
- package/src/components/Global/AppHeader/mobile.scss +240 -0
- package/src/components/Global/AppHeader/styles.scss +371 -0
- package/src/components/Global/BackToTop/index.stories.js +18 -0
- package/src/components/Global/BackToTop/index.vue +67 -0
- package/src/components/Global/BackToTop/styles.scss +46 -0
- package/src/components/Global/ContrastMode/index.stories.js +39 -0
- package/src/components/Global/ContrastMode/index.vue +308 -0
- package/src/components/Global/Cookies/Constants.js +72 -0
- package/src/components/Global/Cookies/index.storieshide.js +45 -0
- package/src/components/Global/Cookies/index.vue +453 -0
- package/src/components/Global/Cookies/styles.scss +259 -0
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +196 -0
- package/src/components/Global/DirectoryFilters/index.vue +176 -0
- package/src/components/Global/GlobalNotice/index.vue +266 -0
- package/src/components/Global/HeroHeader/index.stories.js +93 -0
- package/src/components/Global/HeroHeader/index.vue +343 -0
- package/src/components/Global/HeroHeader/styles.scss +480 -0
- package/src/components/Global/ProgressBar/index.stories.js +51 -0
- package/src/components/Global/ProgressBar/index.vue +58 -0
- package/src/components/Global/ProgressBar/styles.scss +116 -0
- package/src/components/Global/SocialShare/index.stories.js +18 -0
- package/src/components/Global/SocialShare/index.vue +318 -0
- package/src/components/Global/Strip/index.stories.js +70 -0
- package/src/components/Global/Strip/index.vue +357 -0
- package/src/components/HelloWorld.vue +44 -0
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +232 -0
- package/src/components/Paragraphs/Accordion/StepperItem/index.vue +274 -0
- package/src/components/Paragraphs/Accordion/index.stories.js +84 -0
- package/src/components/Paragraphs/Accordion/index.vue +202 -0
- package/src/components/Paragraphs/Breakout/index.stories.js +39 -0
- package/src/components/Paragraphs/Breakout/index.vue +115 -0
- package/src/components/Paragraphs/BrowseContent/index.stories.js +220 -0
- package/src/components/Paragraphs/BrowseContent/index.vue +298 -0
- package/src/components/Paragraphs/BrowseContent/switcher.vue +63 -0
- package/src/components/Paragraphs/Calculator/CardContainer/index.vue +278 -0
- package/src/components/Paragraphs/Calculator/CardContainer/styles.scss +152 -0
- package/src/components/Paragraphs/Calculator/Constants.js +246 -0
- package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +124 -0
- package/src/components/Paragraphs/Calculator/RiskLevel/styles.scss +73 -0
- package/src/components/Paragraphs/Calculator/index.stories.js +27 -0
- package/src/components/Paragraphs/Calculator/index.vue +284 -0
- package/src/components/Paragraphs/Calculator/styles.scss +49 -0
- package/src/components/Paragraphs/Directory/Records/CJ/index.vue +59 -0
- package/src/components/Paragraphs/Directory/Records/ISP/distance.js +46 -0
- package/src/components/Paragraphs/Directory/Records/ISP/index.vue +88 -0
- package/src/components/Paragraphs/Directory/Records/PRS/index.vue +59 -0
- package/src/components/Paragraphs/Directory/Records/PRS/recordContent.vue +91 -0
- package/src/components/Paragraphs/Directory/Records/PRS/recordDetails.vue +49 -0
- package/src/components/Paragraphs/Directory/Records/index.vue +203 -0
- package/src/components/Paragraphs/Directory/Records/styles.scss +129 -0
- package/src/components/Paragraphs/Directory/constants.js +79 -0
- package/src/components/Paragraphs/Directory/index.vue +334 -0
- package/src/components/Paragraphs/ListGroup/Constants.js +72 -0
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +71 -0
- package/src/components/Paragraphs/ListGroup/index.vue +333 -0
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +64 -0
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +66 -0
- package/src/components/Paragraphs/MarketingBanner/index.stories.js +65 -0
- package/src/components/Paragraphs/MarketingBanner/index.vue +118 -0
- package/src/components/Paragraphs/MarketingBanner/styles.scss +87 -0
- package/src/components/Paragraphs/ProofPoints/index.stories.js +173 -0
- package/src/components/Paragraphs/ProofPoints/index.vue +64 -0
- package/src/components/Paragraphs/RelatedInformation/index.stories.js +32 -0
- package/src/components/Paragraphs/RelatedInformation/index.vue +62 -0
- package/src/components/Paragraphs/RelatedInformation/styles.scss +50 -0
- package/src/components/Paragraphs/RichText/index.stories.js +393 -0
- package/src/components/Paragraphs/RichText/index.vue +113 -0
- package/src/components/Paragraphs/RichText/scss/base.scss +355 -0
- package/src/components/Paragraphs/RichText/scss/definition-list.scss +35 -0
- package/src/components/Paragraphs/RichText/scss/styled-list.scss +152 -0
- package/src/components/Paragraphs/RichText/scss/table.scss +85 -0
- package/src/components/Paragraphs/ScrollSpy/index.stories.js +184 -0
- package/src/components/Paragraphs/ScrollSpy/index.vue +147 -0
- package/src/components/Paragraphs/SelectableCards/Control/index.stories.js +29 -0
- package/src/components/Paragraphs/SelectableCards/cardbody.vue +25 -0
- package/src/components/Paragraphs/SelectableCards/cardtop.vue +113 -0
- package/src/components/Paragraphs/SelectableCards/index.stories.js +27 -0
- package/src/components/Paragraphs/SelectableCards/index.vue +116 -0
- package/src/components/Paragraphs/Statistics/index.stories.js +106 -0
- package/src/components/Paragraphs/Statistics/index.vue +95 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/cake-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/commute-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/fire_extinguisher-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/free_breakfast-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/portrait-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/storefront-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/tag_faces-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/index.stories.js +36 -0
- package/src/components/Paragraphs/TabbedCards/index.vue +393 -0
- package/src/components/Paragraphs/Tabs/index.stories.js +60 -0
- package/src/components/Paragraphs/Tabs/index.vue +127 -0
- package/src/components/Paragraphs/Tabs/styles.scss +150 -0
- package/src/components/Paragraphs/TabulatedData/Constants.js +158 -0
- package/src/components/Paragraphs/TabulatedData/index.stories.js +39 -0
- package/src/components/Paragraphs/TabulatedData/index.vue +145 -0
- package/src/components/Paragraphs/TaskFinder/index.stories.js +45 -0
- package/src/components/Paragraphs/TaskFinder/index.vue +192 -0
- package/src/components/Paragraphs/TaskFinder/pdf/index.vue +109 -0
- package/src/components/Paragraphs/TaskFinder/task-finder-column.vue +146 -0
- package/src/components/Paragraphs/TextMedia/MediaTypes/Image/index.vue +24 -0
- package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +29 -0
- package/src/components/Paragraphs/TextMedia/index.stories.js +94 -0
- package/src/components/Paragraphs/TextMedia/index.vue +150 -0
- package/src/components/Paragraphs/VideoGrid/index.stories.js +167 -0
- package/src/components/Paragraphs/VideoGrid/index.vue +124 -0
- package/src/components/Paragraphs/VideoPlayer/index.stories.js +95 -0
- package/src/components/Paragraphs/VideoPlayer/index.vue +110 -0
- package/src/components/Paragraphs/Webform/index.stories.js +70 -0
- package/src/components/Paragraphs/Webform/index.vue +103 -0
- package/src/components/SubComponents/Breadcrumb/constants.js +15 -0
- package/src/components/SubComponents/Breadcrumb/index.stories.js +22 -0
- package/src/components/SubComponents/Breadcrumb/index.vue +91 -0
- package/src/components/SubComponents/CardGroup/cardbody.vue +109 -0
- package/src/components/SubComponents/CardGroup/cardtop.vue +106 -0
- package/src/components/SubComponents/CardGroup/index.stories.js +145 -0
- package/src/components/SubComponents/CardGroup/index.vue +297 -0
- package/src/components/SubComponents/CtaButton/index.stories.js +357 -0
- package/src/components/SubComponents/CtaButton/index.vue +256 -0
- package/src/components/SubComponents/FormAddressPostcode/index.stories.js +43 -0
- package/src/components/SubComponents/FormAddressPostcode/index.vue +314 -0
- package/src/components/SubComponents/FormInstance/index.stories.js +8 -0
- package/src/components/SubComponents/FormInstance/index.vue +12 -0
- package/src/components/SubComponents/GoogleSearch/index.stories.js +8 -0
- package/src/components/SubComponents/GoogleSearch/index.vue +405 -0
- package/src/components/SubComponents/Icon/README.md +40 -0
- package/src/components/SubComponents/Icon/example.js +41 -0
- package/src/components/SubComponents/Icon/index.stories.js +84 -0
- package/src/components/SubComponents/Icon/index.vue +127 -0
- package/src/components/SubComponents/Icon/styles.scss +38 -0
- package/src/components/SubComponents/Loading/index.stories.js +9 -0
- package/src/components/SubComponents/Loading/index.vue +15 -0
- package/src/components/SubComponents/MediaPlayer/index.stories.js +58 -0
- package/src/components/SubComponents/MediaPlayer/index.vue +69 -0
- package/src/components/SubComponents/Pagination/index.stories.js +119 -0
- package/src/components/SubComponents/Pagination/index.vue +184 -0
- package/src/components/SubComponents/Pagination/pagination.js +58 -0
- package/src/components/SubComponents/ResourceGroup/List/index.stories.js +268 -0
- package/src/components/SubComponents/ResourceGroup/cardbody.vue +221 -0
- package/src/components/SubComponents/ResourceGroup/cardfooter.vue +61 -0
- package/src/components/SubComponents/ResourceGroup/cardtop.vue +94 -0
- package/src/components/SubComponents/ResourceGroup/index.stories.js +268 -0
- package/src/components/SubComponents/ResourceGroup/index.vue +575 -0
- package/src/components/SubComponents/ResourceGroup/styles.scss +317 -0
- package/src/components/SubComponents/ResourceGroup/switcher.vue +63 -0
- package/src/components/SubComponents/Search/SearchListing/index.vue +217 -0
- package/src/components/SubComponents/Search/index.stories.js +43 -0
- package/src/components/SubComponents/Search/index.vue +238 -0
- package/src/components/SubComponents/SingleImage/index.stories.js +60 -0
- package/src/components/SubComponents/SingleImage/index.vue +98 -0
- package/src/components/SubComponents/VideoThumbnail/index.stories.js +41 -0
- package/src/components/SubComponents/VideoThumbnail/index.vue +239 -0
- package/src/components/TheWelcome.vue +88 -0
- package/src/components/WelcomeItem.vue +87 -0
- package/src/components/icons/IconCommunity.vue +7 -0
- package/src/components/icons/IconDocumentation.vue +7 -0
- package/src/components/icons/IconEcosystem.vue +7 -0
- package/src/components/icons/IconSupport.vue +7 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/includes/scss/all.scss +2 -0
- package/src/includes/scss/mixins/all.scss +6 -0
- package/src/includes/scss/mixins/src/focus.scss +38 -0
- package/src/includes/scss/mixins/src/fp.scss +31 -0
- package/src/includes/scss/mixins/src/grid.scss +125 -0
- package/src/includes/scss/mixins/src/mq.scss +30 -0
- package/src/includes/scss/mixins/src/rtl.scss +8 -0
- package/src/includes/scss/mixins/src/units.scss +110 -0
- package/src/includes/scss/vars/all.scss +2 -0
- package/src/includes/scss/vars/src/breakpoints.scss +20 -0
- package/src/includes/scss/vars/src/colors.module.scss +53 -0
- package/src/includes/scss/vars/src/colors.scss +53 -0
- package/src/index.js +116 -0
- package/src/main.js +18 -0
- package/src/mock/accordion.js +104 -0
- package/src/mock/app-header.js +683 -0
- package/src/mock/control-selectable-cards.js +58 -0
- package/src/mock/jest.svgtransformer.js +7 -0
- package/src/mock/list-group.js +46 -0
- package/src/mock/proof-points.js +55 -0
- package/src/mock/related-info.js +44 -0
- package/src/mock/selectable-cards.js +48 -0
- package/src/mock/statistics.js +63 -0
- package/src/mock/styleMock.js +1 -0
- package/src/mock/tabbed-cards.js +197 -0
- package/src/mock/task-finder.js +68 -0
- package/src/mock/video-grid.js +409 -0
- package/src/mock/video-media.js +51 -0
- package/src/public/places/api/v1/geocode/json +69 -0
- package/src/public/places/api/v1/place/autocomplete/json +226 -0
- package/stylelint.config.js +63 -0
- package/vite.config.js +19 -0
- package/vitest.config.js +14 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-show="showStrip" :class="`${type}-strip ${themeColor} ${layout}`">
|
|
3
|
+
<b-alert
|
|
4
|
+
:class="`${type}-strip__inner`"
|
|
5
|
+
show
|
|
6
|
+
v-model="dismissibleAlert"
|
|
7
|
+
:dismissible="!mini"
|
|
8
|
+
:variant="`${type === 'alert' ? 'danger' : 'information'}`"
|
|
9
|
+
:dismiss-label="
|
|
10
|
+
`Close ${type === 'alert' ? 'alert' : 'information'} message`
|
|
11
|
+
"
|
|
12
|
+
@dismissed="handleDismissed()"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
:role="mini ? 'link' : false"
|
|
16
|
+
:class="type + '-strip__inner-wrap'"
|
|
17
|
+
:tabindex="mini ? 0 : false"
|
|
18
|
+
:style="mini ? 'cursor: pointer;' : false"
|
|
19
|
+
@click="mini ? handleClick() : false"
|
|
20
|
+
@keypress.enter="mini ? handleClick() : false"
|
|
21
|
+
>
|
|
22
|
+
<div :class="`${type}-strip__icon`">
|
|
23
|
+
<img v-if="type === 'alert'" :src="exclamationIcon" alt="" />
|
|
24
|
+
<img v-else :src="infoIcon" alt="" />
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
:class="{
|
|
28
|
+
[`${type}-strip__content`]: true,
|
|
29
|
+
[`${type}-strip__content--left`]: !rtl,
|
|
30
|
+
[`${type}-strip__content--right`]: rtl
|
|
31
|
+
}"
|
|
32
|
+
>
|
|
33
|
+
<span
|
|
34
|
+
:class="{
|
|
35
|
+
[`${type}-strip__heading`]: true,
|
|
36
|
+
[`${type}-strip__heading--left`]: !rtl,
|
|
37
|
+
[`${type}-strip__heading--right`]: rtl
|
|
38
|
+
}"
|
|
39
|
+
>{{ stripTitle }}</span
|
|
40
|
+
>
|
|
41
|
+
<rich-text :content="stripContent" :without-container="true" />
|
|
42
|
+
</div>
|
|
43
|
+
<img
|
|
44
|
+
v-if="mini"
|
|
45
|
+
height="16"
|
|
46
|
+
class="alert-strip__icon--caret"
|
|
47
|
+
alt=""
|
|
48
|
+
:src="chevronIcon"
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</b-alert>
|
|
52
|
+
<div v-if="mini && type === 'alert'" class="alert-strip__link">
|
|
53
|
+
<nuxt-link :to="'/safety-alerts'">All safety alerts</nuxt-link>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script setup>
|
|
59
|
+
import { ref } from 'vue'
|
|
60
|
+
|
|
61
|
+
const dismissibleAlert = ref(true)
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<script>
|
|
65
|
+
import exclamationIcon from '../../../assets/icons/Strip/Exclamation triangle fill.svg?url'
|
|
66
|
+
import arrowIcon from '../../../assets/icons/Strip/Arrow right.svg?url'
|
|
67
|
+
import dismissIcon from '../../../assets/icons/Strip/Dismiss.svg?url'
|
|
68
|
+
import infoIcon from '../../../assets/icons/Strip/Info circle fill.svg?url'
|
|
69
|
+
import chevronIcon from '../../../assets/icons/caret-right.svg?url'
|
|
70
|
+
import RichText from '../../Paragraphs/RichText/index.vue'
|
|
71
|
+
import { BAlert } from 'bootstrap-vue-next'
|
|
72
|
+
|
|
73
|
+
export default {
|
|
74
|
+
name: 'Strip',
|
|
75
|
+
components: {
|
|
76
|
+
RichText,
|
|
77
|
+
BAlert
|
|
78
|
+
},
|
|
79
|
+
props: {
|
|
80
|
+
stripHeading: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: ''
|
|
83
|
+
},
|
|
84
|
+
stripContent: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: ''
|
|
87
|
+
},
|
|
88
|
+
url: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: '#'
|
|
91
|
+
},
|
|
92
|
+
type: {
|
|
93
|
+
type: String,
|
|
94
|
+
required: true
|
|
95
|
+
},
|
|
96
|
+
mini: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: true
|
|
99
|
+
},
|
|
100
|
+
rtl: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
data() {
|
|
106
|
+
return {
|
|
107
|
+
showStrip: true,
|
|
108
|
+
exclamationIcon,
|
|
109
|
+
arrowIcon,
|
|
110
|
+
dismissIcon,
|
|
111
|
+
infoIcon,
|
|
112
|
+
chevronIcon
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
computed: {
|
|
116
|
+
layout() {
|
|
117
|
+
return this.mini ? 'mini' : 'full'
|
|
118
|
+
},
|
|
119
|
+
themeColor() {
|
|
120
|
+
return this.type === 'alert' ? 'red' : 'blue'
|
|
121
|
+
},
|
|
122
|
+
stripTitle() {
|
|
123
|
+
if (this.mini && this.type === 'alert') {
|
|
124
|
+
return 'Safety alert'
|
|
125
|
+
} else if (this.mini && this.type === 'notice') {
|
|
126
|
+
return 'Information'
|
|
127
|
+
} else if (this.stripHeading) {
|
|
128
|
+
return this.stripHeading
|
|
129
|
+
} else {
|
|
130
|
+
return ''
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
methods: {
|
|
135
|
+
handleClick() {
|
|
136
|
+
const attrs = {
|
|
137
|
+
group: this.type,
|
|
138
|
+
label: this.stripContent,
|
|
139
|
+
link: this.mini ? this.url : false,
|
|
140
|
+
clickedOnPage: this.$route.path,
|
|
141
|
+
globalStrip: false
|
|
142
|
+
}
|
|
143
|
+
if (this.$gtm) {
|
|
144
|
+
this.$gtm.push({
|
|
145
|
+
event: `custom.interaction.${this.type}.click`,
|
|
146
|
+
...attrs
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
this.$router.push(this.url)
|
|
150
|
+
},
|
|
151
|
+
handleDismissed() {
|
|
152
|
+
this.showStrip = false
|
|
153
|
+
this.$emit('dismissed')
|
|
154
|
+
|
|
155
|
+
if (this.$gtm) {
|
|
156
|
+
const attrs = {
|
|
157
|
+
group: this.type,
|
|
158
|
+
label: this.stripHeading,
|
|
159
|
+
clickedOnPage: this.$route.path,
|
|
160
|
+
globalStrip: false
|
|
161
|
+
}
|
|
162
|
+
this.$gtm.push({
|
|
163
|
+
event: `custom.interaction.${this.type}.close`,
|
|
164
|
+
...attrs
|
|
165
|
+
})
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</script>
|
|
171
|
+
<style lang="scss" scoped>
|
|
172
|
+
@import '../../../includes/scss/all';
|
|
173
|
+
.red {
|
|
174
|
+
.alert-strip {
|
|
175
|
+
&__inner {
|
|
176
|
+
border: 2px solid $red;
|
|
177
|
+
}
|
|
178
|
+
&__icon {
|
|
179
|
+
background-color: $red;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.blue {
|
|
185
|
+
.notice-strip {
|
|
186
|
+
&__inner {
|
|
187
|
+
border: 2px solid $blue;
|
|
188
|
+
}
|
|
189
|
+
&__icon {
|
|
190
|
+
background-color: $blue;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.alert-strip,
|
|
196
|
+
.notice-strip {
|
|
197
|
+
position: relative;
|
|
198
|
+
&__inner {
|
|
199
|
+
background: $white;
|
|
200
|
+
display: flex;
|
|
201
|
+
border-radius: 6px;
|
|
202
|
+
margin-bottom: 0;
|
|
203
|
+
padding: 0;
|
|
204
|
+
&-wrap {
|
|
205
|
+
display: flex;
|
|
206
|
+
width: 100%;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&__content {
|
|
211
|
+
padding: 16px;
|
|
212
|
+
background-color: $white;
|
|
213
|
+
border-radius: 0 4px 4px 0;
|
|
214
|
+
width: 100%;
|
|
215
|
+
|
|
216
|
+
&--left {
|
|
217
|
+
padding-right: 48px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&--right {
|
|
221
|
+
text-align: right;
|
|
222
|
+
padding-right: 48px;
|
|
223
|
+
flex-flow: row-reverse;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
div,
|
|
227
|
+
p {
|
|
228
|
+
color: $darkgray;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:deep(p:last-of-type) {
|
|
232
|
+
margin-bottom: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:deep(a.cta-button) {
|
|
236
|
+
margin-bottom: 0;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
&__icon {
|
|
240
|
+
padding: 10px;
|
|
241
|
+
border-radius: 4px 0 0 4px;
|
|
242
|
+
display: flex;
|
|
243
|
+
width: 56px;
|
|
244
|
+
|
|
245
|
+
img {
|
|
246
|
+
width: 36px;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
&__heading {
|
|
250
|
+
color: $black;
|
|
251
|
+
//styleName: Heading/H3 card-title;
|
|
252
|
+
font-size: 20px;
|
|
253
|
+
font-style: normal;
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
line-height: 24px;
|
|
256
|
+
letter-spacing: 0px;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
.full {
|
|
260
|
+
.alert-strip,
|
|
261
|
+
.notice-strip {
|
|
262
|
+
&__content {
|
|
263
|
+
&--left {
|
|
264
|
+
span {
|
|
265
|
+
margin-right: 16px;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
&--right {
|
|
269
|
+
span {
|
|
270
|
+
margin-left: 16px;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
.notice-strip {
|
|
276
|
+
&__content {
|
|
277
|
+
&--left {
|
|
278
|
+
.notice-strip__heading {
|
|
279
|
+
display: block;
|
|
280
|
+
margin-bottom: 16px;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
.alert-strip {
|
|
286
|
+
&__content {
|
|
287
|
+
&--left {
|
|
288
|
+
.alert-strip__heading {
|
|
289
|
+
display: inline-block;
|
|
290
|
+
margin-bottom: 16px;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
.mini {
|
|
297
|
+
.alert-strip,
|
|
298
|
+
.notice-strip {
|
|
299
|
+
&__content {
|
|
300
|
+
display: flex;
|
|
301
|
+
|
|
302
|
+
p {
|
|
303
|
+
max-width: 794px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@include mq('sm') {
|
|
307
|
+
flex-direction: column;
|
|
308
|
+
margin-right: 16px;
|
|
309
|
+
|
|
310
|
+
p {
|
|
311
|
+
margin-top: 8px;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
&__heading {
|
|
316
|
+
max-width: 195px;
|
|
317
|
+
|
|
318
|
+
&--right {
|
|
319
|
+
margin-left: 36px;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
&--left {
|
|
323
|
+
margin-right: 36px;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&__link {
|
|
328
|
+
margin-top: 16px;
|
|
329
|
+
margin-bottom: 36px;
|
|
330
|
+
text-align: right;
|
|
331
|
+
|
|
332
|
+
a {
|
|
333
|
+
color: $black;
|
|
334
|
+
|
|
335
|
+
&:focus {
|
|
336
|
+
text-decoration: underline;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
&__icon {
|
|
341
|
+
&--caret {
|
|
342
|
+
display: block;
|
|
343
|
+
right: 16px;
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 16px;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.alert-dismissible {
|
|
352
|
+
:deep(.close) {
|
|
353
|
+
text-indent: -9999px;
|
|
354
|
+
z-index: 1;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
</style>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
msg: {
|
|
4
|
+
type: String,
|
|
5
|
+
required: true
|
|
6
|
+
}
|
|
7
|
+
})
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="greetings">
|
|
12
|
+
<h1 class="green">{{ msg }}</h1>
|
|
13
|
+
<h3>
|
|
14
|
+
You’ve successfully created a project with
|
|
15
|
+
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
|
|
16
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
|
|
17
|
+
</h3>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
h1 {
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
font-size: 2.6rem;
|
|
25
|
+
position: relative;
|
|
26
|
+
top: -10px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h3 {
|
|
30
|
+
font-size: 1.2rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.greetings h1,
|
|
34
|
+
.greetings h3 {
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (min-width: 1024px) {
|
|
39
|
+
.greetings h1,
|
|
40
|
+
.greetings h3 {
|
|
41
|
+
text-align: left;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
2
|
+
<template>
|
|
3
|
+
<div class="subcomponent--accordion-item">
|
|
4
|
+
<b-card
|
|
5
|
+
v-if="title"
|
|
6
|
+
class="accordion-item"
|
|
7
|
+
:class="{
|
|
8
|
+
rtl: rtl,
|
|
9
|
+
'--with-pre-heading': preHeading && showPreHeading
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<a
|
|
13
|
+
:id="'accordion' + _uid ? _uid : ''"
|
|
14
|
+
role="button"
|
|
15
|
+
:aria-expanded="showAccordion ? 'true' : 'false'"
|
|
16
|
+
class="accordion-item__title"
|
|
17
|
+
:aria-controls="'sect' + _uid ? _uid : ''"
|
|
18
|
+
tabindex="0"
|
|
19
|
+
@click.prevent="toggleAccordion"
|
|
20
|
+
@keypress.enter="toggleAccordion"
|
|
21
|
+
>
|
|
22
|
+
<span
|
|
23
|
+
v-if="preHeading && showPreHeading"
|
|
24
|
+
class="accordion-item__pre-heading"
|
|
25
|
+
>{{ preHeading }}</span
|
|
26
|
+
>
|
|
27
|
+
<rich-text :tag="'h4'" :tag-class="'card-title'" :content="title" />
|
|
28
|
+
<icon
|
|
29
|
+
v-show="showAccordion && content"
|
|
30
|
+
width="18"
|
|
31
|
+
height="12"
|
|
32
|
+
class="accordion-icon"
|
|
33
|
+
:icon-alt="'collapse'"
|
|
34
|
+
:glyph="CaretUp"
|
|
35
|
+
:class="{
|
|
36
|
+
'--with-pre-heading': preHeading && showPreHeading
|
|
37
|
+
}"
|
|
38
|
+
/>
|
|
39
|
+
<icon
|
|
40
|
+
v-show="!showAccordion && content"
|
|
41
|
+
width="18"
|
|
42
|
+
height="12"
|
|
43
|
+
class="accordion-icon"
|
|
44
|
+
:icon-alt="'expand'"
|
|
45
|
+
:glyph="CaretDown"
|
|
46
|
+
:class="{
|
|
47
|
+
'--with-pre-heading': preHeading && showPreHeading
|
|
48
|
+
}"
|
|
49
|
+
/>
|
|
50
|
+
</a>
|
|
51
|
+
<b-card-body v-if="content">
|
|
52
|
+
<div
|
|
53
|
+
v-show="showAccordion"
|
|
54
|
+
:id="'sect' + _uid ? _uid : ''"
|
|
55
|
+
class="accordion-item__content"
|
|
56
|
+
role="region"
|
|
57
|
+
:aria-labelledby="'accordion' + _uid ? _uid : ''"
|
|
58
|
+
>
|
|
59
|
+
<rich-text :content="content" />
|
|
60
|
+
</div>
|
|
61
|
+
</b-card-body>
|
|
62
|
+
</b-card>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
import CaretDown from '../../../../assets/icons/caret-down.svg?url'
|
|
68
|
+
import CaretUp from '../../../../assets/icons/caret-up.svg?url'
|
|
69
|
+
import RichText from '../../RichText/index.vue'
|
|
70
|
+
import Icon from '../../../SubComponents/Icon/index.vue'
|
|
71
|
+
import { BCard, BCardBody } from 'bootstrap-vue-next'
|
|
72
|
+
|
|
73
|
+
export default {
|
|
74
|
+
name: 'AccordionItem',
|
|
75
|
+
components: {
|
|
76
|
+
RichText,
|
|
77
|
+
Icon,
|
|
78
|
+
BCard,
|
|
79
|
+
BCardBody
|
|
80
|
+
},
|
|
81
|
+
props: {
|
|
82
|
+
title: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: 'Item'
|
|
85
|
+
},
|
|
86
|
+
preHeading: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: 'PRE-HEADING'
|
|
89
|
+
},
|
|
90
|
+
content: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: null
|
|
93
|
+
},
|
|
94
|
+
rtl: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: false
|
|
97
|
+
},
|
|
98
|
+
open: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false
|
|
101
|
+
},
|
|
102
|
+
showPreHeading: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: false
|
|
105
|
+
},
|
|
106
|
+
meta: {
|
|
107
|
+
type: Array,
|
|
108
|
+
default: () => []
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
data: () => ({
|
|
112
|
+
showAccordion: false,
|
|
113
|
+
CaretDown,
|
|
114
|
+
CaretUp
|
|
115
|
+
}),
|
|
116
|
+
mounted() {
|
|
117
|
+
this.$nextTick(() => {
|
|
118
|
+
this.showAccordion = this.open
|
|
119
|
+
})
|
|
120
|
+
},
|
|
121
|
+
methods: {
|
|
122
|
+
toggleAccordion() {
|
|
123
|
+
this.showAccordion = !this.showAccordion
|
|
124
|
+
if (this.showAccordion) {
|
|
125
|
+
this.$root.$emit('accordionItemOpen', this.meta)
|
|
126
|
+
} else {
|
|
127
|
+
this.$root.$emit('accordionItemClose', this.meta)
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
<style lang="scss">
|
|
135
|
+
@import '../../../../includes/scss/all';
|
|
136
|
+
.subcomponent--accordion-item {
|
|
137
|
+
.accordion-item {
|
|
138
|
+
border-radius: 6px;
|
|
139
|
+
border: none;
|
|
140
|
+
|
|
141
|
+
&.--with-pre-heading {
|
|
142
|
+
max-width: 540px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.card-body {
|
|
146
|
+
padding: 0;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__title {
|
|
151
|
+
padding: {
|
|
152
|
+
top: 16px;
|
|
153
|
+
bottom: 16px;
|
|
154
|
+
left: 32px;
|
|
155
|
+
right: 32px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
border-radius: 6px;
|
|
159
|
+
border: none;
|
|
160
|
+
color: inherit;
|
|
161
|
+
|
|
162
|
+
display: block;
|
|
163
|
+
text-decoration: none;
|
|
164
|
+
position: relative;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
width: 100%;
|
|
167
|
+
text-align: left;
|
|
168
|
+
background: $lightgray none;
|
|
169
|
+
|
|
170
|
+
.accordion-icon {
|
|
171
|
+
position: absolute;
|
|
172
|
+
right: 32px;
|
|
173
|
+
width: 16px;
|
|
174
|
+
height: 11px;
|
|
175
|
+
|
|
176
|
+
&.--with-pre-heading {
|
|
177
|
+
top: 32px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
h4 {
|
|
181
|
+
//styleName: Heading/H3 card-title;
|
|
182
|
+
font-size: 20px;
|
|
183
|
+
font-style: normal;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
line-height: 24px;
|
|
186
|
+
letter-spacing: 0px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&__pre-heading {
|
|
191
|
+
display: block;
|
|
192
|
+
color: $red;
|
|
193
|
+
text-transform: uppercase;
|
|
194
|
+
//styleName: Label/Extra small;
|
|
195
|
+
font-size: 10px;
|
|
196
|
+
font-style: normal;
|
|
197
|
+
font-weight: 700;
|
|
198
|
+
line-height: 20px;
|
|
199
|
+
letter-spacing: 0px;
|
|
200
|
+
text-align: left;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&__content {
|
|
204
|
+
padding: 32px;
|
|
205
|
+
ul,
|
|
206
|
+
ol {
|
|
207
|
+
padding: 0;
|
|
208
|
+
margin: {
|
|
209
|
+
left: 32px;
|
|
210
|
+
}
|
|
211
|
+
li {
|
|
212
|
+
margin-bottom: 16px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.rtl {
|
|
218
|
+
margin-left: auto;
|
|
219
|
+
|
|
220
|
+
* {
|
|
221
|
+
direction: rtl;
|
|
222
|
+
text-align: right;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.accordion-icon {
|
|
226
|
+
right: auto;
|
|
227
|
+
left: 32px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
</style>
|