@ndwnu/design-system 10.0.1 → 11.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.
Files changed (30) hide show
  1. package/fesm2022/ndwnu-design-system.mjs +234 -58
  2. package/fesm2022/ndwnu-design-system.mjs.map +1 -1
  3. package/index.d.ts +1 -1
  4. package/lib/components/hoverable-list-item/hoverable-list-item.component.d.ts +18 -0
  5. package/lib/components/hoverable-list-item/hoverable-list-item.model.d.ts +9 -0
  6. package/lib/components/hoverable-list-item/index.d.ts +2 -0
  7. package/lib/components/index.d.ts +3 -0
  8. package/lib/components/key-value-list/index.d.ts +1 -0
  9. package/lib/components/key-value-list/key-value-list.component.d.ts +6 -0
  10. package/lib/components/list-item/list-item.component.d.ts +1 -2
  11. package/lib/components/main-navigation/main-navigation-header/main-navigation-header.component.d.ts +1 -3
  12. package/lib/components/main-navigation/main-navigation.component.d.ts +1 -3
  13. package/lib/components/pill/index.d.ts +0 -1
  14. package/lib/components/pill/pill.component.d.ts +3 -11
  15. package/lib/components/switcher/index.d.ts +2 -0
  16. package/lib/components/switcher/model.d.ts +6 -0
  17. package/lib/components/switcher/switcher.component.d.ts +26 -0
  18. package/lib/components/tab/tab.component.d.ts +2 -2
  19. package/lib/components/tab-group/tab-group.component.d.ts +4 -2
  20. package/lib/components/toast/toast.component.d.ts +2 -1
  21. package/lib/components/toast/toast.service.d.ts +2 -1
  22. package/package.json +4 -4
  23. package/styles/base/_variables.scss +6 -1
  24. package/styles/components/_edit-bar.scss +1 -1
  25. package/styles/components/_list-item.scss +19 -0
  26. package/styles/components/index.scss +2 -1
  27. package/styles/layout/_grid.scss +1 -1
  28. package/styles/layout/grid.stories.ts +4 -4
  29. package/styles/storybook/overrides.css +12 -0
  30. package/lib/components/pill/pill.model.d.ts +0 -1
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { IconSize } from '@ndwnu/core';
1
+ export { IconSize, KeyValueRow } from '@ndwnu/core';
2
2
  export * from './lib/components';
@@ -0,0 +1,18 @@
1
+ import { Params } from '@angular/router';
2
+ import { HoverableListItemAction } from './hoverable-list-item.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HoverableListItemComponent {
5
+ actions: import("@angular/core").InputSignal<HoverableListItemAction[] | undefined>;
6
+ disabled: import("@angular/core").InputSignal<boolean>;
7
+ path: import("@angular/core").InputSignal<string[] | undefined>;
8
+ prefixIcon: import("@angular/core").InputSignal<string | undefined>;
9
+ queryParams: import("@angular/core").InputSignal<Params | undefined>;
10
+ subtitle: import("@angular/core").InputSignal<string | undefined>;
11
+ title: import("@angular/core").InputSignal<string | undefined>;
12
+ actionSelected: import("@angular/core").OutputEmitterRef<HoverableListItemAction>;
13
+ selected: import("@angular/core").OutputEmitterRef<void>;
14
+ onActionButtonClick(event: Event, action: HoverableListItemAction): void;
15
+ onButtonClick(event: Event): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HoverableListItemComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<HoverableListItemComponent, "ndw-hoverable-list-item", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "path": { "alias": "path"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "actionSelected": "actionSelected"; "selected": "selected"; }, never, ["*"], true, never>;
18
+ }
@@ -0,0 +1,9 @@
1
+ import { Params } from '@angular/router';
2
+ export interface HoverableListItemAction {
3
+ id: string | number;
4
+ icon: string;
5
+ label: string;
6
+ callback?: () => void;
7
+ path?: string[];
8
+ queryParams?: Params;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './hoverable-list-item.component';
2
+ export * from './hoverable-list-item.model';
@@ -13,7 +13,9 @@ export * from './dropdown';
13
13
  export * from './edit-bar';
14
14
  export * from './favorite';
15
15
  export * from './form-field';
16
+ export * from './hoverable-list-item';
16
17
  export * from './icon';
18
+ export * from './key-value-list';
17
19
  export * from './layout';
18
20
  export * from './layout-banners';
19
21
  export * from './list';
@@ -31,6 +33,7 @@ export * from './popover';
31
33
  export * from './router-breadcrumbs';
32
34
  export * from './splitter';
33
35
  export * from './summary-card';
36
+ export * from './switcher';
34
37
  export * from './tab';
35
38
  export * from './tab-group';
36
39
  export * from './table';
@@ -0,0 +1 @@
1
+ export * from './key-value-list.component';
@@ -0,0 +1,6 @@
1
+ import { CoreKeyValueListComponent } from '@ndwnu/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class KeyValueListComponent extends CoreKeyValueListComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<KeyValueListComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<KeyValueListComponent, "ndw-key-value-list", never, {}, {}, never, never, true, never>;
6
+ }
@@ -1,6 +1,5 @@
1
- import { CheckableComponent } from '@ndwnu/core';
1
+ import { CheckableComponent, PillColor } from '@ndwnu/core';
2
2
  import { CheckType, RadioButtonComponent } from '../form-field';
