dso-toolkit 64.0.0 → 65.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 (53) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/dso.css +431 -214
  3. package/dist/dso.css.map +1 -1
  4. package/dist/dso.min.css +1 -1
  5. package/dist/dso.min.css.map +1 -1
  6. package/dist/index.js +3 -1
  7. package/package.json +2 -2
  8. package/src/components/accordion/accordion-theme-compact.scss +8 -2
  9. package/src/components/action-list/action-list.scss +2 -2
  10. package/src/components/alert/alert.scss +5 -1
  11. package/src/components/attachments-counter/attachments-counter.scss +5 -2
  12. package/src/components/breadcrumbs/breadcrumbs.mixins.scss +7 -5
  13. package/src/components/button/button.mixins.scss +20 -13
  14. package/src/components/context/context.scss +10 -7
  15. package/src/components/definition-list/definition-list.scss +39 -10
  16. package/src/components/delete/delete.mixins.scss +3 -1
  17. package/src/components/description/description.scss +4 -2
  18. package/src/components/document-header/document-header.scss +15 -7
  19. package/src/components/dropdown-menu/dropdown-menu.mixins.scss +12 -9
  20. package/src/components/dropdown-menu/dropdown-menu.scss +26 -14
  21. package/src/components/footer/footer.scss +8 -5
  22. package/src/components/form/form-buttons/form-buttons.scss +4 -1
  23. package/src/components/form/form-group-collection.scss +6 -4
  24. package/src/components/form/form-group.scss +9 -6
  25. package/src/components/form/form-groups/select/form-group-select.scss +9 -6
  26. package/src/components/form-control/form-control.mixins.scss +17 -15
  27. package/src/components/grid/grid.scss +10 -4
  28. package/src/components/heading/_index.scss +1 -0
  29. package/src/components/{headings/headings.scss → heading/heading.scss} +9 -9
  30. package/src/components/highlight-box/highlight-box.scss +6 -3
  31. package/src/components/info/info.scss +5 -2
  32. package/src/components/info-button/info-button.mixins.scss +7 -5
  33. package/src/components/insert/insert.mixins.scss +3 -1
  34. package/src/components/label/label.mixins.scss +6 -2
  35. package/src/components/link-list/link-list.mixins.scss +4 -1
  36. package/src/components/link-list/link-list.scss +6 -3
  37. package/src/components/list-button/list-button.mixins.scss +42 -26
  38. package/src/components/mark/mark.scss +4 -3
  39. package/src/components/modal/modal.mixins.scss +21 -12
  40. package/src/components/modal/modal.scss +6 -3
  41. package/src/components/navbar/navbar.mixins.scss +15 -9
  42. package/src/components/pagination/pagination.mixins.scss +53 -51
  43. package/src/components/pagination/pagination.scss +6 -1
  44. package/src/components/search-bar/search-bar.scss +31 -23
  45. package/src/components/shopping-cart/shopping-cart.scss +26 -16
  46. package/src/components/tabs/tabs.scss +19 -13
  47. package/src/components/viewer-grid/viewer-grid.scss +4 -1
  48. package/src/di.scss +11 -7
  49. package/src/dso.scss +1 -1
  50. package/src/global/mixins/set-colors.mixin.scss +32 -31
  51. package/src/global/spacing.scss +4 -0
  52. package/src/components/headings/_index.scss +0 -1
  53. /package/src/components/{headings/headings.mixins.scss → heading/heading.mixins.scss} +0 -0
@@ -33,9 +33,12 @@
33
33
  &::before {
34
34
  @include di.base("search");
35
35
 
36
- content: "";
37
- display: inline-block;
38
- font-size: 1rem;
36
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
37
+ & {
38
+ content: "";
39
+ display: inline-block;
40
+ font-size: 1rem;
41
+ }
39
42
  }
40
43
 
41
44
  + input,
