@affinda/wc 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affinda/af-aspect-ratio.entry.esm.js.map +1 -1
- package/dist/affinda/af-button.entry.esm.js.map +1 -1
- package/dist/affinda/af-card.entry.esm.js.map +1 -1
- package/dist/affinda/af-checkbox.entry.esm.js.map +1 -0
- package/dist/affinda/af-client-carousel.entry.esm.js.map +1 -1
- package/dist/affinda/af-feature-accordion.entry.esm.js.map +1 -1
- package/dist/affinda/af-feature-card.entry.esm.js.map +1 -0
- package/dist/affinda/af-feature-grid.entry.esm.js.map +1 -0
- package/dist/affinda/af-fieldset.entry.esm.js.map +1 -0
- package/dist/affinda/af-footer.entry.esm.js.map +1 -1
- package/dist/affinda/af-grid-callout.entry.esm.js.map +1 -0
- package/dist/affinda/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.esm.js.map +1 -1
- package/dist/affinda/af-hero-section.entry.esm.js.map +1 -1
- package/dist/affinda/af-icon-box.entry.esm.js.map +1 -0
- package/dist/affinda/af-icon-button.entry.esm.js.map +1 -1
- package/dist/affinda/af-icon-text.entry.esm.js.map +1 -0
- package/dist/affinda/af-icon.entry.esm.js.map +1 -0
- package/dist/affinda/af-illustrated-card.entry.esm.js.map +1 -0
- package/dist/affinda/af-image.entry.esm.js.map +1 -0
- package/dist/affinda/af-in-page-banner.entry.esm.js.map +1 -0
- package/dist/affinda/af-input.entry.esm.js.map +1 -0
- package/dist/affinda/af-logo-well.entry.esm.js.map +1 -1
- package/dist/affinda/af-nav-card.entry.esm.js.map +1 -0
- package/dist/affinda/af-nav-menu-nest.entry.esm.js.map +1 -0
- package/dist/affinda/af-nav-menu.entry.esm.js.map +1 -0
- package/dist/affinda/af-number-badge.entry.esm.js.map +1 -0
- package/dist/affinda/af-progress-line.entry.esm.js.map +1 -0
- package/dist/affinda/af-radio.entry.esm.js.map +1 -0
- package/dist/affinda/af-section.entry.esm.js.map +1 -1
- package/dist/affinda/af-split-section.entry.esm.js.map +1 -0
- package/dist/affinda/af-switch.entry.esm.js.map +1 -0
- package/dist/affinda/af-tab-bar.entry.esm.js.map +1 -0
- package/dist/affinda/af-tab.entry.esm.js.map +1 -0
- package/dist/affinda/af-tag.entry.esm.js.map +1 -0
- package/dist/affinda/af-testimonial-carousel.entry.esm.js.map +1 -1
- package/dist/affinda/af-testimonial-stat.entry.esm.js.map +1 -1
- package/dist/affinda/af-testimonial.entry.esm.js.map +1 -1
- package/dist/affinda/af-text-image-nest.entry.esm.js.map +1 -0
- package/dist/affinda/af-text-image.entry.esm.js.map +1 -0
- package/dist/affinda/af-textarea.entry.esm.js.map +1 -0
- package/dist/affinda/af-typography-lockup.entry.esm.js.map +1 -1
- package/dist/affinda/af-video-container.entry.esm.js.map +1 -0
- package/dist/affinda/affinda.css +1 -1
- package/dist/affinda/affinda.esm.js +1 -1
- package/dist/affinda/index.esm.js +1 -1
- package/dist/affinda/index.esm.js.map +1 -1
- package/dist/affinda/p-0cd160a4.entry.js +2 -0
- package/dist/affinda/p-0cd160a4.entry.js.map +1 -0
- package/dist/affinda/p-10801ee1.entry.js +2 -0
- package/dist/affinda/p-10801ee1.entry.js.map +1 -0
- package/dist/affinda/p-1d65fd18.entry.js +2 -0
- package/dist/affinda/p-1d65fd18.entry.js.map +1 -0
- package/dist/affinda/p-1d9e532f.entry.js +2 -0
- package/dist/affinda/p-231ba1d0.entry.js +2 -0
- package/dist/affinda/p-231ba1d0.entry.js.map +1 -0
- package/dist/affinda/p-2b4dc22c.entry.js +2 -0
- package/dist/affinda/p-2b4dc22c.entry.js.map +1 -0
- package/dist/affinda/{p-a49dc8ac.entry.js → p-31d4c1a4.entry.js} +2 -2
- package/dist/affinda/p-3d3c9f62.entry.js +2 -0
- package/dist/affinda/p-3d3c9f62.entry.js.map +1 -0
- package/dist/affinda/p-3f691578.entry.js +2 -0
- package/dist/affinda/p-3f691578.entry.js.map +1 -0
- package/dist/affinda/p-425253ee.entry.js +2 -0
- package/dist/affinda/{p-52f7ea33.entry.js.map → p-425253ee.entry.js.map} +1 -1
- package/dist/affinda/p-44b25840.entry.js +2 -0
- package/dist/affinda/p-44b25840.entry.js.map +1 -0
- package/dist/affinda/p-45e1923c.entry.js +2 -0
- package/dist/affinda/p-45e1923c.entry.js.map +1 -0
- package/dist/affinda/p-52ab3bf0.entry.js +2 -0
- package/dist/affinda/p-52ab3bf0.entry.js.map +1 -0
- package/dist/affinda/p-53ae16fe.entry.js +2 -0
- package/dist/affinda/p-53b5149d.entry.js +2 -0
- package/dist/affinda/p-53b5149d.entry.js.map +1 -0
- package/dist/affinda/p-57713942.entry.js +2 -0
- package/dist/affinda/p-57713942.entry.js.map +1 -0
- package/dist/affinda/p-5bbf2c8c.entry.js +2 -0
- package/dist/affinda/p-5bbf2c8c.entry.js.map +1 -0
- package/dist/affinda/p-697bf0b7.entry.js +2 -0
- package/dist/affinda/p-697bf0b7.entry.js.map +1 -0
- package/dist/affinda/p-6b2d0ff4.entry.js +2 -0
- package/dist/affinda/p-6b2d0ff4.entry.js.map +1 -0
- package/dist/affinda/p-71144002.entry.js +2 -0
- package/dist/affinda/p-71144002.entry.js.map +1 -0
- package/dist/affinda/{p-dec4c4d5.entry.js → p-72f02343.entry.js} +2 -2
- package/dist/affinda/p-77bf8a81.entry.js +2 -0
- package/dist/affinda/p-77bf8a81.entry.js.map +1 -0
- package/dist/affinda/p-7f20fbe0.entry.js +2 -0
- package/dist/affinda/p-7f20fbe0.entry.js.map +1 -0
- package/dist/affinda/p-81571029.entry.js +2 -0
- package/dist/affinda/p-81571029.entry.js.map +1 -0
- package/dist/affinda/p-85a78bcf.entry.js +2 -0
- package/dist/affinda/p-85a78bcf.entry.js.map +1 -0
- package/dist/affinda/p-861f4f57.entry.js +2 -0
- package/dist/affinda/p-861f4f57.entry.js.map +1 -0
- package/dist/affinda/p-864778d0.entry.js +2 -0
- package/dist/affinda/p-864778d0.entry.js.map +1 -0
- package/dist/affinda/p-8ea22b5d.entry.js +2 -0
- package/dist/affinda/p-8ea22b5d.entry.js.map +1 -0
- package/dist/affinda/{p-97f9f774.entry.js → p-96eac3af.entry.js} +2 -2
- package/dist/affinda/p-98901734.entry.js +2 -0
- package/dist/affinda/p-98901734.entry.js.map +1 -0
- package/dist/affinda/p-9f470d8b.entry.js +2 -0
- package/dist/affinda/p-9f470d8b.entry.js.map +1 -0
- package/dist/affinda/p-BmU_CFQ4.js +3 -0
- package/dist/affinda/p-BmU_CFQ4.js.map +1 -0
- package/dist/affinda/p-a36abb83.entry.js +2 -0
- package/dist/affinda/{p-bf4543ff.entry.js.map → p-a36abb83.entry.js.map} +1 -1
- package/dist/affinda/p-a4e4eb4d.entry.js +2 -0
- package/dist/affinda/{p-d3b2ab0e.entry.js.map → p-a4e4eb4d.entry.js.map} +1 -1
- package/dist/affinda/p-a6365e94.entry.js +2 -0
- package/dist/affinda/p-a6365e94.entry.js.map +1 -0
- package/dist/affinda/p-aaa28806.entry.js +2 -0
- package/dist/affinda/p-aaa28806.entry.js.map +1 -0
- package/dist/affinda/p-acbbe39a.entry.js +2 -0
- package/dist/affinda/{p-ce89c4f1.entry.js.map → p-acbbe39a.entry.js.map} +1 -1
- package/dist/affinda/p-b17735c9.entry.js +2 -0
- package/dist/affinda/p-b17735c9.entry.js.map +1 -0
- package/dist/affinda/p-b3b0ed0c.entry.js +2 -0
- package/dist/affinda/p-b3b0ed0c.entry.js.map +1 -0
- package/dist/affinda/p-be049760.entry.js +2 -0
- package/dist/affinda/p-be049760.entry.js.map +1 -0
- package/dist/affinda/p-c0ee2420.entry.js +2 -0
- package/dist/affinda/p-c0ee2420.entry.js.map +1 -0
- package/dist/affinda/{p-3a9646e6.entry.js → p-c11088fa.entry.js} +2 -2
- package/dist/affinda/p-c298b370.entry.js +2 -0
- package/dist/affinda/p-c298b370.entry.js.map +1 -0
- package/dist/affinda/p-c3e31251.entry.js +2 -0
- package/dist/affinda/p-c3e31251.entry.js.map +1 -0
- package/dist/affinda/p-ce3356f1.entry.js +2 -0
- package/dist/affinda/p-ce3356f1.entry.js.map +1 -0
- package/dist/affinda/p-df148383.entry.js +2 -0
- package/dist/affinda/{p-07990b1f.entry.js.map → p-df148383.entry.js.map} +1 -1
- package/dist/affinda/{p-f8ac0120.entry.js → p-e5af21c2.entry.js} +2 -2
- package/dist/affinda/p-e5d9913c.entry.js +2 -0
- package/dist/affinda/p-e5d9913c.entry.js.map +1 -0
- package/dist/affinda/p-ea06c83b.entry.js +2 -0
- package/dist/affinda/p-ea06c83b.entry.js.map +1 -0
- package/dist/affinda/p-f45b0060.entry.js +2 -0
- package/dist/affinda/{p-050f98cd.entry.js.map → p-f45b0060.entry.js.map} +1 -1
- package/dist/cjs/af-aspect-ratio.cjs.entry.js +2 -2
- package/dist/cjs/af-aspect-ratio.entry.cjs.js.map +1 -1
- package/dist/cjs/af-button-group.cjs.entry.js +2 -2
- package/dist/cjs/af-button.cjs.entry.js +25 -12
- package/dist/cjs/af-button.entry.cjs.js.map +1 -1
- package/dist/cjs/af-card.cjs.entry.js +17 -7
- package/dist/cjs/af-card.entry.cjs.js.map +1 -1
- package/dist/cjs/af-checkbox.cjs.entry.js +58 -0
- package/dist/cjs/af-checkbox.entry.cjs.js.map +1 -0
- package/dist/cjs/af-client-carousel.cjs.entry.js +5 -7
- package/dist/cjs/af-client-carousel.entry.cjs.js.map +1 -1
- package/dist/cjs/af-color-swatch.cjs.entry.js +1 -1
- package/dist/cjs/af-contact-item.cjs.entry.js +2 -2
- package/dist/cjs/af-container.cjs.entry.js +1 -1
- package/dist/cjs/af-feature-accordion.cjs.entry.js +4 -4
- package/dist/cjs/af-feature-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/af-feature-card.cjs.entry.js +59 -0
- package/dist/cjs/af-feature-card.entry.cjs.js.map +1 -0
- package/dist/cjs/af-feature-grid.cjs.entry.js +93 -0
- package/dist/cjs/af-feature-grid.entry.cjs.js.map +1 -0
- package/dist/cjs/af-fieldset.cjs.entry.js +37 -0
- package/dist/cjs/af-fieldset.entry.cjs.js.map +1 -0
- package/dist/cjs/af-footer-column.cjs.entry.js +2 -2
- package/dist/cjs/af-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/af-footer.cjs.entry.js +3 -3
- package/dist/cjs/af-footer.entry.cjs.js.map +1 -1
- package/dist/cjs/af-grid-callout.cjs.entry.js +51 -0
- package/dist/cjs/af-grid-callout.entry.cjs.js.map +1 -0
- package/dist/cjs/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.cjs.js.map +1 -1
- package/dist/cjs/af-heading_5.cjs.entry.js +69 -20
- package/dist/cjs/af-hero-section.cjs.entry.js +11 -5
- package/dist/cjs/af-hero-section.entry.cjs.js.map +1 -1
- package/dist/cjs/af-icon-box.cjs.entry.js +30 -0
- package/dist/cjs/af-icon-box.entry.cjs.js.map +1 -0
- package/dist/cjs/af-icon-button.cjs.entry.js +6 -3
- package/dist/cjs/af-icon-button.entry.cjs.js.map +1 -1
- package/dist/cjs/af-icon-text.cjs.entry.js +36 -0
- package/dist/cjs/af-icon-text.entry.cjs.js.map +1 -0
- package/dist/cjs/af-icon.cjs.entry.js +352 -0
- package/dist/cjs/af-icon.entry.cjs.js.map +1 -0
- package/dist/cjs/af-illustrated-card.cjs.entry.js +36 -0
- package/dist/cjs/af-illustrated-card.entry.cjs.js.map +1 -0
- package/dist/cjs/af-image.cjs.entry.js +18 -0
- package/dist/cjs/af-image.entry.cjs.js.map +1 -0
- package/dist/cjs/af-in-page-banner.cjs.entry.js +47 -0
- package/dist/cjs/af-in-page-banner.entry.cjs.js.map +1 -0
- package/dist/cjs/af-input.cjs.entry.js +104 -0
- package/dist/cjs/af-input.entry.cjs.js.map +1 -0
- package/dist/cjs/af-logo-well.cjs.entry.js +3 -3
- package/dist/cjs/af-logo-well.entry.cjs.js.map +1 -1
- package/dist/cjs/af-nav-card.cjs.entry.js +37 -0
- package/dist/cjs/af-nav-card.entry.cjs.js.map +1 -0
- package/dist/cjs/af-nav-menu-nest.cjs.entry.js +43 -0
- package/dist/cjs/af-nav-menu-nest.entry.cjs.js.map +1 -0
- package/dist/cjs/af-nav-menu.cjs.entry.js +41 -0
- package/dist/cjs/af-nav-menu.entry.cjs.js.map +1 -0
- package/dist/cjs/af-number-badge.cjs.entry.js +42 -0
- package/dist/cjs/af-number-badge.entry.cjs.js.map +1 -0
- package/dist/cjs/af-progress-line.cjs.entry.js +33 -0
- package/dist/cjs/af-progress-line.entry.cjs.js.map +1 -0
- package/dist/cjs/af-radio.cjs.entry.js +43 -0
- package/dist/cjs/af-radio.entry.cjs.js.map +1 -0
- package/dist/cjs/af-section.cjs.entry.js +6 -6
- package/dist/cjs/af-section.entry.cjs.js.map +1 -1
- package/dist/cjs/af-social-link.cjs.entry.js +2 -2
- package/dist/cjs/af-split-section.cjs.entry.js +41 -0
- package/dist/cjs/af-split-section.entry.cjs.js.map +1 -0
- package/dist/cjs/af-switch.cjs.entry.js +48 -0
- package/dist/cjs/af-switch.entry.cjs.js.map +1 -0
- package/dist/cjs/af-tab-bar.cjs.entry.js +88 -0
- package/dist/cjs/af-tab-bar.entry.cjs.js.map +1 -0
- package/dist/cjs/af-tab.cjs.entry.js +64 -0
- package/dist/cjs/af-tab.entry.cjs.js.map +1 -0
- package/dist/cjs/af-tag.cjs.entry.js +37 -0
- package/dist/cjs/af-tag.entry.cjs.js.map +1 -0
- package/dist/cjs/af-testimonial-carousel.cjs.entry.js +27 -15
- package/dist/cjs/af-testimonial-carousel.entry.cjs.js.map +1 -1
- package/dist/cjs/af-testimonial-stat.cjs.entry.js +3 -3
- package/dist/cjs/af-testimonial-stat.entry.cjs.js.map +1 -1
- package/dist/cjs/af-testimonial.cjs.entry.js +27 -3
- package/dist/cjs/af-testimonial.entry.cjs.js.map +1 -1
- package/dist/cjs/af-text-image-nest.cjs.entry.js +30 -0
- package/dist/cjs/af-text-image-nest.entry.cjs.js.map +1 -0
- package/dist/cjs/af-text-image.cjs.entry.js +63 -0
- package/dist/cjs/af-text-image.entry.cjs.js.map +1 -0
- package/dist/cjs/af-textarea.cjs.entry.js +93 -0
- package/dist/cjs/af-textarea.entry.cjs.js.map +1 -0
- package/dist/cjs/af-typography-lockup.cjs.entry.js +7 -7
- package/dist/cjs/af-typography-lockup.entry.cjs.js.map +1 -1
- package/dist/cjs/af-video-container.cjs.entry.js +35 -0
- package/dist/cjs/af-video-container.entry.cjs.js.map +1 -0
- package/dist/cjs/affinda.cjs.js +2 -2
- package/dist/cjs/{index-DfEVhbS6.js → index-ybEiHT0b.js} +130 -6
- package/dist/cjs/index-ybEiHT0b.js.map +1 -0
- package/dist/cjs/index.cjs.js +23 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/backgrounds/wave-overlay-inkwell.svg +3 -0
- package/dist/collection/assets/backgrounds/wave-overlay-mist-green.svg +3 -0
- package/dist/collection/assets/backgrounds/wave-overlay-soft-clay.svg +3 -0
- package/dist/collection/assets/backgrounds/wave-overlay-white-ivory.svg +3 -0
- package/dist/collection/assets/logo-affinda.svg +19 -0
- package/dist/collection/collection-manifest.json +28 -2
- package/dist/collection/components/af-aspect-ratio/af-aspect-ratio.css +2 -0
- package/dist/collection/components/af-button/af-button.css +177 -64
- package/dist/collection/components/af-button/af-button.js +50 -42
- package/dist/collection/components/af-button/af-button.js.map +1 -1
- package/dist/collection/components/af-button-group/af-button-group.js +1 -1
- package/dist/collection/components/af-card/af-card.css +96 -64
- package/dist/collection/components/af-card/af-card.js +32 -33
- package/dist/collection/components/af-card/af-card.js.map +1 -1
- package/dist/collection/components/af-checkbox/af-checkbox.css +96 -0
- package/dist/collection/components/af-checkbox/af-checkbox.js +186 -0
- package/dist/collection/components/af-checkbox/af-checkbox.js.map +1 -0
- package/dist/collection/components/af-client-carousel/af-client-carousel.css +77 -32
- package/dist/collection/components/af-client-carousel/af-client-carousel.js +21 -33
- package/dist/collection/components/af-client-carousel/af-client-carousel.js.map +1 -1
- package/dist/collection/components/af-contact-item/af-contact-item.js +1 -1
- package/dist/collection/components/af-feature-accordion/af-feature-accordion.css +21 -35
- package/dist/collection/components/af-feature-accordion/af-feature-accordion.js +15 -5
- package/dist/collection/components/af-feature-accordion/af-feature-accordion.js.map +1 -1
- package/dist/collection/components/af-feature-card/af-feature-card.css +219 -0
- package/dist/collection/components/af-feature-card/af-feature-card.js +199 -0
- package/dist/collection/components/af-feature-card/af-feature-card.js.map +1 -0
- package/dist/collection/components/af-feature-grid/af-feature-grid.css +119 -0
- package/dist/collection/components/af-feature-grid/af-feature-grid.js +156 -0
- package/dist/collection/components/af-feature-grid/af-feature-grid.js.map +1 -0
- package/dist/collection/components/af-fieldset/af-fieldset.css +61 -0
- package/dist/collection/components/af-fieldset/af-fieldset.js +109 -0
- package/dist/collection/components/af-fieldset/af-fieldset.js.map +1 -0
- package/dist/collection/components/af-footer/af-footer.css +1 -1
- package/dist/collection/components/af-footer/af-footer.js +1 -1
- package/dist/collection/components/af-footer-column/af-footer-column.js +1 -1
- package/dist/collection/components/af-footer-link/af-footer-link.js +1 -1
- package/dist/collection/components/af-grid-callout/af-grid-callout.css +191 -0
- package/dist/collection/components/af-grid-callout/af-grid-callout.js +191 -0
- package/dist/collection/components/af-grid-callout/af-grid-callout.js.map +1 -0
- package/dist/collection/components/af-heading/af-heading.css +25 -33
- package/dist/collection/components/af-heading/af-heading.js +8 -26
- package/dist/collection/components/af-heading/af-heading.js.map +1 -1
- package/dist/collection/components/af-hero-section/af-hero-section.css +118 -12
- package/dist/collection/components/af-hero-section/af-hero-section.js +102 -10
- package/dist/collection/components/af-hero-section/af-hero-section.js.map +1 -1
- package/dist/collection/components/af-icon/af-icon.css +28 -0
- package/dist/collection/components/af-icon/af-icon.js +116 -0
- package/dist/collection/components/af-icon/af-icon.js.map +1 -0
- package/dist/collection/components/af-icon-box/af-icon-box.css +36 -0
- package/dist/collection/components/af-icon-box/af-icon-box.js +97 -0
- package/dist/collection/components/af-icon-box/af-icon-box.js.map +1 -0
- package/dist/collection/components/af-icon-button/af-icon-button.css +42 -54
- package/dist/collection/components/af-icon-button/af-icon-button.js +8 -5
- package/dist/collection/components/af-icon-button/af-icon-button.js.map +1 -1
- package/dist/collection/components/af-icon-text/af-icon-text.css +43 -0
- package/dist/collection/components/af-icon-text/af-icon-text.js +150 -0
- package/dist/collection/components/af-icon-text/af-icon-text.js.map +1 -0
- package/dist/collection/components/af-illustrated-card/af-illustrated-card.css +99 -0
- package/dist/collection/components/af-illustrated-card/af-illustrated-card.js +115 -0
- package/dist/collection/components/af-illustrated-card/af-illustrated-card.js.map +1 -0
- package/dist/collection/components/af-image/af-image.css +27 -0
- package/dist/collection/components/af-image/af-image.js +65 -0
- package/dist/collection/components/af-image/af-image.js.map +1 -0
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.css +379 -0
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.js +266 -0
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.js.map +1 -0
- package/dist/collection/components/af-input/af-input.css +246 -0
- package/dist/collection/components/af-input/af-input.js +527 -0
- package/dist/collection/components/af-input/af-input.js.map +1 -0
- package/dist/collection/components/af-logo/af-logo.css +4 -3
- package/dist/collection/components/af-logo/af-logo.js +1 -1
- package/dist/collection/components/af-logo/af-logo.js.map +1 -1
- package/dist/collection/components/af-logo-well/af-logo-well.css +15 -4
- package/dist/collection/components/af-logo-well/af-logo-well.js +1 -1
- package/dist/collection/components/af-nav-card/af-nav-card.css +70 -0
- package/dist/collection/components/af-nav-card/af-nav-card.js +138 -0
- package/dist/collection/components/af-nav-card/af-nav-card.js.map +1 -0
- package/dist/collection/components/af-nav-item/af-nav-item.css +161 -28
- package/dist/collection/components/af-nav-item/af-nav-item.js +27 -0
- package/dist/collection/components/af-nav-item/af-nav-item.js.map +1 -1
- package/dist/collection/components/af-nav-menu/af-nav-menu.css +91 -0
- package/dist/collection/components/af-nav-menu/af-nav-menu.js +131 -0
- package/dist/collection/components/af-nav-menu/af-nav-menu.js.map +1 -0
- package/dist/collection/components/af-nav-menu-nest/af-nav-menu-nest.css +79 -0
- package/dist/collection/components/af-nav-menu-nest/af-nav-menu-nest.js +129 -0
- package/dist/collection/components/af-nav-menu-nest/af-nav-menu-nest.js.map +1 -0
- package/dist/collection/components/af-navbar/af-navbar.css +91 -8
- package/dist/collection/components/af-navbar/af-navbar.js +113 -3
- package/dist/collection/components/af-navbar/af-navbar.js.map +1 -1
- package/dist/collection/components/af-number-badge/af-number-badge.css +30 -0
- package/dist/collection/components/af-number-badge/af-number-badge.js +131 -0
- package/dist/collection/components/af-number-badge/af-number-badge.js.map +1 -0
- package/dist/collection/components/af-progress-line/af-progress-line.css +44 -0
- package/dist/collection/components/af-progress-line/af-progress-line.js +86 -0
- package/dist/collection/components/af-progress-line/af-progress-line.js.map +1 -0
- package/dist/collection/components/af-radio/af-radio.css +97 -0
- package/dist/collection/components/af-radio/af-radio.js +150 -0
- package/dist/collection/components/af-radio/af-radio.js.map +1 -0
- package/dist/collection/components/af-section/af-section.css +230 -24
- package/dist/collection/components/af-section/af-section.js +11 -10
- package/dist/collection/components/af-section/af-section.js.map +1 -1
- package/dist/collection/components/af-social-link/af-social-link.js +1 -1
- package/dist/collection/components/af-split-section/af-split-section.css +46 -0
- package/dist/collection/components/af-split-section/af-split-section.js +145 -0
- package/dist/collection/components/af-split-section/af-split-section.js.map +1 -0
- package/dist/collection/components/af-switch/af-switch.css +104 -0
- package/dist/collection/components/af-switch/af-switch.js +155 -0
- package/dist/collection/components/af-switch/af-switch.js.map +1 -0
- package/dist/collection/components/af-tab/af-tab.css +182 -0
- package/dist/collection/components/af-tab/af-tab.js +251 -0
- package/dist/collection/components/af-tab/af-tab.js.map +1 -0
- package/dist/collection/components/af-tab-bar/af-tab-bar.css +87 -0
- package/dist/collection/components/af-tab-bar/af-tab-bar.js +171 -0
- package/dist/collection/components/af-tab-bar/af-tab-bar.js.map +1 -0
- package/dist/collection/components/af-tag/af-tag.css +92 -0
- package/dist/collection/components/af-tag/af-tag.js +126 -0
- package/dist/collection/components/af-tag/af-tag.js.map +1 -0
- package/dist/collection/components/af-testimonial/af-testimonial.css +30 -46
- package/dist/collection/components/af-testimonial/af-testimonial.js +118 -1
- package/dist/collection/components/af-testimonial/af-testimonial.js.map +1 -1
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.css +6 -66
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.js +48 -13
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.js.map +1 -1
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.css +9 -16
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.js +1 -1
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.js.map +1 -1
- package/dist/collection/components/af-text/af-text.css +13 -36
- package/dist/collection/components/af-text/af-text.js +10 -28
- package/dist/collection/components/af-text/af-text.js.map +1 -1
- package/dist/collection/components/af-text-image/af-text-image.css +228 -0
- package/dist/collection/components/af-text-image/af-text-image.js +173 -0
- package/dist/collection/components/af-text-image/af-text-image.js.map +1 -0
- package/dist/collection/components/af-text-image-nest/af-text-image-nest.css +110 -0
- package/dist/collection/components/af-text-image-nest/af-text-image-nest.js +71 -0
- package/dist/collection/components/af-text-image-nest/af-text-image-nest.js.map +1 -0
- package/dist/collection/components/af-textarea/af-textarea.css +175 -0
- package/dist/collection/components/af-textarea/af-textarea.js +443 -0
- package/dist/collection/components/af-textarea/af-textarea.js.map +1 -0
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.css +126 -40
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.js +5 -5
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.js.map +1 -1
- package/dist/collection/components/af-video-container/af-video-container.css +102 -0
- package/dist/collection/components/af-video-container/af-video-container.js +142 -0
- package/dist/collection/components/af-video-container/af-video-container.js.map +1 -0
- package/dist/collection/components.js +11 -0
- package/dist/collection/components.js.map +1 -1
- package/dist/components/af-aspect-ratio.js +1 -1
- package/dist/components/af-button-group.js +1 -1
- package/dist/components/af-button.js +1 -1
- package/dist/components/af-card.js +1 -39
- package/dist/components/af-card.js.map +1 -1
- package/dist/components/{af-cta-section.d.ts → af-checkbox.d.ts} +4 -4
- package/dist/components/af-checkbox.js +9 -0
- package/dist/components/af-checkbox.js.map +1 -0
- package/dist/components/af-client-carousel.js +6 -9
- package/dist/components/af-client-carousel.js.map +1 -1
- package/dist/components/af-color-swatch.js +1 -1
- package/dist/components/af-contact-item.js +2 -2
- package/dist/components/af-container.js +1 -1
- package/dist/components/af-feature-accordion.js +4 -4
- package/dist/components/af-feature-accordion.js.map +1 -1
- package/dist/components/af-feature-card.d.ts +11 -0
- package/dist/components/af-feature-card.js +9 -0
- package/dist/components/af-feature-card.js.map +1 -0
- package/dist/components/af-feature-grid.d.ts +11 -0
- package/dist/components/af-feature-grid.js +124 -0
- package/dist/components/af-feature-grid.js.map +1 -0
- package/dist/components/af-fieldset.d.ts +11 -0
- package/dist/components/af-fieldset.js +9 -0
- package/dist/components/af-fieldset.js.map +1 -0
- package/dist/components/af-footer-column.js +2 -2
- package/dist/components/af-footer-link.js +2 -2
- package/dist/components/af-footer.js +3 -3
- package/dist/components/af-footer.js.map +1 -1
- package/dist/components/af-grid-callout.d.ts +11 -0
- package/dist/components/af-grid-callout.js +82 -0
- package/dist/components/af-grid-callout.js.map +1 -0
- package/dist/components/af-heading.js +1 -1
- package/dist/components/af-hero-section.js +25 -9
- package/dist/components/af-hero-section.js.map +1 -1
- package/dist/components/af-icon-box.d.ts +11 -0
- package/dist/components/af-icon-box.js +9 -0
- package/dist/components/af-icon-box.js.map +1 -0
- package/dist/components/af-icon-button.js +1 -1
- package/dist/components/af-icon-text.d.ts +11 -0
- package/dist/components/af-icon-text.js +78 -0
- package/dist/components/af-icon-text.js.map +1 -0
- package/dist/components/af-icon.d.ts +11 -0
- package/dist/components/af-icon.js +9 -0
- package/dist/components/af-icon.js.map +1 -0
- package/dist/components/af-illustrated-card.d.ts +11 -0
- package/dist/components/af-illustrated-card.js +9 -0
- package/dist/components/af-illustrated-card.js.map +1 -0
- package/dist/components/af-image.d.ts +11 -0
- package/dist/components/af-image.js +9 -0
- package/dist/components/af-image.js.map +1 -0
- package/dist/components/af-in-page-banner.d.ts +11 -0
- package/dist/components/af-in-page-banner.js +82 -0
- package/dist/components/af-in-page-banner.js.map +1 -0
- package/dist/components/af-input.d.ts +11 -0
- package/dist/components/af-input.js +9 -0
- package/dist/components/af-input.js.map +1 -0
- package/dist/components/af-logo-well.js +3 -3
- package/dist/components/af-logo-well.js.map +1 -1
- package/dist/components/af-logo.js +1 -1
- package/dist/components/af-nav-card.d.ts +11 -0
- package/dist/components/af-nav-card.js +63 -0
- package/dist/components/af-nav-card.js.map +1 -0
- package/dist/components/af-nav-item.js +1 -1
- package/dist/components/af-nav-menu-nest.d.ts +11 -0
- package/dist/components/af-nav-menu-nest.js +67 -0
- package/dist/components/af-nav-menu-nest.js.map +1 -0
- package/dist/components/af-nav-menu.d.ts +11 -0
- package/dist/components/af-nav-menu.js +66 -0
- package/dist/components/af-nav-menu.js.map +1 -0
- package/dist/components/af-navbar.js +1 -1
- package/dist/components/af-number-badge.d.ts +11 -0
- package/dist/components/af-number-badge.js +66 -0
- package/dist/components/af-number-badge.js.map +1 -0
- package/dist/components/af-progress-line.d.ts +11 -0
- package/dist/components/af-progress-line.js +9 -0
- package/dist/components/af-progress-line.js.map +1 -0
- package/dist/components/af-radio.d.ts +11 -0
- package/dist/components/af-radio.js +9 -0
- package/dist/components/af-radio.js.map +1 -0
- package/dist/components/af-section.js +8 -8
- package/dist/components/af-section.js.map +1 -1
- package/dist/components/af-social-link.js +2 -2
- package/dist/components/af-split-section.d.ts +11 -0
- package/dist/components/af-split-section.js +71 -0
- package/dist/components/af-split-section.js.map +1 -0
- package/dist/components/af-switch.d.ts +11 -0
- package/dist/components/af-switch.js +9 -0
- package/dist/components/af-switch.js.map +1 -0
- package/dist/components/af-tab-bar.d.ts +11 -0
- package/dist/components/af-tab-bar.js +9 -0
- package/dist/components/af-tab-bar.js.map +1 -0
- package/dist/components/af-tab.d.ts +11 -0
- package/dist/components/af-tab.js +9 -0
- package/dist/components/af-tab.js.map +1 -0
- package/dist/components/af-tag.d.ts +11 -0
- package/dist/components/af-tag.js +9 -0
- package/dist/components/af-tag.js.map +1 -0
- package/dist/components/af-testimonial-carousel.js +35 -17
- package/dist/components/af-testimonial-carousel.js.map +1 -1
- package/dist/components/af-testimonial-stat.js +16 -4
- package/dist/components/af-testimonial-stat.js.map +1 -1
- package/dist/components/af-testimonial.js +56 -5
- package/dist/components/af-testimonial.js.map +1 -1
- package/dist/components/af-text-image-nest.d.ts +11 -0
- package/dist/components/af-text-image-nest.js +51 -0
- package/dist/components/af-text-image-nest.js.map +1 -0
- package/dist/components/af-text-image.d.ts +11 -0
- package/dist/components/af-text-image.js +94 -0
- package/dist/components/af-text-image.js.map +1 -0
- package/dist/components/af-text.js +1 -1
- package/dist/components/af-textarea.d.ts +11 -0
- package/dist/components/af-textarea.js +9 -0
- package/dist/components/af-textarea.js.map +1 -0
- package/dist/components/af-typography-lockup.js +1 -1
- package/dist/components/af-video-container.d.ts +11 -0
- package/dist/components/af-video-container.js +70 -0
- package/dist/components/af-video-container.js.map +1 -0
- package/dist/components/index.js +24 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-BBivIwbE.js → p-6uEhsUaO.js} +3 -3
- package/dist/components/{p-BBivIwbE.js.map → p-6uEhsUaO.js.map} +1 -1
- package/dist/components/{p-PLXzXWgX.js → p-BHKA-yEm.js} +4 -4
- package/dist/components/p-BHKA-yEm.js.map +1 -0
- package/dist/components/p-BMp8QbY-.js +68 -0
- package/dist/components/p-BMp8QbY-.js.map +1 -0
- package/dist/components/p-BRN73McC.js +59 -0
- package/dist/components/p-BRN73McC.js.map +1 -0
- package/dist/components/p-BRsO61_R.js +58 -0
- package/dist/components/p-BRsO61_R.js.map +1 -0
- package/dist/components/p-BXZ7aJQf.js +372 -0
- package/dist/components/p-BXZ7aJQf.js.map +1 -0
- package/dist/components/p-Bh4YP9vE.js +74 -0
- package/dist/components/p-Bh4YP9vE.js.map +1 -0
- package/dist/components/p-Br0VERLB.js +81 -0
- package/dist/components/p-Br0VERLB.js.map +1 -0
- package/dist/components/{p-7a3XpKXs.js → p-ByHIHg3l.js} +4 -4
- package/dist/components/{p-7a3XpKXs.js.map → p-ByHIHg3l.js.map} +1 -1
- package/dist/components/p-C0f6y_zg.js +94 -0
- package/dist/components/p-C0f6y_zg.js.map +1 -0
- package/dist/components/p-CCAq3Zj6.js +68 -0
- package/dist/components/p-CCAq3Zj6.js.map +1 -0
- package/dist/components/p-CZyCImor.js +127 -0
- package/dist/components/p-CZyCImor.js.map +1 -0
- package/dist/components/p-C_M8AOaj.js +65 -0
- package/dist/components/p-C_M8AOaj.js.map +1 -0
- package/dist/components/p-Cqp0DdgH.js +58 -0
- package/dist/components/p-Cqp0DdgH.js.map +1 -0
- package/dist/components/{p-Dt4Fpr3O.js → p-CxngDK-N.js} +122 -8
- package/dist/components/p-CxngDK-N.js.map +1 -0
- package/dist/components/{p-BkEmrXbw.js → p-D3UZ60qM.js} +3 -3
- package/dist/components/{p-BkEmrXbw.js.map → p-D3UZ60qM.js.map} +1 -1
- package/dist/components/p-D99aXp3U.js +35 -0
- package/dist/components/p-D99aXp3U.js.map +1 -0
- package/dist/components/p-DBnL9UHx.js +91 -0
- package/dist/components/p-DBnL9UHx.js.map +1 -0
- package/dist/components/p-DOkvrcIE.js +50 -0
- package/dist/components/p-DOkvrcIE.js.map +1 -0
- package/dist/components/p-DW5DrJlQ.js +70 -0
- package/dist/components/p-DW5DrJlQ.js.map +1 -0
- package/dist/components/p-DZ-qivXD.js +55 -0
- package/dist/components/p-DZ-qivXD.js.map +1 -0
- package/dist/components/p-DhdRcSve.js +89 -0
- package/dist/components/p-DhdRcSve.js.map +1 -0
- package/dist/components/p-Dvi1lz3x.js +53 -0
- package/dist/components/p-Dvi1lz3x.js.map +1 -0
- package/dist/components/p-DzkSL2bi.js +141 -0
- package/dist/components/p-DzkSL2bi.js.map +1 -0
- package/dist/components/p-JepBVz99.js +71 -0
- package/dist/components/p-JepBVz99.js.map +1 -0
- package/dist/components/p-_bQXTXUb.js +98 -0
- package/dist/components/p-_bQXTXUb.js.map +1 -0
- package/dist/components/p-l95vl6T1.js +108 -0
- package/dist/components/p-l95vl6T1.js.map +1 -0
- package/dist/components/p-wwnR-hlX.js +52 -0
- package/dist/components/p-wwnR-hlX.js.map +1 -0
- package/dist/components/p-xDRMXxWJ.js +37 -0
- package/dist/components/p-xDRMXxWJ.js.map +1 -0
- package/dist/esm/af-aspect-ratio.entry.js +2 -2
- package/dist/esm/af-aspect-ratio.entry.js.map +1 -1
- package/dist/esm/af-button-group.entry.js +2 -2
- package/dist/esm/af-button.entry.js +25 -12
- package/dist/esm/af-button.entry.js.map +1 -1
- package/dist/esm/af-card.entry.js +17 -7
- package/dist/esm/af-card.entry.js.map +1 -1
- package/dist/esm/af-checkbox.entry.js +56 -0
- package/dist/esm/af-checkbox.entry.js.map +1 -0
- package/dist/esm/af-client-carousel.entry.js +5 -7
- package/dist/esm/af-client-carousel.entry.js.map +1 -1
- package/dist/esm/af-color-swatch.entry.js +1 -1
- package/dist/esm/af-contact-item.entry.js +2 -2
- package/dist/esm/af-container.entry.js +1 -1
- package/dist/esm/af-feature-accordion.entry.js +4 -4
- package/dist/esm/af-feature-accordion.entry.js.map +1 -1
- package/dist/esm/af-feature-card.entry.js +57 -0
- package/dist/esm/af-feature-card.entry.js.map +1 -0
- package/dist/esm/af-feature-grid.entry.js +91 -0
- package/dist/esm/af-feature-grid.entry.js.map +1 -0
- package/dist/esm/af-fieldset.entry.js +35 -0
- package/dist/esm/af-fieldset.entry.js.map +1 -0
- package/dist/esm/af-footer-column.entry.js +2 -2
- package/dist/esm/af-footer-link.entry.js +2 -2
- package/dist/esm/af-footer.entry.js +3 -3
- package/dist/esm/af-footer.entry.js.map +1 -1
- package/dist/esm/af-grid-callout.entry.js +49 -0
- package/dist/esm/af-grid-callout.entry.js.map +1 -0
- package/dist/esm/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.js.map +1 -1
- package/dist/esm/af-heading_5.entry.js +69 -20
- package/dist/esm/af-hero-section.entry.js +11 -5
- package/dist/esm/af-hero-section.entry.js.map +1 -1
- package/dist/esm/af-icon-box.entry.js +28 -0
- package/dist/esm/af-icon-box.entry.js.map +1 -0
- package/dist/esm/af-icon-button.entry.js +6 -3
- package/dist/esm/af-icon-button.entry.js.map +1 -1
- package/dist/esm/af-icon-text.entry.js +34 -0
- package/dist/esm/af-icon-text.entry.js.map +1 -0
- package/dist/esm/af-icon.entry.js +349 -0
- package/dist/esm/af-icon.entry.js.map +1 -0
- package/dist/esm/af-illustrated-card.entry.js +34 -0
- package/dist/esm/af-illustrated-card.entry.js.map +1 -0
- package/dist/esm/af-image.entry.js +16 -0
- package/dist/esm/af-image.entry.js.map +1 -0
- package/dist/esm/af-in-page-banner.entry.js +45 -0
- package/dist/esm/af-in-page-banner.entry.js.map +1 -0
- package/dist/esm/af-input.entry.js +102 -0
- package/dist/esm/af-input.entry.js.map +1 -0
- package/dist/esm/af-logo-well.entry.js +3 -3
- package/dist/esm/af-logo-well.entry.js.map +1 -1
- package/dist/esm/af-nav-card.entry.js +35 -0
- package/dist/esm/af-nav-card.entry.js.map +1 -0
- package/dist/esm/af-nav-menu-nest.entry.js +41 -0
- package/dist/esm/af-nav-menu-nest.entry.js.map +1 -0
- package/dist/esm/af-nav-menu.entry.js +39 -0
- package/dist/esm/af-nav-menu.entry.js.map +1 -0
- package/dist/esm/af-number-badge.entry.js +40 -0
- package/dist/esm/af-number-badge.entry.js.map +1 -0
- package/dist/esm/af-progress-line.entry.js +31 -0
- package/dist/esm/af-progress-line.entry.js.map +1 -0
- package/dist/esm/af-radio.entry.js +41 -0
- package/dist/esm/af-radio.entry.js.map +1 -0
- package/dist/esm/af-section.entry.js +6 -6
- package/dist/esm/af-section.entry.js.map +1 -1
- package/dist/esm/af-social-link.entry.js +2 -2
- package/dist/esm/af-split-section.entry.js +39 -0
- package/dist/esm/af-split-section.entry.js.map +1 -0
- package/dist/esm/af-switch.entry.js +46 -0
- package/dist/esm/af-switch.entry.js.map +1 -0
- package/dist/esm/af-tab-bar.entry.js +86 -0
- package/dist/esm/af-tab-bar.entry.js.map +1 -0
- package/dist/esm/af-tab.entry.js +62 -0
- package/dist/esm/af-tab.entry.js.map +1 -0
- package/dist/esm/af-tag.entry.js +35 -0
- package/dist/esm/af-tag.entry.js.map +1 -0
- package/dist/esm/af-testimonial-carousel.entry.js +27 -15
- package/dist/esm/af-testimonial-carousel.entry.js.map +1 -1
- package/dist/esm/af-testimonial-stat.entry.js +3 -3
- package/dist/esm/af-testimonial-stat.entry.js.map +1 -1
- package/dist/esm/af-testimonial.entry.js +27 -3
- package/dist/esm/af-testimonial.entry.js.map +1 -1
- package/dist/esm/af-text-image-nest.entry.js +28 -0
- package/dist/esm/af-text-image-nest.entry.js.map +1 -0
- package/dist/esm/af-text-image.entry.js +61 -0
- package/dist/esm/af-text-image.entry.js.map +1 -0
- package/dist/esm/af-textarea.entry.js +91 -0
- package/dist/esm/af-textarea.entry.js.map +1 -0
- package/dist/esm/af-typography-lockup.entry.js +7 -7
- package/dist/esm/af-typography-lockup.entry.js.map +1 -1
- package/dist/esm/af-video-container.entry.js +33 -0
- package/dist/esm/af-video-container.entry.js.map +1 -0
- package/dist/esm/affinda.js +3 -3
- package/dist/esm/{index-DI7b0bCy.js → index-BmU_CFQ4.js} +130 -7
- package/dist/esm/index-BmU_CFQ4.js.map +1 -0
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/af-button/af-button.d.ts +22 -9
- package/dist/types/components/af-card/af-card.d.ts +15 -8
- package/dist/types/components/af-checkbox/af-checkbox.d.ts +40 -0
- package/dist/types/components/af-client-carousel/af-client-carousel.d.ts +10 -5
- package/dist/types/components/af-feature-accordion/af-feature-accordion.d.ts +13 -3
- package/dist/types/components/af-feature-card/af-feature-card.d.ts +49 -0
- package/dist/types/components/af-feature-grid/af-feature-grid.d.ts +32 -0
- package/dist/types/components/af-fieldset/af-fieldset.d.ts +23 -0
- package/dist/types/components/af-grid-callout/af-grid-callout.d.ts +57 -0
- package/dist/types/components/af-heading/af-heading.d.ts +5 -2
- package/dist/types/components/af-hero-section/af-hero-section.d.ts +18 -3
- package/dist/types/components/af-icon/af-icon.d.ts +28 -0
- package/dist/types/components/af-icon-box/af-icon-box.d.ts +27 -0
- package/dist/types/components/af-icon-button/af-icon-button.d.ts +5 -2
- package/dist/types/components/af-icon-text/af-icon-text.d.ts +44 -0
- package/dist/types/components/af-illustrated-card/af-illustrated-card.d.ts +28 -0
- package/dist/types/components/af-image/af-image.d.ts +15 -0
- package/dist/types/components/af-in-page-banner/af-in-page-banner.d.ts +56 -0
- package/dist/types/components/af-input/af-input.d.ts +110 -0
- package/dist/types/components/af-nav-card/af-nav-card.d.ts +34 -0
- package/dist/types/components/af-nav-item/af-nav-item.d.ts +6 -0
- package/dist/types/components/af-nav-menu/af-nav-menu.d.ts +28 -0
- package/dist/types/components/af-nav-menu-nest/af-nav-menu-nest.d.ts +42 -0
- package/dist/types/components/af-navbar/af-navbar.d.ts +31 -1
- package/dist/types/components/af-number-badge/af-number-badge.d.ts +29 -0
- package/dist/types/components/af-progress-line/af-progress-line.d.ts +18 -0
- package/dist/types/components/af-radio/af-radio.d.ts +33 -0
- package/dist/types/components/af-section/af-section.d.ts +4 -3
- package/dist/types/components/af-split-section/af-split-section.d.ts +20 -0
- package/dist/types/components/af-switch/af-switch.d.ts +32 -0
- package/dist/types/components/af-tab/af-tab.d.ts +61 -0
- package/dist/types/components/af-tab-bar/af-tab-bar.d.ts +43 -0
- package/dist/types/components/af-tag/af-tag.d.ts +33 -0
- package/dist/types/components/af-testimonial/af-testimonial.d.ts +23 -0
- package/dist/types/components/af-testimonial-carousel/af-testimonial-carousel.d.ts +17 -0
- package/dist/types/components/af-text/af-text.d.ts +6 -3
- package/dist/types/components/af-text-image/af-text-image.d.ts +30 -0
- package/dist/types/components/af-text-image-nest/af-text-image-nest.d.ts +21 -0
- package/dist/types/components/af-textarea/af-textarea.d.ts +92 -0
- package/dist/types/components/af-video-container/af-video-container.d.ts +45 -0
- package/dist/types/components.d.ts +3414 -638
- package/package.json +7 -6
- package/dist/affinda/af-cta-section.entry.esm.js.map +0 -1
- package/dist/affinda/p-050f98cd.entry.js +0 -2
- package/dist/affinda/p-07990b1f.entry.js +0 -2
- package/dist/affinda/p-4a39ddec.entry.js +0 -2
- package/dist/affinda/p-4a39ddec.entry.js.map +0 -1
- package/dist/affinda/p-52f7ea33.entry.js +0 -2
- package/dist/affinda/p-924e6def.entry.js +0 -2
- package/dist/affinda/p-924e6def.entry.js.map +0 -1
- package/dist/affinda/p-954963fa.entry.js +0 -2
- package/dist/affinda/p-954963fa.entry.js.map +0 -1
- package/dist/affinda/p-DI7b0bCy.js +0 -3
- package/dist/affinda/p-DI7b0bCy.js.map +0 -1
- package/dist/affinda/p-ac7efb48.entry.js +0 -2
- package/dist/affinda/p-ac7efb48.entry.js.map +0 -1
- package/dist/affinda/p-b67bbaf7.entry.js +0 -2
- package/dist/affinda/p-b67bbaf7.entry.js.map +0 -1
- package/dist/affinda/p-b6885a9a.entry.js +0 -2
- package/dist/affinda/p-b6885a9a.entry.js.map +0 -1
- package/dist/affinda/p-b7c63852.entry.js +0 -2
- package/dist/affinda/p-b7c63852.entry.js.map +0 -1
- package/dist/affinda/p-b7efbfff.entry.js +0 -2
- package/dist/affinda/p-b7efbfff.entry.js.map +0 -1
- package/dist/affinda/p-bf4543ff.entry.js +0 -2
- package/dist/affinda/p-c2b6199e.entry.js +0 -2
- package/dist/affinda/p-c2b6199e.entry.js.map +0 -1
- package/dist/affinda/p-c5aba33f.entry.js +0 -2
- package/dist/affinda/p-ce89c4f1.entry.js +0 -2
- package/dist/affinda/p-d3b2ab0e.entry.js +0 -2
- package/dist/affinda/p-de52b175.entry.js +0 -2
- package/dist/affinda/p-e367e42b.entry.js +0 -2
- package/dist/affinda/p-e367e42b.entry.js.map +0 -1
- package/dist/cjs/af-cta-section.cjs.entry.js +0 -32
- package/dist/cjs/af-cta-section.entry.cjs.js.map +0 -1
- package/dist/cjs/index-DfEVhbS6.js.map +0 -1
- package/dist/collection/components/af-cta-section/af-cta-section.css +0 -175
- package/dist/collection/components/af-cta-section/af-cta-section.js +0 -183
- package/dist/collection/components/af-cta-section/af-cta-section.js.map +0 -1
- package/dist/components/af-cta-section.js +0 -59
- package/dist/components/af-cta-section.js.map +0 -1
- package/dist/components/p-BKGrl8ua.js +0 -77
- package/dist/components/p-BKGrl8ua.js.map +0 -1
- package/dist/components/p-BTEblSAo.js +0 -63
- package/dist/components/p-BTEblSAo.js.map +0 -1
- package/dist/components/p-BekWfVfB.js +0 -66
- package/dist/components/p-BekWfVfB.js.map +0 -1
- package/dist/components/p-Bg7dSc4D.js +0 -54
- package/dist/components/p-Bg7dSc4D.js.map +0 -1
- package/dist/components/p-D4s4u7tL.js +0 -35
- package/dist/components/p-D4s4u7tL.js.map +0 -1
- package/dist/components/p-DqOwXTsH.js +0 -68
- package/dist/components/p-DqOwXTsH.js.map +0 -1
- package/dist/components/p-Dt4Fpr3O.js.map +0 -1
- package/dist/components/p-PLXzXWgX.js.map +0 -1
- package/dist/components/p-Thu9mUEn.js +0 -41
- package/dist/components/p-Thu9mUEn.js.map +0 -1
- package/dist/components/p-emB0l5gm.js +0 -68
- package/dist/components/p-emB0l5gm.js.map +0 -1
- package/dist/esm/af-cta-section.entry.js +0 -30
- package/dist/esm/af-cta-section.entry.js.map +0 -1
- package/dist/esm/index-DI7b0bCy.js.map +0 -1
- package/dist/types/components/af-cta-section/af-cta-section.d.ts +0 -21
- /package/dist/affinda/{p-de52b175.entry.js.map → p-1d9e532f.entry.js.map} +0 -0
- /package/dist/affinda/{p-a49dc8ac.entry.js.map → p-31d4c1a4.entry.js.map} +0 -0
- /package/dist/affinda/{p-c5aba33f.entry.js.map → p-53ae16fe.entry.js.map} +0 -0
- /package/dist/affinda/{p-dec4c4d5.entry.js.map → p-72f02343.entry.js.map} +0 -0
- /package/dist/affinda/{p-97f9f774.entry.js.map → p-96eac3af.entry.js.map} +0 -0
- /package/dist/affinda/{p-3a9646e6.entry.js.map → p-c11088fa.entry.js.map} +0 -0
- /package/dist/affinda/{p-f8ac0120.entry.js.map → p-e5af21c2.entry.js.map} +0 -0
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
|
-
* Feature accordion component with expandable items and accompanying image
|
|
4
|
-
* Used for showcasing product features with visual examples
|
|
5
|
-
* Features auto-cycling through items with a progress timer
|
|
3
|
+
* Feature accordion component with expandable items and accompanying image.
|
|
4
|
+
* Used for showcasing product features with visual examples.
|
|
5
|
+
* Features auto-cycling through items with a progress timer.
|
|
6
|
+
*
|
|
7
|
+
* **Must be wrapped in a Section component** to inherit theme styling.
|
|
8
|
+
* The component automatically adapts colors based on the parent Section's theme.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Section theme="inkwell">
|
|
13
|
+
* <FeatureAccordion heading="Features" items={...} />
|
|
14
|
+
* </Section>
|
|
15
|
+
* ```
|
|
6
16
|
*/
|
|
7
17
|
export class AfFeatureAccordion {
|
|
8
18
|
constructor() {
|
|
@@ -88,13 +98,13 @@ export class AfFeatureAccordion {
|
|
|
88
98
|
render() {
|
|
89
99
|
const items = this.getItems();
|
|
90
100
|
const currentItem = items[this.expandedIndex];
|
|
91
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '8285d5116d64b9f02d758fa8e0ecb8c4129636d0' }, h("div", { key: '53894f00e6ba9a9900fa63fe199e4448d21e8886', class: "feature-accordion" }, h("div", { key: 'e50c879453d39367bd88e02cc5756a59292b7b71', class: "feature-accordion__container" }, h("h2", { key: 'd2c797f6d1feddafd01b2b933e73e3d71063ae1d', class: "feature-accordion__heading" }, this.heading), h("div", { key: '48ba662a3cd7ab981fd947c4063f81e6ef94773f', class: "feature-accordion__content" }, h("div", { key: '05b190936f6c4a9e849de1b724a577dbf33aba12', class: "feature-accordion__list" }, items.map((item, index) => (h("div", { class: {
|
|
92
102
|
'accordion-item': true,
|
|
93
103
|
'accordion-item--expanded': this.expandedIndex === index
|
|
94
104
|
}, key: index }, h("button", { class: "accordion-item__header", onClick: () => this.handleItemClick(index), "aria-expanded": this.expandedIndex === index ? 'true' : 'false' }, h("h4", { class: "accordion-item__title" }, item.title), h("span", { class: "accordion-item__icon" }, this.expandedIndex === index ? (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M5 12H19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }))) : (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M12 5V19M5 12H19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }))))), h("div", { class: "accordion-item__content", style: {
|
|
95
105
|
maxHeight: this.expandedIndex === index ? '200px' : '0',
|
|
96
106
|
opacity: this.expandedIndex === index ? '1' : '0'
|
|
97
|
-
} }, h("p", { class: "accordion-item__description" }, item.description), this.expandedIndex === index && this.autoCycle && (h("div", { class: "accordion-item__timer-track" }, h("div", { class: "accordion-item__timer-progress", style: { width: `${this.timerProgress}%` } })))))))), h("div", { key: '
|
|
107
|
+
} }, h("p", { class: "accordion-item__description" }, item.description), this.expandedIndex === index && this.autoCycle && (h("div", { class: "accordion-item__timer-track" }, h("div", { class: "accordion-item__timer-progress", style: { width: `${this.timerProgress}%` } })))))))), h("div", { key: '34a3497894ab6aa63acafa62cc8a7029848731e8', class: "feature-accordion__image-container" }, h("div", { key: '3a60c7ffb55e49194d2d3dfb9a324382f1bd2e6a', class: "feature-accordion__image-wrapper" }, currentItem?.imageUrl && (h("img", { key: '1120770253d6442130baea4e74deae1694a36bf7', src: currentItem.imageUrl, alt: currentItem.imageAlt || currentItem.title, class: "feature-accordion__image" })), !currentItem?.imageUrl && (h("div", { key: '50a4b4201d0141f018d7e9ce2e03e2cfc090e2fc', class: "feature-accordion__image-placeholder" }, h("slot", { key: '2d029a56bc680d3f40be5c18841a5477de9c3862', name: "image" }))))))))));
|
|
98
108
|
}
|
|
99
109
|
static get is() { return "af-feature-accordion"; }
|
|
100
110
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"af-feature-accordion.js","sourceRoot":"","sources":["../../../src/components/af-feature-accordion/af-feature-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAShF;;;;GAIG;AAOH,MAAM,OAAO,kBAAkB;IAN/B;QASE,sBAAsB;QACd,YAAO,GAAW,+BAA+B,CAAC;QAE1D,qCAAqC;QAC7B,UAAK,GAAW,IAAI,CAAC;QAE7B,wEAAwE;QAChE,kBAAa,GAAW,IAAI,CAAC;QAErC,sCAAsC;QAC9B,cAAS,GAAY,IAAI,CAAC;QAElC,oCAAoC;QAC3B,kBAAa,GAAW,CAAC,CAAC;QAEnC,wCAAwC;QAC/B,kBAAa,GAAW,GAAG,CAAC;QAE7B,kBAAa,GAAkB,IAAI,CAAC;QACpC,sBAAiB,GAAW,CAAC,CAAC;KA8JvC;IA5JC,gBAAgB;QACd,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC;IACH,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAGD,qBAAqB,CAAC,QAAiB;QACrC,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,YAAY,EAA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E,QAAQ,IAAI,CACxB,4DACE,GAAG,EAAE,WAAW,CAAC,QAAQ,EACzB,GAAG,EAAE,WAAW,CAAC,QAAQ,IAAI,WAAW,CAAC,KAAK,EAC9C,KAAK,EAAC,0BAA0B,GAChC,CACH;gCACA,CAAC,WAAW,EAAE,QAAQ,IAAI,CACzB,4DAAK,KAAK,EAAC,sCAAsC;oCAC/C,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACtB,CACP,CACG,CACF,CACF,CACF,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop, State, Element, Watch } from '@stencil/core';\n\nexport interface FeatureAccordionItem {\n title: string;\n description: string;\n imageUrl?: string;\n imageAlt?: string;\n}\n\n/**\n * Feature accordion component with expandable items and accompanying image\n * Used for showcasing product features with visual examples\n * Features auto-cycling through items with a progress timer\n */\n@Component({\n tag: 'af-feature-accordion',\n styleUrl: 'af-feature-accordion.css',\n shadow: false,\n scoped: true,\n})\nexport class AfFeatureAccordion {\n @Element() el!: HTMLElement;\n\n /** Section heading */\n @Prop() heading: string = 'Give AI agents your paperwork';\n\n /** JSON string of accordion items */\n @Prop() items: string = '[]';\n\n /** Auto-cycle interval in milliseconds (default: 6000ms = 6 seconds) */\n @Prop() cycleInterval: number = 6000;\n\n /** Whether auto-cycling is enabled */\n @Prop() autoCycle: boolean = true;\n\n /** Currently expanded item index */\n @State() expandedIndex: number = 0;\n\n /** Progress of current timer (0-100) */\n @State() timerProgress: number = 100;\n\n private progressTimer: number | null = null;\n private progressStartTime: number = 0;\n\n componentDidLoad() {\n if (this.autoCycle) {\n this.startCycling();\n }\n }\n\n disconnectedCallback() {\n this.stopCycling();\n }\n\n @Watch('autoCycle')\n handleAutoCycleChange(newValue: boolean) {\n if (newValue) {\n this.startCycling();\n } else {\n this.stopCycling();\n }\n }\n\n private getItems(): FeatureAccordionItem[] {\n try {\n return JSON.parse(this.items);\n } catch {\n return [];\n }\n }\n\n private startCycling() {\n this.stopCycling();\n this.progressStartTime = Date.now();\n this.timerProgress = 100;\n \n // Progress animation frame\n const updateProgress = () => {\n const elapsed = Date.now() - this.progressStartTime;\n const remaining = this.cycleInterval - elapsed;\n \n if (remaining <= 0) {\n this.moveToNextItem();\n } else {\n this.timerProgress = (remaining / this.cycleInterval) * 100;\n this.progressTimer = requestAnimationFrame(updateProgress);\n }\n };\n \n this.progressTimer = requestAnimationFrame(updateProgress);\n }\n\n private stopCycling() {\n if (this.progressTimer) {\n cancelAnimationFrame(this.progressTimer);\n this.progressTimer = null;\n }\n }\n\n private moveToNextItem() {\n const items = this.getItems();\n if (items.length === 0) return;\n \n this.expandedIndex = (this.expandedIndex + 1) % items.length;\n // Restart the cycling timer for the new item\n this.startCycling();\n }\n\n private handleItemClick(index: number) {\n // Reset timer when user clicks\n this.expandedIndex = index;\n // Restart the cycling timer for the clicked item\n if (this.autoCycle) {\n this.startCycling();\n }\n }\n\n render() {\n const items = this.getItems();\n const currentItem = items[this.expandedIndex];\n\n return (\n <Host>\n <div class=\"feature-accordion\">\n <div class=\"feature-accordion__container\">\n <h2 class=\"feature-accordion__heading\">{this.heading}</h2>\n \n <div class=\"feature-accordion__content\">\n {/* Left side - Accordion */}\n <div class=\"feature-accordion__list\">\n {items.map((item, index) => (\n <div \n class={{\n 'accordion-item': true,\n 'accordion-item--expanded': this.expandedIndex === index\n }}\n key={index}\n >\n <button \n class=\"accordion-item__header\"\n onClick={() => this.handleItemClick(index)}\n aria-expanded={this.expandedIndex === index ? 'true' : 'false'}\n >\n <h4 class=\"accordion-item__title\">{item.title}</h4>\n <span class=\"accordion-item__icon\">\n {this.expandedIndex === index ? (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 12H19\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n ) : (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 5V19M5 12H19\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n )}\n </span>\n </button>\n <div \n class=\"accordion-item__content\"\n style={{ \n maxHeight: this.expandedIndex === index ? '200px' : '0',\n opacity: this.expandedIndex === index ? '1' : '0'\n }}\n >\n <p class=\"accordion-item__description\">{item.description}</p>\n {this.expandedIndex === index && this.autoCycle && (\n <div class=\"accordion-item__timer-track\">\n <div \n class=\"accordion-item__timer-progress\"\n style={{ width: `${this.timerProgress}%` }}\n ></div>\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n\n {/* Right side - Image */}\n <div class=\"feature-accordion__image-container\">\n <div class=\"feature-accordion__image-wrapper\">\n {currentItem?.imageUrl && (\n <img \n src={currentItem.imageUrl} \n alt={currentItem.imageAlt || currentItem.title}\n class=\"feature-accordion__image\"\n />\n )}\n {!currentItem?.imageUrl && (\n <div class=\"feature-accordion__image-placeholder\">\n <slot name=\"image\"></slot>\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"af-feature-accordion.js","sourceRoot":"","sources":["../../../src/components/af-feature-accordion/af-feature-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAShF;;;;;;;;;;;;;;GAcG;AAOH,MAAM,OAAO,kBAAkB;IAN/B;QASE,sBAAsB;QACd,YAAO,GAAW,+BAA+B,CAAC;QAE1D,qCAAqC;QAC7B,UAAK,GAAW,IAAI,CAAC;QAE7B,wEAAwE;QAChE,kBAAa,GAAW,IAAI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,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;iCAClD;gCAED,SAAG,KAAK,EAAC,6BAA6B,IAAE,IAAI,CAAC,WAAW,CAAK;gCAC5D,IAAI,CAAC,aAAa,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,IAAI,CACjD,WAAK,KAAK,EAAC,6BAA6B;oCACtC,WACE,KAAK,EAAC,gCAAgC,EACtC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,aAAa,GAAG,EAAE,GACrC,CACH,CACP,CACG,CACF,CACP,CAAC,CACE;wBAGN,4DAAK,KAAK,EAAC,oCAAoC;4BAC7C,4DAAK,KAAK,EAAC,kCAAkC;gCAC1C,WAAW,EAAE,QAAQ,IAAI,CACxB,4DACE,GAAG,EAAE,WAAW,CAAC,QAAQ,EACzB,GAAG,EAAE,WAAW,CAAC,QAAQ,IAAI,WAAW,CAAC,KAAK,EAC9C,KAAK,EAAC,0BAA0B,GAChC,CACH;gCACA,CAAC,WAAW,EAAE,QAAQ,IAAI,CACzB,4DAAK,KAAK,EAAC,sCAAsC;oCAC/C,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACtB,CACP,CACG,CACF,CACF,CACF,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop, State, Element, Watch } from '@stencil/core';\n\nexport interface FeatureAccordionItem {\n title: string;\n description: string;\n imageUrl?: string;\n imageAlt?: string;\n}\n\n/**\n * Feature accordion component with expandable items and accompanying image.\n * Used for showcasing product features with visual examples.\n * Features auto-cycling through items with a progress timer.\n * \n * **Must be wrapped in a Section component** to inherit theme styling.\n * The component automatically adapts colors based on the parent Section's theme.\n * \n * @example\n * ```tsx\n * <Section theme=\"inkwell\">\n * <FeatureAccordion heading=\"Features\" items={...} />\n * </Section>\n * ```\n */\n@Component({\n tag: 'af-feature-accordion',\n styleUrl: 'af-feature-accordion.css',\n shadow: false,\n scoped: true,\n})\nexport class AfFeatureAccordion {\n @Element() el!: HTMLElement;\n\n /** Section heading */\n @Prop() heading: string = 'Give AI agents your paperwork';\n\n /** JSON string of accordion items */\n @Prop() items: string = '[]';\n\n /** Auto-cycle interval in milliseconds (default: 6000ms = 6 seconds) */\n @Prop() cycleInterval: number = 6000;\n\n /** Whether auto-cycling is enabled */\n @Prop() autoCycle: boolean = true;\n\n /** Currently expanded item index */\n @State() expandedIndex: number = 0;\n\n /** Progress of current timer (0-100) */\n @State() timerProgress: number = 100;\n\n private progressTimer: number | null = null;\n private progressStartTime: number = 0;\n\n componentDidLoad() {\n if (this.autoCycle) {\n this.startCycling();\n }\n }\n\n disconnectedCallback() {\n this.stopCycling();\n }\n\n @Watch('autoCycle')\n handleAutoCycleChange(newValue: boolean) {\n if (newValue) {\n this.startCycling();\n } else {\n this.stopCycling();\n }\n }\n\n private getItems(): FeatureAccordionItem[] {\n try {\n return JSON.parse(this.items);\n } catch {\n return [];\n }\n }\n\n private startCycling() {\n this.stopCycling();\n this.progressStartTime = Date.now();\n this.timerProgress = 100;\n \n // Progress animation frame\n const updateProgress = () => {\n const elapsed = Date.now() - this.progressStartTime;\n const remaining = this.cycleInterval - elapsed;\n \n if (remaining <= 0) {\n this.moveToNextItem();\n } else {\n this.timerProgress = (remaining / this.cycleInterval) * 100;\n this.progressTimer = requestAnimationFrame(updateProgress);\n }\n };\n \n this.progressTimer = requestAnimationFrame(updateProgress);\n }\n\n private stopCycling() {\n if (this.progressTimer) {\n cancelAnimationFrame(this.progressTimer);\n this.progressTimer = null;\n }\n }\n\n private moveToNextItem() {\n const items = this.getItems();\n if (items.length === 0) return;\n \n this.expandedIndex = (this.expandedIndex + 1) % items.length;\n // Restart the cycling timer for the new item\n this.startCycling();\n }\n\n private handleItemClick(index: number) {\n // Reset timer when user clicks\n this.expandedIndex = index;\n // Restart the cycling timer for the clicked item\n if (this.autoCycle) {\n this.startCycling();\n }\n }\n\n render() {\n const items = this.getItems();\n const currentItem = items[this.expandedIndex];\n\n return (\n <Host>\n <div class=\"feature-accordion\">\n <div class=\"feature-accordion__container\">\n <h2 class=\"feature-accordion__heading\">{this.heading}</h2>\n \n <div class=\"feature-accordion__content\">\n {/* Left side - Accordion */}\n <div class=\"feature-accordion__list\">\n {items.map((item, index) => (\n <div \n class={{\n 'accordion-item': true,\n 'accordion-item--expanded': this.expandedIndex === index\n }}\n key={index}\n >\n <button \n class=\"accordion-item__header\"\n onClick={() => this.handleItemClick(index)}\n aria-expanded={this.expandedIndex === index ? 'true' : 'false'}\n >\n <h4 class=\"accordion-item__title\">{item.title}</h4>\n <span class=\"accordion-item__icon\">\n {this.expandedIndex === index ? (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 12H19\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n ) : (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 5V19M5 12H19\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n )}\n </span>\n </button>\n <div \n class=\"accordion-item__content\"\n style={{ \n maxHeight: this.expandedIndex === index ? '200px' : '0',\n opacity: this.expandedIndex === index ? '1' : '0'\n }}\n >\n <p class=\"accordion-item__description\">{item.description}</p>\n {this.expandedIndex === index && this.autoCycle && (\n <div class=\"accordion-item__timer-track\">\n <div \n class=\"accordion-item__timer-progress\"\n style={{ width: `${this.timerProgress}%` }}\n ></div>\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n\n {/* Right side - Image */}\n <div class=\"feature-accordion__image-container\">\n <div class=\"feature-accordion__image-wrapper\">\n {currentItem?.imageUrl && (\n <img \n src={currentItem.imageUrl} \n alt={currentItem.imageAlt || currentItem.title}\n class=\"feature-accordion__image\"\n />\n )}\n {!currentItem?.imageUrl && (\n <div class=\"feature-accordion__image-placeholder\">\n <slot name=\"image\"></slot>\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Feature Card - Figma Specs
|
|
3
|
+
|
|
4
|
+
Desktop Full-bleed: 544px × 660px, radius 32px
|
|
5
|
+
Desktop Standard default: 544px width, radius 32px
|
|
6
|
+
Desktop Standard large: 777px width, radius 32px
|
|
7
|
+
Mobile Full-bleed: 335px × 442px, radius 24px
|
|
8
|
+
Mobile Standard: 335px width, radius 24px
|
|
9
|
+
========================================================================== */
|
|
10
|
+
|
|
11
|
+
/* ==========================================================================
|
|
12
|
+
Host Element - Controls outer dimensions
|
|
13
|
+
========================================================================== */
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
display: block;
|
|
17
|
+
--af-card-padding: 0;
|
|
18
|
+
--af-card-gap: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Fixed size hosts constrain to Figma dimensions */
|
|
22
|
+
:host([card-size="default"]) {
|
|
23
|
+
width: 544px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([card-size="large"]) {
|
|
27
|
+
width: 777px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Flexible cards fill their container */
|
|
31
|
+
:host([card-size="flexible"]) {
|
|
32
|
+
display: flex;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* ==========================================================================
|
|
38
|
+
Base Feature Card Styles
|
|
39
|
+
========================================================================== */
|
|
40
|
+
|
|
41
|
+
.feature-card {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
position: relative;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
border-radius: var(--border-radius-card-level-1, 32px);
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ==========================================================================
|
|
53
|
+
Full Bleed Layout Mode
|
|
54
|
+
Figma: 544px × 660px (desktop), 335px × 442px (mobile)
|
|
55
|
+
========================================================================== */
|
|
56
|
+
|
|
57
|
+
.feature-card--layout-full-bleed {
|
|
58
|
+
background: var(--background-base, var(--colour-brand-inkwell, #14343b));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Full-bleed fixed sizes have explicit heights on host */
|
|
62
|
+
:host([card-size="default"]) .feature-card--layout-full-bleed,
|
|
63
|
+
:host([card-size="large"]) .feature-card--layout-full-bleed {
|
|
64
|
+
height: 660px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Full-bleed flexible minimum height */
|
|
68
|
+
:host([card-size="flexible"]) .feature-card--layout-full-bleed {
|
|
69
|
+
min-height: 480px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.feature-card__background {
|
|
73
|
+
position: absolute;
|
|
74
|
+
inset: 0;
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
z-index: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.feature-card__background-image {
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
object-fit: cover;
|
|
83
|
+
object-position: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Overlay gradient with text */
|
|
87
|
+
.feature-card__overlay {
|
|
88
|
+
position: absolute;
|
|
89
|
+
bottom: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
right: 0;
|
|
92
|
+
backdrop-filter: blur(2px);
|
|
93
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
|
|
94
|
+
z-index: 1;
|
|
95
|
+
/* Desktop: pt-124px px-32px pb-32px */
|
|
96
|
+
padding: 124px 32px 32px 32px;
|
|
97
|
+
|
|
98
|
+
/* White text on dark overlay */
|
|
99
|
+
--af-typography-heading-primary: var(--typography-heading-secondary, #ffffff);
|
|
100
|
+
--af-typography-heading-secondary: var(--typography-heading-secondary, #ffffff);
|
|
101
|
+
--af-typography-body-default: var(--typography-body-dark, #ffffff);
|
|
102
|
+
--colour-typography-heading-primary: var(--typography-heading-secondary, #ffffff);
|
|
103
|
+
--colour-typography-heading-secondary: var(--typography-heading-secondary, #ffffff);
|
|
104
|
+
--colour-typography-body-default: var(--typography-body-dark, #ffffff);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ==========================================================================
|
|
108
|
+
Standard Layout Mode
|
|
109
|
+
|
|
110
|
+
Structure: .feature-card > af-card[stretch] > [content] + [image-area]
|
|
111
|
+
|
|
112
|
+
When cardSize="flexible", af-card receives stretch prop which enables
|
|
113
|
+
the flex chain. Content grows to fill space, image stays at bottom.
|
|
114
|
+
========================================================================== */
|
|
115
|
+
|
|
116
|
+
.feature-card--layout-standard {
|
|
117
|
+
background: var(--background-level-1, var(--colour-mistgreen-200, #e8eeed));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Standard flexible minimum height */
|
|
121
|
+
:host([card-size="flexible"]) .feature-card--layout-standard {
|
|
122
|
+
min-height: 400px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Content area - grows to push image to bottom (when af-card has stretch) */
|
|
126
|
+
.feature-card__content {
|
|
127
|
+
position: relative;
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
z-index: 1;
|
|
132
|
+
/* Desktop default: pt-40px px-32px pb-12px */
|
|
133
|
+
padding: 40px 32px 12px 32px;
|
|
134
|
+
flex: 1 1 auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Large card content padding: pt-40px px-40px pb-0 */
|
|
138
|
+
:host([card-size="large"]) .feature-card__content {
|
|
139
|
+
padding: 40px 40px 0 40px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* ==========================================================================
|
|
143
|
+
Image Area (Standard Layout)
|
|
144
|
+
Figma: 160px height (desktop), 192px height (mobile)
|
|
145
|
+
========================================================================== */
|
|
146
|
+
|
|
147
|
+
.feature-card__image-area {
|
|
148
|
+
position: relative;
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: 160px;
|
|
151
|
+
flex-shrink: 0;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.feature-card__image {
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: 100%;
|
|
158
|
+
object-fit: cover;
|
|
159
|
+
object-position: center top;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* ==========================================================================
|
|
163
|
+
Typography Lockup Styling
|
|
164
|
+
========================================================================== */
|
|
165
|
+
|
|
166
|
+
.feature-card af-typography-lockup {
|
|
167
|
+
--colour-typography-heading-primary: var(--af-typography-heading-primary, var(--typography-heading-primary, #14343b));
|
|
168
|
+
--colour-typography-body-default: var(--af-typography-body-default, var(--typography-body-default, #2b484f));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* ==========================================================================
|
|
172
|
+
Mobile Responsive Styles (max-width: 768px)
|
|
173
|
+
|
|
174
|
+
Figma:
|
|
175
|
+
- Full-bleed: 335px × 442px, radius 24px
|
|
176
|
+
- Standard: 335px width, radius 24px
|
|
177
|
+
========================================================================== */
|
|
178
|
+
|
|
179
|
+
@media (max-width: 768px) {
|
|
180
|
+
.feature-card {
|
|
181
|
+
border-radius: var(--border-radius-card-level-1, 24px);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Mobile fixed widths on host */
|
|
185
|
+
:host([card-size="default"]),
|
|
186
|
+
:host([card-size="large"]) {
|
|
187
|
+
width: 335px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Mobile full-bleed height: 442px */
|
|
191
|
+
:host([card-size="default"]) .feature-card--layout-full-bleed,
|
|
192
|
+
:host([card-size="large"]) .feature-card--layout-full-bleed {
|
|
193
|
+
height: 442px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Mobile flexible minimum heights */
|
|
197
|
+
:host([card-size="flexible"]) .feature-card--layout-standard {
|
|
198
|
+
min-height: 340px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host([card-size="flexible"]) .feature-card--layout-full-bleed {
|
|
202
|
+
min-height: 380px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Mobile overlay padding: pt-80px px-24px pb-28px */
|
|
206
|
+
.feature-card__overlay {
|
|
207
|
+
padding: 80px 24px 28px 24px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* Mobile content padding: pt-32px px-24px pb-12px */
|
|
211
|
+
.feature-card__content {
|
|
212
|
+
padding: 32px 24px 12px 24px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Mobile image area: 192px height */
|
|
216
|
+
.feature-card__image-area {
|
|
217
|
+
height: 192px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Feature Card molecule component that combines a card with an image.
|
|
4
|
+
*
|
|
5
|
+
* Two layout modes:
|
|
6
|
+
* - `standard`: Theme background with text at top and image at bottom
|
|
7
|
+
* - `full-bleed`: Image covers entire card with text overlay at bottom
|
|
8
|
+
*
|
|
9
|
+
* Responsive: Automatically adapts to mobile viewport (≤768px).
|
|
10
|
+
*
|
|
11
|
+
* Uses af-card atom internally and af-typography-lockup for text hierarchy.
|
|
12
|
+
*
|
|
13
|
+
* @slot - Heading text content
|
|
14
|
+
* @slot body - Description/body text content
|
|
15
|
+
*/
|
|
16
|
+
export class AfFeatureCard {
|
|
17
|
+
constructor() {
|
|
18
|
+
/**
|
|
19
|
+
* Theme variant - sets background color and provides theme context.
|
|
20
|
+
* Only applies to 'standard' layout mode. Defaults to 'mist-green'.
|
|
21
|
+
*/
|
|
22
|
+
this.theme = 'mist-green';
|
|
23
|
+
/**
|
|
24
|
+
* Layout mode for the card.
|
|
25
|
+
* - 'standard': Theme background with text at top and image at bottom
|
|
26
|
+
* - 'full-bleed': Image covers entire card with text overlay at bottom
|
|
27
|
+
*/
|
|
28
|
+
this.layout = 'standard';
|
|
29
|
+
/**
|
|
30
|
+
* Card size variant.
|
|
31
|
+
* - 'default': Fixed 544px × 420px
|
|
32
|
+
* - 'large': Fixed 777px × 480px
|
|
33
|
+
* - 'flexible': Fills container (for grid layouts)
|
|
34
|
+
*/
|
|
35
|
+
this.cardSize = 'default';
|
|
36
|
+
/**
|
|
37
|
+
* Heading size for typography lockup (1-5, where 1 is largest).
|
|
38
|
+
*/
|
|
39
|
+
this.headingSize = 3;
|
|
40
|
+
/**
|
|
41
|
+
* Image alt text for accessibility.
|
|
42
|
+
* Provide meaningful alt text for feature images.
|
|
43
|
+
* Only use empty string for purely decorative images.
|
|
44
|
+
*/
|
|
45
|
+
this.imageAlt = '';
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
const hasImage = !!this.imageSrc;
|
|
49
|
+
const isFullBleed = this.layout === 'full-bleed';
|
|
50
|
+
const wrapperClasses = {
|
|
51
|
+
'feature-card': true,
|
|
52
|
+
[`feature-card--layout-${this.layout}`]: true,
|
|
53
|
+
[`feature-card--size-${this.cardSize}`]: true,
|
|
54
|
+
};
|
|
55
|
+
// Full-bleed mode: image background with overlay
|
|
56
|
+
if (isFullBleed) {
|
|
57
|
+
return (h(Host, null, h("div", { class: wrapperClasses }, hasImage && (h("div", { class: "feature-card__background" }, h("img", { src: this.imageSrc, alt: this.imageAlt, class: "feature-card__background-image" }))), h("div", { class: "feature-card__overlay" }, h("af-typography-lockup", { headingSize: this.headingSize, textAlignment: "left", buttonAlignment: "vertical" }, h("slot", null), h("span", { slot: "description" }, h("slot", { name: "body" })))))));
|
|
58
|
+
}
|
|
59
|
+
// Standard mode: theme card with image at bottom
|
|
60
|
+
const isFlexible = this.cardSize === 'flexible';
|
|
61
|
+
return (h(Host, null, h("div", { class: wrapperClasses }, h("af-card", { theme: this.theme, stretch: isFlexible }, h("div", { class: "feature-card__content" }, h("af-typography-lockup", { headingSize: this.headingSize, textAlignment: "left", buttonAlignment: "vertical" }, h("slot", null), h("span", { slot: "description" }, h("slot", { name: "body" })))), hasImage && (h("div", { class: "feature-card__image-area" }, h("img", { src: this.imageSrc, alt: this.imageAlt, class: "feature-card__image" })))))));
|
|
62
|
+
}
|
|
63
|
+
static get is() { return "af-feature-card"; }
|
|
64
|
+
static get encapsulation() { return "scoped"; }
|
|
65
|
+
static get originalStyleUrls() {
|
|
66
|
+
return {
|
|
67
|
+
"$": ["af-feature-card.css"]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
static get styleUrls() {
|
|
71
|
+
return {
|
|
72
|
+
"$": ["af-feature-card.css"]
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static get properties() {
|
|
76
|
+
return {
|
|
77
|
+
"theme": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "'white' | 'white-ivory' | 'inkwell' | 'mist-green' | 'soft-clay'",
|
|
82
|
+
"resolved": "\"inkwell\" | \"mist-green\" | \"soft-clay\" | \"white\" | \"white-ivory\" | undefined",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": true,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "Theme variant - sets background color and provides theme context.\nOnly applies to 'standard' layout mode. Defaults to 'mist-green'."
|
|
90
|
+
},
|
|
91
|
+
"getter": false,
|
|
92
|
+
"setter": false,
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"attribute": "theme",
|
|
95
|
+
"defaultValue": "'mist-green'"
|
|
96
|
+
},
|
|
97
|
+
"layout": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "'standard' | 'full-bleed'",
|
|
102
|
+
"resolved": "\"full-bleed\" | \"standard\"",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Layout mode for the card.\n- 'standard': Theme background with text at top and image at bottom\n- 'full-bleed': Image covers entire card with text overlay at bottom"
|
|
110
|
+
},
|
|
111
|
+
"getter": false,
|
|
112
|
+
"setter": false,
|
|
113
|
+
"reflect": false,
|
|
114
|
+
"attribute": "layout",
|
|
115
|
+
"defaultValue": "'standard'"
|
|
116
|
+
},
|
|
117
|
+
"cardSize": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "'default' | 'large' | 'flexible'",
|
|
122
|
+
"resolved": "\"default\" | \"flexible\" | \"large\"",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "Card size variant.\n- 'default': Fixed 544px \u00D7 420px\n- 'large': Fixed 777px \u00D7 480px \n- 'flexible': Fills container (for grid layouts)"
|
|
130
|
+
},
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
133
|
+
"reflect": true,
|
|
134
|
+
"attribute": "card-size",
|
|
135
|
+
"defaultValue": "'default'"
|
|
136
|
+
},
|
|
137
|
+
"headingSize": {
|
|
138
|
+
"type": "number",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "1 | 2 | 3 | 4 | 5",
|
|
142
|
+
"resolved": "1 | 2 | 3 | 4 | 5",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "Heading size for typography lockup (1-5, where 1 is largest)."
|
|
150
|
+
},
|
|
151
|
+
"getter": false,
|
|
152
|
+
"setter": false,
|
|
153
|
+
"reflect": false,
|
|
154
|
+
"attribute": "heading-size",
|
|
155
|
+
"defaultValue": "3"
|
|
156
|
+
},
|
|
157
|
+
"imageSrc": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "string",
|
|
162
|
+
"resolved": "string | undefined",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": true,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": "Background/feature image URL."
|
|
170
|
+
},
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
173
|
+
"reflect": false,
|
|
174
|
+
"attribute": "image-src"
|
|
175
|
+
},
|
|
176
|
+
"imageAlt": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "string",
|
|
181
|
+
"resolved": "string",
|
|
182
|
+
"references": {}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": "Image alt text for accessibility.\nProvide meaningful alt text for feature images.\nOnly use empty string for purely decorative images."
|
|
189
|
+
},
|
|
190
|
+
"getter": false,
|
|
191
|
+
"setter": false,
|
|
192
|
+
"reflect": false,
|
|
193
|
+
"attribute": "image-alt",
|
|
194
|
+
"defaultValue": "''"
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=af-feature-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af-feature-card.js","sourceRoot":"","sources":["../../../src/components/af-feature-card/af-feature-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD;;;;;;;;;;;;;GAaG;AAOH,MAAM,OAAO,aAAa;IAN1B;QAOE;;;WAGG;QACK,UAAK,GAAsE,YAAY,CAAC;QAEhG;;;;WAIG;QACK,WAAM,GAA8B,UAAU,CAAC;QAEvD;;;;;WAKG;QACsB,aAAQ,GAAqC,SAAS,CAAC;QAEhF;;WAEG;QACK,gBAAW,GAAsB,CAAC,CAAC;QAO3C;;;;WAIG;QACK,aAAQ,GAAW,EAAE,CAAC;KAkF/B;IAhFC,MAAM;QACJ,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QACjC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,KAAK,YAAY,CAAC;QAEjD,MAAM,cAAc,GAAG;YACrB,cAAc,EAAE,IAAI;YACpB,CAAC,wBAAwB,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI;YAC7C,CAAC,sBAAsB,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI;SAC9C,CAAC;QAEF,iDAAiD;QACjD,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,CACL,EAAC,IAAI;gBACH,WAAK,KAAK,EAAE,cAAc;oBAEvB,QAAQ,IAAI,CACX,WAAK,KAAK,EAAC,0BAA0B;wBACnC,WACE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAC,gCAAgC,GACtC,CACE,CACP;oBAGD,WAAK,KAAK,EAAC,uBAAuB;wBAChC,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,aAAa,EAAC,MAAM,EACpB,eAAe,EAAC,UAAU;4BAE1B,eAAa;4BACb,YAAM,IAAI,EAAC,aAAa;gCACtB,YAAM,IAAI,EAAC,MAAM,GAAQ,CACpB,CACc,CACnB,CACF,CACD,CACR,CAAC;QACJ,CAAC;QAED,iDAAiD;QACjD,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,KAAK,UAAU,CAAC;QAEhD,OAAO,CACL,EAAC,IAAI;YACH,WAAK,KAAK,EAAE,cAAc;gBACxB,eAAS,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU;oBAE7C,WAAK,KAAK,EAAC,uBAAuB;wBAChC,4BACE,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,aAAa,EAAC,MAAM,EACpB,eAAe,EAAC,UAAU;4BAE1B,eAAa;4BACb,YAAM,IAAI,EAAC,aAAa;gCACtB,YAAM,IAAI,EAAC,MAAM,GAAQ,CACpB,CACc,CACnB;oBAGL,QAAQ,IAAI,CACX,WAAK,KAAK,EAAC,0BAA0B;wBACnC,WACE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAC,qBAAqB,GAC3B,CACE,CACP,CACO,CACN,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Host } from '@stencil/core';\n\n/**\n * Feature Card molecule component that combines a card with an image.\n * \n * Two layout modes:\n * - `standard`: Theme background with text at top and image at bottom\n * - `full-bleed`: Image covers entire card with text overlay at bottom\n * \n * Responsive: Automatically adapts to mobile viewport (≤768px).\n * \n * Uses af-card atom internally and af-typography-lockup for text hierarchy.\n * \n * @slot - Heading text content\n * @slot body - Description/body text content\n */\n@Component({\n tag: 'af-feature-card',\n styleUrl: 'af-feature-card.css',\n shadow: false,\n scoped: true,\n})\nexport class AfFeatureCard {\n /**\n * Theme variant - sets background color and provides theme context.\n * Only applies to 'standard' layout mode. Defaults to 'mist-green'.\n */\n @Prop() theme?: 'white' | 'white-ivory' | 'inkwell' | 'mist-green' | 'soft-clay' = 'mist-green';\n\n /**\n * Layout mode for the card.\n * - 'standard': Theme background with text at top and image at bottom\n * - 'full-bleed': Image covers entire card with text overlay at bottom\n */\n @Prop() layout: 'standard' | 'full-bleed' = 'standard';\n\n /**\n * Card size variant.\n * - 'default': Fixed 544px × 420px\n * - 'large': Fixed 777px × 480px \n * - 'flexible': Fills container (for grid layouts)\n */\n @Prop({ reflect: true }) cardSize: 'default' | 'large' | 'flexible' = 'default';\n\n /**\n * Heading size for typography lockup (1-5, where 1 is largest).\n */\n @Prop() headingSize: 1 | 2 | 3 | 4 | 5 = 3;\n\n /**\n * Background/feature image URL.\n */\n @Prop() imageSrc?: string;\n\n /**\n * Image alt text for accessibility.\n * Provide meaningful alt text for feature images.\n * Only use empty string for purely decorative images.\n */\n @Prop() imageAlt: string = '';\n\n render() {\n const hasImage = !!this.imageSrc;\n const isFullBleed = this.layout === 'full-bleed';\n\n const wrapperClasses = {\n 'feature-card': true,\n [`feature-card--layout-${this.layout}`]: true,\n [`feature-card--size-${this.cardSize}`]: true,\n };\n\n // Full-bleed mode: image background with overlay\n if (isFullBleed) {\n return (\n <Host>\n <div class={wrapperClasses}>\n {/* Background image */}\n {hasImage && (\n <div class=\"feature-card__background\">\n <img\n src={this.imageSrc}\n alt={this.imageAlt}\n class=\"feature-card__background-image\"\n />\n </div>\n )}\n\n {/* Content overlay with gradient */}\n <div class=\"feature-card__overlay\">\n <af-typography-lockup\n headingSize={this.headingSize}\n textAlignment=\"left\"\n buttonAlignment=\"vertical\"\n >\n <slot></slot>\n <span slot=\"description\">\n <slot name=\"body\"></slot>\n </span>\n </af-typography-lockup>\n </div>\n </div>\n </Host>\n );\n }\n\n // Standard mode: theme card with image at bottom\n const isFlexible = this.cardSize === 'flexible';\n \n return (\n <Host>\n <div class={wrapperClasses}>\n <af-card theme={this.theme} stretch={isFlexible}>\n {/* Content area with typography lockup */}\n <div class=\"feature-card__content\">\n <af-typography-lockup\n headingSize={this.headingSize}\n textAlignment=\"left\"\n buttonAlignment=\"vertical\"\n >\n <slot></slot>\n <span slot=\"description\">\n <slot name=\"body\"></slot>\n </span>\n </af-typography-lockup>\n </div>\n\n {/* Image area at bottom */}\n {hasImage && (\n <div class=\"feature-card__image-area\">\n <img\n src={this.imageSrc}\n alt={this.imageAlt}\n class=\"feature-card__image\"\n />\n </div>\n )}\n </af-card>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* ==========================================================================
|
|
7
|
+
Base Feature Grid Styles
|
|
8
|
+
========================================================================== */
|
|
9
|
+
|
|
10
|
+
.feature-grid {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* ==========================================================================
|
|
18
|
+
Cards Container - CSS Grid Layout
|
|
19
|
+
========================================================================== */
|
|
20
|
+
|
|
21
|
+
.feature-grid__cards {
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: repeat(4, 1fr);
|
|
24
|
+
gap: 24px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
max-width: 1440px;
|
|
27
|
+
align-items: stretch;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Ensure feature cards fill their grid cells */
|
|
31
|
+
.feature-grid__cards>af-feature-card {
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Column variants */
|
|
36
|
+
.feature-grid--cols-3 .feature-grid__cards {
|
|
37
|
+
grid-template-columns: repeat(3, 1fr);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.feature-grid--cols-2 .feature-grid__cards {
|
|
41
|
+
grid-template-columns: repeat(2, 1fr);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.feature-grid--cols-1 .feature-grid__cards {
|
|
45
|
+
grid-template-columns: 1fr;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ==========================================================================
|
|
49
|
+
Progress Line (scroll mode indicator)
|
|
50
|
+
========================================================================== */
|
|
51
|
+
|
|
52
|
+
.feature-grid__progress {
|
|
53
|
+
display: none;
|
|
54
|
+
width: 100%;
|
|
55
|
+
margin-top: 16px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ==========================================================================
|
|
59
|
+
Mobile Responsive Styles (max-width: 768px)
|
|
60
|
+
========================================================================== */
|
|
61
|
+
|
|
62
|
+
@media (max-width: 768px) {
|
|
63
|
+
.feature-grid__cards {
|
|
64
|
+
gap: 16px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Mobile List Mode - single column stack */
|
|
68
|
+
.feature-grid--mobile-list .feature-grid__cards {
|
|
69
|
+
grid-template-columns: 1fr;
|
|
70
|
+
gap: 20px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Mobile Grid Mode - keep 2 columns */
|
|
74
|
+
.feature-grid--mobile-grid .feature-grid__cards {
|
|
75
|
+
grid-template-columns: repeat(2, 1fr);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Mobile Scroll Mode - horizontal scroll */
|
|
79
|
+
.feature-grid--mobile-scroll .feature-grid__cards {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-wrap: nowrap;
|
|
82
|
+
overflow-x: auto;
|
|
83
|
+
overflow-y: hidden;
|
|
84
|
+
scroll-snap-type: x mandatory;
|
|
85
|
+
-webkit-overflow-scrolling: touch;
|
|
86
|
+
gap: 16px;
|
|
87
|
+
padding-bottom: 8px;
|
|
88
|
+
scrollbar-width: none;
|
|
89
|
+
-ms-overflow-style: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.feature-grid--mobile-scroll .feature-grid__cards::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.feature-grid--mobile-scroll .feature-grid__cards>af-feature-card {
|
|
97
|
+
flex: 0 0 280px;
|
|
98
|
+
scroll-snap-align: start;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.feature-grid--mobile-scroll .feature-grid__progress {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* ==========================================================================
|
|
107
|
+
Tablet breakpoint (769px - 1024px)
|
|
108
|
+
========================================================================== */
|
|
109
|
+
|
|
110
|
+
@media (min-width: 769px) and (max-width: 1024px) {
|
|
111
|
+
.feature-grid__cards {
|
|
112
|
+
grid-template-columns: repeat(2, 1fr);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.feature-grid--cols-3 .feature-grid__cards,
|
|
116
|
+
.feature-grid--cols-4 .feature-grid__cards {
|
|
117
|
+
grid-template-columns: repeat(2, 1fr);
|
|
118
|
+
}
|
|
119
|
+
}
|