@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
@@ -1,10 +1,24 @@
1
1
  import { DaffCardBaseDirective } from '../../card-base.directive';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * A basic card variant with a filled background.
5
+ *
6
+ * @example
7
+ * ```html
8
+ * <daff-card>
9
+ * <img daffCardImage src="/" alt="image caption" >
10
+ * <div daffCardIcon></div>
11
+ * <div daffCardTagline>Card tagline</div>
12
+ * <h4 daffCardTitle>Card title</h4>
13
+ * <div daffCardContent>Detailed information about the subject of the card.</div>
14
+ * <div daffCardActions>
15
+ * <button>Card link</button>
16
+ * <button>Another card link</button>
17
+ * </div>
18
+ * </daff-card>
19
+ * ```
20
+ */
3
21
  export declare class DaffCardComponent extends DaffCardBaseDirective {
4
- /**
5
- * @docs-private
6
- */
7
- class: boolean;
8
22
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardComponent, never>;
9
23
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffCardComponent, "daff-card,a[daff-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
10
24
  }
@@ -1,10 +1,9 @@
1
1
  import { DaffCardBaseDirective } from '../../card-base.directive';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * @deprecated Deprecated in version 0.88.0. Will be removed in version 0.91.0.
5
+ */
3
6
  export declare class DaffRaisedCardComponent extends DaffCardBaseDirective {
4
- /**
5
- * @docs-private
6
- */
7
- class: boolean;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffRaisedCardComponent, never>;
9
8
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffRaisedCardComponent, "daff-raised-card,a[daff-raised-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
10
9
  }
@@ -1,10 +1,24 @@
1
1
  import { DaffCardBaseDirective } from '../../card-base.directive';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * A card variant with a stroked (outlined) border instead of a filled background.
