@ndwnu/design-system 11.0.2 → 11.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.
@@ -16,7 +16,7 @@ export declare class BannerComponent implements AfterViewInit {
16
16
  */
17
17
  readMoreLabel: import("@angular/core").InputSignal<string>;
18
18
  /**
19
- * Use info, info-grey, warning or critical to indicate the type of banner.
19
+ * Use info, info-grey, warning, positive or critical to indicate the type of banner.
20
20
  */
21
21
  type: import("@angular/core").InputSignal<BannerType>;
22
22
  /**
@@ -1 +1 @@
1
- export type BannerType = 'critical' | 'info';
1
+ export type BannerType = 'critical' | 'info' | 'info-grey' | 'warning' | 'positive';
@@ -1,4 +1,4 @@
1
- export { AutosuggestOption, AutosuggestOptions } from '@ndwnu/core';
1
+ export { AutosuggestOption, AutosuggestOptions, AutosuggestSearchFn } from '@ndwnu/core';
2
2
  export * from './autosuggest.directive';
3
3
  export * from './autosuggest-option';
4
4
  export * from './autosuggest-panel';
@@ -0,0 +1,7 @@
1
+ import { MatCalendarCellClassFunction } from '@angular/material/datepicker';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DatepickerComponent {
4
+ dateClass: MatCalendarCellClassFunction<Date>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ndw-datepicker", never, {}, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './datepicker.component';
@@ -1,6 +1,7 @@
1
1
  export * from './autosuggest';
2
2
  export * from './checkbox';
3
3
  export * from './checkbox-group';
4
+ export * from './datepicker';
4
5
  export * from './error';
5
6
  export * from './file-upload';
6
7
  export * from './form-field.component';
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@ndwnu/design-system",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.0.0",
6
6
  "@angular/cdk": "^19.0.0",
7
7
  "@angular/common": "^19.0.0",
8
8
  "@angular/core": "^19.0.0",
9
9
  "@angular/forms": "^19.0.0",
10
+ "@angular/material": "^19.0.0",
10
11
  "@angular/router": "^19.0.0",
11
- "@ndwnu/core": "1.1.3",
12
+ "@ndwnu/core": "1.1.4",
12
13
  "@storybook/addon-actions": "8.6.12",
13
14
  "@storybook/angular": "8.6.12",
14
15
  "ag-grid-angular": "^34.0.2",
@@ -88,10 +88,14 @@
88
88
  // Feedback
89
89
  --_positive: 133, 92%;
90
90
  --_positive-100: 117, 56%, 92%;
91
+ --_positive-200: var(--_positive), 88%;
92
+ --_positive-300: var(--_positive), 82%;
91
93
  --_positive-500: var(--_positive), 33%;
92
94
  --_positive-600: var(--_positive), 24%;
93
95
  --_warning: 43, 93%;
94
96
  --_warning-100: 44, 100%, 94%;
97
+ --_warning-200: var(--_warning), 92%;
98
+ --_warning-300: var(--_warning), 88%;
95
99
  --_warning-500: var(--_warning), 43%;
96
100
  --_warning-600: 42, 83%, 32%;
97
101
  --_alternative: 292, 100%;
@@ -104,12 +108,17 @@
104
108
  --_critical-500: var(--_critical), 46%;
105
109
  --_info-100: 210, 100%, 96%;
106
110
  --_info-200: 210, 86%, 91%;
111
+ --_info-300: 209, 93%, 86%;
107
112
  --_info-500: 208, 100%, 41%;
108
113
 
109
114
  --ndw-color-positive-100: hsl(var(--_positive-100));
115
+ --ndw-color-positive-200: hsl(var(--_positive-200));
116
+ --ndw-color-positive-300: hsl(var(--_positive-300));
110
117
  --ndw-color-positive-500: hsl(var(--_positive-500));
111
118
  --ndw-color-positive-600: hsl(var(--_positive-600));
112
119
  --ndw-color-warning-100: hsl(var(--_warning-100));
120
+ --ndw-color-warning-200: hsl(var(--_warning-200));
121
+ --ndw-color-warning-300: hsl(var(--_warning-300));
113
122
  --ndw-color-warning-500: hsl(var(--_warning-500));
114
123
  --ndw-color-warning-600: hsl(var(--_warning-600));
115
124
  --ndw-color-alternative-100: hsl(var(--_alternative-100));
@@ -120,6 +129,7 @@
120
129
  --ndw-color-critical-500: hsl(var(--_critical-500));
121
130
  --ndw-color-info-100: hsl(var(--_info-100));
122
131
  --ndw-color-info-200: hsl(var(--_info-200));
132
+ --ndw-color-info-300: hsl(var(--_info-300));
123
133
  --ndw-color-info-500: hsl(var(--_info-500));
124
134
 
125
135
  --ndw-color-notification: hsl(19, 100%, 35%);
@@ -57,9 +57,13 @@ export const NOTIFICATIONS: ColorGroup = {
57
57
  name: 'Notifications',
58
58
  colors: [
59
59
  { value: 100, altName: 'Positive' },
60
+ { value: 200, altName: 'Positive' },
61
+ { value: 300, altName: 'Positive' },
60
62
  { value: 500, altName: 'Positive' },
61
63
  { value: 600, altName: 'Positive' },
62
64
  { value: 100, altName: 'Warning' },
65
+ { value: 200, altName: 'Warning' },
66
+ { value: 300, altName: 'Warning' },
63
67
  { value: 500, altName: 'Warning' },
64
68
  { value: 600, altName: 'Warning' },
65
69
  { value: 100, altName: 'Critical' },
@@ -67,6 +71,8 @@ export const NOTIFICATIONS: ColorGroup = {
67
71
  { value: 300, altName: 'Critical' },
68
72
  { value: 500, altName: 'Critical' },
69
73
  { value: 100, altName: 'Info' },
74
+ { value: 200, altName: 'Info' },
75
+ { value: 300, altName: 'Info' },
70
76
  { value: 500, altName: 'Info' },
71
77
  { value: 100, altName: 'Alternative' },
72
78
  { value: 500, altName: 'Alternative' },
@@ -0,0 +1,44 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ :root {
4
+ @include mat.datepicker-overrides(
5
+ (
6
+ calendar-body-label-text-color: var(--ndw-color-primary),
7
+ calendar-date-text-color: var(--ndw-color-black),
8
+ calendar-text-font: var(--ndw-font-family-body),
9
+ calendar-text-size: var(--ndw-font-size-sm),
10
+ toggle-icon-color: var(--ndw-color-primary),
11
+ )
12
+ );
13
+
14
+ mat-calendar.ndw-calendar {
15
+ background-color: var(--ndw-color-white);
16
+ border-radius: var(--ndw-border-radius-sm);
17
+ }
18
+
19
+ button.ndw-date {
20
+ border-radius: 50%;
21
+
22
+ &:hover {
23
+ background: var(--ndw-color-primary-100);
24
+ }
25
+
26
+ &:active {
27
+ background: var(--ndw-color-primary-200);
28
+ }
29
+
30
+ &.highlighted {
31
+ background: var(--ndw-color-secondary-400);
32
+ border-radius: 50%;
33
+ color: var(--ndw-color-white);
34
+
35
+ &:hover {
36
+ background: var(--ndw-color-secondary-500);
37
+ }
38
+
39
+ &:active {
40
+ background: var(--ndw-color-secondary-600);
41
+ }
42
+ }
43
+ }
44
+ }
@@ -1,5 +1,6 @@
1
1
  @forward 'button';
2
2
  @forward 'card';
3
+ @forward 'datepicker';
3
4
  @forward 'divider';
4
5
  @forward 'dropdown';
5
6
  @forward 'edit-bar';
@@ -0,0 +1,13 @@
1
+ .sr-only {
2
+ position: absolute;
3
+
4
+ overflow: hidden;
5
+ width: 1px;
6
+ height: 1px;
7
+ padding: 0;
8
+ margin: -1px;
9
+ border-width: 0;
10
+ white-space: nowrap;
11
+
12
+ clip: rect(0, 0, 0, 0);
13
+ }
@@ -1 +1 @@
1
- @forward 'utils/screenreader';
1
+ @forward 'screenreader';