@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,88 @@
1
+ <script setup>
2
+ import WelcomeItem from './WelcomeItem.vue'
3
+ import DocumentationIcon from './icons/IconDocumentation.vue'
4
+ import ToolingIcon from './icons/IconTooling.vue'
5
+ import EcosystemIcon from './icons/IconEcosystem.vue'
6
+ import CommunityIcon from './icons/IconCommunity.vue'
7
+ import SupportIcon from './icons/IconSupport.vue'
8
+ </script>
9
+
10
+ <template>
11
+ <WelcomeItem>
12
+ <template #icon>
13
+ <DocumentationIcon />
14
+ </template>
15
+ <template #heading>Documentation</template>
16
+
17
+ Vue’s
18
+ <a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
19
+ provides you with all information you need to get started.
20
+ </WelcomeItem>
21
+
22
+ <WelcomeItem>
23
+ <template #icon>
24
+ <ToolingIcon />
25
+ </template>
26
+ <template #heading>Tooling</template>
27
+
28
+ This project is served and bundled with
29
+ <a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
30
+ recommended IDE setup is
31
+ <a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a> +
32
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>. If
33
+ you need to test your components and web pages, check out
34
+ <a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a> and
35
+ <a href="https://on.cypress.io/component" target="_blank" rel="noopener"
36
+ >Cypress Component Testing</a
37
+ >.
38
+
39
+ <br />
40
+
41
+ More instructions are available in <code>README.md</code>.
42
+ </WelcomeItem>
43
+
44
+ <WelcomeItem>
45
+ <template #icon>
46
+ <EcosystemIcon />
47
+ </template>
48
+ <template #heading>Ecosystem</template>
49
+
50
+ Get official tools and libraries for your project:
51
+ <a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
52
+ <a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
53
+ <a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
54
+ <a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
55
+ you need more resources, we suggest paying
56
+ <a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
57
+ a visit.
58
+ </WelcomeItem>
59
+
60
+ <WelcomeItem>
61
+ <template #icon>
62
+ <CommunityIcon />
63
+ </template>
64
+ <template #heading>Community</template>
65
+
66
+ Got stuck? Ask your question on
67
+ <a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official
68
+ Discord server, or
69
+ <a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
70
+ >StackOverflow</a
71
+ >. You should also subscribe to
72
+ <a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a> and follow
73
+ the official
74
+ <a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
75
+ twitter account for latest news in the Vue world.
76
+ </WelcomeItem>
77
+
78
+ <WelcomeItem>
79
+ <template #icon>
80
+ <SupportIcon />
81
+ </template>
82
+ <template #heading>Support Vue</template>
83
+
84
+ As an independent project, Vue relies on community backing for its sustainability. You can help
85
+ us by
86
+ <a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
87
+ </WelcomeItem>
88
+ </template>
@@ -0,0 +1,87 @@
1
+ <template>
2
+ <div class="item">
3
+ <i>
4
+ <slot name="icon"></slot>
5
+ </i>
6
+ <div class="details">
7
+ <h3>
8
+ <slot name="heading"></slot>
9
+ </h3>
10
+ <slot></slot>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <style scoped>
16
+ .item {
17
+ margin-top: 2rem;
18
+ display: flex;
19
+ position: relative;
20
+ }
21
+
22
+ .details {
23
+ flex: 1;
24
+ margin-left: 1rem;
25
+ }
26
+
27
+ i {
28
+ display: flex;
29
+ place-items: center;
30
+ place-content: center;
31
+ width: 32px;
32
+ height: 32px;
33
+
34
+ color: var(--color-text);
35
+ }
36
+
37
+ h3 {
38
+ font-size: 1.2rem;
39
+ font-weight: 500;
40
+ margin-bottom: 0.4rem;
41
+ color: var(--color-heading);
42
+ }
43
+
44
+ @media (min-width: 1024px) {
45
+ .item {
46
+ margin-top: 0;
47
+ padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
48
+ }
49
+
50
+ i {
51
+ top: calc(50% - 25px);
52
+ left: -26px;
53
+ position: absolute;
54
+ border: 1px solid var(--color-border);
55
+ background: var(--color-background);
56
+ border-radius: 8px;
57
+ width: 50px;
58
+ height: 50px;
59
+ }
60
+
61
+ .item:before {
62
+ content: ' ';
63
+ border-left: 1px solid var(--color-border);
64
+ position: absolute;
65
+ left: 0;
66
+ bottom: calc(50% + 25px);
67
+ height: calc(50% - 25px);
68
+ }
69
+
70
+ .item:after {
71
+ content: ' ';
72
+ border-left: 1px solid var(--color-border);
73
+ position: absolute;
74
+ left: 0;
75
+ top: calc(50% + 25px);
76
+ height: calc(50% - 25px);
77
+ }
78
+
79
+ .item:first-of-type:before {
80
+ display: none;
81
+ }
82
+
83
+ .item:last-of-type:after {
84
+ display: none;
85
+ }
86
+ }
87
+ </style>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
3
+ <path
4
+ d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
5
+ />
6
+ </svg>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
3
+ <path
4
+ d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
5
+ />
6
+ </svg>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
3
+ <path
4
+ d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
5
+ />
6
+ </svg>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
3
+ <path
4
+ d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
5
+ />
6
+ </svg>
7
+ </template>
@@ -0,0 +1,19 @@
1
+ <!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
2
+ <template>
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ xmlns:xlink="http://www.w3.org/1999/xlink"
6
+ aria-hidden="true"
7
+ role="img"
8
+ class="iconify iconify--mdi"
9
+ width="24"
10
+ height="24"
11
+ preserveAspectRatio="xMidYMid meet"
12
+ viewBox="0 0 24 24"
13
+ >
14
+ <path
15
+ d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
16
+ fill="currentColor"
17
+ ></path>
18
+ </svg>
19
+ </template>
@@ -0,0 +1,2 @@
1
+ @import 'vars/all';
2
+ @import 'mixins/all';
@@ -0,0 +1,6 @@
1
+ @import 'src/grid.scss';
2
+ @import 'src/fp.scss';
3
+ @import 'src/mq.scss';
4
+ @import 'src/rtl.scss';
5
+ @import 'src/units.scss';
6
+ @import 'src/focus.scss';
@@ -0,0 +1,38 @@
1
+ $border-radius: 3px;
2
+ @mixin focus-outline($mode: 'light') {
3
+ @if $mode == 'dark' {
4
+ outline: solid 3px $outline-dark !important;
5
+ } @else {
6
+ outline: solid 3px $outline !important;
7
+ }
8
+ outline-offset: 2px;
9
+ border-radius: $border-radius;
10
+ box-shadow: none !important;
11
+ }
12
+
13
+ @mixin focus-group() {
14
+ a,
15
+ button,
16
+ input,
17
+ textarea,
18
+ select,
19
+ [tabindex],
20
+ tr,
21
+ th {
22
+ &:focus {
23
+ @include focus-outline();
24
+ }
25
+ }
26
+ a.dark,
27
+ button.dark {
28
+ &:focus {
29
+ @include focus-outline('dark');
30
+ }
31
+ }
32
+ a.wcl-cta.dark,
33
+ a.cta-button.dark {
34
+ &:focus {
35
+ @include focus-outline();
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,31 @@
1
+ // Usage
2
+ //
3
+ // h1 {
4
+ // @include fp(font-size, 50, 100); //50px at 320, 100px at 1920;
5
+ // }
6
+
7
+ @mixin fp(
8
+ $property,
9
+ $min,
10
+ $max,
11
+ $start: 320,
12
+ $end: 1680,
13
+ $clip: true,
14
+ $clipAtStart: true,
15
+ $clipAtEnd: true
16
+ ) {
17
+ $multiplier: calc(($max - $min) / ($end - $start) * 100);
18
+ $adder: calc(($min * $end - $max * $start) / ($end - $start));
19
+ $formula: calc(#{$multiplier + 0vw} + #{$adder + 0px});
20
+ @if $clip and $clipAtStart {
21
+ @media (max-width: #{$start + 0px}) {
22
+ #{$property}: $min + 0px;
23
+ }
24
+ }
25
+ @if $clip and $clipAtEnd {
26
+ @media (min-width: #{$end + 0px}) {
27
+ #{$property}: $max + 0px;
28
+ }
29
+ }
30
+ #{$property}: $formula;
31
+ }
@@ -0,0 +1,125 @@
1
+ /* stylelint-disable */
2
+ $grid-columns: 12;
3
+ $grid-gutter-width: 30px;
4
+
5
+ $grid-breakpoints: (
6
+ xs: 0,
7
+ sm: 576px,
8
+ md: 768px,
9
+ lg: 992px,
10
+ xl: 1200px
11
+ );
12
+
13
+ $container-max-widths: (
14
+ sm: 540px,
15
+ md: 720px,
16
+ lg: 960px,
17
+ xl: 1140px
18
+ );
19
+
20
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
21
+ //
22
+ // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
23
+ // 576px
24
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
25
+ $min: map-get($breakpoints, $name);
26
+ @return if($min != 0, $min, null);
27
+ }
28
+
29
+ @mixin make-container($gutter: $grid-gutter-width) {
30
+ width: 100%;
31
+ padding-right: calc(#{$gutter} / 2);
32
+ padding-left: calc(#{$gutter} / 2);
33
+ margin-right: auto;
34
+ margin-left: auto;
35
+ color: $black;
36
+ }
37
+
38
+ @mixin make-row($gutter: $grid-gutter-width) {
39
+ display: flex;
40
+ flex-wrap: wrap;
41
+ margin-right: calc(-#{$gutter} / 2);
42
+ margin-left: calc(-#{$gutter} / 2);
43
+ }
44
+
45
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
46
+ $min: breakpoint-min($name, $breakpoints);
47
+ @if $min {
48
+ @media (min-width: $min) {
49
+ @content;
50
+ }
51
+ } @else {
52
+ @content;
53
+ }
54
+ }
55
+
56
+ @mixin make-max-widths-container-width(
57
+ $max-widths: $container-max-widths,
58
+ $breakpoints: $grid-breakpoints
59
+ ) {
60
+ @each $breakpoint, $container-max-width in $max-widths {
61
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
62
+ max-width: $container-max-width;
63
+ }
64
+ }
65
+ }
66
+
67
+ @mixin make-col-ready($gutter: $grid-gutter-width) {
68
+ position: relative;
69
+ // Prevent columns from becoming too narrow when at smaller grid tiers by
70
+ // always setting `width: 100%;`. This works because we use `flex` values
71
+ // later on to override this initial width.
72
+ width: 100%;
73
+ padding-right: calc(#{$gutter} / 2);
74
+ padding-left: calc(#{$gutter} / 2);
75
+
76
+ }
77
+
78
+ @mixin make-col($size, $columns: $grid-columns) {
79
+ flex: 0 0 percentage($size / $columns);
80
+ // Add a `max-width` to ensure content within each column does not blow out
81
+ // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
82
+ // do not appear to require this.
83
+ max-width: percentage($size / $columns);
84
+ }
85
+
86
+ @mixin make-col-auto() {
87
+ flex: 0 0 auto;
88
+ width: auto;
89
+ max-width: 100%; // Reset earlier grid tiers
90
+ }
91
+
92
+ @mixin make-col-offset($size, $columns: $grid-columns) {
93
+ $num: calc(#{$size} / #{$columns});
94
+ margin-left: if($num == 0, 0, percentage($num));
95
+ }
96
+
97
+ // Row columns
98
+ //
99
+ // Specify on a parent element(e.g., .row) to force immediate children into NN
100
+ // numberof columns. Supports wrapping to new lines, but does not do a Masonry
101
+ // style grid.
102
+ @mixin row-cols($count) {
103
+ > * {
104
+ flex: 0 0 calc(100% / #{$count});
105
+ max-width: calc(100% / #{$count});
106
+ }
107
+ }
108
+
109
+ //
110
+ // Usage
111
+ //
112
+ //
113
+ // .test {
114
+ // width: 800px;
115
+ // @include make-container();
116
+ // @include make-max-widths-container-width(
117
+ // $container-max-widths,
118
+ // $grid-breakpoints
119
+ // );
120
+ // }
121
+
122
+ // .test-row {
123
+ // @include make-row();
124
+ // }
125
+ /* stylelint-enable */
@@ -0,0 +1,30 @@
1
+ //
2
+ // $mq-breakpoints defined in vars folder
3
+ //
4
+
5
+ @mixin mq($breakpoint) {
6
+ // If the key exists in the map
7
+ @if map-has-key($mq-breakpoints, $breakpoint) {
8
+ // Prints a media query based on the value
9
+ @media #{inspect(map-get($mq-breakpoints, $breakpoint))} {
10
+ @content;
11
+ }
12
+ }
13
+
14
+ // If the key doesn't exist in the map
15
+ @else {
16
+ @warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. "
17
+ + "Available breakpoints are: #{map-keys($mq-breakpoints)}.";
18
+ }
19
+ }
20
+
21
+ ///
22
+ // Usage -> Check breakpoints here src/includes/scss/vars/src/breakpoints.scss
23
+ //
24
+ // .selector {
25
+ // color: red;
26
+
27
+ // @include mq('small') {
28
+ // color: blue;
29
+ // }
30
+ // }
@@ -0,0 +1,8 @@
1
+ @mixin makeRTL {
2
+ direction: rtl;
3
+ text-align: right;
4
+ }
5
+ @mixin makeRTLFlip {
6
+ -webkit-transform: scaleX(-1);
7
+ transform: scaleX(-1);
8
+ }
@@ -0,0 +1,110 @@
1
+ $current-rootsize: 16px;
2
+
3
+ // Returns a unitless number
4
+ @function no-unit($n) {
5
+ @return calc(#{$n} / (#{$n} * 0 + 1));
6
+ }
7
+
8
+ // Converts an em value to px. Should only work in absolute em document context (root level)
9
+ @function em-to-px($value, $context: $current-rootsize) {
10
+ $result: ();
11
+
12
+ @each $val in $value {
13
+ @if unit($val) == "em" {
14
+ $val : no-unit($val) * no-unit($current-rootsize);
15
+ $val : $val * 1px;
16
+ $result: append($result, $val);
17
+ }
18
+ }
19
+ @return $result;
20
+ }
21
+
22
+ // Converts an rem value to px. Should only work in absolute em document context (root level)
23
+ @function rem-to-px($value, $context: $current-rootsize) {
24
+ $result: ();
25
+
26
+ @each $val in $value {
27
+ @if unit($val) == "rem" {
28
+ $val : no-unit($val) * no-unit($current-rootsize);
29
+ $val : $value * 1px;
30
+ $result: append($result, $val);
31
+ }
32
+ }
33
+ @return $result;
34
+ }
35
+
36
+
37
+ // Converts a px value to ems. Should only work in absolute em document context (root level), unless $context is specified
38
+ @function px-to-em($value, $context: $current-rootsize) {
39
+ @if unit($context) == "em" {
40
+ $context: em-to-px($context);
41
+ }
42
+ $result: ();
43
+
44
+ @each $val in $value {
45
+ @if unit($val) == "px" {
46
+ $val : calc(no-unit($val) / no-unit($context));
47
+ $val : calc($val * 1em);
48
+ $result: append($result, $val);
49
+ }
50
+ }
51
+ @return $result;
52
+ }
53
+
54
+
55
+ // Converts a px value to rems. Should only work in absolute em document context (root level), unless $context is specified
56
+ @function px-to-rem($value, $context: $current-rootsize) {
57
+ @if unit($context) == "rem" {
58
+ $context: rem-to-px($context);
59
+ }
60
+ $result: ();
61
+
62
+ @each $val in $value {
63
+ @if unit($val) == "px" {
64
+ $val : calc(no-unit($val) / no-unit($context));
65
+ $val : calc($val * 1rem);
66
+ $result: append($result, $val);
67
+ }
68
+ }
69
+ @return $result;
70
+ }
71
+
72
+ // Converts a em value to rems. Should only work in absolute em document context (root level), unless $context is specified
73
+ @function em-to-rem($value) {
74
+ $result: ();
75
+
76
+ @each $val in $value {
77
+ @if unit($val) == "em" {
78
+ $val : no-unit($val) * 1rem;
79
+ $result: append($result, $val);
80
+ }
81
+ }
82
+ @return $result;
83
+ }
84
+
85
+ // type conversion to number
86
+ @function number($string) {
87
+ // Matrices
88
+ $strings: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
89
+ $numbers: 0 1 2 3 4 5 6 7 8 9;
90
+
91
+ // Result
92
+ $result: 0;
93
+
94
+ // Looping through all characters
95
+
96
+ @for $i from 1 through str-length($string) {
97
+ $character: str-slice($string, $i, $i);
98
+ $index: index($strings, $character);
99
+
100
+ @if not $index {
101
+ @warn "Unknown character `#{$character}`.";
102
+ @return false;
103
+ }
104
+
105
+ $number: nth($numbers, $index);
106
+ $result: $result * 10 + $number;
107
+ }
108
+
109
+ @return $result;
110
+ }
@@ -0,0 +1,2 @@
1
+ @import 'src/breakpoints.scss';
2
+ @import 'src/colors.scss';
@@ -0,0 +1,20 @@
1
+ $mq-breakpoints: (
2
+ 'xxs': (
3
+ max-width: 321.98px
4
+ ),
5
+ 'xs': (
6
+ max-width: 575.98px
7
+ ),
8
+ 'sm': (
9
+ max-width: 767.98px
10
+ ),
11
+ 'mm': (
12
+ max-width: 980.98px
13
+ ),
14
+ 'md': (
15
+ max-width: 991.98px
16
+ ),
17
+ 'lg': (
18
+ max-width: 1199.98px
19
+ )
20
+ ) !default;
@@ -0,0 +1,53 @@
1
+ $gold: #f4ce69;
2
+ $orange: #fdcd59;
3
+ $orange100: #fdb813;
4
+ $orange20: #fff0cf;
5
+ $white: #ffffff;
6
+ $lightgray: #f3f3f3;
7
+ $darkgray: #4c4c4c;
8
+ $gray: #bababa;
9
+ $gray-alt: #e7e7e7;
10
+ $black: #191919;
11
+ $red: #e60000;
12
+ $pink: #b74f6f;
13
+ $lightred: #f8d8d4;
14
+ $blue: #02819e;
15
+ $lightblue: #cce6ec;
16
+ $green: #4e7840;
17
+ $form-green: #33a532;
18
+ $lightgreen: #d9e4d9;
19
+ $yellow: #ffd229;
20
+ $lightyellow: #fff6d4;
21
+ $outline: #da47ff;
22
+ $outline-dark: #ffffff;
23
+
24
+ $theme-colors: (
25
+ 'gold': $gold,
26
+ 'orange': $orange,
27
+ 'orange100': $orange100,
28
+ 'orange20': $orange20,
29
+ 'white': $white,
30
+ 'lightgray': $lightgray,
31
+ 'darkgray': $darkgray,
32
+ 'gray': $gray,
33
+ 'gray-alt': $gray-alt,
34
+ 'black': $black,
35
+ 'red': $red,
36
+ 'pink': $pink,
37
+ 'lightred': $lightred,
38
+ 'blue': $blue,
39
+ 'lightblue': $lightblue,
40
+ 'green': $green,
41
+ 'form-green': $form-green,
42
+ 'lightgreen': $lightgreen,
43
+ 'yellow': $yellow,
44
+ 'lightyellow': $lightyellow,
45
+ 'outline': $outline,
46
+ 'outline-dark': $outline-dark
47
+ );
48
+
49
+ :export {
50
+ @each $key, $value in $theme-colors {
51
+ #{unquote($key)}: $value;
52
+ }
53
+ }