dso-toolkit 55.0.0 → 56.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/dist/dso.css +36 -28
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/anchor/anchor.mixins.scss +9 -5
- package/src/components/document-component/_index.scss +1 -0
- package/src/components/document-component/document-component.scss +49 -0
- package/src/components/document-component/document-component.variables.scss +3 -0
- package/src/dso.scss +2 -1
- package/src/global/spacing.scss +7 -0
- package/src/components/expandable-heading/_index.scss +0 -0
- package/src/components/expandable-heading/expandable-heading.scss +0 -37
- package/src/components/expandable-heading/readme.md +0 -1
package/dist/dso.css
CHANGED
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
font-weight: 700;
|
|
47
47
|
src: local("Asap Bold italic"), local("Asap-Bolditalic"), url("../assets/fonts/Asap/Asap-BoldItalic.woff2") format("woff2"), url("../assets/fonts/Asap/Asap-BoldItalic.woff") format("woff");
|
|
48
48
|
}
|
|
49
|
+
:where(dso-action-list) + :where(.dso-form-buttons) {
|
|
50
|
+
margin-block-start: 32px;
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
.text-right {
|
|
50
54
|
text-align: right;
|
|
51
55
|
}
|
|
@@ -3164,6 +3168,38 @@ del {
|
|
|
3164
3168
|
display: block;
|
|
3165
3169
|
}
|
|
3166
3170
|
|
|
3171
|
+
.dso-document-components ul {
|
|
3172
|
+
padding-left: 0;
|
|
3173
|
+
list-style: none;
|
|
3174
|
+
margin: 0;
|
|
3175
|
+
}
|
|
3176
|
+
.dso-document-components ul li + li {
|
|
3177
|
+
margin-top: 8px;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
dso-document-component[filtered]::before {
|
|
3181
|
+
left: -3px;
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
dso-document-component[not-applicable] {
|
|
3185
|
+
opacity: 0.6;
|
|
3186
|
+
}
|
|
3187
|
+
dso-document-component[not-applicable] dso-document-component[not-applicable] {
|
|
3188
|
+
opacity: 1;
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
dso-responsive-element:not([small]) dso-document-component dso-document-component {
|
|
3192
|
+
--depth: var(--x, 1);
|
|
3193
|
+
--y: calc(var(--depth) + 1);
|
|
3194
|
+
margin-left: 24px;
|
|
3195
|
+
}
|
|
3196
|
+
dso-responsive-element:not([small]) dso-document-component dso-document-component[filtered]::before {
|
|
3197
|
+
left: calc((var(--depth) * 24px + 3px) * -1);
|
|
3198
|
+
}
|
|
3199
|
+
dso-responsive-element:not([small]) dso-document-component dso-document-component li {
|
|
3200
|
+
--x: calc(var(--y));
|
|
3201
|
+
}
|
|
3202
|
+
|
|
3167
3203
|
.dso-document-header {
|
|
3168
3204
|
background-color: #f2f2f2;
|
|
3169
3205
|
color: #000;
|
|
@@ -3906,34 +3942,6 @@ dso-dropdown-menu[checkable] li.dso-checked button::before {
|
|
|
3906
3942
|
margin-right: 8px;
|
|
3907
3943
|
}
|
|
3908
3944
|
|
|
3909
|
-
dso-expandable-heading *[slot=addons-end] {
|
|
3910
|
-
margin-left: 8px;
|
|
3911
|
-
}
|
|
3912
|
-
dso-expandable-heading.dso-del, dso-expandable-heading.dso-ins {
|
|
3913
|
-
padding-block: 16px 4px;
|
|
3914
|
-
}
|
|
3915
|
-
dso-expandable-heading.dso-del a, dso-expandable-heading.dso-ins a {
|
|
3916
|
-
color: #000;
|
|
3917
|
-
}
|
|
3918
|
-
dso-expandable-heading.dso-del .dso-annotation-header,
|
|
3919
|
-
dso-expandable-heading.dso-del .dso-annotation-content, dso-expandable-heading.dso-ins .dso-annotation-header,
|
|
3920
|
-
dso-expandable-heading.dso-ins .dso-annotation-content {
|
|
3921
|
-
background-color: rgba(255, 255, 255, 0.4);
|
|
3922
|
-
}
|
|
3923
|
-
dso-expandable-heading.dso-del .dso-annotation-header, dso-expandable-heading.dso-ins .dso-annotation-header {
|
|
3924
|
-
border-bottom: 2px solid #fff;
|
|
3925
|
-
border-left: 1px solid #ccc;
|
|
3926
|
-
border-right: 1px solid #ccc;
|
|
3927
|
-
border-top: 1px solid #ccc;
|
|
3928
|
-
margin-bottom: -2px;
|
|
3929
|
-
}
|
|
3930
|
-
dso-expandable-heading.dso-del .dso-annotation-content, dso-expandable-heading.dso-ins .dso-annotation-content {
|
|
3931
|
-
border-bottom: 1px solid #ccc;
|
|
3932
|
-
border-left: 1px solid #ccc;
|
|
3933
|
-
border-right: 1px solid #ccc;
|
|
3934
|
-
padding-top: 18px;
|
|
3935
|
-
}
|
|
3936
|
-
|
|
3937
3945
|
label {
|
|
3938
3946
|
display: inline-block;
|
|
3939
3947
|
max-width: 100%;
|
package/dist/index.js
CHANGED
|
@@ -24,11 +24,11 @@ export { storiesOfContext } from "./components/context/context.stories-of.js";
|
|
|
24
24
|
export { storiesOfDatePicker, } from "./components/date-picker/date-picker.stories-of.js";
|
|
25
25
|
export { storiesOfDefinitionList, } from "./components/definition-list/definition-list.stories-of.js";
|
|
26
26
|
export { storiesOfDescription } from "./components/description/description.stories-of.js";
|
|
27
|
+
export { storiesOfDocumentComponent, } from "./components/document-component/document-component.stories-of.js";
|
|
27
28
|
export { storiesOfDocumentHeader, } from "./components/document-header/document-header.stories-of.js";
|
|
28
29
|
export { storiesOfDocumentList } from "./components/document-list/document-list.stories-of.js";
|
|
29
30
|
export { storiesOfDropdownMenu } from "./components/dropdown-menu/dropdown-menu.stories-of.js";
|
|
30
31
|
export { storiesOfExpandable } from "./components/expandable/expandable.stories-of.js";
|
|
31
|
-
export { storiesOfExpandableHeading, } from "./components/expandable-heading/expandable-heading.stories-of.js";
|
|
32
32
|
export { storiesOfFootnotes } from "./components/footnotes/footnotes.stories-of.js";
|
|
33
33
|
export { storiesOfForm } from "./components/form/form.stories-of.js";
|
|
34
34
|
export { storiesOfFormButtons } from "./components/form-buttons/form-buttons.stories-of.js";
|
package/package.json
CHANGED
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@use "anchor.variables" as anchor-variables;
|
|
4
4
|
|
|
5
|
-
@mixin
|
|
6
|
-
background-color: transparent;
|
|
7
|
-
color: scaffolding.$link-color;
|
|
8
|
-
text-decoration: underline;
|
|
9
|
-
|
|
5
|
+
@mixin pseudo() {
|
|
10
6
|
&:hover,
|
|
11
7
|
&:focus {
|
|
12
8
|
color: anchor-variables.$link-hover-color;
|
|
@@ -16,6 +12,14 @@
|
|
|
16
12
|
&:active {
|
|
17
13
|
text-decoration: none;
|
|
18
14
|
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin root($is-html-a-element: true) {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
color: scaffolding.$link-color;
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
|
|
22
|
+
@include pseudo();
|
|
19
23
|
|
|
20
24
|
@if ($is-html-a-element) {
|
|
21
25
|
&:visited {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "document-component.variables";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@use "../../variables/units";
|
|
2
|
+
@use "../list";
|
|
3
|
+
|
|
4
|
+
@use "document-component.variables" as document-component-variables;
|
|
5
|
+
|
|
6
|
+
.dso-document-components {
|
|
7
|
+
ul {
|
|
8
|
+
@include list.unstyled();
|
|
9
|
+
|
|
10
|
+
margin: 0;
|
|
11
|
+
|
|
12
|
+
li + li {
|
|
13
|
+
margin-top: units.$u1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
dso-document-component[filtered] {
|
|
19
|
+
&::before {
|
|
20
|
+
left: -3px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
dso-document-component[not-applicable] {
|
|
25
|
+
opacity: 0.6;
|
|
26
|
+
|
|
27
|
+
dso-document-component[not-applicable] {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
dso-responsive-element:not([small]) {
|
|
33
|
+
dso-document-component dso-document-component {
|
|
34
|
+
--depth: var(--x, 1);
|
|
35
|
+
--y: calc(var(--depth) + 1);
|
|
36
|
+
|
|
37
|
+
margin-left: document-component-variables.$indent;
|
|
38
|
+
|
|
39
|
+
&[filtered] {
|
|
40
|
+
&::before {
|
|
41
|
+
left: calc((var(--depth) * #{document-component-variables.$indent} + 3px) * -1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
li {
|
|
46
|
+
--x: calc(var(--y));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/dso.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Global
|
|
2
2
|
@use "global/font-faces";
|
|
3
|
+
@use "global/spacing";
|
|
3
4
|
@use "global/utilities";
|
|
4
5
|
|
|
5
6
|
// Components
|
|
@@ -27,10 +28,10 @@
|
|
|
27
28
|
@use "components/definition-list/definition-list";
|
|
28
29
|
@use "components/delete/delete";
|
|
29
30
|
@use "components/description/description";
|
|
31
|
+
@use "components/document-component/document-component";
|
|
30
32
|
@use "components/document-header/document-header";
|
|
31
33
|
@use "components/document-list/document-list";
|
|
32
34
|
@use "components/dropdown-menu/dropdown-menu";
|
|
33
|
-
@use "components/expandable-heading/expandable-heading.scss";
|
|
34
35
|
@use "components/field-label/field-label";
|
|
35
36
|
@use "components/fieldset/fieldset";
|
|
36
37
|
@use "components/footer/footer";
|
|
File without changes
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@use "../../variables/colors";
|
|
2
|
-
@use "../../variables/units";
|
|
3
|
-
|
|
4
|
-
dso-expandable-heading {
|
|
5
|
-
*[slot="addons-end"] {
|
|
6
|
-
margin-left: units.$u1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&.dso-del,
|
|
10
|
-
&.dso-ins {
|
|
11
|
-
padding-block: units.$u2 units.$u1 * 0.5;
|
|
12
|
-
|
|
13
|
-
a {
|
|
14
|
-
color: colors.$zwart;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.dso-annotation-header,
|
|
18
|
-
.dso-annotation-content {
|
|
19
|
-
background-color: rgba(255, 255, 255, 0.4);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.dso-annotation-header {
|
|
23
|
-
border-bottom: 2px solid colors.$wit;
|
|
24
|
-
border-left: 1px solid colors.$grijs-20;
|
|
25
|
-
border-right: 1px solid colors.$grijs-20;
|
|
26
|
-
border-top: 1px solid colors.$grijs-20;
|
|
27
|
-
margin-bottom: -2px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dso-annotation-content {
|
|
31
|
-
border-bottom: 1px solid colors.$grijs-20;
|
|
32
|
-
border-left: 1px solid colors.$grijs-20;
|
|
33
|
-
border-right: 1px solid colors.$grijs-20;
|
|
34
|
-
padding-top: units.$u2 + 2px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# `<dso-expandable-heading>`
|