dso-toolkit 98.0.0 → 99.1.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 (50) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +2 -2
  3. package/dist/dso.css +245 -1212
  4. package/dist/dso.css.map +1 -1
  5. package/dist/dso.min.css +1 -1
  6. package/dist/dso.min.css.map +1 -1
  7. package/package.json +11 -13
  8. package/src/components/application-heading/application-heading.mixins.scss +2 -1
  9. package/src/components/blockquote/blockquote.variables.scss +1 -1
  10. package/src/components/body/body.scss +1 -1
  11. package/src/components/button/button.mixins.scss +2 -3
  12. package/src/components/button/button.scss +26 -33
  13. package/src/components/context/context.scss +1 -1
  14. package/src/components/document-header/document-header.scss +1 -1
  15. package/src/components/fieldset/fieldset.scss +1 -1
  16. package/src/components/form-control/form-control.mixins.scss +1 -1
  17. package/src/components/form-group/files/form-group-files.scss +1 -1
  18. package/src/components/form-group/form-group.scss +1 -1
  19. package/src/components/form-group/form-group.variables.scss +1 -1
  20. package/src/components/form-group/select/form-group-select.scss +1 -1
  21. package/src/components/form-group/static/form-group-static.scss +1 -1
  22. package/src/components/grid/grid.scss +7 -7
  23. package/src/components/html/html.scss +1 -1
  24. package/src/components/link/link.mixins.scss +24 -31
  25. package/src/components/link-list/link-list.mixins.scss +2 -0
  26. package/src/components/link-list/link-list.scss +3 -3
  27. package/src/components/navbar/navbar.mixins.scss +1 -1
  28. package/src/components/preformatted-text/preformatted-text.scss +2 -2
  29. package/src/components/rich-content/rich-content.mixins.scss +1 -2
  30. package/src/components/search-bar/search-bar.scss +3 -3
  31. package/src/components/step-counter/step-counter.mixins.scss +2 -1
  32. package/src/components/table/table.scss +1 -1
  33. package/src/di-inline.scss +89 -0
  34. package/src/di.scss +1 -1
  35. package/src/dso.scss +3 -3
  36. package/src/global/custom-properties.scss +3 -3
  37. package/src/global/mixins/set-colors.mixin.scss +19 -25
  38. package/src/global/spacing.scss +2 -5
  39. package/src/{components/icon/icon.variables.scss → variables/icon.scss} +1 -1
  40. package/src/variables/typography.scss +4 -8
  41. package/src/components/dropdown-menu/_index.scss +0 -2
  42. package/src/components/dropdown-menu/dropdown-menu.mixins.scss +0 -135
  43. package/src/components/dropdown-menu/dropdown-menu.scss +0 -150
  44. package/src/components/dropdown-menu/dropdown-menu.variables.scss +0 -6
  45. package/src/components/highlight-box/_index.scss +0 -2
  46. package/src/components/highlight-box/highlight-box.mixins.scss +0 -132
  47. package/src/components/highlight-box/highlight-box.scss +0 -108
  48. package/src/components/highlight-box/highlight-box.variables.scss +0 -4
  49. package/src/components/highlight-box/readme.md +0 -1
  50. package/src/components/icon/_index.scss +0 -1
