qc-trousse-sdg 1.4.0-develop.0 → 1.4.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 (292) hide show
  1. package/README.md +22 -5
  2. package/dist/css/qc-sdg-design-tokens.min.css +1 -1
  3. package/dist/css/qc-sdg-no-grid.min.css +1 -1
  4. package/dist/css/qc-sdg.min.css +1 -1
  5. package/dist/fonts/open-sans-v43-latin-500.woff2 +0 -0
  6. package/dist/fonts/open-sans-v43-latin-500italic.woff2 +0 -0
  7. package/dist/fonts/open-sans-v43-latin-600.woff2 +0 -0
  8. package/dist/fonts/open-sans-v43-latin-600italic.woff2 +0 -0
  9. package/dist/fonts/open-sans-v43-latin-700.woff2 +0 -0
  10. package/dist/fonts/open-sans-v43-latin-700italic.woff2 +0 -0
  11. package/dist/fonts/open-sans-v43-latin-italic.woff2 +0 -0
  12. package/dist/fonts/open-sans-v43-latin-regular.woff2 +0 -0
  13. package/dist/fonts/roboto-mono-v30-latin-500.woff2 +0 -0
  14. package/dist/fonts/roboto-mono-v30-latin-500italic.woff2 +0 -0
  15. package/dist/fonts/roboto-mono-v30-latin-600.woff2 +0 -0
  16. package/dist/fonts/roboto-mono-v30-latin-600italic.woff2 +0 -0
  17. package/dist/fonts/roboto-mono-v30-latin-700.woff2 +0 -0
  18. package/dist/fonts/roboto-mono-v30-latin-700italic.woff2 +0 -0
  19. package/dist/fonts/roboto-mono-v30-latin-italic.woff2 +0 -0
  20. package/dist/fonts/roboto-mono-v30-latin-regular.woff2 +0 -0
  21. package/dist/fonts/roboto-v48-latin-500.woff2 +0 -0
  22. package/dist/fonts/roboto-v48-latin-500italic.woff2 +0 -0
  23. package/dist/fonts/roboto-v48-latin-600.woff2 +0 -0
  24. package/dist/fonts/roboto-v48-latin-600italic.woff2 +0 -0
  25. package/dist/fonts/roboto-v48-latin-700.woff2 +0 -0
  26. package/dist/fonts/roboto-v48-latin-700italic.woff2 +0 -0
  27. package/dist/fonts/roboto-v48-latin-italic.woff2 +0 -0
  28. package/dist/fonts/roboto-v48-latin-regular.woff2 +0 -0
  29. package/dist/img/icon/adresse.svg +4 -0
  30. package/dist/img/icon/arrow-up.svg +3 -0
  31. package/dist/img/icon/calendar.svg +1 -0
  32. package/dist/img/icon/checkmark.svg +3 -0
  33. package/dist/img/icon/chevron-up-thin.svg +5 -0
  34. package/dist/img/{chevron-white.svg → icon/chevron-up.svg} +1 -1
  35. package/{public/img → dist/img/icon}/clipboard.svg +3 -3
  36. package/dist/img/icon/clock.svg +1 -0
  37. package/dist/img/icon/email.svg +1 -0
  38. package/dist/img/icon/error.svg +1 -0
  39. package/{public/img/exclamation-white.svg → dist/img/icon/exclamation.svg} +2 -2
  40. package/{public/img → dist/img/icon}/external-link.svg +2 -2
  41. package/dist/img/icon/information.svg +1 -0
  42. package/dist/img/icon/ligth-bulb.svg +1 -0
  43. package/{public/img → dist/img/icon}/minus.svg +1 -1
  44. package/dist/img/icon/note.svg +1 -0
  45. package/dist/img/icon/phone.svg +1 -0
  46. package/dist/img/{plus.svg → icon/plus.svg} +1 -1
  47. package/{public/img → dist/img/icon}/question-mark.svg +2 -2
  48. package/dist/img/icon/search-thin.svg +10 -0
  49. package/dist/img/icon/search.svg +1 -0
  50. package/dist/img/icon/success.svg +1 -0
  51. package/dist/img/icon/user.svg +6 -0
  52. package/dist/img/icon/warning.svg +1 -0
  53. package/dist/img/icon/website.svg +1 -0
  54. package/dist/img/icon/xclose.svg +1 -0
  55. package/dist/js/qc-sdg.min.js +1 -1
  56. package/package.json +11 -3
  57. package/playwright.config.ts +79 -0
  58. package/plugins/buildDevDoc.js +36 -0
  59. package/plugins/buildHtmlDoc.js +43 -0
  60. package/plugins/buildTestFixtures.js +37 -0
  61. package/public/css/qc-doc-sdg.css +4 -67
  62. package/public/css/qc-sdg-design-tokens.css +17 -0
  63. package/public/css/qc-sdg-no-grid.css +2001 -1108
  64. package/public/css/qc-sdg.css +1999 -1106
  65. package/public/img/checkmark.svg +3 -0
  66. package/public/img/question.svg +10 -0
  67. package/public/index.html +3104 -1387
  68. package/public/js/qc-doc-sdg.js +5705 -285
  69. package/public/js/qc-sdg.js +5660 -1415
  70. package/rollup.config.js +67 -41
  71. package/scripts/buildImagesMap.js +85 -0
  72. package/scripts/check-release-note.sh +11 -0
  73. package/scripts/compile-doc.sh +4 -0
  74. package/src/doc/_index.html +100 -0
  75. package/src/doc/_nav.html +53 -0
  76. package/src/doc/_test.html +32 -0
  77. package/src/doc/components/Code.svelte +6 -2
  78. package/src/doc/components/TopNav.svelte +8 -9
  79. package/src/doc/components/color-doc.svelte +1 -1
  80. package/src/doc/ejs/layout/index.ejs +129 -0
  81. package/src/doc/qc-doc-sdg.js +1 -2
  82. package/src/doc/scss/components/_code.scss +1 -1
  83. package/src/doc/scss/jQueryUI/_jquery-ui.autocomplete.scss +1 -0
  84. package/src/doc/scss/qc-doc-sdg.scss +1 -1
  85. package/src/doc/scss/settings/_base.scss +4 -0
  86. package/src/sdg/_components.js +9 -2
  87. package/src/sdg/{components → bases}/Icon/Icon.svelte +13 -6
  88. package/src/sdg/bases/Icon/IconDoc.ejs +129 -0
  89. package/src/sdg/{components → bases}/Icon/IconWC.svelte +3 -1
  90. package/src/sdg/bases/Icon/Test/IconEmbeddedTest.html +1 -0
  91. package/src/sdg/bases/Icon/Test/IconEmbeddedTest.svelte +168 -0
  92. package/src/sdg/bases/Icon/Test/iconTest.html +156 -0
  93. package/src/sdg/bases/Icon/_icon.html +254 -0
  94. package/src/sdg/bases/Icon/_icons.scss +47 -0
  95. package/src/sdg/{scss/base → bases/accessibility}/_accessibility.scss +1 -1
  96. package/src/sdg/bases/colors/_colors.html +112 -0
  97. package/src/sdg/bases/figures/_figure.html +16 -0
  98. package/src/sdg/{scss/base → bases/form}/_form.scss +10 -3
  99. package/src/sdg/bases/grid/_grid.html +118 -0
  100. package/src/sdg/bases/headings/_headings.html +18 -0
  101. package/src/sdg/bases/headings/_headings.scss +25 -0
  102. package/src/sdg/{scss/base → bases/layout}/_layout.scss +1 -4
  103. package/src/sdg/bases/links/_links.html +104 -0
  104. package/src/sdg/bases/links/_links.scss +51 -0
  105. package/src/sdg/bases/lists/_lists.html +27 -0
  106. package/src/sdg/bases/separator/_separator.html +7 -0
  107. package/src/sdg/bases/separator/_separator.scss +5 -0
  108. package/src/sdg/bases/shadings/_shadings.html +14 -0
  109. package/src/sdg/{scss/base → bases/shadings}/_shadings.scss +1 -1
  110. package/src/sdg/bases/typography/_font.html +45 -0
  111. package/src/sdg/bases/typography/_fonts.scss +162 -0
  112. package/src/sdg/bases/typography/_paragraph.html +17 -0
  113. package/src/sdg/bases/typography/_paragraph.scss +33 -0
  114. package/src/sdg/components/Alert/Alert.svelte +2 -5
  115. package/src/sdg/components/Alert/AlertWC.svelte +3 -2
  116. package/src/sdg/components/Alert/_alert.html +110 -0
  117. package/src/sdg/{scss/components → components/Alert}/_alert.scss +1 -1
  118. package/src/sdg/components/Button/Button.svelte +50 -0
  119. package/src/sdg/components/Button/ButtonWC.svelte +36 -0
  120. package/src/sdg/components/Button/Test/buttonTest.html +349 -0
  121. package/src/sdg/components/Button/_button.html +186 -0
  122. package/src/sdg/components/Button/_button.scss +202 -0
  123. package/src/sdg/components/CharCount/_charCount.html +7 -0
  124. package/src/sdg/components/Checkbox/Checkbox.svelte +77 -0
  125. package/src/sdg/components/Checkbox/CheckboxWC.svelte +49 -0
  126. package/src/sdg/components/Checkbox/_checkbox.html +86 -0
  127. package/src/sdg/components/Checkbox/_checkbox.scss +70 -0
  128. package/src/sdg/components/Checkbox/updateInput.svelte.js +23 -0
  129. package/src/sdg/components/ChoiceGroup/ChoiceGroup.svelte +56 -0
  130. package/src/sdg/components/ChoiceGroup/ChoiceGroupWC.svelte +47 -0
  131. package/src/sdg/components/ChoiceGroup/Test/ChoiceGroupeEmbededTest.svelte +261 -0
  132. package/src/sdg/components/ChoiceGroup/Test/checkboxEmbeddedTest.html +1 -0
  133. package/src/sdg/components/ChoiceGroup/Test/checkboxTest.html +253 -0
  134. package/src/sdg/components/ChoiceGroup/Test/radiosEmbeddedTest.html +1 -0
  135. package/src/sdg/components/ChoiceGroup/Test/radiosTest.html +185 -0
  136. package/src/sdg/components/ChoiceGroup/ToggleSwitchGroupWC.svelte +56 -0
  137. package/src/sdg/components/ChoiceGroup/_choiceGroup.html +285 -0
  138. package/src/sdg/components/ChoiceGroup/_choiceGroup.scss +32 -0
  139. package/src/sdg/components/ChoiceGroup/_selectionButton.scss +53 -0
  140. package/src/sdg/components/ChoiceGroup/_selectionButtons.html +130 -0
  141. package/src/sdg/components/DropdownList/DropdownList.svelte +394 -0
  142. package/src/sdg/components/DropdownList/DropdownListButton/DropdownListButton.svelte +43 -0
  143. package/src/sdg/components/DropdownList/DropdownListButton/_dropdownListButton.scss +65 -0
  144. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItems.svelte +110 -0
  145. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/DropdownListItemsMultiple.svelte +185 -0
  146. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/_dropdownListItemsMultiple.scss +19 -0
  147. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/DropdownListItemsSingle.svelte +136 -0
  148. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/_dropdownListItemsSingle.scss +11 -0
  149. package/src/sdg/components/DropdownList/DropdownListItems/_dropdownListItems.scss +67 -0
  150. package/src/sdg/components/DropdownList/SelectWC.svelte +158 -0
  151. package/src/sdg/components/DropdownList/Test/DropdownListEmbeddedTest.svelte +89 -0
  152. package/src/sdg/components/DropdownList/Test/dropdownListEmbeddedTest.html +1 -0
  153. package/src/sdg/components/DropdownList/Test/dropdownListTest.html +194 -0
  154. package/src/sdg/components/DropdownList/Test/dropdownListTestUtils.js +113 -0
  155. package/src/sdg/components/DropdownList/_dropdownList.scss +73 -0
  156. package/src/sdg/components/DropdownList/_select.html +212 -0
  157. package/src/sdg/components/ExternalLink/ExternalLink.svelte +1 -1
  158. package/src/sdg/components/Fieldset/Fieldset.svelte +73 -0
  159. package/src/sdg/components/Fieldset/_fieldset.scss +95 -0
  160. package/src/sdg/components/FormError/FormError.svelte +51 -0
  161. package/src/sdg/components/FormError/_formError.scss +21 -0
  162. package/src/sdg/components/FormfieldRow/_formfieldRow.html +108 -0
  163. package/src/sdg/components/IconButton/IconButton.svelte +1 -1
  164. package/src/sdg/components/IconButton/_iconButton.scss +14 -0
  165. package/src/sdg/components/Label/Label.svelte +28 -0
  166. package/src/sdg/components/Label/LabelText.svelte +4 -0
  167. package/src/sdg/components/Label/_label.scss +19 -0
  168. package/src/sdg/components/Notice/Notice.svelte +1 -2
  169. package/src/sdg/components/Notice/NoticeWC.svelte +3 -0
  170. package/src/sdg/components/Notice/_notice.html +141 -0
  171. package/src/sdg/{scss/components → components/Notice}/_notice.scss +1 -1
  172. package/src/sdg/components/PivFooter/PivFooter.svelte +8 -9
  173. package/src/sdg/components/PivFooter/PivFooterWC.svelte +6 -14
  174. package/src/sdg/components/PivFooter/_pivFooter.html +153 -0
  175. package/src/sdg/{scss/components → components/PivFooter}/_pivFooter.scss +1 -1
  176. package/src/sdg/components/PivHeader/PivHeader.svelte +47 -53
  177. package/src/sdg/components/PivHeader/PivHeaderWC.svelte +9 -20
  178. package/src/sdg/components/PivHeader/Test/pivHeaderEmbeddedTest.html +1 -0
  179. package/src/sdg/components/PivHeader/Test/pivHeaderEmbeddedTest.svelte +28 -0
  180. package/src/sdg/components/PivHeader/Test/pivHeaderTest.html +43 -0
  181. package/src/sdg/components/PivHeader/_pivHeader.html +221 -0
  182. package/src/sdg/{scss/components → components/PivHeader}/_pivHeader.scss +55 -77
  183. package/src/sdg/components/RadioButton/_radioButton.html +24 -0
  184. package/src/sdg/components/RadioButton/_radioButton.scss +29 -0
  185. package/src/sdg/components/SearchBar/SearchBar.svelte +12 -32
  186. package/src/sdg/components/SearchBar/_searchBar.html +125 -0
  187. package/src/sdg/{scss/components → components/SearchBar}/_searchBar.scss +3 -3
  188. package/src/sdg/components/SearchInput/SearchInput.svelte +26 -4
  189. package/src/sdg/components/SearchInput/SearchInputWC.svelte +3 -1
  190. package/src/sdg/components/SearchInput/_searchInput.html +85 -0
  191. package/src/sdg/{scss/components → components/SearchInput}/_searchInput.scss +27 -2
  192. package/src/sdg/components/TextField/Doc/TextFieldDemo.svelte +143 -0
  193. package/src/sdg/components/TextField/Test/TextFieldEmbededTest.svelte +129 -0
  194. package/src/sdg/components/TextField/Test/textFieldEmbeddedTest.html +1 -0
  195. package/src/sdg/components/TextField/Test/textFieldTest.html +121 -0
  196. package/src/sdg/components/TextField/TextField.svelte +171 -0
  197. package/src/sdg/components/TextField/TextFieldWC.svelte +90 -0
  198. package/src/sdg/components/TextField/_textField.html +218 -0
  199. package/src/sdg/components/TextField/_textField.scss +110 -0
  200. package/src/sdg/components/TextField/textFieldUtils.js +19 -0
  201. package/src/sdg/components/ToTop/ToTop.svelte +2 -4
  202. package/src/sdg/components/ToTop/_toTop.html +45 -0
  203. package/src/sdg/{scss/components → components/ToTop}/_toTop.scss +2 -2
  204. package/src/sdg/components/ToggleSwitch/Test/ToggleSwitchEmbeddedTest.svelte +46 -0
  205. package/src/sdg/components/ToggleSwitch/Test/toggleSwitchEmbeddedTest.html +1 -0
  206. package/src/sdg/components/ToggleSwitch/Test/toggleSwitchTest.html +34 -0
  207. package/src/sdg/components/ToggleSwitch/ToggleSwitch.svelte +34 -0
  208. package/src/sdg/components/ToggleSwitch/ToggleSwitchWC.svelte +66 -0
  209. package/src/sdg/components/ToggleSwitch/_toggleSwitch.html +160 -0
  210. package/src/sdg/components/ToggleSwitch/_toggleSwitch.scss +97 -0
  211. package/src/sdg/components/utils.js +81 -1
  212. package/src/sdg/qc-sdg-test.js +6 -0
  213. package/src/sdg/scss/lib/_functions.scss +10 -2
  214. package/src/sdg/scss/lib/_mixins.scss +63 -26
  215. package/src/sdg/scss/qc-sdg.scss +1 -1
  216. package/src/sdg/scss/qc-sgd-no-grid.scss +30 -18
  217. package/src/sdg/scss/settings/_base.scss +5 -33
  218. package/src/sdg/scss/settings/_images.scss +30 -0
  219. package/src/sdg/scss/settings/_tokens.scss +23 -0
  220. package/src/sdg/scss/utilities/_display.scss +1 -1
  221. package/src/sdg/scss/utilities/_states.scss +13 -0
  222. package/tests/button.spec.ts +11 -0
  223. package/tests/choice-group.spec.ts +36 -0
  224. package/tests/dropdown-list.spec.ts +529 -0
  225. package/tests/icon.spec.ts +19 -0
  226. package/tests/pivHeader.spec.ts +22 -0
  227. package/tests/textfield.spec.ts +21 -0
  228. package/tests/toggle-switch.spec.ts +20 -0
  229. package/dist/img/arrow-up-white.svg +0 -3
  230. package/dist/img/chevron-blue.svg +0 -3
  231. package/dist/img/clipboard.svg +0 -8
  232. package/dist/img/error-white.svg +0 -1
  233. package/dist/img/error.svg +0 -1
  234. package/dist/img/exclamation-white.svg +0 -37
  235. package/dist/img/external-link-white.svg +0 -18
  236. package/dist/img/external-link.svg +0 -10
  237. package/dist/img/facebook.svg +0 -6
  238. package/dist/img/information-white.svg +0 -1
  239. package/dist/img/information.svg +0 -1
  240. package/dist/img/linkedin.svg +0 -5
  241. package/dist/img/loupe-piv-fonce.svg +0 -1
  242. package/dist/img/minus.svg +0 -6
  243. package/dist/img/qc-sprite.svg +0 -1
  244. package/dist/img/question-mark.svg +0 -47
  245. package/dist/img/success-white.svg +0 -1
  246. package/dist/img/success.svg +0 -1
  247. package/dist/img/twitter.svg +0 -8
  248. package/dist/img/warning.svg +0 -1
  249. package/dist/img/xclose-blue.svg +0 -6
  250. package/dist/img/xclose-white.svg +0 -1
  251. package/dist/img/youtube.svg +0 -3
  252. package/public/img/ampoule.svg +0 -1
  253. package/public/img/arrow-up-white.svg +0 -3
  254. package/public/img/chevron-blue.svg +0 -3
  255. package/public/img/chevron-white.svg +0 -3
  256. package/public/img/error-white.svg +0 -1
  257. package/public/img/error.svg +0 -1
  258. package/public/img/external-link-white.svg +0 -18
  259. package/public/img/facebook.svg +0 -6
  260. package/public/img/information-white.svg +0 -1
  261. package/public/img/information.svg +0 -1
  262. package/public/img/linkedin.svg +0 -5
  263. package/public/img/logo-piv-footer-mess.png +0 -0
  264. package/public/img/loupe-piv-droite.svg +0 -1
  265. package/public/img/loupe-piv-fonce.svg +0 -1
  266. package/public/img/note.svg +0 -1
  267. package/public/img/piv-bas-MCE-theme-clair.png +0 -0
  268. package/public/img/piv-bas-MCE-theme-sombre.png +0 -0
  269. package/public/img/piv-logo-pied-de-page.svg +0 -37
  270. package/public/img/plus.svg +0 -6
  271. package/public/img/qc-sprite.svg +0 -1
  272. package/public/img/quebec-logo.svg +0 -13
  273. package/public/img/success-white.svg +0 -1
  274. package/public/img/success.svg +0 -1
  275. package/public/img/twitter.svg +0 -8
  276. package/public/img/warning.svg +0 -1
  277. package/public/img/xclose-blue.svg +0 -6
  278. package/public/img/xclose-white.svg +0 -1
  279. package/public/img/youtube.svg +0 -3
  280. package/src/doc/scss/components/_button.scss +0 -61
  281. package/src/sdg/components/PivFooter/_defaultCopyright.svelte +0 -11
  282. package/src/sdg/components/PivHeader/_defaultLinks.svelte +0 -24
  283. package/src/sdg/scss/base/_fonts.scss +0 -29
  284. package/src/sdg/scss/base/_typography.scss +0 -94
  285. package/src/sdg/scss/components/_icons.scss +0 -169
  286. package/src/sdg/scss/components/_separator.scss +0 -5
  287. /package/dist/img/{loupe-piv-droite.svg → piv-search.svg} +0 -0
  288. /package/src/sdg/{scss/base → bases/colors}/_colors.scss +0 -0
  289. /package/src/sdg/{scss/base → bases/figures}/_figure.scss +0 -0
  290. /package/src/sdg/{scss → bases}/grid/_grid-lib.scss +0 -0
  291. /package/src/sdg/{scss → bases}/grid/_grid.scss +0 -0
  292. /package/src/sdg/{scss/base → bases/lists}/_lists.scss +0 -0
