@daffodil/design 0.94.1-rc.0 → 0.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/README.md +1 -2
  2. package/accordion/src/accordion-theme.scss +4 -4
  3. package/article/README.md +4 -27
  4. package/article/src/article-theme.scss +14 -14
  5. package/badge/src/badge-theme.scss +0 -6
  6. package/button/README.md +0 -4
  7. package/button/src/button/basic/button-theme.scss +17 -42
  8. package/button/src/button/button-base.scss +12 -3
  9. package/button/src/button/flat/flat-theme.scss +14 -12
  10. package/button/src/button/icon/icon-theme.scss +19 -40
  11. package/button/src/button/stroked/stroked-theme.scss +22 -36
  12. package/card/src/card/stroked/stroked-theme.scss +1 -1
  13. package/card/src/card-base.scss +0 -1
  14. package/fesm2022/daffodil-design-accordion.mjs +285 -188
  15. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  16. package/fesm2022/daffodil-design-article.mjs +578 -340
  17. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  18. package/fesm2022/daffodil-design-badge.mjs +166 -84
  19. package/fesm2022/daffodil-design-badge.mjs.map +1 -1
  20. package/fesm2022/daffodil-design-beacon.mjs +109 -47
  21. package/fesm2022/daffodil-design-beacon.mjs.map +1 -1
  22. package/fesm2022/daffodil-design-breadcrumb.mjs +384 -277
  23. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  24. package/fesm2022/daffodil-design-button.mjs +541 -408
  25. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  26. package/fesm2022/daffodil-design-callout.mjs +349 -224
  27. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  28. package/fesm2022/daffodil-design-card.mjs +496 -327
  29. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  30. package/fesm2022/daffodil-design-checkbox.mjs +373 -313
  31. package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
  32. package/fesm2022/daffodil-design-container.mjs +103 -60
  33. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  34. package/fesm2022/daffodil-design-form-field.mjs +441 -352
  35. package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
  36. package/fesm2022/daffodil-design-form.mjs +155 -57
  37. package/fesm2022/daffodil-design-form.mjs.map +1 -1
  38. package/fesm2022/daffodil-design-hero.mjs +349 -234
  39. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  40. package/fesm2022/daffodil-design-image-lite.mjs +60 -0
  41. package/fesm2022/daffodil-design-image-lite.mjs.map +1 -0
  42. package/fesm2022/daffodil-design-image.mjs +245 -107
  43. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  44. package/fesm2022/daffodil-design-input.mjs +217 -164
  45. package/fesm2022/daffodil-design-input.mjs.map +1 -1
  46. package/fesm2022/daffodil-design-list.mjs +308 -170
  47. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  48. package/fesm2022/daffodil-design-media-gallery.mjs +351 -278
  49. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  50. package/fesm2022/daffodil-design-menu.mjs +525 -417
  51. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  52. package/fesm2022/daffodil-design-modal.mjs +680 -450
  53. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  54. package/fesm2022/daffodil-design-native-select.mjs +175 -166
  55. package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-navbar.mjs +145 -68
  57. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-notification.mjs +376 -226
  59. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-paginator.mjs +296 -192
  61. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-progress-bar.mjs +243 -157
  63. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-radio.mjs +382 -300
  65. package/fesm2022/daffodil-design-radio.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-select.mjs +424 -364
  67. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-sidebar.mjs +874 -887
  69. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-spinner.mjs +156 -99
  71. package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-switch.mjs +176 -106
  73. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-tabs.mjs +685 -427
  75. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-tag.mjs +251 -133
  77. package/fesm2022/daffodil-design-tag.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-testing.mjs +4 -16
  79. package/fesm2022/daffodil-design-testing.mjs.map +1 -1
  80. package/fesm2022/daffodil-design-text-snippet.mjs +140 -54
  81. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-textarea.mjs +170 -150
  83. package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-toast.mjs +658 -481
  85. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-tree.mjs +456 -469
  87. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-youtube-player.mjs +168 -115
  89. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  90. package/fesm2022/daffodil-design.mjs +1628 -1650
  91. package/fesm2022/daffodil-design.mjs.map +1 -1
  92. package/form-field/README.md +0 -4
  93. package/form-field/src/form-field-theme.scss +12 -4
  94. package/image/README.md +4 -0
  95. package/image-lite/README.md +58 -0
  96. package/image-lite/src/image-theme.scss +18 -0
  97. package/list/src/list-base.scss +3 -4
  98. package/list/src/list-theme.scss +6 -5
  99. package/media-gallery/README.md +1 -1
  100. package/media-gallery/src/media-gallery-theme.scss +3 -3
  101. package/menu/src/menu-theme.scss +6 -2
  102. package/notification/src/notification-theme.scss +10 -10
  103. package/package.json +1 -1
  104. package/scss/global.scss +17 -11
  105. package/scss/theme.scss +2 -18
  106. package/scss/theming/_get-palette.scss +0 -3
  107. package/scss/theming/_index.scss +0 -1
  108. package/scss/theming/_light-dark.scss +2 -2
  109. package/scss/theming/_theme-css-variables.scss +1 -1
  110. package/scss/theming/create-theme/_create-theme.scss +2 -2
  111. package/scss/theming/get-font-colors/_get-font-colors.scss +7 -25
  112. package/scss/theming/get-font-colors/_get-font-colors.spec.scss +0 -12
  113. package/scss/typography/_classes.scss +0 -6
  114. package/scss/typography/_index.scss +0 -1
  115. package/scss/typography/mixins/_sizes.scss +0 -1
  116. package/scss/typography/utilities/_variables.scss +3 -0
  117. package/select/src/select-theme.scss +10 -14
  118. package/switch/src/switch-theme.scss +2 -2
  119. package/tabs/src/tabs-theme.scss +4 -4
  120. package/types/daffodil-design-accordion.d.ts +92 -67
  121. package/types/daffodil-design-article.d.ts +49 -56
  122. package/types/daffodil-design-badge.d.ts +56 -33
  123. package/types/daffodil-design-beacon.d.ts +35 -14
  124. package/types/daffodil-design-breadcrumb.d.ts +89 -85
  125. package/types/daffodil-design-button.d.ts +128 -146
  126. package/types/daffodil-design-callout.d.ts +55 -39
  127. package/types/daffodil-design-card.d.ts +66 -56
  128. package/types/daffodil-design-checkbox.d.ts +211 -167
  129. package/types/daffodil-design-container.d.ts +17 -16
  130. package/types/daffodil-design-form-field.d.ts +273 -240
  131. package/types/daffodil-design-form.d.ts +21 -21
  132. package/types/daffodil-design-hero.d.ts +55 -39
  133. package/types/daffodil-design-image-lite.d.ts +17 -0
  134. package/types/daffodil-design-image.d.ts +89 -55
  135. package/types/daffodil-design-input.d.ts +86 -72
  136. package/types/daffodil-design-list.d.ts +49 -43
  137. package/types/daffodil-design-media-gallery.d.ts +176 -148
  138. package/types/daffodil-design-menu.d.ts +177 -169
  139. package/types/daffodil-design-modal.d.ts +205 -205
  140. package/types/daffodil-design-native-select.d.ts +94 -84
  141. package/types/daffodil-design-navbar.d.ts +34 -24
  142. package/types/daffodil-design-notification.d.ts +82 -67
  143. package/types/daffodil-design-paginator.d.ts +140 -118
  144. package/types/daffodil-design-progress-bar.d.ts +92 -74
  145. package/types/daffodil-design-radio.d.ts +183 -144
  146. package/types/daffodil-design-select.d.ts +207 -178
  147. package/types/daffodil-design-sidebar.d.ts +270 -253
  148. package/types/daffodil-design-spinner.d.ts +49 -36
  149. package/types/daffodil-design-switch.d.ts +77 -46
  150. package/types/daffodil-design-tabs.d.ts +248 -198
  151. package/types/daffodil-design-tag.d.ts +91 -56
  152. package/types/daffodil-design-testing.d.ts +1 -3
  153. package/types/daffodil-design-text-snippet.d.ts +48 -37
  154. package/types/daffodil-design-textarea.d.ts +88 -79
  155. package/types/daffodil-design-toast.d.ts +175 -183
  156. package/types/daffodil-design-tree.d.ts +186 -169
  157. package/types/daffodil-design-youtube-player.d.ts +56 -52
  158. package/types/daffodil-design.d.ts +614 -695
  159. package/button/src/button/raised/raised-theme.scss +0 -92
  160. package/button/src/button/underline/underline-theme.scss +0 -141
  161. package/fesm2022/daffodil-design-link-set.mjs +0 -160
  162. package/fesm2022/daffodil-design-link-set.mjs.map +0 -1
  163. package/fesm2022/daffodil-design-quantity-field.mjs +0 -364
  164. package/fesm2022/daffodil-design-quantity-field.mjs.map +0 -1
  165. package/link-set/README.md +0 -86
  166. package/quantity-field/README.md +0 -63
  167. package/scss/theming/_configure-theme.scss +0 -120
  168. package/scss/typography/mixins/_font-weight.scss +0 -14
  169. package/types/daffodil-design-link-set.d.ts +0 -72
  170. package/types/daffodil-design-quantity-field.d.ts +0 -171
