@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,45 @@
1
+ import TaskFinder from './index.vue'
2
+ import {
3
+ taskFinderTempTitle,
4
+ taskFinderTempText,
5
+ taskFinderTempData
6
+ } from '../../../mock/task-finder'
7
+
8
+ export default {
9
+ title: 'Paragraphs/TaskFinder',
10
+ component: TaskFinder,
11
+ argTypes: {
12
+ taskList: {
13
+ control: 'object',
14
+ defaultValue: taskFinderTempData
15
+ },
16
+ title: {
17
+ control: 'text',
18
+ defaultValue: taskFinderTempTitle
19
+ },
20
+ text: {
21
+ control: 'text',
22
+ defaultValue: taskFinderTempText
23
+ },
24
+ headingTag: {
25
+ control: 'text',
26
+ defaultValue: 'h2'
27
+ },
28
+ rtl: {
29
+ control: 'boolean',
30
+ defaultValue: false
31
+ },
32
+ workwell: {
33
+ control: 'boolean',
34
+ defaultValue: false
35
+ }
36
+ }
37
+ }
38
+
39
+ const DefaultContent = (args, { argTypes }) => ({
40
+ components: { TaskFinder },
41
+ props: Object.keys(argTypes),
42
+ template: '<task-finder v-bind="$props" :storybook="true"/>'
43
+ })
44
+
45
+ export const Default = DefaultContent.bind({})
@@ -0,0 +1,192 @@
1
+ <template>
2
+ <section-group
3
+ v-if="!isPDF"
4
+ :rtl="rtl"
5
+ :title="title"
6
+ :title-tag="headingTag"
7
+ :background-variant="'grey'"
8
+ class="task-finder"
9
+ :class="{ workwell }"
10
+ @isMobileOrTabletView="(e) => (isMobileOrTabletView = e)"
11
+ >
12
+ <template v-slot:content>
13
+ <row>
14
+ <column v-if="text" :sm="12" :md="4">
15
+ <rich-text :content="text" :without-container="true" />
16
+ </column>
17
+ <column :sm="12" :md="4">
18
+ <task-finder-column
19
+ :cards="taskList"
20
+ :rtl="rtl"
21
+ :selected-task="selectedTask"
22
+ :is-child="false"
23
+ :is-mobile-or-tablet-view="isMobileOrTabletView"
24
+ @selected="(task) => taskClick(task, true)"
25
+ >
26
+ <task-finder-column
27
+ v-if="isMobileOrTabletView && selectedTask"
28
+ :class="'task-finder__mobile task-finder__mobile--rtl-' + !!rtl"
29
+ :cards="selectedTask.children"
30
+ :rtl="rtl"
31
+ :selected-task="selectedTask"
32
+ :is-mobile-or-tablet-view="isMobileOrTabletView"
33
+ :is-child="true"
34
+ @selected="(task) => taskClick(task, false)"
35
+ >
36
+ </task-finder-column>
37
+ </task-finder-column>
38
+ </column>
39
+ <column
40
+ v-if="!isMobileOrTabletView"
41
+ :sm="12"
42
+ :md="4"
43
+ class="task-finder__desktop"
44
+ >
45
+ <task-finder-column
46
+ v-if="selectedTask"
47
+ :cards="selectedTask.children"
48
+ :rtl="rtl"
49
+ :selected-task="selectedTask"
50
+ :is-mobile-or-tablet-view="isMobileOrTabletView"
51
+ :is-child="true"
52
+ @selected="(task) => taskClick(task, false)"
53
+ >
54
+ </task-finder-column>
55
+ </column>
56
+ </row>
57
+ </template>
58
+ </section-group>
59
+ <task-finder-pdf
60
+ v-else
61
+ :title="title"
62
+ :text="text"
63
+ :task-list="taskList"
64
+ :heading-tag="headingTag"
65
+ :rtl="rtl"
66
+ />
67
+ </template>
68
+
69
+ <script>
70
+ import SectionGroup from './../../Containers/SectionGroup/index.vue'
71
+ import Row from './../../Containers/Row/index.vue'
72
+ import Column from './../../Containers/Column/index.vue'
73
+ import { isAbsoluteUrl, navigateToPath } from './../../../../lib/utility'
74
+ import RichText from './../RichText/index.vue'
75
+ import TaskFinderColumn from './task-finder-column.vue'
76
+ import TaskFinderPdf from './pdf/index.vue'
77
+
78
+ export default {
79
+ name: 'TaskFinder',
80
+ components: {
81
+ Row,
82
+ Column,
83
+ RichText,
84
+ SectionGroup,
85
+ TaskFinderColumn,
86
+ TaskFinderPdf
87
+ },
88
+ props: {
89
+ rtl: {
90
+ type: Boolean,
91
+ default: false
92
+ },
93
+ taskList: {
94
+ type: Array,
95
+ default: null
96
+ },
97
+ title: {
98
+ type: String,
99
+ default: ''
100
+ },
101
+ headingTag: {
102
+ type: String,
103
+ default: 'h2'
104
+ },
105
+ text: {
106
+ type: String,
107
+ default: ''
108
+ },
109
+ workwell: {
110
+ type: Boolean,
111
+ default: false
112
+ }
113
+ },
114
+ data() {
115
+ return {
116
+ selectedTask: null,
117
+ isMobileOrTabletView: false
118
+ }
119
+ },
120
+ computed: {
121
+ isPDF() {
122
+ return typeof this.$isPDF === 'function' ? this.$isPDF() : false
123
+ }
124
+ },
125
+ methods: {
126
+ getCaret(card) {
127
+ if (card.url && isAbsoluteUrl(card.url)) {
128
+ return 'external'
129
+ } else {
130
+ return 'right'
131
+ }
132
+ },
133
+ taskClick(task, isParent) {
134
+ if (isParent) {
135
+ if (this.selectedTask === task?.card?.selectedCard) {
136
+ this.selectedTask = null
137
+ } else {
138
+ this.selectedTask = task?.card?.selectedCard
139
+ }
140
+ }
141
+ if (
142
+ !task?.card?.selectedCard.children ||
143
+ task?.card?.selectedCard.children.length < 1
144
+ ) {
145
+ navigateToPath.call(
146
+ this,
147
+ task?.card?.selectedCard?.url,
148
+ task?.card?.ev?.ctrlKey === true || task?.card?.ev?.metaKey === true
149
+ )
150
+ this.selectedTask = null
151
+ }
152
+ }
153
+ }
154
+ }
155
+ </script>
156
+ <style lang="scss" scoped>
157
+ @import '../../../includes/scss/all';
158
+ .task-finder {
159
+ padding-top: 64px !important;
160
+ padding-bottom: 64px !important;
161
+
162
+ :deep(.card-title span) {
163
+ font-weight: 600;
164
+ }
165
+
166
+ :deep(.section-group__content) {
167
+ padding-top: 0px !important;
168
+ }
169
+
170
+ :deep(.section-group__content .col-md-4) {
171
+ position: relative;
172
+ top: -12px;
173
+ }
174
+
175
+ :deep(.section-group__content .col-md-4:first-of-type) {
176
+ top: 0;
177
+ }
178
+
179
+ :deep(.section-group__heading) {
180
+ padding-bottom: 12px !important;
181
+ }
182
+
183
+ &__mobile {
184
+ &--rtl-true {
185
+ margin-right: 32px !important;
186
+ }
187
+ &--rtl-false {
188
+ margin-left: 32px !important;
189
+ }
190
+ }
191
+ }
192
+ </style>
@@ -0,0 +1,109 @@
1
+ <template>
2
+ <container class="task-finder-pdf">
3
+ <row>
4
+ <column sm="12">
5
+ <component :is="headingTag">{{ title }}</component>
6
+ </column>
7
+ <column v-if="text" sm="12">
8
+ <rich-text :content="text" :without-container="true" />
9
+ </column>
10
+ <column sm="12">
11
+ <ul>
12
+ <li v-for="(parent, i) in taskList" :key="i">
13
+ {{ parent.text }} {{ parent.url ? '- ' + getURL(parent.url) : '' }}
14
+ <ul v-if="parent.children">
15
+ <li v-for="(child, j) in parent.children" :key="j">
16
+ {{ child.text }} {{ child.url ? '- ' + getURL(child.url) : '' }}
17
+ </li>
18
+ </ul>
19
+ </li>
20
+ </ul>
21
+ </column>
22
+ </row>
23
+ </container>
24
+ </template>
25
+
26
+ <script>
27
+ import { isAbsoluteUrl } from '../../../../../lib/utility'
28
+ import Row from './../../../Containers/Container/index.vue'
29
+ import Container from './../../../Containers/Container/index.vue'
30
+ import Column from './../../../Containers/Column/index.vue'
31
+ import RichText from './../../../Paragraphs/RichText/index.vue'
32
+
33
+ export default {
34
+ components: {
35
+ Container,
36
+ Row,
37
+ Column,
38
+ RichText
39
+ },
40
+ props: {
41
+ rtl: {
42
+ type: Boolean,
43
+ default: false
44
+ },
45
+ taskList: {
46
+ type: Array,
47
+ default: null
48
+ },
49
+ title: {
50
+ type: String,
51
+ default: ''
52
+ },
53
+ headingTag: {
54
+ type: String,
55
+ default: 'h2'
56
+ },
57
+ text: {
58
+ type: String,
59
+ default: ''
60
+ }
61
+ },
62
+
63
+ methods: {
64
+ isAbsoluteUrl,
65
+ getURL(url) {
66
+ if (!isAbsoluteUrl(url)) {
67
+ return window.location.origin + url
68
+ }
69
+ }
70
+ }
71
+ }
72
+ </script>
73
+
74
+ <style lang="scss" scoped>
75
+ .task-finder-pdf {
76
+ h2 {
77
+ font-size: 32px;
78
+ font-style: normal;
79
+ font-weight: 700;
80
+ line-height: 36px;
81
+ margin-bottom: 24px;
82
+ margin-top: 24px;
83
+ }
84
+ h3 {
85
+ font-size: 28px;
86
+ font-style: normal;
87
+ font-weight: 700;
88
+ line-height: 32px;
89
+ margin-top: 24px;
90
+ margin-bottom: 24px;
91
+ }
92
+ ul {
93
+ margin-top: 16px;
94
+ li {
95
+ page-break-inside: avoid;
96
+ margin-bottom: 16px;
97
+ }
98
+ ul {
99
+ margin-top: 0;
100
+ li {
101
+ &:first-of-type {
102
+ margin-top: 8px;
103
+ }
104
+ margin-bottom: 0;
105
+ }
106
+ }
107
+ }
108
+ }
109
+ </style>
@@ -0,0 +1,146 @@
1
+ <template>
2
+ <card-grid
3
+ :size="'full'"
4
+ :cards="cards"
5
+ :rtl="rtl"
6
+ :force-lg-columns-per-row="1"
7
+ :force-md-columns-per-row="1"
8
+ :force-sm-columns-per-row="1"
9
+ :is-selectable="true"
10
+ :row-spacing="'none'"
11
+ :no-padding-top="true"
12
+ :no-padding-bottom="true"
13
+ :column-spacing="'none'"
14
+ class="task-finder-column"
15
+ :class="
16
+ isChild ? 'task-finder-column__child' : 'task-finder-column__parent'
17
+ "
18
+ :style="cards.length > 6 ? false : 'overflow-y: auto'"
19
+ @selected="(card) => $emit('selected', { card })"
20
+ >
21
+ <template v-slot:cardItem="{ card }">
22
+ <card-grid-item
23
+ :show-divider="false"
24
+ :header-size="'medium'"
25
+ :card-header-title="card.text"
26
+ :rtl="rtl"
27
+ :caret="getCaret(card)"
28
+ :caret-position="'top'"
29
+ :card-padding="'small'"
30
+ :border-type="'none'"
31
+ :invert-on-select-background="'yellow'"
32
+ :background-variant="'transparent'"
33
+ :link="card.url ? card.url : false"
34
+ >
35
+ <template v-slot:beforeCard>
36
+ <hr v-if="isMobileOrTabletView" />
37
+ </template>
38
+ <template v-slot:afterCard>
39
+ <slot v-if="selectedTask === card" />
40
+ </template>
41
+ </card-grid-item>
42
+ </template>
43
+ </card-grid>
44
+ </template>
45
+
46
+ <script>
47
+ import CardGrid from '../../Common/CardGrid/index.vue'
48
+ import CardGridItem from '../../Common/CardGridItem/index.vue'
49
+ import { isAbsoluteUrl } from '../../../../lib/utility'
50
+
51
+ export default {
52
+ name: 'TaskFinderColumn',
53
+ components: {
54
+ CardGrid,
55
+ CardGridItem
56
+ },
57
+ props: {
58
+ rtl: {
59
+ type: Boolean
60
+ },
61
+ cards: {
62
+ type: Array,
63
+ default: null
64
+ },
65
+ selectedTask: {
66
+ type: Object,
67
+ default: null
68
+ },
69
+ isChild: {
70
+ type: Boolean
71
+ },
72
+ isMobileOrTabletView: {
73
+ type: Boolean
74
+ }
75
+ },
76
+ methods: {
77
+ getCaret(card) {
78
+ if (this.isChild || this.isMobileOrTabletView) {
79
+ return null
80
+ }
81
+ if (card.url && isAbsoluteUrl(card.url)) {
82
+ return 'external'
83
+ } else if (Array.isArray(card.children) && card.children.length === 0) {
84
+ return null
85
+ } else {
86
+ if (this.isMobileOrTabletView) {
87
+ return this.selectedTask === card ? 'up' : 'down'
88
+ }
89
+ return 'right'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ </script>
95
+ <style lang="scss" scoped>
96
+ @import '../../../includes/scss/all';
97
+
98
+ .task-finder-column__child {
99
+ height: 375px;
100
+ overflow-y: scroll;
101
+
102
+ //firefox
103
+ scrollbar-color: $black $gray;
104
+ scrollbar-width: thin;
105
+
106
+ &::-webkit-scrollbar {
107
+ width: 8px;
108
+ }
109
+ &::-webkit-scrollbar-track {
110
+ border-radius: 10px;
111
+ background-color: $gray;
112
+ }
113
+ &::-webkit-scrollbar-thumb {
114
+ border-radius: 10px;
115
+ background-color: $black;
116
+ border: 1px solid $gray;
117
+ }
118
+ }
119
+
120
+ .task-finder-column {
121
+ :deep(.card-grid-item__card) {
122
+ height: auto !important;
123
+ padding-top: 16px !important;
124
+ padding-bottom: 16px !important;
125
+ margin-bottom: 8px !important;
126
+ border-radius: 0 !important;
127
+
128
+ &:hover {
129
+ background-color: $orange;
130
+ opacity: 1;
131
+ }
132
+ }
133
+
134
+ :deep(.card-grid-item__card &--selected-inverted &--yellow) {
135
+ background-color: $orange;
136
+ }
137
+
138
+ :deep(.card-grid-item__header) {
139
+ margin-bottom: 0px !important;
140
+ }
141
+
142
+ :deep(.section-group__content) {
143
+ padding-top: 0 !important;
144
+ }
145
+ }
146
+ </style>
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <img :src="imageUrl" :alt="imageAlt" />
3
+ </template>
4
+ <script>
5
+ export default {
6
+ name: 'ImageFrame',
7
+ props: {
8
+ imageUrl: {
9
+ type: String,
10
+ required: true
11
+ },
12
+ imageAlt: {
13
+ type: String,
14
+ required: true
15
+ }
16
+ }
17
+ }
18
+ </script>
19
+ <style lang="scss" scoped>
20
+ img {
21
+ border-radius: 8px;
22
+ width: 100%;
23
+ }
24
+ </style>
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <div class="thumbnail-wrapper">
3
+ <video-thumbnail class="video-thumbnail" :video="video" />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import VideoThumbnail from './../../../../SubComponents/VideoThumbnail/index.vue'
9
+
10
+ export default {
11
+ name: 'VideoThumbnailFrame',
12
+ components: {
13
+ VideoThumbnail
14
+ },
15
+ props: {
16
+ video: {
17
+ type: Object,
18
+ required: true
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style lang="scss" scoped>
24
+ .thumbnail-wrapper {
25
+ :deep(.wcl-video-thumbnail-wrapper a img.video-thumbnail__image) {
26
+ max-height: 250px;
27
+ }
28
+ }
29
+ </style>
@@ -0,0 +1,94 @@
1
+ import TextMedia from './index.vue'
2
+
3
+ const MockImage = {
4
+ alt: 'some alt text',
5
+ url: 'https://picsum.photos/445/300/?image=26'
6
+ }
7
+
8
+ const MockVideo = {
9
+ id: '3FLapMJUmZQ',
10
+ mediaTitle: 'Some video title',
11
+ provider: 'youtube',
12
+ transcriptTitle: 'Transcript',
13
+ transcript:
14
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
15
+ thumbnailQuality: 'max',
16
+ fixWidth: false
17
+ }
18
+
19
+ export default {
20
+ title: 'Paragraphs/Text + Media',
21
+ component: TextMedia,
22
+ argTypes: {
23
+ content: {
24
+ control: 'text',
25
+ defaultValue:
26
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>'
27
+ },
28
+ titleText: {
29
+ control: 'text',
30
+ defaultValue: 'A sample media item'
31
+ },
32
+ titleTag: {
33
+ control: 'text',
34
+ defaultValue: 'h3'
35
+ },
36
+ hasBgColor: {
37
+ control: 'boolean',
38
+ defaultValue: false
39
+ },
40
+ flip: {
41
+ control: 'boolean',
42
+ defaultValue: false
43
+ },
44
+ rtl: {
45
+ control: 'boolean',
46
+ defaultValue: false
47
+ },
48
+ workwell: {
49
+ control: 'boolean',
50
+ defaultValue: false
51
+ },
52
+ video: {
53
+ control: 'object'
54
+ },
55
+ image: {
56
+ control: 'object'
57
+ },
58
+ mediaType: {
59
+ control: 'text'
60
+ },
61
+ storybook: {
62
+ control: 'boolean',
63
+ defaultValue: true
64
+ },
65
+ hideImageMob: {
66
+ control: 'boolean',
67
+ defaultValue: false
68
+ }
69
+ }
70
+ }
71
+
72
+ const TextWithImageDefault = (args, { argTypes }) => ({
73
+ components: { TextMedia },
74
+ props: Object.keys(argTypes),
75
+ template: `<text-media v-bind="$props" />`
76
+ })
77
+
78
+ export const TextWithImage = TextWithImageDefault.bind({})
79
+ TextWithImage.args = {
80
+ mediaType: 'image',
81
+ image: MockImage
82
+ }
83
+
84
+ const TextWithVideoDefault = (args, { argTypes }) => ({
85
+ components: { TextMedia },
86
+ props: Object.keys(argTypes),
87
+ template: `<text-media v-bind="$props" />`
88
+ })
89
+
90
+ export const TextWithVideo = TextWithVideoDefault.bind({})
91
+ TextWithVideo.args = {
92
+ mediaType: 'video',
93
+ video: MockVideo
94
+ }