@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,297 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<card-grid
|
|
3
|
+
:title="title"
|
|
4
|
+
:title-tag="titleTag"
|
|
5
|
+
:cards="cards"
|
|
6
|
+
:rtl="allCardsRTL"
|
|
7
|
+
:force-lg-columns-per-row="columns"
|
|
8
|
+
:force-md-columns-per-row="columns"
|
|
9
|
+
:is-selectable="true"
|
|
10
|
+
:row-spacing="'large'"
|
|
11
|
+
:class="'card_group card_group--' + background"
|
|
12
|
+
:background-variant="background"
|
|
13
|
+
@selected="selectedCard"
|
|
14
|
+
>
|
|
15
|
+
<template v-if="$slots.cardGroupFilter" v-slot:gridHeaderRight>
|
|
16
|
+
<slot name="cardGroupFilter"></slot>
|
|
17
|
+
</template>
|
|
18
|
+
<template v-if="$slots.cardGroupPreContent" v-slot:gridPreContent>
|
|
19
|
+
<slot name="cardGroupPreContent"></slot>
|
|
20
|
+
</template>
|
|
21
|
+
<template v-slot:cardItem="{ card }">
|
|
22
|
+
<card-grid-item
|
|
23
|
+
v-if="card"
|
|
24
|
+
:show-divider="false"
|
|
25
|
+
:header-size="'large'"
|
|
26
|
+
class="card_group__card"
|
|
27
|
+
:class="{
|
|
28
|
+
[`card_group__card--${card.colour}`]: card.pillText,
|
|
29
|
+
[`card_group__card--none`]: !card.pillText
|
|
30
|
+
}"
|
|
31
|
+
:card-header-title="card.title"
|
|
32
|
+
:caret="getCaret(card)"
|
|
33
|
+
:description="card.description"
|
|
34
|
+
:card-padding="'none'"
|
|
35
|
+
:caret-position="'bottom'"
|
|
36
|
+
:rtl="card.rtl"
|
|
37
|
+
:border-type="background === 'white' ? 'thick' : 'none'"
|
|
38
|
+
:pill-text="card.pillText"
|
|
39
|
+
:link="card.link ? card.link : false"
|
|
40
|
+
:taxonomies="{
|
|
41
|
+
industry: card.industry,
|
|
42
|
+
topic: card.topic,
|
|
43
|
+
language: card.language
|
|
44
|
+
}"
|
|
45
|
+
>
|
|
46
|
+
<template v-slot:cardTop>
|
|
47
|
+
<card-top :card="card" />
|
|
48
|
+
</template>
|
|
49
|
+
<template v-slot:cardDescription>
|
|
50
|
+
<card-body :card="card" />
|
|
51
|
+
</template>
|
|
52
|
+
</card-grid-item>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<template
|
|
56
|
+
v-if="
|
|
57
|
+
loading ||
|
|
58
|
+
(cards.length === 0 && !loading) ||
|
|
59
|
+
$slots.cardGroupFooter ||
|
|
60
|
+
(!loading && showLoadMore)
|
|
61
|
+
"
|
|
62
|
+
v-slot:cardGridFooter
|
|
63
|
+
>
|
|
64
|
+
<column v-if="loading" sm="12">
|
|
65
|
+
<strong>Loading... </strong>
|
|
66
|
+
<b-spinner class="float-right"></b-spinner>
|
|
67
|
+
</column>
|
|
68
|
+
<column v-if="cards.length === 0 && !loading" sm="12">
|
|
69
|
+
<strong>{{ emptyCardsText }}</strong>
|
|
70
|
+
</column>
|
|
71
|
+
<column v-if="$slots.cardGroupFooter" sm="12">
|
|
72
|
+
<slot name="cardGroupFooter"></slot>
|
|
73
|
+
</column>
|
|
74
|
+
<column v-if="!loading && showLoadMore" sm="12" class="text-center">
|
|
75
|
+
<cta-button
|
|
76
|
+
type="dark"
|
|
77
|
+
:focus-outline="'light'"
|
|
78
|
+
:text-only="true"
|
|
79
|
+
:is-centred="true"
|
|
80
|
+
:class="'card_group__loadmore mb-0'"
|
|
81
|
+
@clicked="$emit('loadMore')"
|
|
82
|
+
>Load more</cta-button
|
|
83
|
+
>
|
|
84
|
+
</column>
|
|
85
|
+
</template>
|
|
86
|
+
</card-grid>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<script>
|
|
90
|
+
import CardGridItem from './../../Common/CardGridItem/index.vue'
|
|
91
|
+
import CardGrid from './../../Common/CardGrid/index.vue'
|
|
92
|
+
import Column from './../../Containers/Column/index.vue'
|
|
93
|
+
import {
|
|
94
|
+
isAbsoluteUrl,
|
|
95
|
+
navigateToPath,
|
|
96
|
+
isGovSite
|
|
97
|
+
} from './../../../../lib/utility'
|
|
98
|
+
import CardBody from './cardbody.vue'
|
|
99
|
+
import CardTop from './cardtop.vue'
|
|
100
|
+
import CtaButton from './../../SubComponents/CtaButton/index.vue'
|
|
101
|
+
import { BSpinner } from 'bootstrap-vue-next'
|
|
102
|
+
|
|
103
|
+
export default {
|
|
104
|
+
name: 'CardGroup',
|
|
105
|
+
components: {
|
|
106
|
+
CardGrid,
|
|
107
|
+
CardGridItem,
|
|
108
|
+
Column,
|
|
109
|
+
CardBody,
|
|
110
|
+
CardTop,
|
|
111
|
+
CtaButton,
|
|
112
|
+
BSpinner
|
|
113
|
+
},
|
|
114
|
+
props: {
|
|
115
|
+
bundle: {
|
|
116
|
+
type: Array,
|
|
117
|
+
required: false,
|
|
118
|
+
default: () => []
|
|
119
|
+
},
|
|
120
|
+
caret: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: undefined,
|
|
123
|
+
validator: (value) =>
|
|
124
|
+
['down', 'up', 'right', 'left', 'external'].indexOf(value) >= 0
|
|
125
|
+
},
|
|
126
|
+
cards: {
|
|
127
|
+
type: Array,
|
|
128
|
+
required: true,
|
|
129
|
+
default: () => []
|
|
130
|
+
},
|
|
131
|
+
background: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: 'none'
|
|
134
|
+
},
|
|
135
|
+
title: {
|
|
136
|
+
type: String,
|
|
137
|
+
default: null
|
|
138
|
+
},
|
|
139
|
+
titleTag: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: 'h2'
|
|
142
|
+
},
|
|
143
|
+
rtl: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: false
|
|
146
|
+
},
|
|
147
|
+
loading: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: false
|
|
150
|
+
},
|
|
151
|
+
columns: {
|
|
152
|
+
type: Number,
|
|
153
|
+
default: 3
|
|
154
|
+
},
|
|
155
|
+
showLoadMore: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: false
|
|
158
|
+
},
|
|
159
|
+
emptyCardsText: {
|
|
160
|
+
type: String,
|
|
161
|
+
default: 'No results returned'
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
computed: {
|
|
165
|
+
allCardsRTL() {
|
|
166
|
+
if (this.cards.length === 0) {
|
|
167
|
+
return this.rtl
|
|
168
|
+
}
|
|
169
|
+
return this.cards.every((card) => this.rtl || card.rtl)
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
methods: {
|
|
173
|
+
getCaret(card) {
|
|
174
|
+
if (card.link && isAbsoluteUrl(card.link)) {
|
|
175
|
+
return 'external'
|
|
176
|
+
} else {
|
|
177
|
+
return undefined
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
selectedCard(card) {
|
|
181
|
+
// Some custom logic for gov caretaker logic
|
|
182
|
+
if (process.env.CARETAKER && process.env.CARETAKER === 'true') {
|
|
183
|
+
if (!isGovSite(card?.selectedCard?.link)) {
|
|
184
|
+
this.$store.commit('page/SET_CARETAKER_REF', 'card-group')
|
|
185
|
+
this.$root.$emit('caretaker-open', card?.selectedCard?.link)
|
|
186
|
+
} else {
|
|
187
|
+
navigateToPath.call(
|
|
188
|
+
this,
|
|
189
|
+
card?.selectedCard?.link,
|
|
190
|
+
card?.ev?.ctrlKey === true || card?.ev?.metaKey === true
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
navigateToPath.call(
|
|
195
|
+
this,
|
|
196
|
+
card?.selectedCard?.link,
|
|
197
|
+
card?.ev?.ctrlKey === true || card?.ev?.metaKey === true
|
|
198
|
+
)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
</script>
|
|
204
|
+
|
|
205
|
+
<style lang="scss" scoped>
|
|
206
|
+
@import './../../../includes/scss/all';
|
|
207
|
+
$cardTextPadding: 16px;
|
|
208
|
+
$borderRadius: 8px;
|
|
209
|
+
|
|
210
|
+
.card_group {
|
|
211
|
+
min-height: 300px;
|
|
212
|
+
|
|
213
|
+
@mixin card-inner-border-style($bgColour, $textColour) {
|
|
214
|
+
:deep(.pillTop) {
|
|
215
|
+
background-color: $bgColour;
|
|
216
|
+
color: $textColour;
|
|
217
|
+
}
|
|
218
|
+
:deep(button.card span.card-bottom-border) {
|
|
219
|
+
display: block;
|
|
220
|
+
width: 100%;
|
|
221
|
+
position: absolute;
|
|
222
|
+
bottom: 0px;
|
|
223
|
+
height: 8px;
|
|
224
|
+
border-bottom-left-radius: 8px;
|
|
225
|
+
border-bottom-right-radius: 8px;
|
|
226
|
+
background: $bgColour;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&--white,
|
|
231
|
+
&--yellow,
|
|
232
|
+
&--grey {
|
|
233
|
+
:deep(.card-grid-item__card) {
|
|
234
|
+
padding-bottom: 8px;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&--yellow {
|
|
239
|
+
:deep(button.card span.card-bottom-border) {
|
|
240
|
+
display: block;
|
|
241
|
+
background: $white;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&--grey,
|
|
246
|
+
&--white {
|
|
247
|
+
@include card-inner-border-style($orange, $black);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&__card {
|
|
251
|
+
&--blue {
|
|
252
|
+
@include card-inner-border-style($blue, $white);
|
|
253
|
+
}
|
|
254
|
+
&--red {
|
|
255
|
+
@include card-inner-border-style($red, $white);
|
|
256
|
+
}
|
|
257
|
+
&--pink {
|
|
258
|
+
@include card-inner-border-style($pink, $white);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media all and (-ms-high-contrast: none) {
|
|
263
|
+
::-ms-backdrop,
|
|
264
|
+
&__card {
|
|
265
|
+
padding-bottom: 16px;
|
|
266
|
+
} /* IE11 */
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
:deep(.card-body) {
|
|
270
|
+
padding-left: $cardTextPadding !important;
|
|
271
|
+
padding-right: $cardTextPadding !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:deep(.card-grid-item__card) {
|
|
275
|
+
min-height: 300px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:deep(.card-grid-item__caretContainer--bottom) {
|
|
279
|
+
padding-bottom: 6px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:deep(button.card span.card-bottom-border) {
|
|
283
|
+
display: block;
|
|
284
|
+
|
|
285
|
+
@media all and (-ms-high-contrast: none) {
|
|
286
|
+
::-ms-backdrop,
|
|
287
|
+
span.card-bottom-border {
|
|
288
|
+
display: block;
|
|
289
|
+
min-width: 100%;
|
|
290
|
+
position: absolute;
|
|
291
|
+
bottom: 0px;
|
|
292
|
+
left: 0px;
|
|
293
|
+
} /* IE11 */
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
</style>
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import CtaButton from './index.vue'
|
|
2
|
+
import svg from './../../../assets/icons/instagram.svg?raw'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'SubComponents/CTA',
|
|
6
|
+
component: CtaButton,
|
|
7
|
+
argTypes: {
|
|
8
|
+
glyph: {
|
|
9
|
+
control: ['object', 'text'],
|
|
10
|
+
table: { disable: true }
|
|
11
|
+
},
|
|
12
|
+
type: {
|
|
13
|
+
control: 'text',
|
|
14
|
+
table: { disable: true }
|
|
15
|
+
},
|
|
16
|
+
url: {
|
|
17
|
+
control: 'text'
|
|
18
|
+
},
|
|
19
|
+
isCentred: {
|
|
20
|
+
control: 'boolean'
|
|
21
|
+
},
|
|
22
|
+
rtl: {
|
|
23
|
+
control: 'boolean'
|
|
24
|
+
},
|
|
25
|
+
slim: {
|
|
26
|
+
control: 'boolean'
|
|
27
|
+
},
|
|
28
|
+
stretch: {
|
|
29
|
+
control: 'boolean'
|
|
30
|
+
},
|
|
31
|
+
textOnly: {
|
|
32
|
+
control: 'boolean'
|
|
33
|
+
},
|
|
34
|
+
workwell: {
|
|
35
|
+
control: 'boolean'
|
|
36
|
+
},
|
|
37
|
+
disabled: {
|
|
38
|
+
control: 'boolean'
|
|
39
|
+
},
|
|
40
|
+
isFluid: {
|
|
41
|
+
control: 'boolean',
|
|
42
|
+
table: { disable: true }
|
|
43
|
+
},
|
|
44
|
+
focusOutline: {
|
|
45
|
+
control: 'select',
|
|
46
|
+
options: ['default', 'light', 'dark']
|
|
47
|
+
},
|
|
48
|
+
glyphHeight: {
|
|
49
|
+
control: 'number',
|
|
50
|
+
table: { disable: true }
|
|
51
|
+
},
|
|
52
|
+
glyphWidth: {
|
|
53
|
+
control: 'number',
|
|
54
|
+
table: { disable: true }
|
|
55
|
+
},
|
|
56
|
+
alt: {
|
|
57
|
+
control: 'text',
|
|
58
|
+
table: { disable: true }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const Template = (args) => ({
|
|
64
|
+
components: { CtaButton },
|
|
65
|
+
setup () {
|
|
66
|
+
return { args }
|
|
67
|
+
},
|
|
68
|
+
template:
|
|
69
|
+
` <div>
|
|
70
|
+
<div>
|
|
71
|
+
<h3>{{args.heading}}</h3>
|
|
72
|
+
<cta-button
|
|
73
|
+
v-bind="args"
|
|
74
|
+
>
|
|
75
|
+
{{args.message}}
|
|
76
|
+
</cta-button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
`
|
|
80
|
+
})
|
|
81
|
+
export const Default = Template.bind({})
|
|
82
|
+
|
|
83
|
+
Default.args = {
|
|
84
|
+
type: 'default',
|
|
85
|
+
url: '#',
|
|
86
|
+
isCentred: false,
|
|
87
|
+
rtl: false,
|
|
88
|
+
slim: false,
|
|
89
|
+
stretch: false,
|
|
90
|
+
textOnly: false,
|
|
91
|
+
workwell: false,
|
|
92
|
+
disabled: false,
|
|
93
|
+
heading: 'Standard',
|
|
94
|
+
message: 'Click here'
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const LongText = Template.bind({})
|
|
98
|
+
|
|
99
|
+
LongText.args = {
|
|
100
|
+
type: 'default',
|
|
101
|
+
url: 'http://google.com',
|
|
102
|
+
isCentred: false,
|
|
103
|
+
rtl: false,
|
|
104
|
+
slim: false,
|
|
105
|
+
stretch: false,
|
|
106
|
+
textOnly: false,
|
|
107
|
+
workwell: false,
|
|
108
|
+
disabled: false,
|
|
109
|
+
heading: 'Long Text',
|
|
110
|
+
message: 'Can a minor adjustment be made to the CTA button width please. At the moment it is limited.'
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export const Disabled = Template.bind({})
|
|
114
|
+
|
|
115
|
+
Disabled.args = {
|
|
116
|
+
type: 'default',
|
|
117
|
+
url: '#',
|
|
118
|
+
isCentred: false,
|
|
119
|
+
rtl: false,
|
|
120
|
+
slim: false,
|
|
121
|
+
stretch: false,
|
|
122
|
+
textOnly: false,
|
|
123
|
+
workwell: false,
|
|
124
|
+
disabled: true,
|
|
125
|
+
glyph: () => null,
|
|
126
|
+
glyphHeight: 15,
|
|
127
|
+
glyphWidth: 25,
|
|
128
|
+
heading: 'Disabled',
|
|
129
|
+
message: 'Click here'
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export const Dark = Template.bind({})
|
|
133
|
+
|
|
134
|
+
Dark.args = {
|
|
135
|
+
type: 'dark',
|
|
136
|
+
url: 'http://google.com',
|
|
137
|
+
isCentred: false,
|
|
138
|
+
rtl: false,
|
|
139
|
+
slim: false,
|
|
140
|
+
stretch: false,
|
|
141
|
+
textOnly: false,
|
|
142
|
+
workwell: false,
|
|
143
|
+
disabled: false,
|
|
144
|
+
heading: 'Dark',
|
|
145
|
+
message: 'Click here'
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export const White = Template.bind({})
|
|
149
|
+
|
|
150
|
+
White.args = {
|
|
151
|
+
type: 'white',
|
|
152
|
+
url: 'http://google.com',
|
|
153
|
+
isCentred: false,
|
|
154
|
+
rtl: false,
|
|
155
|
+
slim: false,
|
|
156
|
+
stretch: false,
|
|
157
|
+
textOnly: false,
|
|
158
|
+
workwell: false,
|
|
159
|
+
disabled: false,
|
|
160
|
+
heading: 'White',
|
|
161
|
+
message: 'Click here'
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export const Gray = Template.bind({})
|
|
165
|
+
|
|
166
|
+
Gray.args = {
|
|
167
|
+
type: 'gray',
|
|
168
|
+
url: 'http://google.com',
|
|
169
|
+
isCentred: false,
|
|
170
|
+
rtl: false,
|
|
171
|
+
slim: false,
|
|
172
|
+
stretch: false,
|
|
173
|
+
textOnly: false,
|
|
174
|
+
workwell: false,
|
|
175
|
+
disabled: false,
|
|
176
|
+
heading: 'Gray',
|
|
177
|
+
message: 'Click here'
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export const RTL = Template.bind({})
|
|
181
|
+
|
|
182
|
+
RTL.args = {
|
|
183
|
+
type: 'default',
|
|
184
|
+
url: 'http://google.com',
|
|
185
|
+
isCentred: false,
|
|
186
|
+
rtl: true,
|
|
187
|
+
slim: false,
|
|
188
|
+
stretch: false,
|
|
189
|
+
textOnly: false,
|
|
190
|
+
workwell: false,
|
|
191
|
+
disabled: false,
|
|
192
|
+
heading: 'RTL',
|
|
193
|
+
message: 'Subscribe for alerts'
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export const CentredAndGlyph = {
|
|
197
|
+
args: {
|
|
198
|
+
...Default.args,
|
|
199
|
+
url: '#',
|
|
200
|
+
isCentred: true,
|
|
201
|
+
heading: 'Centred and Glyph',
|
|
202
|
+
message: 'Click here',
|
|
203
|
+
glyph: svg,
|
|
204
|
+
},
|
|
205
|
+
render: (args) => ({
|
|
206
|
+
components: { CtaButton },
|
|
207
|
+
setup() {
|
|
208
|
+
return { args };
|
|
209
|
+
},
|
|
210
|
+
template: `
|
|
211
|
+
<div>
|
|
212
|
+
<h3>{{args.heading}}</h3>
|
|
213
|
+
<cta-button class="has-icon"
|
|
214
|
+
v-bind="args"
|
|
215
|
+
>
|
|
216
|
+
{{args.message}}
|
|
217
|
+
</cta-button>
|
|
218
|
+
</div>
|
|
219
|
+
`
|
|
220
|
+
})
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export const TextOnly = Template.bind({})
|
|
224
|
+
|
|
225
|
+
TextOnly.args = {
|
|
226
|
+
type: 'default',
|
|
227
|
+
url: '#',
|
|
228
|
+
isCentred: true,
|
|
229
|
+
rtl: false,
|
|
230
|
+
slim: false,
|
|
231
|
+
stretch: false,
|
|
232
|
+
textOnly: true,
|
|
233
|
+
workwell: false,
|
|
234
|
+
disabled: false,
|
|
235
|
+
heading: 'Text Only',
|
|
236
|
+
message: 'Click here'
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export const Workwell = Template.bind({})
|
|
240
|
+
|
|
241
|
+
Workwell.args = {
|
|
242
|
+
type: 'default',
|
|
243
|
+
url: 'http://google.com',
|
|
244
|
+
isCentred: false,
|
|
245
|
+
rtl: false,
|
|
246
|
+
slim: false,
|
|
247
|
+
stretch: false,
|
|
248
|
+
textOnly: false,
|
|
249
|
+
workwell: true,
|
|
250
|
+
disabled: false,
|
|
251
|
+
heading: 'Workwell',
|
|
252
|
+
message: 'Click here'
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export const SideBySide = {
|
|
256
|
+
args: {
|
|
257
|
+
...Default.args,
|
|
258
|
+
heading: 'Side-by-Side',
|
|
259
|
+
message: 'Click here'
|
|
260
|
+
},
|
|
261
|
+
render: (args) => ({
|
|
262
|
+
components: { CtaButton },
|
|
263
|
+
setup() {
|
|
264
|
+
return { args };
|
|
265
|
+
},
|
|
266
|
+
template: `
|
|
267
|
+
<div>
|
|
268
|
+
<h3>{{args.heading}}</h3>
|
|
269
|
+
<cta-button
|
|
270
|
+
v-bind="args"
|
|
271
|
+
>
|
|
272
|
+
{{args.message}}
|
|
273
|
+
</cta-button>
|
|
274
|
+
<cta-button
|
|
275
|
+
v-bind="args"
|
|
276
|
+
>
|
|
277
|
+
{{args.message}}
|
|
278
|
+
</cta-button>
|
|
279
|
+
<cta-button
|
|
280
|
+
v-bind="args"
|
|
281
|
+
>
|
|
282
|
+
{{args.message}}
|
|
283
|
+
</cta-button>
|
|
284
|
+
</div>
|
|
285
|
+
`
|
|
286
|
+
})
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
export const Stretch = {
|
|
291
|
+
args: {
|
|
292
|
+
...Default.args,
|
|
293
|
+
heading: 'Stretch',
|
|
294
|
+
message: 'Click here',
|
|
295
|
+
stretch: true,
|
|
296
|
+
},
|
|
297
|
+
render: (args) => ({
|
|
298
|
+
components: { CtaButton },
|
|
299
|
+
setup() {
|
|
300
|
+
return { args };
|
|
301
|
+
},
|
|
302
|
+
template: `
|
|
303
|
+
<div>
|
|
304
|
+
<h3>{{args.heading}}</h3>
|
|
305
|
+
<cta-button
|
|
306
|
+
v-bind="args"
|
|
307
|
+
>
|
|
308
|
+
{{args.message}}
|
|
309
|
+
</cta-button>
|
|
310
|
+
<cta-button
|
|
311
|
+
v-bind="args"
|
|
312
|
+
rtl=true
|
|
313
|
+
>
|
|
314
|
+
{{args.message}}
|
|
315
|
+
</cta-button>
|
|
316
|
+
</div>
|
|
317
|
+
`
|
|
318
|
+
})
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export const Slim = {
|
|
322
|
+
args: {
|
|
323
|
+
...Default.args,
|
|
324
|
+
heading: 'Slim',
|
|
325
|
+
message: 'Click here',
|
|
326
|
+
slim: true,
|
|
327
|
+
},
|
|
328
|
+
render: (args) => ({
|
|
329
|
+
components: { CtaButton },
|
|
330
|
+
setup() {
|
|
331
|
+
return { args };
|
|
332
|
+
},
|
|
333
|
+
template: `
|
|
334
|
+
<div>
|
|
335
|
+
<h3>{{args.heading}}</h3>
|
|
336
|
+
<cta-button
|
|
337
|
+
v-bind="args"
|
|
338
|
+
>
|
|
339
|
+
{{args.message}}
|
|
340
|
+
</cta-button>
|
|
341
|
+
<cta-button
|
|
342
|
+
v-bind="args"
|
|
343
|
+
type="dark"
|
|
344
|
+
rtl=true
|
|
345
|
+
>
|
|
346
|
+
{{args.message}}
|
|
347
|
+
</cta-button>
|
|
348
|
+
<cta-button
|
|
349
|
+
v-bind="args"
|
|
350
|
+
type="white"
|
|
351
|
+
>
|
|
352
|
+
{{args.message}}
|
|
353
|
+
</cta-button>
|
|
354
|
+
</div>
|
|
355
|
+
`
|
|
356
|
+
})
|
|
357
|
+
}
|