dso-toolkit 66.0.0 → 66.2.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/index.js CHANGED
@@ -50,11 +50,11 @@ export * from "./components/legend-item";
50
50
  export * from "./components/link-list";
51
51
  export * from "./components/list";
52
52
  export * from "./components/list-button";
53
- export { storiesOfLogo } from "./components/logo/logo.stories-of.js";
53
+ export * from "./components/logo";
54
+ export * from "./components/map-controls";
54
55
  export * from "./components/mark-bar";
55
56
  export * from "./components/modal";
56
- export { storiesOfMapControls, } from "./components/map-controls/map-controls.stories-of.js";
57
- export { storiesOfNavbar } from "./components/navbar/navbar.stories-of.js";
57
+ export * from "./components/navbar";
58
58
  export * from "./components/ozon-content";
59
59
  export * from "./components/pagination";
60
60
  export * from "./components/panel";
@@ -65,8 +65,8 @@ export * from "./components/progress-indicator";
65
65
  export * from "./components/project-item";
66
66
  export * from "./components/input-range";
67
67
  export * from "./components/renvooi";
68
- export { storiesOfResponsiveElement, } from "./components/responsive-element/responsive-element.stories-of.js";
69
- export { storiesOfRichContent } from "./components/rich-content/rich-content.stories-of.js";
68
+ export * from "./components/responsive-element";
69
+ export * from "./components/rich-content";
70
70
  export { storiesOfRowEqualHeights, } from "./components/row-equal-heights/row-equal-heights.stories-of.js";
71
71
  export { storiesOfScrollable } from "./components/scrollable/scrollable.stories-of.js";
72
72
  export { storiesOfSearchBar } from "./components/search-bar/search-bar.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": "66.0.0",
5
+ "version": "66.2.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -41,10 +41,10 @@
41
41
  "@types/gulp-rename": "^2.0.6",
42
42
  "@types/list-stream": "^1.0.3",
43
43
  "@types/through2": "^2.0.41",
44
- "concurrently": "^9.0.1",
44
+ "concurrently": "^9.1.0",
45
45
  "css": "^3.0.0",
46
46
  "cssnano": "^7.0.6",
47
- "del": "^7.1.0",
47
+ "del": "^8.0.0",
48
48
  "escape-string-regexp": "^5.0.0",
49
49
  "gulp": "^5.0.0",
50
50
  "gulp-cheerio": "^1.0.0",
@@ -62,10 +62,10 @@
62
62
  "prettier": "^3.3.3",
63
63
  "react": "^18.3.1",
64
64
  "react-dom": "^18.3.1",
65
- "sass": "1.79.4",
65
+ "sass": "1.80.6",
66
66
  "through2": "^4.0.2",
67
- "typescript": "^5.5.4",
68
- "uuid": "^10.0.0",
67
+ "typescript": "~5.5.4",
68
+ "uuid": "^11.0.2",
69
69
  "vinyl-sourcemaps-apply": "^0.2.1"
70
70
  },
71
71
  "nx": {
@@ -1,4 +1,5 @@
1
1
  @use "sass:map";
2
+ @use "sass:string";
2
3
 
3
4
  @use "../../utilities";
4
5
  @use "../../variables/units";
@@ -78,7 +79,7 @@
78
79
  }
79
80
 
80
81
  @mixin _spinner-icon($color, $valign, $position) {
81
- background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23#{str-slice(#{$color}, 2)}; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
82
+ background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23#{string.slice(#{$color}, 2)}; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
82
83
  background-repeat: no-repeat;
83
84
  content: "";
84
85
  display: inline-block;
@@ -32,6 +32,10 @@
32
32
  :first-child {
33
33
  margin-block-start: 0;
34
34
  }
35
+
36
+ :last-child {
37
+ margin-block-end: 0;
38
+ }
35
39
  }
36
40
 
37
41
  .dso-selectable {
@@ -69,6 +73,12 @@ dso-card {
69
73
  }
70
74
  }
71
75
 
