dso-toolkit 45.1.0 → 45.2.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 (374) hide show
  1. package/components/Voorbeelden/_anchors.scss +6 -3
  2. package/components/dso.scss +11 -8
  3. package/dist/library/@dso-toolkit/core/cjs/dso-alert.cjs.entry.js +1 -1
  4. package/dist/library/@dso-toolkit/core/cjs/dso-date-picker.cjs.entry.js +1 -1
  5. package/dist/library/@dso-toolkit/core/cjs/dso-header.cjs.entry.js +1 -1
  6. package/dist/library/@dso-toolkit/core/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
  7. package/dist/library/@dso-toolkit/core/cjs/dso-highlight-box.cjs.entry.js +1 -1
  8. package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +34 -8
  9. package/dist/library/@dso-toolkit/core/cjs/dso-pagination.cjs.entry.js +3 -3
  10. package/dist/library/@dso-toolkit/core/cjs/dso-progress-bar.cjs.entry.js +1 -1
  11. package/dist/library/@dso-toolkit/core/cjs/dso-table.cjs.entry.js +89 -0
  12. package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
  13. package/dist/library/@dso-toolkit/core/cjs/dso-viewer-grid.cjs.entry.js +1 -1
  14. package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
  15. package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
  16. package/dist/library/@dso-toolkit/core/collection/components/alert/alert.css +10 -10
  17. package/dist/library/@dso-toolkit/core/collection/components/date-picker/date-picker.css +2 -2
  18. package/dist/library/@dso-toolkit/core/collection/components/header/header.css +24 -17
  19. package/dist/library/@dso-toolkit/core/collection/components/header/header.template.js +1 -1
  20. package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.css +18 -2
  21. package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.js +1 -1
  22. package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.css +1 -1
  23. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/lijst.node.js +25 -0
  24. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table.node.js +8 -7
  25. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-mapper.js +2 -0
  26. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.css +18 -9
  27. package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.js +3 -3
  28. package/dist/library/@dso-toolkit/core/collection/components/progress-bar/progress-bar.css +1 -1
  29. package/dist/library/@dso-toolkit/core/collection/components/table/table.css +296 -0
  30. package/dist/library/@dso-toolkit/core/collection/components/table/table.interfaces.js +1 -0
  31. package/dist/library/@dso-toolkit/core/collection/components/table/table.js +146 -0
  32. package/dist/library/@dso-toolkit/core/collection/components/table/table.template.js +26 -0
  33. package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.css +0 -80
  34. package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
  35. package/dist/library/@dso-toolkit/core/custom-elements/index.js +128 -20
  36. package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
  37. package/dist/library/@dso-toolkit/core/dso-toolkit/p-1a19ce42.entry.js +1 -0
  38. package/dist/library/@dso-toolkit/core/dso-toolkit/p-383227b9.entry.js +1 -0
  39. package/dist/library/@dso-toolkit/core/dso-toolkit/p-662b7663.entry.js +1 -0
  40. package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-93b53eb7.entry.js → library/@dso-toolkit/core/dso-toolkit/p-6a414479.entry.js} +1 -1
  41. package/dist/library/@dso-toolkit/core/dso-toolkit/{p-c339891f.entry.js → p-83de460b.entry.js} +1 -1
  42. package/dist/library/@dso-toolkit/core/dso-toolkit/p-9aaadf4f.entry.js +1 -0
  43. package/dist/library/@dso-toolkit/core/dso-toolkit/p-a5a5b24b.entry.js +1 -0
  44. package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-b1a75b67.entry.js → library/@dso-toolkit/core/dso-toolkit/p-a9b0a83e.entry.js} +1 -1
  45. package/dist/library/@dso-toolkit/core/dso-toolkit/p-eb326df8.entry.js +1 -0
  46. package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-8515d157.entry.js → library/@dso-toolkit/core/dso-toolkit/p-f1b5baf9.entry.js} +1 -1
  47. package/dist/library/@dso-toolkit/core/esm/dso-alert.entry.js +1 -1
  48. package/dist/library/@dso-toolkit/core/esm/dso-date-picker.entry.js +1 -1
  49. package/dist/library/@dso-toolkit/core/esm/dso-header.entry.js +1 -1
  50. package/dist/library/@dso-toolkit/core/esm/dso-helpcenter-panel.entry.js +2 -2
  51. package/dist/library/@dso-toolkit/core/esm/dso-highlight-box.entry.js +1 -1
  52. package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +34 -8
  53. package/dist/library/@dso-toolkit/core/esm/dso-pagination.entry.js +3 -3
  54. package/dist/library/@dso-toolkit/core/esm/dso-progress-bar.entry.js +1 -1
  55. package/dist/library/@dso-toolkit/core/esm/dso-table.entry.js +85 -0
  56. package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
  57. package/dist/library/@dso-toolkit/core/esm/dso-viewer-grid.entry.js +1 -1
  58. package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
  59. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/lijst.node.d.ts +6 -0
  60. package/dist/library/@dso-toolkit/core/types/components/table/table.d.ts +26 -0
  61. package/dist/library/@dso-toolkit/core/types/components/table/table.interfaces.d.ts +3 -0
  62. package/dist/library/@dso-toolkit/core/types/components/table/table.template.d.ts +2 -0
  63. package/dist/library/@dso-toolkit/core/types/components.d.ts +29 -0
  64. package/dist/library/components/detail/form--autocomplete.html +1 -1
  65. package/dist/library/components/detail/form--form-horizontal.html +1 -1
  66. package/dist/library/components/detail/form--form-vertical.html +1 -1
  67. package/dist/library/components/detail/form--header-in-legend.html +1 -1
  68. package/dist/library/components/detail/form--multi-page.html +1 -1
  69. package/dist/library/components/detail/form--sections.html +1 -1
  70. package/dist/library/components/detail/form--simple-form.html +1 -1
  71. package/dist/library/components/detail/form--single-page.html +1 -1
  72. package/dist/library/components/detail/form.html +1 -1
  73. package/dist/library/styles/dso.css +6266 -6232
  74. package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  75. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-1a19ce42.entry.js +1 -0
  76. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-383227b9.entry.js +1 -0
  77. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-662b7663.entry.js +1 -0
  78. package/dist/{library/@dso-toolkit/core/dso-toolkit/p-93b53eb7.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-6a414479.entry.js} +1 -1
  79. package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-c339891f.entry.js → p-83de460b.entry.js} +1 -1
  80. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-9aaadf4f.entry.js +1 -0
  81. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-a5a5b24b.entry.js +1 -0
  82. package/dist/{library/@dso-toolkit/core/dso-toolkit/p-b1a75b67.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-a9b0a83e.entry.js} +1 -1
  83. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-eb326df8.entry.js +1 -0
  84. package/dist/{library/@dso-toolkit/core/dso-toolkit/p-8515d157.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-f1b5baf9.entry.js} +1 -1
  85. package/dist/toolkit/styles/dso.css +6266 -6232
  86. package/hydrate/index.js +137 -19
  87. package/libs/@dso-toolkit/css/src/components/accordion/accordion-theme-compact.scss +18 -13
  88. package/libs/@dso-toolkit/css/src/components/accordion/accordion-theme-conclusion.scss +22 -17
  89. package/libs/@dso-toolkit/css/src/components/accordion/accordion-theme-default.scss +23 -18
  90. package/libs/@dso-toolkit/css/src/components/accordion/accordion.scss +41 -34
  91. package/libs/@dso-toolkit/css/src/components/alert/alert.scss +16 -12
  92. package/libs/@dso-toolkit/css/src/components/anchor/anchor.scss +10 -5
  93. package/libs/@dso-toolkit/css/src/components/application-heading/application-heading.scss +3 -1
  94. package/libs/@dso-toolkit/css/src/components/attachments-counter/attachments-counter.scss +6 -2
  95. package/libs/@dso-toolkit/css/src/components/badge/badge.scss +3 -1
  96. package/libs/@dso-toolkit/css/src/components/banner/banner.scss +25 -18
  97. package/libs/@dso-toolkit/css/src/components/blockquote/blockquote.scss +7 -6
  98. package/libs/@dso-toolkit/css/src/components/blockquote/blockquote.variables.scss +5 -0
  99. package/libs/@dso-toolkit/css/src/components/body/body.scss +8 -5
  100. package/libs/@dso-toolkit/css/src/components/breadcrumbs/breadcrumbs.scss +3 -1
  101. package/libs/@dso-toolkit/css/src/components/button/button.mixins.scss +13 -11
  102. package/libs/@dso-toolkit/css/src/components/button/button.scss +32 -29
  103. package/libs/@dso-toolkit/css/src/components/button-row/button-row.scss +4 -2
  104. package/libs/@dso-toolkit/css/src/components/card/card.scss +19 -14
  105. package/libs/@dso-toolkit/css/src/components/card-grid/card-grid.scss +2 -2
  106. package/libs/@dso-toolkit/css/src/components/card-list/card-list.scss +7 -6
  107. package/libs/@dso-toolkit/css/src/components/card-list/card-list.variables.scss +4 -0
  108. package/libs/@dso-toolkit/css/src/components/code/code.scss +9 -7
  109. package/libs/@dso-toolkit/css/src/components/code/code.variables.scss +2 -0
  110. package/libs/@dso-toolkit/css/src/components/context/context.scss +20 -12
  111. package/libs/@dso-toolkit/css/src/components/definition-list/definition-list.scss +51 -49
  112. package/libs/@dso-toolkit/css/src/components/definition-list/definition-list.variables.scss +10 -0
  113. package/libs/@dso-toolkit/css/src/components/delete/delete.scss +3 -1
  114. package/libs/@dso-toolkit/css/src/components/description/description.scss +8 -4
  115. package/libs/@dso-toolkit/css/src/components/description/description.variables.scss +1 -0
  116. package/libs/@dso-toolkit/css/src/components/document-header/document-header.scss +24 -18
  117. package/libs/@dso-toolkit/css/src/components/document-list/document-list.scss +17 -12
  118. package/libs/@dso-toolkit/css/src/components/dropdown-menu/dropdown-menu.mixins.scss +75 -0
  119. package/libs/@dso-toolkit/css/src/components/dropdown-menu/dropdown-menu.scss +21 -54
  120. package/libs/@dso-toolkit/css/src/components/fieldset/fieldset.scss +6 -4
  121. package/libs/@dso-toolkit/css/src/components/fieldset/fieldset.variables.scss +3 -0
  122. package/libs/@dso-toolkit/css/src/components/footer/footer.scss +26 -22
  123. package/libs/@dso-toolkit/css/src/components/footer/footer.variables.scss +4 -0
  124. package/libs/@dso-toolkit/css/src/components/footnotes/footnotes.scss +3 -1
  125. package/libs/@dso-toolkit/css/src/components/form/fieldset.scss +10 -9
  126. package/libs/@dso-toolkit/css/src/components/form/form-buttons/form-buttons.scss +11 -6
  127. package/libs/@dso-toolkit/css/src/components/form/form-group.scss +49 -44
  128. package/libs/@dso-toolkit/css/src/components/form/form-groups/checkboxes/form-group-checkboxes.scss +10 -4
  129. package/libs/@dso-toolkit/css/src/components/form/form-groups/confirm/form-group-confirm.scss +11 -6
  130. package/libs/@dso-toolkit/css/src/components/form/form-groups/files/form-group-files.scss +39 -33
  131. package/libs/@dso-toolkit/css/src/components/form/form-groups/input/form-group-input.scss +2 -6
  132. package/libs/@dso-toolkit/css/src/components/form/form-groups/input-number/form-group-input-number.scss +6 -7
  133. package/libs/@dso-toolkit/css/src/components/form/form-groups/radios/form-group-radios.scss +11 -5
  134. package/libs/@dso-toolkit/css/src/components/form/form-groups/search-bar/form-group-search-bar.scss +0 -3
  135. package/libs/@dso-toolkit/css/src/components/form/form-groups/select/form-group-select.scss +11 -11
  136. package/libs/@dso-toolkit/css/src/components/form/form-groups/static/form-group-static.scss +9 -6
  137. package/libs/@dso-toolkit/css/src/components/form/form-groups/textarea/form-group-textarea.scss +8 -8
  138. package/libs/@dso-toolkit/css/src/components/form/form-horizontal.scss +3 -1
  139. package/libs/@dso-toolkit/css/src/components/form/form.mixins.scss +4 -2
  140. package/libs/@dso-toolkit/css/src/components/form/form.scss +13 -13
  141. package/libs/@dso-toolkit/css/src/components/form/form.variables.scss +17 -24
  142. package/libs/@dso-toolkit/css/src/components/form-control/form-control.scss +2 -2
  143. package/libs/@dso-toolkit/css/src/components/grid/_index.scss +2 -0
  144. package/libs/@dso-toolkit/css/src/components/grid/grid.mixins.scss +21 -20
  145. package/libs/@dso-toolkit/css/src/components/grid/grid.scss +33 -35
  146. package/libs/@dso-toolkit/css/src/components/grid/grid.variables.scss +12 -5
  147. package/libs/@dso-toolkit/css/src/components/header/header.scss +50 -0
  148. package/libs/@dso-toolkit/css/src/components/headings/headings.scss +23 -18
  149. package/libs/@dso-toolkit/css/src/components/highlight-box/highlight-box.scss +20 -14
  150. package/libs/@dso-toolkit/css/src/components/horizontal-rule/horizontal-rule.scss +6 -4
  151. package/libs/@dso-toolkit/css/src/components/horizontal-rule/horizontal-rule.variables.scss +3 -0
  152. package/libs/@dso-toolkit/css/src/components/html/html.scss +3 -1
  153. package/libs/@dso-toolkit/css/src/components/icon/icon.scss +5 -3
  154. package/libs/@dso-toolkit/css/src/components/image/image.scss +6 -4
  155. package/libs/@dso-toolkit/css/src/components/info/info.scss +8 -4
  156. package/libs/@dso-toolkit/css/src/components/info-button/info-button.scss +12 -7
  157. package/libs/@dso-toolkit/css/src/components/input/input.scss +3 -1
  158. package/libs/@dso-toolkit/css/src/components/input-number/input-number.scss +3 -1
  159. package/libs/@dso-toolkit/css/src/components/insert/insert.scss +3 -1
  160. package/libs/@dso-toolkit/css/src/components/justify-form-groups/justify-form-groups.scss +3 -1
  161. package/libs/@dso-toolkit/css/src/components/label/label.scss +7 -5
  162. package/libs/@dso-toolkit/css/src/components/label-group/label-group.scss +3 -1
  163. package/libs/@dso-toolkit/css/src/components/link-list/link-list.scss +9 -4
  164. package/libs/@dso-toolkit/css/src/components/list/list.scss +24 -21
  165. package/libs/@dso-toolkit/css/src/components/list/list.variables.scss +5 -0
  166. package/libs/@dso-toolkit/css/src/components/list-button/list-button.scss +7 -4
  167. package/libs/@dso-toolkit/css/src/components/map-controls/map-controls.scss +3 -1
  168. package/libs/@dso-toolkit/css/src/components/mark/mark.scss +3 -1
  169. package/libs/@dso-toolkit/css/src/components/modal/modal.scss +17 -148
  170. package/libs/@dso-toolkit/css/src/components/nav/nav.scss +3 -1
  171. package/libs/@dso-toolkit/css/src/components/navbar/navbar.scss +24 -19
  172. package/libs/@dso-toolkit/css/src/components/pagination/pagination.scss +7 -3
  173. package/libs/@dso-toolkit/css/src/components/paragraph/paragraph.scss +3 -1
  174. package/libs/@dso-toolkit/css/src/components/preformatted-text/preformatted-text.scss +13 -12
  175. package/libs/@dso-toolkit/css/src/components/preformatted-text/preformatted-text.variables.scss +5 -0
  176. package/libs/@dso-toolkit/css/src/components/progress-bar/progress-bar.scss +3 -1
  177. package/libs/@dso-toolkit/css/src/components/progress-indicator/progress-indicator.scss +10 -8
  178. package/libs/@dso-toolkit/css/src/components/rich-content/rich-content.scss +5 -3
  179. package/libs/@dso-toolkit/css/src/components/search-bar/search-bar.scss +45 -39
  180. package/libs/@dso-toolkit/css/src/components/search-bar/search-bar.variables.scss +7 -0
  181. package/libs/@dso-toolkit/css/src/components/selectable/selectable.scss +6 -3
  182. package/libs/@dso-toolkit/css/src/components/shopping-cart/shopping-cart.scss +45 -40
  183. package/libs/@dso-toolkit/css/src/components/shopping-cart/shopping-cart.variables.scss +5 -0
  184. package/libs/@dso-toolkit/css/src/components/small/small.scss +3 -1
  185. package/libs/@dso-toolkit/css/src/components/subscript/subscript.scss +3 -1
  186. package/libs/@dso-toolkit/css/src/components/subtitle/subtitle.scss +6 -3
  187. package/libs/@dso-toolkit/css/src/components/superscript/superscript.scss +3 -1
  188. package/libs/@dso-toolkit/css/src/components/table/table.mixins.scss +13 -9
  189. package/libs/@dso-toolkit/css/src/components/table/table.scss +55 -34
  190. package/libs/@dso-toolkit/css/src/components/tabs/tabs.scss +45 -52
  191. package/libs/@dso-toolkit/css/src/components/tabs/tabs.variables.scss +18 -0
  192. package/libs/@dso-toolkit/css/src/components/tile/tile.scss +6 -3
  193. package/libs/@dso-toolkit/css/src/components/tile-grid/tile-grid.scss +2 -2
  194. package/libs/@dso-toolkit/css/src/components/tooltip/tooltip.scss +15 -13
  195. package/libs/@dso-toolkit/css/src/components/viewer-grid/viewer-grid.scss +8 -5
  196. package/libs/@dso-toolkit/css/src/components/whitebox/whitebox.scss +4 -2
  197. package/libs/@dso-toolkit/css/src/config.scss +2 -0
  198. package/libs/@dso-toolkit/css/src/di.scss +7 -5
  199. package/libs/@dso-toolkit/css/src/dso.scss +85 -99
  200. package/libs/@dso-toolkit/css/src/global/font-faces.scss +17 -17
  201. package/libs/@dso-toolkit/css/src/global/utilities.scss +8 -1
  202. package/libs/@dso-toolkit/css/src/legacy/components/legacy-header.scss +60 -0
  203. package/libs/@dso-toolkit/css/src/legacy/components/{panel.scss → legacy-panel.scss} +30 -24
  204. package/libs/@dso-toolkit/sources/src/components/accordion/_index.scss +1 -0
  205. package/libs/@dso-toolkit/sources/src/components/accordion/accordion.variables.scss +27 -0
  206. package/libs/@dso-toolkit/sources/src/components/alert/_index.scss +2 -0
  207. package/libs/@dso-toolkit/sources/src/components/alert/alert.mixins.scss +107 -0
  208. package/libs/@dso-toolkit/sources/src/components/alert/alert.variables.scss +25 -0
  209. package/libs/@dso-toolkit/sources/src/components/anchor/_index.scss +2 -0
  210. package/libs/@dso-toolkit/sources/src/components/anchor/anchor.mixins.scss +8 -9
  211. package/libs/@dso-toolkit/sources/src/components/anchor/anchor.variables.scss +6 -0
  212. package/libs/@dso-toolkit/sources/src/components/application-heading/_index.scss +2 -0
  213. package/libs/@dso-toolkit/sources/src/components/application-heading/application-heading.mixins.scss +30 -0
  214. package/libs/@dso-toolkit/sources/src/components/application-heading/application-heading.variables.scss +1 -0
  215. package/libs/@dso-toolkit/sources/src/components/attachments-counter/_index.scss +1 -0
  216. package/libs/@dso-toolkit/sources/src/components/attachments-counter/{attachments-counter.scss → attachments-counter.mixins.scss} +4 -2
  217. package/libs/@dso-toolkit/sources/src/components/badge/_index.scss +2 -0
  218. package/libs/@dso-toolkit/sources/src/components/badge/badge.mixins.scss +53 -0
  219. package/libs/@dso-toolkit/sources/src/components/badge/badge.variables.scss +10 -0
  220. package/libs/@dso-toolkit/sources/src/components/banner/_index.scss +2 -0
  221. package/libs/@dso-toolkit/sources/src/components/banner/banner.mixins.scss +111 -0
  222. package/libs/@dso-toolkit/sources/src/components/banner/banner.variables.scss +14 -0
  223. package/libs/@dso-toolkit/sources/src/components/breadcrumbs/_index.scss +1 -0
  224. package/libs/@dso-toolkit/sources/src/components/breadcrumbs/{breadcrumbs.scss → breadcrumbs.mixins.scss} +13 -7
  225. package/libs/@dso-toolkit/sources/src/components/button/_index.scss +2 -0
  226. package/libs/@dso-toolkit/sources/src/components/button/{button.scss → button.mixins.scss} +113 -133
  227. package/libs/@dso-toolkit/sources/src/{styling/variables.scss → components/button/button.variables.scss} +29 -14
  228. package/libs/@dso-toolkit/sources/src/components/description/_index.scss +2 -0
  229. package/libs/@dso-toolkit/sources/src/components/description/description.mixins.scss +79 -0
  230. package/libs/@dso-toolkit/sources/src/components/description/description.variables.scss +4 -0
  231. package/libs/@dso-toolkit/sources/src/components/dropdown-menu/_index.scss +2 -0
  232. package/libs/@dso-toolkit/sources/src/components/dropdown-menu/{dropdown-menu.scss → dropdown-menu.mixins.scss} +33 -61
  233. package/libs/@dso-toolkit/sources/src/components/dropdown-menu/dropdown-menu.variables.scss +6 -0
  234. package/libs/@dso-toolkit/sources/src/components/footnotes/_index.scss +1 -0
  235. package/libs/@dso-toolkit/sources/src/components/footnotes/footnotes.mixins.scss +17 -0
  236. package/libs/@dso-toolkit/sources/src/components/form-control/_index.scss +2 -0
  237. package/libs/@dso-toolkit/sources/src/components/form-control/form-control.mixins.scss +24 -26
  238. package/libs/@dso-toolkit/sources/src/components/form-control/form-control.variables.scss +10 -0
  239. package/libs/@dso-toolkit/sources/src/components/headings/_index.scss +1 -0
  240. package/libs/@dso-toolkit/sources/src/components/headings/headings.mixins.scss +7 -4
  241. package/libs/@dso-toolkit/sources/src/components/helpcenter-panel/helpcenter-panel.stories-of.ts +1 -1
  242. package/libs/@dso-toolkit/sources/src/components/highlight-box/_index.scss +2 -0
  243. package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.mixins.scss +85 -0
  244. package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.variables.scss +4 -0
  245. package/libs/@dso-toolkit/sources/src/components/icon/_index.scss +1 -0
  246. package/libs/@dso-toolkit/sources/src/components/icon/icon.variables.scss +4 -2
  247. package/libs/@dso-toolkit/sources/src/components/image/_index.scss +2 -0
  248. package/libs/@dso-toolkit/sources/src/components/image/image.mixins.scss +33 -0
  249. package/libs/@dso-toolkit/sources/src/components/image/image.variables.scss +6 -0
  250. package/libs/@dso-toolkit/sources/src/components/info/_index.scss +1 -0
  251. package/libs/@dso-toolkit/sources/src/components/info/{info.scss → info.mixins.scss} +18 -13
  252. package/libs/@dso-toolkit/sources/src/components/info-button/_index.scss +2 -0
  253. package/libs/@dso-toolkit/sources/src/components/info-button/info-button.mixins.scss +27 -0
  254. package/libs/@dso-toolkit/sources/src/components/info-button/info-button.variables.scss +3 -0
  255. package/libs/@dso-toolkit/sources/src/components/input-number/_index.scss +1 -0
  256. package/libs/@dso-toolkit/sources/src/components/input-number/{input-number.scss → input-number.mixins.scss} +5 -3
  257. package/libs/@dso-toolkit/sources/src/components/label/_index.scss +2 -0
  258. package/libs/@dso-toolkit/sources/src/components/label/label.mixins.scss +103 -0
  259. package/libs/@dso-toolkit/sources/src/components/label/label.variables.scss +28 -0
  260. package/libs/@dso-toolkit/sources/src/components/label-group/_index.scss +1 -0
  261. package/libs/@dso-toolkit/sources/src/components/label-group/{label-group.scss → label-group.mixins.scss} +5 -3
  262. package/libs/@dso-toolkit/sources/src/components/link-list/_index.scss +1 -0
  263. package/libs/@dso-toolkit/sources/src/components/link-list/link-list.mixins.scss +46 -0
  264. package/libs/@dso-toolkit/sources/src/components/list/_index.scss +1 -0
  265. package/libs/@dso-toolkit/sources/src/components/list/list.mixins.scss +1 -1
  266. package/libs/@dso-toolkit/sources/src/components/list-button/_index.scss +2 -0
  267. package/libs/@dso-toolkit/sources/src/components/list-button/list-button.mixins.scss +182 -1
  268. package/libs/@dso-toolkit/sources/src/components/list-button/list-button.variables.scss +4 -0
  269. package/libs/@dso-toolkit/sources/src/components/modal/_index.scss +2 -0
  270. package/libs/@dso-toolkit/sources/src/components/modal/modal.mixins.scss +145 -0
  271. package/libs/@dso-toolkit/sources/src/components/modal/modal.variables.scss +17 -0
  272. package/libs/@dso-toolkit/sources/src/components/navbar/_index.scss +1 -0
  273. package/libs/@dso-toolkit/sources/src/components/navbar/navbar.variables.scss +3 -0
  274. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +114 -0
  275. package/libs/@dso-toolkit/sources/src/components/pagination/_index.scss +2 -0
  276. package/libs/@dso-toolkit/sources/src/components/pagination/{pagination.scss → pagination.mixins.scss} +16 -16
  277. package/libs/@dso-toolkit/sources/src/components/pagination/pagination.variables.scss +6 -0
  278. package/libs/@dso-toolkit/sources/src/components/progress-bar/_index.scss +2 -0
  279. package/libs/@dso-toolkit/sources/src/components/progress-bar/progress-bar.mixins.scss +27 -0
  280. package/libs/@dso-toolkit/sources/src/components/progress-bar/progress-bar.variables.scss +9 -0
  281. package/libs/@dso-toolkit/sources/src/components/progress-indicator/_index.scss +1 -0
  282. package/libs/@dso-toolkit/sources/src/components/progress-indicator/progress-indicator.mixins.scss +52 -0
  283. package/libs/@dso-toolkit/sources/src/components/rich-content/_index.scss +2 -0
  284. package/libs/@dso-toolkit/sources/src/components/rich-content/rich-content.mixins.scss +10 -8
  285. package/libs/@dso-toolkit/sources/src/components/rich-content/rich-content.variables.scss +3 -0
  286. package/libs/@dso-toolkit/sources/src/components/selectable/_index.scss +2 -0
  287. package/libs/@dso-toolkit/sources/src/components/selectable/selectable.mixins.scss +205 -0
  288. package/libs/@dso-toolkit/sources/src/components/selectable/selectable.variables.scss +12 -0
  289. package/libs/@dso-toolkit/sources/src/components/step-counter/_index.scss +2 -0
  290. package/libs/@dso-toolkit/sources/src/components/step-counter/step-counter.mixins.scss +17 -15
  291. package/libs/@dso-toolkit/sources/src/components/step-counter/step-counter.variables.scss +4 -0
  292. package/libs/@dso-toolkit/sources/src/components/table/_index.scss +1 -0
  293. package/libs/@dso-toolkit/sources/src/components/table/table.args.ts +22 -0
  294. package/libs/@dso-toolkit/sources/src/components/table/table.content.ts +29 -0
  295. package/libs/@dso-toolkit/sources/src/components/table/table.models.ts +11 -0
  296. package/libs/@dso-toolkit/sources/src/components/table/table.stories-of.ts +43 -0
  297. package/libs/@dso-toolkit/sources/src/components/table/table.variables.scss +12 -0
  298. package/libs/@dso-toolkit/sources/src/components/tile/_index.scss +2 -0
  299. package/libs/@dso-toolkit/sources/src/components/tile/tile.mixins.scss +82 -0
  300. package/libs/@dso-toolkit/sources/src/components/tile/tile.variables.scss +11 -0
  301. package/libs/@dso-toolkit/sources/src/components/tooltip/_index.scss +2 -0
  302. package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.mixins.scss +90 -4
  303. package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.variables.scss +16 -0
  304. package/libs/@dso-toolkit/sources/src/components/whitebox/_index.scss +2 -0
  305. package/libs/@dso-toolkit/sources/src/components/whitebox/whitebox.mixins.scss +45 -0
  306. package/libs/@dso-toolkit/sources/src/components/whitebox/whitebox.variables.scss +4 -0
  307. package/libs/@dso-toolkit/sources/src/icons/caret-down.scss +6 -6
  308. package/libs/@dso-toolkit/sources/src/icons/check.scss +4 -4
  309. package/libs/@dso-toolkit/sources/src/icons/chevron-down.scss +9 -9
  310. package/libs/@dso-toolkit/sources/src/icons/chevron-left.scss +2 -2
  311. package/libs/@dso-toolkit/sources/src/icons/chevron-right.scss +5 -5
  312. package/libs/@dso-toolkit/sources/src/icons/chevron-up.scss +8 -8
  313. package/libs/@dso-toolkit/sources/src/icons/circle-notch.scss +2 -2
  314. package/libs/@dso-toolkit/sources/src/icons/download.scss +6 -6
  315. package/libs/@dso-toolkit/sources/src/icons/external-link.scss +6 -6
  316. package/libs/@dso-toolkit/sources/src/icons/info-active.scss +5 -5
  317. package/libs/@dso-toolkit/sources/src/icons/info-i.scss +4 -4
  318. package/libs/@dso-toolkit/sources/src/icons/info.scss +5 -5
  319. package/libs/@dso-toolkit/sources/src/icons/paperclip.scss +4 -4
  320. package/libs/@dso-toolkit/sources/src/icons/search.scss +2 -2
  321. package/libs/@dso-toolkit/sources/src/icons/times.scss +6 -6
  322. package/libs/@dso-toolkit/sources/src/index.ts +2 -0
  323. package/libs/@dso-toolkit/sources/src/utilities.scss +11 -0
  324. package/libs/@dso-toolkit/sources/src/{styling/variables → variables}/colors.scss +11 -11
  325. package/libs/@dso-toolkit/sources/src/variables/media-query-breakpoints.scss +16 -0
  326. package/libs/@dso-toolkit/sources/src/{styling/variables → variables}/scaffolding.scss +4 -2
  327. package/libs/@dso-toolkit/sources/src/variables/states.scss +17 -0
  328. package/libs/@dso-toolkit/sources/src/{styling/variables → variables}/typography.scss +3 -4
  329. package/libs/@dso-toolkit/sources/src/variables/units.scss +51 -0
  330. package/libs/@dso-toolkit/sources/src/variables/zindex.scss +24 -0
  331. package/package.json +2 -2
  332. package/src/{styles/components → components}/_navbar.scss +16 -13
  333. package/src/{styles/components → components}/_tree-view.scss +16 -11
  334. package/src/dso.scss +7 -24
  335. package/dist/library/@dso-toolkit/core/dso-toolkit/p-73bbb9a6.entry.js +0 -1
  336. package/dist/library/@dso-toolkit/core/dso-toolkit/p-d6192ab8.entry.js +0 -1
  337. package/dist/library/@dso-toolkit/core/dso-toolkit/p-e2e2106e.entry.js +0 -1
  338. package/dist/library/@dso-toolkit/core/dso-toolkit/p-efd815dc.entry.js +0 -1
  339. package/dist/library/@dso-toolkit/core/dso-toolkit/p-f42d8240.entry.js +0 -1
  340. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-73bbb9a6.entry.js +0 -1
  341. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-d6192ab8.entry.js +0 -1
  342. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-e2e2106e.entry.js +0 -1
  343. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-efd815dc.entry.js +0 -1
  344. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-f42d8240.entry.js +0 -1
  345. package/libs/@dso-toolkit/css/src/components/sr-only/sr-only.scss +0 -3
  346. package/libs/@dso-toolkit/css/src/legacy/components/header.scss +0 -56
  347. package/libs/@dso-toolkit/sources/src/components/accordion/accordion-variables.scss +0 -24
  348. package/libs/@dso-toolkit/sources/src/components/accordion/accordion.scss +0 -1
  349. package/libs/@dso-toolkit/sources/src/components/alert/alert.scss +0 -125
  350. package/libs/@dso-toolkit/sources/src/components/application-heading/application-heading.scss +0 -27
  351. package/libs/@dso-toolkit/sources/src/components/badge/badge.scss +0 -57
  352. package/libs/@dso-toolkit/sources/src/components/banner/banner.scss +0 -115
  353. package/libs/@dso-toolkit/sources/src/components/description/description.scss +0 -77
  354. package/libs/@dso-toolkit/sources/src/components/footnotes/footnotes.scss +0 -12
  355. package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.scss +0 -79
  356. package/libs/@dso-toolkit/sources/src/components/image/image.scss +0 -32
  357. package/libs/@dso-toolkit/sources/src/components/info-button/info-button.scss +0 -25
  358. package/libs/@dso-toolkit/sources/src/components/label/label.scss +0 -125
  359. package/libs/@dso-toolkit/sources/src/components/link-list/link-list.scss +0 -40
  360. package/libs/@dso-toolkit/sources/src/components/list-button/list-button.scss +0 -176
  361. package/libs/@dso-toolkit/sources/src/components/progress-bar/progress-bar.scss +0 -30
  362. package/libs/@dso-toolkit/sources/src/components/progress-indicator/progress-indicator.scss +0 -50
  363. package/libs/@dso-toolkit/sources/src/components/selectable/selectable.scss +0 -210
  364. package/libs/@dso-toolkit/sources/src/components/sr-only/sr-only.mixins.scss +0 -10
  365. package/libs/@dso-toolkit/sources/src/components/tile/tile.scss +0 -85
  366. package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.scss +0 -97
  367. package/libs/@dso-toolkit/sources/src/components/whitebox/whitebox.scss +0 -41
  368. package/libs/@dso-toolkit/sources/src/components.scss +0 -27
  369. package/libs/@dso-toolkit/sources/src/styling/mixins.scss +0 -10
  370. package/libs/@dso-toolkit/sources/src/styling/variables/media-queries-breakpoints.scss +0 -16
  371. package/libs/@dso-toolkit/sources/src/styling/variables/states.scss +0 -15
  372. package/libs/@dso-toolkit/sources/src/styling/variables/units.scss +0 -51
  373. package/libs/@dso-toolkit/sources/src/styling/variables/zindex.scss +0 -24
  374. package/src/styles/dso.scss +0 -59
