@daffodil/design 0.87.2 → 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.
Files changed (215) hide show
  1. package/accordion/accordion/accordion-item/accordion-item.component.d.ts +1 -9
  2. package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +0 -4
  3. package/article/article/article.component.d.ts +0 -8
  4. package/article/article-meta/article-meta.directive.d.ts +0 -4
  5. package/atoms/form/form-field/form-field/form-field.component.d.ts +3 -2
  6. package/atoms/form/form-field/form-field-control.d.ts +3 -1
  7. package/atoms/form/native-select/native-select.component.d.ts +11 -0
  8. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +0 -4
  9. package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +0 -12
  10. package/button/button/basic/button.component.d.ts +0 -4
  11. package/button/button/button-base.directive.d.ts +0 -18
  12. package/button/button/flat/flat.component.d.ts +0 -4
  13. package/button/button/icon/icon.component.d.ts +0 -4
  14. package/button/button/stroked/stroked.component.d.ts +0 -4
  15. package/button/button/underline/underline.component.d.ts +0 -4
  16. package/button/src/button/button-base.scss +3 -3
  17. package/callout/README.md +38 -40
  18. package/callout/callout/callout.component.d.ts +13 -5
  19. package/callout/callout-body/callout-body.directive.d.ts +9 -4
  20. package/callout/callout-icon/callout-icon.directive.d.ts +9 -4
  21. package/callout/callout-subtitle/callout-subtitle.directive.d.ts +8 -4
  22. package/callout/callout-tagline/callout-tagline.directive.d.ts +8 -4
  23. package/callout/callout-title/callout-title.directive.d.ts +8 -4
  24. package/card/README.md +52 -44
  25. package/card/card/basic/basic.component.d.ts +18 -4
  26. package/card/card/raised/raised.component.d.ts +3 -4
  27. package/card/card/stroked/stroked.component.d.ts +18 -4
  28. package/card/card-actions/card-actions.directive.d.ts +8 -4
  29. package/card/card-base.directive.d.ts +8 -16
  30. package/card/card-content/card-content.directive.d.ts +9 -4
  31. package/card/card-icon/card-icon.directive.d.ts +8 -4
  32. package/card/card-image/card-image.directive.d.ts +8 -4
  33. package/card/card-tagline/card-tagline.directive.d.ts +8 -4
  34. package/card/card-title/card-title.directive.d.ts +8 -4
  35. package/card/card.d.ts +1 -0
  36. package/card/examples/elevated-card/elevated-card.component.d.ts +5 -0
  37. package/card/examples/public_api.d.ts +3 -3
  38. package/card/helpers/card-orientation.d.ts +17 -0
  39. package/card/public_api.d.ts +9 -8
  40. package/card/src/card-base-theme.scss +40 -58
  41. package/container/container/container.component.d.ts +0 -4
  42. package/core/public_api.d.ts +1 -0
  43. package/core/sticky/public_api.d.ts +1 -0
  44. package/core/sticky/sticky-tracker.directive.d.ts +23 -0
  45. package/fesm2022/daffodil-design-accordion.mjs +13 -55
  46. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  47. package/fesm2022/daffodil-design-article.mjs +14 -32
  48. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  49. package/fesm2022/daffodil-design-breadcrumb.mjs +15 -38
  50. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  51. package/fesm2022/daffodil-design-button.mjs +41 -108
  52. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  53. package/fesm2022/daffodil-design-callout.mjs +91 -73
  54. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  55. package/fesm2022/daffodil-design-card-examples.mjs +17 -32
  56. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  57. package/fesm2022/daffodil-design-card.mjs +167 -145
  58. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  59. package/fesm2022/daffodil-design-container.mjs +7 -13
  60. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  61. package/fesm2022/daffodil-design-form-field-examples.mjs +7 -7
  62. package/fesm2022/daffodil-design-form-field-examples.mjs.map +1 -1
  63. package/fesm2022/daffodil-design-hero-examples.mjs +18 -1
  64. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-hero.mjs +102 -71
  66. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  67. package/fesm2022/daffodil-design-image.mjs +5 -12
  68. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  69. package/fesm2022/daffodil-design-input-examples.mjs +6 -6
  70. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  71. package/fesm2022/daffodil-design-input.mjs +60 -35
  72. package/fesm2022/daffodil-design-input.mjs.map +1 -1
  73. package/fesm2022/daffodil-design-list-examples.mjs +14 -10
  74. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  75. package/fesm2022/daffodil-design-list.mjs +111 -98
  76. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  77. package/fesm2022/daffodil-design-media-gallery.mjs +7 -17
  78. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  79. package/fesm2022/daffodil-design-menu.mjs +26 -63
  80. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  81. package/fesm2022/daffodil-design-modal.mjs +63 -130
  82. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-navbar.mjs +7 -20
  84. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  85. package/fesm2022/daffodil-design-notification-examples.mjs +16 -41
  86. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  87. package/fesm2022/daffodil-design-notification.mjs +112 -116
  88. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-paginator.mjs +8 -21
  90. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-progress-bar-examples.mjs +6 -6
  92. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-progress-bar.mjs +74 -115
  94. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-quantity-field.mjs +11 -3
  96. package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-select-examples.mjs +4 -4
  98. package/fesm2022/daffodil-design-select-examples.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-select.mjs +50 -117
  100. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-sidebar-examples.mjs +29 -3
  102. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-sidebar.mjs +39 -78
  104. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-sticky-examples.mjs +25 -0
  106. package/fesm2022/daffodil-design-sticky-examples.mjs.map +1 -0
  107. package/fesm2022/daffodil-design-tabs.mjs +54 -131
  108. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  109. package/fesm2022/daffodil-design-text-snippet.mjs +17 -8
  110. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  111. package/fesm2022/daffodil-design-textarea-examples.mjs +3 -3
  112. package/fesm2022/daffodil-design-textarea-examples.mjs.map +1 -1
  113. package/fesm2022/daffodil-design-textarea.mjs +49 -25
  114. package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
  115. package/fesm2022/daffodil-design-toast.mjs +42 -128
  116. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  117. package/fesm2022/daffodil-design-tree.mjs +26 -70
  118. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  119. package/fesm2022/daffodil-design.mjs +164 -17
  120. package/fesm2022/daffodil-design.mjs.map +1 -1
  121. package/hero/README.md +39 -25
  122. package/hero/examples/basic-hero/basic-hero.component.d.ts +6 -0
  123. package/hero/examples/public_api.d.ts +1 -0
  124. package/hero/hero/hero.component.d.ts +21 -4
  125. package/hero/hero-body/hero-body.directive.d.ts +10 -4
  126. package/hero/hero-icon/hero-icon.directive.d.ts +10 -4
  127. package/hero/hero-subtitle/hero-subtitle.directive.d.ts +8 -4
  128. package/hero/hero-tagline/hero-tagline.directive.d.ts +8 -4
  129. package/hero/hero-title/hero-title.directive.d.ts +8 -4
  130. package/image/image/image.component.d.ts +0 -4
  131. package/input/input.component.d.ts +29 -9
  132. package/list/README.md +43 -13
  133. package/list/examples/multiline-list/multiline-list.component.d.ts +1 -0
  134. package/list/list/list.component.d.ts +12 -24
  135. package/list/list-item/list-item.component.d.ts +13 -20
  136. package/list/list-item-title/list-item-title.directive.d.ts +13 -0
  137. package/list/list.d.ts +8 -2
  138. package/list/list.module.d.ts +4 -3
  139. package/list/nav-list/nav-list.component.d.ts +17 -0
  140. package/list/public_api.d.ts +5 -2
  141. package/list/src/list-base.scss +40 -0
  142. package/list/src/list-theme.scss +5 -0
  143. package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -6
  144. package/menu/menu/menu.component.d.ts +0 -12
  145. package/menu/menu-activator/menu-activator.component.d.ts +4 -5
  146. package/menu/menu-item/menu-item.component.d.ts +0 -10
  147. package/modal/modal/modal.component.d.ts +12 -33
  148. package/modal/modal-actions/modal-actions.component.d.ts +0 -4
  149. package/modal/modal-close/modal-close.directive.d.ts +1 -8
  150. package/modal/modal-content/modal-content.component.d.ts +0 -4
  151. package/modal/modal-header/modal-header.component.d.ts +0 -4
  152. package/modal/modal-title/modal-title.directive.d.ts +0 -11
  153. package/navbar/navbar/navbar.component.d.ts +0 -8
  154. package/navbar/src/navbar-theme.scss +2 -1
  155. package/notification/README.md +39 -24
  156. package/notification/examples/default-notification/default-notification.component.d.ts +0 -2
  157. package/notification/examples/public_api.d.ts +1 -5
  158. package/notification/helpers/notification-orientation.d.ts +17 -0
  159. package/notification/notification/notification.component.d.ts +39 -23
  160. package/notification/notification-actions/notification-actions.directive.d.ts +11 -4
  161. package/notification/notification-message/notification-message.directive.d.ts +9 -4
  162. package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -4
  163. package/notification/notification-title/notification-title.directive.d.ts +8 -4
  164. package/notification/public_api.d.ts +6 -5
  165. package/package.json +1 -1
  166. package/paginator/paginator/paginator.component.d.ts +0 -11
  167. package/progress-bar/README.md +31 -8
  168. package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +9 -5
  169. package/progress-bar/progress-bar.component.d.ts +39 -35
  170. package/progress-bar/public_api.d.ts +2 -2
  171. package/quantity-field/quantity-field.component.d.ts +10 -0
  172. package/scss/global.scss +0 -1
  173. package/select/select/select.component.d.ts +13 -25
  174. package/select/select.d.ts +1 -2
  175. package/sidebar/README.md +67 -72
  176. package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.d.ts +0 -1
  177. package/sidebar/examples/sidebar-sides/sidebar-sides.component.d.ts +11 -0
  178. package/sidebar/sidebar/sidebar.component.d.ts +0 -9
  179. package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +0 -4
  180. package/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.d.ts +3 -0
  181. package/sidebar/sidebar-header/sidebar-header.component.d.ts +0 -4
  182. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +0 -17
  183. package/sticky/examples/basic-sticky/basic-sticky.component.d.ts +5 -0
  184. package/sticky/examples/index.d.ts +1 -0
  185. package/sticky/examples/public_api.d.ts +2 -0
  186. package/tabs/README.md +38 -14
  187. package/tabs/tabs/tab/tab.component.d.ts +4 -16
  188. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +6 -27
  189. package/tabs/tabs/tab-label/tab-label.component.d.ts +5 -2
  190. package/tabs/tabs/tab-panel/tab-panel.component.d.ts +7 -24
  191. package/tabs/tabs/tabs.component.d.ts +5 -11
  192. package/text-snippet/README.md +31 -3
  193. package/text-snippet/text-snippet.component.d.ts +17 -2
  194. package/textarea/textarea.component.d.ts +25 -5
  195. package/toast/README.md +47 -21
  196. package/toast/interfaces/toast-action.d.ts +4 -5
  197. package/toast/interfaces/toast-options.d.ts +3 -1
  198. package/toast/interfaces/toast.d.ts +22 -7
  199. package/toast/service/toast.service.d.ts +3 -3
  200. package/toast/toast/toast-config.d.ts +7 -3
  201. package/toast/toast/toast-template.component.d.ts +1 -1
  202. package/toast/toast/toast.component.d.ts +0 -2
  203. package/toast/toast-actions/toast-actions.directive.d.ts +0 -4
  204. package/toast/toast-message/toast-message.directive.d.ts +0 -4
  205. package/toast/toast-title/toast-title.directive.d.ts +0 -4
  206. package/tree/tree/tree.component.d.ts +0 -6
  207. package/tree/tree-item/tree-item.directive.d.ts +7 -35
  208. package/accordion/accordion/animation/accordion-animation-state.d.ts +0 -1
  209. package/accordion/accordion/animation/accordion-animation.d.ts +0 -4
  210. package/card/examples/raised-card/raised-card.component.d.ts +0 -11
  211. package/notification/examples/notification-with-actions/notification-with-actions.component.d.ts +0 -8
  212. package/progress-bar/animation/progress-bar-animation.d.ts +0 -4
  213. package/select/animation/select-animation-state.d.ts +0 -7
  214. package/select/animation/select-animation.d.ts +0 -4
  215. 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: { "open": "open"; }; outputs: { "toggled": "toggled"; }; }]>;
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,10 +19,6 @@ import * as i0 from "@angular/core";
19
19
  * ```
20
20
  */
21
21
  export declare class DaffButtonComponent extends DaffButtonBaseDirective {
22
- /**
23
- * @docs-private
24
- */
25
- class: boolean;
26
22
  /**
27
23
  * Whether or not the button displays a shadow.
28
24
  */
@@ -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 DaffStrokedButtonComponent extends DaffButtonBaseDirective {
22
- /**
23
- * @docs-private
24
- */
25
- class: boolean;
26
22
  /**
27
23
  * Whether or not the button displays a shadow.
28
24
  */
@@ -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.$small-font-size;
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.$normal-font-size;
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.$medium-font-size;
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 component that can be used to easily highlight a piece of content.
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. It's a flexible and extensible component that includes pre-styled content containers. It can be used alongside a product list to highlight a set of products, quickly lay out an accordion, showcase a set of features, etc.
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 in a standalone component, import `DAFF_CALLOUT_COMPONENTS` directly into your custom component:
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
- ## Supported Content Types
51
- A `<daff-callout>` supports transclusion of any content and includes stylized `icon`, `tagline`, `title`, `subtitle`, and `body` content containers.
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 Alignment
76
- Align callout-specific text with the `textAlignment` property. `textAlignment` will not cascade the alignment styles down to `[daffCalloutBody]` or any additional components or elements that is placed inside of a callout. `textAlignment` is set to `left` by default.
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 Callouts
83
- Callouts are available in a `compact` mode, which decreases the overall padding of the callout container to suit UIs that require less negative space. To enable the mode, set the `compact` property on `<daff-callout>`.
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
- ## Gridded Callouts
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
- ## Layout
94
- The `layout` property is deprecated and replaced by the [`textAlignment`](#text-alignment) property.
92
+ ### Callout with two columns
93
+ Callouts are flexible enough to support custom grid layouts for more complex arrangements:
95
94
 
96
- ## Size
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
- * @inheritdoc
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 versatile content containers that contain content and actions to convey information about a single subject.
2
+ Cards are flexible content containers used to group related information and actions about a single subject.
3
3
 
4
4
  ## Overview
5
- There are three types of cards: default (filled), raised, and stroked. Cards can contain anything from images, blocks of text, lists, accordions, and other components.
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
- To use card in a standalone component, import each card type directly into your custom component.
16
+ Import the card style(s) you need into a standalone component:
16
17
 
17
- The following imports are available, depending on which card you choose to use: `DAFF_CARD_COMPONENTS`, `DAFF_RAISED_CARD_COMPONENTS`, `DAFF_STROKED_CARD_COMPONENTS`. If you need to use all the card types, you can use `DAFF_ALL_CARD_COMPONENTS`.
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
- ## Supported Content Types
57
- A card supports a wide variety of content and includes minimally pre-styled `image`, `icon`, `tagline`, `title`, `content`, and `actions` content containers.
58
-
59
- ### Image
60
- Image can be added to a card by using the `daffCardImage` attribute. It stretches the image to a card's defined width and ensures that its border radius is flush with a card.
61
-
62
- ### Icon
63
- Icon can be added to a card by using the `daffCardIcon` attribute. It's intended for visual or branding reinforcement and should not be used for actionable icons.
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
- ### Tagline
66
- Tagline can be added to a card by using the `daffCardTagline` attribute. It's intended to supplement the title by providing a short, memorable description.
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
- ### Title
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
- ### Content
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
- ### Actions
75
- Buttons can be added to a card by using the `daffCardActions` attribute. This container will always be positioned at the bottom of a card.
91
+ ## Elevation
92
+ Use the `elevated` property to add shadows to cards.
76
93
 
77
- ## Properties
94
+ <design-land-example-viewer-container example="elevated-card"></design-land-example-viewer-container>
78
95
 
79
- ### Orientation
80
- Orientation dictates how a card's content is stacked — `vertical` or `horizontal`. Cards are oriented vertically by default. The orientation of a card can be defined or updated by using the `orientation` property. Horizontal cards will stack vertically on smaller screens due to size constraints.
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
- ## Linkable Card
85
- Cards can be linkable by adding the component selector to the `<a>` tag. All card types are linkable.
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="stroked-card"></design-land-example-viewer-container>
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
- Supported colors: `primary | secondary | tertiary | white | black | theme | theme-contrast`
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
- <design-land-example-viewer-container example="card-theming"></design-land-example-viewer-container>
109
+ ```html
110
+ <daff-card [elevated]="true">
111
+ </daff-card>
112
+ ```