@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.
Files changed (392) hide show
  1. package/.editorconfig +13 -0
  2. package/.env +4 -0
  3. package/.eslintrc.cjs +10 -0
  4. package/.eslintrc.js +25 -0
  5. package/.husky/commit-msg +4 -0
  6. package/.prettierrc +5 -0
  7. package/.prettierrc.json +8 -0
  8. package/.storybook/main.js +18 -0
  9. package/.storybook/preview.js +34 -0
  10. package/LICENSE +21 -0
  11. package/README.md +159 -0
  12. package/babel.config.js +8 -0
  13. package/bin/clean.sh +52 -0
  14. package/bin/deploy.sh +25 -0
  15. package/ci/build/Build_Validation.md +35 -0
  16. package/ci/build/build_validation.yml +47 -0
  17. package/ci/release/Release_Beta.md +39 -0
  18. package/ci/release/Release_Master.md +29 -0
  19. package/ci/release/beta.yml +69 -0
  20. package/ci/release/master.yml +39 -0
  21. package/commitlint.config.js +1 -0
  22. package/index.html +13 -0
  23. package/jest.config.js +21 -0
  24. package/lib/detect-browser.js +33 -0
  25. package/lib/utility.js +59 -0
  26. package/lib/utility.test.js +15 -0
  27. package/package.json +93 -0
  28. package/public/favicon.ico +0 -0
  29. package/src/assets/base.css +86 -0
  30. package/src/assets/fonts/VIC-Bold.eot +0 -0
  31. package/src/assets/fonts/VIC-Bold.ttf +0 -0
  32. package/src/assets/fonts/VIC-Bold.woff +0 -0
  33. package/src/assets/fonts/VIC-Bold.woff2 +0 -0
  34. package/src/assets/fonts/VIC-BoldItalic.eot +0 -0
  35. package/src/assets/fonts/VIC-BoldItalic.ttf +0 -0
  36. package/src/assets/fonts/VIC-BoldItalic.woff +0 -0
  37. package/src/assets/fonts/VIC-BoldItalic.woff2 +0 -0
  38. package/src/assets/fonts/VIC-ExtraLight.eot +0 -0
  39. package/src/assets/fonts/VIC-ExtraLight.ttf +0 -0
  40. package/src/assets/fonts/VIC-ExtraLight.woff +0 -0
  41. package/src/assets/fonts/VIC-ExtraLight.woff2 +0 -0
  42. package/src/assets/fonts/VIC-ExtraLightItalic.eot +0 -0
  43. package/src/assets/fonts/VIC-ExtraLightItalic.ttf +0 -0
  44. package/src/assets/fonts/VIC-ExtraLightItalic.woff +0 -0
  45. package/src/assets/fonts/VIC-ExtraLightItalic.woff2 +0 -0
  46. package/src/assets/fonts/VIC-Italic.eot +0 -0
  47. package/src/assets/fonts/VIC-Italic.ttf +0 -0
  48. package/src/assets/fonts/VIC-Italic.woff +0 -0
  49. package/src/assets/fonts/VIC-Italic.woff2 +0 -0
  50. package/src/assets/fonts/VIC-Light.eot +0 -0
  51. package/src/assets/fonts/VIC-Light.ttf +0 -0
  52. package/src/assets/fonts/VIC-Light.woff +0 -0
  53. package/src/assets/fonts/VIC-Light.woff2 +0 -0
  54. package/src/assets/fonts/VIC-LightItalic.eot +0 -0
  55. package/src/assets/fonts/VIC-LightItalic.ttf +0 -0
  56. package/src/assets/fonts/VIC-LightItalic.woff +0 -0
  57. package/src/assets/fonts/VIC-LightItalic.woff2 +0 -0
  58. package/src/assets/fonts/VIC-Medium.eot +0 -0
  59. package/src/assets/fonts/VIC-Medium.ttf +0 -0
  60. package/src/assets/fonts/VIC-Medium.woff +0 -0
  61. package/src/assets/fonts/VIC-Medium.woff2 +0 -0
  62. package/src/assets/fonts/VIC-MediumItalic.eot +0 -0
  63. package/src/assets/fonts/VIC-MediumItalic.ttf +0 -0
  64. package/src/assets/fonts/VIC-MediumItalic.woff +0 -0
  65. package/src/assets/fonts/VIC-MediumItalic.woff2 +0 -0
  66. package/src/assets/fonts/VIC-Regular.eot +0 -0
  67. package/src/assets/fonts/VIC-Regular.ttf +0 -0
  68. package/src/assets/fonts/VIC-Regular.woff +0 -0
  69. package/src/assets/fonts/VIC-Regular.woff2 +0 -0
  70. package/src/assets/fonts/VIC-SemiBold.eot +0 -0
  71. package/src/assets/fonts/VIC-SemiBold.ttf +0 -0
  72. package/src/assets/fonts/VIC-SemiBold.woff +0 -0
  73. package/src/assets/fonts/VIC-SemiBold.woff2 +0 -0
  74. package/src/assets/fonts/VIC-SemiBoldItalic.eot +0 -0
  75. package/src/assets/fonts/VIC-SemiBoldItalic.ttf +0 -0
  76. package/src/assets/fonts/VIC-SemiBoldItalic.woff +0 -0
  77. package/src/assets/fonts/VIC-SemiBoldItalic.woff2 +0 -0
  78. package/src/assets/icons/AppFooter/australian-aboriginal-flag.svg +7 -0
  79. package/src/assets/icons/AppFooter/facebook-ws-footer.svg +58 -0
  80. package/src/assets/icons/AppFooter/facebook-ww-footer.svg +59 -0
  81. package/src/assets/icons/AppFooter/instagram-ww-footer.svg +70 -0
  82. package/src/assets/icons/AppFooter/linkedin-ws-footer.svg +59 -0
  83. package/src/assets/icons/AppFooter/linkedin-ww-footer.svg +60 -0
  84. package/src/assets/icons/AppFooter/logo-workwell-reversed.svg +45 -0
  85. package/src/assets/icons/AppFooter/pride-flag.svg +12 -0
  86. package/src/assets/icons/AppFooter/torres-strait-islanders-flag.svg +9 -0
  87. package/src/assets/icons/AppFooter/twitter-ws-footer.svg +58 -0
  88. package/src/assets/icons/AppFooter/twitter-ww-footer.svg +59 -0
  89. package/src/assets/icons/AppFooter/worksafe-footer-logo.svg +9 -0
  90. package/src/assets/icons/AppFooter/youtube-ws-footer.svg +55 -0
  91. package/src/assets/icons/AppFooter/youtube-ww-footer.svg +56 -0
  92. package/src/assets/icons/AppHeader/chev-down-16.svg +17 -0
  93. package/src/assets/icons/AppHeader/chev-left-24px.svg +13 -0
  94. package/src/assets/icons/AppHeader/chev-right-16px.svg +25 -0
  95. package/src/assets/icons/AppHeader/chev-right-24px.svg +13 -0
  96. package/src/assets/icons/AppHeader/close-32px.svg +15 -0
  97. package/src/assets/icons/AppHeader/menu-32px.svg +20 -0
  98. package/src/assets/icons/AppHeader/search-32px.svg +19 -0
  99. package/src/assets/icons/Email-circle-black.svg +4 -0
  100. package/src/assets/icons/Info-circle-fill.svg +10 -0
  101. package/src/assets/icons/Phone-circle-black.svg +4 -0
  102. package/src/assets/icons/SocialShare/bookmark-white.svg +3 -0
  103. package/src/assets/icons/SocialShare/bookmark-ww-footer.svg +57 -0
  104. package/src/assets/icons/SocialShare/bookmark.svg +56 -0
  105. package/src/assets/icons/SocialShare/email-white.svg +3 -0
  106. package/src/assets/icons/SocialShare/facebook-white.svg +3 -0
  107. package/src/assets/icons/SocialShare/facebook-ws-footer.svg +58 -0
  108. package/src/assets/icons/SocialShare/facebook-ww-footer.svg +59 -0
  109. package/src/assets/icons/SocialShare/facebook.svg +1 -0
  110. package/src/assets/icons/SocialShare/office-file-pdf.svg +1 -0
  111. package/src/assets/icons/SocialShare/print.svg +3 -0
  112. package/src/assets/icons/SocialShare/twitter-white.svg +3 -0
  113. package/src/assets/icons/SocialShare/twitter-ws-footer.svg +58 -0
  114. package/src/assets/icons/SocialShare/twitter-ww-footer.svg +59 -0
  115. package/src/assets/icons/SocialShare/twitter.svg +1 -0
  116. package/src/assets/icons/Strip/AlertDismiss.svg +4 -0
  117. package/src/assets/icons/Strip/Arrow right.svg +4 -0
  118. package/src/assets/icons/Strip/Chevron right.svg +3 -0
  119. package/src/assets/icons/Strip/Dismiss.svg +4 -0
  120. package/src/assets/icons/Strip/Exclamation triangle fill.svg +8 -0
  121. package/src/assets/icons/Strip/Info circle fill.svg +15 -0
  122. package/src/assets/icons/Strip/Information.svg +15 -0
  123. package/src/assets/icons/Strip/Warning.svg +8 -0
  124. package/src/assets/icons/arrow-left.svg +9 -0
  125. package/src/assets/icons/arrow-right.svg +9 -0
  126. package/src/assets/icons/bookmark.svg +56 -0
  127. package/src/assets/icons/brand-VicStateGov-logo-reversed.svg +72 -0
  128. package/src/assets/icons/bullet-empty.svg +3 -0
  129. package/src/assets/icons/bullet.svg +3 -0
  130. package/src/assets/icons/caret-down.svg +1 -0
  131. package/src/assets/icons/caret-left.svg +9 -0
  132. package/src/assets/icons/caret-right.svg +9 -0
  133. package/src/assets/icons/caret-up.svg +1 -0
  134. package/src/assets/icons/chev-down-white.svg +3 -0
  135. package/src/assets/icons/chev-down.svg +3 -0
  136. package/src/assets/icons/chev-left.svg +3 -0
  137. package/src/assets/icons/chev-right.svg +3 -0
  138. package/src/assets/icons/chev-up.svg +3 -0
  139. package/src/assets/icons/clock.svg +3 -0
  140. package/src/assets/icons/close.svg +1 -0
  141. package/src/assets/icons/cross.svg +3 -0
  142. package/src/assets/icons/document.svg +1 -0
  143. package/src/assets/icons/earth.svg +1 -0
  144. package/src/assets/icons/email.svg +6 -0
  145. package/src/assets/icons/external-link-16px.svg +18 -0
  146. package/src/assets/icons/external-link.svg +4 -0
  147. package/src/assets/icons/icon-close.svg +15 -0
  148. package/src/assets/icons/instagram.svg +3 -0
  149. package/src/assets/icons/key.svg +3 -0
  150. package/src/assets/icons/location.svg +10 -0
  151. package/src/assets/icons/phone.svg +3 -0
  152. package/src/assets/icons/refresh.svg +3 -0
  153. package/src/assets/icons/right-arrow.svg +3 -0
  154. package/src/assets/icons/search.svg +5 -0
  155. package/src/assets/icons/tick.svg +3 -0
  156. package/src/assets/icons/video-play.svg +4 -0
  157. package/src/assets/images/hero-header-chevron.svg +9 -0
  158. package/src/assets/images/hero-header-mask.png +0 -0
  159. package/src/assets/images/hero-header-mask.svg +3 -0
  160. package/src/assets/logo.svg +1 -0
  161. package/src/assets/main.css +35 -0
  162. package/src/assets/styles/button.scss +206 -0
  163. package/src/assets/styles/focus.scss +4 -0
  164. package/src/assets/styles/generated-icons.scss +374 -0
  165. package/src/assets/styles/modal.scss +12 -0
  166. package/src/assets/styles/rtl.scss +8 -0
  167. package/src/assets/styles/storybook.scss +9 -0
  168. package/src/assets/styles/stylesheet.scss +7 -0
  169. package/src/assets/styles/webfonts.css +155 -0
  170. package/src/components/Common/CardGrid/cardgrid.stories.js +269 -0
  171. package/src/components/Common/CardGrid/index.vue +321 -0
  172. package/src/components/Common/CardGridItem/card-grid-item-caret.vue +164 -0
  173. package/src/components/Common/CardGridItem/card-grid-item-icon.vue +163 -0
  174. package/src/components/Common/CardGridItem/index.vue +848 -0
  175. package/src/components/Common/FilterButton/index.vue +93 -0
  176. package/src/components/Containers/Column/index.stories.js +35 -0
  177. package/src/components/Containers/Column/index.vue +14 -0
  178. package/src/components/Containers/Container/index.stories.js +13 -0
  179. package/src/components/Containers/Container/index.vue +15 -0
  180. package/src/components/Containers/HomepageHeader/index.stories.js +78 -0
  181. package/src/components/Containers/HomepageHeader/index.vue +186 -0
  182. package/src/components/Containers/Row/index.stories.js +12 -0
  183. package/src/components/Containers/Row/index.vue +14 -0
  184. package/src/components/Containers/SectionGroup/index.stories.js +148 -0
  185. package/src/components/Containers/SectionGroup/index.vue +310 -0
  186. package/src/components/Containers/Subheader/index.stories.js +74 -0
  187. package/src/components/Containers/Subheader/index.vue +149 -0
  188. package/src/components/Global/AlertStrip/index.stories.js +13 -0
  189. package/src/components/Global/AlertStrip/index.vue +145 -0
  190. package/src/components/Global/AlertStrip/styles.scss +78 -0
  191. package/src/components/Global/AppFooter/FooterSocialShare/index.vue +105 -0
  192. package/src/components/Global/AppFooter/FooterSocialShare/styles.scss +41 -0
  193. package/src/components/Global/AppFooter/index.stories.js +24 -0
  194. package/src/components/Global/AppFooter/index.vue +632 -0
  195. package/src/components/Global/AppFooter/storiesConst.js +110 -0
  196. package/src/components/Global/AppFooter/styles.scss +393 -0
  197. package/src/components/Global/AppHeader/ModalSearch/index.vue +66 -0
  198. package/src/components/Global/AppHeader/ModalSearch/styles.scss +43 -0
  199. package/src/components/Global/AppHeader/includes.scss +68 -0
  200. package/src/components/Global/AppHeader/index.stories.js +82 -0
  201. package/src/components/Global/AppHeader/index.vue +878 -0
  202. package/src/components/Global/AppHeader/mobile.scss +240 -0
  203. package/src/components/Global/AppHeader/styles.scss +371 -0
  204. package/src/components/Global/BackToTop/index.stories.js +18 -0
  205. package/src/components/Global/BackToTop/index.vue +67 -0
  206. package/src/components/Global/BackToTop/styles.scss +46 -0
  207. package/src/components/Global/ContrastMode/index.stories.js +39 -0
  208. package/src/components/Global/ContrastMode/index.vue +308 -0
  209. package/src/components/Global/Cookies/Constants.js +72 -0
  210. package/src/components/Global/Cookies/index.storieshide.js +45 -0
  211. package/src/components/Global/Cookies/index.vue +453 -0
  212. package/src/components/Global/Cookies/styles.scss +259 -0
  213. package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +196 -0
  214. package/src/components/Global/DirectoryFilters/index.vue +176 -0
  215. package/src/components/Global/GlobalNotice/index.vue +266 -0
  216. package/src/components/Global/HeroHeader/index.stories.js +93 -0
  217. package/src/components/Global/HeroHeader/index.vue +343 -0
  218. package/src/components/Global/HeroHeader/styles.scss +480 -0
  219. package/src/components/Global/ProgressBar/index.stories.js +51 -0
  220. package/src/components/Global/ProgressBar/index.vue +58 -0
  221. package/src/components/Global/ProgressBar/styles.scss +116 -0
  222. package/src/components/Global/SocialShare/index.stories.js +18 -0
  223. package/src/components/Global/SocialShare/index.vue +318 -0
  224. package/src/components/Global/Strip/index.stories.js +70 -0
  225. package/src/components/Global/Strip/index.vue +357 -0
  226. package/src/components/HelloWorld.vue +44 -0
  227. package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +232 -0
  228. package/src/components/Paragraphs/Accordion/StepperItem/index.vue +274 -0
  229. package/src/components/Paragraphs/Accordion/index.stories.js +84 -0
  230. package/src/components/Paragraphs/Accordion/index.vue +202 -0
  231. package/src/components/Paragraphs/Breakout/index.stories.js +39 -0
  232. package/src/components/Paragraphs/Breakout/index.vue +115 -0
  233. package/src/components/Paragraphs/BrowseContent/index.stories.js +220 -0
  234. package/src/components/Paragraphs/BrowseContent/index.vue +298 -0
  235. package/src/components/Paragraphs/BrowseContent/switcher.vue +63 -0
  236. package/src/components/Paragraphs/Calculator/CardContainer/index.vue +278 -0
  237. package/src/components/Paragraphs/Calculator/CardContainer/styles.scss +152 -0
  238. package/src/components/Paragraphs/Calculator/Constants.js +246 -0
  239. package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +124 -0
  240. package/src/components/Paragraphs/Calculator/RiskLevel/styles.scss +73 -0
  241. package/src/components/Paragraphs/Calculator/index.stories.js +27 -0
  242. package/src/components/Paragraphs/Calculator/index.vue +284 -0
  243. package/src/components/Paragraphs/Calculator/styles.scss +49 -0
  244. package/src/components/Paragraphs/Directory/Records/CJ/index.vue +59 -0
  245. package/src/components/Paragraphs/Directory/Records/ISP/distance.js +46 -0
  246. package/src/components/Paragraphs/Directory/Records/ISP/index.vue +88 -0
  247. package/src/components/Paragraphs/Directory/Records/PRS/index.vue +59 -0
  248. package/src/components/Paragraphs/Directory/Records/PRS/recordContent.vue +91 -0
  249. package/src/components/Paragraphs/Directory/Records/PRS/recordDetails.vue +49 -0
  250. package/src/components/Paragraphs/Directory/Records/index.vue +203 -0
  251. package/src/components/Paragraphs/Directory/Records/styles.scss +129 -0
  252. package/src/components/Paragraphs/Directory/constants.js +79 -0
  253. package/src/components/Paragraphs/Directory/index.vue +334 -0
  254. package/src/components/Paragraphs/ListGroup/Constants.js +72 -0
  255. package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +71 -0
  256. package/src/components/Paragraphs/ListGroup/index.vue +333 -0
  257. package/src/components/Paragraphs/ListGroup/list-group.stories.js +64 -0
  258. package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +66 -0
  259. package/src/components/Paragraphs/MarketingBanner/index.stories.js +65 -0
  260. package/src/components/Paragraphs/MarketingBanner/index.vue +118 -0
  261. package/src/components/Paragraphs/MarketingBanner/styles.scss +87 -0
  262. package/src/components/Paragraphs/ProofPoints/index.stories.js +173 -0
  263. package/src/components/Paragraphs/ProofPoints/index.vue +64 -0
  264. package/src/components/Paragraphs/RelatedInformation/index.stories.js +32 -0
  265. package/src/components/Paragraphs/RelatedInformation/index.vue +62 -0
  266. package/src/components/Paragraphs/RelatedInformation/styles.scss +50 -0
  267. package/src/components/Paragraphs/RichText/index.stories.js +393 -0
  268. package/src/components/Paragraphs/RichText/index.vue +113 -0
  269. package/src/components/Paragraphs/RichText/scss/base.scss +355 -0
  270. package/src/components/Paragraphs/RichText/scss/definition-list.scss +35 -0
  271. package/src/components/Paragraphs/RichText/scss/styled-list.scss +152 -0
  272. package/src/components/Paragraphs/RichText/scss/table.scss +85 -0
  273. package/src/components/Paragraphs/ScrollSpy/index.stories.js +184 -0
  274. package/src/components/Paragraphs/ScrollSpy/index.vue +147 -0
  275. package/src/components/Paragraphs/SelectableCards/Control/index.stories.js +29 -0
  276. package/src/components/Paragraphs/SelectableCards/cardbody.vue +25 -0
  277. package/src/components/Paragraphs/SelectableCards/cardtop.vue +113 -0
  278. package/src/components/Paragraphs/SelectableCards/index.stories.js +27 -0
  279. package/src/components/Paragraphs/SelectableCards/index.vue +116 -0
  280. package/src/components/Paragraphs/Statistics/index.stories.js +106 -0
  281. package/src/components/Paragraphs/Statistics/index.vue +95 -0
  282. package/src/components/Paragraphs/TabbedCards/TempIcons/cake-black-18dp.svg +1 -0
  283. package/src/components/Paragraphs/TabbedCards/TempIcons/commute-black-18dp.svg +1 -0
  284. package/src/components/Paragraphs/TabbedCards/TempIcons/fire_extinguisher-black-18dp.svg +1 -0
  285. package/src/components/Paragraphs/TabbedCards/TempIcons/free_breakfast-black-18dp.svg +1 -0
  286. package/src/components/Paragraphs/TabbedCards/TempIcons/portrait-black-18dp.svg +1 -0
  287. package/src/components/Paragraphs/TabbedCards/TempIcons/storefront-black-18dp.svg +1 -0
  288. package/src/components/Paragraphs/TabbedCards/TempIcons/tag_faces-black-18dp.svg +1 -0
  289. package/src/components/Paragraphs/TabbedCards/index.stories.js +36 -0
  290. package/src/components/Paragraphs/TabbedCards/index.vue +393 -0
  291. package/src/components/Paragraphs/Tabs/index.stories.js +60 -0
  292. package/src/components/Paragraphs/Tabs/index.vue +127 -0
  293. package/src/components/Paragraphs/Tabs/styles.scss +150 -0
  294. package/src/components/Paragraphs/TabulatedData/Constants.js +158 -0
  295. package/src/components/Paragraphs/TabulatedData/index.stories.js +39 -0
  296. package/src/components/Paragraphs/TabulatedData/index.vue +145 -0
  297. package/src/components/Paragraphs/TaskFinder/index.stories.js +45 -0
  298. package/src/components/Paragraphs/TaskFinder/index.vue +192 -0
  299. package/src/components/Paragraphs/TaskFinder/pdf/index.vue +109 -0
  300. package/src/components/Paragraphs/TaskFinder/task-finder-column.vue +146 -0
  301. package/src/components/Paragraphs/TextMedia/MediaTypes/Image/index.vue +24 -0
  302. package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +29 -0
  303. package/src/components/Paragraphs/TextMedia/index.stories.js +94 -0
  304. package/src/components/Paragraphs/TextMedia/index.vue +150 -0
  305. package/src/components/Paragraphs/VideoGrid/index.stories.js +167 -0
  306. package/src/components/Paragraphs/VideoGrid/index.vue +124 -0
  307. package/src/components/Paragraphs/VideoPlayer/index.stories.js +95 -0
  308. package/src/components/Paragraphs/VideoPlayer/index.vue +110 -0
  309. package/src/components/Paragraphs/Webform/index.stories.js +70 -0
  310. package/src/components/Paragraphs/Webform/index.vue +103 -0
  311. package/src/components/SubComponents/Breadcrumb/constants.js +15 -0
  312. package/src/components/SubComponents/Breadcrumb/index.stories.js +22 -0
  313. package/src/components/SubComponents/Breadcrumb/index.vue +91 -0
  314. package/src/components/SubComponents/CardGroup/cardbody.vue +109 -0
  315. package/src/components/SubComponents/CardGroup/cardtop.vue +106 -0
  316. package/src/components/SubComponents/CardGroup/index.stories.js +145 -0
  317. package/src/components/SubComponents/CardGroup/index.vue +297 -0
  318. package/src/components/SubComponents/CtaButton/index.stories.js +357 -0
  319. package/src/components/SubComponents/CtaButton/index.vue +256 -0
  320. package/src/components/SubComponents/FormAddressPostcode/index.stories.js +43 -0
  321. package/src/components/SubComponents/FormAddressPostcode/index.vue +314 -0
  322. package/src/components/SubComponents/FormInstance/index.stories.js +8 -0
  323. package/src/components/SubComponents/FormInstance/index.vue +12 -0
  324. package/src/components/SubComponents/GoogleSearch/index.stories.js +8 -0
  325. package/src/components/SubComponents/GoogleSearch/index.vue +405 -0
  326. package/src/components/SubComponents/Icon/README.md +40 -0
  327. package/src/components/SubComponents/Icon/example.js +41 -0
  328. package/src/components/SubComponents/Icon/index.stories.js +84 -0
  329. package/src/components/SubComponents/Icon/index.vue +127 -0
  330. package/src/components/SubComponents/Icon/styles.scss +38 -0
  331. package/src/components/SubComponents/Loading/index.stories.js +9 -0
  332. package/src/components/SubComponents/Loading/index.vue +15 -0
  333. package/src/components/SubComponents/MediaPlayer/index.stories.js +58 -0
  334. package/src/components/SubComponents/MediaPlayer/index.vue +69 -0
  335. package/src/components/SubComponents/Pagination/index.stories.js +119 -0
  336. package/src/components/SubComponents/Pagination/index.vue +184 -0
  337. package/src/components/SubComponents/Pagination/pagination.js +58 -0
  338. package/src/components/SubComponents/ResourceGroup/List/index.stories.js +268 -0
  339. package/src/components/SubComponents/ResourceGroup/cardbody.vue +221 -0
  340. package/src/components/SubComponents/ResourceGroup/cardfooter.vue +61 -0
  341. package/src/components/SubComponents/ResourceGroup/cardtop.vue +94 -0
  342. package/src/components/SubComponents/ResourceGroup/index.stories.js +268 -0
  343. package/src/components/SubComponents/ResourceGroup/index.vue +575 -0
  344. package/src/components/SubComponents/ResourceGroup/styles.scss +317 -0
  345. package/src/components/SubComponents/ResourceGroup/switcher.vue +63 -0
  346. package/src/components/SubComponents/Search/SearchListing/index.vue +217 -0
  347. package/src/components/SubComponents/Search/index.stories.js +43 -0
  348. package/src/components/SubComponents/Search/index.vue +238 -0
  349. package/src/components/SubComponents/SingleImage/index.stories.js +60 -0
  350. package/src/components/SubComponents/SingleImage/index.vue +98 -0
  351. package/src/components/SubComponents/VideoThumbnail/index.stories.js +41 -0
  352. package/src/components/SubComponents/VideoThumbnail/index.vue +239 -0
  353. package/src/components/TheWelcome.vue +88 -0
  354. package/src/components/WelcomeItem.vue +87 -0
  355. package/src/components/icons/IconCommunity.vue +7 -0
  356. package/src/components/icons/IconDocumentation.vue +7 -0
  357. package/src/components/icons/IconEcosystem.vue +7 -0
  358. package/src/components/icons/IconSupport.vue +7 -0
  359. package/src/components/icons/IconTooling.vue +19 -0
  360. package/src/includes/scss/all.scss +2 -0
  361. package/src/includes/scss/mixins/all.scss +6 -0
  362. package/src/includes/scss/mixins/src/focus.scss +38 -0
  363. package/src/includes/scss/mixins/src/fp.scss +31 -0
  364. package/src/includes/scss/mixins/src/grid.scss +125 -0
  365. package/src/includes/scss/mixins/src/mq.scss +30 -0
  366. package/src/includes/scss/mixins/src/rtl.scss +8 -0
  367. package/src/includes/scss/mixins/src/units.scss +110 -0
  368. package/src/includes/scss/vars/all.scss +2 -0
  369. package/src/includes/scss/vars/src/breakpoints.scss +20 -0
  370. package/src/includes/scss/vars/src/colors.module.scss +53 -0
  371. package/src/includes/scss/vars/src/colors.scss +53 -0
  372. package/src/index.js +116 -0
  373. package/src/main.js +18 -0
  374. package/src/mock/accordion.js +104 -0
  375. package/src/mock/app-header.js +683 -0
  376. package/src/mock/control-selectable-cards.js +58 -0
  377. package/src/mock/jest.svgtransformer.js +7 -0
  378. package/src/mock/list-group.js +46 -0
  379. package/src/mock/proof-points.js +55 -0
  380. package/src/mock/related-info.js +44 -0
  381. package/src/mock/selectable-cards.js +48 -0
  382. package/src/mock/statistics.js +63 -0
  383. package/src/mock/styleMock.js +1 -0
  384. package/src/mock/tabbed-cards.js +197 -0
  385. package/src/mock/task-finder.js +68 -0
  386. package/src/mock/video-grid.js +409 -0
  387. package/src/mock/video-media.js +51 -0
  388. package/src/public/places/api/v1/geocode/json +69 -0
  389. package/src/public/places/api/v1/place/autocomplete/json +226 -0
  390. package/stylelint.config.js +63 -0
  391. package/vite.config.js +19 -0
  392. package/vitest.config.js +14 -0
