@daffodil/design 0.83.0 → 0.85.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/accordion/src/accordion-theme.scss +11 -13
- package/article/src/article-theme.scss +36 -38
- package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
- package/atoms/form/error-message/error-message.component.d.ts +4 -1
- package/atoms/form/error-message/error-message.module.d.ts +4 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +40 -25
- package/atoms/form/form-field/form-field-control.d.ts +19 -4
- package/atoms/form/form-field/form-field-state.d.ts +7 -0
- package/atoms/form/form-field/form-field.d.ts +10 -0
- package/atoms/form/form-field/form-field.module.d.ts +6 -4
- package/atoms/form/form-field/public_api.d.ts +2 -1
- package/atoms/form/form-label/form-label.directive.d.ts +4 -1
- package/atoms/form/form-label/form-label.module.d.ts +4 -1
- package/atoms/form/hint/hint.component.d.ts +13 -0
- package/atoms/form/hint/public_api.d.ts +1 -0
- package/atoms/form/native-select/native-select.component.d.ts +5 -1
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/breadcrumb/src/breadcrumb-theme.scss +14 -7
- package/button/button/button-base.directive.d.ts +6 -23
- package/button/button/raised/raised.component.d.ts +1 -1
- package/button/src/button/basic/button-theme.scss +84 -114
- package/button/src/button/button-base.scss +17 -4
- package/button/src/button/flat/flat-theme.scss +32 -68
- package/button/src/button/icon/icon-theme.scss +78 -106
- package/button/src/button/raised/raised-theme.scss +30 -32
- package/button/src/button/stroked/stroked-theme.scss +35 -69
- package/button/src/button/underline/underline-theme.scss +34 -50
- package/callout/src/callout-theme.scss +37 -22
- package/card/card/basic/basic.component.d.ts +3 -0
- package/card/card/raised/raised.component.d.ts +3 -0
- package/card/card/stroked/stroked.component.d.ts +3 -0
- package/card/src/card/raised/raised-theme.scss +9 -11
- package/card/src/card/stroked/stroked-theme.scss +32 -34
- package/card/src/card-base-theme.scss +42 -44
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
- package/core/colorable/colorable.d.ts +2 -2
- package/core/colorable/colorable.directive.d.ts +8 -0
- package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
- package/core/openable/openable.directive.d.ts +3 -0
- package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
- package/core/prefix-suffix/prefix.directive.d.ts +4 -1
- package/core/prefix-suffix/public_api.d.ts +0 -4
- package/core/prefix-suffix/suffix.directive.d.ts +4 -1
- package/core/sizable/sizable.directive.d.ts +8 -0
- package/core/statusable/statusable.directive.d.ts +2 -0
- package/core/text-alignable/text-alignable.directive.d.ts +6 -1
- package/fesm2022/daffodil-design-accordion-examples.mjs +10 -10
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +15 -15
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +31 -31
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +11 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +7 -7
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +15 -12
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +41 -37
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +46 -53
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +13 -13
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +23 -23
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +19 -19
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +44 -35
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +13 -7
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +4 -4
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +8 -8
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +13 -13
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +23 -23
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +10 -10
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +9 -9
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +72 -28
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +96 -0
- package/fesm2022/daffodil-design-input.mjs.map +1 -0
- package/fesm2022/daffodil-design-link-set.mjs +17 -17
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +13 -13
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +12 -12
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +16 -16
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +14 -21
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +7 -7
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +39 -26
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +61 -28
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +13 -13
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +9 -9
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +17 -22
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +51 -24
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +7 -7
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +9 -9
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +30 -12
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +23 -22
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +355 -0
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -0
- package/fesm2022/daffodil-design-radio-examples.mjs +4 -4
- package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +13 -13
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +27 -27
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +17 -17
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +6 -7
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +16 -16
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +38 -19
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +4 -4
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +4 -4
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +22 -16
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +24 -26
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +7 -7
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +30 -16
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +10 -7
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +531 -818
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/src/hero-theme.scss +37 -22
- package/input/README.md +66 -0
- package/input/examples/examples.d.ts +2 -2
- package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
- package/input/examples/input-hint/input-hint.component.d.ts +5 -0
- package/input/examples/input-hint-and-error/input-hint-and-error.component.d.ts +9 -0
- package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
- package/input/index.d.ts +1 -0
- package/{atoms/form/input → input}/input.component.d.ts +16 -20
- package/input/input.module.d.ts +10 -0
- package/list/list/list.component.d.ts +1 -1
- package/list/src/list-theme.scss +20 -26
- package/loading-icon/src/loading-icon-theme.scss +20 -22
- package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -4
- package/media-gallery/src/media-gallery-theme.scss +10 -12
- package/menu/helpers/create-overlay.d.ts +1 -1
- package/menu/menu/menu.component.d.ts +15 -0
- package/menu/menu-activator/menu-activator.component.d.ts +3 -0
- package/menu/src/menu-theme.scss +34 -16
- package/modal/modal/modal.component.d.ts +21 -0
- package/modal/modal-actions/modal-actions.component.d.ts +3 -0
- package/modal/modal-close/modal-close.directive.d.ts +3 -0
- package/modal/modal-content/modal-content.component.d.ts +3 -0
- package/modal/modal-title/modal-title.directive.d.ts +3 -0
- package/modal/src/modal-theme.scss +2 -2
- package/navbar/src/navbar-theme.scss +21 -18
- package/notification/README.md +11 -12
- package/notification/notification/notification.component.d.ts +17 -2
- package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
- package/notification/notification-message/notification-message.directive.d.ts +3 -0
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
- package/notification/notification-title/notification-title.directive.d.ts +3 -0
- package/notification/notification.d.ts +2 -2
- package/notification/src/notification-theme.scss +44 -46
- package/package.json +1 -1
- package/paginator/src/paginator-theme.scss +26 -23
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
- package/progress-bar/progress-bar.component.d.ts +15 -0
- package/progress-bar/src/progress-bar-theme.scss +18 -20
- package/public_api.d.ts +1 -2
- package/quantity-field/README.md +63 -0
- package/quantity-field/index.d.ts +1 -0
- package/quantity-field/public_api.d.ts +2 -0
- package/{atoms/form/quantity-field → quantity-field}/quantity-field.component.d.ts +5 -4
- package/quantity-field/quantity-field.module.d.ts +11 -0
- package/{atoms/form/quantity-field → quantity-field}/quantity-input/quantity-input.component.d.ts +5 -2
- package/{atoms/form/quantity-field → quantity-field}/quantity-select/quantity-select.component.d.ts +2 -2
- package/scss/state/skeleton/_mixins.scss +22 -13
- package/scss/theme.scss +2 -2
- package/scss/theming/_configure-theme.scss +16 -16
- package/scss/theming/_get-base-color.scss +19 -0
- package/scss/theming/_get-palette.scss +27 -0
- package/scss/theming/_get-theme-mode.scss +9 -0
- package/scss/theming/_index.scss +3 -0
- package/scss/theming/_light-dark.scss +4 -4
- package/scss/theming/_theme-css-variables.scss +20 -20
- package/sidebar/src/sidebar-theme.scss +4 -5
- package/src/atoms/form/error-message/error-message-theme.scss +4 -2
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +47 -24
- package/src/atoms/form/hint/hint-theme.scss +22 -0
- package/src/atoms/form/native-select/native-select-theme.scss +5 -7
- package/switch/src/switch-theme.scss +13 -15
- package/switch/switch.d.ts +2 -2
- package/tabs/src/tabs-theme.scss +13 -15
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
- package/tabs/tabs/tabs.component.d.ts +3 -0
- package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
- package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
- package/toast/src/toast-theme.scss +36 -38
- package/toast/toast/toast.component.d.ts +3 -5
- package/tree/interfaces/tree-data.d.ts +15 -0
- package/tree/interfaces/tree-render-mode.d.ts +2 -2
- package/tree/src/tree-theme.scss +20 -22
- package/tree/tree/tree-notifier.service.d.ts +3 -3
- package/tree/tree/tree.component.d.ts +13 -3
- package/tree/tree-item/tree-item.directive.d.ts +6 -0
- package/youtube-player/youtube-player.component.d.ts +3 -0
- package/atoms/form/input/input.module.d.ts +0 -8
- package/atoms/form/quantity-field/public_api.d.ts +0 -4
- package/atoms/form/quantity-field/quantity-field.module.d.ts +0 -13
- package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
- package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
- package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
- package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
- package/input/examples/basic-input/basic-input.component.d.ts +0 -5
- package/src/atoms/form/input/input-theme.scss +0 -16
- /package/{atoms/form/input → input}/public_api.d.ts +0 -0
@@ -13,6 +13,9 @@ export declare class DaffModalTitleDirective {
|
|
13
13
|
/**
|
14
14
|
* The html `id` of the modal title.
|
15
15
|
*/
|
16
|
+
/**
|
17
|
+
* @docs-private
|
18
|
+
*/
|
16
19
|
get uniqueId(): string;
|
17
20
|
constructor(modal: DaffModalComponent);
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalTitleDirective, [{ optional: true; }]>;
|
@@ -1,41 +1,44 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-navbar-theme-variant($color) {
|
6
4
|
background: $color;
|
7
|
-
color:
|
5
|
+
color: daff-text-contrast($color);
|
8
6
|
}
|
9
7
|
|
10
8
|
@mixin daff-navbar-theme($theme) {
|
11
|
-
$primary:
|
12
|
-
$secondary:
|
13
|
-
$tertiary:
|
14
|
-
$neutral:
|
15
|
-
$base:
|
16
|
-
$base-contrast:
|
17
|
-
$white:
|
18
|
-
$black:
|
9
|
+
$primary: daff-get-palette($theme, primary);
|
10
|
+
$secondary: daff-get-palette($theme, secondary);
|
11
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
12
|
+
$neutral: daff-get-palette($theme, neutral);
|
13
|
+
$base: daff-get-base-color($theme, base);
|
14
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
15
|
+
$white: daff-get-base-color($theme, 'white');
|
16
|
+
$black: daff-get-base-color($theme, 'black');
|
17
|
+
$mode: daff-get-theme-mode($theme);
|
19
18
|
|
20
19
|
.daff-navbar {
|
21
|
-
@include
|
22
|
-
|
23
|
-
|
20
|
+
@include light($mode) {
|
21
|
+
@include daff-navbar-theme-variant(daff-color($neutral, 10));
|
22
|
+
}
|
23
|
+
|
24
|
+
@include dark($mode) {
|
25
|
+
@include daff-navbar-theme-variant(daff-color($neutral, 90));
|
26
|
+
}
|
24
27
|
|
25
28
|
&--raised {
|
26
29
|
box-shadow: 0 4px 10px rgba($black, 0.08);
|
27
30
|
}
|
28
31
|
|
29
32
|
&.daff-primary {
|
30
|
-
@include daff-navbar-theme-variant(
|
33
|
+
@include daff-navbar-theme-variant(daff-color($primary));
|
31
34
|
}
|
32
35
|
|
33
36
|
&.daff-secondary {
|
34
|
-
@include daff-navbar-theme-variant(
|
37
|
+
@include daff-navbar-theme-variant(daff-color($secondary));
|
35
38
|
}
|
36
39
|
|
37
40
|
&.daff-tertiary {
|
38
|
-
@include daff-navbar-theme-variant(
|
41
|
+
@include daff-navbar-theme-variant(daff-color($tertiary));
|
39
42
|
}
|
40
43
|
|
41
44
|
&.daff-black {
|
package/notification/README.md
CHANGED
@@ -52,27 +52,24 @@ export class CustomComponentModule { }
|
|
52
52
|
## Supported Content Types
|
53
53
|
|
54
54
|
### Icon
|
55
|
-
An icon can be used to
|
55
|
+
An icon can be used to provide users with a quick visual cue about the purpose of a notification. Place the icon before the title and subtitle using the `[daffPrefix]` selector.
|
56
56
|
|
57
57
|
### Title
|
58
|
-
|
58
|
+
The title provides a quick overview of what the notification's content. Add it using the `[daffNotificationTitle]` selector.
|
59
59
|
|
60
60
|
### Subtitle
|
61
|
-
|
61
|
+
The subtitle provides additional details about the notification. It should be limited to one or two sentences. Add it using the `[daffNotificationSubtitle]` selector.
|
62
62
|
|
63
63
|
### Actions
|
64
|
-
Buttons can be included in notifications to
|
64
|
+
Buttons can be included in notifications to dismiss them or navigate them to a page with more information. Use the `[daffNotificationActions]` selector to include these actions.
|
65
65
|
|
66
66
|
<design-land-example-viewer-container example="notification-with-actions"></design-land-example-viewer-container>
|
67
67
|
|
68
68
|
## Properties
|
69
69
|
|
70
|
-
###
|
71
|
-
The status
|
70
|
+
### Status
|
71
|
+
The status property is used to visually distinguish between different notification types. Use the `status` property to set the status.
|
72
72
|
|
73
|
-
Supported statuses: `warn | critical | success`
|
74
|
-
|
75
|
-
#### Notification with statuses
|
76
73
|
<design-land-example-viewer-container example="notification-status"></design-land-example-viewer-container>
|
77
74
|
|
78
75
|
### Orientation
|
@@ -81,11 +78,13 @@ Orientation dictates how a notification's content is stacked — `vertical` or `
|
|
81
78
|
<design-land-example-viewer-container example="notification-orientations"></design-land-example-viewer-container>
|
82
79
|
|
83
80
|
### Dismissing a notification
|
84
|
-
|
81
|
+
By default, notifications are not dismissible and remain visible until the user takes an action to resolve them.
|
85
82
|
|
86
|
-
|
83
|
+
To show a close button, set the `dismissible` property to `true`. Avoid making critical notifications dismissible to ensure users can read or interact with the necessary information.
|
87
84
|
|
88
85
|
<design-land-example-viewer-container example="dismissible-notification"></design-land-example-viewer-container>
|
89
86
|
|
90
87
|
## Accessibility
|
91
|
-
Notifications with a `critical` or `warn` status have a `role="alert"` so that it can be announced by assistive technologies. See [live region roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#4._live_region_roles) for more information. All other notifications have a `role="status"`.
|
88
|
+
Notifications with a `critical` or `warn` status have a `role="alert"` so that it can be announced by assistive technologies. See [live region roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#4._live_region_roles) for more information. All other notifications have a `role="status"`.
|
89
|
+
|
90
|
+
Notifications have a `tabindex="0"` so users can discover them while tabbing through a page.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { DaffPrefixDirective, DaffStatusableDirective } from '@daffodil/design';
|
3
3
|
import { DaffNotificationActionsDirective } from '../notification-actions/notification-actions.directive';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@daffodil/design";
|
@@ -8,19 +8,34 @@ export type DaffNotificationOrientation = 'horizontal' | 'vertical';
|
|
8
8
|
* DaffNotificationComponent provides a way to display and communicate
|
9
9
|
* information related to user actions within a page's content.
|
10
10
|
*/
|
11
|
-
export declare class DaffNotificationComponent
|
11
|
+
export declare class DaffNotificationComponent {
|
12
12
|
private statusDirective;
|
13
13
|
faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
14
14
|
_prefix: DaffPrefixDirective;
|
15
15
|
_actions: DaffNotificationActionsDirective;
|
16
|
+
/**
|
17
|
+
* @docs-private
|
18
|
+
*/
|
16
19
|
class: boolean;
|
20
|
+
/**
|
21
|
+
* @docs-private
|
22
|
+
*/
|
17
23
|
tabindex: string;
|
18
24
|
/**
|
19
25
|
* Sets role to alert when `status="warn"` or `status="critical"`.
|
20
26
|
* Sets role to status on all other instances.
|
21
27
|
*/
|
28
|
+
/**
|
29
|
+
* @docs-private
|
30
|
+
*/
|
22
31
|
get role(): "status" | "alert";
|
32
|
+
/**
|
33
|
+
* @docs-private
|
34
|
+
*/
|
23
35
|
get verticalOrientation(): boolean;
|
36
|
+
/**
|
37
|
+
* @docs-private
|
38
|
+
*/
|
24
39
|
get horizontalOrientation(): boolean;
|
25
40
|
/** Whether or not a notification is closable */
|
26
41
|
dismissible: boolean;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffNotificationActionsDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationActionsDirective, never>;
|
5
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationActionsDirective, "[daffNotificationActions]", never, {}, {}, never, never, true, never>;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffNotificationMessageDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationMessageDirective, never>;
|
5
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationMessageDirective, "[daffNotificationMessage]", never, {}, {}, never, never, true, never>;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffNotificationSubtitleDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationSubtitleDirective, never>;
|
5
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationSubtitleDirective, "[daffNotificationSubtitle]", never, {}, {}, never, never, true, never>;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffNotificationTitleDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationTitleDirective, never>;
|
5
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationTitleDirective, "[daffNotificationTitle]", never, {}, {}, never, never, true, never>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { DaffPrefixDirective } from '@daffodil/design';
|
2
2
|
import { DaffNotificationComponent } from './notification/notification.component';
|
3
3
|
import { DaffNotificationActionsDirective } from './notification-actions/notification-actions.directive';
|
4
4
|
import { DaffNotificationMessageDirective } from './notification-message/notification-message.directive';
|
@@ -7,4 +7,4 @@ import { DaffNotificationTitleDirective } from './notification-title/notificatio
|
|
7
7
|
/**
|
8
8
|
* @docs-private
|
9
9
|
*/
|
10
|
-
export declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof
|
10
|
+
export declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof DaffPrefixDirective];
|
@@ -1,91 +1,89 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-notification-theme($theme) {
|
6
|
-
$primary:
|
7
|
-
$secondary:
|
8
|
-
$tertiary:
|
9
|
-
$info:
|
10
|
-
$warn:
|
11
|
-
$critical:
|
12
|
-
$success:
|
13
|
-
$neutral:
|
14
|
-
$base:
|
15
|
-
$base-contrast:
|
16
|
-
$black:
|
17
|
-
$white:
|
18
|
-
$
|
4
|
+
$primary: daff-get-palette($theme, primary);
|
5
|
+
$secondary: daff-get-palette($theme, secondary);
|
6
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
7
|
+
$info: daff-get-palette($theme, informational);
|
8
|
+
$warn: daff-get-palette($theme, warn);
|
9
|
+
$critical: daff-get-palette($theme, critical);
|
10
|
+
$success: daff-get-palette($theme, success);
|
11
|
+
$neutral: daff-get-palette($theme, neutral);
|
12
|
+
$base: daff-get-base-color($theme, base);
|
13
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
14
|
+
$black: daff-get-base-color($theme, 'black');
|
15
|
+
$white: daff-get-base-color($theme, 'white');
|
16
|
+
$mode: daff-get-theme-mode($theme);
|
19
17
|
|
20
18
|
.daff-notification {
|
21
|
-
@include
|
22
|
-
background:
|
23
|
-
border: 1px solid
|
19
|
+
@include light($mode) {
|
20
|
+
background: daff-color($neutral, 10);
|
21
|
+
border: 1px solid daff-color($neutral, 20);
|
24
22
|
color: $black;
|
25
23
|
|
26
24
|
&.daff-success {
|
27
|
-
background:
|
28
|
-
border: 1px solid
|
29
|
-
color:
|
25
|
+
background: daff-color($success, 10);
|
26
|
+
border: 1px solid daff-color($success, 20);
|
27
|
+
color: daff-text-contrast(daff-color($success, 10));
|
30
28
|
|
31
29
|
.daff-prefix {
|
32
|
-
color:
|
30
|
+
color: daff-color($success, 80);
|
33
31
|
}
|
34
32
|
}
|
35
33
|
|
36
34
|
&.daff-warn {
|
37
|
-
background:
|
38
|
-
border: 1px solid
|
39
|
-
color:
|
35
|
+
background: daff-color($warn, 10);
|
36
|
+
border: 1px solid daff-color($warn, 20);
|
37
|
+
color: daff-text-contrast(daff-color($warn, 10));
|
40
38
|
|
41
39
|
.daff-prefix {
|
42
|
-
color:
|
40
|
+
color: daff-color($warn, 80);
|
43
41
|
}
|
44
42
|
}
|
45
43
|
|
46
44
|
&.daff-critical {
|
47
|
-
background:
|
48
|
-
border: 1px solid
|
49
|
-
color:
|
45
|
+
background: daff-color($critical, 10);
|
46
|
+
border: 1px solid daff-color($critical, 20);
|
47
|
+
color: daff-text-contrast(daff-color($critical, 10));
|
50
48
|
|
51
49
|
.daff-prefix {
|
52
|
-
color:
|
50
|
+
color: daff-color($critical, 80);
|
53
51
|
}
|
54
52
|
}
|
55
53
|
}
|
56
54
|
|
57
|
-
@include
|
58
|
-
background:
|
59
|
-
border: 1px solid
|
55
|
+
@include dark($mode) {
|
56
|
+
background: daff-color($neutral, 90);
|
57
|
+
border: 1px solid daff-color($neutral, 80);
|
60
58
|
color: $white;
|
61
59
|
|
62
60
|
&.daff-success {
|
63
|
-
background:
|
64
|
-
border: 1px solid
|
65
|
-
color:
|
61
|
+
background: daff-color($success, 90);
|
62
|
+
border: 1px solid daff-color($success, 80);
|
63
|
+
color: daff-text-contrast(daff-color($success, 90));
|
66
64
|
|
67
65
|
.daff-prefix {
|
68
|
-
color:
|
66
|
+
color: daff-color($success, 30);
|
69
67
|
}
|
70
68
|
}
|
71
69
|
|
72
70
|
&.daff-warn {
|
73
|
-
background:
|
74
|
-
border: 1px solid
|
75
|
-
color:
|
71
|
+
background: daff-color($warn, 90);
|
72
|
+
border: 1px solid daff-color($warn, 80);
|
73
|
+
color: daff-text-contrast(daff-color($warn, 90));
|
76
74
|
|
77
75
|
.daff-prefix {
|
78
|
-
color:
|
76
|
+
color: daff-color($warn, 30);
|
79
77
|
}
|
80
78
|
}
|
81
79
|
|
82
80
|
&.daff-critical {
|
83
|
-
background:
|
84
|
-
border: 1px solid
|
85
|
-
color:
|
81
|
+
background: daff-color($critical, 90);
|
82
|
+
border: 1px solid daff-color($critical, 80);
|
83
|
+
color: daff-text-contrast(daff-color($critical, 90));
|
86
84
|
|
87
85
|
.daff-prefix {
|
88
|
-
color:
|
86
|
+
color: daff-color($critical, 30);
|
89
87
|
}
|
90
88
|
}
|
91
89
|
}
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.
|
1
|
+
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.85.0","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"A consistent, sane api driver that works with different ecommerce systems.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^19.0.0","@angular/common":"^19.0.0","@angular/core":"^19.0.0","@angular/forms":"^19.0.0","@angular/cdk":"^19.0.0","@daffodil/core":"0.85.0","@fortawesome/angular-fontawesome":"^1.0.0","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","modern-normalize":"^3.0.1","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^9.8.0"},"exports":{"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/typography":{"sass":"./scss/typography/_index.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-design.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.mjs"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./breadcrumb":{"types":"./breadcrumb/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb.mjs"},"./button":{"types":"./button/index.d.ts","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","default":"./fesm2022/daffodil-design-card.mjs"},"./container":{"types":"./container/index.d.ts","default":"./fesm2022/daffodil-design-container.mjs"},"./hero":{"types":"./hero/index.d.ts","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","default":"./fesm2022/daffodil-design-image.mjs"},"./input":{"types":"./input/index.d.ts","default":"./fesm2022/daffodil-design-input.mjs"},"./link-set":{"types":"./link-set/index.d.ts","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","default":"./fesm2022/daffodil-design-modal.mjs"},"./navbar":{"types":"./navbar/index.d.ts","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","default":"./fesm2022/daffodil-design-paginator.mjs"},"./progress-bar":{"types":"./progress-bar/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar.mjs"},"./quantity-field":{"types":"./quantity-field/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./switch":{"types":"./switch/index.d.ts","default":"./fesm2022/daffodil-design-switch.mjs"},"./tabs":{"types":"./tabs/index.d.ts","default":"./fesm2022/daffodil-design-tabs.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./toast":{"types":"./toast/index.d.ts","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","default":"./fesm2022/daffodil-design-tree.mjs"},"./youtube-player":{"types":"./youtube-player/index.d.ts","default":"./fesm2022/daffodil-design-youtube-player.mjs"},"./accordion/examples":{"types":"./accordion/examples/index.d.ts","default":"./fesm2022/daffodil-design-accordion-examples.mjs"},"./article/examples":{"types":"./article/examples/index.d.ts","default":"./fesm2022/daffodil-design-article-examples.mjs"},"./breadcrumb/examples":{"types":"./breadcrumb/examples/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb-examples.mjs"},"./button/examples":{"types":"./button/examples/index.d.ts","default":"./fesm2022/daffodil-design-button-examples.mjs"},"./callout/examples":{"types":"./callout/examples/index.d.ts","default":"./fesm2022/daffodil-design-callout-examples.mjs"},"./card/examples":{"types":"./card/examples/index.d.ts","default":"./fesm2022/daffodil-design-card-examples.mjs"},"./checkbox/examples":{"types":"./checkbox/examples/index.d.ts","default":"./fesm2022/daffodil-design-checkbox-examples.mjs"},"./container/examples":{"types":"./container/examples/index.d.ts","default":"./fesm2022/daffodil-design-container-examples.mjs"},"./hero/examples":{"types":"./hero/examples/index.d.ts","default":"./fesm2022/daffodil-design-hero-examples.mjs"},"./image/examples":{"types":"./image/examples/index.d.ts","default":"./fesm2022/daffodil-design-image-examples.mjs"},"./input/examples":{"types":"./input/examples/index.d.ts","default":"./fesm2022/daffodil-design-input-examples.mjs"},"./list/examples":{"types":"./list/examples/index.d.ts","default":"./fesm2022/daffodil-design-list-examples.mjs"},"./loading-icon/examples":{"types":"./loading-icon/examples/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon-examples.mjs"},"./media-gallery/examples":{"types":"./media-gallery/examples/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery-examples.mjs"},"./menu/examples":{"types":"./menu/examples/index.d.ts","default":"./fesm2022/daffodil-design-menu-examples.mjs"},"./modal/examples":{"types":"./modal/examples/index.d.ts","default":"./fesm2022/daffodil-design-modal-examples.mjs"},"./navbar/examples":{"types":"./navbar/examples/index.d.ts","default":"./fesm2022/daffodil-design-navbar-examples.mjs"},"./notification/examples":{"types":"./notification/examples/index.d.ts","default":"./fesm2022/daffodil-design-notification-examples.mjs"},"./paginator/examples":{"types":"./paginator/examples/index.d.ts","default":"./fesm2022/daffodil-design-paginator-examples.mjs"},"./progress-bar/examples":{"types":"./progress-bar/examples/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar-examples.mjs"},"./quantity-field/examples":{"types":"./quantity-field/examples/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field-examples.mjs"},"./radio/examples":{"types":"./radio/examples/index.d.ts","default":"./fesm2022/daffodil-design-radio-examples.mjs"},"./sidebar/examples":{"types":"./sidebar/examples/index.d.ts","default":"./fesm2022/daffodil-design-sidebar-examples.mjs"},"./switch/examples":{"types":"./switch/examples/index.d.ts","default":"./fesm2022/daffodil-design-switch-examples.mjs"},"./tabs/examples":{"types":"./tabs/examples/index.d.ts","default":"./fesm2022/daffodil-design-tabs-examples.mjs"},"./text-snippet/examples":{"types":"./text-snippet/examples/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet-examples.mjs"},"./toast/examples":{"types":"./toast/examples/index.d.ts","default":"./fesm2022/daffodil-design-toast-examples.mjs"},"./tree/examples":{"types":"./tree/examples/index.d.ts","default":"./fesm2022/daffodil-design-tree-examples.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
@@ -1,34 +1,37 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
3
|
+
// stylelint-disable selector-class-pattern
|
5
4
|
@mixin daff-paginator-theme($theme) {
|
6
|
-
$
|
7
|
-
$
|
8
|
-
$
|
9
|
-
$
|
10
|
-
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
11
|
-
$white: core.daff-map-get($theme, 'core', 'white');
|
12
|
-
$black: core.daff-map-get($theme, 'core', 'black');
|
13
|
-
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
|
-
$font-color: core.daff-map-get($theme, 'core', 'font-color');
|
5
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
6
|
+
$white: daff-get-base-color($theme, 'white');
|
7
|
+
$neutral: daff-get-palette($theme, neutral);
|
8
|
+
$mode: daff-get-theme-mode($theme);
|
15
9
|
|
16
10
|
.daff-paginator {
|
17
11
|
&__previous,
|
18
|
-
&__next
|
19
|
-
color: $font-color;
|
20
|
-
}
|
21
|
-
|
12
|
+
&__next,
|
22
13
|
&__page-link {
|
23
|
-
color: $
|
14
|
+
color: $base-contrast;
|
15
|
+
}
|
24
16
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
17
|
+
@include light($mode) {
|
18
|
+
&__page-link {
|
19
|
+
&:hover,
|
20
|
+
&.selected {
|
21
|
+
&::after {
|
22
|
+
background: daff-color($neutral, 20);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
29
27
|
|
30
|
-
|
31
|
-
|
28
|
+
@include dark($mode) {
|
29
|
+
&__page-link {
|
30
|
+
&:hover,
|
31
|
+
&.selected {
|
32
|
+
&::after {
|
33
|
+
background: daff-color($neutral, 90);
|
34
|
+
}
|
32
35
|
}
|
33
36
|
}
|
34
37
|
}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffProgressBarLabelDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProgressBarLabelDirective, never>;
|
5
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffProgressBarLabelDirective, "[daffProgressBarLabel]", never, {}, {}, never, never, true, never>;
|
@@ -15,10 +15,25 @@ export declare class DaffProgressBarComponent {
|
|
15
15
|
* @docs-private
|
16
16
|
*/
|
17
17
|
get indeterminateClass(): boolean;
|
18
|
+
/**
|
19
|
+
* @docs-private
|
20
|
+
*/
|
18
21
|
get role(): string;
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
19
25
|
get ariaLabel(): string;
|
26
|
+
/**
|
27
|
+
* @docs-private
|
28
|
+
*/
|
20
29
|
ariaValueMin: string;
|
30
|
+
/**
|
31
|
+
* @docs-private
|
32
|
+
*/
|
21
33
|
ariaValueMax: string;
|
34
|
+
/**
|
35
|
+
* @docs-private
|
36
|
+
*/
|
22
37
|
get ariaValueNow(): number;
|
23
38
|
constructor(_changeDetectorRef: ChangeDetectorRef, colorable: DaffColorableDirective);
|
24
39
|
private _percentage;
|
@@ -1,52 +1,50 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-progress-bar-theme($theme) {
|
6
|
-
$primary:
|
7
|
-
$secondary:
|
8
|
-
$tertiary:
|
9
|
-
$base:
|
10
|
-
$base-contrast:
|
11
|
-
$white:
|
12
|
-
$black:
|
13
|
-
$neutral:
|
14
|
-
$
|
4
|
+
$primary: daff-get-palette($theme, primary);
|
5
|
+
$secondary: daff-get-palette($theme, secondary);
|
6
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
7
|
+
$base: daff-get-base-color($theme, base);
|
8
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
9
|
+
$white: daff-get-base-color($theme, 'white');
|
10
|
+
$black: daff-get-base-color($theme, 'black');
|
11
|
+
$neutral: daff-get-palette($theme, neutral);
|
12
|
+
$mode: daff-get-theme-mode($theme);
|
15
13
|
|
16
14
|
.daff-progress-bar {
|
17
15
|
$root: '.daff-progress-bar';
|
18
16
|
|
19
17
|
#{$root}__label {
|
20
|
-
color:
|
18
|
+
color: daff-text-contrast($base);
|
21
19
|
}
|
22
20
|
|
23
|
-
@include
|
21
|
+
@include light($mode) {
|
24
22
|
#{$root}__track {
|
25
|
-
background:
|
23
|
+
background: daff-color($neutral, 30);
|
26
24
|
}
|
27
25
|
}
|
28
26
|
|
29
|
-
@include
|
27
|
+
@include dark($mode) {
|
30
28
|
#{$root}__track {
|
31
|
-
background:
|
29
|
+
background: daff-color($neutral, 80);
|
32
30
|
}
|
33
31
|
}
|
34
32
|
|
35
33
|
&.daff-primary {
|
36
34
|
#{$root}__fill {
|
37
|
-
background:
|
35
|
+
background: daff-color($primary);
|
38
36
|
}
|
39
37
|
}
|
40
38
|
|
41
39
|
&.daff-secondary {
|
42
40
|
#{$root}__fill {
|
43
|
-
background:
|
41
|
+
background: daff-color($secondary);
|
44
42
|
}
|
45
43
|
}
|
46
44
|
|
47
45
|
&.daff-tertiary {
|
48
46
|
#{$root}__fill {
|
49
|
-
background:
|
47
|
+
background: daff-color($tertiary);
|
50
48
|
}
|
51
49
|
}
|
52
50
|
|
package/public_api.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
export * from './atoms/form/core/public_api';
|
2
2
|
export * from './atoms/form/form-field/public_api';
|
3
3
|
export * from './atoms/form/error-message/public_api';
|
4
|
-
export * from './atoms/form/
|
4
|
+
export * from './atoms/form/hint/public_api';
|
5
5
|
export * from './atoms/form/native-select/public_api';
|
6
6
|
export * from './atoms/form/checkbox/public_api';
|
7
|
-
export * from './atoms/form/quantity-field/public_api';
|
8
7
|
export * from './atoms/form/radio/public_api';
|
9
8
|
export * from './atoms/form/form-label/public_api';
|
10
9
|
export * from './core/public_api';
|