@@ -1,135 +0,0 @@
1
- @use "sass:math";
2
-
3
- @use "../../variables/units";
4
- @use "../../variables/colors";
5
- @use "../../variables/scaffolding";
6
- @use "../../variables/typography";
7
- @use "../../variables/zindex";
8
-
9
- @use "../link";
10
-
11
- @use "dropdown-menu.variables" as dropdown-menu-variables;
12
-
13
- @mixin root() {
14
- display: inline-block;
15
- }
16
-
17
- @mixin children() {
18
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary),
19
- > .dso-primary,
20
- > .dso-secondary,
21
- > .dso-tertiary {
22
- position: relative;
23
-
24
- &::after {
25
- content: "";
26
- display: inline-block;
27
- }
28
- }
29
-
30
- > .dso-primary,
31
- > .dso-secondary {
32
- &::after {
33
- margin-inline-start: units.$u1;
34
- }
35
- }
36
-
37
- .dso-group-label {
38
- color: colors.$grijs-40;
39
- font-size: (math.div(14, 16) * 1em);
40
- font-weight: 400;
41
- margin: 0;
42
- padding-block: (units.$u1 * 0.5) (units.$u1 * 0.25);
43
- padding-inline: dropdown-menu-variables.$inline-padding;
44
- text-transform: uppercase;
45
- }
46
-
47
- ul {
48
- margin: 0;
49
- padding: 0;
50
-
51
- &:not(:last-child) {
52
- border-block-end: 1px solid colors.$grijs-10;
53
- margin-block-end: 11px;
54
- padding-block-end: 11px;
55
- }
56
- }
57
-
58
- .dso-dropdown-options {
59
- background-clip: padding-box;
60
- background-color: dropdown-menu-variables.$background-color;
61
- border-radius: scaffolding.$border-radius-base;
62
- border: 1px solid dropdown-menu-variables.$border-color;
63
- box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.4);
64
- font-size: typography.$root-font-size-base;
65
- min-inline-size: 160px;
66
- padding-block: 5px;
67
- padding-inline: 0;
68
- z-index: zindex.$dropdown-options;
69
-
70
- li {
71
- list-style: none;
72
-
73
- a {
74
- &:visited {
75
- color: dropdown-menu-variables.$link-color;
76
- }
77
- }
78
-
79
- a,
80
- button {
81
- @include link.reverse();
82
-
83
- clear: both;
84
- color: dropdown-menu-variables.$link-color;
85
- display: block;
86
- font-weight: 400;
87
- line-height: 1.5;
88
- padding-block: 3px;
89
- padding-inline: dropdown-menu-variables.$inline-padding;
90
- text-decoration: none;
91
- white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- We don't want wrapping in Dropdown items
92
-
93
- &:hover,
94
- &:focus {
95
- background-color: colors.$grasgroen;
96
- border-color: colors.$grasgroen;
97
- color: colors.$wit;
98
- text-decoration: none;
99
- }
100
- }
101
-
102
- button {
103
- background-color: transparent;
104
- border: 0;
105
- border-radius: 0;
106
- text-align: inherit;
107
- inline-size: 100%;
108
- }
109
- }
110
- }
111
- }
112
-
113
- @mixin checkable() {
114
- .dso-group-label {
115
- padding-inline-start: units.$u5;
116
- }
117
-
118
- li {
119
- a,
120
- button {
121
- padding-inline-start: units.$u5;
122
- }
123
-
124
- &.dso-checked {
125
- a,
126
- button {
127
- &:not(:focus) {
128
- background-color: colors.$grasgroen;
129
- border-color: colors.$grasgroen;
130
- color: colors.$wit;
131
- }
132
- }
133
- }
134
- }
135
- }
@@ -1,150 +0,0 @@
1
- @use "../../di";
2
- @use "../../variables/units";
3
- @use "../../variables/zindex";
4
-
5
- @use "../dropdown-menu";
6
-
7
- @mixin icons() {
8
- > .dso-primary {
9
- &::after {
10
- @include di.base("chevron-down-wit");
11
- }
12
- }
13
-
14
- > .dso-secondary {
15
- &::after {
16
- @include di.base("chevron-down");
17
- }
18
-
19
- &:active {
20
- &::after {
21
- @include di.variant("chevron-down-wit");
22
- }
23
- }
24
- }
25
-
26
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary),
27
- > .dso-tertiary {
28
- &::after {
29
- @include di.base("chevron-down");
30
-
31
- margin-inline-start: units.$u1 * 0.5;
32
- position: relative;
33
- inset-block-start: -2px;
34
- }
35
-
36
- &:hover {
37
- &::after {
38
- @include di.variant("chevron-down-scampi");
39
- }
40
- }
41
- }
42
- }
43
-
44
- @mixin icons-open() {
45
- > .dso-primary {
46
- &::after {
47
- @include di.variant("chevron-up-wit");
48
- }
49
- }
50
-
51
- > .dso-secondary {
52
- &::after {
53
- @include di.variant("chevron-up");
54
- }
55
-
56
- &:active::after {
57
- @include di.variant("chevron-up-wit");
58
- }
59
- }
60
-
61
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary),
62
- > .dso-tertiary {
63
- &::after {
64
- @include di.variant("chevron-up");
65
- }
66
-
67
- &:hover::after {
68
- @include di.variant("chevron-up-scampi");
69
- }
70
- }
71
- }
72
-
73
- // HTML/CSS
74
- .dso-dropdown-menu {
75
- @include dropdown-menu.root();
76
- @include dropdown-menu.children();
77
- @include icons();
78
-
79
- position: relative;
80
-
81
- &.dso-open {
82
- @include icons-open();
83
- }
84
-
85
- &.dso-checkable {
86
- @include dropdown-menu.checkable();
87
-
88
- li {
89
- &.dso-checked {
90
- a,
91
- button {
92
- &::before {
93
- @include di.base("check-wit", units.$u3);
94
-
95
- content: "";
96
- display: block;
97
- float: inline-start;
98
- margin-inline-start: units.$u4 * -1;
99
- margin-inline-end: units.$u1;
100
- }
101
- }
102
- }
103
- }
104
- }
105
-
106
- &.dso-dropdown-align-right {
107
- .dso-dropdown-options {
108
- inset-inline-end: 0;
109
- }
110
- }
111
-
112
- .dso-dropdown-options {
113
- margin-block: 2px 0;
114
- margin-inline: 0;
115
- position: absolute;
116
- text-align: start;
117
- inset-block-start: 100%;
118
- }
119
- }
120
-
121
- // Web Component
122
- dso-dropdown-menu {
123
- @include dropdown-menu.children();
124
- @include icons();
125
-
126
- &[open] {
127
- @include icons-open();
128
- }
129
-
130
- &[checkable] {
131
- @include dropdown-menu.checkable();
132
-
133
- li {
134
- &.dso-checked {
135
- a,
136
- button {
137
- &::before {
138
- @include di.base("check-wit", units.$u3);
139
-
140
- content: "";
141
- display: block;
142
- float: inline-start;
143
- margin-inline-start: units.$u4 * -1;
144
- margin-inline-end: units.$u1;
145
- }
146
- }
147
- }
148
- }
149
- }
150
- }
@@ -1,6 +0,0 @@
1
- @use "../../variables/colors";
2
-
3
- $background-color: colors.$wit;
4
- $border-color: rgba(0, 0, 0, 0.15);
5
- $link-color: colors.$grijs-90;
6
- $inline-padding: 20px;
@@ -1,2 +0,0 @@
1
- @forward "highlight-box.mixins";
2
- @forward "highlight-box.variables";
@@ -1,132 +0,0 @@
1
- @use "../../variables/units";
2
- @use "../../variables/colors";
3
- @use "../../global/mixins/set-colors.mixin" as set-colors;
4
- @use "../../di";
5
-
6
- @use "../button";
7
- @use "../step-counter";
8
-
9
- @use "highlight-box.variables" as highlight-box-variables;
10
-
11
- @mixin root() {
12
- margin-block-start: units.$u2;
13
- padding: units.$u2;
14
- margin-block-end: units.$block-spacing-large;
15
-
16
- block-size: var(--highlight-box-block-size, unset);
17
- min-block-size: var(--highlight-box-min-block-size, unset);
18
-
19
- &[has-counter] {
20
- block-size: var(--highlight-box-counter-block-size, unset);
21
- }
22
-
23
- &:not([has-counter]) {
24
- block-size: var(--highlight-box-nocounter-block-size, unset);
25
- }
26
- }
27
-
28
- @mixin children(
29
- $grey-selector,
30
- $white-selector,
31
- $yellow-selector,
32
- $green-selector,
33
- $drop-shadow-selector,
34
- $border-selector,
35
- $has-counter-selector,
36
- $step-counter-selector
37
- ) {
38
- &:not(#{$white-selector}, #{$yellow-selector}, #{$border-selector}, #{$green-selector}) {
39
- @include set-colors.apply(colors.$grijs-5, "highlight-box");
40
- }
41
-
42
- &#{$grey-selector} {
43
- @include set-colors.apply(colors.$grijs-5, "highlight-box");
44
- }
45
-
46
- &#{$white-selector} {
47
- @include set-colors.apply(colors.$wit, "highlight-box");
48
- }
49
-
50
- &#{$yellow-selector} {
51
- @include set-colors.apply(colors.$geel-20, "highlight-box");
52
- }
53
-
54
- &#{$green-selector} {
55
- @include set-colors.apply(colors.$grasgroen-10, "highlight-box");
56
- }
57
-
58
- &#{$drop-shadow-selector} {
59
- box-shadow: highlight-box-variables.$box-shadow;
60
- }
61
-
62
- &#{$border-selector} {
63
- border: 1px solid colors.$grijs-20;
64
- padding: #{units.$u2 - 1};
65
- }
66
-
67
- &#{$border-selector}:not(#{$grey-selector}, #{$yellow-selector}) {
68
- @include set-colors.apply(colors.$wit, "highlight-box");
69
-
70
- border-color: colors.$grijs-20;
71
- }
72
-
73
- &#{$has-counter-selector} {
74
- margin-block-start: highlight-box-variables.$margin-block-start;
75
-
76
- @include step-counter.has-step-counter();
77
- }
78
-
79
- > .dso-highlight-box-banner {
80
- aspect-ratio: 2.38 / 1;
81
- margin-inline-start: units.$u2 * -1;
82
- margin-inline-end: units.$u2 * -1;
83
- margin-block-start: units.$u2 * -1;
84
- object-fit: cover;
85
- inline-size: calc(100% + #{units.$u4});
86
- max-inline-size: unset;
87
-
88
- @container (min-width: 360px) and (max-width: 470px) {
89
- aspect-ratio: 3 / 1;
90
- }
91
-
92
- @container (min-width: 471px) {
93
- aspect-ratio: 3.5 / 1;
94
- }
95
- }
96
-
97
- > #{$step-counter-selector} + .dso-rich-content,
98
- > .dso-rich-content:first-child {
99
- *:first-child {
100
- margin-block-start: 0 !important;
101
- }
102
- }
103
-
104
- > *:last-child {
105
- margin-block-end: 0 !important;
106
- }
107
-
108
- .dso-tertiary:not([disabled]) {
109
- &:hover {
110
- &,
111
- dso-icon {
112
- text-decoration: underline;
113
- }
114
- }
115
- }
116
-
117
- &:not(#{$border-selector}):not(#{$white-selector}) .dso-button-row .dso-tertiary {
118
- &.extern::after {
119
- @include di.variant("external-link-zwart");
120
- }
121
-
122
- &.download::after {
123
- @include di.variant("download-zwart");
124
- }
125
- }
126
- }
127
-
128
- @mixin exoticChildren() {
129
- .dso-tertiary:not([disabled]) {
130
- color: colors.$zwart;
131
- }
132
- }
@@ -1,108 +0,0 @@
1
- @use "../highlight-box";
2
- @use "../link-list";
3
- @use "../step-counter";
4
-
5
- @use "../../di";
6
-
7
- // HTML/CSS
8
- .dso-highlight-box {
9
- @include highlight-box.root();
10
- @include highlight-box.children(
11
- $grey-selector: ".dso-grey",
12
- $white-selector: ".dso-white",
13
- $yellow-selector: ".dso-yellow",
14
- $green-selector: ".dso-green",
15
- $drop-shadow-selector: ".dso-drop-shadow",
16
- $border-selector: ".dso-border",
17
- $has-counter-selector: ".dso-has-counter",
18
- $step-counter-selector: ".dso-step-counter:first-child"
19
- );
20
-
21
- @include step-counter.step-counter();
22
-
23
- container-type: inline-size;
24
- position: relative;
25
- z-index: 1;
26
-
27
- &.dso-yellow,
28
- &:not(.dso-border):not(.dso-white) {
29
- @include highlight-box.exoticChildren();
30
- }
31
-
32
- .dso-step-counter > dso-icon {
33
- @include step-counter.icon();
34
- }
35
-
36
- &:not(.dso-border):not(.dso-white) {
37
- .dso-link-list {
38
- @include link-list.exotic();
39
-
40
- a {
41
- &,
42
- &:active,
43
- &:focus,
44
- &:hover {
45
- &::before {
46
- @include di.base("chevron-right-zwart");
47
- }
48
- }
49
-
50
- &.download {
51
- @include di.variant("download-zwart");
52
- }
53
-
54
- &.extern {
55
- @include di.variant("external-link-zwart");
56
- }
57
- }
58
- }
59
- }
60
- }
61
-
62
- // Web Component
63
- dso-highlight-box {
64
- @include highlight-box.children(
65
- $grey-selector: "[grey]",
66
- $white-selector: "[white]",
67
- $yellow-selector: "[yellow]",
68
- $green-selector: "[green]",
69
- $drop-shadow-selector: "[drop-shadow]",
70
- $border-selector: "[border]",
71
- $has-counter-selector: "[has-counter]",
72
- $step-counter-selector: '[slot="icon"]:first-child'
73
- );
74
-
75
- dso-icon[slot="icon"] {
76
- @include step-counter.icon();
77
- }
78
-
79
- &[yellow],
80
- &:not([border]):not([white]) {
81
- @include highlight-box.exoticChildren();
82
- }
83
-
84
- &:not([border]):not([white]) {
85
- .dso-link-list {
86
- @include link-list.exotic();
87
-
88
- a {
89
- &,
90
- &:active,
91
- &:focus,
92
- &:hover {
93
- &::before {
94
- @include di.base("chevron-right-zwart");
95
- }
96
- }
97
-
98
- &.download {
99
- @include di.variant("download-zwart");
100
- }
101
-
102
- &.extern {
103
- @include di.variant("external-link-zwart");
104
- }
105
- }
106
- }
107
- }
108
- }
@@ -1,4 +0,0 @@
1
- @use "../../variables/units";
2
-
3
- $box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
4
- $margin-block-start: units.$shared-equal-heights-highlight-box-block-size;
@@ -1 +0,0 @@
1
- # `.dso-highlight-box`
@@ -1 +0,0 @@
1
- @forward "icon.variables";