@ndwnu/design-system 12.2.1 → 13.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/package.json CHANGED
@@ -1,29 +1,31 @@
1
1
  {
2
2
  "name": "@ndwnu/design-system",
3
- "version": "12.2.1",
3
+ "version": "13.0.0",
4
4
  "peerDependencies": {
5
- "@angular/animations": "^20.0.0",
6
- "@angular/cdk": "^20.0.0",
7
- "@angular/common": "^20.0.0",
8
- "@angular/core": "^20.0.0",
9
- "@angular/forms": "^20.0.0",
10
- "@angular/material": "^20.0.0",
11
- "@angular/router": "^20.0.0",
12
- "@ndwnu/core": "2.1.1",
5
+ "@angular/cdk": "^21.0.0",
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0",
8
+ "@angular/forms": "^21.0.0",
9
+ "@angular/material": "^21.0.0",
10
+ "@angular/router": "^21.0.0",
13
11
  "@github/markdown-toolbar-element": "2.2.3",
12
+ "dompurify": "^3.3.0",
13
+ "marked": "^17.0.1",
14
+ "@ndwnu/core": "2.1.1",
14
15
  "ag-grid-angular": "^34.0.2",
15
16
  "ag-grid-community": "^34.0.2",
16
- "rxjs": "^7.8.0"
17
+ "rxjs": "^7.8.0",
18
+ "shepherd.js": "^14.5.1"
17
19
  },
18
20
  "sideEffects": false,
19
21
  "module": "fesm2022/ndwnu-design-system.mjs",
20
- "typings": "index.d.ts",
22
+ "typings": "types/ndwnu-design-system.d.ts",
21
23
  "exports": {
22
24
  "./package.json": {
23
25
  "default": "./package.json"
24
26
  },
25
27
  ".": {
26
- "types": "./index.d.ts",
28
+ "types": "./types/ndwnu-design-system.d.ts",
27
29
  "default": "./fesm2022/ndwnu-design-system.mjs"
28
30
  }
29
31
  },
@@ -0,0 +1,70 @@
1
+ @use 'shepherd.js/dist/css/shepherd.css';
2
+ @use '../base/typography' as typo;
3
+ @use '../components/button' as ndwButton;
4
+
5
+ .shepherd-theme-ndw {
6
+ --image-height: 200px;
7
+
8
+ position: relative;
9
+ background-color: var(--ndw-color-white);
10
+ border-radius: var(--ndw-border-radius-md);
11
+ box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.5);
12
+ padding: var(--ndw-spacing-lg);
13
+
14
+ &.shepherd-has-title {
15
+ .shepherd-header {
16
+ padding: 0;
17
+ background-color: var(--ndw-color-white);
18
+
19
+ .shepherd-title {
20
+ @include typo.ndw-heading-sm;
21
+ }
22
+ }
23
+ }
24
+
25
+ // Add padding-top when image is present to make room for the absolute positioned image
26
+ &.shepherd-has-image {
27
+ padding-top: calc(var(--image-height) + var(--ndw-spacing-lg));
28
+ }
29
+
30
+ .shepherd-text {
31
+ display: block;
32
+ padding: 0;
33
+ margin-block: var(--ndw-spacing-md);
34
+ @include typo.ndw-paragraph-md;
35
+
36
+ // Styling for optional step images - positioned absolutely above title
37
+ .shepherd-step-image {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ display: block;
43
+ width: 100%;
44
+ height: var(--image-height);
45
+ border-radius: var(--ndw-border-radius-md) var(--ndw-border-radius-md) 0 0;
46
+ object-fit: cover;
47
+ }
48
+ }
49
+
50
+ .shepherd-footer {
51
+ padding: 0;
52
+
53
+ .primary.shepherd-button {
54
+ @extend [ndwButton];
55
+ }
56
+
57
+ .secondary.shepherd-button {
58
+ @extend [ndwButton], [secondary];
59
+ }
60
+
61
+ .tertiary.shepherd-button {
62
+ @extend [ndwButton], [tertiary];
63
+ }
64
+ }
65
+
66
+ // Override Shepherd's default grey arrow for elements with titles
67
+ &.shepherd-has-title[data-popper-placement^='bottom'] > .shepherd-arrow:before {
68
+ background-color: var(--ndw-color-white);
69
+ }
70
+ }
@@ -39,7 +39,7 @@
39
39
  &:focus-visible {
40
40
  background-color: var(--ndw-color-white);
41
41
  border-color: transparent;
42
- outline-color: var(--ndw-color-secondary-500);
42
+ outline-color: var(--ndw-color-info-500);
43
43
  }
