dso-toolkit 51.2.1 → 51.3.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
@@ -987,6 +987,11 @@ a.extern::after {
987
987
  border-color: #191919;
988
988
  color: #191919;
989
989
  }
990
+ .dso-badge.badge-attention {
991
+ background-color: #8b4a6a;
992
+ border-color: #8b4a6a;
993
+ color: #fff;
994
+ }
990
995
 
991
996
  .banner {
992
997
  background-color: #b62f41 !important;
@@ -2422,7 +2427,6 @@ dso-card.dso-has-image .dso-card-content {
2422
2427
  .dso-card .dso-card-heading {
2423
2428
  align-items: center;
2424
2429
  display: flex;
2425
- justify-content: space-between;
2426
2430
  margin-bottom: 8px;
2427
2431
  }
2428
2432
  @media screen and (max-width: 480px) {
@@ -2459,6 +2463,57 @@ dso-card:hover {
2459
2463
  dso-card:hover .dso-card-heading > a {
2460
2464
  text-decoration: underline;
2461
2465
  }
2466
+ .dso-card.dso-not-clickable h2,
2467
+ dso-card.dso-not-clickable h2 {
2468
+ color: #000;
2469
+ }
2470
+ .dso-card.dso-not-clickable:hover,
2471
+ dso-card.dso-not-clickable:hover {
2472
+ cursor: initial;
2473
+ }
2474
+ .dso-card h2[slot=heading],
2475
+ .dso-card h3[slot=heading],
2476
+ .dso-card h4[slot=heading],
2477
+ .dso-card h5[slot=heading],
2478
+ dso-card h2[slot=heading],
2479
+ dso-card h3[slot=heading],
2480
+ dso-card h4[slot=heading],
2481
+ dso-card h5[slot=heading] {
2482
+ align-items: center;
2483
+ display: flex;
2484
+ font-size: 1.125em;
2485
+ margin-bottom: 0;
2486
+ margin-top: 0;
2487
+ }
2488
+ .dso-card h2[slot=heading] span,
2489
+ .dso-card h3[slot=heading] span,
2490
+ .dso-card h4[slot=heading] span,
2491
+ .dso-card h5[slot=heading] span,
2492
+ dso-card h2[slot=heading] span,
2493
+ dso-card h3[slot=heading] span,
2494
+ dso-card h4[slot=heading] span,
2495
+ dso-card h5[slot=heading] span {
2496
+ margin-right: 8px;
2497
+ }
2498
+ .dso-card h2[slot=heading] span + dso-icon,
2499
+ .dso-card h2[slot=heading] span + svg.di,
2500
+ .dso-card h3[slot=heading] span + dso-icon,
2501
+ .dso-card h3[slot=heading] span + svg.di,
2502
+ .dso-card h4[slot=heading] span + dso-icon,
2503
+ .dso-card h4[slot=heading] span + svg.di,
2504
+ .dso-card h5[slot=heading] span + dso-icon,
2505
+ .dso-card h5[slot=heading] span + svg.di,
2506
+ dso-card h2[slot=heading] span + dso-icon,
2507
+ dso-card h2[slot=heading] span + svg.di,
2508
+ dso-card h3[slot=heading] span + dso-icon,
2509
+ dso-card h3[slot=heading] span + svg.di,
2510
+ dso-card h4[slot=heading] span + dso-icon,
2511
+ dso-card h4[slot=heading] span + svg.di,
2512
+ dso-card h5[slot=heading] span + dso-icon,
2513
+ dso-card h5[slot=heading] span + svg.di {
2514
+ flex-shrink: 0;
2515
+ position: relative;
2516
+ }
2462
2517
  .dso-card .dso-card-heading h2:first-child,
2463
2518
  .dso-card .dso-card-heading h3:first-child,
2464
2519
  .dso-card .dso-card-heading h4:first-child,
@@ -2562,6 +2617,11 @@ dso-card *[slot=heading] > a:hover {
2562
2617
  color: #275937;
2563
2618
  text-decoration: underline;
2564
2619
  }
2620
+ .dso-card *[slot=addon],
2621
+ dso-card *[slot=addon] {
2622
+ margin-left: 16px;
2623
+ margin-right: 8px;
2624
+ }
2565
2625
  .dso-card .dso-rich-content.dso-rich-content :first-child,
2566
2626
  dso-card .dso-rich-content.dso-rich-content :first-child {
2567
2627
  margin-top: 0;
@@ -2583,6 +2643,7 @@ dso-card img {
2583
2643
  [slot=interactions] {
2584
2644
  display: flex;
2585
2645
  justify-content: space-between;
2646
+ margin-left: auto;
2586
2647
  }
2587
2648
  .dso-card-interactions .dso-card-interaction,
2588
2649
  [slot=interactions] .dso-card-interaction {
@@ -3760,6 +3821,10 @@ dso-dropdown-menu[checkable] li.dso-checked button::before {
3760
3821
  margin-right: 8px;
3761
3822
  }
3762
3823
 
3824
+ dso-expandable-heading *[slot=addons-end] {
3825
+ margin-left: 8px;
3826
+ }
3827
+
3763
3828
  label {
3764
3829
  display: inline-block;
3765
3830
  max-width: 100%;
@@ -5967,8 +6032,6 @@ ins {
5967
6032
  display: inline-block;
5968
6033
  line-height: 1.5;
5969
6034
  max-width: 100%;
5970
- }
5971
- .dso-label:not(.dso-label-bright) {
5972
6035
  padding: 4px 8px;
5973
6036
  }
5974
6037
  .dso-label:focus-within, .dso-label.dso-hover {
@@ -5994,10 +6057,6 @@ ins {
5994
6057
  .dso-label button > svg.di {
5995
6058
  display: block;
5996
6059
  }
5997
- .dso-label.dso-compact {
5998
- border: 0;
5999
- padding: 0 8px;
6000
- }
6001
6060
  .dso-label.dso-label-info {
6002
6061
  background-color: #6ca4d9;
6003
6062
  color: #191919;
@@ -6025,8 +6084,15 @@ ins {
6025
6084
  .dso-label.dso-label-bright {
6026
6085
  background-color: #fff;
6027
6086
  color: #191919;
6028
- border: 1px solid #ccc;
6029
- padding: 3px 7px;
6087
+ outline: 1px solid #ccc;
6088
+ outline-offset: -1px;
6089
+ }
6090
+ .dso-label.dso-label-attention {
6091
+ background-color: #8b4a6a;
6092
+ color: #fff;
6093
+ }
6094
+ .dso-label.dso-compact {
6095
+ padding: 0 8px;
6030
6096
  }
6031
6097
  .dso-label .dso-label-symbol {
6032
6098
  background-color: #fff;
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ export { AlertType } from "./components/alert/alert.models.js";
6
6
  export { storiesOfAlert } from "./components/alert/alert.stories-of.js";
7
7
  export { storiesOfAnchor } from "./components/anchor/anchor.stories-of.js";
8
8
  export { storiesOfApplicationHeading, } from "./components/application-heading/application-heading.stories-of.js";
9
+ export { storiesOfAnnotation } from "./components/annotation/annotation.stories-of.js";
9
10
  export { storiesOfAttachmentsCounter, } from "./components/attachments-counter/attachments-counter.stories-of.js";
10
11
  export { storiesOfAutosuggest } from "./components/autosuggest/autosuggest.stories-of.js";
11
12
  export { storiesOfBadge } from "./components/badge/badge.stories-of.js";
@@ -25,6 +26,7 @@ export { storiesOfDescription } from "./components/description/description.stori
25
26
  export { storiesOfDocumentHeader, } from "./components/document-header/document-header.stories-of.js";
26
27
  export { storiesOfDocumentList } from "./components/document-list/document-list.stories-of.js";
27
28
  export { storiesOfDropdownMenu } from "./components/dropdown-menu/dropdown-menu.stories-of.js";
29
+ export { storiesOfExpandableHeading, } from "./components/expandable-heading/expandable-heading.stories-of.js";
28
30
  export { storiesOfFootnotes } from "./components/footnotes/footnotes.stories-of.js";
29
31
  export { storiesOfForm } from "./components/form/form.stories-of.js";
30
32
  export { storiesOfFormButtons } from "./components/form-buttons/form-buttons.stories-of.js";
@@ -38,6 +40,7 @@ export { storiesOfInfoButton } from "./components/info-button/info-button.storie
38
40
  export { storiesOfInfo } from "./components/info/info.stories-of.js";
39
41
  export { storiesOfInputNumber } from "./components/input-number/input-number.stories-of.js";
40
42
  export { storiesOfJustifyFormGroups, } from "./components/justify-form-groups/justify-form-groups.stories-of.js";
43
+ export { isLabelInterface } from "./components/label/label.models.js";
41
44
  export { storiesOfLabel } from "./components/label/label.stories-of.js";
42
45
  export { storiesOfLabelGroup } from "./components/label-group/label-group.stories-of.js";
43
46
  export { LinkListType } from "./components/link-list/link-list.models.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": "51.2.1",
5
+ "version": "51.3.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -0,0 +1,24 @@
1
+ # `<dso-annotation-button>` & `<dso-annotation-output>`
2
+
3
+ ## Instructies voor afnemers
4
+
5
+ Annotation bestaat uit twee componenten die altijd samen ingezet moeten worden. Een button en een output. Deze moeten dezelfde identifier hebben. Zie voorbeeld hieronder.
6
+
7
+ ```
8
+ <dso-annotation-button identifier="id"></dso-annotation-button>
9
+ <dso-annotation-output identifier="id">
10
+ <h2 slot="title">Annotaties</h2>
11
+ <p>Dit is content die in de output staat</p>
12
+ </dso-annotation-output>
13
+ ```
14
+
15
+ Het is ook mogelijk om in de header van de output html te plaatsen. Dit kan door middel van `slot="addons"`, zoals het voorbeeld hieronder.
16
+
17
+ ```
18
+ <dso-annotation-button identifier="id"></dso-annotation-button>
19
+ <dso-annotation-output identifier="id">
20
+ <h2 slot="title">Annotaties</h2>
21
+ <dso-selectable slot="addons" type="checkbox" identifier="123" value=""></dso-selectable>
22
+ <p>Dit is content die in de output staat</p>
23
+ </dso-annotation-output>
24
+ ```
@@ -56,4 +56,10 @@
56
56
  border-color: colors.$grijs-90;
57
57
  color: colors.$grijs-90;
58
58
  }
59
+
60
+ &.badge-attention {
61
+ background-color: badge-variables.$attention-bg-color;
62
+ border-color: badge-variables.$attention-bg-color;
63
+ color: colors.$wit;
64
+ }
59
65
  }
@@ -7,5 +7,6 @@ $success-bg-color: colors.$success-color;
7
7
  $warning-bg-color: colors.$warning-color;
8
8
  $danger-bg-color: colors.$danger-color;
9
9
  $error-bg-color: colors.$error-color;
10
+ $attention-bg-color: colors.$mauve;
10
11
 
11
12
  $line-height: 1;
@@ -29,13 +29,22 @@
29
29
  text-decoration: underline;
30
30
  }
31
31
  }
32
+
33
+ &.dso-not-clickable {
34
+ h2 {
35
+ color: colors.$zwart;
36
+ }
37
+
38
+ &:hover {
39
+ cursor: initial;
40
+ }
41
+ }
32
42
  }
33
43
 
34
44
  @mixin root() {
35
45
  .dso-card-heading {
36
46
  align-items: center;
37
47
  display: flex;
38
- justify-content: space-between;
39
48
  margin-bottom: units.$u1;
40
49
 
41
50
  @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
@@ -63,4 +72,5 @@
63
72
  @mixin interactions() {
64
73
  display: flex;
65
74
  justify-content: space-between;
75
+ margin-left: auto;
66
76
  }
@@ -38,6 +38,27 @@ dso-card {
38
38
  @extend %card-grid;
39
39
  }
40
40
 
41
+ h2[slot="heading"],
42
+ h3[slot="heading"],
43
+ h4[slot="heading"],
44
+ h5[slot="heading"] {
45
+ align-items: center;
46
+ display: flex;
47
+ font-size: 1.125em;
48
+ margin-bottom: 0;
49
+ margin-top: 0;
50
+
51
+ span {
52
+ margin-right: units.$u1;
53
+
54
+ + dso-icon,
55
+ + svg.di {
56
+ flex-shrink: 0;
57
+ position: relative;
58
+ }
59
+ }
60
+ }
61
+
41
62
  .dso-card-heading,
42
63
  *[slot="heading"] {
43
64
  h2:first-child,
@@ -78,6 +99,11 @@ dso-card {
78
99
  }
79
100
  }
80
101
 
102
+ *[slot="addon"] {
103
+ margin-left: units.$u2;
104
+ margin-right: units.$u1;
105
+ }
106
+
81
107
  .dso-rich-content.dso-rich-content {
82
108
  :first-child {
83
109
  margin-top: 0;
File without changes
@@ -0,0 +1,7 @@
1
+ @use "../../variables/units";
2
+
3
+ dso-expandable-heading {
4
+ *[slot="addons-end"] {
5
+ margin-left: units.$u1;
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ # `<dso-expandable-heading>`
@@ -10,10 +10,7 @@
10
10
  display: inline-block;
11
11
  line-height: 1.5;
12
12
  max-width: 100%;
13
-
14
- &:not(.dso-label-bright) {
15
- padding: #{units.$u1 * 0.5} units.$u1;
16
- }
13
+ padding: #{units.$u1 * 0.5} units.$u1;
17
14
 
18
15
  &:focus-within,
19
16
  &.dso-hover {
@@ -43,11 +40,6 @@
43
40
  }
44
41
  }
45
42
 
46
- &.dso-compact {
47
- border: 0;
48
- padding: 0 8px;
49
- }
50
-
51
43
  &.dso-label-info {
52
44
  background-color: label-variables.$info-bg-color;
53
45
  color: label-variables.$info-color;
@@ -81,8 +73,17 @@
81
73
  &.dso-label-bright {
82
74
  background-color: label-variables.$bright-bg-color;
83
75
  color: label-variables.$bright-color;
84
- border: 1px solid label-variables.$bright-border-color;
85
- padding: #{units.$u1 * 0.5 - 1px} units.$u1 - 1px;
76
+ outline: 1px solid label-variables.$bright-border-color;
77
+ outline-offset: -1px;
78
+ }
79
+
80
+ &.dso-label-attention {
81
+ background-color: label-variables.$attention-bg-color;
82
+ color: label-variables.$attention-color;
83
+ }
84
+
85
+ &.dso-compact {
86
+ padding: 0 units.$u1;
86
87
  }
87
88
  }
88
89
 
@@ -27,5 +27,8 @@ $bright-bg-color: colors.$wit;
27
27
  $bright-color: colors.$grijs-90;
28
28
  $bright-border-color: colors.$grijs-20;
29
29
 
30
+ $attention-bg-color: colors.$mauve;
31
+ $attention-color: colors.$wit;
32
+
30
33
  $symbol-height: 20px;
31
34
  $symbol-aspect-ratio: math.div(30, 25);
package/src/dso.scss CHANGED
@@ -29,6 +29,7 @@
29
29
  @use "components/document-header/document-header";
30
30
  @use "components/document-list/document-list";
31
31
  @use "components/dropdown-menu/dropdown-menu";
32
+ @use "components/expandable-heading/expandable-heading.scss";
32
33
  @use "components/field-label/field-label";
33
34
  @use "components/fieldset/fieldset";
34
35
  @use "components/footer/footer";