@@ -0,0 +1,156 @@
1
+ <div>
2
+ <qc-icon type="arrow-up" size="xs"></qc-icon>
3
+ <qc-icon type="arrow-up" size="sm"></qc-icon>
4
+ <qc-icon type="arrow-up" size="md"></qc-icon>
5
+ <qc-icon type="arrow-up" size="lg"></qc-icon>
6
+ <qc-icon type="arrow-up" size="xl"></qc-icon>
7
+ </div>
8
+
9
+ <div>
10
+ <qc-icon type="checkmark" size="xs"></qc-icon>
11
+ <qc-icon type="checkmark" size="sm"></qc-icon>
12
+ <qc-icon type="checkmark" size="md"></qc-icon>
13
+ <qc-icon type="checkmark" size="lg"></qc-icon>
14
+ <qc-icon type="checkmark" size="xl"></qc-icon>
15
+ </div>
16
+
17
+ <div>
18
+ <qc-icon type="chevron-up-thin" size="xs"></qc-icon>
19
+ <qc-icon type="chevron-up-thin" size="sm"></qc-icon>
20
+ <qc-icon type="chevron-up-thin" size="md"></qc-icon>
21
+ <qc-icon type="chevron-up-thin" size="lg"></qc-icon>
22
+ <qc-icon type="chevron-up-thin" size="xl"></qc-icon>
23
+ </div>
24
+
25
+ <div>
26
+ <qc-icon type="chevron-up" size="xs"></qc-icon>
27
+ <qc-icon type="chevron-up" size="sm"></qc-icon>
28
+ <qc-icon type="chevron-up" size="md"></qc-icon>
29
+ <qc-icon type="chevron-up" size="lg"></qc-icon>
30
+ <qc-icon type="chevron-up" size="xl"></qc-icon>
31
+ </div>
32
+
33
+ <div>
34
+ <qc-icon type="clipboard" size="xs"></qc-icon>
35
+ <qc-icon type="clipboard" size="sm"></qc-icon>
36
+ <qc-icon type="clipboard" size="md"></qc-icon>
37
+ <qc-icon type="clipboard" size="lg"></qc-icon>
38
+ <qc-icon type="clipboard" size="xl"></qc-icon>
39
+ </div>
40
+
41
+ <div>
42
+ <qc-icon type="error" size="xs"></qc-icon>
43
+ <qc-icon type="error" size="sm"></qc-icon>
44
+ <qc-icon type="error" size="md"></qc-icon>
45
+ <qc-icon type="error" size="lg"></qc-icon>
46
+ <qc-icon type="error" size="xl"></qc-icon>
47
+ </div>
48
+
49
+ <div>
50
+ <qc-icon type="exclamation" size="xs"></qc-icon>
51
+ <qc-icon type="exclamation" size="sm"></qc-icon>
52
+ <qc-icon type="exclamation" size="md"></qc-icon>
53
+ <qc-icon type="exclamation" size="lg"></qc-icon>
54
+ <qc-icon type="exclamation" size="xl"></qc-icon>
55
+ </div>
56
+
57
+ <div>
58
+ <qc-icon type="external-link" size="xs"></qc-icon>
59
+ <qc-icon type="external-link" size="sm"></qc-icon>
60
+ <qc-icon type="external-link" size="md"></qc-icon>
61
+ <qc-icon type="external-link" size="lg"></qc-icon>
62
+ <qc-icon type="external-link" size="xl"></qc-icon>
63
+ </div>
64
+
65
+ <div>
66
+ <qc-icon type="information" size="xs"></qc-icon>
67
+ <qc-icon type="information" size="sm"></qc-icon>
68
+ <qc-icon type="information" size="md"></qc-icon>
69
+ <qc-icon type="information" size="lg"></qc-icon>
70
+ <qc-icon type="information" size="xl"></qc-icon>
71
+ </div>
72
+
73
+ <div>
74
+ <qc-icon type="ligth-bulb" size="xs"></qc-icon>
75
+ <qc-icon type="ligth-bulb" size="sm"></qc-icon>
76
+ <qc-icon type="ligth-bulb" size="md"></qc-icon>
77
+ <qc-icon type="ligth-bulb" size="lg"></qc-icon>
78
+ <qc-icon type="ligth-bulb" size="xl"></qc-icon>
79
+ </div>
80
+
81
+ <div>
82
+ <qc-icon type="minus" size="xs"></qc-icon>
83
+ <qc-icon type="minus" size="sm"></qc-icon>
84
+ <qc-icon type="minus" size="md"></qc-icon>
85
+ <qc-icon type="minus" size="lg"></qc-icon>
86
+ <qc-icon type="minus" size="xl"></qc-icon>
87
+ </div>
88
+
89
+ <div>
90
+ <qc-icon type="note" size="xs"></qc-icon>
91
+ <qc-icon type="note" size="sm"></qc-icon>
92
+ <qc-icon type="note" size="md"></qc-icon>
93
+ <qc-icon type="note" size="lg"></qc-icon>
94
+ <qc-icon type="note" size="xl"></qc-icon>
95
+ </div>
96
+
97
+ <div>
98
+ <qc-icon type="plus" size="xs"></qc-icon>
99
+ <qc-icon type="plus" size="sm"></qc-icon>
100
+ <qc-icon type="plus" size="md"></qc-icon>
101
+ <qc-icon type="plus" size="lg"></qc-icon>
102
+ <qc-icon type="plus" size="xl"></qc-icon>
103
+ </div>
104
+
105
+ <div>
106
+ <qc-icon type="question-mark" size="xs"></qc-icon>
107
+ <qc-icon type="question-mark" size="sm"></qc-icon>
108
+ <qc-icon type="question-mark" size="md"></qc-icon>
109
+ <qc-icon type="question-mark" size="lg"></qc-icon>
110
+ <qc-icon type="question-mark" size="xl"></qc-icon>
111
+ </div>
112
+
113
+ <div>
114
+ <qc-icon type="search-thin" size="xs"></qc-icon>
115
+ <qc-icon type="search-thin" size="sm"></qc-icon>
116
+ <qc-icon type="search-thin" size="md"></qc-icon>
117
+ <qc-icon type="search-thin" size="lg"></qc-icon>
118
+ <qc-icon type="search-thin" size="xl"></qc-icon>
119
+ </div>
120
+
121
+ <div>
122
+ <qc-icon type="search" size="xs"></qc-icon>
123
+ <qc-icon type="search" size="sm"></qc-icon>
124
+ <qc-icon type="search" size="md"></qc-icon>
125
+ <qc-icon type="search" size="lg"></qc-icon>
126
+ <qc-icon type="search" size="xl"></qc-icon>
127
+ </div>
128
+
129
+ <div>
130
+ <qc-icon type="success" size="xs"></qc-icon>
131
+ <qc-icon type="success" size="sm"></qc-icon>
132
+ <qc-icon type="success" size="md"></qc-icon>
133
+ <qc-icon type="success" size="lg"></qc-icon>
134
+ <qc-icon type="success" size="xl"></qc-icon>
135
+ </div>
136
+
137
+ <div>
138
+ <qc-icon type="warning" size="xs"></qc-icon>
139
+ <qc-icon type="warning" size="sm"></qc-icon>
140
+ <qc-icon type="warning" size="md"></qc-icon>
141
+ <qc-icon type="warning" size="lg"></qc-icon>
142
+ <qc-icon type="warning" size="xl"></qc-icon>
143
+ </div>
144
+
145
+ <div>
146
+ <qc-icon type="xclose" size="xs"></qc-icon>
147
+ <qc-icon type="xclose" size="sm"></qc-icon>
148
+ <qc-icon type="xclose" size="md"></qc-icon>
149
+ <qc-icon type="xclose" size="lg"></qc-icon>
150
+ <qc-icon type="xclose" size="xl"></qc-icon>
151
+ </div>
152
+
153
+ <br>
154
+
155
+ <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Le composant <code>qc-icon</code> permet d’afficher une icône avec la bonne couleur quel que soit le thème.</p>
5
+
6
+ <h3>Exemples</h3>
7
+ <qc-doc-exemple caption="Exemples d'utilisation d'icônes avec différentes propriétés."
8
+ id="icons-exemple">
9
+ <div>
10
+ <qc-icon type="success" color="pink-regular" size="xs"></qc-icon>
11
+ <qc-icon type="success" color="blue-piv" size="sm"></qc-icon>
12
+ <qc-icon type="success" color="grey-dark" size="md"></qc-icon>
13
+ <qc-icon type="success" color="blue-regular" size="lg"></qc-icon>
14
+ <qc-icon type="success" color="success" size="xl"></qc-icon>
15
+ </div>
16
+ <div>
17
+ <qc-icon type="arrow-up" size="lg" rotate="-90"></qc-icon>
18
+ <qc-icon type="arrow-up" size="lg" rotate="90"></qc-icon>
19
+ <qc-icon type="arrow-up" size="lg" rotate="180"></qc-icon>
20
+ <qc-icon type="arrow-up" size="lg"></qc-icon>
21
+ </div>
22
+
23
+
24
+ </qc-doc-exemple>
25
+ <style>
26
+ #icons-exemple {
27
+ div:has(> qc-icon) {
28
+ margin-bottom: var(--qc-spacer-content-block-mb);
29
+ }
30
+ qc-icon {
31
+ margin-right: var(--qc-spacer-sm);
32
+ }
33
+ }
34
+ </style>
35
+
36
+ <qc-doc-exemple caption="Exemple d'icône personnalisée en base64.">
37
+ <qc-icon
38
+ src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZ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yLjI5OSw1LjctMzkuMTk5LDExLjMwMS01MC42OTljOS4zOTktMTkuNzAxLDMzLjY5OS00NS43MDEsNzIuNjk5LTc4LjEKCQlDNzIzLjU5LDQ3Ny44LDc3Mi43OSw0MjguNCw3OTUuODkxLDM5MmMyMy0zNi4zLDM0LjYtNzQuOCwzNC42LTExNS41YzAtNzMuNS0zMS4zLTEzOC05NC0xOTMuNGMtNjIuNi01NS40LTE0Ny04My4xLTI1My04My4xCgkJYy0xMDAuOCwwLTE4Mi4xLDI3LjMtMjQ0LjEsODJjLTUyLjgsNDYuNi04NC45LDEwMS44LTk2LjIsMTY1LjVDMTM5LjY5LDI2Ni4xLDE1Mi4zOSwyODMuNSwxNzAuODksMjg1Ljh6IiBmaWxsPSIjZmZmIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg=="
39
+ />
40
+ </qc-doc-exemple>
41
+
42
+ <h3>Documentation technique</h3>
43
+
44
+ <h4>Attributs</h4>
45
+ <div class="table-overflow">
46
+ <table class="qc-table qc-striped component-attributes-description">
47
+ <thead>
48
+ <tr>
49
+ <th>Nom</th>
50
+ <th>Valeur attendue</th>
51
+ <th>Valeur par défaut</th>
52
+ <th>Description</th>
53
+ </tr>
54
+ </thead>
55
+ <tbody>
56
+ <tr>
57
+ <td>type</td>
58
+ <td>Texte</td>
59
+ <td>""</td>
60
+ <td>Nom de l’icône à afficher, à prendre dans la liste ci-dessous.</td>
61
+ </tr>
62
+ <tr>
63
+ <td>label</td>
64
+ <td>Texte</td>
65
+ <td>""</td>
66
+ <td>Texte alternatif pour l’accessibilité. Sert de libellé pour les lecteurs d’écran.</td>
67
+ </tr>
68
+ <tr>
69
+ <td>rotate</td>
70
+ <td>Nombre</td>
71
+ <td>na</td>
72
+ <td>Rotation de l'image en degrés dans le sens horaire.</td>
73
+ </tr>
74
+ <tr>
75
+ <td>size</td>
76
+ <td>xs, sm, md, lg ou xl</td>
77
+ <td>md</td>
78
+ <td>Taille de l’icône.</td>
79
+ </tr>
80
+ <tr>
81
+ <td>color</td>
82
+ <td>Toute valeur correspondant à un jeton de couleur une fois précédée de <code>‑‑qc‑color‑</code>. Par exemple, "text-primary" donne la couleur de <code>--qc-color-text-primary</code></td>
83
+ <td>text-primary</td>
84
+ <td>Couleur de l'icône.</td>
85
+ </tr>
86
+ <tr>
87
+ <td>width</td>
88
+ <td>Toute valeur acceptée par la directive css <code>width</code></td>
89
+ <td>auto</td>
90
+ <td>Largeur personnalisée de l’icône.</td>
91
+ </tr>
92
+ <tr>
93
+ <td>height</td>
94
+ <td>Toute valeur acceptée par la directive css <code>height</code></td>
95
+ <td>auto</td>
96
+ <td>Hauteur personnalisée de l’icône.</td>
97
+ </tr>
98
+ <tr>
99
+ <td>src</td>
100
+ <td>Toute valeur acceptée par la fonction css <code>url()</code></td>
101
+ <td>na</td>
102
+ <td>Chemin pour afficher une icône personnalisée.</td>
103
+ </tr>
104
+ </tbody>
105
+ </table>
106
+ </div>
107
+
108
+ <h4>Liste des icônes</h4>
109
+
110
+ <div class="table-overflow">
111
+ <table class="qc-table qc-striped component-attributes-description">
112
+ <thead>
113
+ <tr>
114
+ <th>Nom</th>
115
+ <th>Aperçu</th>
116
+ </tr>
117
+ </thead>
118
+ <tbody>
119
+
120
+ <tr>
121
+ <td>adresse</td>
122
+ <td><qc-icon type="adresse" size="lg" /></td>
123
+ </tr>
124
+
125
+ <tr>
126
+ <td>arrow-up</td>
127
+ <td><qc-icon type="arrow-up" size="lg" /></td>
128
+ </tr>
129
+
130
+ <tr>
131
+ <td>calendar</td>
132
+ <td><qc-icon type="calendar" size="lg" /></td>
133
+ </tr>
134
+
135
+ <tr>
136
+ <td>checkmark</td>
137
+ <td><qc-icon type="checkmark" size="lg" /></td>
138
+ </tr>
139
+
140
+ <tr>
141
+ <td>chevron-up-thin</td>
142
+ <td><qc-icon type="chevron-up-thin" size="lg" /></td>
143
+ </tr>
144
+
145
+ <tr>
146
+ <td>chevron-up</td>
147
+ <td><qc-icon type="chevron-up" size="lg" /></td>
148
+ </tr>
149
+
150
+ <tr>
151
+ <td>clipboard</td>
152
+ <td><qc-icon type="clipboard" size="lg" /></td>
153
+ </tr>
154
+
155
+ <tr>
156
+ <td>clock</td>
157
+ <td><qc-icon type="clock" size="lg" /></td>
158
+ </tr>
159
+
160
+ <tr>
161
+ <td>email</td>
162
+ <td><qc-icon type="email" size="lg" /></td>
163
+ </tr>
164
+
165
+ <tr>
166
+ <td>error</td>
167
+ <td><qc-icon type="error" size="lg" /></td>
168
+ </tr>
169
+
170
+ <tr>
171
+ <td>exclamation</td>
172
+ <td><qc-icon type="exclamation" size="lg" /></td>
173
+ </tr>
174
+
175
+ <tr>
176
+ <td>external-link</td>
177
+ <td><qc-icon type="external-link" size="lg" /></td>
178
+ </tr>
179
+
180
+ <tr>
181
+ <td>information</td>
182
+ <td><qc-icon type="information" size="lg" /></td>
183
+ </tr>
184
+
185
+ <tr>
186
+ <td>ligth-bulb</td>
187
+ <td><qc-icon type="ligth-bulb" size="lg" /></td>
188
+ </tr>
189
+
190
+ <tr>
191
+ <td>minus</td>
192
+ <td><qc-icon type="minus" size="lg" /></td>
193
+ </tr>
194
+
195
+ <tr>
196
+ <td>note</td>
197
+ <td><qc-icon type="note" size="lg" /></td>
198
+ </tr>
199
+
200
+ <tr>
201
+ <td>phone</td>
202
+ <td><qc-icon type="phone" size="lg" /></td>
203
+ </tr>
204
+
205
+ <tr>
206
+ <td>plus</td>
207
+ <td><qc-icon type="plus" size="lg" /></td>
208
+ </tr>
209
+
210
+ <tr>
211
+ <td>question-mark</td>
212
+ <td><qc-icon type="question-mark" size="lg" /></td>
213
+ </tr>
214
+
215
+ <tr>
216
+ <td>search-thin</td>
217
+ <td><qc-icon type="search-thin" size="lg" /></td>
218
+ </tr>
219
+
220
+ <tr>
221
+ <td>search</td>
222
+ <td><qc-icon type="search" size="lg" /></td>
223
+ </tr>
224
+
225
+ <tr>
226
+ <td>success</td>
227
+ <td><qc-icon type="success" size="lg" /></td>
228
+ </tr>
229
+
230
+ <tr>
231
+ <td>user</td>
232
+ <td><qc-icon type="user" size="lg" /></td>
233
+ </tr>
234
+
235
+ <tr>
236
+ <td>warning</td>
237
+ <td><qc-icon type="warning" size="lg" /></td>
238
+ </tr>
239
+
240
+ <tr>
241
+ <td>website</td>
242
+ <td><qc-icon type="website" size="lg" /></td>
243
+ </tr>
244
+
245
+ <tr>
246
+ <td>xclose</td>
247
+ <td><qc-icon type="xclose" size="lg" /></td>
248
+ </tr>
249
+
250
+ </tbody>
251
+ </table>
252
+ </div>
253
+
254
+
@@ -0,0 +1,47 @@
1
+ @use "../../scss/qc-sdg-lib" as *;
2
+
3
+
4
+ qc-icon {
5
+ display: inline-flex;
6
+ align-items: stretch;
7
+ }
8
+
9
+ // TODO retirer une fois toutes les icônes remplacées par Icon dans les composants
10
+ .qc-icon {
11
+ display: inline-block;
12
+ flex-shrink: 0;
13
+ width: var(--img-width);
14
+ height: var(--img-height);
15
+ mask-size: 100% 100%;
16
+ mask-repeat: no-repeat;
17
+ background-color: var(--img-color);
18
+ transform: rotate(var(--img-rotate));
19
+ // TODO questionner une échelle [0 - 10 ou 100]
20
+ @each $size-type, $size in (xs: 12, sm: 16, md: 20, nm: 24, lg: 28, xl: 32) {
21
+ &[data-img-size=#{$size-type}] {
22
+ height: rem($size);
23
+ width: rem($size);
24
+ }
25
+ }
26
+ @each $name, $url in $images {
27
+ // classes pour les icônes
28
+ @at-root .icon-#{$name} {
29
+ mask-image: getImageUrl($name);
30
+ }
31
+ &[data-img-type=#{$name}] {
32
+ @extend .icon-#{$name};
33
+ }
34
+
35
+
36
+ }
37
+ &.qc-icon-custom {
38
+ mask-image: var(--img-src);
39
+ }
40
+
41
+ &.is-disabled {
42
+ cursor: not-allowed;
43
+ background-color: token-value(color grey regular);
44
+ }
45
+ }
46
+
47
+
@@ -1,4 +1,4 @@
1
- @use "qc-sdg-lib" as *;
1
+ @use "../../scss/qc-sdg-lib" as *;
2
2
  .qc-sr-only {
3
3
  @include sr-only();
4
4
  }