@@ -1,37 +1,17 @@
1
1
  @use "sass:map";
2
2
 
3
- // ====================
4
- // Variables
5
- // ====================
6
- $dso-button-border-radius: 4px;
7
- $dso-button-min-width: $u7;
8
- $dso-button-horizontal-padding: $u2 - 1px;
9
- $dso-button-vertical-padding: $u1 * 1.5 - 1px;
10
-
11
- $dso-button-primary-background-color: $grasgroen;
12
- $dso-button-primary-color: $wit;
13
- $dso-button-primary-hover-background-color: $bosgroen;
14
- $dso-button-primary-active-background-color: $bosgroen-130;
15
- $dso-button-primary-disabled-background-color: $grasgroen-40;
16
-
17
- $dso-button-secondary-background-color: $wit;
18
- $dso-button-secondary-border-color: $grasgroen;
19
- $dso-button-secondary-color: $grasgroen;
20
- $dso-button-secondary-hover-background-color: $grasgroen;
21
- $dso-button-secondary-hover-color: $wit;
22
- $dso-button-secondary-active-background-color: $bosgroen;
23
- $dso-button-secondary-disabled-color: $grasgroen-40;
24
-
25
- $dso-button-tertiary-padding-horizontal: $dso-button-vertical-padding;
26
- $dso-button-tertiary-color: $grasgroen;
27
- $dso-button-tertiary-hover-color: $scampi;
28
- $dso-button-tertiary-active-color: $scampi;
3
+ @use "../../utilities";
4
+ @use "../../variables/units";
5
+ @use "../../variables/colors";
6
+ @use "../../variables/typography";
7
+
8
+ @use "button.variables" as button-variables;
29
9
 
