dso-toolkit 97.1.1 → 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 (90) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +2 -2
  3. package/dist/dso.css +480 -1807
  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 +14 -16
  8. package/src/components/action-list/readme.md +1 -0
  9. package/src/components/alert/readme.md +5 -0
  10. package/src/components/application-heading/readme.md +5 -0
  11. package/src/components/attachments-counter/readme.md +5 -0
  12. package/src/components/badge/readme.md +5 -0
  13. package/src/components/banner/readme.md +1 -0
  14. package/src/components/breadcrumbs/readme.md +1 -0
  15. package/src/components/button/button.mixins.scss +5 -6
  16. package/src/components/button/button.scss +28 -35
  17. package/src/components/button/readme.md +10 -0
  18. package/src/components/button-row/readme.md +1 -0
  19. package/src/components/card/readme.md +3 -0
  20. package/src/components/context/context.scss +1 -1
  21. package/src/components/context/readme.md +1 -0
  22. package/src/components/definition-list/definition-list.scss +10 -10
  23. package/src/components/definition-list/readme.md +1 -0
  24. package/src/components/delete/delete.mixins.scss +2 -2
  25. package/src/components/description/readme.md +1 -0
  26. package/src/components/document-header/document-header.scss +1 -1
  27. package/src/components/document-header/readme.md +10 -0
  28. package/src/components/dropdown-menu/readme.md +45 -0
  29. package/src/components/expandable/readme.md +1 -0
  30. package/src/components/footer/readme.md +1 -0
  31. package/src/components/footnotes/readme.md +1 -0
  32. package/src/components/form/readme.md +40 -0
  33. package/src/components/form-buttons/readme.md +1 -0
  34. package/src/components/form-group/form-group.scss +0 -4
  35. package/src/components/form-group/readme.md +40 -0
  36. package/src/components/form-group/select/form-group-select.scss +1 -1
  37. package/src/components/grid/grid.scss +7 -7
  38. package/src/components/heading/heading.mixins.scss +18 -18
  39. package/src/components/heading/heading.scss +7 -7
  40. package/src/components/image/readme.md +1 -0
  41. package/src/components/info/readme.md +3 -0
  42. package/src/components/insert/insert.mixins.scss +1 -1
  43. package/src/components/justify-form-groups/readme.md +5 -0
  44. package/src/components/label/readme.md +7 -0
  45. package/src/components/label-group/readme.md +1 -0
  46. package/src/components/link/link.mixins.scss +24 -31
  47. package/src/components/link/readme.md +5 -0
  48. package/src/components/link-list/link-list.mixins.scss +2 -0
  49. package/src/components/link-list/link-list.scss +3 -3
  50. package/src/components/link-list/readme.md +1 -0
  51. package/src/components/list/readme.md +8 -0
  52. package/src/components/list-button/readme.md +1 -0
  53. package/src/components/mark/mark.scss +4 -4
  54. package/src/components/modal/readme.md +3 -0
  55. package/src/components/navbar/readme.md +1 -0
  56. package/src/components/paragraph/readme.md +1 -0
  57. package/src/components/progress-indicator/readme.md +6 -0
  58. package/src/components/rich-content/readme.md +1 -0
  59. package/src/components/rich-content/rich-content.mixins.scss +2 -3
  60. package/src/components/rich-content/rich-content.scss +4 -4
  61. package/src/components/row-equal-heights/readme.md +1 -0
  62. package/src/components/scrollable/readme.md +0 -0
  63. package/src/components/search-bar/readme.md +1 -0
  64. package/src/components/shopping-cart/readme.md +1 -0
  65. package/src/components/tabs/readme.md +17 -0
  66. package/src/components/tile/readme.md +1 -0
  67. package/src/components/tile-grid/readme.md +1 -0
  68. package/src/di-inline.scss +89 -0
  69. package/src/di.scss +1 -1
  70. package/src/dso.scss +3 -5
  71. package/src/global/custom-properties.scss +3 -3
  72. package/src/global/mixins/set-colors.mixin.scss +19 -25
  73. package/src/global/spacing.scss +2 -5
  74. package/src/{components/icon/icon.variables.scss → variables/icon.scss} +1 -1
  75. package/src/components/alert/_index.scss +0 -2
  76. package/src/components/alert/alert.mixins.scss +0 -172
  77. package/src/components/alert/alert.scss +0 -67
  78. package/src/components/dropdown-menu/_index.scss +0 -2
  79. package/src/components/dropdown-menu/dropdown-menu.mixins.scss +0 -135
  80. package/src/components/dropdown-menu/dropdown-menu.scss +0 -150
  81. package/src/components/dropdown-menu/dropdown-menu.variables.scss +0 -6
  82. package/src/components/highlight-box/_index.scss +0 -2
  83. package/src/components/highlight-box/highlight-box.mixins.scss +0 -132
  84. package/src/components/highlight-box/highlight-box.scss +0 -108
  85. package/src/components/highlight-box/highlight-box.variables.scss +0 -4
  86. package/src/components/icon/_index.scss +0 -1
  87. package/src/components/info-button/_index.scss +0 -2
  88. package/src/components/info-button/info-button.mixins.scss +0 -28
  89. package/src/components/info-button/info-button.scss +0 -20
  90. package/src/components/info-button/info-button.variables.scss +0 -3
@@ -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
- @forward "icon.variables";
@@ -1,2 +0,0 @@
1
- @forward "info-button.mixins";
2
- @forward "info-button.variables";
@@ -1,28 +0,0 @@
1
- @use "../../variables/units";
2
- @use "../../variables/colors";
3
- @use "../../variables/media-query-breakpoints";
4
-
5
- @mixin root() {
6
- background-color: transparent;
7
- color: colors.$grasgroen;
8
- border: 0;
9
- margin-inline-start: var(--_dt-info-button-margin-inline-start, units.$u1);
10
- padding: 0;
11
- }
12
-
13
- @mixin controlLabelSibling() {
14
- @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
15
- margin-block-start: #{units.$u1 - 1};
16
-
17
- .dso-radios &,
18
- .dso-checkboxes &,
19
- .dso-files &,
20
- .dso-input-text &,
21
- .dso-form-group-search-bar &,
22
- .dso-select &,
23
- .dso-static &,
24
- .dso-textarea & {
25
- margin-block-start: 0;
26
- }
27
- }
28
- }
@@ -1,20 +0,0 @@
1
- @use "../button";
2
- @use "../info-button";
3
-
4
- @use "../../di";
5
-
6
- .dso-info-button {
7
- @include button.base($modifiers: false);
8
- @include info-button.root();
9
- @include di.base("info-outline", info-button.$size);
10
-
11
- &.dso-open,
12
- &:hover,
13
- &:active {
14
- @include di.variant("info-solid");
15
- }
16
- }
17
-
18
- .control-label + .dso-info-button {
19
- @include info-button.controlLabelSibling();
20
- }
@@ -1,3 +0,0 @@
1
- @use "../../variables/units";
2
-
3
- $size: units.$u3;