dso-toolkit 98.0.0 → 99.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 (34) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -2
  3. package/dist/dso.css +219 -1186
  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/button/button.mixins.scss +1 -2
  9. package/src/components/button/button.scss +26 -33
  10. package/src/components/context/context.scss +1 -1
  11. package/src/components/document-header/document-header.scss +1 -1
  12. package/src/components/form-group/select/form-group-select.scss +1 -1
  13. package/src/components/grid/grid.scss +7 -7
  14. package/src/components/link/link.mixins.scss +24 -31
  15. package/src/components/link-list/link-list.mixins.scss +2 -0
  16. package/src/components/link-list/link-list.scss +3 -3
  17. package/src/components/rich-content/rich-content.mixins.scss +1 -2
  18. package/src/di-inline.scss +89 -0
  19. package/src/di.scss +1 -1
  20. package/src/dso.scss +3 -3
  21. package/src/global/custom-properties.scss +3 -3
  22. package/src/global/mixins/set-colors.mixin.scss +19 -25
  23. package/src/global/spacing.scss +2 -5
  24. package/src/{components/icon/icon.variables.scss → variables/icon.scss} +1 -1
  25. package/src/components/dropdown-menu/_index.scss +0 -2
  26. package/src/components/dropdown-menu/dropdown-menu.mixins.scss +0 -135
  27. package/src/components/dropdown-menu/dropdown-menu.scss +0 -150
  28. package/src/components/dropdown-menu/dropdown-menu.variables.scss +0 -6
  29. package/src/components/highlight-box/_index.scss +0 -2
  30. package/src/components/highlight-box/highlight-box.mixins.scss +0 -132
  31. package/src/components/highlight-box/highlight-box.scss +0 -108
  32. package/src/components/highlight-box/highlight-box.variables.scss +0 -4
  33. package/src/components/highlight-box/readme.md +0 -1
  34. package/src/components/icon/_index.scss +0 -1
@@ -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";