dso-toolkit 62.18.0 → 62.20.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 +110 -173
- 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 +13 -13
- package/package.json +12 -12
- package/src/components/alert/alert.mixins.scss +12 -16
- package/src/components/alert/alert.scss +8 -0
- package/src/components/document-component/document-component.scss +1 -16
- package/src/components/document-component-list/document-component-list.scss +12 -0
- package/src/components/form/form-group.scss +2 -2
- package/src/components/form/form-groups/files/form-group-files.scss +13 -0
- package/src/components/grid/grid.scss +1 -0
- package/src/components/label/label.mixins.scss +0 -21
- package/src/components/label/label.scss +14 -4
- package/src/components/legend-item/legend-item.scss +12 -0
- package/src/components/legend-item/legend-item.variables.scss +7 -0
- package/src/components/modal/modal.scss +4 -12
- package/src/components/modal/readme.md +1 -1
- package/src/dso.scss +2 -0
- package/src/global/mixins/symbol.mixins.scss +20 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* Since Storybook 7 we have support for export * from ''; */
|
|
2
2
|
export { TemplateContainer, } from "./template-container.js";
|
|
3
3
|
export { ArgsError, StoryRoot, componentArgs, createStories, noControl, storiesOfFactory, } from "./storybook/index.js";
|
|
4
|
-
export
|
|
4
|
+
export * from "./components/accordion";
|
|
5
5
|
export { storiesOfActionList } from "./components/action-list/action-list.stories-of.js";
|
|
6
6
|
export * from "./components/advanced-select";
|
|
7
7
|
export * from "./components/alert";
|
|
8
8
|
export * from "./components/anchor";
|
|
9
9
|
export * from "./components/application-heading";
|
|
10
|
-
export
|
|
10
|
+
export * from "./components/annotation";
|
|
11
11
|
export * from "./components/attachments-counter";
|
|
12
12
|
export { storiesOfAutosuggest } from "./components/autosuggest/autosuggest.stories-of.js";
|
|
13
13
|
export * from "./components/badge";
|
|
@@ -20,10 +20,10 @@ export { storiesOfCard } from "./components/card/card.stories-of.js";
|
|
|
20
20
|
export { storiesOfCardContainer, } from "./components/card-container/card-container.stories-of.js";
|
|
21
21
|
export { storiesOfCardGrid } from "./components/card-grid/card-grid.stories-of.js";
|
|
22
22
|
export { storiesOfCardList } from "./components/card-list/card-list.stories-of.js";
|
|
23
|
-
export
|
|
23
|
+
export * from "./components/context";
|
|
24
24
|
export { storiesOfDatePicker, } from "./components/date-picker/date-picker.stories-of.js";
|
|
25
25
|
export { storiesOfDatePickerLegacy, } from "./components/date-picker-legacy/date-picker-legacy.stories-of.js";
|
|
26
|
-
export
|
|
26
|
+
export * from "./components/definition-list";
|
|
27
27
|
export { storiesOfDescription } from "./components/description/description.stories-of.js";
|
|
28
28
|
export { storiesOfDocumentComponent, } from "./components/document-component/document-component.stories-of.js";
|
|
29
29
|
export { storiesOfDocumentHeader, } from "./components/document-header/document-header.stories-of.js";
|
|
@@ -33,9 +33,9 @@ export { storiesOfExpandable } from "./components/expandable/expandable.stories-
|
|
|
33
33
|
export { storiesOfFootnotes } from "./components/footnotes/footnotes.stories-of.js";
|
|
34
34
|
export { storiesOfForm } from "./components/form/form.stories-of.js";
|
|
35
35
|
export { storiesOfFormButtons } from "./components/form-buttons/form-buttons.stories-of.js";
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
36
|
+
export * from "./components/header";
|
|
37
|
+
export * from "./components/helpcenter-panel";
|
|
38
|
+
export * from "./components/highlight-box";
|
|
39
39
|
export { storiesOfIcon } from "./components/icon/icon.stories-of.js";
|
|
40
40
|
export { storiesOfImage } from "./components/image/image.stories-of.js";
|
|
41
41
|
export { storiesOfImageOverlay } from "./components/image-overlay/image-overlay.stories-of.js";
|
|
@@ -45,6 +45,7 @@ export { storiesOfInputNumber } from "./components/input-number/input-number.sto
|
|
|
45
45
|
export { storiesOfJustifyFormGroups, } from "./components/justify-form-groups/justify-form-groups.stories-of.js";
|
|
46
46
|
export * from "./components/label";
|
|
47
47
|
export { storiesOfLabelGroup } from "./components/label-group/label-group.stories-of.js";
|
|
48
|
+
export * from "./components/legend-item";
|
|
48
49
|
export { LinkListType } from "./components/link-list/link-list.models.js";
|
|
49
50
|
export { storiesOfLinkList } from "./components/link-list/link-list.stories-of.js";
|
|
50
51
|
export { Type } from "./components/list/list.models.js";
|
|
@@ -67,16 +68,15 @@ export { storiesOfScrollable } from "./components/scrollable/scrollable.stories-
|
|
|
67
68
|
export { storiesOfSearchBar } from "./components/search-bar/search-bar.stories-of.js";
|
|
68
69
|
export { storiesOfSelectable } from "./components/selectable/selectable.stories-of.js";
|
|
69
70
|
export { storiesOfShoppingCart } from "./components/shopping-cart/shopping-cart.stories-of.js";
|
|
70
|
-
export
|
|
71
|
+
export * from "./components/slide-toggle";
|
|
71
72
|
export { storiesOfTable } from "./components/table/table.stories-of.js";
|
|
72
|
-
export
|
|
73
|
-
export
|
|
73
|
+
export * from "./components/tabs";
|
|
74
|
+
export * from "./components/tile";
|
|
74
75
|
export { storiesOfTileGrid } from "./components/tile-grid/tile-grid.stories-of.js";
|
|
75
76
|
export { isToggletipInterface } from "./components/toggletip/toggletip.models.js";
|
|
76
77
|
export { storiesOfToggletip } from "./components/toggletip/toggletip.stories-of.js";
|
|
77
|
-
export
|
|
78
|
-
export { storiesOfTooltip } from "./components/tooltip/tooltip.stories-of.js";
|
|
78
|
+
export * from "./components/tooltip";
|
|
79
79
|
export { collection, onClickItem, onCloseItem, onFilter, onOpenItem } from "./components/tree-view/tree-view.demo.js";
|
|
80
80
|
export { storiesOfTreeView } from "./components/tree-view/tree-view.stories-of.js";
|
|
81
81
|
export { storiesOfViewerGrid } from "./components/viewer-grid/viewer-grid.stories-of.js";
|
|
82
|
-
export
|
|
82
|
+
export * from "./components/whitebox";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dso-toolkit",
|
|
3
3
|
"description": "DSO Toolkit",
|
|
4
4
|
"license": "SEE LICENSE IN DISCLAIMER.txt",
|
|
5
|
-
"version": "62.
|
|
5
|
+
"version": "62.20.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "gulp"
|
|
8
8
|
},
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://www.dso-toolkit.nl/",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@prettier/plugin-xml": "^3.
|
|
31
|
-
"@storybook/addon-actions": "7.
|
|
32
|
-
"@storybook/addons": "7.
|
|
33
|
-
"@storybook/client-api": "7.
|
|
34
|
-
"@storybook/types": "7.
|
|
30
|
+
"@prettier/plugin-xml": "^3.4.1",
|
|
31
|
+
"@storybook/addon-actions": "7.6.17",
|
|
32
|
+
"@storybook/addons": "7.6.17",
|
|
33
|
+
"@storybook/client-api": "7.6.17",
|
|
34
|
+
"@storybook/types": "7.6.17",
|
|
35
35
|
"@types/css": "^0.0.37",
|
|
36
36
|
"@types/gulp": "^4.0.17",
|
|
37
37
|
"@types/gulp-cheerio": "^0.0.38",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/through2": "^2.0.41",
|
|
44
44
|
"concurrently": "^8.2.2",
|
|
45
45
|
"css": "^3.0.0",
|
|
46
|
-
"cssnano": "^6.
|
|
46
|
+
"cssnano": "^6.1.2",
|
|
47
47
|
"del": "^7.1.0",
|
|
48
48
|
"escape-string-regexp": "^5.0.0",
|
|
49
49
|
"gulp": "^4.0.2",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"gulp-svgstore": "^9.0.0",
|
|
57
57
|
"gulp-typescript": "^6.0.0-alpha.1",
|
|
58
58
|
"list-stream": "^2.1.0",
|
|
59
|
-
"markdown-to-jsx": "^7.
|
|
59
|
+
"markdown-to-jsx": "^7.4.7",
|
|
60
60
|
"plugin-error": "^2.0.1",
|
|
61
|
-
"postcss": "^8.4.
|
|
62
|
-
"prettier": "^3.
|
|
61
|
+
"postcss": "^8.4.38",
|
|
62
|
+
"prettier": "^3.2.5",
|
|
63
63
|
"react": "^18.2.0",
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
|
-
"sass": "^1.
|
|
65
|
+
"sass": "^1.75.0",
|
|
66
66
|
"through2": "^4.0.2",
|
|
67
|
-
"typescript": "<5.
|
|
67
|
+
"typescript": "<5.5.0",
|
|
68
68
|
"uuid": "^9.0.1",
|
|
69
69
|
"vinyl-sourcemaps-apply": "^0.2.1"
|
|
70
70
|
},
|
|
@@ -50,26 +50,22 @@
|
|
|
50
50
|
text-decoration: none;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
55
|
+
@mixin status-success() {
|
|
56
|
+
@include set-colors.apply(alert-variables.$success-bg, alert-variables.$success-border);
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
59
|
+
@mixin status-error() {
|
|
60
|
+
@include set-colors.apply(alert-variables.$danger-bg, alert-variables.$danger-border);
|
|
61
|
+
}
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
63
|
+
@mixin status-warning() {
|
|
64
|
+
@include set-colors.apply(alert-variables.$warning-bg, alert-variables.$warning-border);
|
|
65
|
+
}
|
|
68
66
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
@include set-colors.apply(alert-variables.$info-bg, alert-variables.$info-border);
|
|
72
|
-
}
|
|
67
|
+
@mixin status-info() {
|
|
68
|
+
@include set-colors.apply(alert-variables.$info-bg, alert-variables.$info-border);
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
@mixin root() {
|
|
@@ -15,24 +15,32 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&.alert-success {
|
|
18
|
+
@include alert.status-success();
|
|
19
|
+
|
|
18
20
|
&::before {
|
|
19
21
|
@include di.base("status-success", alert.$icon-size);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
&.alert-error {
|
|
26
|
+
@include alert.status-error();
|
|
27
|
+
|
|
24
28
|
&::before {
|
|
25
29
|
@include di.base("status-error", alert.$icon-size);
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
&.alert-warning {
|
|
34
|
+
@include alert.status-warning();
|
|
35
|
+
|
|
30
36
|
&::before {
|
|
31
37
|
@include di.base("status-warning", alert.$icon-size);
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
&.alert-info {
|
|
42
|
+
@include alert.status-info();
|
|
43
|
+
|
|
36
44
|
&::before {
|
|
37
45
|
@include di.base("status-info", alert.$icon-size);
|
|
38
46
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
@use "../list";
|
|
3
|
-
|
|
4
1
|
@use "document-component.variables" as document-component-variables;
|
|
5
2
|
|
|
6
|
-
dso-responsive-element {
|
|
3
|
+
dso-responsive-element.dso-document-components {
|
|
7
4
|
&[small] {
|
|
8
5
|
dso-document-component {
|
|
9
6
|
&::part(_annotation-container),
|
|
@@ -54,18 +51,6 @@ dso-responsive-element {
|
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
.dso-document-components {
|
|
58
|
-
ul {
|
|
59
|
-
@include list.unstyled();
|
|
60
|
-
|
|
61
|
-
margin: 0;
|
|
62
|
-
|
|
63
|
-
li + li {
|
|
64
|
-
margin-top: units.$u1;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
54
|
dso-document-component[not-applicable] {
|
|
70
55
|
opacity: 0.6;
|
|
71
56
|
|
|
@@ -11,6 +11,19 @@
|
|
|
11
11
|
@use "../../form.mixins" as css-form-mixins;
|
|
12
12
|
|
|
13
13
|
.form-group.dso-files {
|
|
14
|
+
// if file list is empty
|
|
15
|
+
&:not(:has(.dso-filelist li)) {
|
|
16
|
+
// accessibly hide the label
|
|
17
|
+
.dso-label-container {
|
|
18
|
+
@include utilities.sr-only();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dso-filelist {
|
|
22
|
+
// in case an empty list is left in the dom
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
14
27
|
&.dso-required {
|
|
15
28
|
.control-label::after {
|
|
16
29
|
@include css-form-mixins.form-group-required();
|
|
@@ -123,6 +123,7 @@ form {
|
|
|
123
123
|
background-color: var(--dso-banner-background-color);
|
|
124
124
|
background-repeat: no-repeat;
|
|
125
125
|
background-size: cover;
|
|
126
|
+
background-position: center;
|
|
126
127
|
|
|
127
128
|
@media only screen and (min-width: media-query-breakpoints.$screen-sm-min) {
|
|
128
129
|
position: absolute;
|
|
@@ -81,24 +81,3 @@
|
|
|
81
81
|
padding: 0 units.$u1;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
@mixin symbolContainer() {
|
|
86
|
-
background-color: colors.$wit;
|
|
87
|
-
display: block;
|
|
88
|
-
float: left;
|
|
89
|
-
height: label-variables.$symbol-height;
|
|
90
|
-
margin-top: 2px;
|
|
91
|
-
margin-right: units.$u1;
|
|
92
|
-
width: label-variables.$symbol-height * label-variables.$symbol-aspect-ratio;
|
|
93
|
-
overflow: hidden;
|
|
94
|
-
position: relative;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@mixin symbol() {
|
|
98
|
-
display: block;
|
|
99
|
-
position: absolute;
|
|
100
|
-
top: 0;
|
|
101
|
-
bottom: 0;
|
|
102
|
-
left: 0;
|
|
103
|
-
right: 0;
|
|
104
|
-
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
@use "../label";
|
|
2
|
+
@use "label.variables" as label-variables;
|
|
3
|
+
@use "../../global/mixins/symbol.mixins" as symbol-mixins;
|
|
2
4
|
|
|
3
5
|
// HTML/CSS
|
|
4
6
|
.dso-label {
|
|
5
7
|
@include label.root();
|
|
6
8
|
|
|
7
9
|
.dso-label-symbol {
|
|
8
|
-
@include
|
|
10
|
+
@include symbol-mixins.symbolContainer(
|
|
11
|
+
label-variables.$symbol-height,
|
|
12
|
+
label-variables.$symbol-height * label-variables.$symbol-aspect-ratio,
|
|
13
|
+
2px
|
|
14
|
+
);
|
|
9
15
|
|
|
10
16
|
> span {
|
|
11
|
-
@include
|
|
17
|
+
@include symbol-mixins.symbol();
|
|
12
18
|
}
|
|
13
19
|
}
|
|
14
20
|
}
|
|
@@ -16,10 +22,14 @@
|
|
|
16
22
|
// Web Component
|
|
17
23
|
dso-label {
|
|
18
24
|
span[slot="symbol"] {
|
|
19
|
-
@include
|
|
25
|
+
@include symbol-mixins.symbolContainer(
|
|
26
|
+
label-variables.$symbol-height,
|
|
27
|
+
label-variables.$symbol-height * label-variables.$symbol-aspect-ratio,
|
|
28
|
+
2px
|
|
29
|
+
);
|
|
20
30
|
|
|
21
31
|
> span {
|
|
22
|
-
@include
|
|
32
|
+
@include symbol-mixins.symbol();
|
|
23
33
|
}
|
|
24
34
|
}
|
|
25
35
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use "legend-item.variables" as legend-item-variables;
|
|
2
|
+
@use "../../global/mixins/symbol.mixins" as symbol-mixins;
|
|
3
|
+
|
|
4
|
+
dso-legend-item {
|
|
5
|
+
span[slot="symbol"] {
|
|
6
|
+
@include symbol-mixins.symbolContainer(legend-item-variables.$symbol-height, legend-item-variables.$symbol-width);
|
|
7
|
+
|
|
8
|
+
> span {
|
|
9
|
+
@include symbol-mixins.symbol();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
@use "../../di";
|
|
8
8
|
|
|
9
|
-
body
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
|
|
15
|
-
.container,
|
|
16
|
-
dso-banner,
|
|
17
|
-
.dso-banner {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
9
|
+
body:has(dialog[open]),
|
|
10
|
+
body:has(dso-modal.hydrated) {
|
|
11
|
+
// block scrolling of the body when a dialog is open
|
|
12
|
+
overflow: hidden;
|
|
21
13
|
}
|
|
22
14
|
|
|
23
15
|
.dso-modal {
|
package/src/dso.scss
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@use "components/definition-list/definition-list";
|
|
30
30
|
@use "components/delete/delete";
|
|
31
31
|
@use "components/description/description";
|
|
32
|
+
@use "components/document-component-list/document-component-list";
|
|
32
33
|
@use "components/document-component/document-component";
|
|
33
34
|
@use "components/document-header/document-header";
|
|
34
35
|
@use "components/document-list/document-list";
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
@use "components/justify-form-groups/justify-form-groups";
|
|
56
57
|
@use "components/label/label";
|
|
57
58
|
@use "components/label-group/label-group";
|
|
59
|
+
@use "components/legend-item/legend-item";
|
|
58
60
|
@use "components/link-list/link-list";
|
|
59
61
|
@use "components/list/list";
|
|
60
62
|
@use "components/list-button/list-button";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "../../variables/colors";
|
|
2
|
+
@use "../../variables/units";
|
|
3
|
+
|
|
4
|
+
@mixin symbolContainer($symbol-height, $symbol-width, $margin-block-start: 0) {
|
|
5
|
+
background-color: colors.$wit;
|
|
6
|
+
display: block;
|
|
7
|
+
float: left;
|
|
8
|
+
height: $symbol-height;
|
|
9
|
+
margin-block-start: $margin-block-start;
|
|
10
|
+
margin-inline-end: units.$u1;
|
|
11
|
+
width: $symbol-width;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin symbol() {
|
|
17
|
+
display: block;
|
|
18
|
+
position: absolute;
|
|
19
|
+
inset: 0;
|
|
20
|
+
}
|