5
+ *
6
+ * @example
7
+ * ```html
8
+ * <daff-card>
9
+ * <img daffCardImage src="/" alt="image caption" >
10
+ * <div daffCardIcon></div>
11
+ * <div daffCardTagline>Card tagline</div>
12
+ * <h4 daffCardTitle>Card title</h4>
13
+ * <div daffCardContent>Detailed information about the subject of the card.</div>
14
+ * <div daffCardActions>
15
+ * <button>Card link</button>
16
+ * <button>Another card link</button>
17
+ * </div>
18
+ * </daff-card>
19
+ * ```
20
+ */
3
21
  export declare class DaffStrokedCardComponent extends DaffCardBaseDirective {
4
- /**
5
- * @docs-private
6
- */
7
- class: boolean;
8
22
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffStrokedCardComponent, never>;
9
23
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedCardComponent, "daff-stroked-card,a[daff-stroked-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
10
24
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * A container for buttons or calls-to-action, always positioned to the bottom of the card.
4
+ *
5
+ * @example
6
+ * ```html
7
+ * <div daffCardActions></div>
8
+ * ```
9
+ */
2
10
  export declare class DaffCardActionsDirective {
3
- /**
4
- * @docs-private
5
- */
6
- class: boolean;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardActionsDirective, never>;
8
12
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardActionsDirective, "[daffCardActions]", never, {}, {}, never, never, true, never>;
9
13
  }
@@ -1,25 +1,17 @@
1
+ import { DaffCardOrientation } from './helpers/card-orientation';
1
2
  import * as i0 from "@angular/core";
2
3
  import * as i1 from "@daffodil/design";
3
- /**
4
- * This attribute determines what orientation the the card contents are stacked.
5
- */
6
- export type DaffCardOrientation = 'vertical' | 'horizontal';
7
- export declare enum DaffCardOrientationEnum {
8
- Vertical = "vertical",
9
- Horizontal = "horizontal"
10
- }
4
+ import * as i2 from "./helpers/card-orientation";
11
5
  export declare class DaffCardBaseDirective {
12
- private _orientation;
13
- get orientation(): DaffCardOrientation;
14
- set orientation(value: DaffCardOrientation);
15
6
  /**
16
- * @docs-private
7
+ * The orientation of a card.
17
8
  */
18
- get verticalClass(): boolean;
9
+ orientation: DaffCardOrientation;
19
10
  /**
20
- * @docs-private
11
+ * Whether or not a card displays a shadow.
21
12
  */
22
- get horizontalClass(): boolean;
13
+ elevated: boolean;
23
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardBaseDirective, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "orientation": { "alias": "orientation"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "orientation": { "alias": "orientation"; "required": false; }; "elevated": { "alias": "elevated"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
16
+ static ngAcceptInputType_orientation: i2.DaffCardOrientation | null | undefined;
25
17
  }
@@ -1,9 +1,14 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * A flexible wrapper for text, components, or custom layouts.
4
+ * It's unstyled except for spacing and should only be used once per card.
5
+ *
6
+ * @example
7
+ * ```html
8
+ * <div daffCardContent></div>
9
+ * ```
10
+ */
2
11
  export declare class DaffCardContentDirective {
3
- /**
4
- * @docs-private
5
- */
6
- class: boolean;
7
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardContentDirective, never>;
8
13
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardContentDirective, "[daffCardContent]", never, {}, {}, never, never, true, never>;
9
14
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * Displays a visual or branding element. Avoid using this for interactive or actionable icons.
4
+ *
5
+ * @example
6
+ * ```html
7
+ * <div daffCardIcon></div>
8
+ * ```
9
+ */
2
10
  export declare class DaffCardIconDirective {
3
- /**
4
- * @docs-private
5
- */
6
- class: boolean;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardIconDirective, never>;
8
12
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardIconDirective, "[daffCardIcon]", never, {}, {}, never, never, true, never>;
9
13
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * Displays an image.
4
+ *
5
+ * @example
6
+ * ```html
7
+ * <div daffCardImage></div>
8
+ * ```
9
+ */
2
10
  export declare class DaffCardImageDirective {
3
- /**
4
- * @docs-private
5
- */
6
- class: boolean;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardImageDirective, never>;
8
12
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardImageDirective, "[daffCardImage]", never, {}, {}, never, never, true, never>;
9
13
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * Short, memorable phrase that complements the title and provides quick context.
4
+ *
5
+ * @example
6
+ * ```html
7
+ * <div daffCardTagline></div>
8
+ * ```
9
+ */
2
10
  export declare class DaffCardTaglineDirective {
3
- /**
4
- * @docs-private
5
- */
6
- class: boolean;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardTaglineDirective, never>;
8
12
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardTaglineDirective, "[daffCardTagline]", never, {}, {}, never, never, true, never>;
9
13
  }
@@ -1,9 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * The primary heading of the card.
4
+ *
5
+ * @example
6
+ * ```html
7
+ * <div daffCardTitle></div>
8
+ * ```
9
+ */
2
10
  export declare class DaffCardTitleDirective {
3
- /**
4
- * @docs-private
5
- */
6
- class: boolean;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardTitleDirective, never>;
8
12
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardTitleDirective, "[daffCardTitle]", never, {}, {}, never, never, true, never>;
9
13
  }
package/card/card.d.ts CHANGED
@@ -13,6 +13,7 @@ import { DaffCardTitleDirective } from './card-title/card-title.directive';
13
13
  export declare const DAFF_CARD_COMPONENTS: readonly [typeof DaffCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
14
14
  /**
15
15
  * @docs-private
16
+ * @deprecated Deprecated in version 0.88.0. Will be removed in version 0.91.0.
16
17
  */
17
18
  export declare const DAFF_RAISED_CARD_COMPONENTS: readonly [typeof DaffRaisedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
18
19
  /**
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ElevatedCardComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElevatedCardComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElevatedCardComponent, "elevated-card", never, {}, {}, never, never, true, never>;
5
+ }
@@ -1,8 +1,8 @@
1
1
  import { BasicCardComponent } from './basic-card/basic-card.component';
2
2
  import { CardOrientationComponent } from './card-orientation/card-orientation.component';
3
3
  import { CardThemingComponent } from './card-theming/card-theming.component';
4
+ import { ElevatedCardComponent } from './elevated-card/elevated-card.component';
4
5
  import { LinkableCardComponent } from './linkable-card/linkable-card.component';
5
- import { RaisedCardComponent } from './raised-card/raised-card.component';
6
6
  import { StrokedCardComponent } from './stroked-card/stroked-card.component';
7
- export declare const CARD_EXAMPLES: (typeof BasicCardComponent | typeof CardThemingComponent | typeof LinkableCardComponent | typeof RaisedCardComponent)[];
8
- export { BasicCardComponent, CardThemingComponent, LinkableCardComponent, RaisedCardComponent, StrokedCardComponent, CardOrientationComponent, };
7
+ export declare const CARD_EXAMPLES: (typeof ElevatedCardComponent)[];
8
+ export { BasicCardComponent, CardThemingComponent, LinkableCardComponent, ElevatedCardComponent, StrokedCardComponent, CardOrientationComponent, };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The available orientations for a card.
3
+ *
4
+ * | Orientation | Description |
5
+ * | -- | -- |
6
+ * | `vertical` | Stacks card content from top to bottom. This is the default orientation. |
7
+ * | `horizontal` | Places card content side-by-side. On smaller screens, horizontal cards automatically switch to vertical for responsiveness. |
8
+ */
9
+ export type DaffCardOrientation = 'vertical' | 'horizontal';
10
+ /**
11
+ * Enum for representing the available card orientations.
12
+ * See {@link DaffCardOrientation} for descriptions of each orientation.
13
+ */
14
+ export declare enum DaffCardOrientationEnum {
15
+ Vertical = "vertical",
16
+ Horizontal = "horizontal"
17
+ }
@@ -3,12 +3,13 @@ export { DAFF_CARD_COMPONENTS } from './card';
3
3
  export { DAFF_RAISED_CARD_COMPONENTS } from './card';
4
4
  export { DAFF_STROKED_CARD_COMPONENTS } from './card';
5
5
  export { DAFF_ALL_CARD_COMPONENTS } from './card';
6
- export * from './card/basic/basic.component';
6
+ export { DaffCardOrientation, DaffCardOrientationEnum, } from './helpers/card-orientation';
7
+ export { DaffCardComponent } from './card/basic/basic.component';
8
+ export { DaffStrokedCardComponent } from './card/stroked/stroked.component';
9
+ export { DaffCardIconDirective } from './card-icon/card-icon.directive';
10
+ export { DaffCardImageDirective } from './card-image/card-image.directive';
11
+ export { DaffCardTaglineDirective } from './card-tagline/card-tagline.directive';
12
+ export { DaffCardTitleDirective } from './card-title/card-title.directive';
13
+ export { DaffCardContentDirective } from './card-content/card-content.directive';
14
+ export { DaffCardActionsDirective } from './card-actions/card-actions.directive';
7
15
  export * from './card/raised/raised.component';
8
- export * from './card/stroked/stroked.component';
9
- export * from './card-icon/card-icon.directive';
10
- export * from './card-image/card-image.directive';
11
- export * from './card-tagline/card-tagline.directive';
12
- export * from './card-title/card-title.directive';
13
- export * from './card-content/card-content.directive';
14
- export * from './card-actions/card-actions.directive';
@@ -1,3 +1,4 @@
1
+ // stylelint-disable selector-class-pattern
1
2
  @use '../../scss/theming' as *;
2
3
 
3
4
  @mixin daff-basic-card-theme-variant($color) {
@@ -30,11 +31,18 @@
30
31
  $tertiary: daff-get-palette($theme, tertiary);
31
32
  $base: daff-get-base-color($theme, base);
32
33
  $base-contrast: daff-get-base-color($theme, base-contrast);
33
- $white: daff-get-base-color($theme, 'white');
34
34
  $black: daff-get-base-color($theme, 'black');
35
35
  $neutral: daff-get-palette($theme, neutral);
36
36
  $mode: daff-get-theme-mode($theme);
37
37
 
38
+ .daff-card,
39
+ .daff-stroked-card {
40
+ &.elevated {
41
+ box-shadow: 0 1px 5px -4px rgba($black, 0.5),
42
+ 0 4px 8px 0 rgba($black, 0.05);
43
+ }
44
+ }
45
+
38
46
  .daff-card,
39
47
  .daff-raised-card {
40
48
  @include light($mode) {
@@ -57,21 +65,15 @@
57
65
  @include daff-basic-card-theme-variant(daff-color($neutral, 90));
58
66
 
59
67
  &.daff-primary {
60
- @include daff-basic-card-theme-variant(
61
- daff-color($primary, 60)
62
- );
68
+ @include daff-basic-card-theme-variant(daff-color($primary, 60));
63
69
  }
64
70
 
65
71
  &.daff-secondary {
66
- @include daff-basic-card-theme-variant(
67
- daff-color($secondary, 60)
68
- );
72
+ @include daff-basic-card-theme-variant(daff-color($secondary, 60));
69
73
  }
70
74
 
71
75
  &.daff-tertiary {
72
- @include daff-basic-card-theme-variant(
73
- daff-color($tertiary, 60)
74
- );
76
+ @include daff-basic-card-theme-variant(daff-color($tertiary, 60));
75
77
  }
76
78
  }
77
79
 
@@ -93,101 +95,81 @@
93
95
  }
94
96
 
95
97
  a {
98
+ &.daff-card,
99
+ &.daff-stroked-card {
100
+ &.elevated {
101
+ .daff-card__wrapper {
102
+ &::after {
103
+ box-shadow: 0 6px 12px rgba($black, 0.08),
104
+ 0 4px 6px rgba($black, 0.04);
105
+ }
106
+ }
107
+ }
108
+ }
109
+
96
110
  &.daff-card,
97
111
  &.daff-raised-card {
98
112
  @include light($mode) {
99
- @include daff-linkable-card-theme-variant(
100
- daff-color($neutral, 20)
101
- );
113
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 20));
102
114
 
103
115
  &.daff-primary {
104
- @include daff-linkable-card-theme-variant(
105
- daff-color($primary, 70)
106
- );
116
+ @include daff-linkable-card-theme-variant(daff-color($primary, 70));
107
117
  }
108
118
 
109
119
  &.daff-secondary {
110
- @include daff-linkable-card-theme-variant(
111
- daff-color($secondary, 70)
112
- );
120
+ @include daff-linkable-card-theme-variant(daff-color($secondary, 70));
113
121
  }
114
122
 
115
123
  &.daff-tertiary {
116
- @include daff-linkable-card-theme-variant(
117
- daff-color($tertiary, 70)
118
- );
124
+ @include daff-linkable-card-theme-variant(daff-color($tertiary, 70));
119
125
  }
120
126
 
121
127
  &.daff-theme {
122
- @include daff-linkable-card-theme-variant(
123
- daff-color($neutral, 10)
124
- );
128
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 10));
125
129
  }
126
130
 
127
131
  &.daff-theme-contrast {
128
- @include daff-linkable-card-theme-variant(
129
- daff-color($neutral, 100)
130
- );
132
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 100));
131
133
  }
132
134
 
133
135
  &.daff-dark {
134
- @include daff-linkable-card-theme-variant(
135
- daff-color($neutral, 90)
136
- );
136
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 90));
137
137
  }
138
138
 
139
139
  &.daff-light {
140
- @include daff-linkable-card-theme-variant(
141
- daff-color($neutral, 10)
142
- );
140
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 10));
143
141
  }
144
142
  }
145
143
 
146
144
  @include dark($mode) {
147
- @include daff-linkable-card-theme-variant(
148
- daff-color($neutral, 80)
149
- );
145
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 80));
150
146
 
