@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,93 @@
|
|
|
1
|
+
import HeroHeader from './index.vue'
|
|
2
|
+
|
|
3
|
+
const cta_content = {
|
|
4
|
+
key: 'value'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const breadcrumb_content = [
|
|
8
|
+
{
|
|
9
|
+
text: 'Home',
|
|
10
|
+
to: '/'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
text: 'Go to google',
|
|
14
|
+
href: 'https://google.com'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: 'Another Story',
|
|
18
|
+
active: true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
const defaultType = 'default'
|
|
23
|
+
const collectionType = 'collection'
|
|
24
|
+
const imageType = 'image'
|
|
25
|
+
const heroType = 'hero'
|
|
26
|
+
const defaultTitle = 'HeroHeader default example'
|
|
27
|
+
const collectionTitle = 'HeroHeader collection example'
|
|
28
|
+
const imageTitle = 'HeroHeader image example'
|
|
29
|
+
const heroTitle = 'HeroHeader hero example'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
title: 'Global/HeroHeader',
|
|
33
|
+
component: HeroHeader,
|
|
34
|
+
argTypes: {
|
|
35
|
+
type: {
|
|
36
|
+
control: 'string',
|
|
37
|
+
table: { disable: true }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
args: {
|
|
41
|
+
type: 'default',
|
|
42
|
+
title: 'HeroHeader default example',
|
|
43
|
+
description: '<p class="intro">The page subtitle goes in here... The page subtitle goes in here... The page subtitle goes in here...</p><p><a href="#" class="cta-button">class cta-button</a></p>',
|
|
44
|
+
image: {
|
|
45
|
+
url:
|
|
46
|
+
'https://content.api.worksafe.vic.gov.au/sites/default/files/2020-04/Topic-Coronavirus-COVID-19.jpg',
|
|
47
|
+
alt: 'Some alt text'
|
|
48
|
+
},
|
|
49
|
+
cta: cta_content,
|
|
50
|
+
bgColor: false,
|
|
51
|
+
breadcrumbItems: breadcrumb_content,
|
|
52
|
+
rtl: false,
|
|
53
|
+
workwell: false,
|
|
54
|
+
showBreadcrumb: false,
|
|
55
|
+
showMask: true,
|
|
56
|
+
showSocial: true,
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const Template = (args) => ({
|
|
61
|
+
components: { HeroHeader },
|
|
62
|
+
setup() {
|
|
63
|
+
return { args };
|
|
64
|
+
},
|
|
65
|
+
template: `
|
|
66
|
+
<div style="margin-top:90px;">
|
|
67
|
+
<hero-header v-bind="args" />
|
|
68
|
+
</div>`
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
export const Default = Template.bind({})
|
|
72
|
+
Default.args = {
|
|
73
|
+
type: defaultType,
|
|
74
|
+
title: defaultTitle
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const Collection = Template.bind({})
|
|
78
|
+
Collection.args = {
|
|
79
|
+
type: collectionType,
|
|
80
|
+
title: collectionTitle
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const Image = Template.bind({})
|
|
84
|
+
Image.args = {
|
|
85
|
+
type: imageType,
|
|
86
|
+
title: imageTitle
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export const Hero = Template.bind({})
|
|
90
|
+
Hero.args = {
|
|
91
|
+
type: heroType,
|
|
92
|
+
title: heroTitle
|
|
93
|
+
}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
2
|
+
<template>
|
|
3
|
+
<container
|
|
4
|
+
v-if="title"
|
|
5
|
+
fluid
|
|
6
|
+
:class="generatedClass"
|
|
7
|
+
:style="
|
|
8
|
+
type === 'hero'
|
|
9
|
+
? image && image.url
|
|
10
|
+
? `background-image:url(${image.url})`
|
|
11
|
+
: false
|
|
12
|
+
: false
|
|
13
|
+
"
|
|
14
|
+
>
|
|
15
|
+
<row
|
|
16
|
+
v-if="type === 'hero'"
|
|
17
|
+
class="wcl-hero-header__wrap wcl-hero-header__showmore"
|
|
18
|
+
>
|
|
19
|
+
<container
|
|
20
|
+
class="wcl-hero-header__content-wrapper__content"
|
|
21
|
+
:class="{ rtl }"
|
|
22
|
+
>
|
|
23
|
+
<row>
|
|
24
|
+
<column class="wcl-hero-header__content-wrapper__content-col">
|
|
25
|
+
<div>
|
|
26
|
+
<button
|
|
27
|
+
type="button"
|
|
28
|
+
class="btn btn-link wcl-hero-header__showmore--link"
|
|
29
|
+
@click="showMore"
|
|
30
|
+
>
|
|
31
|
+
<icon width="16px" height="10.61px" :glyph="CaretDown" />
|
|
32
|
+
<span class="wcl-hero-header__showmore--text">Show more</span>
|
|
33
|
+
</button>
|
|
34
|
+
</div>
|
|
35
|
+
</column>
|
|
36
|
+
</row>
|
|
37
|
+
</container>
|
|
38
|
+
</row>
|
|
39
|
+
<row class="wcl-hero-header__wrap">
|
|
40
|
+
<div class="wcl-hero-header__content-wrapper">
|
|
41
|
+
<container
|
|
42
|
+
class="wcl-hero-header__content-wrapper__content"
|
|
43
|
+
:class="{ rtl }"
|
|
44
|
+
>
|
|
45
|
+
<row>
|
|
46
|
+
<column
|
|
47
|
+
:xs="generateGridValue(type)"
|
|
48
|
+
class="wcl-hero-header__content-wrapper__content-col"
|
|
49
|
+
:md="7"
|
|
50
|
+
:class="{
|
|
51
|
+
[`wcl-hero-header__content-wrapper__content-col--split`]: $slots.side
|
|
52
|
+
}"
|
|
53
|
+
>
|
|
54
|
+
<breadcrumb
|
|
55
|
+
v-if="showBreadcrumb && type !== 'hero'"
|
|
56
|
+
:breadcrumb-items="breadcrumbItems"
|
|
57
|
+
:rtl="rtl"
|
|
58
|
+
/>
|
|
59
|
+
<rich-text
|
|
60
|
+
v-if="strippedTitle"
|
|
61
|
+
ref="title"
|
|
62
|
+
tag="h1"
|
|
63
|
+
:content="strippedTitle"
|
|
64
|
+
class="wcl-hero-header__title"
|
|
65
|
+
/>
|
|
66
|
+
<div
|
|
67
|
+
v-if="subTitle || $slots.description"
|
|
68
|
+
class="header-rich-text-wrap"
|
|
69
|
+
>
|
|
70
|
+
<rich-text
|
|
71
|
+
v-if="subTitle"
|
|
72
|
+
:content="subTitle"
|
|
73
|
+
class="header-rich-text-wrap--description"
|
|
74
|
+
/>
|
|
75
|
+
<slot name="description"></slot>
|
|
76
|
+
</div>
|
|
77
|
+
</column>
|
|
78
|
+
<column
|
|
79
|
+
v-if="$slots.side"
|
|
80
|
+
md="4"
|
|
81
|
+
:offset-md="1"
|
|
82
|
+
class="wcl-hero-header__side"
|
|
83
|
+
>
|
|
84
|
+
<slot name="side"></slot>
|
|
85
|
+
</column>
|
|
86
|
+
</row>
|
|
87
|
+
<row v-if="cta && cta.title">
|
|
88
|
+
<column :xs="12">
|
|
89
|
+
<br />
|
|
90
|
+
<cta-button
|
|
91
|
+
class="wysiwyg__cta"
|
|
92
|
+
:url="cta.uri"
|
|
93
|
+
:alt="cta.alt"
|
|
94
|
+
:glyph="cta.glyph"
|
|
95
|
+
:is-centred="cta.isCentred"
|
|
96
|
+
@clicked="fireGTM()"
|
|
97
|
+
>{{ cta.title }}</cta-button
|
|
98
|
+
>
|
|
99
|
+
</column>
|
|
100
|
+
</row>
|
|
101
|
+
<template v-if="showSocial && type !== 'hero'">
|
|
102
|
+
<social-share :rtl="rtl" />
|
|
103
|
+
</template>
|
|
104
|
+
</container>
|
|
105
|
+
</div>
|
|
106
|
+
<!-- Type Default -->
|
|
107
|
+
<column
|
|
108
|
+
v-if="type === 'default' && showMask"
|
|
109
|
+
:md="'5'"
|
|
110
|
+
:xs="'5'"
|
|
111
|
+
class="wcl-hero-header__right"
|
|
112
|
+
:class="{ 'rtl-flip': rtl }"
|
|
113
|
+
:offset-md="rtl ? 0 : 7"
|
|
114
|
+
:offset-xs="rtl ? 0 : 7"
|
|
115
|
+
>
|
|
116
|
+
<div class="wcl-hero-header__mask">
|
|
117
|
+
<hero-header-chevron />
|
|
118
|
+
</div>
|
|
119
|
+
</column>
|
|
120
|
+
<!-- Type Collection -->
|
|
121
|
+
<column
|
|
122
|
+
v-if="type === 'collection' && showMask"
|
|
123
|
+
:sm="'7'"
|
|
124
|
+
:style="
|
|
125
|
+
image && image.url ? `background-image:url(${image.url})` : false
|
|
126
|
+
"
|
|
127
|
+
class="wcl-hero-header__right type-collection"
|
|
128
|
+
:class="{ 'rtl-flip': rtl }"
|
|
129
|
+
:offset-sm="rtl ? 0 : 5"
|
|
130
|
+
>
|
|
131
|
+
<div class="wcl-hero-header__mask">
|
|
132
|
+
<img
|
|
133
|
+
src="../../../assets/images/hero-header-mask.png"
|
|
134
|
+
role="presentation"
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
</column>
|
|
138
|
+
<!-- Type Image -->
|
|
139
|
+
<column
|
|
140
|
+
v-if="type === 'image'"
|
|
141
|
+
:md="'5'"
|
|
142
|
+
:xs="'5'"
|
|
143
|
+
class="wcl-hero-header__right"
|
|
144
|
+
:class="{ 'rtl-flip': rtl }"
|
|
145
|
+
:offset-md="rtl ? 0 : 7"
|
|
146
|
+
:offset-xs="rtl ? 0 : 7"
|
|
147
|
+
:style="
|
|
148
|
+
image && image.url ? `background-image:url(${image.url})` : false
|
|
149
|
+
"
|
|
150
|
+
>
|
|
151
|
+
|
|
152
|
+
</column>
|
|
153
|
+
<!-- No Col needed for type Hero -->
|
|
154
|
+
</row>
|
|
155
|
+
<social-share v-if="showSocial && type === 'hero'" :rtl="rtl" />
|
|
156
|
+
</container>
|
|
157
|
+
</template>
|
|
158
|
+
<script>
|
|
159
|
+
import SocialShare from './../SocialShare/index.vue'
|
|
160
|
+
import Container from './../../Containers/Container/index.vue'
|
|
161
|
+
import Row from './../../Containers/Row/index.vue'
|
|
162
|
+
import Column from './../../Containers/Column/index.vue'
|
|
163
|
+
import Breadcrumb from './../../SubComponents/Breadcrumb/index.vue'
|
|
164
|
+
import CtaButton from './../../SubComponents/CtaButton/index.vue'
|
|
165
|
+
import Icon from './../../SubComponents/Icon/index.vue'
|
|
166
|
+
import HeroHeaderChevron from './../../../assets/images/hero-header-chevron.svg?component'
|
|
167
|
+
import CaretDown from './../../../assets/icons/chev-down-white.svg?url'
|
|
168
|
+
import RichText from './../../Paragraphs/RichText/index.vue'
|
|
169
|
+
|
|
170
|
+
export default {
|
|
171
|
+
name: 'HeroHeader',
|
|
172
|
+
components: {
|
|
173
|
+
Container,
|
|
174
|
+
Row,
|
|
175
|
+
Column,
|
|
176
|
+
Breadcrumb,
|
|
177
|
+
SocialShare,
|
|
178
|
+
CtaButton,
|
|
179
|
+
HeroHeaderChevron,
|
|
180
|
+
RichText,
|
|
181
|
+
Icon
|
|
182
|
+
},
|
|
183
|
+
props: {
|
|
184
|
+
type: {
|
|
185
|
+
type: String,
|
|
186
|
+
default: 'default'
|
|
187
|
+
},
|
|
188
|
+
title: {
|
|
189
|
+
type: String,
|
|
190
|
+
default: ''
|
|
191
|
+
},
|
|
192
|
+
description: {
|
|
193
|
+
type: String,
|
|
194
|
+
default: ''
|
|
195
|
+
},
|
|
196
|
+
image: {
|
|
197
|
+
type: Object,
|
|
198
|
+
default: () => {}
|
|
199
|
+
},
|
|
200
|
+
cta: {
|
|
201
|
+
type: Object,
|
|
202
|
+
default: () => {}
|
|
203
|
+
},
|
|
204
|
+
bgColor: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: false
|
|
207
|
+
},
|
|
208
|
+
breadcrumbItems: {
|
|
209
|
+
type: Array,
|
|
210
|
+
default: () => []
|
|
211
|
+
},
|
|
212
|
+
rtl: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
default: false
|
|
215
|
+
},
|
|
216
|
+
workwell: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
default: false
|
|
219
|
+
},
|
|
220
|
+
showBreadcrumb: {
|
|
221
|
+
type: Boolean,
|
|
222
|
+
default: true
|
|
223
|
+
},
|
|
224
|
+
showMask: {
|
|
225
|
+
type: Boolean,
|
|
226
|
+
default: true
|
|
227
|
+
},
|
|
228
|
+
showSocial: {
|
|
229
|
+
type: Boolean,
|
|
230
|
+
default: true
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
data() {
|
|
234
|
+
return {
|
|
235
|
+
socialShareToggle: false,
|
|
236
|
+
HeroHeaderChevron,
|
|
237
|
+
CaretDown
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
computed: {
|
|
241
|
+
generatedClass() {
|
|
242
|
+
let c = `wcl-hero-header type-${this.type}`
|
|
243
|
+
if (this.bgColor) {
|
|
244
|
+
c = c + ' -with-bg'
|
|
245
|
+
}
|
|
246
|
+
return c
|
|
247
|
+
},
|
|
248
|
+
subTitle() {
|
|
249
|
+
let content = undefined
|
|
250
|
+
if (this.description) {
|
|
251
|
+
if (typeof this.description === 'string') {
|
|
252
|
+
content = this.description
|
|
253
|
+
} else if (typeof this.description === 'object') {
|
|
254
|
+
content = this.description.processed
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (content && !content.startsWith('<') && !this.tag?.startsWith('h')) {
|
|
258
|
+
content = `<p class="intro">${content}</p>`
|
|
259
|
+
}
|
|
260
|
+
return content
|
|
261
|
+
},
|
|
262
|
+
strippedTitle() {
|
|
263
|
+
if (this.type === 'hero' && this.title.length > 122) {
|
|
264
|
+
return this.title.slice(0, 122) + '...'
|
|
265
|
+
}
|
|
266
|
+
// Will reintroduce if business requirement
|
|
267
|
+
// if (this.title?.includes('.')) {
|
|
268
|
+
// const sentences = this.title.split('.')
|
|
269
|
+
// if (sentences.length > 1) {
|
|
270
|
+
// return sentences.map((sentence) => sentence.trim()).join('.<br/>')
|
|
271
|
+
// }
|
|
272
|
+
// }
|
|
273
|
+
return this.title
|
|
274
|
+
}
|
|
275
|
+
// Will reintroduce if business requirement
|
|
276
|
+
// strippedDescription() {
|
|
277
|
+
// let strippedString = this.description.replace(/(<([^>]+)>)/gi, '')
|
|
278
|
+
// if (strippedString.length > 117) {
|
|
279
|
+
// return strippedString.slice(0, 117) + '...'
|
|
280
|
+
// }
|
|
281
|
+
// return strippedString
|
|
282
|
+
// }
|
|
283
|
+
},
|
|
284
|
+
mounted() {
|
|
285
|
+
if (this.$nuxt?.$on) {
|
|
286
|
+
this.$nuxt.$on('scrollToTop', () => {
|
|
287
|
+
setTimeout(() => {
|
|
288
|
+
const title = this.$refs.title
|
|
289
|
+
if (title) {
|
|
290
|
+
title.$el.setAttribute('tabindex', 0)
|
|
291
|
+
title.$el.focus()
|
|
292
|
+
}
|
|
293
|
+
}, 500)
|
|
294
|
+
})
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
beforeDestroy() {
|
|
298
|
+
if (this.$nuxt?.$off) {
|
|
299
|
+
this.$nuxt.$off('scrollToTop')
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
methods: {
|
|
303
|
+
generateGridValue(type) {
|
|
304
|
+
switch (type) {
|
|
305
|
+
//the prop type default
|
|
306
|
+
case 'default':
|
|
307
|
+
return '6'
|
|
308
|
+
case 'image':
|
|
309
|
+
return '6'
|
|
310
|
+
default:
|
|
311
|
+
return '7'
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
showMore(ev) {
|
|
315
|
+
if (ev?.target?.scrollIntoView) {
|
|
316
|
+
ev.target.scrollIntoView({
|
|
317
|
+
behavior: 'smooth',
|
|
318
|
+
alignToTop: true,
|
|
319
|
+
block: 'start'
|
|
320
|
+
})
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
fireGTM() {
|
|
324
|
+
let attrs = {
|
|
325
|
+
label: this.cta.uri,
|
|
326
|
+
document_title: this.cta.filename
|
|
327
|
+
}
|
|
328
|
+
if (this.$gtm) {
|
|
329
|
+
this.$gtm.push({ event: 'custom.interaction.download', ...attrs })
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
</script>
|
|
335
|
+
<style lang="scss" scoped>
|
|
336
|
+
@import './styles';
|
|
337
|
+
|
|
338
|
+
.wysiwyg {
|
|
339
|
+
:deep(.cta-button:last-child) {
|
|
340
|
+
margin-bottom: 0px;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
</style>
|