@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,87 @@
|
|
|
1
|
+
@import '../../../includes/scss/all';
|
|
2
|
+
|
|
3
|
+
.wcl-marketing-banner {
|
|
4
|
+
height: 42.833vw; // 21:9 ratio
|
|
5
|
+
background: transparent;
|
|
6
|
+
border: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
@include mq('mm') {
|
|
11
|
+
height: 100vh; // 21:9 ratio
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:deep(h2) {
|
|
15
|
+
font-size: 2rem;
|
|
16
|
+
line-height: 36px;
|
|
17
|
+
|
|
18
|
+
@media screen and (max-width: 540px) {
|
|
19
|
+
font-size: 1.2rem;
|
|
20
|
+
line-height: 20px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:focus {
|
|
25
|
+
outline-offset: -3px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__section {
|
|
29
|
+
height: 100%;
|
|
30
|
+
width: 100%;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__block {
|
|
36
|
+
height: 100%;
|
|
37
|
+
width: auto;
|
|
38
|
+
padding-top: 10px;
|
|
39
|
+
padding-bottom: 10px;
|
|
40
|
+
|
|
41
|
+
&.left {
|
|
42
|
+
padding-left: 32px;
|
|
43
|
+
padding-right: 16px;
|
|
44
|
+
}
|
|
45
|
+
&.right {
|
|
46
|
+
padding-right: 32px;
|
|
47
|
+
padding-left: 16px;
|
|
48
|
+
}
|
|
49
|
+
&.single {
|
|
50
|
+
padding-right: 32px;
|
|
51
|
+
padding-left: 32px;
|
|
52
|
+
}
|
|
53
|
+
@include mq('xs') {
|
|
54
|
+
padding-right: 16px !important;
|
|
55
|
+
padding-left: 16px !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--bg {
|
|
59
|
+
&-white {
|
|
60
|
+
background: $white;
|
|
61
|
+
color: $black;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-yellow {
|
|
65
|
+
background: $orange;
|
|
66
|
+
color: $black;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-black {
|
|
70
|
+
background: $black;
|
|
71
|
+
color: $white;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__wrap {
|
|
77
|
+
height: 100%;
|
|
78
|
+
padding: 0;
|
|
79
|
+
margin: 0;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
@include mq('mm') {
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import ProofPoints from './index.vue'
|
|
2
|
+
import iconSVG from '../../../assets/icons/key.svg?raw'
|
|
3
|
+
|
|
4
|
+
const itemListDefault = [
|
|
5
|
+
{
|
|
6
|
+
heading: 'Proof point 1',
|
|
7
|
+
description:
|
|
8
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
9
|
+
image: {
|
|
10
|
+
src:
|
|
11
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
12
|
+
},
|
|
13
|
+
icon: {
|
|
14
|
+
src: iconSVG
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
heading: 'Proof point 2',
|
|
19
|
+
description:
|
|
20
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
21
|
+
image: {
|
|
22
|
+
src:
|
|
23
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/instructions-1.jpg?itok=eERkeQLL'
|
|
24
|
+
},
|
|
25
|
+
icon: {
|
|
26
|
+
src: iconSVG
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
heading: 'Proof point 3',
|
|
31
|
+
description:
|
|
32
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
33
|
+
image: {
|
|
34
|
+
src:
|
|
35
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
36
|
+
},
|
|
37
|
+
icon: {
|
|
38
|
+
src: iconSVG
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
heading: 'Proof point 4',
|
|
43
|
+
description:
|
|
44
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
45
|
+
image: {
|
|
46
|
+
src:
|
|
47
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
48
|
+
},
|
|
49
|
+
icon: {
|
|
50
|
+
src: iconSVG
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
const itemListAr = [
|
|
56
|
+
{
|
|
57
|
+
heading: 'نقطة إثبات 1',
|
|
58
|
+
description:
|
|
59
|
+
'لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، ',
|
|
60
|
+
image: {
|
|
61
|
+
src:
|
|
62
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
63
|
+
},
|
|
64
|
+
icon: {
|
|
65
|
+
src: iconSVG
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
heading: 'نقطة إثبات 2',
|
|
70
|
+
description:
|
|
71
|
+
'لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، ',
|
|
72
|
+
image: {
|
|
73
|
+
src:
|
|
74
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
75
|
+
},
|
|
76
|
+
icon: {
|
|
77
|
+
src: iconSVG
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
heading: 'نقطة إثبات 3',
|
|
82
|
+
description:
|
|
83
|
+
'لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، ',
|
|
84
|
+
image: {
|
|
85
|
+
src:
|
|
86
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
87
|
+
},
|
|
88
|
+
icon: {
|
|
89
|
+
src: iconSVG
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
heading: 'نقطة إثبات 4',
|
|
94
|
+
description:
|
|
95
|
+
'لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، ',
|
|
96
|
+
image: {
|
|
97
|
+
src:
|
|
98
|
+
'https://content-staging-v2.api.worksafe.vic.gov.au/sites/default/files/styles/large/public/trees-orange-night_0.png?itok=-1wXLs9A'
|
|
99
|
+
},
|
|
100
|
+
icon: {
|
|
101
|
+
src: iconSVG
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
export default {
|
|
107
|
+
title: 'Paragraphs/ProofPoints',
|
|
108
|
+
component: ProofPoints,
|
|
109
|
+
argTypes: {
|
|
110
|
+
title: {
|
|
111
|
+
control: 'text',
|
|
112
|
+
defaultValue: 'Section heading'
|
|
113
|
+
},
|
|
114
|
+
headingTag: {
|
|
115
|
+
control: 'select',
|
|
116
|
+
options: ['h2', 'h3'],
|
|
117
|
+
defaultValue: 'h2'
|
|
118
|
+
},
|
|
119
|
+
rtl: {
|
|
120
|
+
control: 'boolean',
|
|
121
|
+
defaultValue: false
|
|
122
|
+
},
|
|
123
|
+
columns: {
|
|
124
|
+
control: 'select',
|
|
125
|
+
options: [3, 4],
|
|
126
|
+
defaultValue: 3
|
|
127
|
+
},
|
|
128
|
+
itemList: {
|
|
129
|
+
table: { disable: true }
|
|
130
|
+
},
|
|
131
|
+
type: {
|
|
132
|
+
control: 'select',
|
|
133
|
+
options: ['default', 'icon', 'image'],
|
|
134
|
+
defaultValue: 'icon'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const DefaultProofPoint = (args, { argTypes }) => ({
|
|
140
|
+
components: { ProofPoints },
|
|
141
|
+
props: Object.keys(argTypes),
|
|
142
|
+
template: `<proof-points v-bind="$props" :item-list="dynamicItemList" />`,
|
|
143
|
+
data() {
|
|
144
|
+
return {
|
|
145
|
+
itemListDefault,
|
|
146
|
+
itemListAr
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
computed: {
|
|
150
|
+
dynamicItemList() {
|
|
151
|
+
let array
|
|
152
|
+
if (this.rtl) {
|
|
153
|
+
array = this.itemListAr
|
|
154
|
+
} else {
|
|
155
|
+
array = this.itemListDefault
|
|
156
|
+
}
|
|
157
|
+
return array.map((item) => {
|
|
158
|
+
const clone = JSON.parse(JSON.stringify(item))
|
|
159
|
+
if (this.type === 'image') {
|
|
160
|
+
clone.icon = undefined
|
|
161
|
+
} else if (this.type === 'icon') {
|
|
162
|
+
clone.image = undefined
|
|
163
|
+
} else {
|
|
164
|
+
clone.icon = undefined
|
|
165
|
+
clone.image = undefined
|
|
166
|
+
}
|
|
167
|
+
return clone
|
|
168
|
+
})
|
|
169
|
+
}
|
|
170
|
+
} //end computed
|
|
171
|
+
})
|
|
172
|
+
|
|
173
|
+
export const Default = DefaultProofPoint.bind({})
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<card-grid
|
|
3
|
+
:title="title"
|
|
4
|
+
:title-tag="headingTag"
|
|
5
|
+
:cards="itemList"
|
|
6
|
+
:rtl="rtl"
|
|
7
|
+
:force-md-columns-per-row="columns < 3 ? 3 : columns"
|
|
8
|
+
:force-lg-columns-per-row="columns < 3 ? 3 : columns"
|
|
9
|
+
class="proof-points"
|
|
10
|
+
>
|
|
11
|
+
<template v-slot:cardItem="{ card }">
|
|
12
|
+
<card-grid-item
|
|
13
|
+
:image-src="card.image ? card.image.src : undefined"
|
|
14
|
+
:image-alt="card.image ? card.image.alt : undefined"
|
|
15
|
+
:glyph-src="card.icon ? card.icon.src : undefined"
|
|
16
|
+
:icon-size="card.icon ? 'large' : 'small'"
|
|
17
|
+
:show-divider="false"
|
|
18
|
+
:header-size="'medium'"
|
|
19
|
+
:card-header-title="card.heading"
|
|
20
|
+
:rtl="rtl"
|
|
21
|
+
:description="card.description"
|
|
22
|
+
/>
|
|
23
|
+
</template>
|
|
24
|
+
</card-grid>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import CardGrid from './../../Common/CardGrid/index.vue'
|
|
29
|
+
import CardGridItem from './../../Common/CardGridItem/index.vue'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'ProofPoints',
|
|
33
|
+
components: { CardGrid, CardGridItem },
|
|
34
|
+
props: {
|
|
35
|
+
title: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: null
|
|
38
|
+
},
|
|
39
|
+
headingTag: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: 'h2'
|
|
42
|
+
},
|
|
43
|
+
itemList: {
|
|
44
|
+
type: Array,
|
|
45
|
+
required: true
|
|
46
|
+
},
|
|
47
|
+
rtl: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
columns: {
|
|
52
|
+
type: Number,
|
|
53
|
+
default: 3
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
.proof-points {
|
|
60
|
+
:deep(.card-grid-item__card .card-title) {
|
|
61
|
+
margin-top: 16px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import RelatedInformation from './index.vue'
|
|
2
|
+
import { taxonomyTagsList } from '../../../mock/related-info'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Paragraphs/RelatedInformation',
|
|
6
|
+
component: RelatedInformation,
|
|
7
|
+
argTypes: {
|
|
8
|
+
showTaxonomies: {
|
|
9
|
+
control: 'boolean',
|
|
10
|
+
defaultValue: true
|
|
11
|
+
},
|
|
12
|
+
showTaxonomyHeading: {
|
|
13
|
+
control: 'boolean',
|
|
14
|
+
defaultValue: true
|
|
15
|
+
},
|
|
16
|
+
taxonomies: {
|
|
17
|
+
control: 'array',
|
|
18
|
+
defaultValue: taxonomyTagsList
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const Template = (args, { argTypes }) => ({
|
|
24
|
+
components: { RelatedInformation },
|
|
25
|
+
props: Object.keys(argTypes),
|
|
26
|
+
template: `
|
|
27
|
+
<related-information
|
|
28
|
+
v-bind="$props"
|
|
29
|
+
/> `
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
export const Default = Template.bind({})
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<container
|
|
3
|
+
v-if="showTaxonomies && taxonomies.length > 0"
|
|
4
|
+
class="related-info-container"
|
|
5
|
+
>
|
|
6
|
+
<row v-if="showTaxonomyHeading">
|
|
7
|
+
<h2>Related information</h2>
|
|
8
|
+
</row>
|
|
9
|
+
<row class="related-info-tags">
|
|
10
|
+
<button
|
|
11
|
+
v-for="(taxonomy, i) in taxonomies"
|
|
12
|
+
:key="i"
|
|
13
|
+
class="related-info-tag"
|
|
14
|
+
role="button"
|
|
15
|
+
@click="
|
|
16
|
+
goToCollectionPage(
|
|
17
|
+
taxonomy.field_term_link_to_collection_pg.path.alias
|
|
18
|
+
)
|
|
19
|
+
"
|
|
20
|
+
>
|
|
21
|
+
<strong>{{ taxonomy.name }}</strong>
|
|
22
|
+
</button>
|
|
23
|
+
</row>
|
|
24
|
+
</container>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import Row from './../../Containers/Row/index.vue'
|
|
29
|
+
import Container from './../../Containers/Container/index.vue'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'RelatedInformation',
|
|
33
|
+
components: {
|
|
34
|
+
Container,
|
|
35
|
+
Row
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
showTaxonomies: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
showTaxonomyHeading: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: true
|
|
45
|
+
},
|
|
46
|
+
taxonomies: {
|
|
47
|
+
type: Array,
|
|
48
|
+
default: () => []
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
goToCollectionPage(url) {
|
|
53
|
+
this.$router.push(url)
|
|
54
|
+
this.$emit('goToCollectionPage')
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" scoped>
|
|
61
|
+
@import './styles';
|
|
62
|
+
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import '../../../includes/scss/all';
|
|
2
|
+
|
|
3
|
+
h2 {
|
|
4
|
+
font-weight: 700;
|
|
5
|
+
font-size: 32px;
|
|
6
|
+
line-height: 36px;
|
|
7
|
+
}
|
|
8
|
+
.related-info-container {
|
|
9
|
+
padding-top: 64px;
|
|
10
|
+
padding-left: 35px;
|
|
11
|
+
padding-right: 45px;
|
|
12
|
+
padding-bottom: 48px;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
background-color: $white;
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
|
|
20
|
+
.related-info-tags {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
gap: 12px;
|
|
24
|
+
}
|
|
25
|
+
.related-info-tag {
|
|
26
|
+
position: relative;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
line-height: 24px;
|
|
31
|
+
letter-spacing: 0px;
|
|
32
|
+
display: flex;
|
|
33
|
+
background-color: $white;
|
|
34
|
+
border: 2px solid $black;
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
padding-top: 8px;
|
|
37
|
+
padding-bottom: 8px;
|
|
38
|
+
padding-left: 12px;
|
|
39
|
+
padding-right: 12px;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
background-color: $orange;
|
|
45
|
+
border: 2px solid $orange;
|
|
46
|
+
border-radius: 8px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|