{"version":3,"file":"daffodil-design-hero.mjs","sources":["../../../libs/design/hero/src/hero/hero.component.ts","../../../libs/design/hero/src/hero-body/hero-body.directive.ts","../../../libs/design/hero/src/hero-icon/hero-icon.directive.ts","../../../libs/design/hero/src/hero-subtitle/hero-subtitle.directive.ts","../../../libs/design/hero/src/hero-tagline/hero-tagline.directive.ts","../../../libs/design/hero/src/hero-title/hero-title.directive.ts","../../../libs/design/hero/src/hero.module.ts","../../../libs/design/hero/src/hero.ts","../../../libs/design/hero/src/daffodil-design-hero.ts"],"sourcesContent":["/* eslint-disable quote-props */\nimport {\n  Component,\n  ViewEncapsulation,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport {\n  DaffColorableDirective,\n  DaffCompactableDirective,\n  DaffArticleEncapsulatedDirective,\n  DaffManageContainerLayoutDirective,\n  DaffTextAlignableDirective,\n} from '@daffodil/design';\n\n/**\n * Hero is a top level container designed to be large and captivating.\n * It should be used only once per page, typically as the first component\n * to introduce the page’s main purpose or message.\n *\n * @example\n * ```html\n * <daff-hero>\n *  <div daffHeroIcon>\n *    <img src=\"assets/summer-sale-icon.svg\" alt=\"Summer sale icon\" />\n *  </div>\n *  <div daffHeroTagline>Limited Time Offer</div>\n *  <h1 daffHeroTitle>Summer Collection Sale</h1>\n *  <p daffHeroSubtitle>Up to 50% off select items through July 31</p>\n *  <div daffHeroBody>\n *    <button daff-button color=\"secondary\">Shop the sale</button>\n *    <button daff-button color=\"theme\">Learn more</button>\n *  </div>\n * </daff-hero>\n * ```\n */\n@Component({\n  selector: 'daff-hero',\n  template: '<ng-content></ng-content>',\n  styleUrls: ['./hero.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  hostDirectives: [\n    { directive: DaffArticleEncapsulatedDirective },\n    { directive: DaffManageContainerLayoutDirective },\n    {\n      directive: DaffTextAlignableDirective,\n      inputs: ['textAlignment'],\n    },\n    {\n      directive: DaffCompactableDirective,\n      inputs: ['compact'],\n    },\n    {\n      directive: DaffColorableDirective,\n      inputs: ['color'],\n    },\n  ],\n  host: {\n    'class': 'daff-hero',\n  },\n})\nexport class DaffHeroComponent {\n  constructor(private textAlignable: DaffTextAlignableDirective) {\n    this.textAlignable.defaultAlignment = 'left';\n  }\n}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Body is a flexible wrapper for additional components or custom layouts.\n * It's unstyled except for spacing, allowing for a ton of control and customization.\n * It should only be used once per hero.\n *\n * @example\n * ```html\n * <div daffHeroBody>Custom content</div>\n * ```\n */\n@Directive({\n  selector: '[daffHeroBody]',\n  host: {\n    'class': 'daff-hero__body',\n  },\n})\n\nexport class DaffHeroBodyDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Icon is used to display a visual or branding element. Avoid using this for interactive or actionable icons.\n *\n * @example\n * ```html\n * <div daffHeroIcon>\n *  <img src=\"assets/summer-sale-icon.svg\" alt=\"Summer sale icon\" />\n  </div>\n * ```\n */\n@Directive({\n  selector: '[daffHeroIcon]',\n  host: {\n    'class': 'daff-hero__icon',\n  },\n})\n\nexport class DaffHeroIconDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Subtitle is a secondary descriptive text displayed beneath the title.\n *\n * @example\n * ```html\n * <p daffHeroSubtitle>Up to 50% off select items through July 31</p>\n * ```\n */\n@Directive({\n  selector: '[daffHeroSubtitle]',\n  host: {\n    'class': 'daff-hero__subtitle',\n  },\n})\n\nexport class DaffHeroSubtitleDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Tagline is a short, memorable phrase that complements the title and provides quick context.\n *\n * @example\n * ```html\n * <div daffHeroTagline>Limited Time Offer</div>\n * ```\n */\n@Directive({\n  selector: '[daffHeroTagline]',\n  host: {\n    'class': 'daff-hero__tagline',\n  },\n})\n\nexport class DaffHeroTaglineDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Title is the primary heading for the hero.\n *\n * @example\n * ```html\n * <h1 daffHeroTitle>Summer Collection Sale</h1>\n * ```\n */\n@Directive({\n  selector: '[daffHeroTitle]',\n  host: {\n    'class': 'daff-hero__title',\n  },\n})\n\nexport class DaffHeroTitleDirective {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffHeroComponent } from './hero/hero.component';\nimport { DaffHeroBodyDirective } from './hero-body/hero-body.directive';\nimport { DaffHeroIconDirective } from './hero-icon/hero-icon.directive';\nimport { DaffHeroSubtitleDirective } from './hero-subtitle/hero-subtitle.directive';\nimport { DaffHeroTaglineDirective } from './hero-tagline/hero-tagline.directive';\nimport { DaffHeroTitleDirective } from './hero-title/hero-title.directive';\n\n/**\n * @deprecated in favor of {@link DAFF_HERO_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n * */\n@NgModule({\n  imports: [\n    CommonModule,\n    DaffHeroComponent,\n    DaffHeroIconDirective,\n    DaffHeroTaglineDirective,\n    DaffHeroTitleDirective,\n    DaffHeroSubtitleDirective,\n    DaffHeroBodyDirective,\n  ],\n  exports: [\n    DaffHeroComponent,\n    DaffHeroIconDirective,\n    DaffHeroTaglineDirective,\n    DaffHeroTitleDirective,\n    DaffHeroSubtitleDirective,\n    DaffHeroBodyDirective,\n  ],\n})\nexport class DaffHeroModule { }\n","import { DaffHeroComponent } from './hero/hero.component';\nimport { DaffHeroBodyDirective } from './hero-body/hero-body.directive';\nimport { DaffHeroIconDirective } from './hero-icon/hero-icon.directive';\nimport { DaffHeroSubtitleDirective } from './hero-subtitle/hero-subtitle.directive';\nimport { DaffHeroTaglineDirective } from './hero-tagline/hero-tagline.directive';\nimport { DaffHeroTitleDirective } from './hero-title/hero-title.directive';\n\n/**\n * @docs-private\n */\nexport const DAFF_HERO_COMPONENTS = <const> [\n  DaffHeroComponent,\n  DaffHeroIconDirective,\n  DaffHeroTaglineDirective,\n  DaffHeroTitleDirective,\n  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