3
- import { PillColor } from '../pill';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class ListItemComponent implements CheckableComponent {
6
5
  #private;
@@ -2,10 +2,8 @@ import { Environment } from '../main-navigation.model';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MainNavigationHeaderComponent {
4
4
  applicationName: import("@angular/core").InputSignal<string>;
5
- closeButtonLabel: import("@angular/core").InputSignal<string>;
6
5
  isExpanded: import("@angular/core").InputSignal<boolean>;
7
6
  isMobile: import("@angular/core").InputSignal<boolean>;
8
- menuButtonLabel: import("@angular/core").InputSignal<string>;
9
7
  theme: import("@angular/core").InputSignal<string>;
10
8
  themeImagePath: import("@angular/core").InputSignal<string>;
11
9
  environment: import("@angular/core").InputSignal<Environment | undefined>;
@@ -13,5 +11,5 @@ export declare class MainNavigationHeaderComponent {
13
11
  environmentColor: import("@angular/core").Signal<"blue" | "gray" | "green" | "yellow">;
14
12
  toggleMobileMenu(): void;
15
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MainNavigationHeaderComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<MainNavigationHeaderComponent, "ndw-main-navigation-header", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": true; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": true; "isSignal": true; }; "isMobile": { "alias": "isMobile"; "required": true; "isSignal": true; }; "menuButtonLabel": { "alias": "menuButtonLabel"; "required": true; "isSignal": true; }; "theme": { "alias": "theme"; "required": true; "isSignal": true; }; "themeImagePath": { "alias": "themeImagePath"; "required": true; "isSignal": true; }; "environment": { "alias": "environment"; "required": false; "isSignal": true; }; "isMobileMenuOpen": { "alias": "isMobileMenuOpen"; "required": true; "isSignal": true; }; }, { "isMobileMenuOpen": "isMobileMenuOpenChange"; }, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainNavigationHeaderComponent, "ndw-main-navigation-header", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": true; "isSignal": true; }; "isMobile": { "alias": "isMobile"; "required": true; "isSignal": true; }; "theme": { "alias": "theme"; "required": true; "isSignal": true; }; "themeImagePath": { "alias": "themeImagePath"; "required": true; "isSignal": true; }; "environment": { "alias": "environment"; "required": false; "isSignal": true; }; "isMobileMenuOpen": { "alias": "isMobileMenuOpen"; "required": true; "isSignal": true; }; }, { "isMobileMenuOpen": "isMobileMenuOpenChange"; }, never, never, true, never>;
17
15
  }
