dso-toolkit 62.6.0 → 62.7.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 +20 -0
- package/dist/dso.css +62 -32
- package/dist/dso.css.map +1 -0
- package/dist/dso.min.css +2 -0
- package/dist/dso.min.css.map +1 -0
- package/package.json +8 -7
- package/src/components/action-list/action-list.scss +18 -12
- package/src/components/action-list/action-list.variables.scss +7 -0
- package/src/components/action-list/components/action-list-item.variables.scss +4 -0
- package/src/components/card/_index.scss +1 -0
- package/src/components/card/card.mixins.scss +4 -1
- package/src/components/card/card.scss +10 -8
- package/src/components/card/card.variables.scss +4 -0
- package/src/components/context/context.scss +10 -0
- package/src/components/document-component/document-component.scss +51 -18
- package/src/components/grid/grid.mixins.scss +1 -10
- package/src/components/navbar/navbar.scss +1 -0
- package/src/components/step-counter/step-counter.mixins.scss +1 -1
- package/src/components/step-counter/step-counter.variables.scss +1 -0
- package/src/dso.scss +1 -1
- package/src/global/spacing.scss +10 -1
- package/src/variables/units.scss +1 -0
package/package.json
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
"name": "dso-toolkit",
|
|
3
3
|
"description": "DSO Toolkit",
|
|
4
4
|
"license": "SEE LICENSE IN DISCLAIMER.txt",
|
|
5
|
-
"version": "62.
|
|
5
|
+
"version": "62.7.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "gulp"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"assets",
|
|
11
11
|
"dist/dso-icons.svg",
|
|
12
|
-
"dist
|
|
12
|
+
"dist/*.css",
|
|
13
|
+
"dist/*.map",
|
|
13
14
|
"src/**/*.scss",
|
|
14
15
|
"CHANGELOG.md",
|
|
15
16
|
"DISCLAIMER.txt",
|
|
@@ -32,21 +33,19 @@
|
|
|
32
33
|
"@storybook/client-api": "7.5.3",
|
|
33
34
|
"@storybook/types": "7.5.3",
|
|
34
35
|
"@types/css": "^0.0.37",
|
|
35
|
-
"@types/fancy-log": "^2.0.2",
|
|
36
36
|
"@types/gulp": "^4.0.17",
|
|
37
37
|
"@types/gulp-cheerio": "^0.0.38",
|
|
38
38
|
"@types/gulp-filter": "^3.0.39",
|
|
39
39
|
"@types/gulp-header": "^2.0.4",
|
|
40
40
|
"@types/gulp-postcss": "^8.0.6",
|
|
41
41
|
"@types/gulp-rename": "^2.0.6",
|
|
42
|
-
"@types/gulp-sass": "^5.0.4",
|
|
43
42
|
"@types/list-stream": "^1.0.3",
|
|
43
|
+
"@types/through2": "^2.0.41",
|
|
44
44
|
"concurrently": "^8.2.2",
|
|
45
45
|
"css": "^3.0.0",
|
|
46
46
|
"cssnano": "^6.0.1",
|
|
47
47
|
"del": "^7.1.0",
|
|
48
48
|
"escape-string-regexp": "^5.0.0",
|
|
49
|
-
"fancy-log": "^2.0.0",
|
|
50
49
|
"gulp": "^4.0.2",
|
|
51
50
|
"gulp-cheerio": "^1.0.0",
|
|
52
51
|
"gulp-filter": "^9.0.1",
|
|
@@ -54,18 +53,20 @@
|
|
|
54
53
|
"gulp-postcss": "^9.0.1",
|
|
55
54
|
"gulp-prettier": "^6.0.0",
|
|
56
55
|
"gulp-rename": "^2.0.0",
|
|
57
|
-
"gulp-sass": "^5.1.0",
|
|
58
56
|
"gulp-svgstore": "^9.0.0",
|
|
59
57
|
"gulp-typescript": "^6.0.0-alpha.1",
|
|
60
58
|
"list-stream": "^2.1.0",
|
|
61
59
|
"markdown-to-jsx": "^7.3.2",
|
|
60
|
+
"plugin-error": "^2.0.1",
|
|
62
61
|
"postcss": "^8.4.31",
|
|
63
62
|
"prettier": "^3.1.0",
|
|
64
63
|
"react": "^18.2.0",
|
|
65
64
|
"react-dom": "^18.2.0",
|
|
66
65
|
"sass": "^1.69.5",
|
|
66
|
+
"through2": "^4.0.2",
|
|
67
67
|
"typescript": "<5.3.0",
|
|
68
|
-
"uuid": "^9.0.1"
|
|
68
|
+
"uuid": "^9.0.1",
|
|
69
|
+
"vinyl-sourcemaps-apply": "^0.2.1"
|
|
69
70
|
},
|
|
70
71
|
"nx": {
|
|
71
72
|
"includedScripts": []
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
@use "../../variables/colors
|
|
2
|
-
@use "../../variables/units
|
|
1
|
+
@use "../../variables/colors";
|
|
2
|
+
@use "../../variables/units";
|
|
3
|
+
@use "../../variables/media-query-breakpoints";
|
|
4
|
+
@use "../../components/step-counter";
|
|
3
5
|
@use "../headings";
|
|
4
6
|
|
|
7
|
+
@use "action-list.variables" as action-list-variables;
|
|
8
|
+
@use "components/action-list-item.variables" as action-list-item-variables;
|
|
9
|
+
|
|
5
10
|
dso-action-list {
|
|
6
11
|
dso-action-list-item {
|
|
7
|
-
margin-inline-start:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
margin-inline-start: units.$u10;
|
|
11
|
-
width: calc(100% + #{units.$u2});
|
|
12
|
-
}
|
|
12
|
+
margin-inline-start: calc(
|
|
13
|
+
(action-list-variables.$content-indent - action-list-item-variables.$step-counter-margin) * -1
|
|
14
|
+
);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.flow-line {
|
|
16
18
|
&::after {
|
|
17
19
|
content: "";
|
|
18
20
|
background-color: colors.$bosgroen;
|
|
19
|
-
height: calc(100% -
|
|
20
|
-
left: -50px;
|
|
21
|
+
height: calc(100% - units.$u6);
|
|
21
22
|
position: absolute;
|
|
22
|
-
top:
|
|
23
|
-
width:
|
|
23
|
+
top: calc(action-list-item-variables.$padding-vertical + action-list-variables.$step-counter-size);
|
|
24
|
+
width: action-list-variables.$flow-line-width;
|
|
25
|
+
left: calc((action-list-variables.$step-counter-size * 0.5) - (action-list-variables.$flow-line-width * 0.5));
|
|
26
|
+
|
|
27
|
+
@media screen and (min-width: media-query-breakpoints.$screen-xs-min) {
|
|
28
|
+
left: calc((action-list-variables.$step-counter-size * 0.5) - (action-list-variables.$flow-line-width * 0.5));
|
|
29
|
+
}
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@use "../../variables/units";
|
|
2
|
+
@use "../step-counter";
|
|
3
|
+
|
|
4
|
+
$padding-block: units.$u2;
|
|
5
|
+
$step-counter-size: calc(step-counter.$size + (step-counter.$border-size * 2));
|
|
6
|
+
$flow-line-width: units.$u1 * 0.5;
|
|
7
|
+
$content-indent: calc($step-counter-size + $padding-block + units.$u1);
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
@use "../../variables/media-query-breakpoints";
|
|
3
3
|
@use "../../variables/units";
|
|
4
4
|
|
|
5
|
+
@use "card.mixins" as card-mixins;
|
|
6
|
+
@use "card.variables" as card-variables;
|
|
7
|
+
|
|
5
8
|
@use "../button";
|
|
6
|
-
@use "../card";
|
|
7
9
|
|
|
8
10
|
.dso-card {
|
|
9
|
-
@include card.root();
|
|
11
|
+
@include card-mixins.root();
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
dso-card {
|
|
@@ -24,14 +26,14 @@ dso-card {
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
&:hover a[slot="heading"] {
|
|
27
|
-
color:
|
|
29
|
+
color: card-variables.$heading-anchor-hover-color;
|
|
28
30
|
text-decoration: underline;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.dso-card,
|
|
33
35
|
dso-card {
|
|
34
|
-
@include card.base();
|
|
36
|
+
@include card-mixins.base();
|
|
35
37
|
|
|
36
38
|
&.dso-is-selectable,
|
|
37
39
|
&.dso-has-image {
|
|
@@ -89,11 +91,11 @@ dso-card {
|
|
|
89
91
|
&#{button.$not-dso-buttons}:visited,
|
|
90
92
|
&:active,
|
|
91
93
|
&:focus {
|
|
92
|
-
color:
|
|
94
|
+
color: card-variables.$heading-anchor-color;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
&:hover {
|
|
96
|
-
color:
|
|
98
|
+
color: card-variables.$heading-anchor-color;
|
|
97
99
|
text-decoration: underline;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
@@ -112,7 +114,7 @@ dso-card {
|
|
|
112
114
|
|
|
113
115
|
.dso-selectable,
|
|
114
116
|
dso-selectable {
|
|
115
|
-
@include card.selectable();
|
|
117
|
+
@include card-mixins.selectable();
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
img {
|
|
@@ -131,7 +133,7 @@ dso-card {
|
|
|
131
133
|
|
|
132
134
|
.dso-card-interactions,
|
|
133
135
|
[slot="interactions"] {
|
|
134
|
-
@include card.interactions();
|
|
136
|
+
@include card-mixins.interactions();
|
|
135
137
|
|
|
136
138
|
.dso-card-interaction {
|
|
137
139
|
align-items: center;
|
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
margin-bottom: units.$u1;
|
|
15
15
|
row-gap: units.$u2;
|
|
16
16
|
|
|
17
|
+
&.dso-align-left {
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
column-gap: units.$u3;
|
|
20
|
+
row-gap: units.$u1;
|
|
21
|
+
|
|
22
|
+
.dso-context-container {
|
|
23
|
+
margin-left: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
.dso-context-container {
|
|
18
28
|
margin-left: auto;
|
|
19
29
|
}
|
|
@@ -3,6 +3,57 @@
|
|
|
3
3
|
|
|
4
4
|
@use "document-component.variables" as document-component-variables;
|
|
5
5
|
|
|
6
|
+
dso-responsive-element {
|
|
7
|
+
&[small] {
|
|
8
|
+
dso-document-component {
|
|
9
|
+
&::part(_annotation-container),
|
|
10
|
+
&::part(_content) {
|
|
11
|
+
padding-left: document-component-variables.$indent;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[not-collapsible] {
|
|
15
|
+
&::part(_heading-container) {
|
|
16
|
+
padding-left: document-component-variables.$indent;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:not([not-collapsible]) {
|
|
21
|
+
&::part(_children-container) {
|
|
22
|
+
padding-left: document-component-variables.$indent;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
dso-document-component {
|
|
26
|
+
margin-left: document-component-variables.$indent * -1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:not([small]) {
|
|
33
|
+
dso-document-component {
|
|
34
|
+
&[filtered] {
|
|
35
|
+
&::before {
|
|
36
|
+
left: calc((var(--depth) * #{document-component-variables.$indent} + 3px) * -1);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:not([not-collapsible]) {
|
|
41
|
+
--b: calc(var(--depth) + 1);
|
|
42
|
+
|
|
43
|
+
&::part(_annotation-container),
|
|
44
|
+
&::part(_content),
|
|
45
|
+
&::part(_children-container) {
|
|
46
|
+
padding-left: document-component-variables.$indent;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
li {
|
|
50
|
+
--a: var(--b);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
6
57
|
.dso-document-components {
|
|
7
58
|
ul {
|
|
8
59
|
@include list.unstyled();
|
|
@@ -22,21 +73,3 @@ dso-document-component[not-applicable] {
|
|
|
22
73
|
opacity: 1;
|
|
23
74
|
}
|
|
24
75
|
}
|
|
25
|
-
|
|
26
|
-
dso-responsive-element[small] {
|
|
27
|
-
dso-document-component:not([not-collapsible]) {
|
|
28
|
-
dso-document-component {
|
|
29
|
-
margin-left: document-component-variables.$indent * -1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
dso-responsive-element:not([small]) {
|
|
35
|
-
dso-document-component {
|
|
36
|
-
&:not([not-collapsible]) {
|
|
37
|
-
li {
|
|
38
|
-
--a: var(--b);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -28,16 +28,8 @@
|
|
|
28
28
|
min-height: 1px; // Prevent columns from collapsing when empty
|
|
29
29
|
padding-right: math.floor(css-grid-variables.$grid-gutter-width * 0.5);
|
|
30
30
|
padding-left: math.ceil(css-grid-variables.$grid-gutter-width * 0.5);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
|
|
35
|
-
@for $i from (1 + 1) through css-grid-variables.$grid-columns {
|
|
36
|
-
$list: "#{$list}, .col-#{$class}-#{$i}";
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
#{$list} {
|
|
40
31
|
float: left;
|
|
32
|
+
width: 100%;
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
35
|
|
|
@@ -86,7 +78,6 @@
|
|
|
86
78
|
}
|
|
87
79
|
|
|
88
80
|
@mixin make-grid($class) {
|
|
89
|
-
@include float-grid-columns($class);
|
|
90
81
|
@include loop-grid-columns(css-grid-variables.$grid-columns, $class, width);
|
|
91
82
|
@include loop-grid-columns(css-grid-variables.$grid-columns, $class, pull);
|
|
92
83
|
@include loop-grid-columns(css-grid-variables.$grid-columns, $class, push);
|
package/src/dso.scss
CHANGED
package/src/global/spacing.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../variables/units
|
|
1
|
+
@use "../variables/units";
|
|
2
2
|
|
|
3
3
|
// Create space between action list and form buttons
|
|
4
4
|
// -------------------------------------------------
|
|
@@ -55,3 +55,12 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
|
|
59
|
+
// #2440 temp fix
|
|
60
|
+
// --------------
|
|
61
|
+
// To do: integrate this with #2217 (103)
|
|
62
|
+
:where(.row:has(.dso-button-row)) {
|
|
63
|
+
+ :where(.row:has(:only-child > dl)) {
|
|
64
|
+
margin-block-start: units.$vertical-spacing-medium;
|
|
65
|
+
}
|
|
66
|
+
}
|