151
147
  &.daff-primary {
152
- @include daff-linkable-card-theme-variant(
153
- daff-color($primary, 70)
154
- );
148
+ @include daff-linkable-card-theme-variant(daff-color($primary, 70));
155
149
  }
156
150
 
157
151
  &.daff-secondary {
158
- @include daff-linkable-card-theme-variant(
159
- daff-color($secondary, 70)
160
- );
152
+ @include daff-linkable-card-theme-variant(daff-color($secondary, 70));
161
153
  }
162
154
 
163
155
  &.daff-tertiary {
164
- @include daff-linkable-card-theme-variant(
165
- daff-color($tertiary, 70)
166
- );
156
+ @include daff-linkable-card-theme-variant(daff-color($tertiary, 70));
167
157
  }
168
158
 
169
159
  &.daff-theme {
170
- @include daff-linkable-card-theme-variant(
171
- daff-color($neutral, 90)
172
- );
160
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 90));
173
161
  }
174
162
 
175
163
  &.daff-theme-contrast {
176
- @include daff-linkable-card-theme-variant(
177
- daff-color($neutral, 10)
178
- );
164
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 10));
179
165
  }
180
166
 
181
167
  &.daff-dark {
182
- @include daff-linkable-card-theme-variant(
183
- daff-color($neutral, 100)
184
- );
168
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 100));
185
169
  }