@@ -1,237 +1,352 @@
1
- import { CommonModule } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, Directive, NgModule } from '@angular/core';
4
- import * as i1 from '@daffodil/design';
5
- import { DaffArticleEncapsulatedDirective, DaffManageContainerLayoutDirective, DaffTextAlignableDirective, DaffCompactableDirective, DaffColorableDirective } from '@daffodil/design';
6
-
7
- /* eslint-disable quote-props */
8
- /**
9
- * Hero is a top level container designed to be large and captivating.
10
- * It should be used only once per page, typically as the first component
11
- * to introduce the page’s main purpose or message.
12
- *
13
- * @example
14
- * ```html
15
- * <daff-hero>
16
- * <div daffHeroIcon>
17
- * <img src="assets/summer-sale-icon.svg" alt="Summer sale icon" />
18
- * </div>
19
- * <div daffHeroTagline>Limited Time Offer</div>
20
- * <h1 daffHeroTitle>Summer Collection Sale</h1>
21
- * <p daffHeroSubtitle>Up to 50% off select items through July 31</p>
22
- * <div daffHeroBody>
23
- * <button daff-button color="secondary">Shop the sale</button>
24
- * <button daff-button color="theme">Learn more</button>
25
- * </div>
26
- * </daff-hero>
27
- * ```
28
- */
29
- class DaffHeroComponent {
30
- constructor(textAlignable) {
31
- this.textAlignable = textAlignable;
32
- this.textAlignable.defaultAlignment = 'left';
33
- }
34
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroComponent, deps: [{ token: i1.DaffTextAlignableDirective }], target: i0.ɵɵFactoryTarget.Component }); }
35
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DaffHeroComponent, isStandalone: true, selector: "daff-hero", host: { classAttribute: "daff-hero" }, hostDirectives: [{ directive: i1.DaffArticleEncapsulatedDirective }, { directive: i1.DaffManageContainerLayoutDirective }, { directive: i1.DaffTextAlignableDirective, inputs: ["textAlignment", "textAlignment"] }, { directive: i1.DaffCompactableDirective, inputs: ["compact", "compact"] }, { directive: i1.DaffColorableDirective, inputs: ["color", "color"] }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".daff-hero{display:block;padding:64px 24px}@media(min-width:480px){.daff-hero{padding:96px 48px}}.daff-hero__icon{margin:0 0 16px}.daff-hero__tagline{font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;text-transform:uppercase;margin:0 0 8px;padding:0}.daff-hero__title{font-size:2.5rem;font-weight:700;line-height:2.5rem;margin:0;max-width:1040px;width:100%}@media(min-width:768px){.daff-hero__title{font-size:4.5rem;line-height:4.5rem}}.daff-hero__subtitle{font-size:1.25rem;font-weight:400;line-height:1.75rem;margin:16px 0 0;max-width:672px;width:100%}@media(min-width:768px){.daff-hero__subtitle{font-size:1.5rem;font-weight:400;line-height:2rem}}.daff-hero__subtitle p:first-of-type{margin-top:0}.daff-hero__subtitle p:last-of-type{margin-bottom:0}.daff-hero__body:not(:last-child){margin-bottom:48px}.daff-hero__body:not(:first-child){margin-top:48px}.daff-hero.daff-compact{padding:48px 24px}@media(min-width:480px){.daff-hero.daff-compact{padding:48px}}.daff-hero.daff-left .daff-hero__icon,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title,.daff-hero.daff-left .daff-hero__subtitle{text-align:left}.daff-hero.daff-center .daff-hero__icon,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title,.daff-hero.daff-center .daff-hero__subtitle{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__icon,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title,.daff-hero.daff-right .daff-hero__subtitle{margin-left:auto;text-align:right}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroComponent, decorators: [{
38
- type: Component,
39
- args: [{ selector: 'daff-hero', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
40
- { directive: DaffArticleEncapsulatedDirective },
41
- { directive: DaffManageContainerLayoutDirective },
42
- {
43
- directive: DaffTextAlignableDirective,
44
- inputs: ['textAlignment'],
45
- },
46
- {
47
- directive: DaffCompactableDirective,
48
- inputs: ['compact'],
49
- },
50
- {
51
- directive: DaffColorableDirective,
52
- inputs: ['color'],
53
- },
54
- ], host: {
55
- 'class': 'daff-hero',
56
- }, styles: [".daff-hero{display:block;padding:64px 24px}@media(min-width:480px){.daff-hero{padding:96px 48px}}.daff-hero__icon{margin:0 0 16px}.daff-hero__tagline{font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;text-transform:uppercase;margin:0 0 8px;padding:0}.daff-hero__title{font-size:2.5rem;font-weight:700;line-height:2.5rem;margin:0;max-width:1040px;width:100%}@media(min-width:768px){.daff-hero__title{font-size:4.5rem;line-height:4.5rem}}.daff-hero__subtitle{font-size:1.25rem;font-weight:400;line-height:1.75rem;margin:16px 0 0;max-width:672px;width:100%}@media(min-width:768px){.daff-hero__subtitle{font-size:1.5rem;font-weight:400;line-height:2rem}}.daff-hero__subtitle p:first-of-type{margin-top:0}.daff-hero__subtitle p:last-of-type{margin-bottom:0}.daff-hero__body:not(:last-child){margin-bottom:48px}.daff-hero__body:not(:first-child){margin-top:48px}.daff-hero.daff-compact{padding:48px 24px}@media(min-width:480px){.daff-hero.daff-compact{padding:48px}}.daff-hero.daff-left .daff-hero__icon,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title,.daff-hero.daff-left .daff-hero__subtitle{text-align:left}.daff-hero.daff-center .daff-hero__icon,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title,.daff-hero.daff-center .daff-hero__subtitle{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__icon,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title,.daff-hero.daff-right .daff-hero__subtitle{margin-left:auto;text-align:right}\n"] }]
57
- }], ctorParameters: () => [{ type: i1.DaffTextAlignableDirective }] });
58
-
59
- /* eslint-disable quote-props */
60
- /**
61
- * Body is a flexible wrapper for additional components or custom layouts.
62
- * It's unstyled except for spacing, allowing for a ton of control and customization.
63
- * It should only be used once per hero.
64
- *
65
- * @example
66
- * ```html
67
- * <div daffHeroBody>Custom content</div>
68
- * ```
69
- */
70
- class DaffHeroBodyDirective {
71
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
72
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: DaffHeroBodyDirective, isStandalone: true, selector: "[daffHeroBody]", host: { classAttribute: "daff-hero__body" }, ngImport: i0 }); }
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroBodyDirective, decorators: [{
75
- type: Directive,
76
- args: [{
77
- selector: '[daffHeroBody]',
78
- host: {
79
- 'class': 'daff-hero__body',
80
- },
81
- }]
82
- }] });
83
-
84
- /* eslint-disable quote-props */
85
- /**
86
- * Icon is used to display a visual or branding element. Avoid using this for interactive or actionable icons.
87
- *
88
- * @example
89
- * ```html
90
- * <div daffHeroIcon>
91
- * <img src="assets/summer-sale-icon.svg" alt="Summer sale icon" />
92
- </div>
93
- * ```
94
- */
95
- class DaffHeroIconDirective {
96
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
97
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: DaffHeroIconDirective, isStandalone: true, selector: "[daffHeroIcon]", host: { classAttribute: "daff-hero__icon" }, ngImport: i0 }); }
98
- }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroIconDirective, decorators: [{
100
- type: Directive,
101
- args: [{
102
- selector: '[daffHeroIcon]',
103
- host: {
104
- 'class': 'daff-hero__icon',
105
- },
106
- }]
107
- }] });
108
-
109
- /* eslint-disable quote-props */
110
- /**
111
- * Subtitle is a secondary descriptive text displayed beneath the title.
112
- *
113
- * @example
114
- * ```html
115
- * <p daffHeroSubtitle>Up to 50% off select items through July 31</p>
116
- * ```
117
- */
118
- class DaffHeroSubtitleDirective {
119
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
120
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: DaffHeroSubtitleDirective, isStandalone: true, selector: "[daffHeroSubtitle]", host: { classAttribute: "daff-hero__subtitle" }, ngImport: i0 }); }
121
- }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroSubtitleDirective, decorators: [{
123
- type: Directive,
124
- args: [{
125
- selector: '[daffHeroSubtitle]',
126
- host: {
127
- 'class': 'daff-hero__subtitle',
128
- },
129
- }]
130
- }] });
131
-
132
- /* eslint-disable quote-props */
133
- /**
134
- * Tagline is a short, memorable phrase that complements the title and provides quick context.
135
- *
136
- * @example
137
- * ```html
138
- * <div daffHeroTagline>Limited Time Offer</div>
139
- * ```
140
- */
141
- class DaffHeroTaglineDirective {
142
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroTaglineDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
143
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: DaffHeroTaglineDirective, isStandalone: true, selector: "[daffHeroTagline]", host: { classAttribute: "daff-hero__tagline" }, ngImport: i0 }); }
144
- }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroTaglineDirective, decorators: [{
146
- type: Directive,
147
- args: [{
148
- selector: '[daffHeroTagline]',
149
- host: {
150
- 'class': 'daff-hero__tagline',
151
- },
152
- }]
153
- }] });
154
-
155
- /* eslint-disable quote-props */
156
- /**
157
- * Title is the primary heading for the hero.
158
- *
159
- * @example
160
- * ```html
161
- * <h1 daffHeroTitle>Summer Collection Sale</h1>
162
- * ```
163
- */
164
- class DaffHeroTitleDirective {
165
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
166
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: DaffHeroTitleDirective, isStandalone: true, selector: "[daffHeroTitle]", host: { classAttribute: "daff-hero__title" }, ngImport: i0 }); }
167
- }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroTitleDirective, decorators: [{
169
- type: Directive,
170
- args: [{
171
- selector: '[daffHeroTitle]',
172
- host: {
173
- 'class': 'daff-hero__title',
174
- },
175
- }]
176
- }] });
177
-
178
- /**
179
- * @deprecated in favor of {@link DAFF_HERO_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
180
- * */
181
- class DaffHeroModule {
182
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
183
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroModule, imports: [CommonModule,
184
- DaffHeroComponent,
185
- DaffHeroIconDirective,
186
- DaffHeroTaglineDirective,
187
- DaffHeroTitleDirective,
188
- DaffHeroSubtitleDirective,
189
- DaffHeroBodyDirective], exports: [DaffHeroComponent,
190
- DaffHeroIconDirective,
191
- DaffHeroTaglineDirective,
192
- DaffHeroTitleDirective,
193
- DaffHeroSubtitleDirective,
194
- DaffHeroBodyDirective] }); }
195
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroModule, imports: [CommonModule] }); }
196
- }
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffHeroModule, decorators: [{
198
- type: NgModule,
199
- args: [{
200
- imports: [
201
- CommonModule,
202
- DaffHeroComponent,
203
- DaffHeroIconDirective,
204
- DaffHeroTaglineDirective,
205
- DaffHeroTitleDirective,
206
- DaffHeroSubtitleDirective,
207
- DaffHeroBodyDirective,
208
- ],
209
- exports: [
210
- DaffHeroComponent,
211
- DaffHeroIconDirective,
212
- DaffHeroTaglineDirective,
213
- DaffHeroTitleDirective,
214
- DaffHeroSubtitleDirective,
215
- DaffHeroBodyDirective,
216
- ],
217
- }]
218
- }] });
219
-
220
- /**
221
- * @docs-private
222
- */
1
+ import { CommonModule } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, Directive, NgModule, ViewEncapsulation } from "@angular/core";
4
+ import * as i1 from "@daffodil/design";
5
+ import { DaffArticleEncapsulatedDirective, DaffColorableDirective, DaffCompactableDirective, DaffManageContainerLayoutDirective, DaffTextAlignableDirective } from "@daffodil/design";
6
+ var DaffHeroComponent = class DaffHeroComponent {
7
+ constructor(textAlignable) {
8
+ this.textAlignable = textAlignable;
9
+ this.textAlignable.defaultAlignment = "left";
10
+ }
11
+ static {
12
+ this.ɵfac = i0.ɵɵngDeclareFactory({
13
+ minVersion: "12.0.0",
14
+ version: "22.2.4",
15
+ ngImport: i0,
16
+ type: DaffHeroComponent,
17
+ deps: [{ token: i1.DaffTextAlignableDirective }],
18
+ target: i0.ɵɵFactoryTarget.Component
19
+ });
20
+ }
21
+ static {
22
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
23
+ minVersion: "14.0.0",
24
+ version: "22.2.4",
25
+ type: DaffHeroComponent,
26
+ isStandalone: true,
27
+ selector: "daff-hero",
28
+ host: { classAttribute: "daff-hero" },
29
+ hostDirectives: [
30
+ { directive: i1.DaffArticleEncapsulatedDirective },
31
+ { directive: i1.DaffManageContainerLayoutDirective },
32
+ {
33
+ directive: i1.DaffTextAlignableDirective,
34
+ inputs: ["textAlignment", "textAlignment"]
35
+ },
36
+ {
37
+ directive: i1.DaffCompactableDirective,
38
+ inputs: ["compact", "compact"]
39
+ },
40
+ {
41
+ directive: i1.DaffColorableDirective,
42
+ inputs: ["color", "color"]
43
+ }
44
+ ],
45
+ ngImport: i0,
46
+ template: "<ng-content></ng-content>",
47
+ isInline: true,
48
+ styles: [".daff-hero{display:block;padding:4rem 1.5rem}@media(min-width:480px){.daff-hero{padding:6rem 3rem}}.daff-hero__icon{margin:0 0 1rem}.daff-hero__tagline{font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;text-transform:uppercase;margin:0 0 .5rem;padding:0}.daff-hero__title{font-size:2.5rem;font-weight:700;line-height:2.5rem;margin:0;max-width:65rem;width:100%}@media(min-width:768px){.daff-hero__title{font-size:4.5rem;line-height:4.5rem}}.daff-hero__subtitle{font-size:1.25rem;font-weight:400;line-height:1.75rem;margin:1rem 0 0;max-width:42rem;width:100%}@media(min-width:768px){.daff-hero__subtitle{font-size:1.5rem;font-weight:400;line-height:2rem}}.daff-hero__subtitle p:first-of-type{margin-top:0}.daff-hero__subtitle p:last-of-type{margin-bottom:0}.daff-hero__body:not(:last-child){margin-bottom:3rem}.daff-hero__body:not(:first-child){margin-top:3rem}.daff-hero.daff-compact{padding:3rem 1.5rem}@media(min-width:480px){.daff-hero.daff-compact{padding:3rem}}.daff-hero.daff-left .daff-hero__icon,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title,.daff-hero.daff-left .daff-hero__subtitle{text-align:left}.daff-hero.daff-center .daff-hero__icon,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title,.daff-hero.daff-center .daff-hero__subtitle{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__icon,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title,.daff-hero.daff-right .daff-hero__subtitle{margin-left:auto;text-align:right}\n"],
49
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
50
+ encapsulation: i0.ViewEncapsulation.None
51
+ });
52
+ }
53
+ };
54
+ i0.ɵɵngDeclareClassMetadata({
55
+ minVersion: "12.0.0",
56
+ version: "22.2.4",
57
+ ngImport: i0,
58
+ type: DaffHeroComponent,
59
+ decorators: [{
60
+ type: Component,
61
+ args: [{
62
+ selector: "daff-hero",
63
+ template: "<ng-content></ng-content>",
64
+ encapsulation: ViewEncapsulation.None,
65
+ changeDetection: ChangeDetectionStrategy.OnPush,
66
+ hostDirectives: [
67
+ { directive: DaffArticleEncapsulatedDirective },
68
+ { directive: DaffManageContainerLayoutDirective },
69
+ {
70
+ directive: DaffTextAlignableDirective,
71
+ inputs: ["textAlignment"]
72
+ },
73
+ {
74
+ directive: DaffCompactableDirective,
75
+ inputs: ["compact"]
76
+ },
77
+ {
78
+ directive: DaffColorableDirective,
79
+ inputs: ["color"]
80
+ }
81
+ ],
82
+ host: { "class": "daff-hero" },
83
+ styles: [".daff-hero{display:block;padding:4rem 1.5rem}@media(min-width:480px){.daff-hero{padding:6rem 3rem}}.daff-hero__icon{margin:0 0 1rem}.daff-hero__tagline{font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;text-transform:uppercase;margin:0 0 .5rem;padding:0}.daff-hero__title{font-size:2.5rem;font-weight:700;line-height:2.5rem;margin:0;max-width:65rem;width:100%}@media(min-width:768px){.daff-hero__title{font-size:4.5rem;line-height:4.5rem}}.daff-hero__subtitle{font-size:1.25rem;font-weight:400;line-height:1.75rem;margin:1rem 0 0;max-width:42rem;width:100%}@media(min-width:768px){.daff-hero__subtitle{font-size:1.5rem;font-weight:400;line-height:2rem}}.daff-hero__subtitle p:first-of-type{margin-top:0}.daff-hero__subtitle p:last-of-type{margin-bottom:0}.daff-hero__body:not(:last-child){margin-bottom:3rem}.daff-hero__body:not(:first-child){margin-top:3rem}.daff-hero.daff-compact{padding:3rem 1.5rem}@media(min-width:480px){.daff-hero.daff-compact{padding:3rem}}.daff-hero.daff-left .daff-hero__icon,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title,.daff-hero.daff-left .daff-hero__subtitle{text-align:left}.daff-hero.daff-center .daff-hero__icon,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title,.daff-hero.daff-center .daff-hero__subtitle{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__icon,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title,.daff-hero.daff-right .daff-hero__subtitle{margin-left:auto;text-align:right}\n"]
84
+ }]
85
+ }],
86
+ ctorParameters: () => [{ type: i1.DaffTextAlignableDirective }]
87
+ });
88
+ var DaffHeroBodyDirective = class DaffHeroBodyDirective {
89
+ static {
90
+ this.ɵfac = i0.ɵɵngDeclareFactory({
91
+ minVersion: "12.0.0",
92
+ version: "22.2.4",
93
+ ngImport: i0,
94
+ type: DaffHeroBodyDirective,
95
+ deps: [],
96
+ target: i0.ɵɵFactoryTarget.Directive
97
+ });
98
+ }
99
+ static {
100
+ this.ɵdir = i0.ɵɵngDeclareDirective({
101
+ minVersion: "14.0.0",
102
+ version: "22.2.4",
103
+ type: DaffHeroBodyDirective,
104
+ isStandalone: true,
105
+ selector: "[daffHeroBody]",
106
+ host: { classAttribute: "daff-hero__body" },
107
+ ngImport: i0
108
+ });
109
+ }
110
+ };
111
+ i0.ɵɵngDeclareClassMetadata({
112
+ minVersion: "12.0.0",
113
+ version: "22.2.4",
114
+ ngImport: i0,
115
+ type: DaffHeroBodyDirective,
116
+ decorators: [{
117
+ type: Directive,
118
+ args: [{
119
+ selector: "[daffHeroBody]",
120
+ host: { "class": "daff-hero__body" }
121
+ }]
122
+ }]
123
+ });
124
+ var DaffHeroIconDirective = class DaffHeroIconDirective {
125
+ static {
126
+ this.ɵfac = i0.ɵɵngDeclareFactory({
127
+ minVersion: "12.0.0",
128
+ version: "22.2.4",
129
+ ngImport: i0,
130
+ type: DaffHeroIconDirective,
131
+ deps: [],
132
+ target: i0.ɵɵFactoryTarget.Directive
133
+ });
134
+ }
135
+ static {
136
+ this.ɵdir = i0.ɵɵngDeclareDirective({
137
+ minVersion: "14.0.0",
138
+ version: "22.2.4",
139
+ type: DaffHeroIconDirective,
140
+ isStandalone: true,
141
+ selector: "[daffHeroIcon]",
142
+ host: { classAttribute: "daff-hero__icon" },
143
+ ngImport: i0
144
+ });
145
+ }
146
+ };
147
+ i0.ɵɵngDeclareClassMetadata({
148
+ minVersion: "12.0.0",
149
+ version: "22.2.4",
150
+ ngImport: i0,
151
+ type: DaffHeroIconDirective,
152
+ decorators: [{
153
+ type: Directive,
154
+ args: [{
155
+ selector: "[daffHeroIcon]",
156
+ host: { "class": "daff-hero__icon" }
157
+ }]
158
+ }]
159
+ });
160
+ var DaffHeroSubtitleDirective = class DaffHeroSubtitleDirective {
161
+ static {
162
+ this.ɵfac = i0.ɵɵngDeclareFactory({
163
+ minVersion: "12.0.0",
164
+ version: "22.2.4",
165
+ ngImport: i0,
166
+ type: DaffHeroSubtitleDirective,
167
+ deps: [],
168
+ target: i0.ɵɵFactoryTarget.Directive
169
+ });
170
+ }
171
+ static {
172
+ this.ɵdir = i0.ɵɵngDeclareDirective({
173
+ minVersion: "14.0.0",
174
+ version: "22.2.4",
175
+ type: DaffHeroSubtitleDirective,
176
+ isStandalone: true,
177
+ selector: "[daffHeroSubtitle]",
178
+ host: { classAttribute: "daff-hero__subtitle" },
179
+ ngImport: i0
180
+ });
181
+ }
182
+ };
183
+ i0.ɵɵngDeclareClassMetadata({
184
+ minVersion: "12.0.0",
185
+ version: "22.2.4",
186
+ ngImport: i0,
187
+ type: DaffHeroSubtitleDirective,
188
+ decorators: [{
189
+ type: Directive,
190
+ args: [{
191
+ selector: "[daffHeroSubtitle]",
192
+ host: { "class": "daff-hero__subtitle" }
193
+ }]
194
+ }]
195
+ });
196
+ var DaffHeroTaglineDirective = class DaffHeroTaglineDirective {
197
+ static {
198
+ this.ɵfac = i0.ɵɵngDeclareFactory({
199
+ minVersion: "12.0.0",
200
+ version: "22.2.4",
201
+ ngImport: i0,
202
+ type: DaffHeroTaglineDirective,
203
+ deps: [],
204
+ target: i0.ɵɵFactoryTarget.Directive
205
+ });
206
+ }
207
+ static {
208
+ this.ɵdir = i0.ɵɵngDeclareDirective({
209
+ minVersion: "14.0.0",
210
+ version: "22.2.4",
211
+ type: DaffHeroTaglineDirective,
212
+ isStandalone: true,
213
+ selector: "[daffHeroTagline]",
214
+ host: { classAttribute: "daff-hero__tagline" },
215
+ ngImport: i0
216
+ });
217
+ }
218
+ };
219
+ i0.ɵɵngDeclareClassMetadata({
220
+ minVersion: "12.0.0",
221
+ version: "22.2.4",
222
+ ngImport: i0,
223
+ type: DaffHeroTaglineDirective,
224
+ decorators: [{
225
+ type: Directive,
226
+ args: [{
227
+ selector: "[daffHeroTagline]",
228
+ host: { "class": "daff-hero__tagline" }
229
+ }]
230
+ }]
231
+ });
232
+ var DaffHeroTitleDirective = class DaffHeroTitleDirective {
233
+ static {
234
+ this.ɵfac = i0.ɵɵngDeclareFactory({
235
+ minVersion: "12.0.0",
236
+ version: "22.2.4",
237
+ ngImport: i0,
238
+ type: DaffHeroTitleDirective,
239
+ deps: [],
240
+ target: i0.ɵɵFactoryTarget.Directive
241
+ });
242
+ }
243
+ static {
244
+ this.ɵdir = i0.ɵɵngDeclareDirective({
245
+ minVersion: "14.0.0",
246
+ version: "22.2.4",
247
+ type: DaffHeroTitleDirective,
248
+ isStandalone: true,
249
+ selector: "[daffHeroTitle]",
250
+ host: { classAttribute: "daff-hero__title" },
251
+ ngImport: i0
252
+ });
253
+ }
254
+ };
255
+ i0.ɵɵngDeclareClassMetadata({
256
+ minVersion: "12.0.0",
257
+ version: "22.2.4",
258
+ ngImport: i0,
259
+ type: DaffHeroTitleDirective,
260
+ decorators: [{
261
+ type: Directive,
262
+ args: [{
263
+ selector: "[daffHeroTitle]",
264
+ host: { "class": "daff-hero__title" }
265
+ }]
266
+ }]
267
+ });
268
+ var DaffHeroModule = class DaffHeroModule {
269
+ static {
270
+ this.ɵfac = i0.ɵɵngDeclareFactory({
271
+ minVersion: "12.0.0",
272
+ version: "22.2.4",
273
+ ngImport: i0,
274
+ type: DaffHeroModule,
275
+ deps: [],
276
+ target: i0.ɵɵFactoryTarget.NgModule
277
+ });
278
+ }
279
+ static {
280
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
281
+ minVersion: "14.0.0",
282
+ version: "22.2.4",
283
+ ngImport: i0,
284
+ type: DaffHeroModule,
285
+ imports: [
286
+ CommonModule,
287
+ DaffHeroComponent,
288
+ DaffHeroIconDirective,
289
+ DaffHeroTaglineDirective,
290
+ DaffHeroTitleDirective,
291
+ DaffHeroSubtitleDirective,
292
+ DaffHeroBodyDirective
293
+ ],
294
+ exports: [
295
+ DaffHeroComponent,
296
+ DaffHeroIconDirective,
297
+ DaffHeroTaglineDirective,
298
+ DaffHeroTitleDirective,
299
+ DaffHeroSubtitleDirective,
300
+ DaffHeroBodyDirective
301
+ ]
302
+ });
303
+ }
304
+ static {
305
+ this.ɵinj = i0.ɵɵngDeclareInjector({
306
+ minVersion: "12.0.0",
307
+ version: "22.2.4",
308
+ ngImport: i0,
309
+ type: DaffHeroModule,
310
+ imports: [CommonModule]
311
+ });
312
+ }
313
+ };
314
+ i0.ɵɵngDeclareClassMetadata({
315
+ minVersion: "12.0.0",
316
+ version: "22.2.4",
317
+ ngImport: i0,
318
+ type: DaffHeroModule,
319
+ decorators: [{
320
+ type: NgModule,
321
+ args: [{
322
+ imports: [
323
+ CommonModule,
324
+ DaffHeroComponent,
325
+ DaffHeroIconDirective,
326
+ DaffHeroTaglineDirective,
327
+ DaffHeroTitleDirective,
328
+ DaffHeroSubtitleDirective,
329
+ DaffHeroBodyDirective
330
+ ],
331
+ exports: [
332
+ DaffHeroComponent,
333
+ DaffHeroIconDirective,
334
+ DaffHeroTaglineDirective,
335
+ DaffHeroTitleDirective,
336
+ DaffHeroSubtitleDirective,
337
+ DaffHeroBodyDirective
338
+ ]
339
+ }]
340
+ }]
341
+ });
223
342
  const DAFF_HERO_COMPONENTS = [
224
- DaffHeroComponent,
225
- DaffHeroIconDirective,
226
- DaffHeroTaglineDirective,
227
- DaffHeroTitleDirective,
228
- DaffHeroSubtitleDirective,
229
- DaffHeroBodyDirective,
343
+ DaffHeroComponent,
344
+ DaffHeroIconDirective,
345
+ DaffHeroTaglineDirective,
346
+ DaffHeroTitleDirective,
347
+ DaffHeroSubtitleDirective,
348
+ DaffHeroBodyDirective
230
349
  ];
231
-
232
- /**
233
- * Generated bundle index. Do not edit.
234
- */
235
-
236
350
  export { DAFF_HERO_COMPONENTS, DaffHeroBodyDirective, DaffHeroComponent, DaffHeroIconDirective, DaffHeroModule, DaffHeroSubtitleDirective, DaffHeroTaglineDirective, DaffHeroTitleDirective };
237
- //# sourceMappingURL=daffodil-design-hero.mjs.map
351
+
352
+ //# sourceMappingURL=daffodil-design-hero.mjs.map