dso-toolkit 55.0.0 → 56.1.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 CHANGED
@@ -46,6 +46,25 @@
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
+
53
+ :where(.dso-button-row) {
54
+ margin-block: 16px 32px;
55
+ }
56
+
57
+ :where(dso-highlight-box) :where(.dso-button-row),
58
+ :where(.dso-highlight-box) :where(.dso-button-row) {
59
+ margin-block: 0;
60
+ }
61
+ :where(dso-highlight-box) :where(*) + :where(.dso-button-row),
62
+ :where(dso-highlight-box) :where(.dso-button-row) + :where(*),
63
+ :where(.dso-highlight-box) :where(*) + :where(.dso-button-row),
64
+ :where(.dso-highlight-box) :where(.dso-button-row) + :where(*) {
65
+ margin-block-start: 16px;
66
+ }
67
+
49
68
  .text-right {
50
69
  text-align: right;
51
70
  }
@@ -2398,7 +2417,6 @@ a.dso-tertiary, a.dso-tertiary:visited {
2398
2417
  display: flex;
2399
2418
  flex-wrap: wrap;
2400
2419
  gap: 16px;
2401
- margin: 16px 0 32px;
2402
2420
  }
2403
2421
  .dso-button-row .btn:not(.dso-list-button),
2404
2422
  .dso-button-row .dso-primary,