30
10
  // ====================
31
11
  // Private mixins
32
12
  // ====================
33
13
 
34
- @mixin _button_shared-variant($defaults-map, $variant-map: ()) {
14
+ @mixin _shared-variant($defaults-map, $variant-map: ()) {
35
15
  $map: map.merge($defaults-map, $variant-map);
36
16
 
37
17
  background-color: map.get($map, "background-color");
@@ -39,72 +19,72 @@ $dso-button-tertiary-active-color: $scampi;
39
19
  color: map.get($map, "color");
40
20
  }
41
21
 
42
- @mixin _button_shared($base-styling, $modifiers, $defaults-map, $hover-map, $active-map, $disabled-map, $icon-only) {
22
+ @mixin _shared($base-styling, $modifiers, $defaults-map, $hover-map, $active-map, $disabled-map, $icon-only) {
43
23
  @if ($base-styling) {
44
- @include button_base($modifiers);
24
+ @include base($modifiers);
45
25
  }
46
26
 
47
- @include _button_shared-variant($defaults-map);
27
+ @include _shared-variant($defaults-map);
48
28
 
49
29
  border-width: 1px;
50
30
  border-style: solid;
51
- border-radius: $dso-button-border-radius;
52
- line-height: $line-height-base;
53
- min-width: $dso-button-min-width;
54
- padding: $dso-button-vertical-padding $dso-button-horizontal-padding;
31
+ border-radius: button-variables.$border-radius;
32
+ line-height: typography.$line-height-base;
33
+ min-width: button-variables.$min-width;
34
+ padding: button-variables.$vertical-padding button-variables.$horizontal-padding;
55
35
 
56
36
  &:hover {
57
- @include _button_shared-variant($defaults-map, $hover-map);
37
+ @include _shared-variant($defaults-map, $hover-map);
58
38
  }
59
39
 
60
40
  &:active {
61
- @include _button_shared-variant($defaults-map, $active-map);
41
+ @include _shared-variant($defaults-map, $active-map);
62
42
  }
63
43
 
64
44
  &[disabled] {
65
45
  &,
66
46
  &:hover {
67
- @include _button_shared-variant($defaults-map, $disabled-map);
47
+ @include _shared-variant($defaults-map, $disabled-map);
68
48
  }
69
49
  }
70
50
 
71
51
  &.btn-sm {
72
- @include button_small();
52
+ @include small();
73
53
  }
74
54
 
75
55
  @if ($icon-only) {
76
56
  > span {
77
- @include sr-only();
57
+ @include utilities.sr-only();
78
58
  }
79
59
  }
80
60
  @else {
81
61
  dso-icon,
82
62
  svg.di {
83
- margin-left: -$u1;
84
- margin-right: $u1;
63
+ margin-left: units.$u1 * -1;
64
+ margin-right: units.$u1;
85
65
  }
86
66
 
87
67
  span + dso-icon,
88
68
  span + svg.di {
89
- margin-left: $u1;
90
- margin-right: -$u1;
69
+ margin-left: units.$u1;
70
+ margin-right: units.$u1 * -1;
91
71
  }
92
72
  }
93
73
  }
94
74
 
95
- @mixin _button-spinner-icon($color, $valign, $position) {
75
+ @mixin _spinner-icon($color, $valign, $position) {
96
76
  background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23#{str-slice(#{$color}, 2)}; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
97
77
  background-repeat: no-repeat;
98
78
  content: "";
99
79
  display: inline-block;
100
- height: $u3;
80
+ height: units.$u3;
101
81
  vertical-align: $valign;
102
- width: $u3;
82
+ width: units.$u3;
103
83
 
104
84
  @if $position == left {
105
- margin-right: $u1;
85
+ margin-right: units.$u1;
106
86
  } @else if $position == right {
107
- margin-left: $u1;
87
+ margin-left: units.$u1;
108
88
  }
109
89
  }
110
90
 
@@ -112,7 +92,7 @@ $dso-button-tertiary-active-color: $scampi;
112
92
  // Public mixins
113
93
  // ====================
114
94
 
115
- @mixin button_element() {
95
+ @mixin element() {
116
96
  -webkit-appearance: button; // Correct inability to style clickable `input` types in iOS.
117
97
  color: inherit;
118
98
  cursor: pointer; // Improve usability and consistency of cursor style between image-type `input` and others.
@@ -134,7 +114,7 @@ $dso-button-tertiary-active-color: $scampi;
134
114
  }
135
115
  }
136
116
 
137
- @mixin button_icon-only() {
117
+ @mixin icon-only() {
138
118
  dso-icon,
139
119
  svg.di {
140
120
  margin-left: 0;
@@ -142,38 +122,38 @@ $dso-button-tertiary-active-color: $scampi;
142
122
  }
143
123
 
144
124
  > span {
145
- @include sr-only();
125
+ @include utilities.sr-only();
146
126
  }
147
127
  }
148
128
 
149
- @mixin button_small() {
150
- line-height: $dso-font-size-base;
129
+ @mixin small() {
130
+ line-height: typography.$root-font-size-base;
151
131
 
152
132
  dso-icon,
153
133
  svg.di,
154
134
  &.extern::after,
155
135
  &.download::after,
156
136
  &.dso-spinner::before {
157
- margin-bottom: -$u1 * 0.5;
158
- margin-top: -$u1 * 0.5;
137
+ margin-bottom: units.$u1 * -0.5;
138
+ margin-top: units.$u1 * -0.5;
159
139
  }
160
140
 
161
141
  &.dso-spinner-left {
162
142
  &::before {
163
- height: $u2;
164
- width: $u2;
143
+ height: units.$u2;
144
+ width: units.$u2;
165
145
  }
166
146
  }
167
147
 
168
148
  &.dso-spinner-right {
169
149
  &::after {
170
- height: $u2;
171
- width: $u2;
150
+ height: units.$u2;
151
+ width: units.$u2;
172
152
  }
173
153
  }
174
154
  }
175
155
 
176
- @mixin button_base($modifiers: true) {
156
+ @mixin base($modifiers: true) {
177
157
  display: inline-block;
178
158
  font-size: 1em;
179
159
  font-weight: 500;
@@ -199,13 +179,13 @@ $dso-button-tertiary-active-color: $scampi;
199
179
  &::after {
200
180
  content: "";
201
181
  display: inline-block;
202
- margin-left: $u1;
182
+ margin-left: units.$u1;
203
183
  }
204
184
  }
205
185
  }
206
186
  }
207
187
 
208
- @mixin button_block($sibling-selector) {
188
+ @mixin block($sibling-selector) {
209
189
  display: block;
210
190
  width: 100%;
211
191
 
@@ -214,113 +194,113 @@ $dso-button-tertiary-active-color: $scampi;
214
194
  }
215
195
  }
216
196
 
217
- @mixin button_primary($base-styling: true, $modifiers: true) {
197
+ @mixin primary($base-styling: true, $modifiers: true) {
218
198
  $defaults-map: (
219
- "background-color": $dso-button-primary-background-color,
220
- "border-color": $dso-button-primary-background-color,
221
- "color": $dso-button-primary-color
199
+ "background-color": button-variables.$primary-background-color,
200
+ "border-color": button-variables.$primary-background-color,
201
+ "color": button-variables.$primary-color
222
202
  );
223
203
 
224
204
  $hover-map: (
225
- "background-color": $dso-button-primary-hover-background-color,
226
- "border-color": $dso-button-primary-hover-background-color
205
+ "background-color": button-variables.$primary-hover-background-color,
206
+ "border-color": button-variables.$primary-hover-background-color
227
207
  );
228
208
 
229
209
  $active-map: (
230
- "background-color": $dso-button-primary-active-background-color,
231
- "border-color": $dso-button-primary-active-background-color
210
+ "background-color": button-variables.$primary-active-background-color,
211
+ "border-color": button-variables.$primary-active-background-color
232
212
  );
233
213
 
234
214
  $disabled-map: (
235
- "background-color": $dso-button-primary-disabled-background-color,
236
- "border-color": $dso-button-primary-disabled-background-color
215
+ "background-color": button-variables.$primary-disabled-background-color,
216
+ "border-color": button-variables.$primary-disabled-background-color
237
217
  );
238
218
 
239
- @include _button_shared($base-styling, $modifiers, $defaults-map, $hover-map, $active-map, $disabled-map, false);
219
+ @include _shared($base-styling, $modifiers, $defaults-map, $hover-map, $active-map, $disabled-map, false);
240
220
 
241
221
  &.dso-spinner-left,
242
222
  &.dso-spinner-right {
243
223
  &[disabled] {
244
- background-color: $dso-button-primary-background-color;
245
- border-color: $dso-button-primary-background-color;
246
- color: $dso-button-primary-color;
224
+ background-color: button-variables.$primary-background-color;
225
+ border-color: button-variables.$primary-background-color;
226
+ color: button-variables.$primary-color;
247
227
  }
248
228
  }
249
229
 
250
230
  &.dso-spinner-left {
251
231
  &::before {
252
- @include _button-spinner-icon($color: $wit, $valign: top, $position: left);
232
+ @include _spinner-icon($color: colors.$wit, $valign: top, $position: left);
253
233
  }
254
234
  }
255
235
 
256
236
  &.dso-spinner-right {
257
237
  &::after {
258
- @include _button-spinner-icon($color: $wit, $valign: top, $position: right);
238
+ @include _spinner-icon($color: colors.$wit, $valign: top, $position: right);
259
239
  }
260
240
  }
261
241
  }
262
242
 
263
- @mixin button_anchor-primary() {
243
+ @mixin anchor-primary() {
264
244
  text-decoration: none;
265
245
 
266
246
  &,
267
247
  &:visited {
268
- color: $wit;
248
+ color: colors.$wit;
269
249
  }
270
250
  }
271
251
 
272
- @mixin button_secondary($base-styling: true ,$modifiers: true, $icon-only: false) {
252
+ @mixin secondary($base-styling: true ,$modifiers: true, $icon-only: false) {
273
253
  $defaults-map: (
274
- "background-color": $dso-button-secondary-background-color,
275
- "border-color": $dso-button-secondary-border-color,
276
- "color": $dso-button-secondary-color
254
+ "background-color": button-variables.$secondary-background-color,
255
+ "border-color": button-variables.$secondary-border-color,
256
+ "color": button-variables.$secondary-color
277
257
  );
278
258
 
279
259
  $hover-map: (
280
- "background-color": $dso-button-secondary-hover-background-color,
281
- "border-color": $dso-button-secondary-hover-background-color,
282
- "color": $wit
260
+ "background-color": button-variables.$secondary-hover-background-color,
261
+ "border-color": button-variables.$secondary-hover-background-color,
262
+ "color": colors.$wit
283
263
  );
284
264
 
285
265
  $active-map: (
286
- "background-color": $dso-button-secondary-active-background-color,
287
- "border-color": $dso-button-secondary-active-background-color,
288
- "color": $wit
266
+ "background-color": button-variables.$secondary-active-background-color,
267
+ "border-color": button-variables.$secondary-active-background-color,
268
+ "color": colors.$wit
289
269
  );
290
270
 
291
271
  $disabled-map: (
292
- "background-color": $wit,
293
- "border-color": $dso-button-secondary-disabled-color,
294
- "color": $dso-button-secondary-disabled-color
272
+ "background-color": colors.$wit,
273
+ "border-color": button-variables.$secondary-disabled-color,
274
+ "color": button-variables.$secondary-disabled-color
295
275
  );
296
276
 
297
- @include _button_shared($base-styling, $modifiers, $defaults-map, $hover-map, $active-map, $disabled-map, $icon-only);
277
+ @include _shared($base-styling, $modifiers, $defaults-map, $hover-map, $active-map, $disabled-map, $icon-only);
298
278
 
299
279
  &.dso-spinner-left,
300
280
  &.dso-spinner-right {
301
281
  &[disabled] {
302
- background-color: $dso-button-secondary-background-color;
303
- border-color: $dso-button-secondary-border-color;
304
- color: $dso-button-secondary-color;
282
+ background-color: button-variables.$secondary-background-color;
283
+ border-color: button-variables.$secondary-border-color;
284
+ color: button-variables.$secondary-color;
305
285
  }
306
286
  }
307
287
 
308
288
  &.dso-spinner-left {
309
289
  &::before {
310
- @include _button-spinner-icon($color: $grasgroen, $valign: top, $position: left);
290
+ @include _spinner-icon($color: colors.$grasgroen, $valign: top, $position: left);
311
291
  }
312
292
 
313
293
  &:not([disabled]) {
314
294
  &:hover {
315
295
  &::before {
316
- @include _button-spinner-icon($color: $wit, $valign: top, $position: left);
296
+ @include _spinner-icon($color: colors.$wit, $valign: top, $position: left);
317
297
  }
318
298
  }
319
299
 
320
300
  &.btn-sm:hover {
321
301
  &::before {
322
- height: $u2;
323
- width: $u2;
302
+ height: units.$u2;
303
+ width: units.$u2;
324
304
  }
325
305
  }
326
306
  }
@@ -328,92 +308,92 @@ $dso-button-tertiary-active-color: $scampi;
328
308
 
329
309
  &.dso-spinner-right {
330
310
  &::after {
331
- @include _button-spinner-icon($color: $grasgroen, $valign: top, $position: right);
311
+ @include _spinner-icon($color: colors.$grasgroen, $valign: top, $position: right);
332
312
  }
333
313
 
334
314
  &:not([disabled]) {
335
315
  &:hover {
336
316
  &::after {
337
- @include _button-spinner-icon($color: $wit, $valign: top, $position: right);
317
+ @include _spinner-icon($color: colors.$wit, $valign: top, $position: right);
338
318
  }
339
319
  }
340
320
 
341
321
  &.btn-sm:hover {
342
322
  &::after {
343
- height: $u2;
344
- width: $u2;
323
+ height: units.$u2;
324
+ width: units.$u2;
345
325
  }
346
326
  }
347
327
  }
348
328
  }
349
329
  }
350
330
 
351
- @mixin button_anchor-secondary() {
331
+ @mixin anchor-secondary() {
352
332
  text-decoration: none;
353
333
 
354
334
  &,
355
335
  &:visited {
356
- color: $dso-button-secondary-color;
336
+ color: button-variables.$secondary-color;
357
337
 
358
338
  &:hover {
359
- color: $dso-button-secondary-hover-color;
339
+ color: button-variables.$secondary-hover-color;
360
340
  }
361
341
  }
362
342
  }
363
343
 
364
- @mixin button_tertiary($base-styling: true, $icon-only: false, $modifiers: true) {
344
+ @mixin tertiary($base-styling: true, $icon-only: false, $modifiers: true) {
365
345
  @if ($base-styling) {
366
- @include button_base($modifiers);
346
+ @include base($modifiers);
367
347
  }
368
348
 
369
349
  border: 0;
370
- color: $dso-button-tertiary-color;
350
+ color: button-variables.$tertiary-color;
371
351
  line-height: 1;
372
352
  padding: 0;
373
353
  background-color: transparent;
374
354
 
375
355
  &[disabled] {
376
- color: $grasgroen-40;
356
+ color: colors.$grasgroen-40;
377
357
 
378
358
  &.dso-spinner-left,
379
359
  &.dso-spinner-right {
380
- color: $grasgroen;
360
+ color: colors.$grasgroen;
381
361
  }
382
362
  }
383
363
 
384
364
  &:not([disabled]) {
385
365
  &:hover {
386
- color: $dso-button-tertiary-hover-color;
366
+ color: button-variables.$tertiary-hover-color;
387
367
  text-decoration: underline;
388
368
  text-underline-position: under;
389
369
  }
390
370
 
391
371
  &:active {
392
- color: $dso-button-tertiary-active-color;
372
+ color: button-variables.$tertiary-active-color;
393
373
  }
394
374
  }
395
375
 
396
376
  &.btn-align {
397
377
  line-height: calc(1.5em - 1px);
398
- padding: $dso-button-tertiary-padding-horizontal 0;
378
+ padding: button-variables.$tertiary-padding-horizontal 0;
399
379
  position: relative;
400
380
  }
401
381
 
402
382
  &.dso-spinner-left {
403
383
  &::before {
404
- @include _button-spinner-icon($color: $grasgroen, $valign: middle, $position: left);
384
+ @include _spinner-icon($color: colors.$grasgroen, $valign: middle, $position: left);
405
385
  }
406
386
  }
407
387
 
408
388
  &.dso-spinner-right {
409
389
  &::after {
410
- @include _button-spinner-icon($color: $grasgroen, $valign: middle, $position: right);
390
+ @include _spinner-icon($color: colors.$grasgroen, $valign: middle, $position: right);
411
391
  }
412
392
  }
413
393
 
414
394
  @if ($icon-only) {
415
395
  > span {
416
- @include sr-only();
396
+ @include utilities.sr-only();
417
397
  }
418
398
  }
419
399
  @else {
@@ -421,14 +401,14 @@ $dso-button-tertiary-active-color: $scampi;
421
401
  svg.di + span:not(.sr-only),
422
402
  span:not(.sr-only) + dso-icon,
423
403
  span:not(.sr-only) + svg.di {
424
- margin-left: $u1;
404
+ margin-left: units.$u1;
425
405
  }
426
406
 
427
407
  svg.di.di-chevron-down + span:not(.sr-only),
428
408
  svg.di.di-chevron-up + span:not(.sr-only),
429
409
  span:not(.sr-only) + svg.di.di-chevron-down,
430
410
  span:not(.sr-only) + svg.di.di-chevron-up {
431
- margin-left: $u1 * 0.5;
411
+ margin-left: units.$u1 * 0.5;
432
412
  }
433
413
 
434
414
  dso-icon[icon="chevron-left"] + span:not(.sr-only),
@@ -450,39 +430,39 @@ $dso-button-tertiary-active-color: $scampi;
450
430
  }
451
431
  }
452
432
 
453
- @mixin button_anchor-tertiary() {
433
+ @mixin anchor-tertiary() {
454
434
  text-decoration: none;
455
435
 
456
436
  &,
457
437
  &:visited {
458
- color: $dso-button-tertiary-color;
438
+ color: button-variables.$tertiary-color;
459
439
  }
460
440
  }
461
441
 
462
- @mixin button_map_focus() {
442
+ @mixin map-focus() {
463
443
  $focus-map: (
464
- "background-color": $dso-button-secondary-hover-background-color,
465
- "border-color": $dso-button-secondary-hover-background-color,
466
- "color": $wit,
444
+ "background-color": button-variables.$secondary-hover-background-color,
445
+ "border-color": button-variables.$secondary-hover-background-color,
446
+ "color": colors.$wit,
467
447
  "type-download-di": "download-wit",
468
448
  "type-extern-di": "external-link-wit"
469
449
  );
470
450
 
471
451
  &:focus-visible {
472
- @include _button_shared-variant($focus-map);
452
+ @include _shared-variant($focus-map);
473
453
 
474
454
  outline: none;
475
455
  }
476
456
  }
477
457
 
478
- @mixin button_map() {
479
- @include button_secondary($modifiers: false);
480
- @include button_map_focus();
458
+ @mixin map() {
459
+ @include secondary($modifiers: false);
460
+ @include map-focus();
481
461
 
482
462
  border: 0;
483
463
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);
484
464
  font-weight: 600;
485
- margin-right: $u2;
486
- padding: $u1 $u2;
465
+ margin-right: units.$u2;
466
+ padding: units.$u1 units.$u2;
487
467
  white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- No word wrapping in buttons on maps
488
468
  }
@@ -1,20 +1,35 @@
1
- // Order matters: packages\dso-toolkit\libs\bootstrap-sass\assets\stylesheets\bootstrap\_variables.scss
2
- @import "variables/units";
3
- @import "variables/colors";
4
- @import "variables/typography";
5
- @import "variables/scaffolding";
6
- @import "variables/media-queries-breakpoints";
7
- @import "variables/states";
8
- @import "variables/zindex";
1
+ @use "../../variables/units";
2
+ @use "../../variables/colors";
9
3
 
10
- // Alphabetical ordered components
11
- @import "../components/icon/icon.variables"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
4
+ $border-radius: 4px;
5
+ $min-width: units.$u7;
6
+ $horizontal-padding: units.$u2 - 1px;
7
+ $vertical-padding: units.$u1 * 1.5 - 1px;
12
8
 
13
- $dso-buttons: ".btn, .dso-primary, .dso-secondary, .dso-tertiary";
9
+ $primary-background-color: colors.$grasgroen;
10
+ $primary-color: colors.$wit;
11
+ $primary-hover-background-color: colors.$bosgroen;
12
+ $primary-active-background-color: colors.$bosgroen-130;
13
+ $primary-disabled-background-color: colors.$grasgroen-40;
14
+
15
+ $secondary-background-color: colors.$wit;
16
+ $secondary-border-color: colors.$grasgroen;
17
+ $secondary-color: colors.$grasgroen;
18
+ $secondary-hover-background-color: colors.$grasgroen;
19
+ $secondary-hover-color: colors.$wit;
20
+ $secondary-active-background-color: colors.$bosgroen;
21
+ $secondary-disabled-color: colors.$grasgroen-40;
22
+
23
+ $tertiary-padding-horizontal: $vertical-padding;
24
+ $tertiary-color: colors.$grasgroen;
25
+ $tertiary-hover-color: colors.$scampi;
26
+ $tertiary-active-color: colors.$scampi;
27
+
28
+ $buttons: ".btn, .dso-primary, .dso-secondary, .dso-tertiary";
14
29
  $not-dso-buttons: ":not(.btn):not(.dso-primary):not(.dso-secondary):not(.dso-tertiary)";
15
30
 
16
31
  // stylelint-disable string-no-newline -- Escaped new lines wanted to improve readability
17
- $dso-button-adjacent: "\
32
+ $button-adjacent: "\
18
33
  .btn + .btn,\
19
34
  .btn + .dso-primary,\
20
35
  .btn + .dso-secondary,\
@@ -36,7 +51,7 @@ $dso-button-adjacent: "\
36
51
  .dso-tertiary + .dso-tertiary\
37
52
  ";
38
53
 
39
- $dso-button-adjacent-secondary: "\
54
+ $button-adjacent-secondary: "\
40
55
  .btn + .dso-secondary,\
41
56
  .btn + .btn-default,\
42
57
  \
@@ -50,7 +65,7 @@ $dso-button-adjacent-secondary: "\
50
65
  .dso-tertiary + .btn-default\
51
66
  ";
52
67
 
53
- $dso-button-adjacent-tertiary: "\
68
+ $button-adjacent-tertiary: "\
54
69
  .btn + .dso-tertiary,\
55
70
  .btn + .btn-link,\
56
71
  \
@@ -0,0 +1,2 @@
1
+ @forward "description.mixins";
2
+ @forward "description.variables";