76
+ div[slot="content"] {
77
+ --_dt-rich-content-margin-block: #{units.$u1};
78
+ --_dt-rich-content-margin-block-end: 0;
79
+ --_dt-rich-content-margin-block-start: 0;
80
+ }
81
+
72
82
  dso-selectable {
73
83
  label {
74
84
  font-size: 0;
@@ -77,7 +87,7 @@ dso-card {
77
87
  }
78
88
 
79
89
  .dso-card-container {
80
- padding-block: units.$u2 units.$u1;
90
+ padding-block: units.$u2;
81
91
  padding-inline: units.$u2;
82
92
  inline-size: 100%;
83
93
 
@@ -133,7 +143,8 @@ dso-card {
133
143
  }
134
144
 
135
145
  .dso-card-interactions,
136
- [slot="interactions"] {
146
+ [slot="interactions"],
147
+ [slot="interaction"] {
137
148
  display: flex;
138
149
  justify-content: space-between;
139
150
  margin-inline-start: auto;
@@ -1,10 +1,25 @@
1
1
  @use "../../variables/colors";
2
2
  @use "../../global/mixins/set-colors.mixin" as set-colors;
3
3
 
4
- @mixin root() {
4
+ /// The root mixin to apply the correct color and strikethrough for a delete visualisation.
5
+ /// @param {Boolean} $strikethrough - Whether to apply a strikethrough or not. Default is true. If false, only background color will be applied. Consumers are responsible for setting strikethrough styles. For example with the `delete.strikethrough()` mixin.
6
+ @mixin root($strikethrough: true) {
5
7
  @include set-colors.apply(colors.$rood-20);
6
8
 
7
- & {
8
- text-decoration: line-through;
9
+ @if ($strikethrough) {
10
+ & {
11
+ @include strikethrough();
12
+ }
13
+ }
14
+ }
15
+
16
+ /// The mixin to apply a strikethrough to a delete visualisation.
17
+ @mixin strikethrough($_value: line-through) {
18
+ text-decoration: $_value;
19
+
20
+ // stylelint-disable media-feature-name-no-unknown -- counter line-through displaying as underline in firefox
21
+ // http://browserhacks.com/#hack-48ca6fc2947b7850c571a2f69bdbffbd
22
+ @media screen and (min--moz-device-pixel-ratio: 0) {
23
+ font-family: sans-serif;
9
24
  }
10
25
  }
@@ -16,7 +16,7 @@
16
16
  @include di.base("chevron-down");
17
17
  }
18
18
 
19
- &:hover {
19
+ &:active {
20
20
  &::after {
21
21
  @include di.variant("chevron-down-wit");
22
22
  }
@@ -56,7 +56,7 @@
56
56
  @include di.variant("chevron-up");
57
57
  }
58
58
 
59
- &:hover::after {
59
+ &:active::after {
60
60
  @include di.variant("chevron-up-wit");
61
61
  }
62
62
  }
@@ -1 +1,7 @@
1
1
  # `.pagination`
2
+
3
+ ## Gedrag en toegankelijkheid
4
+
5
+ Let bij implementatie van de pagination op het volgende:
6
+
7
+ - Het responsive tonen van het aantal pagina's werkt in het HTML/CSS component **niet**, wij adviseren om het core (web)component te gebruiken. Hierin zijn namelijk de breakpoints verwerkt en gekoppeld aan de aantal toonbare pagina's.
@@ -4,7 +4,7 @@
4
4
 
5
5
  @mixin children() {
6
6
  p {
7
- margin-block: 0 rich-content-variables.$margin-block-end;
7
+ margin-block: 0 var(--_dt-rich-content-margin-block, rich-content-variables.$margin-block-end);
8
8
  margin-inline: 0;
9
9
  }
10
10
 
@@ -4,10 +4,10 @@
4
4
  @include rich-content.children();
5
5
 
6
6
  > :first-child:not(hr, .dso-button-row) {
7
- margin-block-start: rich-content.$margin-block-start * 0.5;
7
+ margin-block-start: var(--_dt-rich-content-margin-block-start, rich-content.$margin-block-start * 0.5);
8
8
  }
9
9
 
10
10
  > :last-child:not(hr, .dso-button-row) {
11
- margin-block-end: rich-content.$margin-block-end * 0.5;
11
+ margin-block-end: var(--_dt-rich-content-margin-block-end, rich-content.$margin-block-end * 0.5);
12
12
  }
13
13
  }
@@ -32,11 +32,13 @@ $grijs-5: #f2f2f2; // - niet te gebruiken als leestekst
32
32
  $wit: #fff;
33
33
 
34
34
  $lime: #79b929; // 100% tint
35
+ $lime-10: #f2f8ea; // 10% tint
35
36
  $lime-20: #e4f1d4; // 20% tint
36
37
  $lime-20-5: #d8e5c9; // 20% tint 5% zwart
37
38
  $lime-20-10: #ced9bf; // 20% tint 10% zwart
38
39
  $rood: #ce3f51; // 100% tint
39
40
  $rood-110: #b62f41; // 110% tint
41
+ $rood-10: #faecee; // 10% tint
40
42
  $rood-20: #f5d8dc; // 20% tint
41
43
  $rood-20-5: #e9cdd1; // 20% tint 5% zwart
42
44
  $rood-20-10: #ddc3c6; // 20% tint 10% zwart