@@ -2432,6 +2450,12 @@ a.dso-tertiary, a.dso-tertiary:visited {
2432
2450
  .dso-button-row.dso-emphasized .dso-tertiary {
2433
2451
  color: #000;
2434
2452
  }
2453
+ .dso-button-row.dso-align-right {
2454
+ justify-content: flex-end;
2455
+ }
2456
+ .dso-button-row.dso-align-center {
2457
+ justify-content: center;
2458
+ }
2435
2459
 
2436
2460
  dso-card[is-selectable], dso-card[has-image], .dso-card.dso-is-selectable, .dso-card.dso-has-image,
2437
2461
  dso-card.dso-is-selectable,
@@ -3164,6 +3188,38 @@ del {
3164
3188
  display: block;
3165
3189
  }
3166
3190
 
3191
+ .dso-document-components ul {
3192
+ padding-left: 0;
3193
+ list-style: none;
3194
+ margin: 0;
3195
+ }
3196
+ .dso-document-components ul li + li {
3197
+ margin-top: 8px;
3198
+ }
3199
+
3200
+ dso-document-component[filtered]::before {
3201
+ left: -3px;
3202
+ }
3203
+
3204
+ dso-document-component[not-applicable] {
3205
+ opacity: 0.6;
3206
+ }
3207
+ dso-document-component[not-applicable] dso-document-component[not-applicable] {
3208
+ opacity: 1;
3209
+ }
3210
+
3211
+ dso-responsive-element:not([small]) dso-document-component dso-document-component {
3212
+ --depth: var(--x, 1);
3213
+ --y: calc(var(--depth) + 1);
3214
+ margin-left: 24px;
3215
+ }
3216
+ dso-responsive-element:not([small]) dso-document-component dso-document-component[filtered]::before {
3217
+ left: calc((var(--depth) * 24px + 3px) * -1);
3218
+ }
3219
+ dso-responsive-element:not([small]) dso-document-component dso-document-component li {
3220
+ --x: calc(var(--y));
3221
+ }
3222
+
3167
3223
  .dso-document-header {
3168
3224
  background-color: #f2f2f2;
3169
3225
  color: #000;
@@ -3906,34 +3962,6 @@ dso-dropdown-menu[checkable] li.dso-checked button::before {
3906
3962
  margin-right: 8px;
3907
3963
  }
3908
3964
 
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
3965
  label {
3938
3966
  display: inline-block;
3939
3967
  max-width: 100%;
@@ -5542,7 +5570,7 @@ h1 {
5542
5570
 
5543
5571
  h2,
5544
5572
  .h2 {
5545
- line-height: 1.33;
5573
+ line-height: 1.25;
5546
5574
  }
5547
5575
 
5548
5576
  h2 {
@@ -5553,7 +5581,7 @@ h2 {
5553
5581
 
5554
5582
  h3,
5555
5583
  .h3 {
5556
- line-height: 1.2;
5584
+ line-height: 1.25;
5557
5585
  }
5558
5586
 
5559
5587
  h3 {
@@ -7191,10 +7219,10 @@ pre {
7191
7219
  height: auto;
7192
7220
  max-width: 100%;
7193
7221
  }
7194
- .dso-rich-content > :first-child:not(hr) {
7222
+ .dso-rich-content > :first-child:not(hr, .dso-button-row) {
7195
7223
  margin-top: 8px;
7196
7224
  }
7197
- .dso-rich-content > :last-child:not(hr) {
7225
+ .dso-rich-content > :last-child:not(hr, .dso-button-row) {
7198
7226
  margin-bottom: 8px;
7199
7227
  }
7200
7228
 
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,7 +2,7 @@
2
2
  "name": "dso-toolkit",
3
3
  "description": "DSO Toolkit",
4
4
  "license": "SEE LICENSE IN DISCLAIMER.txt",
5
- "version": "55.0.0",
5
+ "version": "56.1.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -2,11 +2,7 @@
2
2
 
3
3
  @use "anchor.variables" as anchor-variables;
4
4
 
5
- @mixin root($is-html-a-element: true) {
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 {
@@ -6,7 +6,6 @@
6
6
  display: flex;
7
7
  flex-wrap: wrap;
8
8
  gap: units.$u2;
9
- margin: units.$u2 0 units.$u4;
10
9
 
11
10
  .btn:not(.dso-list-button),
12
11
  .dso-primary,
@@ -31,4 +30,12 @@
31
30
  color: colors.$zwart;
32
31
  }
33
32
  }
33
+
34
+ &.dso-align-right {
35
+ justify-content: flex-end;
36
+ }
37
+
38
+ &.dso-align-center {
39
+ justify-content: center;
40
+ }
34
41
  }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ @use "../../variables/units";
2
+
3
+ $indent: units.$u3;
@@ -1,6 +1,6 @@
1
- @use "../../variables/units";
2
1
  @use "../../variables/colors";
3
2
  @use "../../variables/typography";
3
+ @use "../../variables/units";
4
4
 
5
5
  @mixin base() {
6
6
  color: colors.$bosgroen;
@@ -1,6 +1,6 @@
1
- @use "../../variables/units";
2
1
  @use "../../variables/colors";
3
2
  @use "../../variables/typography";
3
+ @use "../../variables/units";
4
4
  @use "../headings";
5
5
 
6
6
  h1,
@@ -3,11 +3,11 @@
3
3
  .dso-rich-content {
4
4
  @include rich-content.children();
5
5
 
6
- > :first-child:not(hr) {
6
+ > :first-child:not(hr, .dso-button-row) {
7
7
  margin-top: rich-content.$margin-bottom * 0.5;
8
8
  }
9
9
 
10
- > :last-child:not(hr) {
10
+ > :last-child:not(hr, .dso-button-row) {
11
11
  margin-bottom: rich-content.$margin-bottom * 0.5;
12
12
  }
13
13
  }
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";
@@ -0,0 +1,27 @@
1
+ @use "../variables/units.scss";
2
+
3
+ // Create space between action list and form buttons
4
+ // To Do: integrate this with things to come within this file.
5
+ :where(dso-action-list) + :where(.dso-form-buttons) {
6
+ margin-block-start: units.$vertical-spacing-xlarge;
7
+ }
8
+
9
+ // Original spacing of dso-button-row
10
+ // To Do: re-evaluate vertical rhythm
11
+ :where(.dso-button-row) {
12
+ margin-block: units.$u2 units.$u4;
13
+ }
14
+
15
+ // within dso-highlight-box, create space for dso-button-row when preceded and/or followed by other elements
16
+ // To Do: integrate this with things to come within this file, and remove the wildcard!
17
+ :where(dso-highlight-box),
18
+ :where(.dso-highlight-box) {
19
+ :where(.dso-button-row) {
20
+ margin-block: 0;
21
+ }
22
+
23
+ :where(*) + :where(.dso-button-row),
24
+ :where(.dso-button-row) + :where(*) {
25
+ margin-block-start: units.$vertical-spacing-medium;
26
+ }
27
+ }
@@ -30,9 +30,11 @@ $ru8: $_runit * 8;
30
30
  $ru9: $_runit * 9;
31
31
  $ru10: $_runit * 10;
32
32
 
33
- $font-line-height-h1: 1.25;
34
- $font-line-height-h2: 1.33;
35
- $font-line-height-h3: 1.2;
33
+ $font-heading-line-height-base: 1.25;
34
+
35
+ $font-line-height-h1: $font-heading-line-height-base;
36
+ $font-line-height-h2: $font-heading-line-height-base;
37
+ $font-line-height-h3: $font-heading-line-height-base;
36
38
  $font-line-height-h4: 1.5;
37
39
  $font-line-height-h5: 1.5;
38
40
  $font-line-height-h6: 1.5;
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>`