@ndwnu/design-system 6.0.0 → 7.0.1
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/assets/icons.ts +83 -0
- package/fesm2022/ndwnu-design-system.mjs +869 -929
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/index.d.ts +2 -5
- package/{components → lib/components}/card/card.component.d.ts +2 -1
- package/{components → lib/components}/form-field/checkbox/checkbox.component.d.ts +3 -2
- package/{components → lib/components}/form-field/clear-search-button/clear-search-button.component.d.ts +1 -1
- package/lib/components/form-field/clear-search-button/index.d.ts +1 -0
- package/{components → lib/components}/form-field/file-upload/file-upload.component.d.ts +8 -7
- package/{components → lib/components}/form-field/input-button/input-button.component.d.ts +1 -1
- package/{components → lib/components}/form-field/month-input/month-input.component.d.ts +8 -7
- package/{components → lib/components}/form-field/option-group/option-group.component.d.ts +7 -4
- package/lib/components/form-field/picker-button/index.d.ts +1 -0
- package/{components → lib/components}/form-field/picker-button/picker-button.component.d.ts +1 -2
- package/{components → lib/components}/icon/action-icon/action-icon.component.d.ts +1 -1
- package/lib/components/icon/icon.component.d.ts +6 -0
- package/{components → lib/components}/layout/layout.component.d.ts +2 -2
- package/{components → lib/components}/main-navigation/main-navigation.component.d.ts +2 -10
- package/lib/components/tab/tab.component.d.ts +17 -0
- package/{components → lib/components}/tab-group/tab-group.component.d.ts +7 -5
- package/{components → lib/components}/toast/toast.component.d.ts +4 -4
- package/package.json +14 -8
- package/styles/base/_colors.scss +234 -0
- package/styles/base/_typography.scss +135 -0
- package/styles/base/_variables.scss +79 -0
- package/styles/base/colors.stories.model.ts +143 -0
- package/styles/base/colors.stories.ts +14 -0
- package/styles/base/colors.stories.utils.ts +58 -0
- package/styles/base/index.scss +3 -0
- package/styles/base/typography.stories.ts +116 -0
- package/styles/components/_button.scss +133 -0
- package/styles/components/_card.scss +3 -0
- package/styles/components/_divider.scss +12 -0
- package/styles/components/_dropdown.scss +8 -0
- package/styles/components/_filter-button.scss +39 -0
- package/styles/components/_input.scss +198 -0
- package/styles/components/_label.scss +23 -0
- package/styles/components/_link.scss +35 -0
- package/styles/components/_menu-button.scss +38 -0
- package/styles/components/_popover.scss +19 -0
- package/styles/components/_summary-card.scss +227 -0
- package/styles/components/divider.stories.ts +80 -0
- package/styles/components/index.scss +11 -0
- package/styles/components/link.stories.ts +154 -0
- package/styles/index.scss +4 -0
- package/styles/layout/_grid.scss +57 -0
- package/styles/layout/_overlay.scss +7 -0
- package/styles/layout/grid.stories.ts +117 -0
- package/styles/layout/index.scss +2 -0
- package/styles/storybook/_core.scss +60 -0
- package/styles/storybook/_reset.scss +20 -0
- package/styles/storybook/index.scss +17 -0
- package/styles/storybook/overrides/_buttons.scss +95 -0
- package/styles/storybook/overrides/_code-previews.scss +97 -0
- package/styles/storybook/overrides/_content.scss +24 -0
- package/styles/storybook/overrides/_headers.scss +31 -0
- package/styles/storybook/overrides/_layout.scss +44 -0
- package/styles/storybook/overrides/_table.scss +112 -0
- package/styles/storybook/overrides/index.scss +6 -0
- package/styles/storybook/overrides.css +343 -0
- package/styles/utils/_screenreader.scss +18 -0
- package/styles/utils/index.scss +1 -0
- package/assets/fonts/ObjectSans-Bold.woff2 +0 -0
- package/assets/fonts/ObjectSans-Regular.woff2 +0 -0
- package/components/icon/icon.component.d.ts +0 -13
- package/components/tab/tab.component.d.ts +0 -9
- package/core/style/styles.css +0 -1380
- package/core/style/styles.scss +0 -1380
- package/public-api.d.ts +0 -1
- package/assets/images/{ndw-logo-short.svg → logos/ndw-logo-short.svg} +0 -0
- package/assets/images/{ndw-logo.svg → logos/ndw-logo.svg} +0 -0
- package/assets/images/{nwb-logo-short.svg → logos/nwb-logo-short.svg} +0 -0
- package/assets/images/{nwb-logo.svg → logos/nwb-logo.svg} +0 -0
- package/{components → lib/components}/accordion/accordion.component.d.ts +0 -0
- package/{components → lib/components}/accordion/accordion.service.d.ts +0 -0
- package/{components → lib/components}/accordion/index.d.ts +0 -0
- package/{components → lib/components}/alert/alert.component.d.ts +0 -0
- package/{components → lib/components}/alert/alert.model.d.ts +0 -0
- package/{components → lib/components}/alert/index.d.ts +0 -0
- package/{components → lib/components}/badge/badge.component.d.ts +0 -0
- package/{components → lib/components}/badge/index.d.ts +0 -0
- package/{components → lib/components}/banner/banner.component.d.ts +0 -0
- package/{components → lib/components}/banner/banner.model.d.ts +0 -0
- package/{components → lib/components}/banner/index.d.ts +0 -0
- package/{components → lib/components}/breadcrumb/breadcrumb.component.d.ts +0 -0
- package/{components → lib/components}/breadcrumb/index.d.ts +0 -0
- package/{components → lib/components}/breadcrumb-group/breadcrumb-group.component.d.ts +0 -0
- package/{components → lib/components}/breadcrumb-group/index.d.ts +0 -0
- package/{components → lib/components}/button/button.directive.d.ts +0 -0
- package/{components → lib/components}/button/index.d.ts +0 -0
- package/{components → lib/components}/card/card-content/card-content.component.d.ts +0 -0
- package/{components → lib/components}/card/card-content/index.d.ts +0 -0
- package/{components → lib/components}/card/card-footer/card-footer.component.d.ts +0 -0
- package/{components → lib/components}/card/card-footer/index.d.ts +0 -0
- package/{components → lib/components}/card/card-header/card-header.component.d.ts +0 -0
- package/{components → lib/components}/card/card-header/index.d.ts +0 -0
- package/{components → lib/components}/card/card.animation.d.ts +0 -0
- package/{components → lib/components}/card/index.d.ts +0 -0
- package/{components → lib/components}/collapsible/collapsible.animation.d.ts +0 -0
- package/{components → lib/components}/collapsible/collapsible.component.d.ts +0 -0
- package/{components → lib/components}/collapsible/index.d.ts +0 -0
- package/{components → lib/components}/dashboard-card/dashboard-card.component.d.ts +0 -0
- package/{components → lib/components}/dashboard-card/index.d.ts +0 -0
- package/{components → lib/components}/dropdown/dropdown.component.d.ts +0 -0
- package/{components → lib/components}/dropdown/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-add-option/autosuggest-add-option.component.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-add-option/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-option/autosuggest-option.component.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-option/autosuggest-option.model.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-option/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-panel/autosuggest-panel.component.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest.directive.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/match-bold.pipe.d.ts +0 -0
- package/{components → lib/components}/form-field/checkbox/index.d.ts +0 -0
- package/{components → lib/components}/form-field/checkbox-group/checkbox-group.component.d.ts +0 -0
- package/{components → lib/components}/form-field/checkbox-group/index.d.ts +0 -0
- package/{components → lib/components}/form-field/error/error.component.d.ts +0 -0
- package/{components → lib/components}/form-field/error/index.d.ts +0 -0
- package/{components → lib/components}/form-field/file-upload/file-upload-text.interface.d.ts +0 -0
- package/{components → lib/components}/form-field/file-upload/index.d.ts +0 -0
- package/{components → lib/components}/form-field/form-field.component.d.ts +0 -0
- package/{components → lib/components}/form-field/form-field.constant.d.ts +0 -0
- package/{components → lib/components}/form-field/form-field.model.d.ts +0 -0
- package/{components → lib/components}/form-field/index.d.ts +0 -0
- package/{components → lib/components}/form-field/info/index.d.ts +0 -0
- package/{components → lib/components}/form-field/info/info.component.d.ts +0 -0
- package/{components → lib/components}/form-field/input/index.d.ts +0 -0
- package/{components → lib/components}/form-field/input/input.directive.d.ts +0 -0
- package/{components → lib/components}/form-field/input/input.model.d.ts +0 -0
- package/{components → lib/components}/form-field/input-button/index.d.ts +0 -0
- package/{components → lib/components}/form-field/input-icon/index.d.ts +0 -0
- package/{components → lib/components}/form-field/input-icon/input-icon.component.d.ts +0 -0
- package/{components → lib/components}/form-field/month-input/index.d.ts +0 -0
- package/{components → lib/components}/form-field/month-input/month-input-utils.d.ts +0 -0
- package/{components → lib/components}/form-field/option-group/index.d.ts +0 -0
- package/{components → lib/components}/form-field/option-group/option-group.model.d.ts +0 -0
- package/{components → lib/components}/form-field/option-group/option.component.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-button/index.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-button/radio-button.component.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-group/index.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-group/radio-group.component.d.ts +0 -0
- package/{components → lib/components}/form-field/success/index.d.ts +0 -0
- package/{components → lib/components}/form-field/success/success.component.d.ts +0 -0
- package/{components → lib/components}/form-field/textarea/auto-grow.directive.d.ts +0 -0
- package/{components → lib/components}/form-field/textarea/index.d.ts +0 -0
- package/{components → lib/components}/form-field/textarea/max-char.directive.d.ts +0 -0
- package/{components → lib/components}/icon/action-icon/index.d.ts +0 -0
- package/{components → lib/components}/icon/index.d.ts +0 -0
- package/{components → lib/components}/index.d.ts +0 -0
- package/{components → lib/components}/layout/index.d.ts +0 -0
- package/{components → lib/components}/layout-banners/index.d.ts +0 -0
- package/{components → lib/components}/layout-banners/layout-banners.component.d.ts +0 -0
- package/{components → lib/components}/loader/index.d.ts +0 -0
- package/{components → lib/components}/loader/loader.component.d.ts +0 -0
- package/{components → lib/components}/main-navigation/index.d.ts +0 -0
- package/{components → lib/components}/main-navigation/main-navigation.imports.d.ts +0 -0
- package/{components → lib/components}/main-navigation/main-navigation.model.d.ts +0 -0
- package/{components → lib/components}/main-navigation-menu/index.d.ts +0 -0
- package/{components → lib/components}/main-navigation-menu/main-navigation-menu.component.d.ts +0 -0
- package/{components → lib/components}/modal/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-content/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-content/modal-content.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal-footer/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-footer/modal-footer.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal-header/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-header/modal-header.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal-ref.d.ts +0 -0
- package/{components → lib/components}/modal/modal.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal.service.d.ts +0 -0
- package/{components → lib/components}/multi-select/checkbox-data.interface.d.ts +0 -0
- package/{components → lib/components}/multi-select/index.d.ts +0 -0
- package/{components → lib/components}/multi-select/multi-select.component.d.ts +0 -0
- package/{components → lib/components}/multi-select/select-all-text.interface.d.ts +0 -0
- package/{components → lib/components}/pill/index.d.ts +0 -0
- package/{components → lib/components}/pill/pill.component.d.ts +0 -0
- package/{components → lib/components}/pill/pill.model.d.ts +0 -0
- package/{components → lib/components}/popover/index.d.ts +0 -0
- package/{components → lib/components}/popover/popover-trigger.directive.d.ts +0 -0
- package/{components → lib/components}/router-breadcrumbs/index.d.ts +0 -0
- package/{components → lib/components}/router-breadcrumbs/router-breadcrumbs.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/index.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-action/summary-card-action.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-actions/summary-card-actions.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-avatar/summary-card-avatar.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-content/summary-card-content.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-header/summary-card-header.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-subtitle/summary-card-subtitle.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-tag/summary-card-tag.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-tags/summary-card-tags.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card.model.d.ts +0 -0
- package/{components → lib/components}/tab/index.d.ts +0 -0
- package/{components → lib/components}/tab-group/index.d.ts +0 -0
- package/{components → lib/components}/tag/index.d.ts +0 -0
- package/{components → lib/components}/tag/tag.component.d.ts +0 -0
- package/{components → lib/components}/toast/index.d.ts +0 -0
- package/{components → lib/components}/toast/toast.service.d.ts +0 -0
- package/{components → lib/components}/tooltip/index.d.ts +0 -0
- package/{components → lib/components}/tooltip/tooltip.component.d.ts +0 -0
- package/{components → lib/components}/tooltip/tooltip.directive.d.ts +1 -1
- /package/{models → lib/models}/aria.model.d.ts +0 -0
- /package/{models → lib/models}/index.d.ts +0 -0
package/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ export declare class CardComponent implements AfterContentInit {
|
|
|
5
5
|
private readonly header;
|
|
6
6
|
private readonly headerHeight;
|
|
7
7
|
readonly cardId: string;
|
|
8
|
-
|
|
8
|
+
readonly isCollapsable: import("@angular/core").Signal<boolean>;
|
|
9
|
+
readonly isCollapsed: import("@angular/core").ModelSignal<boolean>;
|
|
9
10
|
ngAfterContentInit(): void;
|
|
10
11
|
animationState: import("@angular/core").Signal<{
|
|
11
12
|
value: string;
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
4
4
|
checked: import("@angular/core").ModelSignal<boolean>;
|
|
5
5
|
switch: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
disabled: import("@angular/core").
|
|
6
|
+
disabled: import("@angular/core").ModelSignal<boolean>;
|
|
7
7
|
error: import("@angular/core").InputSignal<boolean>;
|
|
8
8
|
success: import("@angular/core").InputSignal<boolean>;
|
|
9
9
|
indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
@@ -14,6 +14,7 @@ export declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
14
14
|
writeValue(value: boolean): void;
|
|
15
15
|
registerOnChange(fn: (value: boolean) => void): void;
|
|
16
16
|
registerOnTouched(): void;
|
|
17
|
+
setDisabledState(isDisabled: boolean): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ndw-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "switch": { "alias": "switch"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ndw-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "switch": { "alias": "switch"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; }, never, ["*"], true, never>;
|
|
19
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { InputDirective } from '../input
|
|
2
|
+
import { InputDirective } from '../input';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ClearSearchButtonComponent implements OnInit, OnDestroy {
|
|
5
5
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './clear-search-button.component';
|
|
@@ -3,20 +3,20 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
3
3
|
import { FileUploadText } from './file-upload-text.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FileUploadComponent implements ControlValueAccessor {
|
|
6
|
-
readonly fileInputElement: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
7
6
|
readonly allowedFileTypeRegex: import("@angular/core").InputSignal<RegExp | undefined>;
|
|
7
|
+
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
8
8
|
readonly fileUploadText: import("@angular/core").InputSignal<FileUploadText>;
|
|
9
|
-
readonly uploadDate: import("@angular/core").InputSignal<string>;
|
|
10
9
|
readonly maxFileSizeInBytes: import("@angular/core").InputSignal<number>;
|
|
11
|
-
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
12
10
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
readonly uploadDate: import("@angular/core").InputSignal<string>;
|
|
13
12
|
readonly draggingOver: import("@angular/core").ModelSignal<boolean>;
|
|
14
|
-
readonly selectedFile: import("@angular/core").ModelSignal<File | null | undefined>;
|
|
15
13
|
readonly error: import("@angular/core").ModelSignal<boolean>;
|
|
16
|
-
readonly success: import("@angular/core").ModelSignal<boolean>;
|
|
17
|
-
readonly incorrectFileType: import("@angular/core").ModelSignal<boolean>;
|
|
18
14
|
readonly incorrectFileSize: import("@angular/core").ModelSignal<boolean>;
|
|
15
|
+
readonly incorrectFileType: import("@angular/core").ModelSignal<boolean>;
|
|
16
|
+
readonly selectedFile: import("@angular/core").ModelSignal<File | null | undefined>;
|
|
17
|
+
readonly success: import("@angular/core").ModelSignal<boolean>;
|
|
19
18
|
private readonly canEdit;
|
|
19
|
+
readonly fileInputElement: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
20
20
|
onKeyDown(event: KeyboardEvent): void;
|
|
21
21
|
onClick(): void;
|
|
22
22
|
onDragLeave(event: DragEvent): void;
|
|
@@ -30,10 +30,11 @@ export declare class FileUploadComponent implements ControlValueAccessor {
|
|
|
30
30
|
writeValue(value: File): void;
|
|
31
31
|
registerOnChange(fn: (value: File | null | undefined) => void): void;
|
|
32
32
|
registerOnTouched(): void;
|
|
33
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
34
|
private selectFile;
|
|
34
35
|
private resetFile;
|
|
35
36
|
private correctFileSize;
|
|
36
37
|
private correctFileType;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ndw-file-upload", never, { "allowedFileTypeRegex": { "alias": "allowedFileTypeRegex"; "required": false; "isSignal": true; }; "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ndw-file-upload", never, { "allowedFileTypeRegex": { "alias": "allowedFileTypeRegex"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "fileUploadText": { "alias": "fileUploadText"; "required": false; "isSignal": true; }; "maxFileSizeInBytes": { "alias": "maxFileSizeInBytes"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "uploadDate": { "alias": "uploadDate"; "required": false; "isSignal": true; }; "draggingOver": { "alias": "draggingOver"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "incorrectFileSize": { "alias": "incorrectFileSize"; "required": false; "isSignal": true; }; "incorrectFileType": { "alias": "incorrectFileType"; "required": false; "isSignal": true; }; "selectedFile": { "alias": "selectedFile"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "draggingOver": "draggingOverChange"; "error": "errorChange"; "incorrectFileSize": "incorrectFileSizeChange"; "incorrectFileType": "incorrectFileTypeChange"; "selectedFile": "selectedFileChange"; "success": "successChange"; }, never, never, true, never>;
|
|
39
40
|
}
|
|
@@ -3,7 +3,8 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
|
3
3
|
import { InputDirective } from '../input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class MonthInputComponent implements ControlValueAccessor, OnInit {
|
|
6
|
-
readonly
|
|
6
|
+
private readonly destroyRef;
|
|
7
|
+
protected readonly ngControl: NgControl | null;
|
|
7
8
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
8
9
|
readonly showMonthPickerLabel: import("@angular/core").InputSignal<string>;
|
|
9
10
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
@@ -11,21 +12,21 @@ export declare class MonthInputComponent implements ControlValueAccessor, OnInit
|
|
|
11
12
|
readonly minDate: import("@angular/core").InputSignal<Date>;
|
|
12
13
|
readonly maxDate: import("@angular/core").InputSignal<Date>;
|
|
13
14
|
readonly monthLabels: import("@angular/core").InputSignal<string[]>;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
protected showMonthPicker: boolean;
|
|
15
|
+
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
16
|
+
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
17
17
|
protected readonly selectedYear: import("@angular/core").ModelSignal<number>;
|
|
18
18
|
protected readonly selectedMonth: import("@angular/core").ModelSignal<number | null>;
|
|
19
|
+
readonly inputElement: import("@angular/core").Signal<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | undefined>;
|
|
19
20
|
protected readonly selectedDate: import("@angular/core").Signal<Date | null>;
|
|
20
21
|
protected readonly inputValue: import("@angular/core").Signal<string | null>;
|
|
21
|
-
protected readonly ngControl: NgControl | null;
|
|
22
22
|
protected readonly years: import("@angular/core").Signal<number[]>;
|
|
23
23
|
protected readonly months: import("@angular/core").Signal<{
|
|
24
24
|
label: string;
|
|
25
25
|
value: number;
|
|
26
26
|
}[]>;
|
|
27
|
+
readonly input: import("@angular/core").Signal<InputDirective | undefined>;
|
|
28
|
+
protected showMonthPicker: boolean;
|
|
27
29
|
private onChange;
|
|
28
|
-
private readonly destroyRef;
|
|
29
30
|
constructor();
|
|
30
31
|
ngOnInit(): void;
|
|
31
32
|
writeValue(value: Date | null): void;
|
|
@@ -38,5 +39,5 @@ export declare class MonthInputComponent implements ControlValueAccessor, OnInit
|
|
|
38
39
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
39
40
|
private adjustMonth;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonthInputComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonthInputComponent, "ndw-month-input", never, { "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonthInputComponent, "ndw-month-input", never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "showMonthPickerLabel": { "alias": "showMonthPickerLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "yearPlaceholder": { "alias": "yearPlaceholder"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "monthLabels": { "alias": "monthLabels"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "selectedYear": { "alias": "selectedYear"; "required": false; "isSignal": true; }; "selectedMonth": { "alias": "selectedMonth"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "selectedYear": "selectedYearChange"; "selectedMonth": "selectedMonthChange"; }, never, never, true, never>;
|
|
42
43
|
}
|
|
@@ -3,15 +3,18 @@ import { OptionGroupMode } from './option-group.model';
|
|
|
3
3
|
import { OptionComponent } from './option.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class OptionGroupComponent implements ControlValueAccessor {
|
|
6
|
+
private readonly ngControl;
|
|
7
|
+
readonly error: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
6
9
|
readonly fluid: import("@angular/core").InputSignal<boolean>;
|
|
7
10
|
readonly fluidColumns: import("@angular/core").InputSignal<number | null>;
|
|
8
|
-
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
9
11
|
readonly mode: import("@angular/core").InputSignal<OptionGroupMode>;
|
|
10
12
|
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
11
|
-
readonly
|
|
13
|
+
readonly success: import("@angular/core").InputSignal<boolean>;
|
|
12
14
|
protected readonly checkedValues: import("@angular/core").ModelSignal<unknown[]>;
|
|
13
|
-
|
|
15
|
+
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
14
16
|
protected readonly fluidColumnStyle: import("@angular/core").Signal<string | null>;
|
|
17
|
+
readonly children: import("@angular/core").Signal<readonly OptionComponent[]>;
|
|
15
18
|
protected readonly uuid: `${string}-${string}-${string}-${string}-${string}`;
|
|
16
19
|
constructor();
|
|
17
20
|
get isRequiredOrHasRequiredValidator(): boolean | null;
|
|
@@ -22,5 +25,5 @@ export declare class OptionGroupComponent implements ControlValueAccessor {
|
|
|
22
25
|
registerOnTouched(): void;
|
|
23
26
|
setDisabledState(isDisabled: boolean): void;
|
|
24
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionGroupComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionGroupComponent, "ndw-option-group", never, { "
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionGroupComponent, "ndw-option-group", never, { "error": { "alias": "error"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "fluidColumns": { "alias": "fluidColumns"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "checkedValues": { "alias": "checkedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedValues": "checkedValuesChange"; "disabled": "disabledChange"; }, ["children"], never, true, never>;
|
|
26
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './picker-button.component';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { InputType } from '../input';
|
|
2
|
-
import { InputDirective } from '../input/input.directive';
|
|
1
|
+
import { InputDirective, InputType } from '../input';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class PickerButtonComponent {
|
|
5
4
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CoreIconComponent } from '@ndwnu/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IconComponent extends CoreIconComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ndw-icon", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -2,13 +2,13 @@ import { MenuItem, NdwBrand } from '../main-navigation';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class LayoutComponent {
|
|
4
4
|
applicationName: import("@angular/core").InputSignal<string>;
|
|
5
|
-
topMenuItems: import("@angular/core").InputSignal<MenuItem[]>;
|
|
6
5
|
bottomMenuItems: import("@angular/core").InputSignal<MenuItem[] | undefined>;
|
|
7
6
|
brand: import("@angular/core").InputSignal<NdwBrand>;
|
|
8
7
|
isCollapsible: import("@angular/core").InputSignal<boolean>;
|
|
9
8
|
isExpanded: import("@angular/core").InputSignal<boolean>;
|
|
10
9
|
menuFooterTexts: import("@angular/core").InputSignal<string[] | undefined>;
|
|
10
|
+
topMenuItems: import("@angular/core").InputSignal<MenuItem[]>;
|
|
11
11
|
version: import("@angular/core").InputSignal<string | undefined>;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "ndw-layout", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "ndw-layout", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "bottomMenuItems": { "alias": "bottomMenuItems"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "isCollapsible": { "alias": "isCollapsible"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "menuFooterTexts": { "alias": "menuFooterTexts"; "required": false; "isSignal": true; }; "topMenuItems": { "alias": "topMenuItems"; "required": true; "isSignal": true; }; "version": { "alias": "version"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
14
14
|
}
|
|
@@ -7,11 +7,11 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class MainNavigationComponent implements AfterViewInit, OnDestroy {
|
|
8
8
|
#private;
|
|
9
9
|
applicationName: import("@angular/core").InputSignal<string>;
|
|
10
|
-
topMenuItems: import("@angular/core").InputSignal<MenuItem[]>;
|
|
11
10
|
bottomMenuItems: import("@angular/core").InputSignal<MenuItem[] | undefined>;
|
|
12
11
|
brand: import("@angular/core").InputSignal<NdwBrand>;
|
|
13
12
|
footerTexts: import("@angular/core").InputSignal<string[] | undefined>;
|
|
14
13
|
isCollapsible: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
topMenuItems: import("@angular/core").InputSignal<MenuItem[]>;
|
|
15
15
|
version: import("@angular/core").InputSignal<string | undefined>;
|
|
16
16
|
closeButtonLabel: import("@angular/core").InputSignal<string>;
|
|
17
17
|
menuButtonLabel: import("@angular/core").InputSignal<string>;
|
|
@@ -22,18 +22,11 @@ export declare class MainNavigationComponent implements AfterViewInit, OnDestroy
|
|
|
22
22
|
isMobile: import("@angular/core").WritableSignal<boolean>;
|
|
23
23
|
brandImagePath: import("@angular/core").Signal<string>;
|
|
24
24
|
activeId?: number;
|
|
25
|
-
private selectedId?;
|
|
26
25
|
protected mobilePortal?: TemplatePortal<MainNavigationMenuComponent>;
|
|
27
26
|
onMouseMove(event: MouseEvent): void;
|
|
28
27
|
onWindowResize(): void;
|
|
29
28
|
activeChildItems: SimpleMenuItem[];
|
|
30
29
|
overlayPositions: ConnectedPosition[];
|
|
31
|
-
private overlay;
|
|
32
|
-
private viewContainerRef;
|
|
33
|
-
private document;
|
|
34
|
-
private platform;
|
|
35
|
-
private activeButton?;
|
|
36
|
-
private overlayRef?;
|
|
37
30
|
constructor();
|
|
38
31
|
ngAfterViewInit(): void;
|
|
39
32
|
ngOnDestroy(): void;
|
|
@@ -44,7 +37,6 @@ export declare class MainNavigationComponent implements AfterViewInit, OnDestroy
|
|
|
44
37
|
toggleChildMenu(item: MenuItem, event?: KeyboardEvent): void;
|
|
45
38
|
toggleMobileView(): void;
|
|
46
39
|
toggleView(): void;
|
|
47
|
-
private setPositionStrategy;
|
|
48
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainNavigationComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MainNavigationComponent, "ndw-main-navigation", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainNavigationComponent, "ndw-main-navigation", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "bottomMenuItems": { "alias": "bottomMenuItems"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "footerTexts": { "alias": "footerTexts"; "required": false; "isSignal": true; }; "isCollapsible": { "alias": "isCollapsible"; "required": false; "isSignal": true; }; "topMenuItems": { "alias": "topMenuItems"; "required": true; "isSignal": true; }; "version": { "alias": "version"; "required": false; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "menuButtonLabel": { "alias": "menuButtonLabel"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "isMobileExpanded": { "alias": "isMobileExpanded"; "required": false; "isSignal": true; }; }, { "isExpanded": "isExpandedChange"; "isMobileExpanded": "isMobileExpandedChange"; }, never, never, true, never>;
|
|
50
42
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabComponent implements OnInit {
|
|
5
|
+
private readonly _viewContainerRef;
|
|
6
|
+
private readonly _elementRef;
|
|
7
|
+
private _content;
|
|
8
|
+
private readonly _contentTemplate;
|
|
9
|
+
get content(): TemplatePortal | null;
|
|
10
|
+
title: import("@angular/core").InputSignal<string>;
|
|
11
|
+
active: boolean;
|
|
12
|
+
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
getNativeElement(): HTMLElement;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ndw-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
1
|
import { TabComponent } from '../tab';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TabGroupComponent
|
|
5
|
-
|
|
3
|
+
export declare class TabGroupComponent {
|
|
4
|
+
private readonly _tabs;
|
|
5
|
+
private readonly _tabButtons;
|
|
6
|
+
tabs: import("@angular/core").Signal<TabComponent[]>;
|
|
6
7
|
activeTab: import("@angular/core").ModelSignal<number>;
|
|
7
|
-
|
|
8
|
+
selectTab(index: number): void;
|
|
9
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "ndw-tab-group", never, { "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; }, ["
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "ndw-tab-group", never, { "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; }, ["_tabs"], never, true, never>;
|
|
10
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ToastComponent implements OnInit, OnDestroy {
|
|
4
|
-
readonly message: import("@angular/core").ModelSignal<string>;
|
|
5
|
-
readonly close: import("@angular/core").OutputEmitterRef<void>;
|
|
6
|
-
private interval;
|
|
7
4
|
private readonly renderer;
|
|
5
|
+
readonly close: import("@angular/core").OutputEmitterRef<void>;
|
|
6
|
+
readonly message: import("@angular/core").ModelSignal<string>;
|
|
8
7
|
private readonly toastContainer;
|
|
8
|
+
private interval;
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
ngOnDestroy(): void;
|
|
11
11
|
open(): void;
|
|
@@ -15,5 +15,5 @@ export declare class ToastComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private clearInterval;
|
|
16
16
|
private truncateText;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "ndw-toast", never, { "message": { "alias": "message"; "required": false; "isSignal": true; }; }, { "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "ndw-toast", never, { "message": { "alias": "message"; "required": false; "isSignal": true; }; }, { "close": "close"; "message": "messageChange"; }, never, never, true, never>;
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndwnu/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/
|
|
6
|
-
"@angular/
|
|
7
|
-
"@angular/
|
|
8
|
-
"@angular/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
5
|
+
"@angular/animations": "~19.0.0",
|
|
6
|
+
"@angular/cdk": "~19.0.0",
|
|
7
|
+
"@angular/common": "^19.0.0",
|
|
8
|
+
"@angular/core": "^19.0.0",
|
|
9
|
+
"@angular/forms": "~19.0.0",
|
|
10
|
+
"@angular/router": "~19.0.0",
|
|
11
|
+
"@ndwnu/core": "0.0.1-beta.1",
|
|
12
|
+
"@storybook/addon-actions": "8.5.0",
|
|
13
|
+
"@storybook/angular": "8.5.0",
|
|
14
|
+
"rxjs": "~7.8.0"
|
|
12
15
|
},
|
|
13
16
|
"sideEffects": false,
|
|
14
17
|
"module": "fesm2022/ndwnu-design-system.mjs",
|
|
@@ -21,5 +24,8 @@
|
|
|
21
24
|
"types": "./index.d.ts",
|
|
22
25
|
"default": "./fesm2022/ndwnu-design-system.mjs"
|
|
23
26
|
}
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"tslib": "^2.3.0"
|
|
24
30
|
}
|
|
25
31
|
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Colors */
|
|
3
|
+
// Grey
|
|
4
|
+
--_grey-700: 195, 100%, 10%;
|
|
5
|
+
--_grey-600: 196, 13%, 29%;
|
|
6
|
+
--_grey-500: 197, 7%, 40%;
|
|
7
|
+
--_grey-400: 204, 2%, 54%;
|
|
8
|
+
--_grey-300: 192, 5%, 82%;
|
|
9
|
+
--_grey-200: 204, 11%, 91%;
|
|
10
|
+
--_grey-100: 200, 16%, 96%;
|
|
11
|
+
--_white: 0, 0%, 100%;
|
|
12
|
+
|
|
13
|
+
--ndw-color-grey-700: hsl(var(--_grey-700));
|
|
14
|
+
--ndw-color-grey-600: hsl(var(--_grey-600));
|
|
15
|
+
--ndw-color-grey-500: hsl(var(--_grey-500));
|
|
16
|
+
--ndw-color-grey-400: hsl(var(--_grey-400));
|
|
17
|
+
--ndw-color-grey-300: hsl(var(--_grey-300));
|
|
18
|
+
--ndw-color-grey-200: hsl(var(--_grey-200));
|
|
19
|
+
--ndw-color-grey-100: hsl(var(--_grey-100));
|
|
20
|
+
--ndw-color-white: hsl(var(--_white));
|
|
21
|
+
|
|
22
|
+
// Primary
|
|
23
|
+
--_primary: 19, 100%;
|
|
24
|
+
--_primary-050: var(--_primary), 95%;
|
|
25
|
+
--_primary-100: var(--_primary), 80%;
|
|
26
|
+
--_primary-200: var(--_primary), 73%;
|
|
27
|
+
--_primary-300: var(--_primary), 62%;
|
|
28
|
+
--_primary-400: var(--_primary), 50%;
|
|
29
|
+
--_primary-500: var(--_primary), 40%;
|
|
30
|
+
--_primary-600: var(--_primary), 35%;
|
|
31
|
+
--_primary-700: var(--_primary), 27%;
|
|
32
|
+
--_primary-800: var(--_primary), 15%;
|
|
33
|
+
|
|
34
|
+
--ndw-color-primary-050: hsl(var(--_primary-050));
|
|
35
|
+
--ndw-color-primary-100: hsl(var(--_primary-100));
|
|
36
|
+
--ndw-color-primary-200: hsl(var(--_primary-200));
|
|
37
|
+
--ndw-color-primary-300: hsl(var(--_primary-300));
|
|
38
|
+
--ndw-color-primary-400: hsl(var(--_primary-400));
|
|
39
|
+
--ndw-color-primary-500: hsl(var(--_primary-500));
|
|
40
|
+
--ndw-color-primary-600: hsl(var(--_primary-600));
|
|
41
|
+
--ndw-color-primary-700: hsl(var(--_primary-700));
|
|
42
|
+
--ndw-color-primary-800: hsl(var(--_primary-800));
|
|
43
|
+
|
|
44
|
+
--ndw-color-primary: var(--ndw-color-primary-500);
|
|
45
|
+
--ndw-color-primary-hover: var(--ndw-color-primary-600);
|
|
46
|
+
--ndw-color-primary-active: var(--ndw-color-primary-700);
|
|
47
|
+
|
|
48
|
+
// Secondary
|
|
49
|
+
--_secondary-050: 209, 100%, 96%;
|
|
50
|
+
--_secondary-100: 209, 85%, 91%;
|
|
51
|
+
--_secondary-200: 209, 85%, 78%;
|
|
52
|
+
--_secondary-300: 209, 85%, 69%;
|
|
53
|
+
--_secondary-400: 208, 100%, 46%;
|
|
54
|
+
--_secondary-500: 208, 100%, 41%;
|
|
55
|
+
--_secondary-600: 209, 100%, 32%;
|
|
56
|
+
--_secondary-700: 209, 100%, 18%;
|
|
57
|
+
|
|
58
|
+
--ndw-color-secondary-050: hsl(var(--_secondary-050));
|
|
59
|
+
--ndw-color-secondary-100: hsl(var(--_secondary-100));
|
|
60
|
+
--ndw-color-secondary-200: hsl(var(--_secondary-200));
|
|
61
|
+
--ndw-color-secondary-300: hsl(var(--_secondary-300));
|
|
62
|
+
--ndw-color-secondary-400: hsl(var(--_secondary-400));
|
|
63
|
+
--ndw-color-secondary-500: hsl(var(--_secondary-500));
|
|
64
|
+
--ndw-color-secondary-600: hsl(var(--_secondary-600));
|
|
65
|
+
--ndw-color-secondary-700: hsl(var(--_secondary-700));
|
|
66
|
+
|
|
67
|
+
--ndw-color-secondary: var(--ndw-color-secondary-500);
|
|
68
|
+
--ndw-color-secondary-hover: var(--ndw-color-secondary-600);
|
|
69
|
+
--ndw-color-secondary-active: var(--ndw-color-secondary-700);
|
|
70
|
+
|
|
71
|
+
// Tertiary
|
|
72
|
+
--_tertiary-400: 43, 100%, 50%;
|
|
73
|
+
--_tertiary-500: 42, 100%, 43%;
|
|
74
|
+
|
|
75
|
+
--ndw-color-tertiary-400: hsl(var(--_tertiary-400));
|
|
76
|
+
--ndw-color-tertiary-500: hsl(var(--_tertiary-500));
|
|
77
|
+
|
|
78
|
+
// Links
|
|
79
|
+
--_link: 208, 100%;
|
|
80
|
+
--_link-400: var(--_link), 41%;
|
|
81
|
+
--_link-500: var(--_link), 32%;
|
|
82
|
+
|
|
83
|
+
--ndw-color-link-400: hsl(var(--_link-400));
|
|
84
|
+
--ndw-color-link-500: hsl(var(--_link-500));
|
|
85
|
+
|
|
86
|
+
// Feedback
|
|
87
|
+
--_positive: 133, 92%;
|
|
88
|
+
--_positive-100: 117, 56%, 92%;
|
|
89
|
+
--_positive-500: var(--_positive), 33%;
|
|
90
|
+
--_positive-600: var(--_positive), 24%;
|
|
91
|
+
--_warning: 43, 93%;
|
|
92
|
+
--_warning-100: 44, 100%, 94%;
|
|
93
|
+
--_warning-500: var(--_warning), 43%;
|
|
94
|
+
--_warning-600: 42, 83%, 32%;
|
|
95
|
+
--_alternative: 292, 100%;
|
|
96
|
+
--_alternative-100: var(--_alternative), 95%;
|
|
97
|
+
--_alternative-500: 292, 95%, 33%;
|
|
98
|
+
--_critical: 0, 100%;
|
|
99
|
+
--_critical-100: var(--_critical), 98%;
|
|
100
|
+
--_critical-200: var(--_critical), 95%;
|
|
101
|
+
--_critical-300: var(--_critical), 90%;
|
|
102
|
+
--_critical-500: var(--_critical), 46%;
|
|
103
|
+
--_info-100: 210, 100%, 96%;
|
|
104
|
+
--_info-200: 210, 86%, 91%;
|
|
105
|
+
--_info-500: 208, 100%, 41%;
|
|
106
|
+
|
|
107
|
+
--ndw-color-positive-100: hsl(var(--_positive-100));
|
|
108
|
+
--ndw-color-positive-500: hsl(var(--_positive-500));
|
|
109
|
+
--ndw-color-positive-600: hsl(var(--_positive-600));
|
|
110
|
+
--ndw-color-warning-100: hsl(var(--_warning-100));
|
|
111
|
+
--ndw-color-warning-500: hsl(var(--_warning-500));
|
|
112
|
+
--ndw-color-warning-600: hsl(var(--_warning-600));
|
|
113
|
+
--ndw-color-alternative-100: hsl(var(--_alternative-100));
|
|
114
|
+
--ndw-color-alternative-500: hsl(var(--_alternative-500));
|
|
115
|
+
--ndw-color-critical-100: hsl(var(--_critical-100));
|
|
116
|
+
--ndw-color-critical-200: hsl(var(--_critical-200));
|
|
117
|
+
--ndw-color-critical-300: hsl(var(--_critical-300));
|
|
118
|
+
--ndw-color-critical-500: hsl(var(--_critical-500));
|
|
119
|
+
--ndw-color-info-100: hsl(var(--_info-100));
|
|
120
|
+
--ndw-color-info-200: hsl(var(--_info-200));
|
|
121
|
+
--ndw-color-info-500: hsl(var(--_info-500));
|
|
122
|
+
|
|
123
|
+
--ndw-color-notification: hsl(19, 100%, 35%);
|
|
124
|
+
|
|
125
|
+
// Data
|
|
126
|
+
--_data-a-500: 133, 100%, 21%;
|
|
127
|
+
--_data-a-100: 101, 61%, 81%;
|
|
128
|
+
--_data-b-500: 0, 0%, 27%;
|
|
129
|
+
--_data-b-100: 0, 0%, 87%;
|
|
130
|
+
--_data-c-500: 209, 97%, 38%;
|
|
131
|
+
--_data-c-100: 194, 95%, 84%;
|
|
132
|
+
--_data-d-500: 292, 95%, 33%;
|
|
133
|
+
--_data-d-100: 292, 100%, 87%;
|
|
134
|
+
--_data-e-500: 51, 95%, 23%;
|
|
135
|
+
--_data-e-100: 54, 89%, 79%;
|
|
136
|
+
--_data-f-500: 0, 97%, 35%;
|
|
137
|
+
--_data-f-100: 0, 100%, 94%;
|
|
138
|
+
|
|
139
|
+
--ndw-color-data-a-500: hsl(var(--_data-a-500));
|
|
140
|
+
--ndw-color-data-a-100: hsl(var(--_data-a-100));
|
|
141
|
+
--ndw-color-data-b-500: hsl(var(--_data-b-500));
|
|
142
|
+
--ndw-color-data-b-100: hsl(var(--_data-b-100));
|
|
143
|
+
--ndw-color-data-c-500: hsl(var(--_data-c-500));
|
|
144
|
+
--ndw-color-data-c-100: hsl(var(--_data-c-100));
|
|
145
|
+
--ndw-color-data-d-500: hsl(var(--_data-d-500));
|
|
146
|
+
--ndw-color-data-d-100: hsl(var(--_data-d-100));
|
|
147
|
+
--ndw-color-data-e-500: hsl(var(--_data-e-500));
|
|
148
|
+
--ndw-color-data-e-100: hsl(var(--_data-e-100));
|
|
149
|
+
--ndw-color-data-f-500: hsl(var(--_data-f-500));
|
|
150
|
+
--ndw-color-data-f-100: hsl(var(--_data-f-100));
|
|
151
|
+
|
|
152
|
+
// Alpha Primary
|
|
153
|
+
--_alpha-black: 0, 0%, 0%;
|
|
154
|
+
--_alpha-007: 0.07;
|
|
155
|
+
--_alpha-015: 0.15;
|
|
156
|
+
--_alpha-040: 0.4;
|
|
157
|
+
|
|
158
|
+
--ndw-alpha-black-007: hsla(var(--_alpha-black), var(--_alpha-007));
|
|
159
|
+
--ndw-alpha-black-015: hsla(var(--_alpha-black), var(--_alpha-015));
|
|
160
|
+
--ndw-alpha-black-040: hsla(var(--_alpha-black), var(--_alpha-040));
|
|
161
|
+
|
|
162
|
+
--ndw-alpha-white-040: hsla(var(--_white), var(--_alpha-040));
|
|
163
|
+
|
|
164
|
+
--ndw-alpha-primary-007: hsla(var(--_primary-500), var(--_alpha-007));
|
|
165
|
+
--ndw-alpha-primary-015: hsla(var(--_primary-500), var(--_alpha-015));
|
|
166
|
+
|
|
167
|
+
// Background
|
|
168
|
+
--ndw-color-background: var(--ndw-color-primary);
|
|
169
|
+
--ndw-color-background-hover: var(--ndw-color-primary-hover);
|
|
170
|
+
--ndw-color-background-active: var(--ndw-color-primary-active);
|
|
171
|
+
--ndw-color-background-disabled: var(--ndw-color-grey-300);
|
|
172
|
+
|
|
173
|
+
// Foreground
|
|
174
|
+
--ndw-color-foreground: var(--ndw-color-white);
|
|
175
|
+
--ndw-color-foreground-hover: var(--ndw-color-white);
|
|
176
|
+
--ndw-color-foreground-active: var(--ndw-color-white);
|
|
177
|
+
|
|
178
|
+
// Text
|
|
179
|
+
--ndw-color-text: var(--ndw-color-grey-700);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
[data-theme='nwb'] {
|
|
183
|
+
/* Colors */
|
|
184
|
+
// Primary
|
|
185
|
+
--_primary-050: 176, 44%, 95%;
|
|
186
|
+
--_primary-100: 176, 44%, 82%;
|
|
187
|
+
--_primary-200: 176, 44%, 73%;
|
|
188
|
+
--_primary-300: 176, 50%, 60%;
|
|
189
|
+
--_primary-400: 176, 55%, 48%;
|
|
190
|
+
--_primary-500: 176, 58%, 41%;
|
|
191
|
+
--_primary-600: 176, 60%, 34%;
|
|
192
|
+
--_primary-700: 176, 68%, 21%;
|
|
193
|
+
--_primary-800: 176, 68%, 13%;
|
|
194
|
+
|
|
195
|
+
--ndw-color-primary-050: hsl(var(--_primary-050));
|
|
196
|
+
--ndw-color-primary-100: hsl(var(--_primary-100));
|
|
197
|
+
--ndw-color-primary-200: hsl(var(--_primary-200));
|
|
198
|
+
--ndw-color-primary-300: hsl(var(--_primary-300));
|
|
199
|
+
--ndw-color-primary-400: hsl(var(--_primary-400));
|
|
200
|
+
--ndw-color-primary-500: hsl(var(--_primary-500));
|
|
201
|
+
--ndw-color-primary-600: hsl(var(--_primary-600));
|
|
202
|
+
--ndw-color-primary-700: hsl(var(--_primary-700));
|
|
203
|
+
--ndw-color-primary-800: hsl(var(--_primary-800));
|
|
204
|
+
|
|
205
|
+
// Secondary
|
|
206
|
+
--_secondary-050: 0, 100%, 95%;
|
|
207
|
+
--_secondary-100: 0, 100%, 90%;
|
|
208
|
+
--_secondary-200: 0, 100%, 82%;
|
|
209
|
+
--_secondary-300: 0, 100%, 74%;
|
|
210
|
+
--_secondary-400: 0, 100%, 66%;
|
|
211
|
+
--_secondary-500: 0, 100%, 58%;
|
|
212
|
+
--_secondary-600: 0, 75%, 42%;
|
|
213
|
+
--_secondary-700: 0, 79%, 26%;
|
|
214
|
+
|
|
215
|
+
--ndw-color-secondary-050: hsl(var(--_secondary-050));
|
|
216
|
+
--ndw-color-secondary-100: hsl(var(--_secondary-100));
|
|
217
|
+
--ndw-color-secondary-200: hsl(var(--_secondary-200));
|
|
218
|
+
--ndw-color-secondary-300: hsl(var(--_secondary-300));
|
|
219
|
+
--ndw-color-secondary-400: hsl(var(--_secondary-400));
|
|
220
|
+
--ndw-color-secondary-500: hsl(var(--_secondary-500));
|
|
221
|
+
--ndw-color-secondary-600: hsl(var(--_secondary-600));
|
|
222
|
+
--ndw-color-secondary-700: hsl(var(--_secondary-700));
|
|
223
|
+
|
|
224
|
+
// Tertiary
|
|
225
|
+
--_tertiary-400: 309, 29%, 36%;
|
|
226
|
+
--_tertiary-500: 309, 29%, 18%;
|
|
227
|
+
|
|
228
|
+
--ndw-color-tertiary-400: hsl(var(--_tertiary-400));
|
|
229
|
+
--ndw-color-tertiary-500: hsl(var(--_tertiary-500));
|
|
230
|
+
|
|
231
|
+
// Alpha Primary
|
|
232
|
+
--ndw-alpha-primary-007: hsla(var(--_primary-500), var(--_alpha-007));
|
|
233
|
+
--ndw-alpha-primary-015: hsla(var(--_primary-500), var(--_alpha-015));
|
|
234
|
+
}
|