@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,196 @@
1
+ <template>
2
+ <div class="wcl-directory-filters__single-tax">
3
+ <filter-button
4
+ :has-caret="true"
5
+ :selected="numberOfItems > 0"
6
+ :is-reset="false"
7
+ @clicked="$bvModal.show(`modal-center-${_uid}`)"
8
+ >
9
+ <span>{{ data.name }}</span>
10
+ <span v-if="numberOfItems > 0">({{ numberOfItems }})</span>
11
+ </filter-button>
12
+ <b-modal
13
+ :id="`modal-center-${_uid}`"
14
+ modal-class="wcl-directory-filters__single-tax__modal"
15
+ centered
16
+ scrollable
17
+ size="xl"
18
+ :title="data.name"
19
+ :title-sr-only="true"
20
+ header-close-label="Close dialog box"
21
+ >
22
+ <fieldset>
23
+ <legend>Filter by {{ data.name }}</legend>
24
+ <div v-for="term in data.terms" :key="term.tid" class="option">
25
+ <input
26
+ :id="`term_${term.tid}`"
27
+ v-model="selectedFilters[`${data.record_id}`]"
28
+ type="checkbox"
29
+ :name="term.name"
30
+ :value="term"
31
+ :disabled="term.preselected"
32
+ @keyup.enter="(e) => e.target.click()"
33
+ />
34
+ <label :for="`term_${term.tid}`">{{ term.name }}</label>
35
+ </div>
36
+ </fieldset>
37
+ <template #modal-footer="{ ok }">
38
+ <!-- Emulate built in modal footer ok and cancel button actions -->
39
+ <cta-button
40
+ v-if="!loading && results !== 0"
41
+ :type="'dark'"
42
+ :rtl="false"
43
+ :focus-outline="'light'"
44
+ :workwell="false"
45
+ @clicked="ok()"
46
+ >Show <span>{{ results }}</span> {{ resultString }}</cta-button
47
+ >
48
+ <strong v-else><span v-show="!loading">No results found</span></strong>
49
+ </template>
50
+ </b-modal>
51
+ </div>
52
+ </template>
53
+ <script>
54
+ import CtaButton from './../../../SubComponents/CtaButton/index.vue'
55
+ import FilterButton from './../../../Common/FilterButton/index.vue'
56
+ import { BModal } from 'bootstrap-vue-next'
57
+
58
+ export default {
59
+ components: {
60
+ CtaButton,
61
+ FilterButton,
62
+ BModal
63
+ },
64
+ props: {
65
+ data: {
66
+ type: Object,
67
+ required: true
68
+ },
69
+ results: {
70
+ type: Number,
71
+ required: true
72
+ },
73
+ loading: {
74
+ type: Boolean,
75
+ required: false
76
+ }
77
+ },
78
+ data() {
79
+ return {
80
+ selectedFilters: {
81
+ [this.data.record_id]: this.data.terms.filter(
82
+ (term) => term.preselected
83
+ )
84
+ },
85
+ hasReset: false
86
+ }
87
+ },
88
+ computed: {
89
+ numberOfItems() {
90
+ return this.selectedFilters[this.data.record_id].length
91
+ },
92
+ resultString() {
93
+ let s = 's'
94
+ this.results === 1 ? (s = '') : false
95
+ return 'Result' + s
96
+ }
97
+ },
98
+ watch: {
99
+ selectedFilters: {
100
+ immediate: false,
101
+ deep: true,
102
+ handler() {
103
+ this.emitSelectedValues()
104
+ }
105
+ }
106
+ },
107
+ methods: {
108
+ emitSelectedValues() {
109
+ if (!this.hasReset) {
110
+ this.$emit('onFilter', this.selectedFilters)
111
+ }
112
+ this.hasReset = false
113
+ },
114
+ reset() {
115
+ this.hasReset = true
116
+ this.selectedFilters[this.data.record_id] = this.selectedFilters[
117
+ this.data.record_id
118
+ ].filter((item) => item.preselected)
119
+ }
120
+ }
121
+ }
122
+ </script>
123
+ <style lang="scss">
124
+ //
125
+ // Global non scoped scss!
126
+ // Modal inner overrides only
127
+ //
128
+ // Component styles add in scoped
129
+ // block below
130
+ //
131
+ .wcl-directory-filters__single-tax {
132
+ // !!keep empty!! //
133
+ &__caret {
134
+ padding-left: 8px;
135
+ }
136
+
137
+ &__modal {
138
+ .modal-content {
139
+ border-radius: 8px;
140
+ }
141
+ .modal-xl {
142
+ max-width: 920px;
143
+ }
144
+ .modal-header {
145
+ position: absolute;
146
+ width: 100%;
147
+ left: 0;
148
+ right: 0;
149
+ padding: 32px;
150
+ border: none;
151
+ .close {
152
+ z-index: 1;
153
+ }
154
+ }
155
+ .modal-body {
156
+ padding: 32px;
157
+ fieldset {
158
+ display: flex;
159
+ flex-direction: row;
160
+ flex-wrap: wrap;
161
+ legend {
162
+ font-size: 28px;
163
+ font-weight: 700;
164
+ line-height: 32px;
165
+ letter-spacing: 0px;
166
+ margin-bottom: 32px;
167
+ }
168
+ .option {
169
+ margin-bottom: 32px;
170
+ flex-basis: 50%;
171
+ display: flex;
172
+ @media screen and (max-width: 600px) {
173
+ flex-basis: 100%;
174
+ }
175
+ input[type='checkbox'] {
176
+ height: 24px;
177
+ border: 1px solid #bababa;
178
+ width: 24px;
179
+ cursor: pointer;
180
+ }
181
+ label {
182
+ margin: 0px;
183
+ width: 80%;
184
+ position: relative;
185
+ left: 16px;
186
+ cursor: pointer;
187
+ }
188
+ }
189
+ }
190
+ }
191
+ .modal-footer {
192
+ border: none;
193
+ }
194
+ }
195
+ }
196
+ </style>
@@ -0,0 +1,176 @@
1
+ <template>
2
+ <div>
3
+ <row v-if="!loading" class="wcl-directory-filters">
4
+ <column v-if="bundle" md="4" sm="6">
5
+ <label class="visually-hidden" for="search-directory"
6
+ >Search by keyword (Typed keyword automatically filters below
7
+ results)</label
8
+ >
9
+ <b-form-input
10
+ id="search-directory"
11
+ v-model="searchQuery"
12
+ class="search"
13
+ autocomplete="off"
14
+ placeholder="Keyword"
15
+ debounce="500"
16
+ :style="`background-image: url(${searchIcon})`"
17
+ ></b-form-input>
18
+ </column>
19
+ <column v-if="bundle === 'isp'" md="4" sm="6">
20
+ <form-address-postcode
21
+ :show-full-address="false"
22
+ :input-placeholder="'Suburb or Postcode'"
23
+ :geocode="true"
24
+ :reverse-geocode="true"
25
+ :base-url="baseURL"
26
+ @suburbChange="emitLocation($event)"
27
+ @cleared="$emit('locationCleared')"
28
+ />
29
+ </column>
30
+ <column
31
+ :md="!bundle ? 12 : bundle === 'isp' ? 4 : 8"
32
+ :sm="!bundle ? 12 : bundle === 'isp' ? 6 : 12"
33
+ class="wcl-directory-filters_filters"
34
+ >
35
+ <single-taxonomy
36
+ v-for="(t, i) in filters.taxonomies"
37
+ :key="i"
38
+ :ref="`${t.record_id}`"
39
+ :data="t"
40
+ :results="results"
41
+ :loading="isFiltering"
42
+ class="wcl-directory-filters__filterButton"
43
+ @onFilter="emitFilterOpts($event)"
44
+ />
45
+ <filter-button
46
+ v-if="!hideReset"
47
+ :is-reset="true"
48
+ class="wcl-directory-filters__filterButton"
49
+ @clicked="reset"
50
+ />
51
+ </column>
52
+ </row>
53
+ </div>
54
+ </template>
55
+ <script>
56
+ import Row from './../../Containers/Row/index.vue'
57
+ import Column from './../../Containers/Column/index.vue'
58
+ import SingleTaxonomy from './SingleTaxonomy/index.vue'
59
+ import FormAddressPostcode from './../../SubComponents/FormAddressPostcode/index.vue'
60
+ import searchIcon from './../../../assets/icons/search.svg?url'
61
+ import FilterButton from './../../Common/FilterButton/index.vue'
62
+ import { BFormInput } from 'bootstrap-vue-next'
63
+
64
+ export default {
65
+ name: 'DirectoryFilters',
66
+ components: {
67
+ Row,
68
+ Column,
69
+ SingleTaxonomy,
70
+ FormAddressPostcode,
71
+ FilterButton,
72
+ BFormInput
73
+ },
74
+ props: {
75
+ filters: {
76
+ type: Object,
77
+ required: true
78
+ },
79
+ bundle: {
80
+ type: String,
81
+ default: ''
82
+ },
83
+ results: {
84
+ type: Number,
85
+ required: true
86
+ },
87
+ isFiltering: {
88
+ type: Boolean,
89
+ required: false
90
+ }
91
+ },
92
+ data() {
93
+ return {
94
+ searchQuery: '',
95
+ loading: true,
96
+ hideReset: true,
97
+ searchIcon
98
+ }
99
+ },
100
+ computed: {
101
+ baseURL() {
102
+ return window ? window.location.origin : ''
103
+ }
104
+ },
105
+ watch: {
106
+ searchQuery() {
107
+ if (this.searchQuery === '') {
108
+ this.hideReset = true
109
+ } else {
110
+ this.hideReset = false
111
+ }
112
+ this.$emit('onSearch', this.searchQuery)
113
+ }
114
+ },
115
+ mounted() {
116
+ // wait for hydration,
117
+ // then show all boxes together
118
+ this.loading = false
119
+ },
120
+ methods: {
121
+ emitFilterOpts(ev) {
122
+ this.hideReset = false
123
+ const allFiltersUnselected = Object.values(this.$refs).every(
124
+ (taxonomy) => {
125
+ return Object.values(taxonomy[0].selectedFilters).every(
126
+ (filter) => filter.filter((item) => !item.preselected).length === 0
127
+ )
128
+ }
129
+ )
130
+ if (allFiltersUnselected && !this.searchQuery) {
131
+ this.hideReset = true
132
+ }
133
+ this.$emit('onFilter', ev)
134
+ },
135
+ emitSortingOpts() {
136
+ this.$emit('onSort', this.selectedSort)
137
+ },
138
+ emitLocation(ev) {
139
+ this.$emit('onLocation', ev)
140
+ },
141
+ reset() {
142
+ this.hideReset = true
143
+ Object.keys(this.$refs).forEach((key) => {
144
+ this.$refs[key][0].reset()
145
+ })
146
+ this.searchQuery = ''
147
+ this.$emit('onReset')
148
+ }
149
+ }
150
+ }
151
+ </script>
152
+ <style lang="scss" scoped>
153
+ @import '../../../includes/scss/all';
154
+
155
+ .wcl-directory-filters {
156
+ .search {
157
+ color: $black;
158
+ border: 1px solid $gray;
159
+ border-radius: 8px;
160
+ padding: 10px 12px;
161
+ height: 42px;
162
+ background-repeat: no-repeat;
163
+ background-position: 96% 12px;
164
+ margin-bottom: 16px;
165
+ transition: none;
166
+ }
167
+ &__filterButton {
168
+ display: inline-block;
169
+ padding-right: 16px;
170
+ line-height: 3;
171
+ &:last-child {
172
+ padding-right: 0px;
173
+ }
174
+ }
175
+ }
176
+ </style>
@@ -0,0 +1,266 @@
1
+ <template>
2
+ <div>
3
+ <b-modal
4
+ id="global-notice-modal"
5
+ ref="globalNoticeModal"
6
+ :visible="displayGlobal"
7
+ size="400"
8
+ class="modal"
9
+ :no-close-on-backdrop="true"
10
+ :close-on-backdrop="false"
11
+ :close-on-esc="false"
12
+ aria-labelledby="global-notice-modal"
13
+ role="dialog"
14
+ >
15
+ <template #modal-header="{} ">
16
+ <div>
17
+ <!-- Emulate built in modal header close button action -->
18
+ <a
19
+ href="#"
20
+ aria-label="Close"
21
+ @click="
22
+ setCookie()
23
+ $bvModal.hide('global-notice-modal')
24
+ "
25
+ >
26
+ <img
27
+ :src="IconClose"
28
+ alt="close icon"
29
+ class="close-icon"
30
+ width="16px"
31
+ height="16px"
32
+ />
33
+ </a>
34
+ </div>
35
+ </template>
36
+ <div>
37
+ <div slot="modal-title" class="modal-heading">
38
+ Understand changes to the 2023-24 WorkCover premium
39
+ </div>
40
+ </div>
41
+
42
+ <div class="modal-content global-modal-global-content">
43
+ <div>
44
+ Information for employers on changes to premium rates, how premium is
45
+ calculated and key dates.
46
+ </div>
47
+ <div class="modal-buttons">
48
+ <div>
49
+ <button
50
+ id="open_page"
51
+ type="button"
52
+ role="button"
53
+ class="modal-buttons isWiderYellow hasIcon justify-content-start "
54
+ style="order: 1"
55
+ aria-label="Open information about premium changes"
56
+ @click="
57
+ setCookie()
58
+ goToPage('/2023-24-workcover-premium-changes')
59
+ $bvModal.hide('global-notice-modal')
60
+ "
61
+ >
62
+ 2023-24 premium FAQs
63
+ </button>
64
+ </div>
65
+ <div>
66
+ <button
67
+ id="modal_close"
68
+ type="button"
69
+ role="button"
70
+ class="modal-buttons isWiderGray hasIcon justify-content-start "
71
+ style="order: 2"
72
+ data-bs-dismiss="global-notice-modal"
73
+ aria-label="Close modal and go to WorkSafe website"
74
+ @click="
75
+ setCookie()
76
+ $bvModal.hide('global-notice-modal')
77
+ "
78
+ >
79
+ Continue to WorkSafe
80
+ </button>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ <div
85
+ slot="modal-footer"
86
+ style="display: none;"
87
+ class="modal-footer"
88
+ ></div>
89
+ </b-modal>
90
+ </div>
91
+ </template>
92
+
93
+ <script>
94
+ import IconClose from '../../../assets/icons/icon-close.svg'
95
+ export default {
96
+ name: 'GlobalNotice',
97
+ data() {
98
+ return {
99
+ currentURL: '',
100
+ displayGlobal: false,
101
+ IconClose
102
+ }
103
+ },
104
+ mounted() {
105
+ window.addEventListener('load', this.checkPage())
106
+ },
107
+ methods: {
108
+ setCookie() {
109
+ localStorage.setItem('globalModalHidden', 'true')
110
+ },
111
+ goToPage(link) {
112
+ window.open(link, '_self')
113
+ },
114
+ checkPage() {
115
+ this.currentURL = window.location.pathname
116
+ if (this.currentURL === '/2023-24-workcover-premium-changes') {
117
+ this.setCookie()
118
+ this.displayGlobal = false
119
+ } else if (typeof window !== 'undefined') {
120
+ this.displayGlobal =
121
+ process.env.SHOW_GLOBAL_NOTICE === 'true' &&
122
+ !localStorage.getItem('globalModalHidden')
123
+ } else {
124
+ this.displayGlobal = process.env.SHOW_GLOBAL_NOTICE === 'true'
125
+ }
126
+ }
127
+ }
128
+ }
129
+ </script>
130
+ <style lang="scss">
131
+ @import '../../../assets/styles/generated-icons.scss';
132
+ @import '../../../includes/scss/all';
133
+
134
+ .global-modal {
135
+ border-bottom: 0 none !important;
136
+ }
137
+ .modal-dialog.modal-400 {
138
+ width: 400px !important;
139
+ left: 50%;
140
+ margin-left: -(200px);
141
+ top: 50%;
142
+ margin-top: -240px;
143
+ box-shadow: 0px 0px 16px 8px rgba(0, 0, 0, 0.24) !important;
144
+ border-radius: 6px !important;
145
+
146
+ @media only screen and (max-width: 481px) {
147
+ width: 343px !important;
148
+ margin-left: -(171px);
149
+ }
150
+ }
151
+ .modal-header .close {
152
+ display: none;
153
+ }
154
+ .modal-header {
155
+ border-bottom: 0 none !important;
156
+ justify-content: flex-end !important;
157
+ padding-bottom: 0px !important;
158
+ }
159
+ .close-icon {
160
+ padding: 0;
161
+ }
162
+ .modal-footer {
163
+ border-top: 0 none !important;
164
+ }
165
+ .modal-body {
166
+ padding-left: 24px;
167
+ margin-bottom: 0px;
168
+ padding-bottom: 0 !important;
169
+ }
170
+
171
+ .modal-content {
172
+ font-weight: 400;
173
+ font-size: 16px;
174
+ line-height: 24px;
175
+ border: none !important;
176
+ margin-top: 16px;
177
+ margin-bottom: 0px;
178
+ padding: 0px 8px;
179
+
180
+ &:focus:focus-visible {
181
+ outline: 0 !important;
182
+ }
183
+
184
+ @media only screen and (max-width: 481px) {
185
+ padding: 0px;
186
+ }
187
+ }
188
+ .modal-heading {
189
+ font-size: 26px;
190
+ font-weight: 700;
191
+ line-height: 30px;
192
+ letter-spacing: 0px;
193
+ margin-bottom: 0px;
194
+ margin-top: 0px;
195
+ padding: 0px 8px;
196
+ @media only screen and (max-width: 481px) {
197
+ padding: 0px;
198
+ }
199
+ }
200
+
201
+ .modal-buttons {
202
+ position: relative;
203
+ text-decoration: none;
204
+ font-style: normal;
205
+ font-weight: 700;
206
+ font-size: 16px;
207
+ line-height: 20px;
208
+ letter-spacing: 0px;
209
+ caret-color: transparent;
210
+ border: 0;
211
+ border-radius: 8px;
212
+ padding-top: 16px;
213
+ padding-bottom: 16px;
214
+ padding-left: 0;
215
+ padding-right: 16px;
216
+ margin-bottom: 0px;
217
+ margin-left: 0px;
218
+ margin-top: 16px;
219
+
220
+ &.hasIcon {
221
+ span {
222
+ margin-left: 16px;
223
+ top: -1px;
224
+ position: relative;
225
+ img {
226
+ width: 16px;
227
+ }
228
+ }
229
+ }
230
+ &.isWiderYellow {
231
+ background-color: $yellow;
232
+ color: $black;
233
+ width: fit-content;
234
+ padding-left: 16px;
235
+ margin-top: 0px;
236
+
237
+ &:after {
238
+ content: arrow-right();
239
+ margin-left: 16px;
240
+ }
241
+ }
242
+ &.isWiderGray {
243
+ background-color: $lightgray;
244
+ color: $black;
245
+ width: fit-content;
246
+ padding-left: 16px;
247
+
248
+ &:after {
249
+ content: arrow-right();
250
+ margin-left: 16px;
251
+ }
252
+ }
253
+ .isWiderYellow:hover,
254
+ .isWiderGray:hover {
255
+ background-image: -webkit-gradient(
256
+ linear,
257
+ left top,
258
+ left bottom,
259
+ from(rgba(0, 0, 0, 0.15)),
260
+ to(rgba(0, 0, 0, 0.15))
261
+ );
262
+ background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
263
+ text-decoration: none;
264
+ }
265
+ }
266
+ </style>