@@ -0,0 +1,112 @@
1
+ <section id="couleurs">
2
+ <h2 >Couleurs</h2>
3
+
4
+ <h3>Couleurs d’arrière-plan</h3>
5
+
6
+ <qc-color-doc token="white"
7
+ title="Blanc"
8
+ border="true"
9
+ ></qc-color-doc>
10
+
11
+
12
+ <h3>Couleur du texte</h3>
13
+
14
+ <qc-color-doc token="text-primary"
15
+ title="Bleu foncé"
16
+ >
17
+ </qc-color-doc>
18
+
19
+ <h3>Couleurs principales</h3>
20
+
21
+ <qc-color-doc token="blue-pale"
22
+ title="Bleu pale"
23
+ ></qc-color-doc>
24
+
25
+ <qc-color-doc token="blue-light"
26
+ title="Bleu clair"
27
+ ></qc-color-doc>
28
+ <qc-color-doc token="blue-regular"
29
+ title="Bleu"
30
+ ></qc-color-doc>
31
+ <qc-color-doc token="blue-piv"
32
+ title="Bleu PIV"
33
+ ></qc-color-doc>
34
+ <qc-color-doc token="blue-medium"
35
+ title="Bleu moyen"
36
+ ></qc-color-doc>
37
+ <qc-color-doc token="blue-dark"
38
+ title="Bleu foncé"
39
+ ></qc-color-doc>
40
+
41
+ <h3>Couleur d’accent</h3>
42
+
43
+ <qc-color-doc token="accent"
44
+ title="Rose"
45
+ ></qc-color-doc>
46
+
47
+ <h3>Niveaux de gris</h3>
48
+
49
+ <qc-color-doc token="grey-pale"
50
+ title="Gris pale"
51
+ ></qc-color-doc>
52
+
53
+ <qc-color-doc token="grey-light"
54
+ title="Gris clair"
55
+ ></qc-color-doc>
56
+ <qc-color-doc token="grey-regular"
57
+ title="Gris"
58
+ ></qc-color-doc>
59
+ <qc-color-doc token="grey-medium"
60
+ title="Gris moyen"
61
+ ></qc-color-doc>
62
+ <qc-color-doc token="grey-dark"
63
+ title="Gris foncé"
64
+ ></qc-color-doc>
65
+
66
+ <h3>Couleurs fonctionnelles</h3>
67
+
68
+ <h4>Rouges</h4>
69
+
70
+ <qc-color-doc token="pink-pale"
71
+ title="Rose pâle"
72
+ ></qc-color-doc>
73
+ <qc-color-doc token="pink-regular"
74
+ title="Rose"
75
+ ></qc-color-doc>
76
+ <qc-color-doc token="red-regular"
77
+ title="Rouge"
78
+ ></qc-color-doc>
79
+ <qc-color-doc token="red-dark"
80
+ title="Rouge foncé"
81
+ ></qc-color-doc>
82
+
83
+ <h4>Verts</h4>
84
+
85
+ <qc-color-doc token="green-pale"
86
+ title="Vert pâle"
87
+ ></qc-color-doc>
88
+ <qc-color-doc token="green-regular"
89
+ title="Vert"
90
+ ></qc-color-doc>
91
+ <qc-color-doc token="green-dark"
92
+ title="Vert foncé"
93
+ ></qc-color-doc>
94
+
95
+ <h4>Jaunes</h4>
96
+
97
+ <qc-color-doc token="yellow-pale"
98
+ title="Jaune pâle"
99
+ ></qc-color-doc>
100
+ <qc-color-doc token="yellow-regular"
101
+ title="Jaune"
102
+ ></qc-color-doc>
103
+ <qc-color-doc token="yellow-dark"
104
+ title="Jaune foncé"
105
+ ></qc-color-doc>
106
+
107
+ <h4>Violet</h4>
108
+
109
+ <qc-color-doc token="purple"
110
+ title="Violet"
111
+ ></qc-color-doc>
112
+ </section>
@@ -0,0 +1,16 @@
1
+ <h2 id="images">Images</h2>
2
+ <p>Les figures servent en général pour l’affichage des images.</p>
3
+ <qc-doc-exemple id="exemple-figure"
4
+ caption="Exemple d’affichage d’une image"
5
+ >
6
+ <figure>
7
+ <img src="img/figure-sample.png"
8
+ alt="Image avec légende">
9
+ <figcaption>
10
+ <p>La légende de l’image <br>
11
+ <em>La source de l’image</em>
12
+ </p>
13
+ </figcaption>
14
+ </figure>
15
+ </qc-doc-exemple>
16
+ <!-- <qc-code target-id="exemple-figure"></qc-code>-->
@@ -1,4 +1,4 @@
1
- @use "qc-sdg-lib" as *;
1
+ @use "../../scss/qc-sdg-lib" as *;
2
2
  // Inherit fonts for inputs and buttons
3
3
  input,
4
4
  button,
@@ -10,5 +10,12 @@ select {
10
10
  label {
11
11
  @include content-font('md', 'bold');
12
12
  display: inline-block;
13
- margin-bottom: rem(4);
14
- }
13
+ }
14
+
15
+ legend {
16
+ padding: 0;
17
+ }
18
+
19
+ qc-select select {
20
+ appearance: none;
21
+ }