44
44
  }
45
45
 
@@ -60,7 +60,7 @@
60
60
  &:focus-visible {
61
61
  background-color: var(--ndw-color-white);
62
62
  border-color: transparent;
63
- outline-color: var(--ndw-color-secondary-500);
63
+ outline-color: var(--ndw-color-info-500);
64
64
  }
65
65
  }
66
66
 
@@ -161,6 +161,19 @@
161
161
  &:has(textarea) {
162
162
  padding-inline: 0;
163
163
  }
164
+
165
+ // Set correct background color for max char counter for text areas
166
+ & .max-char-counter {
167
+ background-color: var(--ndw-color-white);
168
+ }
169
+
170
+ &[success] .max-char-counter {
171
+ background-color: var(--ndw-color-positive-100);
172
+ }
173
+
174
+ &[error] .max-char-counter {
175
+ background-color: var(--ndw-color-critical-100);
176
+ }
164
177
  }
165
178
 
166
179
  [ndwInput] {
@@ -3,7 +3,7 @@
3
3
  background-color: transparent;
4
4
  border-color: transparent;
5
5
  border-radius: 0;
6
- color: var(--ndw-color-grey-400);
6
+ color: var(--ndw-color-grey-300);
7
7
  gap: var(--ndw-spacing-xs);
8
8
  height: 2.625rem;
9
9
  padding-inline: 0;
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  &:has(a:focus:not(:active)) {
32
- outline: var(--ndw-border-size-sm) solid var(--ndw-color-secondary-500);
32
+ outline: var(--ndw-border-size-sm) solid var(--ndw-color-info-500);
33
33
  }
34
34
  }
35
35
 
@@ -5,6 +5,7 @@
5
5
  @forward 'dropdown';
6
6
  @forward 'edit-bar';
7
7
  @forward 'filter-button';
8
+ @forward 'guided-tour';
8
9
  @forward 'input';
9
10
  @forward 'label';
10
11
  @forward 'link';
@@ -42,14 +42,14 @@
42
42
  --ndw-color-primary-hover: var(--ndw-color-primary-600);
43
43
  --ndw-color-primary-active: var(--ndw-color-primary-700);
44
44
 
45
- --_secondary-050: 209, 100%, 96%;
46
- --_secondary-100: 209, 85%, 91%;
47
- --_secondary-200: 209, 85%, 78%;
48
- --_secondary-300: 209, 85%, 69%;
49
- --_secondary-400: 208, 100%, 46%;
50
- --_secondary-500: 208, 100%, 41%;
51
- --_secondary-600: 209, 100%, 32%;
52
- --_secondary-700: 209, 100%, 18%;
45
+ --_secondary-050: 339, 67%, 94%;
46
+ --_secondary-100: 333, 19%, 70%;
47
+ --_secondary-200: 327, 17%, 47%;
48
+ --_secondary-300: 324, 25%, 29%;
49
+ --_secondary-400: 317, 26%, 23%;
50
+ --_secondary-500: 312, 29%, 18%;
51
+ --_secondary-600: 312, 29%, 15%;
52
+ --_secondary-700: 312, 30%, 12%;
53
53
 
54
54
  --ndw-color-secondary-050: hsl(var(--_secondary-050));
55
55
  --ndw-color-secondary-100: hsl(var(--_secondary-100));