186
170
 
187
171
  &.daff-light {
188
- @include daff-linkable-card-theme-variant(
189
- daff-color($neutral, 10)
190
- );
172
+ @include daff-linkable-card-theme-variant(daff-color($neutral, 10));
191
173
  }
192
174
  }
193
175
  }
@@ -4,10 +4,6 @@ import * as i1 from "@daffodil/design";
4
4
  * @inheritdoc
5
5
  */
6
6
  export declare class DaffContainerComponent {
7
- /**
8
- * @docs-private
9
- */
10
- class: boolean;
11
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffContainerComponent, never>;
12
8
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffContainerComponent, "daff-container", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.DaffSizableDirective; inputs: { "size": "size"; }; outputs: {}; }]>;
13
9
  }
@@ -16,3 +16,4 @@ export * from './focus/public_api';
16
16
  export * from './sizable/public_api';
17
17
  export * from './openable/public_api';
18
18
  export * from './selectable/public_api';
19
+ export * from './sticky/public_api';
@@ -0,0 +1 @@
1
+ export { DaffStickyTrackerDirective } from './sticky-tracker.directive';
@@ -0,0 +1,23 @@
1
+ import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DaffStickyTrackerDirective implements OnDestroy {
4
+ private readonly elementRef;
5
+ private readonly renderer;
6
+ private readonly document;
7
+ sticky: 'top' | 'bottom' | undefined;
8
+ private sentinelObserver?;
9
+ private readonly className;
10
+ private lastPinnedState;
11
+ private debounceTimeout?;
12
+ private sentinelElement?;
13
+ private idleCallbackId?;
14
+ constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2, document: Document);
15
+ private get isBottomSticky();
16
+ private scheduleObserverCreation;
17
+ private findScrollableParent;
18
+ private createSentinel;
19
+ private createSentinelObserver;
20
+ ngOnDestroy(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffStickyTrackerDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffStickyTrackerDirective, "[daffStickyTracker]", never, { "sticky": { "alias": "sticky"; "required": false; }; }, {}, never, never, true, never>;
23
+ }