@@ -47,23 +50,25 @@
47
50
  input {
48
51
  @include utilities.placeholder(colors.$input-color-placeholder);
49
52
 
50
- background-color: colors.$wit;
51
- background-image: none;
52
- border: 1px solid form-control.$focus-border-color;
53
- border-radius: 4px;
54
- border-width: 1px;
55
- box-shadow: none;
56
- display: block;
57
- font-size: typography.$root-font-size-base;
58
- block-size: css-search-bar-variables.$block-size;
59
- line-height: css-search-bar-variables.$block-size;
60
- padding-block: 6px;
61
- padding-inline: units.$u1 css-search-bar-variables.$block-size;
62
-
63
- transition:
64
- border-color ease-in-out 0.15s,
65
- box-shadow ease-in-out 0.15s;
66
- inline-size: 100%;
53
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
54
+ & {
55
+ background-color: colors.$wit;
56
+ background-image: none;
57
+ border: 1px solid form-control.$focus-border-color;
58
+ border-radius: 4px;
59
+ border-width: 1px;
60
+ box-shadow: none;
61
+ display: block;
62
+ font-size: typography.$root-font-size-base;
63
+ block-size: css-search-bar-variables.$block-size;
64
+ line-height: css-search-bar-variables.$block-size;
65
+ padding-block: 6px;
66
+ padding-inline: units.$u1 css-search-bar-variables.$block-size;
67
+ transition:
68
+ border-color ease-in-out 0.15s,
69
+ box-shadow ease-in-out 0.15s;
70
+ inline-size: 100%;
71
+ }
67
72
 
68
73
  &:focus {
69
74
  border-color: form-control.$focus-border-color;
@@ -93,9 +98,12 @@
93
98
  &::before {
94
99
  @include di.base("times");
95
100
 
96
- content: "";
97
- display: inline-block;
98
- font-size: typography.$root-font-size-base;
101
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
102
+ & {
103
+ content: "";
104
+ display: inline-block;
105
+ font-size: typography.$root-font-size-base;
106
+ }
99
107
  }
100
108
  }
101
109
 
@@ -11,15 +11,19 @@
11
11
  .dso-shopping-cart {
12
12
  .dso-status {
13
13
  @include set-colors.apply(colors.$grijs-5);
14
- border: 0;
15
- border-radius: css-shopping-cart-variables.$radius;
16
- box-shadow: none;
17
- display: block;
18
- font-weight: 600;
19
- padding-block: units.$u2;
20
- padding-inline: units.$u6;
21
- position: relative;
22
- text-align: start;
14
+
15
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
16
+ & {
17
+ border: 0;
18
+ border-radius: css-shopping-cart-variables.$radius;
19
+ box-shadow: none;
20
+ display: block;
21
+ font-weight: 600;
22
+ padding-block: units.$u2;
23
+ padding-inline: units.$u6;
24
+ position: relative;
25
+ text-align: start;
26
+ }
23
27
 
24
28
  dso-icon,
25
29
  svg.di {
@@ -56,10 +60,13 @@
56
60
  .dso-contents {
57
61
  @include set-colors.apply(colors.$grijs-5);
58
62
 
59
- border: 0;
60
- border-radius: css-shopping-cart-variables.$radius;
61
- color: colors.$zwart;
62
- position: relative;
63
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
64
+ & {
65
+ border: 0;
66
+ border-radius: css-shopping-cart-variables.$radius;
67
+ color: colors.$zwart;
68
+ position: relative;
69
+ }
63
70
 
64
71
  > .dso-delete {
65
72
  position: absolute;
@@ -82,9 +89,12 @@
82
89
 
83
90
  @include set-colors.apply(colors.$grijs-5, $icons: false);
84
91
 
85
- border-radius: css-shopping-cart-variables.$radius;
86
- margin-block-end: 0;
87
- margin-block-start: 0;
92
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
93
+ & {
94
+ border-radius: css-shopping-cart-variables.$radius;
95
+ margin-block-end: 0;
96
+ margin-block-start: 0;
97
+ }
88
98
 
89
99
  li {
90
100
  border-block-start: 1px solid css-shopping-cart-variables.$border-color;
@@ -10,9 +10,12 @@
10
10
  .nav {
11
11
  @include utilities.clearfix();
12
12
 
13
- list-style: none;
14
- margin-block-end: 0;
15
- padding-inline-start: 0; // Override default ul/ol
13
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
14
+ & {
15
+ list-style: none;
16
+ margin-block-end: 0;
17
+ padding-inline-start: 0; // Override default ul/ol
18
+ }
16
19
 
17
20
  > li {
18
21
  position: relative;
@@ -94,16 +97,19 @@
94
97
  > a {
95
98
  @include anchor.clean();
96
99
 
97
- border: 1px solid transparent;
98
- border-radius: css-tabs-variables.$border-radius css-tabs-variables.$border-radius 0 0;
99
- color: css-tabs-variables.$text-color;
100
- display: block;
101
- line-height: typography.$line-height-base;
102
- margin-inline-end: 2px;
103
- min-block-size: css-tabs-variables.$block-size;
104
- padding-block: css-tabs-variables.$block-padding;
105
- padding-inline: css-tabs-variables.$inline-padding;
106
- position: relative;
100
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
101
+ & {
102
+ border: 1px solid transparent;
103
+ border-radius: css-tabs-variables.$border-radius css-tabs-variables.$border-radius 0 0;
104
+ color: css-tabs-variables.$text-color;
105
+ display: block;
106
+ line-height: typography.$line-height-base;
107
+ margin-inline-end: 2px;
108
+ min-block-size: css-tabs-variables.$block-size;
109
+ padding-block: css-tabs-variables.$block-padding;
110
+ padding-inline: css-tabs-variables.$inline-padding;
111
+ position: relative;
112
+ }
107
113
 
108
114
  &:hover {
109
115
  border-color: css-tabs-variables.$link-hover-border-color css-tabs-variables.$link-hover-border-color
@@ -31,6 +31,9 @@ dso-viewer-grid {
31
31
  .dso-toggle-main-button {
32
32
  @include button.tertiary($modifiers: false);
33
33
 
34
- padding-block: units.$u2;
34
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
35
+ & {
36
+ padding-block: units.$u2;
37
+ }
35
38
  }
36
39
  }
package/src/di.scss CHANGED
@@ -3,14 +3,18 @@
3
3
  @use "config";
4
4
 
5
5
  @mixin base($icon, $size: icon.$size, $vertical-align: icon.$vertical-align) {
6
- background: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}") no-repeat;
7
- background-position: center;
8
- background-size: cover;
9
- block-size: $size;
10
- vertical-align: $vertical-align;
11
- inline-size: $size;
6
+ & {
7
+ background: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}") no-repeat;
8
+ background-position: center;
9
+ background-size: cover;
10
+ block-size: $size;
11
+ vertical-align: $vertical-align;
12
+ inline-size: $size;
13
+ }
12
14
  }
13
15
 
14
16
  @mixin variant($icon) {
15
- background-image: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}");
17
+ & {
18
+ background-image: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}");
19
+ }
16
20
  }
package/src/dso.scss CHANGED
@@ -43,7 +43,7 @@
43
43
  @use "components/form-control/form-control";
44
44
  @use "components/grid/grid";
45
45
  @use "components/header/header";
46
- @use "components/headings/headings";
46
+ @use "components/heading/heading";
47
47
  @use "components/highlight-box/highlight-box";
48
48
  @use "components/horizontal-rule/horizontal-rule";
49
49
  @use "components/icon/icon";
@@ -18,43 +18,44 @@
18
18
 
19
19
  @mixin apply($background-color, $border-color: null, $icons: true, $links: true, $reverse: false) {
20
20
  $icon-color: null;
21
+ & {
22
+ // run contrast-color function to determine WCAG-compliant text color
23
+ $contrast-color: contrast-color.apply($background-color);
21
24
 
22
- // run contrast-color function to determine WCAG-compliant text color
23
- $contrast-color: contrast-color.apply($background-color);
25
+ // set link and icon color according to text color
26
+ @if color.lightness($background-color) < 100% {
27
+ @if $links == true {
28
+ --link-color: currentColor;
29
+ --link-hover-color: currentColor;
30
+ --link-visited-color: currentColor;
31
+ }
24
32
 
25
- // set link and icon color according to text color
26
- @if color.lightness($background-color) < 100% {
27
- @if $links == true {
28
- --link-color: currentColor;
29
- --link-hover-color: currentColor;
30
- --link-visited-color: currentColor;
31
- }
33
+ // set according to contrast color determined by contrast-color function
34
+ @if $contrast-color == colors.$contrast-dark {
35
+ $icon-color: "zwart";
36
+ } @else if $contrast-color == colors.$contrast-light {
37
+ $icon-color: "wit";
38
+ }
32
39
 
33
- // set according to contrast color determined by contrast-color function
34
- @if $contrast-color == colors.$contrast-dark {
35
- $icon-color: "zwart";
36
- } @else if $contrast-color == colors.$contrast-light {
37
- $icon-color: "wit";
40
+ // if contrast-color function gets it wrong, and therefore $reverse is set to true
41
+ @if $contrast-color == colors.$contrast-dark and $reverse == true {
42
+ $icon-color: "wit";
43
+ $contrast-color: colors.$contrast-light;
44
+ } @else if $contrast-color == colors.$contrast-light and $reverse == true {
45
+ $icon-color: "zwart";
46
+ $contrast-color: colors.$contrast-dark;
47
+ }
38
48
  }
39
49
 
40
- // if contrast-color function gets it wrong, and therefore $reverse is set to true
41
- @if $contrast-color == colors.$contrast-dark and $reverse == true {
42
- $icon-color: "wit";
43
- $contrast-color: colors.$contrast-light;
44
- } @else if $contrast-color == colors.$contrast-light and $reverse == true {
45
- $icon-color: "zwart";
46
- $contrast-color: colors.$contrast-dark;
47
- }
48
- }
50
+ // set css properties
51
+ background-color: $background-color;
52
+ border-color: if($border-color, $border-color, $background-color);
53
+ color: $contrast-color;
49
54
 
50
- // set css properties
51
- background-color: $background-color;
52
- border-color: if($border-color, $border-color, $background-color);
53
- color: $contrast-color;
54
-
55
- // implement icon color according to background color
56
- @if $icon-color and $icons == true {
57
- @include _anchorIconColors($icon-color);
55
+ // implement icon color according to background color
56
+ @if $icon-color and $icons == true {
57
+ @include _anchorIconColors($icon-color);
58
+ }
58
59
  }
59
60
  }
60
61
 
@@ -64,3 +64,7 @@
64
64
  margin-block-start: units.$block-spacing-medium;
65
65
  }
66
66
  }
67
+
68
+ li:has(dso-project-item) + li:has(dso-project-item) {
69
+ margin-block-start: units.$block-spacing-small;
70
+ }
@@ -1 +0,0 @@
1
- @forward "headings.mixins";