dso-toolkit 81.1.0 → 83.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.
- package/CHANGELOG.md +33 -0
- package/dist/dso.css +57 -1271
- package/dist/dso.css.map +1 -1
- package/dist/dso.min.css +1 -1
- package/dist/dso.min.css.map +1 -1
- package/dist/index.js +0 -2
- package/package.json +19 -19
- package/src/components/definition-list/definition-list.scss +1 -1
- package/src/components/form-group/checkboxes/form-group-checkboxes.scss +3 -3
- package/src/components/form-group/confirm/form-group-confirm.scss +2 -2
- package/src/components/form-group/files/form-group-files.scss +1 -2
- package/src/components/form-group/radios/form-group-radios.scss +5 -7
- package/src/components/justify-form-groups/justify-form-groups.scss +1 -1
- package/src/components/preformatted-text/preformatted-text.scss +1 -1
- package/src/dso.scss +0 -6
- package/src/global/spacing.scss +17 -0
- package/src/utilities.scss +2 -2
- package/src/components/accordion/_index.scss +0 -1
- package/src/components/accordion/accordion-theme-compact.scss +0 -161
- package/src/components/accordion/accordion-theme-conclusion.scss +0 -119
- package/src/components/accordion/accordion-theme-default.scss +0 -115
- package/src/components/accordion/accordion.scss +0 -400
- package/src/components/accordion/accordion.variables.scss +0 -35
- package/src/components/accordion/readme.md +0 -33
- package/src/components/card/_index.scss +0 -1
- package/src/components/card/card.scss +0 -126
- package/src/components/card/card.variables.scss +0 -7
- package/src/components/document-list/document-list.scss +0 -97
- package/src/components/document-list/readme.md +0 -1
- package/src/components/progress-bar/_index.scss +0 -2
- package/src/components/progress-bar/progress-bar.mixins.scss +0 -27
- package/src/components/progress-bar/progress-bar.scss +0 -5
- package/src/components/progress-bar/progress-bar.variables.scss +0 -9
- package/src/components/progress-bar/readme.md +0 -1
- package/src/components/progress-indicator/_index.scss +0 -1
- package/src/components/progress-indicator/progress-indicator.mixins.scss +0 -55
- package/src/components/progress-indicator/progress-indicator.scss +0 -40
- package/src/components/selectable/_index.scss +0 -2
- package/src/components/selectable/readme.md +0 -1
- package/src/components/selectable/selectable.mixins.scss +0 -238
- package/src/components/selectable/selectable.scss +0 -25
- package/src/components/selectable/selectable.variables.scss +0 -13
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
@use "../../variables/typography";
|
|
3
|
-
|
|
4
|
-
@use "progress-bar.variables" as progress-bar-variables;
|
|
5
|
-
|
|
6
|
-
@mixin root() {
|
|
7
|
-
margin-block-end: units.$u1;
|
|
8
|
-
|
|
9
|
-
.progress-bar {
|
|
10
|
-
background-color: progress-bar-variables.$background-color;
|
|
11
|
-
border: 1px solid progress-bar-variables.$color;
|
|
12
|
-
display: block;
|
|
13
|
-
block-size: progress-bar-variables.$block-size;
|
|
14
|
-
|
|
15
|
-
> span {
|
|
16
|
-
background-color: progress-bar-variables.$progress-color;
|
|
17
|
-
float: inline-start;
|
|
18
|
-
block-size: 100%;
|
|
19
|
-
inline-size: 0%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
+ span {
|
|
23
|
-
font-size: typography.$root-font-size-small;
|
|
24
|
-
margin-block-start: units.$u1;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# `.progress`
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "progress-indicator.mixins";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
|
|
3
|
-
@mixin _looping-size($progress-indicator-size) {
|
|
4
|
-
.dso-progress-indicator-spinner,
|
|
5
|
-
dso-icon {
|
|
6
|
-
block-size: $progress-indicator-size;
|
|
7
|
-
inline-size: $progress-indicator-size;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin root() {
|
|
12
|
-
.dso-progress-indicator-spinner {
|
|
13
|
-
display: inline-block;
|
|
14
|
-
margin: 0;
|
|
15
|
-
position: relative;
|
|
16
|
-
vertical-align: middle;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
span.dso-progress-indicator-label {
|
|
20
|
-
margin-inline-start: units.$u2;
|
|
21
|
-
vertical-align: middle;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin block() {
|
|
26
|
-
align-items: center;
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin small() {
|
|
32
|
-
@include _looping-size(24px);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin small-block() {
|
|
36
|
-
padding-block: units.$u1 * 1.5;
|
|
37
|
-
padding-inline: units.$u2;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin medium() {
|
|
41
|
-
@include _looping-size(32px);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@mixin medium-block() {
|
|
45
|
-
padding: units.$u2;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@mixin large() {
|
|
49
|
-
@include _looping-size(48px);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@mixin large-block() {
|
|
53
|
-
padding-block: units.$u3;
|
|
54
|
-
padding-inline: units.$u2;
|
|
55
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
@use "../../di";
|
|
2
|
-
@use "../progress-indicator";
|
|
3
|
-
@use "../../components/icon";
|
|
4
|
-
|
|
5
|
-
.dso-progress-indicator {
|
|
6
|
-
@include progress-indicator.root();
|
|
7
|
-
|
|
8
|
-
.dso-progress-indicator-spinner {
|
|
9
|
-
@include di.base("spinner", icon.$size, "middle");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.dso-block {
|
|
13
|
-
@include progress-indicator.block();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.dso-small,
|
|
17
|
-
&:not(.dso-medium):not(.dso-large) {
|
|
18
|
-
@include progress-indicator.small();
|
|
19
|
-
|
|
20
|
-
&.dso-block {
|
|
21
|
-
@include progress-indicator.small-block();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.dso-medium {
|
|
26
|
-
@include progress-indicator.medium();
|
|
27
|
-
|
|
28
|
-
&.dso-block {
|
|
29
|
-
@include progress-indicator.medium-block();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.dso-large {
|
|
34
|
-
@include progress-indicator.large();
|
|
35
|
-
|
|
36
|
-
&.dso-block {
|
|
37
|
-
@include progress-indicator.large-block();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# `.dso-selectable`
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
@use "../../variables/colors";
|
|
3
|
-
@use "../../variables/zindex";
|
|
4
|
-
@use "selectable.variables" as selectable-variables;
|
|
5
|
-
|
|
6
|
-
@mixin invalid() {
|
|
7
|
-
--dso-selectable-color: #{selectable-variables.$invalid-color};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@mixin notLastChild() {
|
|
11
|
-
margin-block-end: units.$u1;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin inline($siblingSelectableSelector) {
|
|
15
|
-
+ #{$siblingSelectableSelector} {
|
|
16
|
-
margin-inline-start: units.$u3;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin root() {
|
|
21
|
-
position: relative;
|
|
22
|
-
|
|
23
|
-
display: var(--dso-selectable-display, block);
|
|
24
|
-
|
|
25
|
-
padding-block: 0;
|
|
26
|
-
padding-inline: units.$u4 0;
|
|
27
|
-
|
|
28
|
-
label {
|
|
29
|
-
font-weight: 400;
|
|
30
|
-
line-height: selectable-variables.$size;
|
|
31
|
-
margin: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
input[type="checkbox"][disabled],
|
|
35
|
-
input[type="radio"][disabled] {
|
|
36
|
-
@include _selectableFunctionalStylingDisabled();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
input[type="checkbox"],
|
|
40
|
-
input[type="radio"] {
|
|
41
|
-
@include _selectableFunctionalStyling();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
input[type="checkbox"] {
|
|
45
|
-
@include _selectableFunctionalStylingCheckbox();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
input[type="radio"] {
|
|
49
|
-
@include _selectableFunctionalStylingRadio();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@mixin children($info-selector) {
|
|
54
|
-
> #{$info-selector} {
|
|
55
|
-
float: none;
|
|
56
|
-
margin-block: units.$u1 0;
|
|
57
|
-
margin-inline: 0 units.$u2;
|
|
58
|
-
inline-size: 100%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dso-selectable-options {
|
|
62
|
-
list-style: none;
|
|
63
|
-
margin-block-start: units.$u1;
|
|
64
|
-
padding-inline-start: 0;
|
|
65
|
-
|
|
66
|
-
li + li {
|
|
67
|
-
margin-block-start: units.$u1;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@mixin selectableBoxShadow($border-width, $color) {
|
|
73
|
-
box-shadow: 0 0 0 $border-width $color;
|
|
74
|
-
block-size: selectable-variables.$size - 2 * $border-width;
|
|
75
|
-
inset-inline-start: $border-width;
|
|
76
|
-
inset-block-start: $border-width;
|
|
77
|
-
inline-size: selectable-variables.$size - 2 * $border-width;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@mixin _selectableFunctionalStylingDisabled() {
|
|
81
|
-
&,
|
|
82
|
-
&:active,
|
|
83
|
-
&:focus {
|
|
84
|
-
+ label {
|
|
85
|
-
&::before {
|
|
86
|
-
background-color: colors.$wit;
|
|
87
|
-
box-shadow: 0 0 0 selectable-variables.$border-width selectable-variables.$disabled-color;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@mixin _selectableFunctionalStyling() {
|
|
94
|
-
block-size: selectable-variables.$size;
|
|
95
|
-
inset-inline-start: 0;
|
|
96
|
-
margin: 0;
|
|
97
|
-
opacity: 0;
|
|
98
|
-
position: absolute;
|
|
99
|
-
inset-block-start: 0;
|
|
100
|
-
inline-size: selectable-variables.$size;
|
|
101
|
-
z-index: zindex.$selectable;
|
|
102
|
-
zoom: 1;
|
|
103
|
-
|
|
104
|
-
@media (prefers-contrast: more) {
|
|
105
|
-
& {
|
|
106
|
-
opacity: 1;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:not([disabled]) {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
+ label {
|
|
115
|
-
display: inline;
|
|
116
|
-
font-style: normal;
|
|
117
|
-
padding-inline-start: 0;
|
|
118
|
-
|
|
119
|
-
&::before {
|
|
120
|
-
background: colors.$wit;
|
|
121
|
-
border: 0;
|
|
122
|
-
box-shadow: 0 0 0 selectable-variables.$border-width
|
|
123
|
-
var(--dso-selectable-color, selectable-variables.$valid-color);
|
|
124
|
-
content: "";
|
|
125
|
-
block-size: selectable-variables.$size - 2 * selectable-variables.$border-width;
|
|
126
|
-
inset-inline-start: selectable-variables.$border-width;
|
|
127
|
-
position: absolute;
|
|
128
|
-
inset-block-start: selectable-variables.$border-width;
|
|
129
|
-
inline-size: selectable-variables.$size - 2 * selectable-variables.$border-width;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&:focus {
|
|
134
|
-
outline: 0;
|
|
135
|
-
|
|
136
|
-
+ label::before {
|
|
137
|
-
box-shadow: 0 0 0 selectable-variables.$focus-border-width
|
|
138
|
-
var(--dso-selectable-color, selectable-variables.$valid-color);
|
|
139
|
-
block-size: selectable-variables.$size - 2 * selectable-variables.$focus-border-width;
|
|
140
|
-
inset-inline-start: selectable-variables.$focus-border-width;
|
|
141
|
-
inset-block-start: selectable-variables.$focus-border-width;
|
|
142
|
-
inline-size: selectable-variables.$size - 2 * selectable-variables.$focus-border-width;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&:active,
|
|
147
|
-
&.active {
|
|
148
|
-
+ label::before {
|
|
149
|
-
background-color: selectable-variables.$active-background-color;
|
|
150
|
-
box-shadow: 0 0 0 1px selectable-variables.$valid-color;
|
|
151
|
-
block-size: selectable-variables.$size - 2px;
|
|
152
|
-
inset-inline-start: 1px;
|
|
153
|
-
inset-block-start: 1px;
|
|
154
|
-
inline-size: selectable-variables.$size - 2px;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@mixin _selectableFunctionalStylingCheckbox() {
|
|
160
|
-
+ label {
|
|
161
|
-
&::before {
|
|
162
|
-
border-radius: 4px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&::after {
|
|
166
|
-
background: transparent;
|
|
167
|
-
content: "";
|
|
168
|
-
inset-inline-start: 6px;
|
|
169
|
-
opacity: 0;
|
|
170
|
-
position: absolute;
|
|
171
|
-
inset-block-start: 6px;
|
|
172
|
-
zoom: 1;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&:checked,
|
|
177
|
-
&:indeterminate {
|
|
178
|
-
+ label {
|
|
179
|
-
&::after {
|
|
180
|
-
opacity: 1;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&:checked {
|
|
186
|
-
+ label {
|
|
187
|
-
&::after {
|
|
188
|
-
border: solid;
|
|
189
|
-
border-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
190
|
-
border-block-start-color: transparent;
|
|
191
|
-
border-width: 0 0 3px 3px;
|
|
192
|
-
block-size: 8px;
|
|
193
|
-
transform: rotate(-45deg);
|
|
194
|
-
inline-size: 13px;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&:indeterminate {
|
|
200
|
-
+ label {
|
|
201
|
-
&::after {
|
|
202
|
-
background-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
203
|
-
block-size: selectable-variables.$indeterminate-size;
|
|
204
|
-
inline-size: selectable-variables.$indeterminate-size;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
@mixin _selectableFunctionalStylingRadio() {
|
|
211
|
-
+ label {
|
|
212
|
-
&::before {
|
|
213
|
-
border-radius: 50%;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&::after {
|
|
217
|
-
background-color: transparent;
|
|
218
|
-
border-radius: 50%;
|
|
219
|
-
content: "";
|
|
220
|
-
block-size: 12px;
|
|
221
|
-
inset-inline-start: 6px;
|
|
222
|
-
opacity: 0;
|
|
223
|
-
position: absolute;
|
|
224
|
-
inset-block-start: 6px;
|
|
225
|
-
inline-size: 12px;
|
|
226
|
-
zoom: 1;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&:checked {
|
|
231
|
-
+ label {
|
|
232
|
-
&::after {
|
|
233
|
-
background-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
234
|
-
opacity: 1;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@use "../selectable";
|
|
2
|
-
@use "../info";
|
|
3
|
-
|
|
4
|
-
// HTML/CSS
|
|
5
|
-
.dso-selectable {
|
|
6
|
-
@include selectable.root();
|
|
7
|
-
@include selectable.children(".dso-info");
|
|
8
|
-
|
|
9
|
-
&:not(:last-child) {
|
|
10
|
-
@include selectable.notLastChild();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
input[aria-invalid="true"] + label {
|
|
14
|
-
@include selectable.invalid();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Web Component
|
|
19
|
-
dso-selectable {
|
|
20
|
-
@include selectable.children("dso-info");
|
|
21
|
-
|
|
22
|
-
.dso-rich-content[slot="info"] {
|
|
23
|
-
@include info.richContent();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
@use "../../variables/colors";
|
|
3
|
-
|
|
4
|
-
$valid-marker-color: colors.$grasgroen; // dot for radio and checkmark for checkbox
|
|
5
|
-
$valid-color: colors.$bosgroen;
|
|
6
|
-
$invalid-color: colors.$danger-color;
|
|
7
|
-
$active-background-color: colors.$grasgroen-10;
|
|
8
|
-
$disabled-color: colors.$input-disabled-border-color;
|
|
9
|
-
$size: units.$u3;
|
|
10
|
-
$border-width: 2px;
|
|
11
|
-
$focus-border-width: 3px;
|
|
12
|
-
$indeterminate-size: 12px;
|
|
13
|
-
$symbol-indent: units.$u4;
|