@daffodil/design 0.81.1 → 0.83.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/README.md +44 -29
- package/accordion/accordion/accordion/accordion.component.d.ts +3 -0
- package/accordion/accordion/accordion-item/accordion-item.component.d.ts +23 -12
- package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
- package/accordion/accordion.d.ts +5 -0
- package/accordion/examples/disabled-accordion/disabled-accordion.component.d.ts +5 -0
- package/accordion/examples/initially-expanded-accordion/initially-expanded-accordion.component.d.ts +5 -0
- package/accordion/examples/public_api.d.ts +2 -0
- package/accordion/src/accordion-theme.scss +28 -6
- package/article/README.md +4 -3
- package/article/article.d.ts +3 -0
- package/article/src/article-theme.scss +128 -51
- package/breadcrumb/README.md +38 -28
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +15 -2
- package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +18 -4
- package/breadcrumb/breadcrumb.d.ts +3 -0
- package/breadcrumb/examples/iterated-breadcrumb/iterated-breadcrumb.component.d.ts +6 -0
- package/breadcrumb/public_api.d.ts +2 -2
- package/button/README.md +43 -23
- package/button/button/basic/button.component.d.ts +5 -1
- package/button/button/button-base.directive.d.ts +11 -3
- package/button/button/button-sizable.directive.d.ts +1 -1
- package/button/button/raised/raised.component.d.ts +2 -0
- package/button/button/stroked/stroked.component.d.ts +5 -1
- package/button/button.d.ts +4 -2
- package/button/button.module.d.ts +1 -2
- package/button/examples/elevated-button/elevated-button.component.d.ts +6 -0
- package/button/examples/examples.d.ts +2 -1
- package/button/examples/public_api.d.ts +1 -0
- package/button/public_api.d.ts +0 -1
- package/button/src/button/basic/button-theme.scss +185 -80
- package/button/src/button/button-base.scss +41 -16
- package/button/src/button/flat/flat-theme.scss +144 -85
- package/button/src/button/icon/icon-theme.scss +183 -79
- package/button/src/button/raised/raised-theme.scss +2 -7
- package/button/src/button/stroked/stroked-theme.scss +128 -94
- package/button/src/button/underline/underline-theme.scss +112 -44
- package/callout/README.md +4 -3
- package/callout/callout.d.ts +3 -0
- package/card/README.md +6 -3
- package/card/card/basic/basic.component.d.ts +7 -0
- package/card/card/raised/raised.component.d.ts +7 -0
- package/card/card/stroked/stroked.component.d.ts +7 -0
- package/card/card-base.directive.d.ts +25 -0
- package/card/card.d.ts +18 -1
- package/card/card.module.d.ts +10 -8
- package/card/examples/card-theming/card-theming.component.d.ts +2 -1
- package/card/examples/public_api.d.ts +1 -1
- package/card/public_api.d.ts +6 -1
- package/card/src/card/raised/raised-theme.scss +30 -0
- package/card/src/card/stroked/stroked-theme.scss +135 -0
- package/card/src/card-base-theme.scss +197 -0
- package/card/src/card-base.scss +134 -0
- package/container/README.md +5 -3
- package/container/container.d.ts +3 -0
- package/core/colorable/colorable.d.ts +20 -14
- package/core/colorable/colorable.directive.d.ts +9 -6
- package/fesm2022/daffodil-design-accordion-examples.mjs +28 -4
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +56 -29
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +30 -30
- package/fesm2022/daffodil-design-article.mjs +14 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +24 -4
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +78 -40
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +55 -33
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +79 -69
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +25 -22
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +35 -31
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +140 -86
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +3 -3
- package/fesm2022/daffodil-design-container.mjs +10 -7
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +25 -22
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +9 -9
- package/fesm2022/daffodil-design-image.mjs +36 -19
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +12 -12
- package/fesm2022/daffodil-design-link-set.mjs +19 -16
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +12 -12
- package/fesm2022/daffodil-design-list.mjs +13 -10
- 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 +11 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +62 -13
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +204 -250
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +16 -16
- 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 +28 -25
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +10 -7
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +17 -16
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +23 -20
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
- package/fesm2022/daffodil-design-paginator.mjs +13 -7
- 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 +13 -13
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
- package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
- package/fesm2022/daffodil-design-sidebar-examples.mjs +14 -14
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +150 -61
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +15 -15
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +38 -10
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +23 -17
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +67 -35
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +3 -3
- package/fesm2022/daffodil-design-text-snippet.mjs +4 -5
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +40 -15
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +296 -239
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
- package/fesm2022/daffodil-design-tree.mjs +15 -12
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +104 -0
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -0
- package/fesm2022/daffodil-design.mjs +167 -155
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/README.md +4 -3
- package/hero/hero.d.ts +3 -0
- package/image/README.md +4 -3
- package/image/image/image.component.d.ts +22 -1
- package/image/image.d.ts +3 -0
- package/link-set/README.md +4 -3
- package/link-set/link-set.d.ts +3 -0
- package/list/README.md +4 -3
- package/list/list.d.ts +3 -0
- package/loading-icon/README.md +10 -7
- package/loading-icon/loading-icon.d.ts +3 -0
- package/loading-icon/src/loading-icon-theme.scss +66 -38
- package/media-gallery/README.md +19 -10
- package/media-gallery/examples/iterated-media-gallery/iterated-media-gallery.component.d.ts +13 -0
- package/media-gallery/examples/media-gallery-with-video/media-gallery-with-video.component.d.ts +5 -0
- package/media-gallery/examples/public_api.d.ts +2 -0
- package/media-gallery/helpers/media-gallery-registration.interface.d.ts +1 -1
- package/media-gallery/media-gallery/media-gallery.component.d.ts +89 -11
- package/media-gallery/media-gallery.d.ts +4 -2
- package/media-gallery/media-gallery.module.d.ts +1 -2
- package/media-gallery/public_api.d.ts +3 -4
- package/media-gallery/src/media-gallery-theme.scss +30 -4
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +45 -22
- package/menu/README.md +1 -2
- package/modal/README.md +3 -2
- package/modal/modal.d.ts +3 -0
- package/navbar/README.md +3 -2
- package/navbar/navbar.d.ts +3 -0
- package/notification/README.md +5 -4
- package/notification/notification.d.ts +3 -0
- package/notification/src/notification-theme.scss +62 -23
- package/package.json +1 -1
- package/paginator/README.md +3 -2
- package/paginator/paginator/paginator.component.d.ts +3 -0
- package/paginator/paginator.d.ts +3 -0
- package/progress-bar/README.md +5 -6
- package/progress-bar/progress-bar.component.d.ts +0 -3
- package/progress-bar/progress-bar.d.ts +3 -0
- package/progress-bar/src/progress-bar-theme.scss +17 -8
- package/scss/theme.scss +36 -17
- package/scss/theming/_configure-theme.scss +2 -0
- package/scss/theming/_index.scss +1 -0
- package/scss/theming/_light-dark.scss +45 -0
- package/sidebar/README.md +20 -21
- package/sidebar/helper/sidebar-mode.d.ts +9 -15
- package/sidebar/public_api.d.ts +10 -11
- package/sidebar/sidebar/sidebar.component.d.ts +22 -7
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +11 -0
- package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +8 -0
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +19 -1
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +36 -15
- package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +17 -0
- package/sidebar/sidebar.d.ts +4 -2
- package/sidebar/sidebar.module.d.ts +1 -2
- package/switch/README.md +3 -2
- package/switch/src/switch-theme.scss +29 -10
- package/switch/switch/switch.component.d.ts +31 -6
- package/switch/switch.d.ts +3 -0
- package/tabs/README.md +33 -3
- package/tabs/src/tabs-theme.scss +31 -13
- package/tabs/tabs/tab/tab.component.d.ts +1 -1
- package/tabs/tabs/tab-label/tab-label.component.d.ts +6 -0
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +8 -0
- package/tabs/tabs/tabs.component.d.ts +21 -4
- package/tabs/tabs.d.ts +8 -2
- package/text-snippet/README.md +19 -1
- package/toast/README.md +21 -151
- package/toast/examples/dismissible-toast/dismissible-toast.component.d.ts +11 -0
- package/toast/examples/public_api.d.ts +2 -1
- package/toast/interfaces/toast-action.d.ts +22 -11
- package/toast/interfaces/toast-action.type.d.ts +10 -0
- package/toast/interfaces/toast.d.ts +11 -5
- package/toast/options/daff-toast-options.d.ts +2 -1
- package/toast/public_api.d.ts +2 -6
- package/toast/service/position.service.d.ts +9 -1
- package/toast/service/toast.service.d.ts +63 -0
- package/toast/src/toast-theme.scss +80 -33
- package/toast/toast/toast-config.d.ts +24 -1
- package/toast/toast/toast-provider.d.ts +16 -0
- package/toast/toast/toast.component.d.ts +20 -1
- package/toast/toast-actions/toast-actions.directive.d.ts +3 -0
- package/toast/toast-message/toast-message.directive.d.ts +3 -0
- package/toast/toast-title/toast-title.directive.d.ts +3 -0
- package/tree/README.md +6 -10
- package/tree/src/tree-theme.scss +39 -13
- package/tree/tree.d.ts +3 -0
- package/youtube-player/index.d.ts +1 -0
- package/youtube-player/public_api.d.ts +3 -0
- package/youtube-player/safe-url.pipe.d.ts +10 -0
- package/youtube-player/youtube-player.component.d.ts +23 -0
- package/youtube-player/youtube-player.d.ts +6 -0
- package/card/card/card.component.d.ts +0 -48
- package/card/src/card-theme-variants/basic-card.scss +0 -6
- package/card/src/card-theme-variants/linkable-card.scss +0 -16
- package/card/src/card-theme-variants/stroked-card.scss +0 -3
- package/card/src/card-theme.scss +0 -170
- package/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
- package/media-gallery/registry/media-gallery.registry.d.ts +0 -34
- package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +0 -1
- package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
- package/scss/theming/prebuilt/internal-theme.scss +0 -13
- package/toast/toast.module.d.ts +0 -19
@@ -4,18 +4,36 @@
|
|
4
4
|
|
5
5
|
@mixin daff-media-gallery-theme($theme) {
|
6
6
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
7
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
8
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
7
9
|
|
8
10
|
.daff-media-gallery {
|
9
11
|
$root: &;
|
10
12
|
|
11
|
-
.
|
12
|
-
|
13
|
+
@include theming.light($type) {
|
14
|
+
.daff-thumbnail {
|
15
|
+
background: theming.daff-color($neutral, 20);
|
16
|
+
|
17
|
+
&.daff-selected {
|
18
|
+
border: 1px solid theming.daff-color($neutral);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@include theming.dark($type) {
|
24
|
+
.daff-thumbnail {
|
25
|
+
background: theming.daff-color($neutral, 70);
|
13
26
|
|
14
|
-
|
15
|
-
|
27
|
+
&.daff-selected {
|
28
|
+
border: 1px solid theming.daff-color($neutral, 30);
|
29
|
+
}
|
16
30
|
}
|
17
31
|
}
|
18
32
|
|
33
|
+
.daff-thumbnail {
|
34
|
+
border: 1px solid transparent;
|
35
|
+
}
|
36
|
+
|
19
37
|
&.daff-skeleton {
|
20
38
|
.daff-thumbnail {
|
21
39
|
&.daff-selected {
|
@@ -23,5 +41,13 @@
|
|
23
41
|
}
|
24
42
|
}
|
25
43
|
}
|
44
|
+
|
45
|
+
&__video-button {
|
46
|
+
border: solid thin $white;
|
47
|
+
|
48
|
+
&::after {
|
49
|
+
background-color: $white;
|
50
|
+
}
|
51
|
+
}
|
26
52
|
}
|
27
53
|
}
|
@@ -1,35 +1,58 @@
|
|
1
|
-
import {
|
2
|
-
import { DaffSelectableDirective } from '@daffodil/design';
|
3
|
-
import { DaffThumbnailRegistration } from './thumbnail-registration.interface';
|
1
|
+
import { TemplateRef, OnInit } from '@angular/core';
|
4
2
|
import { DaffMediaGalleryRegistration } from '../helpers/media-gallery-registration.interface';
|
5
|
-
import { DaffMediaGalleryRegistry } from '../registry/media-gallery.registry';
|
6
3
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@daffodil/design";
|
8
4
|
/**
|
9
|
-
*
|
10
|
-
*
|
5
|
+
* DaffThumbnailDirective is a structural directive used to mark elements as thumbnails within the `DaffMediaGalleryComponent`.
|
6
|
+
*
|
7
|
+
* ```html
|
8
|
+
* <ng-template daffThumbnail></ng-template>
|
9
|
+
* ```
|
11
10
|
*/
|
12
|
-
export declare class DaffThumbnailDirective implements OnInit
|
13
|
-
|
14
|
-
|
11
|
+
export declare class DaffThumbnailDirective implements OnInit {
|
12
|
+
/**
|
13
|
+
* @docs-private
|
14
|
+
*/
|
15
15
|
gallery: DaffMediaGalleryRegistration;
|
16
|
-
private selectedDirective;
|
17
|
-
constructor(component: Type<unknown>, registry: DaffMediaGalleryRegistry, gallery: DaffMediaGalleryRegistration, selectedDirective: DaffSelectableDirective);
|
18
|
-
get selected(): boolean;
|
19
|
-
select(): this;
|
20
|
-
deselect(): this;
|
21
16
|
/**
|
22
|
-
*
|
17
|
+
* @docs-private
|
18
|
+
*/
|
19
|
+
templateRef: TemplateRef<unknown>;
|
20
|
+
private _increment;
|
21
|
+
/**
|
22
|
+
* @docs-private
|
23
|
+
*
|
24
|
+
* The autogenerated unique id for a thumbnail.
|
23
25
|
*/
|
24
|
-
|
26
|
+
get id(): string;
|
25
27
|
/**
|
26
|
-
*
|
28
|
+
* @docs-private
|
27
29
|
*
|
28
|
-
*
|
30
|
+
* The unique id of the selected thumbnail.
|
31
|
+
*/
|
32
|
+
get selectedThumbnailId(): string;
|
33
|
+
/**
|
34
|
+
* The file path to a thumbnail, presumably an image.
|
35
|
+
*/
|
36
|
+
thumbnailSrc: any;
|
37
|
+
/**
|
38
|
+
* Provides an accessible label for a thumbnail.
|
39
|
+
*/
|
40
|
+
label: string;
|
41
|
+
/** Indicates whether the thumbnail represents a video. */
|
42
|
+
isVideo: boolean;
|
43
|
+
constructor(
|
44
|
+
/**
|
45
|
+
* @docs-private
|
46
|
+
*/
|
47
|
+
gallery: DaffMediaGalleryRegistration,
|
48
|
+
/**
|
49
|
+
* @docs-private
|
50
|
+
*/
|
51
|
+
templateRef: TemplateRef<unknown>);
|
52
|
+
/**
|
53
|
+
* @docs-private
|
29
54
|
*/
|
30
|
-
onClick($event: MouseEvent): void;
|
31
55
|
ngOnInit(): void;
|
32
|
-
ngOnDestroy(): void;
|
33
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffThumbnailDirective, never>;
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffThumbnailDirective, "[daffThumbnail]", never, {
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffThumbnailDirective, "[daffThumbnail]", never, { "thumbnailSrc": { "alias": "thumbnailSrc"; "required": false; }; "label": { "alias": "label"; "required": false; }; "isVideo": { "alias": "isVideo"; "required": false; }; }, {}, never, never, true, never>;
|
35
58
|
}
|
package/menu/README.md
CHANGED
@@ -8,13 +8,12 @@ Menus only appear when a user interacts with a menu activator button. They shoul
|
|
8
8
|
<design-land-example-viewer-container example="basic-menu"></design-land-example-viewer-container>
|
9
9
|
|
10
10
|
## Usage
|
11
|
-
|
12
11
|
To use menu, import `DaffMenuModule` into your custom module:
|
13
12
|
|
14
13
|
```ts
|
15
14
|
import { NgModule } from '@angular/core';
|
16
|
-
|
17
15
|
import { DaffMenuModule } from '@daffodil/design/menu';
|
16
|
+
import { CustomComponent } from './custom.component';
|
18
17
|
|
19
18
|
@NgModule({
|
20
19
|
declarations: [
|
package/modal/README.md
CHANGED
@@ -10,10 +10,11 @@ Modal is a dynamically rendered element that floats above the rest of a page's c
|
|
10
10
|
To use modal in a standalone component, import `DAFF_MODAL_COMPONENTS` directly into your custom component:
|
11
11
|
|
12
12
|
```ts
|
13
|
+
import { DAFF_MODAL_COMPONENTS } from '@daffodil/design/modal';
|
14
|
+
|
13
15
|
@Component({
|
14
16
|
selector: 'custom-component',
|
15
17
|
templateUrl: './custom-component.component.html',
|
16
|
-
standalone: true,
|
17
18
|
imports: [
|
18
19
|
DAFF_MODAL_COMPONENTS,
|
19
20
|
],
|
@@ -26,8 +27,8 @@ To use modal in a module, import `DaffModalModule` into your custom module:
|
|
26
27
|
|
27
28
|
```ts
|
28
29
|
import { NgModule } from '@angular/core';
|
29
|
-
|
30
30
|
import { DaffModalModule } from '@daffodil/design/modal';
|
31
|
+
import { CustomComponent } from './custom.component';
|
31
32
|
|
32
33
|
@NgModule({
|
33
34
|
declarations: [
|
package/modal/modal.d.ts
CHANGED
@@ -3,4 +3,7 @@ import { DaffModalCloseDirective } from './modal-close/modal-close.directive';
|
|
3
3
|
import { DaffModalContentComponent } from './modal-content/modal-content.component';
|
4
4
|
import { DaffModalHeaderComponent } from './modal-header/modal-header.component';
|
5
5
|
import { DaffModalTitleDirective } from './modal-title/modal-title.directive';
|
6
|
+
/**
|
7
|
+
* @docs-private
|
8
|
+
*/
|
6
9
|
export declare const DAFF_MODAL_COMPONENTS: readonly [typeof DaffModalHeaderComponent, typeof DaffModalTitleDirective, typeof DaffModalContentComponent, typeof DaffModalActionsComponent, typeof DaffModalCloseDirective];
|
package/navbar/README.md
CHANGED
@@ -13,10 +13,11 @@ The navbar contains minimal layout styles, allowing the content within it to be
|
|
13
13
|
To use navbar in a standalone component, import `DAFF_NAVBAR_COMPONENTS` directly into your custom component:
|
14
14
|
|
15
15
|
```ts
|
16
|
+
import { DAFF_NAVBAR_COMPONENTS } from '@daffodil/design/navbar';
|
17
|
+
|
16
18
|
@Component({
|
17
19
|
selector: 'custom-component',
|
18
20
|
templateUrl: './custom-component.component.html',
|
19
|
-
standalone: true,
|
20
21
|
imports: [
|
21
22
|
DAFF_NAVBAR_COMPONENTS,
|
22
23
|
],
|
@@ -29,8 +30,8 @@ To use navbar in a module, import `DaffNavbarModule` into your custom module:
|
|
29
30
|
|
30
31
|
```ts
|
31
32
|
import { NgModule } from '@angular/core';
|
32
|
-
|
33
33
|
import { DaffNavbarModule } from '@daffodil/design/navbar';
|
34
|
+
import { CustomComponent } from './custom.component';
|
34
35
|
|
35
36
|
@NgModule({
|
36
37
|
declarations: [
|
package/navbar/navbar.d.ts
CHANGED
package/notification/README.md
CHANGED
@@ -13,10 +13,11 @@ Notifications are used to display short messages that provide context in close p
|
|
13
13
|
To use notification in a standalone component, import `DAFF_NOTIFICATION_COMPONENTS` directly into your custom component:
|
14
14
|
|
15
15
|
```ts
|
16
|
+
import { DAFF_NOTIFICATION_COMPONENTS } from '@daffodil/design/notification';
|
17
|
+
|
16
18
|
@Component({
|
17
19
|
selector: 'custom-component',
|
18
20
|
templateUrl: './custom-component.component.html',
|
19
|
-
standalone: true,
|
20
21
|
imports: [
|
21
22
|
DAFF_NOTIFICATION_COMPONENTS,
|
22
23
|
],
|
@@ -29,8 +30,8 @@ To use notification in a module, import `DaffNotificationModule` into your custo
|
|
29
30
|
|
30
31
|
```ts
|
31
32
|
import { NgModule } from '@angular/core';
|
32
|
-
|
33
33
|
import { DaffNotificationModule } from '@daffodil/design/notification';
|
34
|
+
import { CustomComponent } from './custom.component';
|
34
35
|
|
35
36
|
@NgModule({
|
36
37
|
declarations: [
|
@@ -62,7 +63,7 @@ Subtitle provides additional details about the notification that should be limit
|
|
62
63
|
### Actions
|
63
64
|
Buttons can be included in notifications to resolve the notification or navigate them to a page with more information. It can be added by using the `daffNotificationActions` selector.
|
64
65
|
|
65
|
-
<design-land-example-viewer-container example="notification-with-actions"></design-land-example-viewer-container>
|
66
|
+
<design-land-example-viewer-container example="notification-with-actions"></design-land-example-viewer-container>
|
66
67
|
|
67
68
|
## Properties
|
68
69
|
|
@@ -87,4 +88,4 @@ The close button is hidden by default but can be visible by setting the `dismiss
|
|
87
88
|
<design-land-example-viewer-container example="dismissible-notification"></design-land-example-viewer-container>
|
88
89
|
|
89
90
|
## Accessibility
|
90
|
-
Notifications with a `critical` or `warn` status have a `role="alert"` so that it can be announced by assistive technologies. See
|
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"`. Notifications have a `tabindex="0"` so users can discover them while tabbing through a page.
|
@@ -4,4 +4,7 @@ import { DaffNotificationActionsDirective } from './notification-actions/notific
|
|
4
4
|
import { DaffNotificationMessageDirective } from './notification-message/notification-message.directive';
|
5
5
|
import { DaffNotificationSubtitleDirective } from './notification-subtitle/notification-subtitle.directive';
|
6
6
|
import { DaffNotificationTitleDirective } from './notification-title/notification-title.directive';
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*/
|
7
10
|
export declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof DaffPrefixSuffixModule];
|
@@ -13,41 +13,80 @@
|
|
13
13
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
14
|
$base: core.daff-map-get($theme, 'core', 'base');
|
15
15
|
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
16
|
-
$white: core.daff-map-get($theme, 'core', 'white');
|
17
16
|
$black: core.daff-map-get($theme, 'core', 'black');
|
17
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
18
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
18
19
|
|
19
20
|
.daff-notification {
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
@include theming.light($type) {
|
22
|
+
background: theming.daff-color($neutral, 10);
|
23
|
+
border: 1px solid theming.daff-color($neutral, 20);
|
24
|
+
color: $black;
|
23
25
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
26
|
+
&.daff-success {
|
27
|
+
background: theming.daff-color($success, 10);
|
28
|
+
border: 1px solid theming.daff-color($success, 20);
|
29
|
+
color: theming.daff-text-contrast(theming.daff-color($success, 10));
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
+
.daff-prefix {
|
32
|
+
color: theming.daff-color($success, 80);
|
33
|
+
}
|
31
34
|
}
|
32
|
-
}
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
&.daff-warn {
|
37
|
+
background: theming.daff-color($warn, 10);
|
38
|
+
border: 1px solid theming.daff-color($warn, 20);
|
39
|
+
color: theming.daff-text-contrast(theming.daff-color($warn, 10));
|
38
40
|
|
39
|
-
|
40
|
-
|
41
|
+
.daff-prefix {
|
42
|
+
color: theming.daff-color($warn, 80);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&.daff-critical {
|
47
|
+
background: theming.daff-color($critical, 10);
|
48
|
+
border: 1px solid theming.daff-color($critical, 20);
|
49
|
+
color: theming.daff-text-contrast(theming.daff-color($critical, 10));
|
50
|
+
|
51
|
+
.daff-prefix {
|
52
|
+
color: theming.daff-color($critical, 80);
|
53
|
+
}
|
41
54
|
}
|
42
55
|
}
|
43
56
|
|
44
|
-
|
45
|
-
background: theming.daff-color($
|
46
|
-
border: 1px solid theming.daff-color($
|
47
|
-
color:
|
57
|
+
@include theming.dark($type) {
|
58
|
+
background: theming.daff-color($neutral, 90);
|
59
|
+
border: 1px solid theming.daff-color($neutral, 80);
|
60
|
+
color: $white;
|
61
|
+
|
62
|
+
&.daff-success {
|
63
|
+
background: theming.daff-color($success, 90);
|
64
|
+
border: 1px solid theming.daff-color($success, 80);
|
65
|
+
color: theming.daff-text-contrast(theming.daff-color($success, 90));
|
66
|
+
|
67
|
+
.daff-prefix {
|
68
|
+
color: theming.daff-color($success, 30);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
&.daff-warn {
|
73
|
+
background: theming.daff-color($warn, 90);
|
74
|
+
border: 1px solid theming.daff-color($warn, 80);
|
75
|
+
color: theming.daff-text-contrast(theming.daff-color($warn, 90));
|
76
|
+
|
77
|
+
.daff-prefix {
|
78
|
+
color: theming.daff-color($warn, 30);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
&.daff-critical {
|
83
|
+
background: theming.daff-color($critical, 90);
|
84
|
+
border: 1px solid theming.daff-color($critical, 80);
|
85
|
+
color: theming.daff-text-contrast(theming.daff-color($critical, 90));
|
48
86
|
|
49
|
-
|
50
|
-
|
87
|
+
.daff-prefix {
|
88
|
+
color: theming.daff-color($critical, 30);
|
89
|
+
}
|
51
90
|
}
|
52
91
|
}
|
53
92
|
}
|
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.83.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.83.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":"^0.5.0","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^7.6.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"},"./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"},"./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"}}
|
package/paginator/README.md
CHANGED
@@ -10,10 +10,11 @@ Paginator is used to break up large amounts of content into multiple pages, enab
|
|
10
10
|
To use paginator in a standalone component, import `DAFF_PAGINATOR_COMPONENTS` directly into your custom component:
|
11
11
|
|
12
12
|
```ts
|
13
|
+
import { DAFF_PAGINATOR_COMPONENTS } from '@daffodil/design/paginator';
|
14
|
+
|
13
15
|
@Component({
|
14
16
|
selector: 'custom-component',
|
15
17
|
templateUrl: './custom-component.component.html',
|
16
|
-
standalone: true,
|
17
18
|
imports: [
|
18
19
|
DAFF_PAGINATOR_COMPONENTS,
|
19
20
|
],
|
@@ -26,8 +27,8 @@ To use paginator in a module, import `DaffPaginatorModule` into your custom modu
|
|
26
27
|
|
27
28
|
```ts
|
28
29
|
import { NgModule } from '@angular/core';
|
29
|
-
|
30
30
|
import { DaffPaginatorModule } from '@daffodil/design/paginator';
|
31
|
+
import { CustomComponent } from './custom.component';
|
31
32
|
|
32
33
|
@NgModule({
|
33
34
|
declarations: [
|
@@ -116,6 +116,9 @@ export declare class DaffPaginatorComponent implements OnChanges {
|
|
116
116
|
* @param pageNumber page number to check.
|
117
117
|
*/
|
118
118
|
_showNumber(pageNumber: number): boolean;
|
119
|
+
/**
|
120
|
+
* @docs-private
|
121
|
+
*/
|
119
122
|
_buildPageQueryParams(page: number): Params;
|
120
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffPaginatorComponent, never>;
|
121
124
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffPaginatorComponent, "daff-paginator", never, { "numberOfPages": { "alias": "numberOfPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "linkMode": { "alias": "linkMode"; "required": false; }; "url": { "alias": "url"; "required": false; }; "queryParam": { "alias": "queryParam"; "required": false; }; }, { "notifyPageChange": "notifyPageChange"; }, never, never, true, never>;
|
package/paginator/paginator.d.ts
CHANGED
package/progress-bar/README.md
CHANGED
@@ -7,10 +7,11 @@ A progress bar provides visual feedback about the duration or progress of a task
|
|
7
7
|
To use progress bar in a standalone component, import `DAFF_PROGRESS_BAR_COMPONENTS` directly into your custom component:
|
8
8
|
|
9
9
|
```ts
|
10
|
+
import { DAFF_PROGRESS_BAR_COMPONENTS } from '@daffodil/design/progress-bar';
|
11
|
+
|
10
12
|
@Component({
|
11
13
|
selector: 'custom-component',
|
12
14
|
templateUrl: './custom-component.component.html',
|
13
|
-
standalone: true,
|
14
15
|
imports: [
|
15
16
|
DAFF_PROGRESS_BAR_COMPONENTS,
|
16
17
|
],
|
@@ -23,8 +24,8 @@ To use progress bar in a module, import `DaffProgressBarModule` into your custom
|
|
23
24
|
|
24
25
|
```ts
|
25
26
|
import { NgModule } from '@angular/core';
|
26
|
-
|
27
27
|
import { DaffProgressBarModule } from '@daffodil/design/progress-bar';
|
28
|
+
import { CustomComponent } from './custom.component';
|
28
29
|
|
29
30
|
@NgModule({
|
30
31
|
declarations: [
|
@@ -56,11 +57,9 @@ Indeterminate progress bars should be used when the loading percentage of a task
|
|
56
57
|
<design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container>
|
57
58
|
|
58
59
|
## Theming
|
59
|
-
|
60
|
-
|
61
|
-
Supported colors: `primary | secondary | tertiary | theme | theme-contrast | white | black`
|
60
|
+
Use the `color` property to change the color of a progress bar. The default color is primary.
|
62
61
|
|
63
|
-
> `theme`, `
|
62
|
+
> `theme`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
|
64
63
|
|
65
64
|
<design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container>
|
66
65
|
|
@@ -4,9 +4,6 @@ import { DaffColorableDirective } from '@daffodil/design';
|
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@daffodil/design";
|
6
6
|
export declare const clamp: (number: number, min: number, max: number) => number;
|
7
|
-
/**
|
8
|
-
* @inheritdoc
|
9
|
-
*/
|
10
7
|
export declare class DaffProgressBarComponent {
|
11
8
|
private _changeDetectorRef;
|
12
9
|
private colorable;
|
@@ -1,3 +1,6 @@
|
|
1
1
|
import { DaffProgressBarLabelDirective } from './progress-bar-label/progress-bar-label.directive';
|
2
2
|
import { DaffProgressBarComponent } from './progress-bar.component';
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
export declare const DAFF_PROGRESS_BAR_COMPONENTS: readonly [typeof DaffProgressBarComponent, typeof DaffProgressBarLabelDirective];
|
@@ -11,33 +11,42 @@
|
|
11
11
|
$white: core.daff-map-get($theme, 'core', 'white');
|
12
12
|
$black: core.daff-map-get($theme, 'core', 'black');
|
13
13
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
14
15
|
|
15
16
|
.daff-progress-bar {
|
16
17
|
$root: '.daff-progress-bar';
|
17
18
|
|
18
19
|
#{$root}__label {
|
19
|
-
color: theming.daff-
|
20
|
+
color: theming.daff-text-contrast($base);
|
20
21
|
}
|
21
22
|
|
22
|
-
|
23
|
-
|
23
|
+
@include theming.light($type) {
|
24
|
+
#{$root}__track {
|
25
|
+
background: theming.daff-color($neutral, 30);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@include theming.dark($type) {
|
30
|
+
#{$root}__track {
|
31
|
+
background: theming.daff-color($neutral, 80);
|
32
|
+
}
|
24
33
|
}
|
25
34
|
|
26
35
|
&.daff-primary {
|
27
36
|
#{$root}__fill {
|
28
|
-
background: theming.daff-
|
37
|
+
background: theming.daff-color($primary);
|
29
38
|
}
|
30
39
|
}
|
31
40
|
|
32
41
|
&.daff-secondary {
|
33
42
|
#{$root}__fill {
|
34
|
-
background: theming.daff-
|
43
|
+
background: theming.daff-color($secondary);
|
35
44
|
}
|
36
45
|
}
|
37
46
|
|
38
47
|
&.daff-tertiary {
|
39
48
|
#{$root}__fill {
|
40
|
-
background: theming.daff-
|
49
|
+
background: theming.daff-color($tertiary);
|
41
50
|
}
|
42
51
|
}
|
43
52
|
|
@@ -53,13 +62,13 @@
|
|
53
62
|
}
|
54
63
|
}
|
55
64
|
|
56
|
-
&.daff-
|
65
|
+
&.daff-light {
|
57
66
|
#{$root}__fill {
|
58
67
|
background: $white;
|
59
68
|
}
|
60
69
|
}
|
61
70
|
|
62
|
-
&.daff-
|
71
|
+
&.daff-dark {
|
63
72
|
#{$root}__fill {
|
64
73
|
background: $black;
|
65
74
|
}
|