@@ -0,0 +1,480 @@
1
+ @import '../../../includes/scss/all';
2
+
3
+ //
4
+ // Responsive Custom Height Mixin and set for all elements in one go ;)
5
+ //
6
+
7
+ // HeroHeader - Default - WSV logo Chevy
8
+ // HeroHeader - Collection - Tringle with or without image
9
+ // HeroHeader - Home - Homepage HeroHeader
10
+
11
+ //
12
+ // Height Mixin - Used for Default based on ref: 540 @ 1200px
13
+ //
14
+ @mixin defaultVariationHeight {
15
+ //@include fp('height', 216, 650);
16
+ height: 540px;
17
+ // @include mq('lg') {
18
+ // height: 540px;
19
+ // }
20
+ @include mq('mm') {
21
+ height: auto;
22
+ }
23
+ @include mq('sm') {
24
+ height: auto;
25
+ }
26
+ }
27
+
28
+ //
29
+ // Height Mixin - Collection and Image type based on ref: 640 @ 1200px
30
+ //
31
+ @mixin collectionVariationHeight {
32
+ //@include fp('height', 216, 900);
33
+ height: 640px;
34
+
35
+ @media only screen and (max-width: 1060px) and (min-width: 981px) {
36
+ height: 580px;
37
+ }
38
+
39
+ @include mq('mm') {
40
+ height: auto;
41
+ }
42
+ }
43
+
44
+ //
45
+ // Height Mixin - Hero Variation 1080 @ 1200
46
+ //
47
+ @mixin heroVariationHeight {
48
+ height: 100vh;
49
+ @include mq('mm') {
50
+ height: calc(100vh - 70px);
51
+ }
52
+ }
53
+
54
+ // Reset Content Wrapper Position
55
+ @mixin resetContentWrapperPosition {
56
+ @include mq('mm') {
57
+ position: relative;
58
+ padding-top: 45px;
59
+ padding-bottom: 45px;
60
+ top: 0;
61
+ }
62
+ }
63
+
64
+ //
65
+ // Global Config
66
+ //
67
+ .wcl-hero-header {
68
+ position: relative;
69
+ top: -90px;
70
+ margin-bottom: -90px;
71
+ border-bottom: 2px solid $lightgray;
72
+
73
+ @include mq('mm') {
74
+ position: relative;
75
+ top: 0px;
76
+ margin-bottom: 0;
77
+ }
78
+
79
+ &__wrap {
80
+ display: flex;
81
+ align-items: center;
82
+ }
83
+
84
+ &__side {
85
+ @include mq('xs') {
86
+ padding: 0;
87
+ }
88
+ }
89
+
90
+ .rtl {
91
+ @include makeRTL();
92
+ }
93
+
94
+ .rtl-flip {
95
+ @include makeRTLFlip();
96
+ .wcl-hero-header__mask {
97
+ right: 1px;
98
+ }
99
+ }
100
+ // fixes
101
+ .wcl-hero-header__right.type-collection.rtl-flip {
102
+ margin-left: 0;
103
+ }
104
+
105
+ &__title {
106
+ margin-bottom: 12px;
107
+ }
108
+
109
+ &__showmore {
110
+ position: absolute;
111
+ bottom: 48px;
112
+ @include mq('md') {
113
+ bottom: 96px;
114
+ }
115
+ &--link {
116
+ padding-left: 0px;
117
+ padding-right: 0px;
118
+ &:hover,
119
+ &:focus {
120
+ text-decoration: none;
121
+ }
122
+ @include mq('sm') {
123
+ padding-left: 24px;
124
+ padding-right: 24px;
125
+ }
126
+
127
+ color: $white !important;
128
+ }
129
+ &--text {
130
+ font-size: 16px;
131
+ padding-left: 12px;
132
+ &:hover,
133
+ &:focus {
134
+ text-decoration: underline;
135
+ }
136
+ }
137
+ }
138
+
139
+ //
140
+ // Content
141
+ //
142
+ &__content-wrapper {
143
+ width: 100%;
144
+ position: absolute;
145
+ margin-top: 90px;
146
+ @include mq('mm') {
147
+ margin-top: 0;
148
+ }
149
+
150
+ &__content {
151
+ @include mq('md') {
152
+ max-width: 100%;
153
+ margin: 0;
154
+ padding: 0 30px;
155
+ }
156
+ &-col {
157
+ max-width: 69%;
158
+ z-index: 2;
159
+ @include mq('mm') {
160
+ max-width: 100%;
161
+ padding-right: 45px;
162
+ }
163
+ @include mq('xs') {
164
+ padding-right: 0px;
165
+ padding-left: 0px;
166
+ }
167
+
168
+ &--split {
169
+ padding-right: 0;
170
+ }
171
+
172
+ .header-rich-text-wrap {
173
+ max-width: 100%;
174
+ }
175
+ }
176
+ }
177
+ }
178
+ //
179
+ // Masking
180
+ //
181
+ &__mask {
182
+ position: absolute;
183
+ width: 100%;
184
+ height: 100%;
185
+ top: 0;
186
+ right: 0;
187
+ z-index: 1;
188
+ @include mq('mm') {
189
+ position: relative;
190
+ }
191
+ img {
192
+ width: 100%;
193
+ @include mq('mm') {
194
+ position: absolute;
195
+ }
196
+ }
197
+ }
198
+
199
+ &__right {
200
+ &.type-collection {
201
+ @media (min-width: 981px) {
202
+ max-width: 59%;
203
+ margin-left: 41%;
204
+ }
205
+ @media (min-width: 1280px) {
206
+ max-width: 50%;
207
+ margin-left: 50%;
208
+ }
209
+ @media (min-width: 1499px) {
210
+ max-width: 45%;
211
+ margin-left: 55%;
212
+ }
213
+ @media (min-width: 1599px) {
214
+ max-width: 41%;
215
+ margin-left: 59%;
216
+ }
217
+ }
218
+ padding: 0;
219
+ @include mq('mm') {
220
+ // If you want to fade it out
221
+
222
+ // position: absolute;
223
+ // right: 0;
224
+ // top: 0px;
225
+ // bottom: 0;
226
+ // width: 70%;
227
+ // opacity: 0.15;
228
+ display: none;
229
+ }
230
+ }
231
+
232
+ .social-share {
233
+ padding: 6px 15px;
234
+
235
+ @include mq('sm') {
236
+ padding: 0;
237
+ background: transparent;
238
+ height: 56px;
239
+ display: block;
240
+ bottom: 0;
241
+ border-radius: 6px;
242
+ border-width: 3px;
243
+ position: relative;
244
+ margin: {
245
+ top: 16px;
246
+ bottom: 0;
247
+ left: 0;
248
+ right: 0;
249
+ }
250
+
251
+ :deep(.social-share__hr) {
252
+ display: none;
253
+ }
254
+
255
+ :deep(.social-share__header) {
256
+ float: left;
257
+ margin-right: 16px;
258
+ margin-top: 8px;
259
+
260
+ font-weight: 500;
261
+ }
262
+
263
+ :deep(.social-share__button-wrapper) {
264
+ position: relative;
265
+ float: left;
266
+ margin-top: 8px;
267
+ }
268
+
269
+ :deep(.social-share__button-wrapper button) {
270
+ display: inline;
271
+ }
272
+ }
273
+
274
+ @include mq('xs') {
275
+ margin: {
276
+ left: -15px;
277
+ }
278
+ }
279
+ }
280
+ }
281
+
282
+ //
283
+ // Config Overrides - Default
284
+ //
285
+ .wcl-hero-header.type-default {
286
+ @include defaultVariationHeight();
287
+
288
+ .wcl-hero-header {
289
+ &__content-wrapper {
290
+ @include resetContentWrapperPosition();
291
+ }
292
+ &__right {
293
+ background-position: center right;
294
+ background-size: cover;
295
+ text-align: right;
296
+ overflow: hidden;
297
+ @include defaultVariationHeight();
298
+ @include mq('mm') {
299
+ opacity: 1;
300
+ }
301
+ @include mq('xs') {
302
+ width: 100%;
303
+ }
304
+ }
305
+ &__mask {
306
+ img {
307
+ @include defaultVariationHeight();
308
+ }
309
+ svg {
310
+ fill: $lightgray;
311
+ height: 150%;
312
+ top: -25%;
313
+ position: relative;
314
+ }
315
+ }
316
+ }
317
+
318
+ &.-with-bg {
319
+ background: $lightgray;
320
+ .wcl-hero-header__right {
321
+ .wcl-hero-header__mask {
322
+ svg {
323
+ fill: $white;
324
+ }
325
+ }
326
+ }
327
+
328
+ .social-share {
329
+ @include mq('sm') {
330
+ // background: $white;
331
+ }
332
+ }
333
+ }
334
+ }
335
+
336
+ //
337
+ // Config Overrides - Collection
338
+ //
339
+ .wcl-hero-header.type-collection {
340
+ @include collectionVariationHeight();
341
+
342
+ .wcl-hero-header {
343
+ &__content-wrapper {
344
+ @include resetContentWrapperPosition();
345
+ }
346
+ &__right {
347
+ background-color: $lightgray;
348
+ background-size: cover;
349
+ background-position: top center;
350
+ @include collectionVariationHeight();
351
+
352
+ @include mq('xs') {
353
+ background-image: none !important;
354
+ width: 100%;
355
+ }
356
+ }
357
+ &__mask {
358
+ img {
359
+ @include collectionVariationHeight();
360
+ }
361
+ }
362
+ }
363
+ }
364
+
365
+ //
366
+ // Config Overrides - Image
367
+ //
368
+ .wcl-hero-header.type-image {
369
+ @include collectionVariationHeight();
370
+
371
+ .wcl-hero-header {
372
+ &__content-wrapper {
373
+ @include resetContentWrapperPosition();
374
+ &__content {
375
+ &-col {
376
+ max-width: 59%;
377
+ @include mq('mm') {
378
+ max-width: 100%;
379
+ }
380
+ }
381
+ }
382
+ }
383
+ &__right {
384
+ @include collectionVariationHeight();
385
+ background-size: cover;
386
+ background-position: top center;
387
+ }
388
+ }
389
+ }
390
+
391
+ //
392
+ // Config Overrides - Hero
393
+ //
394
+ .wcl-hero-header.type-hero {
395
+ @include heroVariationHeight();
396
+ background-repeat: no-repeat;
397
+ background-size: cover;
398
+ background-position: center center;
399
+ border-bottom: none;
400
+ display: table;
401
+ width: 100%;
402
+
403
+ .wcl-hero-header {
404
+ &__wrap {
405
+ display: table-cell;
406
+ vertical-align: middle;
407
+ width: 100%;
408
+ }
409
+ &__content-wrapper {
410
+ position: relative;
411
+ margin-top: 0px;
412
+
413
+ &__content {
414
+ padding: 0 15px;
415
+ position: relative;
416
+ &-col {
417
+ @include mq('sm') {
418
+ padding-left: 30px;
419
+ padding-right: 30px;
420
+ }
421
+
422
+ @include mq('xs') {
423
+ padding-left: 0;
424
+ padding-right: 0;
425
+ }
426
+
427
+ .wcl-hero-header__title {
428
+ background: $white;
429
+ padding: 12px;
430
+ display: inline-block;
431
+ }
432
+ .header-rich-text-wrap {
433
+ margin-bottom: 16px;
434
+
435
+ :deep(p:last-of-type) {
436
+ margin-bottom: 0;
437
+ }
438
+
439
+ :deep(p.intro) {
440
+ background-color: $black;
441
+ color: $white;
442
+ padding: 12px;
443
+ line-height: 28px;
444
+
445
+ &.invert {
446
+ background: $white;
447
+ color: $black;
448
+ }
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ }
455
+
456
+ :deep(.social-share) {
457
+ top: 22%;
458
+ @include mq('sm') {
459
+ background: $white;
460
+ position: absolute;
461
+ top: auto;
462
+ left: 60px;
463
+ bottom: 15px;
464
+ width: 215px;
465
+ margin-left: 0;
466
+ }
467
+
468
+ @include mq('xs') {
469
+ left: 15px;
470
+ }
471
+
472
+ .social-share__wrap {
473
+ @include mq('sm') {
474
+ position: relative;
475
+ float: left;
476
+ padding-left: 8px;
477
+ }
478
+ }
479
+ }
480
+ }
@@ -0,0 +1,51 @@
1
+ import ProgressBar from './index.vue'
2
+
3
+ const mockData = [
4
+ {
5
+ value: '1',
6
+ checked: false,
7
+ completed: true
8
+ },
9
+ {
10
+ value: '2',
11
+ checked: true,
12
+ completed: false
13
+ },
14
+ {
15
+ value: '3',
16
+ checked: false,
17
+ completed: false
18
+ }
19
+ ]
20
+
21
+ export default {
22
+ title: 'Global/ProgressBar',
23
+ component: ProgressBar,
24
+ argTypes: {
25
+ steeperStyle: {
26
+ control: 'boolean'
27
+ },
28
+ items: {
29
+ control: 'array'
30
+ },
31
+ rtl: {
32
+ control: 'boolean'
33
+ }
34
+ }
35
+ }
36
+
37
+ export const Steeper = {
38
+ args: {
39
+ steeperStyle: true,
40
+ items: mockData,
41
+ rtl: false
42
+ }
43
+ }
44
+
45
+ export const Default = {
46
+ args: {
47
+ steeperStyle: false,
48
+ items: mockData,
49
+ rtl: false
50
+ }
51
+ }
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <div
3
+ class="wcl-progress-bar"
4
+ :class="{
5
+ [`wcl-progress-bar--steeper-style`]: steeperStyle,
6
+ ['wcl-progress-bar--rtl']: rtl
7
+ }"
8
+ >
9
+ <div
10
+ v-for="(item, index) in items"
11
+ :key="index"
12
+ class="wcl-progress-bar--list"
13
+ :class="{
14
+ [`wcl-progress-bar--steeper-style--list`]: steeperStyle
15
+ }"
16
+ >
17
+ <label
18
+ :for="item.value"
19
+ :title="item.value"
20
+ :class="{ [`checked`]: item.checked, [`completed`]: item.completed }"
21
+ >
22
+ {{ getItem(item.value, item.completed) }}<span></span>
23
+ </label>
24
+ </div>
25
+ </div>
26
+ </template>
27
+
28
+ <script>
29
+ export default {
30
+ name: 'ProgressBar',
31
+ props: {
32
+ items: {
33
+ type: Array,
34
+ required: true,
35
+ default: () => []
36
+ },
37
+ steeperStyle: {
38
+ type: Boolean,
39
+ default: false
40
+ },
41
+ rtl: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ },
46
+ computed: {
47
+ getItem() {
48
+ return (value, checked) => {
49
+ return checked ? '' : value
50
+ }
51
+ }
52
+ }
53
+ }
54
+ </script>
55
+
56
+ <style lang="scss" scoped>
57
+ @import './styles.scss';
58
+ </style>
@@ -0,0 +1,116 @@
1
+ @import '../../../includes/scss/vars/src/colors.scss';
2
+
3
+ .wcl-progress-bar {
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+ min-width: 0;
8
+ padding: 0;
9
+ margin: 0;
10
+ border: 0;
11
+
12
+ &--list {
13
+ flex: 1;
14
+ justify-content: center;
15
+ display: flex;
16
+
17
+ &:first-child {
18
+ justify-content: flex-start;
19
+ }
20
+ &:last-child {
21
+ justify-content: flex-end;
22
+ text-align: right;
23
+ }
24
+ label {
25
+ display: inline-block;
26
+ width: 48px;
27
+ height: 48px;
28
+ line-height: 40px;
29
+ text-align: center;
30
+ background-color: #ffd229;
31
+ border: 3px solid #ffd229;
32
+ border-radius: 50%;
33
+ cursor: pointer;
34
+ font-weight: 700;
35
+ font-size: 25px;
36
+ color: #191919;
37
+
38
+ @media screen and (min-width: 992px) {
39
+ font-size: 24px;
40
+ }
41
+ @media screen and (min-width: 1200px) {
42
+ font-size: 26px;
43
+ }
44
+
45
+ &.checked {
46
+ background-color: white;
47
+ border: 3px solid #0074bd;
48
+ font-size: 25px;
49
+
50
+ @media screen and (min-width: 1200px) {
51
+ font-size: 26px;
52
+ }
53
+ }
54
+ &.completed {
55
+ background-color: white;
56
+ border: 3px solid green;
57
+ display: flex;
58
+ justify-content: center;
59
+ align-items: center;
60
+
61
+ span {
62
+ background-image: url('../../../assets/icons/tick.svg');
63
+ background-position: center;
64
+ background-repeat: no-repeat;
65
+ filter: invert(43%) sepia(37%) saturate(467%) hue-rotate(60deg) brightness(89%) contrast(97%);
66
+ width: 100%;
67
+ height: 100%;
68
+ }
69
+ }
70
+ }
71
+
72
+ }
73
+
74
+ &--steeper-style {
75
+ &--list {
76
+ position: relative;
77
+
78
+ &:first-child::after {
79
+ border-top: 3px dotted grey;
80
+ border-radius: 1px;
81
+ content: "";
82
+ top: 42%;
83
+ left: 35px;
84
+ position: absolute;
85
+ transform: translateY(-50%);
86
+ height: auto;
87
+ width: 135%;
88
+ z-index: -1;
89
+ }
90
+ &:last-child::before {
91
+ border-top: 3px dotted grey;
92
+ border-radius: 1px;
93
+ content: '';
94
+ top: 42%;
95
+ right: 35px;
96
+ position: absolute;
97
+ transform: translateY(-50%);
98
+ height: auto;
99
+ width: 134%;
100
+ z-index: -1;
101
+ }
102
+ }
103
+
104
+ }
105
+
106
+ &--rtl {
107
+ direction: rtl;
108
+ text-align: right;
109
+
110
+ &.wcl-progress-bar--steeper-style {
111
+ .wcl-progress-bar--steeper-style--list:not(:last-child)::after {
112
+ left: 0px;
113
+ }
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,18 @@
1
+ import SocialShare from './index.vue'
2
+
3
+ export default {
4
+ title: 'Global/SocialShare',
5
+ component: SocialShare,
6
+ argTypes: {
7
+ rtl: {
8
+ control: 'boolean',
9
+ table: { disable: true }
10
+ }
11
+ }
12
+ };
13
+
14
+ export const Default = {}
15
+
16
+ Default.args = {
17
+ rtl: false
18
+ }