@@ -6,11 +6,9 @@ export declare class MainNavigationComponent implements AfterViewInit {
6
6
  applicationName: import("@angular/core").InputSignal<string>;
7
7
  topMenuItems: import("@angular/core").InputSignal<MenuItem[]>;
8
8
  bottomMenuItems: import("@angular/core").InputSignal<MenuItem[] | undefined>;
9
- closeButtonLabel: import("@angular/core").InputSignal<string>;
10
9
  environment: import("@angular/core").InputSignal<Environment | undefined>;
11
10
  footerTexts: import("@angular/core").InputSignal<string[] | undefined>;
12
11
  isCollapsible: import("@angular/core").InputSignal<boolean>;
13
- menuButtonLabel: import("@angular/core").InputSignal<string>;
14
12
  version: import("@angular/core").InputSignal<string | undefined>;
15
13
  isMobile: import("@angular/core").WritableSignal<boolean>;
16
14
  isMobileMenuOpen: import("@angular/core").WritableSignal<boolean>;
@@ -23,5 +21,5 @@ export declare class MainNavigationComponent implements AfterViewInit {
23
21
  onWindowResize(): void;
24
22
  toggleView(): void;
25
23
  static ɵfac: i0.ɵɵFactoryDeclaration<MainNavigationComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<MainNavigationComponent, "ndw-main-navigation", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "topMenuItems": { "alias": "topMenuItems"; "required": true; "isSignal": true; }; "bottomMenuItems": { "alias": "bottomMenuItems"; "required": false; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "environment": { "alias": "environment"; "required": false; "isSignal": true; }; "footerTexts": { "alias": "footerTexts"; "required": false; "isSignal": true; }; "isCollapsible": { "alias": "isCollapsible"; "required": false; "isSignal": true; }; "menuButtonLabel": { "alias": "menuButtonLabel"; "required": false; "isSignal": true; }; "version": { "alias": "version"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; }, { "isExpanded": "isExpandedChange"; }, never, never, true, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainNavigationComponent, "ndw-main-navigation", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "topMenuItems": { "alias": "topMenuItems"; "required": true; "isSignal": true; }; "bottomMenuItems": { "alias": "bottomMenuItems"; "required": false; "isSignal": true; }; "environment": { "alias": "environment"; "required": false; "isSignal": true; }; "footerTexts": { "alias": "footerTexts"; "required": false; "isSignal": true; }; "isCollapsible": { "alias": "isCollapsible"; "required": false; "isSignal": true; }; "version": { "alias": "version"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; }, { "isExpanded": "isExpandedChange"; }, never, never, true, never>;
27
25
  }
@@ -1,2 +1 @@
1
1
  export * from './pill.component';
2
- export * from './pill.model';
@@ -1,14 +1,6 @@
1
- import { PillColor } from './pill.model';
1
+ import { CorePillComponent } from '@ndwnu/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class PillComponent {
4
- /**
5
- * The color of the pill.
6
- */
7
- readonly color: import("@angular/core").InputSignal<PillColor>;
8
- /**
9
- * The content of the pill.
10
- */
11
- private readonly content;
3
+ export declare class PillComponent extends CorePillComponent {
12
4
  static ɵfac: i0.ɵɵFactoryDeclaration<PillComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<PillComponent, "ndw-pill", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<PillComponent, "ndw-pill", never, {}, {}, never, ["*"], true, never>;
14
6
  }
@@ -0,0 +1,2 @@
1
+ export * from './model';
2
+ export * from './switcher.component';
@@ -0,0 +1,6 @@
1
+ export interface SwitcherOption {
2
+ value: string;
3
+ label: string;
4
+ icon?: string;
5
+ disabled?: boolean;
6
+ }
@@ -0,0 +1,26 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { SwitcherOption } from './';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SwitcherComponent implements ControlValueAccessor, OnInit {
6
+ #private;
7
+ readonly options: import("@angular/core").InputSignal<SwitcherOption[]>;
8
+ readonly selectedValue: import("@angular/core").ModelSignal<string | undefined>;
9
+ readonly disabled: import("@angular/core").ModelSignal<boolean>;
10
+ readonly selectionChange: import("@angular/core").OutputEmitterRef<string>;
11
+ sliderWidth: string;
12
+ sliderPosition: string;
13
+ private onChange;
14
+ private onTouched;
15
+ ngOnInit(): void;
16
+ writeValue(value: string): void;
17
+ registerOnChange(fn: (value: string) => void): void;
18
+ registerOnTouched(fn: () => void): void;
19
+ setDisabledState(isDisabled: boolean): void;
20
+ selectOption(value: string): void;
21
+ onKeyDown(event: KeyboardEvent, _currentIndex: number): void;
22
+ generateId(index: number): string;
23
+ get componentName(): string;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitcherComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitcherComponent, "ndw-switcher", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selectedValue": "selectedValueChange"; "disabled": "disabledChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
26
+ }
@@ -10,9 +10,9 @@ export declare class TabComponent implements OnInit {
10
10
  title: import("@angular/core").InputSignal<string>;
11
11
  disabled: import("@angular/core").InputSignal<boolean>;
12
12
  active: boolean;
13
- id: `${string}-${string}-${string}-${string}-${string}`;
13
+ id: import("@angular/core").InputSignal<string | number>;
14
14
  ngOnInit(): void;
15
15
  getNativeElement(): HTMLElement;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ndw-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ndw-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
18
18
  }
@@ -4,11 +4,13 @@ export declare class TabGroupComponent {
4
4
  private readonly _tabs;
5
5
  private readonly _tabButtons;
6
6
  tabs: import("@angular/core").Signal<TabComponent[]>;
7
- activeTab: import("@angular/core").ModelSignal<number>;
7
+ hasPadding: import("@angular/core").InputSignal<boolean>;
8
+ activeTabId: import("@angular/core").ModelSignal<string | number | undefined>;
8
9
  inlinePadding: import("@angular/core").InputSignal<number>;
10
+ constructor();
9
11
  selectTab(index: number): void;
10
12
  onKeyDown(event: KeyboardEvent): void;
11
13
  private getNextEnabledIndex;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "ndw-tab-group", never, { "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "inlinePadding": { "alias": "inlinePadding"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; }, ["_tabs"], never, true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "ndw-tab-group", never, { "hasPadding": { "alias": "hasPadding"; "required": false; "isSignal": true; }; "activeTabId": { "alias": "activeTabId"; "required": false; "isSignal": true; }; "inlinePadding": { "alias": "inlinePadding"; "required": false; "isSignal": true; }; }, { "activeTabId": "activeTabIdChange"; }, ["_tabs"], never, true, never>;
14
16
  }
@@ -7,6 +7,7 @@ export interface ToastDimensions {
7
7
  export declare class ToastComponent implements AfterViewInit {
8
8
  #private;
9
9
  message: import("@angular/core").InputSignal<string>;
10
+ closeButtonLabel: import("@angular/core").InputSignal<string>;
10
11
  id: import("@angular/core").InputSignal<string | undefined>;
11
12
  duration: import("@angular/core").InputSignal<number>;
12
13
  paused: import("@angular/core").InputSignal<boolean>;
@@ -15,5 +16,5 @@ export declare class ToastComponent implements AfterViewInit {
15
16
  elementDimensions: import("@angular/core").OutputEmitterRef<ToastDimensions>;
16
17
  ngAfterViewInit(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "ndw-toast", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "elementDimensions": "elementDimensions"; }, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "ndw-toast", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "elementDimensions": "elementDimensions"; }, never, never, true, never>;
19
20
  }
@@ -6,6 +6,7 @@ interface ToastData {
6
6
  message: string;
7
7
  duration: number;
8
8
  remainingTime: number;
9
+ closeButtonLabel?: string;
9
10
  }
10
11
  export declare class ToastService {
11
12
  #private;
@@ -22,7 +23,7 @@ export declare class ToastService {
22
23
  * @param duration Optional duration in milliseconds for which the toast should be visible. Defaults to 5000ms.
23
24
  * @returns The ID of the created toast. Can be used to close the toast.
24
25
  */
25
- open(message: string, duration?: number): `${string}-${string}-${string}-${string}-${string}`;
26
+ open(message: string, duration?: number, closeButtonLabel?: string): ToastId;
26
27
  pause(): void;
27
28
  resume(): void;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndwnu/design-system",
3
- "version": "10.0.1",
3
+ "version": "11.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.0.0",
6
6
  "@angular/cdk": "^19.0.0",
@@ -8,11 +8,11 @@
8
8
  "@angular/core": "^19.0.0",
9
9
  "@angular/forms": "^19.0.0",
10
10
  "@angular/router": "^19.0.0",
11
- "@ndwnu/core": "1.0.0",
11
+ "@ndwnu/core": "1.1.1",
12
12
  "@storybook/addon-actions": "8.6.12",
13
13
  "@storybook/angular": "8.6.12",
14
- "ag-grid-angular": "^33.3.0",
15
- "ag-grid-community": "^33.3.0",
14
+ "ag-grid-angular": "^34.0.2",
15
+ "ag-grid-community": "^34.0.2",
16
16
  "rxjs": "^7.8.0"
17
17
  },
18
18
  "sideEffects": false,
@@ -23,6 +23,11 @@
23
23
  --ndw-border-radius-md: 0.5rem;
24
24
  --ndw-border-radius-lg: 1.5rem;
25
25
 
26
+ /* Letter spacing */
27
+ --ndw-letter-spacing-sm: 0.1rem;
28
+ --ndw-letter-spacing-md: 0.2rem;
29
+ --ndw-letter-spacing-lg: 0.3rem;
30
+
26
31
  /* Elevation */
27
32
  --ndw-elevation-info: 0 0 0.5rem 0 hsla(var(--_link-500), 0.25);
28
33
  --ndw-elevation-content: 0 0.125rem 0.125rem 0 hsla(var(--_grey-600), 0.05);
@@ -77,7 +82,7 @@
77
82
  /* Navigation */
78
83
  --main-navigation-collapse-width: 2.75rem;
79
84
  --main-navigation-expanded-width: 12.5rem;
80
- --main-navigation-mobile-header-height: 6.25rem;
85
+ --main-navigation-mobile-header-height: 3.5rem;
81
86
  }
82
87
 
83
88
  /* Screen sizes */
@@ -64,7 +64,7 @@ $min-width-sm: variables.$ndw-screen-sm + 0.1;
64
64
  flex-wrap: wrap;
65
65
  }
66
66
 
67
- .grid {
67
+ .ndw-grid {
68
68
  box-sizing: border-box;
69
69
  }
70
70
  }
@@ -0,0 +1,19 @@
1
+ @use 'components/list-item' as *;
2
+ @use '../base/typography' as *;
3
+
4
+ [ndwListItem] {
5
+ cursor: pointer;
6
+
7
+ @include ndw-paragraph-md;
8
+ --list-item-animation-speed: var(--ndw-animation-speed-fast);
9
+ --list-item-background-color: var(--ndw-color-white);
10
+ --list-item-border-radius: var(--ndw-border-radius-sm);
11
+ --list-item-color: var(--ndw-color-grey-700);
12
+ --list-item-disabled-background-color: var(--ndw-color-grey-100);
13
+ --list-item-disabled-color: var(--ndw-color-grey-400);
14
+ --list-item-font-size: initial;
15
+ --list-item-gap: var(--ndw-spacing-sm);
16
+ --list-item-hover-background-color: var(--ndw-color-grey-100);
17
+ --list-item-min-height: var(--ndw-spacing-2xl);
18
+ --list-item-padding: var(--ndw-spacing-xs) var(--ndw-spacing-sm);
19
+ }
@@ -7,8 +7,9 @@
7
7
  @forward 'input';
8
8
  @forward 'label';
9
9
  @forward 'link';
10
+ @forward 'list-item';
11
+ @forward 'map';
10
12
  @forward 'menu-button';
11
13
  @forward 'popover';
12
14
  @forward 'summary-card';
13
15
  @forward 'table';
14
- @forward 'map';
@@ -4,7 +4,7 @@
4
4
  grid-column: span $span;
5
5
  }
6
6
 
7
- .grid {
7
+ .ndw-grid {
8
8
  $grid-columns-2xs: 2;
9
9
  $grid-columns-xs: 4;
10
10
  $grid-columns-sm: 6;
@@ -27,7 +27,7 @@ interface StoryArgs {
27
27
  *
28
28
  * ## Disable padding
29
29
  * Sometimes you may want to disable padding on the columns, for example when using a card component.
30
- * To do this, add the class `grid--no-padding` to the `.grid` element.
30
+ * To do this, add the class `ndw-grid--no-padding` to the `.ndw-grid` element.
31
31
  */
32
32
 
33
33
  const meta: Meta<StoryArgs> = {
@@ -42,18 +42,18 @@ const meta: Meta<StoryArgs> = {
42
42
  props,
43
43
  styles: [
44
44
  `
45
- .grid > div {
45
+ .ndw-grid > div {
46
46
  background-color: var(--ndw-color-grey-300);
47
47
  padding: var(--ndw-spacing-xs);
48
48
  }
49
- .grid {
49
+ .ndw-grid {
50
50
  background-color: var(--ndw-color-grey-100);
51
51
  margin-bottom: var(--ndw-spacing-xl);
52
52
  }
53
53
  `,
54
54
  ],
55
55
  template: `
56
- <div class="grid ${props.disablePadding ? 'grid--no-padding' : ''}">
56
+ <div class="ndw-grid ${props.disablePadding ? 'ndw-grid--no-padding' : ''}">
57
57
  ${props.columnClasses
58
58
  .map(
59
59
  (classes, index) =>
@@ -281,6 +281,18 @@ body {
281
281
  font-size: var(--ndw-base-font-size);
282
282
  }
283
283
 
284
+ h1,
285
+ h2,
286
+ h3,
287
+ h4,
288
+ h5,
289
+ h6 {
290
+ &.css-11knh3z,
291
+ &.css-wzniqs {
292
+ font-family: var(--ndw-font-family-heading);
293
+ }
294
+ }
295
+
284
296
  .sidebar-container.css-r1cy5n {
285
297
  background-color: var(--ndw-color-grey-700);
286
298
  color: var(--ndw-color-grey-400);
@@ -1 +0,0 @@
1
- export type PillColor = 'blue' | 'gray' | 'green' | 'purple' | 'red' | 'yellow';