@daffodil/design 0.87.1 → 0.88.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/accordion/accordion/accordion-item/accordion-item.component.d.ts +1 -9
- package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +0 -4
- package/article/article/article.component.d.ts +0 -8
- package/article/article-meta/article-meta.directive.d.ts +0 -4
- package/atoms/form/form-field/form-field/form-field.component.d.ts +3 -2
- package/atoms/form/form-field/form-field-control.d.ts +3 -1
- package/atoms/form/native-select/native-select.component.d.ts +11 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +0 -4
- package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +0 -12
- package/button/button/basic/button.component.d.ts +0 -4
- package/button/button/button-base.directive.d.ts +0 -18
- package/button/button/flat/flat.component.d.ts +0 -4
- package/button/button/icon/icon.component.d.ts +0 -4
- package/button/button/stroked/stroked.component.d.ts +0 -4
- package/button/button/underline/underline.component.d.ts +0 -4
- package/button/src/button/button-base.scss +3 -3
- package/callout/README.md +38 -40
- package/callout/callout/callout.component.d.ts +13 -5
- package/callout/callout-body/callout-body.directive.d.ts +9 -4
- package/callout/callout-icon/callout-icon.directive.d.ts +9 -4
- package/callout/callout-subtitle/callout-subtitle.directive.d.ts +8 -4
- package/callout/callout-tagline/callout-tagline.directive.d.ts +8 -4
- package/callout/callout-title/callout-title.directive.d.ts +8 -4
- package/card/README.md +52 -44
- package/card/card/basic/basic.component.d.ts +18 -4
- package/card/card/raised/raised.component.d.ts +3 -4
- package/card/card/stroked/stroked.component.d.ts +18 -4
- package/card/card-actions/card-actions.directive.d.ts +8 -4
- package/card/card-base.directive.d.ts +8 -16
- package/card/card-content/card-content.directive.d.ts +9 -4
- package/card/card-icon/card-icon.directive.d.ts +8 -4
- package/card/card-image/card-image.directive.d.ts +8 -4
- package/card/card-tagline/card-tagline.directive.d.ts +8 -4
- package/card/card-title/card-title.directive.d.ts +8 -4
- package/card/card.d.ts +1 -0
- package/card/examples/elevated-card/elevated-card.component.d.ts +5 -0
- package/card/examples/public_api.d.ts +3 -3
- package/card/helpers/card-orientation.d.ts +17 -0
- package/card/public_api.d.ts +9 -8
- package/card/src/card-base-theme.scss +40 -58
- package/container/container/container.component.d.ts +0 -4
- package/core/public_api.d.ts +1 -0
- package/core/sticky/public_api.d.ts +1 -0
- package/core/sticky/sticky-tracker.directive.d.ts +23 -0
- package/fesm2022/daffodil-design-accordion.mjs +13 -55
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +14 -32
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +15 -38
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +41 -108
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +91 -73
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +17 -32
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +167 -145
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +7 -13
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field-examples.mjs +7 -7
- package/fesm2022/daffodil-design-form-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +18 -1
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +102 -71
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +5 -12
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +6 -6
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +60 -35
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +14 -10
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +111 -98
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +7 -17
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +26 -63
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +63 -130
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +7 -20
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +16 -41
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +112 -116
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +8 -21
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +6 -6
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +74 -115
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +11 -3
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-select-examples.mjs +4 -4
- package/fesm2022/daffodil-design-select-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +50 -117
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +29 -3
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +39 -78
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-sticky-examples.mjs +25 -0
- package/fesm2022/daffodil-design-sticky-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-tabs.mjs +54 -131
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +17 -8
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea-examples.mjs +3 -3
- package/fesm2022/daffodil-design-textarea-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +49 -25
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +42 -128
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +26 -70
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +164 -17
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/README.md +39 -25
- package/hero/examples/basic-hero/basic-hero.component.d.ts +6 -0
- package/hero/examples/public_api.d.ts +1 -0
- package/hero/hero/hero.component.d.ts +21 -4
- package/hero/hero-body/hero-body.directive.d.ts +10 -4
- package/hero/hero-icon/hero-icon.directive.d.ts +10 -4
- package/hero/hero-subtitle/hero-subtitle.directive.d.ts +8 -4
- package/hero/hero-tagline/hero-tagline.directive.d.ts +8 -4
- package/hero/hero-title/hero-title.directive.d.ts +8 -4
- package/image/image/image.component.d.ts +0 -4
- package/input/input.component.d.ts +29 -9
- package/list/README.md +43 -13
- package/list/examples/multiline-list/multiline-list.component.d.ts +1 -0
- package/list/list/list.component.d.ts +12 -24
- package/list/list-item/list-item.component.d.ts +13 -20
- package/list/list-item-title/list-item-title.directive.d.ts +13 -0
- package/list/list.d.ts +8 -2
- package/list/list.module.d.ts +4 -3
- package/list/nav-list/nav-list.component.d.ts +17 -0
- package/list/public_api.d.ts +5 -2
- package/list/src/list-base.scss +40 -0
- package/list/src/list-theme.scss +5 -0
- package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -6
- package/menu/menu/menu.component.d.ts +0 -12
- package/menu/menu-activator/menu-activator.component.d.ts +4 -5
- package/menu/menu-item/menu-item.component.d.ts +0 -10
- package/modal/modal/modal.component.d.ts +12 -33
- package/modal/modal-actions/modal-actions.component.d.ts +0 -4
- package/modal/modal-close/modal-close.directive.d.ts +1 -8
- package/modal/modal-content/modal-content.component.d.ts +0 -4
- package/modal/modal-header/modal-header.component.d.ts +0 -4
- package/modal/modal-title/modal-title.directive.d.ts +0 -11
- package/navbar/navbar/navbar.component.d.ts +0 -8
- package/navbar/src/navbar-theme.scss +2 -1
- package/notification/README.md +39 -24
- package/notification/examples/default-notification/default-notification.component.d.ts +0 -2
- package/notification/examples/public_api.d.ts +1 -5
- package/notification/helpers/notification-orientation.d.ts +17 -0
- package/notification/notification/notification.component.d.ts +39 -23
- package/notification/notification-actions/notification-actions.directive.d.ts +11 -4
- package/notification/notification-message/notification-message.directive.d.ts +9 -4
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -4
- package/notification/notification-title/notification-title.directive.d.ts +8 -4
- package/notification/public_api.d.ts +6 -5
- package/package.json +1 -1
- package/paginator/paginator/paginator.component.d.ts +0 -11
- package/progress-bar/README.md +31 -8
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +9 -5
- package/progress-bar/progress-bar.component.d.ts +39 -35
- package/progress-bar/public_api.d.ts +2 -2
- package/quantity-field/quantity-field.component.d.ts +10 -0
- package/scss/global.scss +0 -1
- package/select/select/select.component.d.ts +13 -25
- package/select/select.d.ts +1 -2
- package/sidebar/README.md +67 -72
- package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.d.ts +0 -1
- package/sidebar/examples/sidebar-sides/sidebar-sides.component.d.ts +11 -0
- package/sidebar/sidebar/sidebar.component.d.ts +0 -9
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +0 -4
- package/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.d.ts +3 -0
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +0 -4
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +0 -17
- package/sticky/examples/basic-sticky/basic-sticky.component.d.ts +5 -0
- package/sticky/examples/index.d.ts +1 -0
- package/sticky/examples/public_api.d.ts +2 -0
- package/tabs/README.md +38 -14
- package/tabs/tabs/tab/tab.component.d.ts +4 -16
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +6 -27
- package/tabs/tabs/tab-label/tab-label.component.d.ts +5 -2
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +7 -24
- package/tabs/tabs/tabs.component.d.ts +5 -11
- package/text-snippet/README.md +31 -3
- package/text-snippet/text-snippet.component.d.ts +17 -2
- package/textarea/textarea.component.d.ts +25 -5
- package/toast/README.md +47 -21
- package/toast/interfaces/toast-action.d.ts +4 -5
- package/toast/interfaces/toast-options.d.ts +3 -1
- package/toast/interfaces/toast.d.ts +22 -7
- package/toast/service/toast.service.d.ts +3 -3
- package/toast/toast/toast-config.d.ts +7 -3
- package/toast/toast/toast-template.component.d.ts +1 -1
- package/toast/toast/toast.component.d.ts +0 -2
- package/toast/toast-actions/toast-actions.directive.d.ts +0 -4
- package/toast/toast-message/toast-message.directive.d.ts +0 -4
- package/toast/toast-title/toast-title.directive.d.ts +0 -4
- package/tree/tree/tree.component.d.ts +0 -6
- package/tree/tree-item/tree-item.directive.d.ts +7 -35
- package/accordion/accordion/animation/accordion-animation-state.d.ts +0 -1
- package/accordion/accordion/animation/accordion-animation.d.ts +0 -4
- package/card/examples/raised-card/raised-card.component.d.ts +0 -11
- package/notification/examples/notification-with-actions/notification-with-actions.component.d.ts +0 -8
- package/progress-bar/animation/progress-bar-animation.d.ts +0 -4
- package/select/animation/select-animation-state.d.ts +0 -7
- package/select/animation/select-animation.d.ts +0 -4
- package/select/animation/state.enum.d.ts +0 -4
@@ -15,10 +15,6 @@ import * as i1 from "@daffodil/design";
|
|
15
15
|
*/
|
16
16
|
export declare class DaffAccordionItemComponent implements OnInit, DaffOpenable {
|
17
17
|
private openDirective;
|
18
|
-
/**
|
19
|
-
* @docs-private
|
20
|
-
*/
|
21
|
-
class: boolean;
|
22
18
|
/**
|
23
19
|
* The unique id of an accordion item. Defaults to an autogenerated value.
|
24
20
|
*/
|
@@ -35,10 +31,6 @@ export declare class DaffAccordionItemComponent implements OnInit, DaffOpenable
|
|
35
31
|
* Disables an accordion item and prevents it from being expanded or collapsed.
|
36
32
|
*/
|
37
33
|
disabled: boolean;
|
38
|
-
/**
|
39
|
-
* @docs-private
|
40
|
-
*/
|
41
|
-
_animationState: string;
|
42
34
|
constructor(openDirective: DaffOpenableDirective);
|
43
35
|
/**
|
44
36
|
* @docs-private
|
@@ -61,5 +53,5 @@ export declare class DaffAccordionItemComponent implements OnInit, DaffOpenable
|
|
61
53
|
*/
|
62
54
|
toggle(): void;
|
63
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAccordionItemComponent, never>;
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffAccordionItemComponent, "daff-accordion-item", never, { "itemId": { "alias": "itemId"; "required": false; }; "contentId": { "alias": "contentId"; "required": false; }; "initiallyExpanded": { "alias": "initiallyExpanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["[daffAccordionItemTitle]", "*"], true, [{ directive: typeof i1.DaffOpenableDirective; inputs: {
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffAccordionItemComponent, "daff-accordion-item", never, { "itemId": { "alias": "itemId"; "required": false; }; "contentId": { "alias": "contentId"; "required": false; }; "initiallyExpanded": { "alias": "initiallyExpanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["[daffAccordionItemTitle]", "*"], true, [{ directive: typeof i1.DaffOpenableDirective; inputs: {}; outputs: { "toggled": "toggled"; }; }]>;
|
65
57
|
}
|
@@ -8,10 +8,6 @@ import * as i0 from "@angular/core";
|
|
8
8
|
* ```
|
9
9
|
*/
|
10
10
|
export declare class DaffAccordionItemTitleDirective {
|
11
|
-
/**
|
12
|
-
* @docs-private
|
13
|
-
*/
|
14
|
-
class: boolean;
|
15
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAccordionItemTitleDirective, never>;
|
16
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffAccordionItemTitleDirective, "[daffAccordionItemTitle]", never, {}, {}, never, never, true, never>;
|
17
13
|
}
|
@@ -3,14 +3,6 @@ import * as i0 from "@angular/core";
|
|
3
3
|
* A component for creating articles within your page.
|
4
4
|
*/
|
5
5
|
export declare class DaffArticleComponent {
|
6
|
-
/**
|
7
|
-
* @docs-private
|
8
|
-
*/
|
9
|
-
class: boolean;
|
10
|
-
/**
|
11
|
-
* @docs-private
|
12
|
-
*/
|
13
|
-
role: string;
|
14
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffArticleComponent, never>;
|
15
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffArticleComponent, "daff-article", never, {}, {}, never, ["*"], true, never>;
|
16
8
|
}
|
@@ -1,9 +1,5 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffArticleMetaDirective {
|
3
|
-
/**
|
4
|
-
* @docs-private
|
5
|
-
*/
|
6
|
-
class: boolean;
|
7
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffArticleMetaDirective, never>;
|
8
4
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffArticleMetaDirective, "[daffArticleMeta]", never, {}, {}, never, never, true, never>;
|
9
5
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AfterContentInit, AfterContentChecked, ChangeDetectorRef, AfterViewInit } from '@angular/core';
|
1
|
+
import { AfterContentInit, AfterContentChecked, ChangeDetectorRef, AfterViewInit, ElementRef } from '@angular/core';
|
2
2
|
import { DaffPrefixDirective } from '../../../../core/prefix-suffix/prefix.directive';
|
3
3
|
import { DaffSuffixDirective } from '../../../../core/prefix-suffix/suffix.directive';
|
4
4
|
import { DaffFormLabelDirective } from '../../form-label/form-label.directive';
|
@@ -10,11 +10,12 @@ import * as i1 from "../../../../core/skeletonable/skeletonable.directive";
|
|
10
10
|
export type DaffFormFieldApperanace = 'fluid' | 'fixed';
|
11
11
|
export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked, AfterViewInit {
|
12
12
|
private cd;
|
13
|
+
elementRef: ElementRef;
|
13
14
|
/** @docs-private */
|
14
15
|
class: boolean;
|
15
16
|
/** @docs-private */
|
16
17
|
get isSelectField(): boolean;
|
17
|
-
constructor(cd: ChangeDetectorRef);
|
18
|
+
constructor(cd: ChangeDetectorRef, elementRef: ElementRef);
|
18
19
|
/** @docs-private */
|
19
20
|
_prefix: DaffPrefixDirective;
|
20
21
|
/**
|
@@ -17,6 +17,8 @@ export declare abstract class DaffFormFieldControl<T> {
|
|
17
17
|
abstract readonly controlType?: any;
|
18
18
|
readonly supportsAutoLabelling?: boolean;
|
19
19
|
abstract readonly focused: boolean;
|
20
|
+
abstract readonly required: boolean;
|
21
|
+
abstract readonly disabled: boolean;
|
20
22
|
readonly id?: string;
|
21
23
|
get raised(): boolean;
|
22
24
|
abstract focus(event?: Event): void;
|
@@ -31,5 +33,5 @@ export declare abstract class DaffFormFieldControl<T> {
|
|
31
33
|
valid: boolean;
|
32
34
|
}>;
|
33
35
|
stateChanges: Observable<DaffFormFieldState>;
|
34
|
-
emitState(): void;
|
36
|
+
emitState(deferred?: boolean): void;
|
35
37
|
}
|
@@ -21,6 +21,17 @@ export declare class DaffNativeSelectComponent extends DaffFormFieldControl<stri
|
|
21
21
|
*/
|
22
22
|
formSubmitted: boolean;
|
23
23
|
focused: boolean;
|
24
|
+
/**
|
25
|
+
* @docs-private
|
26
|
+
*
|
27
|
+
* TODO: Update functionality to match other control during refactor.
|
28
|
+
*/
|
29
|
+
disabled: boolean;
|
30
|
+
/**
|
31
|
+
* @docs-private
|
32
|
+
* TODO: Update functionality to match other control during refactor.
|
33
|
+
*/
|
34
|
+
required: boolean;
|
24
35
|
/**
|
25
36
|
* @docs-private
|
26
37
|
*/
|
@@ -20,10 +20,6 @@ import * as i1 from "@daffodil/design";
|
|
20
20
|
export declare class DaffBreadcrumbComponent implements AfterContentInit {
|
21
21
|
private destroyRef;
|
22
22
|
constructor(destroyRef: DestroyRef);
|
23
|
-
/**
|
24
|
-
* @docs-private
|
25
|
-
*/
|
26
|
-
class: boolean;
|
27
23
|
/**
|
28
24
|
* @docs-private
|
29
25
|
*/
|
@@ -12,18 +12,6 @@ import * as i0 from "@angular/core";
|
|
12
12
|
*/
|
13
13
|
export declare class DaffBreadcrumbItemDirective {
|
14
14
|
private cdRef;
|
15
|
-
/**
|
16
|
-
* @docs-private
|
17
|
-
*/
|
18
|
-
class: boolean;
|
19
|
-
/**
|
20
|
-
* @docs-private
|
21
|
-
*/
|
22
|
-
get activeClass(): boolean;
|
23
|
-
/**
|
24
|
-
* @docs-private
|
25
|
-
*/
|
26
|
-
get ariaCurrent(): string;
|
27
15
|
private _active;
|
28
16
|
constructor(cdRef: ChangeDetectorRef);
|
29
17
|
/** Called by the DaffBreadcrumbComponent to set the active state */
|
@@ -19,29 +19,11 @@ export declare class DaffButtonBaseDirective {
|
|
19
19
|
*/
|
20
20
|
tabindex: number;
|
21
21
|
private _disabled;
|
22
|
-
/**
|
23
|
-
* @docs-private
|
24
|
-
*/
|
25
|
-
get disabledClass(): any;
|
26
22
|
/**
|
27
23
|
* The disabled state of the button.
|
28
24
|
*/
|
29
25
|
get disabled(): any;
|
30
26
|
set disabled(value: any);
|
31
|
-
/**
|
32
|
-
* @docs-private
|
33
|
-
*/
|
34
|
-
get disabledAttribute(): boolean;
|
35
|
-
/**
|
36
|
-
* @docs-private
|
37
|
-
*/
|
38
|
-
get ariaDisabled(): boolean;
|
39
|
-
/**
|
40
|
-
* @docs-private
|
41
|
-
*
|
42
|
-
* Set the `tabindex` to -1 if the button is disabled.
|
43
|
-
*/
|
44
|
-
get tabIndexAttribute(): number;
|
45
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
46
28
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
47
29
|
}
|
@@ -19,10 +19,6 @@ import * as i0 from "@angular/core";
|
|
19
19
|
* ```
|
20
20
|
*/
|
21
21
|
export declare class DaffFlatButtonComponent extends DaffButtonBaseDirective {
|
22
|
-
/**
|
23
|
-
* @docs-private
|
24
|
-
*/
|
25
|
-
class: boolean;
|
26
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFlatButtonComponent, never>;
|
27
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFlatButtonComponent, "button[daff-flat-button],a[daff-flat-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
24
|
}
|
@@ -15,10 +15,6 @@ import * as i0 from "@angular/core";
|
|
15
15
|
* ```
|
16
16
|
*/
|
17
17
|
export declare class DaffIconButtonComponent extends DaffButtonBaseDirective {
|
18
|
-
/**
|
19
|
-
* @docs-private
|
20
|
-
*/
|
21
|
-
class: boolean;
|
22
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffIconButtonComponent, never>;
|
23
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffIconButtonComponent, "button[daff-icon-button],a[daff-icon-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
24
20
|
}
|
@@ -19,10 +19,6 @@ import * as i0 from "@angular/core";
|
|
19
19
|
* ```
|
20
20
|
*/
|
21
21
|
export declare class DaffUnderlineButtonComponent extends DaffButtonBaseDirective {
|
22
|
-
/**
|
23
|
-
* @docs-private
|
24
|
-
*/
|
25
|
-
class: boolean;
|
26
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffUnderlineButtonComponent, never>;
|
27
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffUnderlineButtonComponent, "button[daff-underline-button],a[daff-underline-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
24
|
}
|
@@ -76,21 +76,21 @@
|
|
76
76
|
|
77
77
|
@mixin daff-button-sizes {
|
78
78
|
&.daff-sm {
|
79
|
-
font-size: t.$
|
79
|
+
font-size: t.$font-size-sm;
|
80
80
|
line-height: 2rem;
|
81
81
|
height: 2rem;
|
82
82
|
padding: 0 1rem;
|
83
83
|
}
|
84
84
|
|
85
85
|
&.daff-md {
|
86
|
-
font-size: t.$
|
86
|
+
font-size: t.$font-size-base;
|
87
87
|
line-height: 3rem;
|
88
88
|
height: 3rem;
|
89
89
|
padding: 0 1.5rem;
|
90
90
|
}
|
91
91
|
|
92
92
|
&.daff-lg {
|
93
|
-
font-size: t.$
|
93
|
+
font-size: t.$font-size-md;
|
94
94
|
line-height: 3.5rem;
|
95
95
|
height: 3.5rem;
|
96
96
|
padding: 0 1.5rem;
|
package/callout/README.md
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
# Callout
|
2
|
-
Callout is a versatile
|
2
|
+
Callout is a versatile, pre-styled container used to highlight key pieces of content in a visually distinct way.
|
3
3
|
|
4
4
|
## Overview
|
5
|
-
Callouts can be used multiple times on a page
|
5
|
+
Callouts can be used multiple times on a page and are flexible enough to support various content arrangements. They are ideal for:
|
6
|
+
|
7
|
+
- Highlighting a set of products alongside a product list.
|
8
|
+
- Displaying feature overviews or promotional content.
|
9
|
+
- Structuring elements such as accordions or other grouped content.
|
10
|
+
|
11
|
+
Callouts include built-in containers for icons, taglines, titles, subtitles, and custom body content, making it both powerful and easy to extend.
|
6
12
|
|
7
13
|
## Usage
|
8
14
|
|
9
15
|
### Within a standalone component
|
10
|
-
To use callout
|
16
|
+
To use the callout components, import `DAFF_CALLOUT_COMPONENTS` into your custom component:
|
11
17
|
|
12
18
|
```ts
|
13
19
|
import { DAFF_CALLOUT_COMPONENTS } from '@daffodil/design/callout';
|
@@ -46,52 +52,44 @@ export class CustomComponentModule { }
|
|
46
52
|
|
47
53
|
> This method is deprecated. It's recommended to update all custom components to standalone.
|
48
54
|
|
55
|
+
## Anatomy
|
56
|
+
A callout is composed of the following containers, projected in the order listed:
|
57
|
+
|
58
|
+
- **`<daff-callout>`**: Parent container that supports content projection and includes structural styling.
|
59
|
+
- **`[daffCalloutIcon]`**: Displays a visual or branding element. Avoid using this for interactive or actionable icons.
|
60
|
+
- **`[daffCalloutTagline]`**: Short, memorable phrase that complements the title and provides quick context.
|
61
|
+
- **`[daffCalloutTitle]`**: Defines the primary title, applied to a heading tag (`<h*>`).
|
62
|
+
- **`[daffCalloutSubtitle]`**: Secondary descriptive text displayed beneath the title.
|
63
|
+
- **`[daffCalloutBody]`**: Flexible wrapper for custom or additional components. It's unstyled except for spacing and should only be used once per callout.
|
64
|
+
|
65
|
+
```html
|
66
|
+
<daff-callout>
|
67
|
+
<div daffCalloutIcon></div>
|
68
|
+
<div daffCalloutTagline></div>
|
69
|
+
<h2 daffCalloutTitle></h2>
|
70
|
+
<p daffCalloutSubtitle></p>
|
71
|
+
<div daffCalloutBody></div>
|
72
|
+
</daff-callout>
|
73
|
+
```
|
49
74
|
|
50
|
-
##
|
51
|
-
|
52
|
-
|
53
|
-
### Icon
|
54
|
-
`[daffCalloutIcon]` is intended for visual or branding reinforcement. It should not be used for actionable icons.
|
55
|
-
|
56
|
-
### Tagline
|
57
|
-
Callout taglines are used by adding `[daffCalloutTagline]` to a `<p>` tag. It's intended to supplement the title by providing a short, memorable description.
|
58
|
-
|
59
|
-
### Title
|
60
|
-
Callout titles are used by adding `[daffCalloutTitle]` to a `<h*>` tag.
|
61
|
-
|
62
|
-
### Subtitle
|
63
|
-
Callout subtitles are used by adding `[daffCalloutSubtitle]` to a `<p>` tag.
|
64
|
-
|
65
|
-
### Body
|
66
|
-
`[daffCalloutBody]` is a wrapper container that can be used to place all additional components and content within a `<daff-callout>` and should only be used once. The body container allows for a ton of control and customization because it's not affected by any of callout's properties and only serves as a wrapping and spacing container.
|
67
|
-
|
68
|
-
## Theming
|
69
|
-
The default background color of a callout is light gray, but it can be updated to one of the supported colors by using the `color` property.
|
70
|
-
|
71
|
-
Supported colors: `primary | secondary | tertiary | black | white | theme | theme-contrast`
|
75
|
+
## Colors
|
76
|
+
Use the `color` property to change the background of a callout.
|
72
77
|
|
73
78
|
<design-land-example-viewer-container example="callout-theming"></design-land-example-viewer-container>
|
74
79
|
|
75
|
-
## Text
|
76
|
-
|
77
|
-
|
78
|
-
Supported alignments: `left | center | right`
|
80
|
+
## Text alignment
|
81
|
+
Control callout-specific text alignment with the `textAlignment` property. It defaults to `left` and **does not** affect `[daffCalloutBody]` content or nested elements.
|
79
82
|
|
80
83
|
<design-land-example-viewer-container example="callout-text-alignment"></design-land-example-viewer-container>
|
81
84
|
|
82
|
-
## Compact
|
83
|
-
|
85
|
+
## Compact
|
86
|
+
Use the `compact` property on callout to reduce padding and suit UIs with tighter spacing requirements.
|
84
87
|
|
85
88
|
<design-land-example-viewer-container example="compact-callout"></design-land-example-viewer-container>
|
86
89
|
|
87
|
-
##
|
88
|
-
Callouts are flexible enough to support grids within them.
|
89
|
-
|
90
|
-
### Callout with Two Columns
|
91
|
-
<design-land-example-viewer-container example="callout-with-grid"></design-land-example-viewer-container>
|
90
|
+
## Examples
|
92
91
|
|
93
|
-
|
94
|
-
|
92
|
+
### Callout with two columns
|
93
|
+
Callouts are flexible enough to support custom grid layouts for more complex arrangements:
|
95
94
|
|
96
|
-
|
97
|
-
The `size` property is deprecated and replaced by the [`compact`](#compact-callouts) property.
|
95
|
+
<design-land-example-viewer-container example="callout-with-grid"></design-land-example-viewer-container>
|
@@ -2,15 +2,23 @@ import { DaffTextAlignableDirective } from '@daffodil/design';
|
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
import * as i1 from "@daffodil/design";
|
4
4
|
/**
|
5
|
-
*
|
5
|
+
* Callout is a versatile, pre-styled container used to highlight
|
6
|
+
* key pieces of content in a visually distinct way.
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* ```html
|
10
|
+
* <daff-callout>
|
11
|
+
* <div daffCalloutIcon></div>
|
12
|
+
* <div daffCalloutTagline></div>
|
13
|
+
* <h2 daffCalloutTitle></h2>
|
14
|
+
* <p daffCalloutSubtitle></p>
|
15
|
+
* <div daffCalloutBody></div>
|
16
|
+
* </daff-callout>
|
17
|
+
* ```
|
6
18
|
*/
|
7
19
|
export declare class DaffCalloutComponent {
|
8
20
|
private textAlignable;
|
9
21
|
constructor(textAlignable: DaffTextAlignableDirective);
|
10
|
-
/**
|
11
|
-
* @docs-private
|
12
|
-
*/
|
13
|
-
class: boolean;
|
14
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutComponent, never>;
|
15
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffCalloutComponent, "daff-callout", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffManageContainerLayoutDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffTextAlignableDirective; inputs: { "textAlignment": "textAlignment"; }; outputs: {}; }, { directive: typeof i1.DaffCompactableDirective; inputs: { "compact": "compact"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
16
24
|
}
|
@@ -1,9 +1,14 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* A flexible wrapper for custom or additional components within the callout.
|
4
|
+
* It should only be used once per callout.
|
5
|
+
*
|
6
|
+
* @example
|
7
|
+
* ```html
|
8
|
+
* <div daffCalloutBody></div>
|
9
|
+
* ```
|
10
|
+
*/
|
2
11
|
export declare class DaffCalloutBodyDirective {
|
3
|
-
/**
|
4
|
-
* @docs-private
|
5
|
-
*/
|
6
|
-
class: boolean;
|
7
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutBodyDirective, never>;
|
8
13
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCalloutBodyDirective, "[daffCalloutBody]", never, {}, {}, never, never, true, never>;
|
9
14
|
}
|
@@ -1,9 +1,14 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Used to display a visual or branding element.
|
4
|
+
* Avoid using this for interactive or actionable icons.
|
5
|
+
*
|
6
|
+
* @example
|
7
|
+
* ```html
|
8
|
+
* <div daffCalloutIcon></div>
|
9
|
+
* ```
|
10
|
+
*/
|
2
11
|
export declare class DaffCalloutIconDirective {
|
3
|
-
/**
|
4
|
-
* @docs-private
|
5
|
-
*/
|
6
|
-
class: boolean;
|
7
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutIconDirective, never>;
|
8
13
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCalloutIconDirective, "[daffCalloutIcon]", never, {}, {}, never, never, true, never>;
|
9
14
|
}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Secondary text that provides additional descriptive information beneath the title.
|
4
|
+
*
|
5
|
+
* @example
|
6
|
+
* ```html
|
7
|
+
* <p daffCalloutSubtitle></p>
|
8
|
+
* ```
|
9
|
+
*/
|
2
10
|
export declare class DaffCalloutSubtitleDirective {
|
3
|
-
/**
|
4
|
-
* @docs-private
|
5
|
-
*/
|
6
|
-
class: boolean;
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutSubtitleDirective, never>;
|
8
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCalloutSubtitleDirective, "[daffCalloutSubtitle]", never, {}, {}, never, never, true, never>;
|
9
13
|
}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* A short, memorable phrase that complements the title and provides quick context.
|
4
|
+
*
|
5
|
+
* @example
|
6
|
+
* ```html
|
7
|
+
* <div daffCalloutTagline></div>
|
8
|
+
* ```
|
9
|
+
*/
|
2
10
|
export declare class DaffCalloutTaglineDirective {
|
3
|
-
/**
|
4
|
-
* @docs-private
|
5
|
-
*/
|
6
|
-
class: boolean;
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutTaglineDirective, never>;
|
8
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCalloutTaglineDirective, "[daffCalloutTagline]", never, {}, {}, never, never, true, never>;
|
9
13
|
}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Applied to a heading tag (`<h*>`) to define the primary title of the callout.
|
4
|
+
*
|
5
|
+
* @example
|
6
|
+
* ```html
|
7
|
+
* <h2 daffCalloutTitle></h2>
|
8
|
+
* ```
|
9
|
+
*/
|
2
10
|
export declare class DaffCalloutTitleDirective {
|
3
|
-
/**
|
4
|
-
* @docs-private
|
5
|
-
*/
|
6
|
-
class: boolean;
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutTitleDirective, never>;
|
8
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCalloutTitleDirective, "[daffCalloutTitle]", never, {}, {}, never, never, true, never>;
|
9
13
|
}
|
package/card/README.md
CHANGED
@@ -1,20 +1,24 @@
|
|
1
1
|
# Card
|
2
|
-
Cards are
|
2
|
+
Cards are flexible content containers used to group related information and actions about a single subject.
|
3
3
|
|
4
4
|
## Overview
|
5
|
-
|
6
|
-
|
7
|
-
## Basic Card
|
8
|
-
The example below is a default, filled card that includes all of a card's pre-styled elements and a fixed width. Cards naturally do not have a fixed width, so they'll be 100% wide by default. The width is changeable with custom CSS
|
5
|
+
Daffodil provides two card styles: **default (filled)** and **stroked**. Cards can include images, text, lists, actions, or even other components.
|
9
6
|
|
7
|
+
**Default (filled) card**
|
10
8
|
<design-land-example-viewer-container example="basic-card"></design-land-example-viewer-container>
|
11
9
|
|
10
|
+
**Stroked card**
|
11
|
+
<design-land-example-viewer-container example="stroked-card"></design-land-example-viewer-container>
|
12
|
+
|
12
13
|
## Usage
|
13
14
|
|
14
15
|
### Within a standalone component
|
15
|
-
|
16
|
+
Import the card style(s) you need into a standalone component:
|
16
17
|
|
17
|
-
|
18
|
+
Available imports:
|
19
|
+
- Default (filled) cards: `DAFF_CARD_COMPONENTS`
|
20
|
+
- Stroked cards: `DAFF_STROKED_CARD_COMPONENTS`
|
21
|
+
- All card styles: `DAFF_ALL_CARD_COMPONENTS`
|
18
22
|
|
19
23
|
```ts
|
20
24
|
import { DAFF_CARD_COMPONENTS } from '@daffodil/design/card';
|
@@ -53,52 +57,56 @@ export class CustomComponentModule { }
|
|
53
57
|
|
54
58
|
> This method is deprecated. It's recommended to update all custom components to standalone.
|
55
59
|
|
56
|
-
##
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
## Anatomy
|
61
|
+
Cards include minimally styled content containers for common patterns. Each container is optional but is projected in the order listed below:
|
62
|
+
|
63
|
+
- **`[daffCardImage]`**: Displays an image.
|
64
|
+
- **`[daffCardIcon]`**: Displays a visual or branding element. Avoid using this for interactive or actionable icons.
|
65
|
+
- **`[daffCardTagline]`**: Short, memorable phrase that complements the title and provides quick context.
|
66
|
+
- **`[daffCardTitle]`**: The primary heading of the card.
|
67
|
+
- **`[daffCardContent]`**: A flexible wrapper for text, components, or custom layouts. It's unstyled except for spacing and should only be used once per card.
|
68
|
+
- **`[daffCardActions]`**: A container for buttons or calls-to-action, always positioned to the bottom of the card.
|
69
|
+
|
70
|
+
```html
|
71
|
+
<daff-card>
|
72
|
+
<img daffCardImage src="/" alt="image caption" >
|
73
|
+
<div daffCardIcon></div>
|
74
|
+
<div daffCardTagline>Card tagline</div>
|
75
|
+
<h4 daffCardTitle>Card title</h4>
|
76
|
+
<div daffCardContent>Detailed information about the subject of the card.</div>
|
77
|
+
<div daffCardActions>
|
78
|
+
<button>Card link</button>
|
79
|
+
<button>Another card link</button>
|
80
|
+
</div>
|
81
|
+
</daff-card>
|
82
|
+
```
|
64
83
|
|
65
|
-
|
66
|
-
|
84
|
+
## Interactive card
|
85
|
+
An interactive card turns the entire card into a clickable area that navigates to another page or view. This is useful for cards representing products, articles, or other resources where selecting the card should take the user to another page or section.
|
67
86
|
|
68
|
-
|
69
|
-
Title can be added to a card by using the `daffCardTitle` attribute.
|
87
|
+
To create an interactive card, apply the component selector to an `<a>` element. All card styles support interactive behavior.
|
70
88
|
|
71
|
-
|
72
|
-
Content can be added to a card by using the `daffCardContent` attribute and should only be used once. It's a wrapper container that can be used to place all additional components and text content within a card. The content container allows for a ton of control and customization because it's not affected by any of card's properties and only serves as a wrapping and spacing container.
|
89
|
+
<design-land-example-viewer-container example="linkable-card"></design-land-example-viewer-container>
|
73
90
|
|
74
|
-
|
75
|
-
|
91
|
+
## Elevation
|
92
|
+
Use the `elevated` property to add shadows to cards.
|
76
93
|
|
77
|
-
|
94
|
+
<design-land-example-viewer-container example="elevated-card"></design-land-example-viewer-container>
|
78
95
|
|
79
|
-
|
80
|
-
|
96
|
+
## Orientation
|
97
|
+
Use the `orientation` property to stack card content either `vertical` (default) or `horizontal`. Horizontal cards automatically switch to vertical on smaller screens.
|
81
98
|
|
82
99
|
<design-land-example-viewer-container example="card-orientation"></design-land-example-viewer-container>
|
83
100
|
|
84
|
-
|
85
|
-
Cards
|
86
|
-
|
87
|
-
<design-land-example-viewer-container example="linkable-card"></design-land-example-viewer-container>
|
88
|
-
|
89
|
-
## Raised Card
|
90
|
-
A raised card adds elevation to the default card.
|
91
|
-
|
92
|
-
<design-land-example-viewer-container example="raised-card"></design-land-example-viewer-container>
|
93
|
-
|
94
|
-
## Stroked Card
|
95
|
-
A stroked card adds a border to the default card.
|
101
|
+
### Colors
|
102
|
+
Cards default to a light gray background. Use the `color` property to change a card's color.
|
96
103
|
|
97
|
-
<design-land-example-viewer-container example="
|
98
|
-
|
99
|
-
### Theming
|
100
|
-
Cards will use the base color of your application to display the default background and/or border color. A card's colors can be defined by using the `color` property.
|
104
|
+
<design-land-example-viewer-container example="card-theming"></design-land-example-viewer-container>
|
101
105
|
|
102
|
-
|
106
|
+
## Deprecations
|
107
|
+
The raised card style has been deprecated in favor of the `elevated` property. Replace `<daff-raised-card>` with `<daff-card [elevated]="true">`
|
103
108
|
|
104
|
-
|
109
|
+
```html
|
110
|
+
<daff-card [elevated]="true">
|
111
|
+
</daff-card>
|
112
|
+
```
|