@ndwnu/design-system 10.0.0 → 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.
- package/fesm2022/ndwnu-design-system.mjs +256 -80
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/lib/components/hoverable-list-item/hoverable-list-item.component.d.ts +18 -0
- package/lib/components/hoverable-list-item/hoverable-list-item.model.d.ts +9 -0
- package/lib/components/hoverable-list-item/index.d.ts +2 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/key-value-list/index.d.ts +1 -0
- package/lib/components/key-value-list/key-value-list.component.d.ts +6 -0
- package/lib/components/list-item/list-item.component.d.ts +1 -2
- package/lib/components/main-navigation/main-navigation-header/main-navigation-header.component.d.ts +1 -3
- package/lib/components/main-navigation/main-navigation.component.d.ts +1 -3
- package/lib/components/pill/index.d.ts +0 -1
- package/lib/components/pill/pill.component.d.ts +3 -11
- package/lib/components/switcher/index.d.ts +2 -0
- package/lib/components/switcher/model.d.ts +6 -0
- package/lib/components/switcher/switcher.component.d.ts +26 -0
- package/lib/components/tab/tab.component.d.ts +2 -2
- package/lib/components/tab-group/tab-group.component.d.ts +4 -2
- package/lib/components/toast/toast.component.d.ts +2 -1
- package/lib/components/toast/toast.service.d.ts +2 -1
- package/package.json +4 -4
- package/styles/base/_variables.scss +6 -1
- package/styles/components/_edit-bar.scss +1 -1
- package/styles/components/_list-item.scss +19 -0
- package/styles/components/index.scss +2 -1
- package/styles/layout/_grid.scss +1 -1
- package/styles/layout/grid.stories.ts +4 -4
- package/styles/storybook/overrides.css +12 -0
- 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
|
+
}
|
|
@@ -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;
|
package/lib/components/main-navigation/main-navigation-header/main-navigation-header.component.d.ts
CHANGED
|
@@ -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; }; "
|
|
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; }; "
|
|
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,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
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, {
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PillComponent, "ndw-pill", never, {}, {}, never, ["*"], true, never>;
|
|
14
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:
|
|
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
|
-
|
|
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, { "
|
|
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):
|
|
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": "
|
|
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": "
|
|
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": "^
|
|
15
|
-
"ag-grid-community": "^
|
|
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:
|
|
85
|
+
--main-navigation-mobile-header-height: 3.5rem;
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
/* Screen sizes */
|
|
@@ -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
|
+
}
|
package/styles/layout/_grid.scss
CHANGED
|
@@ -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';
|