@affinda/wc 0.0.25 → 0.0.26
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/affinda.esm.js +1 -1
- package/dist/affinda/{p-3b4fb1a5.entry.js → p-00a226ba.entry.js} +1 -1
- package/dist/affinda/{p-0c408447.entry.js → p-0979ad4d.entry.js} +1 -1
- package/dist/affinda/p-14c85efd.entry.js +1 -0
- package/dist/affinda/{p-b0babcae.entry.js → p-1e37fea2.entry.js} +1 -1
- package/dist/affinda/{p-7c4f05a7.entry.js → p-1f810e9c.entry.js} +1 -1
- package/dist/affinda/p-203a908b.entry.js +1 -0
- package/dist/affinda/{p-4844d749.entry.js → p-23f9e0cc.entry.js} +1 -1
- package/dist/affinda/{p-b563bb90.entry.js → p-2ab645a3.entry.js} +1 -1
- package/dist/affinda/p-30c704f8.entry.js +1 -0
- package/dist/affinda/p-37977b9d.entry.js +1 -0
- package/dist/affinda/{p-e169a37b.entry.js → p-3b3f69a5.entry.js} +1 -1
- package/dist/affinda/{p-45d62b98.entry.js → p-4196ab5d.entry.js} +1 -1
- package/dist/affinda/p-4521a8f3.entry.js +1 -0
- package/dist/affinda/{p-678cb08c.entry.js → p-46c9b92e.entry.js} +1 -1
- package/dist/affinda/p-485cfd5d.entry.js +1 -0
- package/dist/affinda/{p-470b9a06.entry.js → p-50a6a219.entry.js} +1 -1
- package/dist/affinda/p-542fd771.entry.js +1 -0
- package/dist/affinda/{p-ad71a40c.entry.js → p-666fc4a6.entry.js} +1 -1
- package/dist/affinda/{p-da9d1f7d.entry.js → p-687f157a.entry.js} +1 -1
- package/dist/affinda/{p-66dd6356.entry.js → p-76b6d6e0.entry.js} +1 -1
- package/dist/affinda/p-82674a06.entry.js +1 -0
- package/dist/affinda/p-82fb88df.entry.js +1 -0
- package/dist/affinda/{p-416836f3.entry.js → p-87daf220.entry.js} +1 -1
- package/dist/affinda/p-9133ff23.entry.js +1 -0
- package/dist/affinda/{p-821c1522.entry.js → p-92904a41.entry.js} +1 -1
- package/dist/affinda/{p-39967eba.entry.js → p-a12a37b6.entry.js} +1 -1
- package/dist/affinda/p-a6210fab.entry.js +1 -0
- package/dist/affinda/{p-1d94a137.entry.js → p-b049555b.entry.js} +1 -1
- package/dist/affinda/{p-1f51e065.entry.js → p-b8dde234.entry.js} +1 -1
- package/dist/affinda/p-c03893bd.entry.js +1 -0
- package/dist/affinda/p-ca14e17a.entry.js +1 -0
- package/dist/affinda/p-cb889d6b.entry.js +1 -0
- package/dist/affinda/{p-29fd5654.entry.js → p-cdfaffc6.entry.js} +1 -1
- package/dist/affinda/{p-6059b95e.entry.js → p-cfe018f1.entry.js} +1 -1
- package/dist/affinda/p-d7129564.entry.js +1 -0
- package/dist/affinda/{p-8c34efbb.entry.js → p-d8ad81a4.entry.js} +1 -1
- package/dist/affinda/{p-21b7ea67.entry.js → p-d9cfea73.entry.js} +1 -1
- package/dist/affinda/{p-dce846f2.entry.js → p-da2759a0.entry.js} +1 -1
- package/dist/affinda/{p-fb01c4e0.entry.js → p-dd47655f.entry.js} +1 -1
- package/dist/affinda/p-e0915179.entry.js +1 -0
- package/dist/affinda/{p-c1cb8ef8.entry.js → p-ebb36c5f.entry.js} +1 -1
- package/dist/affinda/p-f3d5d1be.entry.js +1 -0
- package/dist/affinda/{p-7bc1ed79.entry.js → p-f617ae1d.entry.js} +1 -1
- package/dist/affinda/p-fcb04e98.entry.js +1 -0
- package/dist/affinda/{p-e91ef47c.entry.js → p-fd603900.entry.js} +1 -1
- package/dist/cjs/af-accordion-item.cjs.entry.js +1 -27
- package/dist/cjs/af-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-button.cjs.entry.js +5 -4
- package/dist/cjs/af-card.cjs.entry.js +2 -2
- package/dist/cjs/af-center.cjs.entry.js +1 -1
- package/dist/cjs/af-client-carousel.cjs.entry.js +1 -1
- package/dist/cjs/af-contact-item.cjs.entry.js +1 -1
- package/dist/cjs/af-divider.cjs.entry.js +1 -1
- package/dist/cjs/af-feature-accordion.cjs.entry.js +2 -2
- package/dist/cjs/af-feature-grid.cjs.entry.js +1 -1
- package/dist/cjs/af-footer-column.cjs.entry.js +1 -1
- package/dist/cjs/af-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/af-footer.cjs.entry.js +1 -1
- package/dist/cjs/af-grid.cjs.entry.js +2 -2
- package/dist/cjs/af-icon-box.cjs.entry.js +1 -1
- package/dist/cjs/af-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/af-icon-text.cjs.entry.js +1 -1
- package/dist/cjs/af-illustrated-card.cjs.entry.js +1 -1
- package/dist/cjs/af-image.cjs.entry.js +12 -2
- package/dist/cjs/af-in-page-banner.cjs.entry.js +2 -2
- package/dist/cjs/af-inline.cjs.entry.js +1 -1
- package/dist/cjs/af-logo-well.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/af-nav-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-menu-nest.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-menu.cjs.entry.js +1 -1
- package/dist/cjs/af-number-badge.cjs.entry.js +1 -1
- package/dist/cjs/af-progress-line.cjs.entry.js +2 -2
- package/dist/cjs/af-section.cjs.entry.js +3 -3
- package/dist/cjs/af-show.cjs.entry.js +1 -1
- package/dist/cjs/af-social-link.cjs.entry.js +1 -1
- package/dist/cjs/af-spacer.cjs.entry.js +1 -1
- package/dist/cjs/af-split-section.cjs.entry.js +2 -2
- package/dist/cjs/af-stack.cjs.entry.js +1 -1
- package/dist/cjs/af-stepper-step.cjs.entry.js +1 -1
- package/dist/cjs/af-stepper.cjs.entry.js +1 -1
- package/dist/cjs/af-tag.cjs.entry.js +7 -8
- package/dist/cjs/af-testimonial-carousel.cjs.entry.js +1 -1
- package/dist/cjs/af-testimonial-stat.cjs.entry.js +1 -1
- package/dist/cjs/af-testimonial.cjs.entry.js +3 -3
- package/dist/cjs/af-text-image-nest.cjs.entry.js +1 -1
- package/dist/cjs/af-theme-override.cjs.entry.js +2 -2
- package/dist/cjs/af-typography-lockup.cjs.entry.js +1 -1
- package/dist/cjs/af-video-container.cjs.entry.js +1 -1
- package/dist/cjs/af-visually-hidden.cjs.entry.js +1 -1
- package/dist/cjs/affinda.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/af-accordion/af-accordion.js +1 -1
- package/dist/collection/components/af-accordion-item/af-accordion-item.js +1 -27
- package/dist/collection/components/af-button/af-button.css +24 -24
- package/dist/collection/components/af-button/af-button.js +10 -9
- package/dist/collection/components/af-card/af-card.css +2 -2
- package/dist/collection/components/af-card/af-card.js +1 -1
- package/dist/collection/components/af-center/af-center.js +1 -1
- package/dist/collection/components/af-client-carousel/af-client-carousel.js +1 -1
- package/dist/collection/components/af-contact-item/af-contact-item.js +1 -1
- package/dist/collection/components/af-divider/af-divider.js +1 -1
- package/dist/collection/components/af-feature-accordion/af-feature-accordion.js +2 -2
- package/dist/collection/components/af-feature-grid/af-feature-grid.js +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/af-grid.js +2 -2
- package/dist/collection/components/af-icon-box/af-icon-box.js +1 -1
- package/dist/collection/components/af-icon-button/af-icon-button.css +2 -2
- package/dist/collection/components/af-icon-text/af-icon-text.js +3 -3
- package/dist/collection/components/af-illustrated-card/af-illustrated-card.js +4 -3
- package/dist/collection/components/af-image/af-image.css +21 -4
- package/dist/collection/components/af-image/af-image.js +33 -1
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.css +5 -3
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.js +11 -1
- package/dist/collection/components/af-inline/af-inline.js +1 -1
- package/dist/collection/components/af-logo-well/af-logo-well.js +1 -1
- package/dist/collection/components/af-nav-accordion/af-nav-accordion.js +1 -1
- package/dist/collection/components/af-nav-accordion-item/af-nav-accordion-item.js +2 -2
- package/dist/collection/components/af-nav-menu/af-nav-menu.js +1 -1
- package/dist/collection/components/af-nav-menu-nest/af-nav-menu-nest.js +1 -1
- package/dist/collection/components/af-number-badge/af-number-badge.js +1 -1
- package/dist/collection/components/af-progress-line/af-progress-line.js +2 -2
- package/dist/collection/components/af-section/af-section.css +16 -15
- package/dist/collection/components/af-section/af-section.js +2 -2
- package/dist/collection/components/af-show/af-show.js +1 -1
- package/dist/collection/components/af-social-link/af-social-link.js +1 -1
- package/dist/collection/components/af-spacer/af-spacer.js +1 -1
- package/dist/collection/components/af-split-section/af-split-section.js +2 -2
- package/dist/collection/components/af-stack/af-stack.js +1 -1
- package/dist/collection/components/af-stepper/af-stepper.js +1 -1
- package/dist/collection/components/af-stepper-step/af-stepper-step.js +1 -1
- package/dist/collection/components/af-tag/af-tag.css +41 -21
- package/dist/collection/components/af-tag/af-tag.js +16 -13
- package/dist/collection/components/af-testimonial/af-testimonial.css +28 -6
- package/dist/collection/components/af-testimonial/af-testimonial.js +14 -6
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.js +1 -1
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.js +1 -1
- package/dist/collection/components/af-text-image-nest/af-text-image-nest.js +1 -1
- package/dist/collection/components/af-theme-override/af-theme-override.css +15 -15
- package/dist/collection/components/af-theme-override/af-theme-override.js +1 -1
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.css +30 -4
- package/dist/collection/components/af-video-container/af-video-container.js +1 -1
- package/dist/collection/components/af-visually-hidden/af-visually-hidden.js +1 -1
- package/dist/components/af-accordion-item.js +1 -1
- package/dist/components/af-accordion.js +1 -1
- package/dist/components/af-button.js +1 -1
- package/dist/components/af-card.js +1 -1
- package/dist/components/af-center.js +1 -1
- package/dist/components/af-client-carousel.js +1 -1
- package/dist/components/af-contact-item.js +1 -1
- package/dist/components/af-divider.js +1 -1
- package/dist/components/af-feature-accordion.js +1 -1
- package/dist/components/af-feature-card.js +1 -1
- package/dist/components/af-feature-grid.js +1 -1
- package/dist/components/af-footer-column.js +1 -1
- package/dist/components/af-footer-link.js +1 -1
- package/dist/components/af-footer.js +1 -1
- package/dist/components/af-grid-callout.js +1 -1
- package/dist/components/af-grid.js +1 -1
- package/dist/components/af-icon-box.js +1 -1
- package/dist/components/af-icon-button.js +1 -1
- package/dist/components/af-icon-text.js +1 -1
- package/dist/components/af-illustrated-card.js +1 -1
- package/dist/components/af-image.js +1 -1
- package/dist/components/af-in-page-banner.js +1 -1
- package/dist/components/af-inline.js +1 -1
- package/dist/components/af-logo-well.js +1 -1
- package/dist/components/af-nav-accordion-item.js +1 -1
- package/dist/components/af-nav-accordion.js +1 -1
- package/dist/components/af-nav-menu-nest.js +1 -1
- package/dist/components/af-nav-menu.js +1 -1
- package/dist/components/af-number-badge.js +1 -1
- package/dist/components/af-progress-line.js +1 -1
- package/dist/components/af-section.js +1 -1
- package/dist/components/af-show.js +1 -1
- package/dist/components/af-social-link.js +1 -1
- package/dist/components/af-spacer.js +1 -1
- package/dist/components/af-split-section.js +1 -1
- package/dist/components/af-stack.js +1 -1
- package/dist/components/af-stepper-step.js +1 -1
- package/dist/components/af-stepper.js +1 -1
- package/dist/components/af-tag.js +1 -1
- package/dist/components/af-testimonial-carousel.js +1 -1
- package/dist/components/af-testimonial-stat.js +1 -1
- package/dist/components/af-testimonial.js +1 -1
- package/dist/components/af-text-image-nest.js +1 -1
- package/dist/components/af-text-image.js +1 -1
- package/dist/components/af-theme-override.js +1 -1
- package/dist/components/af-typography-lockup.js +1 -1
- package/dist/components/af-video-container.js +1 -1
- package/dist/components/af-visually-hidden.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BGeRQgDo.js +1 -0
- package/dist/components/p-BUFbtjxU.js +1 -0
- package/dist/components/p-BeVM-2kH.js +1 -0
- package/dist/components/p-BlfywPKX.js +1 -0
- package/dist/components/{p-BE3eM0xx.js → p-BwpItMWU.js} +1 -1
- package/dist/components/p-BzH2LxRQ.js +1 -0
- package/dist/components/p-CSpMqpfj.js +1 -0
- package/dist/components/{p-sbtSgHjb.js → p-Dvos4xtG.js} +1 -1
- package/dist/components/p-HkfUr6-S.js +1 -0
- package/dist/components/p-vWuqpbX0.js +1 -0
- package/dist/esm/af-accordion-item.entry.js +1 -27
- package/dist/esm/af-accordion.entry.js +1 -1
- package/dist/esm/af-button.entry.js +5 -4
- package/dist/esm/af-card.entry.js +2 -2
- package/dist/esm/af-center.entry.js +1 -1
- package/dist/esm/af-client-carousel.entry.js +1 -1
- package/dist/esm/af-contact-item.entry.js +1 -1
- package/dist/esm/af-divider.entry.js +1 -1
- package/dist/esm/af-feature-accordion.entry.js +2 -2
- package/dist/esm/af-feature-grid.entry.js +1 -1
- package/dist/esm/af-footer-column.entry.js +1 -1
- package/dist/esm/af-footer-link.entry.js +1 -1
- package/dist/esm/af-footer.entry.js +1 -1
- package/dist/esm/af-grid.entry.js +2 -2
- package/dist/esm/af-icon-box.entry.js +1 -1
- package/dist/esm/af-icon-button.entry.js +1 -1
- package/dist/esm/af-icon-text.entry.js +1 -1
- package/dist/esm/af-illustrated-card.entry.js +1 -1
- package/dist/esm/af-image.entry.js +12 -2
- package/dist/esm/af-in-page-banner.entry.js +2 -2
- package/dist/esm/af-inline.entry.js +1 -1
- package/dist/esm/af-logo-well.entry.js +1 -1
- package/dist/esm/af-nav-accordion-item.entry.js +2 -2
- package/dist/esm/af-nav-accordion.entry.js +1 -1
- package/dist/esm/af-nav-menu-nest.entry.js +1 -1
- package/dist/esm/af-nav-menu.entry.js +1 -1
- package/dist/esm/af-number-badge.entry.js +1 -1
- package/dist/esm/af-progress-line.entry.js +2 -2
- package/dist/esm/af-section.entry.js +3 -3
- package/dist/esm/af-show.entry.js +1 -1
- package/dist/esm/af-social-link.entry.js +1 -1
- package/dist/esm/af-spacer.entry.js +1 -1
- package/dist/esm/af-split-section.entry.js +2 -2
- package/dist/esm/af-stack.entry.js +1 -1
- package/dist/esm/af-stepper-step.entry.js +1 -1
- package/dist/esm/af-stepper.entry.js +1 -1
- package/dist/esm/af-tag.entry.js +7 -8
- package/dist/esm/af-testimonial-carousel.entry.js +1 -1
- package/dist/esm/af-testimonial-stat.entry.js +1 -1
- package/dist/esm/af-testimonial.entry.js +3 -3
- package/dist/esm/af-text-image-nest.entry.js +1 -1
- package/dist/esm/af-theme-override.entry.js +2 -2
- package/dist/esm/af-typography-lockup.entry.js +1 -1
- package/dist/esm/af-video-container.entry.js +1 -1
- package/dist/esm/af-visually-hidden.entry.js +1 -1
- package/dist/esm/affinda.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/af-button/af-button.d.ts +6 -5
- package/dist/types/components/af-icon-text/af-icon-text.d.ts +2 -2
- package/dist/types/components/af-illustrated-card/af-illustrated-card.d.ts +3 -2
- package/dist/types/components/af-image/af-image.d.ts +10 -0
- package/dist/types/components/af-in-page-banner/af-in-page-banner.d.ts +10 -0
- package/dist/types/components/af-tag/af-tag.d.ts +10 -7
- package/dist/types/components/af-testimonial/af-testimonial.d.ts +11 -2
- package/dist/types/components.d.ts +96 -37
- package/package.json +1 -1
- package/dist/affinda/p-04a096ee.entry.js +0 -1
- package/dist/affinda/p-26362b90.entry.js +0 -1
- package/dist/affinda/p-2e1df315.entry.js +0 -1
- package/dist/affinda/p-43c24797.entry.js +0 -1
- package/dist/affinda/p-4758f89c.entry.js +0 -1
- package/dist/affinda/p-4c362739.entry.js +0 -1
- package/dist/affinda/p-5636afa9.entry.js +0 -1
- package/dist/affinda/p-60cf2a82.entry.js +0 -1
- package/dist/affinda/p-65207722.entry.js +0 -1
- package/dist/affinda/p-69cccdef.entry.js +0 -1
- package/dist/affinda/p-6d43ed06.entry.js +0 -1
- package/dist/affinda/p-6dc635ec.entry.js +0 -1
- package/dist/affinda/p-6f5d8680.entry.js +0 -1
- package/dist/affinda/p-b435de99.entry.js +0 -1
- package/dist/affinda/p-c1df7855.entry.js +0 -1
- package/dist/affinda/p-c83e8184.entry.js +0 -1
- package/dist/affinda/p-d3d9eac1.entry.js +0 -1
- package/dist/affinda/p-ddd41c87.entry.js +0 -1
- package/dist/components/p-B7lJGMfD.js +0 -1
- package/dist/components/p-BAJW_4SY.js +0 -1
- package/dist/components/p-BMwWkh8F.js +0 -1
- package/dist/components/p-CQfk7gDb.js +0 -1
- package/dist/components/p-CRW9bpXa.js +0 -1
- package/dist/components/p-CwPFdy8d.js +0 -1
- package/dist/components/p-Doypq9O5.js +0 -1
- package/dist/components/p-wM1k9Wi7.js +0 -1
|
@@ -11,7 +11,7 @@ export class AfContactItem {
|
|
|
11
11
|
this.value = '';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '1a52a5ea61e7ef04f3b86e8338ed6984a57101a2' }, h("div", { key: '9c69396e916f489d572f045e78daf990a72e0d24', class: "contact-item" }, this.label && (h("h5", { key: '7575301c7a83aa2034aaaf9b9bdb2a0bd5e072bb', class: "contact-item__label" }, this.label)), this.value && (h("p", { key: '5cbca2b4420b2184fb08ac7f1edb22bce50b9c4c', class: "contact-item__value" }, this.value)), h("slot", { key: '45624be318ed9146a9ec0f2b81af110f8cb82ff6' }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "af-contact-item"; }
|
|
17
17
|
static get encapsulation() { return "scoped"; }
|
|
@@ -28,7 +28,7 @@ export class AfDivider {
|
|
|
28
28
|
marginTop: spacingValue,
|
|
29
29
|
marginBottom: spacingValue,
|
|
30
30
|
};
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '6d986be8da228de6f6203c3e3fc38f79751c1e97', class: {
|
|
32
32
|
'divider': true,
|
|
33
33
|
'divider--horizontal': !isVertical,
|
|
34
34
|
'divider--vertical': isVertical,
|
|
@@ -98,13 +98,13 @@ export class AfFeatureAccordion {
|
|
|
98
98
|
render() {
|
|
99
99
|
const items = this.getItems();
|
|
100
100
|
const currentItem = items[this.expandedIndex];
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '03ae097e99c77b487ca8fe64571840c63e7da862' }, h("div", { key: '2ad42ea20ce150e762763a3fb58ba8c52f1b31a9', class: "feature-accordion" }, h("div", { key: 'e6952ea34da35c5ee7e77c0f43cfc328b4ecbb05', class: "feature-accordion__container" }, h("h2", { key: '8d360f7af4c0de8ddad629d209c41fcc56a55a95', class: "feature-accordion__heading" }, this.heading), h("div", { key: '56b3155755a3b0d68ff89727df3ae9aae70defd4', class: "feature-accordion__content" }, h("div", { key: 'bc15d1c26cb079ea19b817e729d0dfb29d5858bb', class: "feature-accordion__list" }, items.map((item, index) => (h("div", { class: {
|
|
102
102
|
'accordion-item': true,
|
|
103
103
|
'accordion-item--expanded': this.expandedIndex === index
|
|
104
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: {
|
|
105
105
|
maxHeight: this.expandedIndex === index ? '200px' : '0',
|
|
106
106
|
opacity: this.expandedIndex === index ? '1' : '0'
|
|
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: '
|
|
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: '3e160193fdb6a45b2d7e493ddb6925dbee121150', class: "feature-accordion__image-container" }, h("div", { key: '7ab7c3b54a88009f38379dc19c59ba4650ab4ce9', class: "feature-accordion__image-wrapper" }, currentItem?.imageUrl && (h("img", { key: 'cd3f5b1ea37b55d1c7183070c98cc44af3d90694', src: currentItem.imageUrl, alt: currentItem.imageAlt || currentItem.title, class: "feature-accordion__image" })), !currentItem?.imageUrl && (h("div", { key: '0956c500e38f588edb6a4e570d2cfc4f152453fb', class: "feature-accordion__image-placeholder" }, h("slot", { key: '36f7ed6e0554c429c891f71589296159e7531385', name: "image" }))))))))));
|
|
108
108
|
}
|
|
109
109
|
static get is() { return "af-feature-accordion"; }
|
|
110
110
|
static get encapsulation() { return "scoped"; }
|
|
@@ -82,7 +82,7 @@ export class AfFeatureGrid {
|
|
|
82
82
|
[`feature-grid--mobile-${this.mobileLayout}`]: true,
|
|
83
83
|
};
|
|
84
84
|
const showProgressLine = this.mobileLayout === 'scroll';
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'eb0a98e3493d564f6728613ef1c0b949dcbe7816' }, h("div", { key: 'c91f2fa779d050d9e9419eff301ba8fd80242bc0', class: gridClasses }, h("div", { key: '82989034a3f94cad6747429a1587c3ada160571f', class: "feature-grid__cards" }, h("slot", { key: '9ba0222a8ca2455fd83fbb054e1e4fc2c6f4e598' })), showProgressLine && (h("div", { key: '9c510e8f5366762546829210f5ec1f50788b4ecf', class: "feature-grid__progress" }, h("af-progress-line", { key: '584cd3da69b1b219743338bd6deb0a2c1bbab6b9', progress: this.scrollProgress }))))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "af-feature-grid"; }
|
|
88
88
|
static get encapsulation() { return "scoped"; }
|
|
@@ -18,7 +18,7 @@ export class AfFooter {
|
|
|
18
18
|
this.showStatus = true;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'b0fceb1896656d8a17b3afda396dd74a9181668e' }, h("footer", { key: '6b48abc3e62d21f96fb3c4aa84b2eedd292e3386', class: "footer" }, h("div", { key: 'ba192ee7d600ddce8e1c2fcc5631259c5eff89db', class: "footer__container" }, h("div", { key: 'f7fa42a5d13aacf16bd49ab2a3257b80156383dd', class: "footer__top" }, h("div", { key: '25c7452fbba9a33805fa419e1d91da04c97e3843', class: "footer__brand" }, h("div", { key: 'd3e0c2b52ce7e6a1f399c13ed9d6f1a1c75d5c35', class: "footer__brand-card" }, h("div", { key: '197934823ea93f20575e3f737c777bd3fe6bdec9', class: "footer__logo" }, h("slot", { key: 'f2b8ab9d513704d6c5e3c2e78cd73a264e78225a', name: "logo" })), h("div", { key: 'c00e0d6bad4a5c99e6e39dab101b77c2fae36495', class: "footer__social" }, h("slot", { key: 'de662f1f8e9deb052eb79aed4a05a98c2d9f65aa', name: "social" }))), h("div", { key: '3c678879008647c05a60803ca7a067c4e4e61746', class: "footer__contact-card" }, h("slot", { key: '58071ccf22c23b1ef5341505dcf1d0ba57357512', name: "contact" }))), h("div", { key: '1eed42db812f2dce3aa935ab5ac1096625848ae6', class: "footer__nav" }, h("div", { key: '50aef430fdb85c2087dd2e2d87ad8cf1d16c7c8b', class: "footer__nav-columns" }, h("slot", { key: 'b900525b63c6072707a5b0d35f72237d1b2fe6a9', name: "nav" })), this.showStatus && (h("div", { key: 'fe957d27c0cbaf5a4e2627c3f37de884a87d09d7', class: "footer__status" }, h("span", { key: 'c123f1e69a1b8958eefede7510ae65395c58d948', class: `footer__status-dot ${this.systemsOperational ? 'footer__status-dot--operational' : 'footer__status-dot--issue'}` }), h("span", { key: '9524fa81546c3755e0f28d1f335915dfadf0c08a', class: "footer__status-text" }, this.statusText), this.statusUrl && (h("a", { key: 'adac84ed1240b1587ad4dd730813243009bb55b7', href: this.statusUrl, target: "_blank", rel: "noopener noreferrer", class: "footer__status-link" }, "Learn more")))))), h("div", { key: 'e662a65603a58375ecda64c12f60936ef4bf7535', class: "footer__bottom" }, this.copyrightText && (h("p", { key: '88688f225266e295d4f97ed64fdfe1a67a26561a', class: "footer__copyright" }, this.copyrightText)), h("div", { key: '9e37465b342340a36b309f2da9b5a0d68d5d3bec', class: "footer__legal" }, h("slot", { key: 'c4f6763e9affaf59c7740a78e738938ab25576d0', name: "legal" })), h("div", { key: 'ccdd834682869e69d9c09d2b8f1a6cb3648b671b', class: "footer__badges" }, h("slot", { key: 'cd10ff8b4e90f9a38270b5ed5d7884cea7f241a2', name: "badges" })))))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "af-footer"; }
|
|
24
24
|
static get encapsulation() { return "scoped"; }
|
|
@@ -9,7 +9,7 @@ export class AfFooterColumn {
|
|
|
9
9
|
this.heading = '';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'aff327dcb95b40e2835062053b7e59ee38d1e251' }, h("div", { key: '1f08aa09e7ffc52dda5603f5b3a1bb8ab8b42426', class: "footer-column" }, this.heading && (h("h5", { key: 'ef2532c50e755acb21f786edfbc23ade0097e385', class: "footer-column__heading" }, this.heading)), h("ul", { key: 'c96d5cda9bef99805eb17af7689a294adf80e33b', class: "footer-column__list" }, h("slot", { key: '5efdffcd7fc885e71a9460bc21a2d40bf486c14d' })))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "af-footer-column"; }
|
|
15
15
|
static get encapsulation() { return "scoped"; }
|
|
@@ -11,7 +11,7 @@ export class AfFooterLink {
|
|
|
11
11
|
this.external = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '6a353087c08983e0e8a962ba97a2d1fa0afd1003' }, h("li", { key: '746175585030c809e05bd697a518f0ae0bc93d89' }, h("a", { key: '5409787ffbcd34661bbcd643fe68ba2e8354d127', href: this.href, class: "footer-link", target: this.external ? '_blank' : undefined, rel: this.external ? 'noopener noreferrer' : undefined }, h("slot", { key: '506e4056466d3764b4a2a55927932ad5fe5ea0ba' }), this.external && (h("svg", { key: '93e6405e6252095281d63cfbcf1548af54582c24', class: "footer-link__external-icon", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { key: '72370b0a31dccb15f92bf8fa67fa868e2f0f33ee', d: "M10 6.5v3a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h3M7.5 1.5h3v3M5.5 6.5l5-5", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" })))))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "af-footer-link"; }
|
|
17
17
|
static get encapsulation() { return "scoped"; }
|
|
@@ -28,14 +28,14 @@ export class AfGrid {
|
|
|
28
28
|
end: 'end',
|
|
29
29
|
stretch: 'stretch',
|
|
30
30
|
};
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: 'bcc57cad4861ded2353d7668fa76281f327efac8', style: {
|
|
32
32
|
'--grid-columns': String(this.columns),
|
|
33
33
|
'--grid-columns-lg': String(this.columnsLg ?? this.columns),
|
|
34
34
|
'--grid-columns-md': String(this.columnsMd ?? this.columnsLg ?? this.columns),
|
|
35
35
|
'--grid-columns-sm': String(this.columnsSm ?? this.columnsMd ?? this.columnsLg ?? 1),
|
|
36
36
|
'--grid-gap': `var(--space-${this.gap})`,
|
|
37
37
|
'--grid-align': alignMap[this.align],
|
|
38
|
-
} }, h("div", { key: '
|
|
38
|
+
} }, h("div", { key: 'e4aaf0f25478b42470f24b7eb831f6598be15423', class: "grid" }, h("slot", { key: 'bc40be3d30c45c2af348bb67804c25f29d606895' }))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "af-grid"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class AfIconBox {
|
|
|
27
27
|
[`icon-box--size-${this.size}`]: true,
|
|
28
28
|
};
|
|
29
29
|
const iconSize = this.size === 'small' ? 20 : this.size === 'large' ? 48 : 40;
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: 'e270fbfc75794a1bc2fce141cde5e6295d13c80c' }, h("div", { key: '3533c3e5afe2aaf1ee0227ffe9d37323b954753f', class: containerClasses }, h("af-icon", { key: 'e692e0110fb1233ced5d29f7b8f612c0ab89e058', name: this.icon, size: iconSize }))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "af-icon-box"; }
|
|
33
33
|
static get encapsulation() { return "scoped"; }
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host([variant="tertiary"]) {
|
|
15
|
-
color: var(--af-button-
|
|
15
|
+
color: var(--af-button-ghost-icon, var(--colour-brand-inkwell, #14343B));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.icon-button {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
.variant-tertiary {
|
|
113
113
|
background: transparent;
|
|
114
114
|
border-color: transparent;
|
|
115
|
-
color: var(--af-button-
|
|
115
|
+
color: var(--af-button-ghost-text, var(--colour-brand-inkwell, #14343B));
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.variant-tertiary:hover:not(.disabled) {
|
|
@@ -10,14 +10,14 @@ import { h, Host } from "@stencil/core";
|
|
|
10
10
|
*
|
|
11
11
|
* @slot - Heading text content (passed to TypographyLockup)
|
|
12
12
|
* @slot description - Body/description text
|
|
13
|
-
* @slot buttons - Action buttons (typically
|
|
13
|
+
* @slot buttons - Action buttons (typically ghost style)
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```html
|
|
17
17
|
* <af-icon-text icon="settings" heading-size="4">
|
|
18
18
|
* Feature Heading
|
|
19
19
|
* <span slot="description">Feature description text.</span>
|
|
20
|
-
* <af-button slot="buttons" variant="
|
|
20
|
+
* <af-button slot="buttons" variant="ghost">Learn more</af-button>
|
|
21
21
|
* </af-icon-text>
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
@@ -43,7 +43,7 @@ export class AfIconText {
|
|
|
43
43
|
'icon-text': true,
|
|
44
44
|
[`icon-text--${this.orientation}`]: true,
|
|
45
45
|
};
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '5ee5ddd91804507b0e4029adeee9eebb687448d9' }, h("div", { key: '5c00e4451c12aeaf924c2d9dff3ad85cb5555813', class: containerClasses }, h("af-icon-box", { key: 'd375fa1087651f86fd778744c276bd92e387b297', icon: this.icon, size: this.iconSize, class: "icon-text__icon" }), h("af-typography-lockup", { key: '2be428ff1b3210972248ef741086d96eb6829cb9', headingSize: this.headingSize, textAlignment: "left", buttonAlignment: "vertical", class: "icon-text__lockup" }, h("slot", { key: '0da48d34ee2d1ab77c2aac80daffdbce4b2774b1' }), h("span", { key: '140db3a089b16211db54b67b786a90795dbe3d8a', slot: "description" }, h("slot", { key: '37d6b87dc348b95c5178e9a04e902f04664a0feb', name: "description" })), h("span", { key: '10031a47ef045d9ad95cb1bb90289fa1d599bc35', slot: "buttons" }, h("slot", { key: 'decf43947df87a58f42d10ba5025e9c6e1149ca2', name: "buttons" }))))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "af-icon-text"; }
|
|
49
49
|
static get encapsulation() { return "scoped"; }
|
|
@@ -2,13 +2,14 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
/**
|
|
3
3
|
* Illustrated Card molecule component that combines a card with an illustration.
|
|
4
4
|
*
|
|
5
|
-
* Uses a theme background with text at top
|
|
6
|
-
* @affinda/illustrations at the bottom.
|
|
5
|
+
* Uses a theme background with text at top, a button row in the middle, and
|
|
6
|
+
* an illustration from @affinda/illustrations at the bottom.
|
|
7
7
|
*
|
|
8
8
|
* Uses af-card atom internally and af-typography-lockup for text hierarchy.
|
|
9
9
|
*
|
|
10
10
|
* @slot - Heading text content
|
|
11
11
|
* @slot body - Description/body text content
|
|
12
|
+
* @slot buttons - Action buttons (rendered below the description, above the illustration)
|
|
12
13
|
* @slot illustration - Illustration image element
|
|
13
14
|
*/
|
|
14
15
|
export class AfIllustratedCard {
|
|
@@ -33,7 +34,7 @@ export class AfIllustratedCard {
|
|
|
33
34
|
[`illustrated-card--breakpoint-${this.breakpoint}`]: true,
|
|
34
35
|
[`illustrated-card--size-${this.cardSize}`]: true,
|
|
35
36
|
};
|
|
36
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'afe7b84219cbe07a6949825042295def34dafe5e' }, h("div", { key: '9b5697ca0732d5bc5ac8170869bf04db5c3e9b07', class: wrapperClasses }, h("af-card", { key: '0de8d7d93eb225298664e9edcd7efec821c341c6', theme: this.theme }, h("div", { key: '4a691832606f011d996f005c533f423acc960ea2', class: "illustrated-card__content" }, h("af-typography-lockup", { key: '59d8417922cffd552df7610b72b4f2ec6c222105', headingSize: 3, breakpoint: this.breakpoint, textAlignment: "left", buttonLayout: "vertical" }, h("slot", { key: 'ee18abb24d0637f3bea71b48ccafdd3c6df0ea45' }), h("span", { key: 'be0bebfef478da4491ba1137ba1975052f4dcb5c', slot: "description" }, h("slot", { key: 'b05c91bd5d5085f74d94fabd22d8b79a2b008719', name: "body" })), h("span", { key: '79c1f836418dd6d2d2c96a1ea680bf05ade2b0d8', slot: "buttons" }, h("slot", { key: '03a5aff63f8225bf2323abe44e8e830562cf0c6c', name: "buttons" })))), h("div", { key: '1c75154af4e7cc89eceda3f16a958ca720f17450', class: "illustrated-card__illustration-area" }, h("slot", { key: '46071088a5aad6cbf64635a3961aa78e1f7b3fee', name: "illustration" }))))));
|
|
37
38
|
}
|
|
38
39
|
static get is() { return "af-illustrated-card"; }
|
|
39
40
|
static get encapsulation() { return "scoped"; }
|
|
@@ -5,10 +5,28 @@
|
|
|
5
5
|
|
|
6
6
|
.image-container {
|
|
7
7
|
position: relative;
|
|
8
|
-
border-radius: var(--radius-md, 12px);
|
|
9
8
|
overflow: hidden;
|
|
10
9
|
}
|
|
11
10
|
|
|
11
|
+
/* Shape variants — matches Webflow's rounded-edge image treatments */
|
|
12
|
+
.image-container--rounded {
|
|
13
|
+
border-radius: var(--radius-md, 12px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.image-container--rounded-left {
|
|
17
|
+
border-top-left-radius: var(--radius-md, 12px);
|
|
18
|
+
border-bottom-left-radius: var(--radius-md, 12px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.image-container--rounded-right {
|
|
22
|
+
border-top-right-radius: var(--radius-md, 12px);
|
|
23
|
+
border-bottom-right-radius: var(--radius-md, 12px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.image-container--square {
|
|
27
|
+
border-radius: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
12
30
|
.image {
|
|
13
31
|
display: block;
|
|
14
32
|
width: 100%;
|
|
@@ -16,12 +34,11 @@
|
|
|
16
34
|
object-fit: cover;
|
|
17
35
|
}
|
|
18
36
|
|
|
19
|
-
/* Inset border overlay */
|
|
37
|
+
/* Inset border overlay — inherits the host's border radius via parent clip */
|
|
20
38
|
.image-border {
|
|
21
39
|
position: absolute;
|
|
22
40
|
inset: 0;
|
|
23
|
-
border-radius: var(--radius-md, 12px);
|
|
24
41
|
box-shadow: inset 0 0 0 1px var(--af-background-border-subtle, rgba(0, 0, 0, 0.08));
|
|
25
42
|
pointer-events: none;
|
|
43
|
+
border-radius: inherit;
|
|
26
44
|
}
|
|
27
|
-
|
|
@@ -4,8 +4,20 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
* Provides consistent image styling across the design system.
|
|
5
5
|
*/
|
|
6
6
|
export class AfImage {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Shape / corner rounding variant. Matches Webflow's `.image-fill.rounded-*`
|
|
10
|
+
* patterns where only one edge is rounded so the image bleeds into a
|
|
11
|
+
* neighbouring section.
|
|
12
|
+
* - `rounded` (default) — symmetric rounded corners on all four sides.
|
|
13
|
+
* - `rounded-left` — rounded only on the left edge (top-left + bottom-left).
|
|
14
|
+
* - `rounded-right` — rounded only on the right edge.
|
|
15
|
+
* - `square` — no corner rounding.
|
|
16
|
+
*/
|
|
17
|
+
this.shape = 'rounded';
|
|
18
|
+
}
|
|
7
19
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'c1d2a3fa4d205e24e5c55e9c84e8ff5b3150a161' }, h("div", { key: '5c77f95ebdfd2792ebfb55accc4ec0ea9da5953a', class: `image-container image-container--${this.shape}` }, h("img", { key: '1c9694ebb590d141e46267bb3217eda2400c5b23', src: this.src, alt: this.alt, class: "image" }), h("div", { key: '2505652d87a23db29d54705b93978f44794837b9', class: "image-border", "aria-hidden": "true" }))));
|
|
9
21
|
}
|
|
10
22
|
static get is() { return "af-image"; }
|
|
11
23
|
static get encapsulation() { return "scoped"; }
|
|
@@ -58,6 +70,26 @@ export class AfImage {
|
|
|
58
70
|
"setter": false,
|
|
59
71
|
"reflect": false,
|
|
60
72
|
"attribute": "alt"
|
|
73
|
+
},
|
|
74
|
+
"shape": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "'rounded' | 'rounded-left' | 'rounded-right' | 'square'",
|
|
79
|
+
"resolved": "\"rounded\" | \"rounded-left\" | \"rounded-right\" | \"square\"",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": false,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "Shape / corner rounding variant. Matches Webflow's `.image-fill.rounded-*`\npatterns where only one edge is rounded so the image bleeds into a\nneighbouring section.\n- `rounded` (default) \u2014 symmetric rounded corners on all four sides.\n- `rounded-left` \u2014 rounded only on the left edge (top-left + bottom-left).\n- `rounded-right` \u2014 rounded only on the right edge.\n- `square` \u2014 no corner rounding."
|
|
87
|
+
},
|
|
88
|
+
"getter": false,
|
|
89
|
+
"setter": false,
|
|
90
|
+
"reflect": false,
|
|
91
|
+
"attribute": "shape",
|
|
92
|
+
"defaultValue": "'rounded'"
|
|
61
93
|
}
|
|
62
94
|
};
|
|
63
95
|
}
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
gap: 16px;
|
|
213
213
|
max-width: 840px;
|
|
214
214
|
width: 100%;
|
|
215
|
-
white-space:
|
|
215
|
+
white-space: normal;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/* ==========================================================================
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
letter-spacing: -0.88px;
|
|
233
233
|
color: var(--banner-heading-color, var(--colour-brand-inkwell, #14343b));
|
|
234
234
|
margin: 0;
|
|
235
|
-
white-space:
|
|
235
|
+
white-space: normal;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/* ==========================================================================
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
line-height: 26px;
|
|
253
253
|
color: var(--banner-body-color, var(--colour-inkwell-400, #2b484f));
|
|
254
254
|
margin: 0;
|
|
255
|
-
white-space:
|
|
255
|
+
white-space: normal;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
/* ==========================================================================
|
|
@@ -284,6 +284,7 @@
|
|
|
284
284
|
- Illustration: 212px x 212px, positioned at top: 12px, centered horizontally
|
|
285
285
|
========================================================================== */
|
|
286
286
|
|
|
287
|
+
/* mobile-only */
|
|
287
288
|
@media (max-width: 768px) {
|
|
288
289
|
.banner {
|
|
289
290
|
flex-direction: column;
|
|
@@ -355,6 +356,7 @@
|
|
|
355
356
|
Small Mobile (≤480px)
|
|
356
357
|
========================================================================== */
|
|
357
358
|
|
|
359
|
+
/* ≤ small */
|
|
358
360
|
@media (max-width: 480px) {
|
|
359
361
|
.banner {
|
|
360
362
|
padding-top: 200px;
|
|
@@ -22,6 +22,16 @@ import { h, Host } from "@stencil/core";
|
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* Alternatively, use the `illustration` slot for completely custom content.
|
|
25
|
+
*
|
|
26
|
+
* **Slot-based composition (preferred for rich content):**
|
|
27
|
+
* - `heading` — heading markup (overrides the `heading` prop when provided).
|
|
28
|
+
* - `description` — description markup (overrides the `description` prop).
|
|
29
|
+
* - `buttons` — custom button group (overrides the primary/secondary button
|
|
30
|
+
* props; use when you need ghost variants, more than two buttons, or
|
|
31
|
+
* per-button icons).
|
|
32
|
+
* - `illustration` — custom illustration markup.
|
|
33
|
+
*
|
|
34
|
+
* The string props remain supported for simple cases.
|
|
25
35
|
*/
|
|
26
36
|
export class AfInPageBanner {
|
|
27
37
|
constructor() {
|
|
@@ -56,7 +66,7 @@ export class AfInPageBanner {
|
|
|
56
66
|
return (h("div", { class: "banner__wave-overlay", "aria-hidden": "true" }, h("svg", { viewBox: "0 0 521 323", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "banner__wave-svg" }, h("path", { d: "M473.775 46.273C443.539 15.92 403.701 -0.631616 361.351 0.0184478H154.183L112.67 67.225H361.893C362.189 67.225 362.533 67.225 362.829 67.225C387.155 67.225 410.004 76.7259 427.289 94.0776C445.017 111.879 454.816 135.682 454.816 161.134C454.816 213.389 412.959 255.843 361.548 255.843H108.041C84.9457 255.843 66.1345 236.742 66.1345 213.289C66.1345 189.837 84.9949 170.435 107.992 169.735H334.957L377.799 102.528H106.859C47.9636 104.029 0 153.683 0 213.289C0 272.895 48.456 323 108.041 323H361.548C449.449 323 521 250.343 521 161.084C521 117.53 504.257 76.7759 473.824 46.2229L473.775 46.273Z", fill: "currentColor" }))));
|
|
57
67
|
}
|
|
58
68
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '1f14f0d7df4f632817b7e8c955b8249a5a3d2ce4' }, h("div", { key: '0fc90536d6d5b65912fca02d3c74019bee067133', class: `banner theme-${this.theme}` }, this.showWaveDecoration && this.renderWaveOverlay(), h("div", { key: 'c70ea65d7536efbceb8fc3f2e6d714d56c2d5be9', class: "banner__illustration" }, this.illustrationUrl ? (h("img", { src: this.illustrationUrl, alt: "", class: "banner__illustration-img", loading: "lazy" })) : (h("slot", { name: "illustration" }))), h("div", { key: 'c209db43fd9a559854b73268f7b8a19b7c1a3268', class: "banner__content" }, h("div", { key: '7b1898662500a54e7dbf500646017f43ffe21e23', class: "banner__copy" }, h("h2", { key: '443078b848ee5ca1725ab960fc844e0f5d106ef7', class: "banner__heading" }, h("slot", { key: '10ce17b8014571ec6bc61cbda03b3881f2741215', name: "heading" }, this.heading)), h("div", { key: '3c43d4d4dd4c4c708891fdd3398de996a7b08d04', class: "banner__description" }, h("slot", { key: 'd58a7f5d4bea7dc2e4ce1dee10a99f19753427b4', name: "description" }, this.description))), h("div", { key: 'c10df7f70cb8ac0dd0d5e63e34a6fbc8fef9c62f', class: "banner__buttons" }, h("slot", { key: 'ff5cf411dee854f14fdbecda0bc8aac4b01b4abf', name: "buttons" }, this.primaryButtonText && (h("af-button", { key: 'c8da6aa83a13a9b8a7e892de29b1914aa5ae41c1', href: this.primaryButtonUrl, variant: "primary" }, this.primaryButtonText)), this.secondaryButtonText && (h("af-button", { key: '42b8ba18fa9d15539ab2c80af98da504d8b14013', href: this.secondaryButtonUrl, variant: "secondary" }, this.secondaryButtonText))))))));
|
|
60
70
|
}
|
|
61
71
|
static get is() { return "af-in-page-banner"; }
|
|
62
72
|
static get encapsulation() { return "scoped"; }
|
|
@@ -49,7 +49,7 @@ export class AfInline {
|
|
|
49
49
|
justifyContent: justifyMap[this.justify],
|
|
50
50
|
flexWrap: this.wrap ? 'wrap' : 'nowrap',
|
|
51
51
|
};
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '17b13c3b8a5ade7e5d3c990673b2e884b0ae5cb5', style: style }, h("slot", { key: 'ac563668c3e6e26f9a1b730c6edb16cb8cb46498' })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "af-inline"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class AfLogoWell {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'c0896e6345cc862d0cd7105117016a5dc76b3141' }, h("div", { key: 'a754bb9b44319040e9b1bcb03c6440c60c91af25', class: "logo-well" }, h("slot", { key: '8f87dc5de8caba94cc30a529aaa8e4c4426c5e81' }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "af-logo-well"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,7 @@ export class AfNavAccordion {
|
|
|
71
71
|
this.syncItems();
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '518288d29b17ac7ceb69ce24b37258dffefdd742', class: { [`breakpoint-${this.breakpoint}`]: true, [`mode-${this.mode}`]: true } }, h("div", { key: '6a5e504a7114f3abbc064da71558342f9c45627d', class: "nav-accordion" }, h("slot", { key: '88560460c84396a492d2bc035f2d96c7c30afa58' }))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "af-nav-accordion"; }
|
|
77
77
|
static get encapsulation() { return "scoped"; }
|
|
@@ -84,11 +84,11 @@ export class AfNavAccordionItem {
|
|
|
84
84
|
// sub-content to expand. A plain href item with no children is a
|
|
85
85
|
// direct link and shouldn't show a disclosure affordance.
|
|
86
86
|
const hasDropdownContent = this.hasContent;
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '6ec460cb9004968c1386dbd4987bdcbab85fc5ee', class: {
|
|
88
88
|
'is-open': this.open,
|
|
89
89
|
'is-disabled': this.disabled,
|
|
90
90
|
[`breakpoint-${this.breakpoint}`]: true
|
|
91
|
-
} }, h("div", { key: '
|
|
91
|
+
} }, h("div", { key: '8cfae124103bff2dbefee2972080014069346d85', class: "nav-accordion-item" }, this.href ? (h("a", { href: this.href, class: "trigger", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": `content-${this.itemId}` }, h("div", { class: "trigger-content" }, h("slot", { name: "trigger", onSlotchange: this.handleSlotChange }, h("span", { class: "label" }, this.label))), hasDropdownContent && (h("button", { class: "chevron-button", onClick: (e) => { e.preventDefault(); e.stopPropagation(); this.toggle(); }, "aria-label": this.open ? 'Collapse' : 'Expand', type: "button" }, h("div", { class: { 'chevron': true, 'is-open': this.open } }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor" }, h("path", { d: "M6 9l6 6 6-6", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))) : (h("button", { class: "trigger", onClick: this.handleTriggerClick, onKeyDown: this.handleKeyDown, "aria-expanded": this.open ? 'true' : 'false', "aria-controls": `content-${this.itemId}`, disabled: this.disabled, type: "button" }, h("div", { class: "trigger-content" }, h("slot", { name: "trigger", onSlotchange: this.handleSlotChange }, h("span", { class: "label" }, this.label))), hasDropdownContent && (h("div", { class: { 'chevron': true, 'is-open': this.open } }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor" }, h("path", { d: "M6 9l6 6 6-6", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: 'd1e430c8bf9bfbed5da2a647352d5166680beaee', id: `content-${this.itemId}`, class: "content-wrapper", style: contentStyle, "aria-hidden": !this.open ? 'true' : 'false' }, h("div", { key: '8fe35fe547bc1658e1cc1fd18b6ded85f4b8ddbc', class: "content", ref: (el) => (this.contentRef = el) }, h("slot", { key: '550b245714af43a08024486dee8f1532624abe03' }))))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "af-nav-accordion-item"; }
|
|
94
94
|
static get encapsulation() { return "scoped"; }
|
|
@@ -30,7 +30,7 @@ export class AfNavMenu {
|
|
|
30
30
|
'has-border': this.showBorder,
|
|
31
31
|
'card-style': this.cardStyle
|
|
32
32
|
};
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'e52759061a3d6767cea4a543ded89fd79c6cbeb0' }, h("div", { key: '365abac4a6588998a94f4c45955157b24fdea8b4', class: classes }, this.heading && (h("div", { key: 'cb380719d52dd2da2d7559330ea806f47a6c4e99', class: "menu-header" }, h("h3", { key: '7b71a56e995645f8371f66d581b3626fbf2f5e31', class: "menu-heading" }, this.heading))), h("div", { key: 'cf2f7c5351ed8c26dcd82d1c420d225f623847f6', class: "menu-items" }, h("slot", { key: '45f38b469a9dabb7823b56d52538925a6db90f0e' })))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "af-nav-menu"; }
|
|
36
36
|
static get encapsulation() { return "scoped"; }
|
|
@@ -48,7 +48,7 @@ export class AfNavMenuNest {
|
|
|
48
48
|
[`type-${this.type}`]: true,
|
|
49
49
|
[`breakpoint-${this.breakpoint}`]: true
|
|
50
50
|
};
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '10f78b27ad9bb744415303815a0d332c521b97ce' }, h("div", { key: '1fd8d7624889e151a7051b0f8b2ee7c773ae4d60', class: classes }, h("div", { key: 'e2fefca6e151476e80c1b45d435bb72b623f8c15', class: "menu-columns" }, h("slot", { key: '321200c424b9e4b8b9f1f9cf101de1a2a4fdc742' })), h("div", { key: '8956a487218299d9735ece9a6ca9fe3a23828e0f', class: "menu-sidebar" }, h("slot", { key: '8cb04d5028ec97976d38b39a1b66f41600b7fa0f', name: "sidebar" })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "af-nav-menu-nest"; }
|
|
54
54
|
static get encapsulation() { return "scoped"; }
|
|
@@ -34,7 +34,7 @@ export class AfNumberBadge {
|
|
|
34
34
|
height: `${this.size}px`,
|
|
35
35
|
fontSize: `${fontSize}px`,
|
|
36
36
|
};
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '816770ea4351ba01a7c069b57558efad8015f5f8', role: "img", "aria-label": `Number ${this.number}${isInCircle ? ' badge' : ''}` }, h("span", { key: '33bd320ab7e56fbf29251035008e862b6a249258', class: {
|
|
38
38
|
'badge': true,
|
|
39
39
|
[`variant-${this.variant}`]: true,
|
|
40
40
|
}, style: badgeStyle }, this.number)));
|
|
@@ -21,10 +21,10 @@ export class AfProgressLine {
|
|
|
21
21
|
// Clamp progress between 0 and 1
|
|
22
22
|
const clampedProgress = Math.max(0, Math.min(1, this.progress));
|
|
23
23
|
const progressPercent = clampedProgress * 100;
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'ab4db165b98bbd164b87d65f2e013d6719a04f52' }, h("div", { key: 'ef6ffbf323aff182c9de107d07992f032606e422', class: {
|
|
25
25
|
'progress-line': true,
|
|
26
26
|
[`progress-line--${this.orientation}`]: true,
|
|
27
|
-
}, role: "progressbar", "aria-valuenow": Math.round(progressPercent), "aria-valuemin": 0, "aria-valuemax": 100 }, h("div", { key: '
|
|
27
|
+
}, role: "progressbar", "aria-valuenow": Math.round(progressPercent), "aria-valuemin": 0, "aria-valuemax": 100 }, h("div", { key: 'e7e2ab3850a97dc4d37194132dcdd9c7f3d614e3', class: "progress-line__background" }), h("div", { key: '00c16c1a7eebbcd314db1f12ee4344d2b2bebc9d', class: "progress-line__active", style: { width: `${progressPercent}%` } }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "af-progress-line"; }
|
|
30
30
|
static get encapsulation() { return "scoped"; }
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
--af-button-secondary-stroke: var(--colour-brand-inkwell, #14343b);
|
|
75
75
|
|
|
76
76
|
/* Button - Tertiary */
|
|
77
|
-
--af-button-
|
|
78
|
-
--af-button-
|
|
79
|
-
--af-button-
|
|
77
|
+
--af-button-ghost-text: var(--colour-brand-inkwell, #14343b);
|
|
78
|
+
--af-button-ghost-icon: var(--colour-brand-inkwell, #14343b);
|
|
79
|
+
--af-button-ghost-stroke: var(--colour-brand-soft-clay, #B09670);
|
|
80
80
|
|
|
81
81
|
/* Input tokens */
|
|
82
82
|
--af-input-label: var(--af-typography-body-dark);
|
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
--af-button-secondary-stroke: var(--colour-brand-white, #ffffff);
|
|
149
149
|
|
|
150
150
|
/* Button - Tertiary */
|
|
151
|
-
--af-button-
|
|
152
|
-
--af-button-
|
|
153
|
-
--af-button-
|
|
151
|
+
--af-button-ghost-text: var(--colour-brand-white, #ffffff);
|
|
152
|
+
--af-button-ghost-icon: var(--colour-brand-white, #ffffff);
|
|
153
|
+
--af-button-ghost-stroke: var(--colour-brand-ice, #A6FFFB);
|
|
154
154
|
|
|
155
155
|
/* Input tokens */
|
|
156
156
|
--af-input-label: var(--af-typography-body-dark);
|
|
@@ -222,9 +222,9 @@
|
|
|
222
222
|
--af-button-secondary-stroke: var(--colour-brand-inkwell, #14343b);
|
|
223
223
|
|
|
224
224
|
/* Button - Tertiary */
|
|
225
|
-
--af-button-
|
|
226
|
-
--af-button-
|
|
227
|
-
--af-button-
|
|
225
|
+
--af-button-ghost-text: var(--colour-brand-inkwell, #14343b);
|
|
226
|
+
--af-button-ghost-icon: var(--colour-brand-inkwell, #14343b);
|
|
227
|
+
--af-button-ghost-stroke: var(--colour-brand-soft-clay, #B09670);
|
|
228
228
|
|
|
229
229
|
/* Input tokens */
|
|
230
230
|
--af-input-label: var(--af-typography-body-dark);
|
|
@@ -296,9 +296,9 @@
|
|
|
296
296
|
--af-button-secondary-stroke: var(--colour-brand-inkwell, #14343b);
|
|
297
297
|
|
|
298
298
|
/* Button - Tertiary */
|
|
299
|
-
--af-button-
|
|
300
|
-
--af-button-
|
|
301
|
-
--af-button-
|
|
299
|
+
--af-button-ghost-text: var(--colour-brand-inkwell, #14343b);
|
|
300
|
+
--af-button-ghost-icon: var(--colour-brand-inkwell, #14343b);
|
|
301
|
+
--af-button-ghost-stroke: var(--colour-brand-inkwell, #14343b);
|
|
302
302
|
|
|
303
303
|
/* Input tokens */
|
|
304
304
|
--af-input-label: var(--af-typography-body-dark);
|
|
@@ -370,9 +370,9 @@
|
|
|
370
370
|
--af-button-secondary-stroke: var(--colour-brand-inkwell, #14343b);
|
|
371
371
|
|
|
372
372
|
/* Button - Tertiary */
|
|
373
|
-
--af-button-
|
|
374
|
-
--af-button-
|
|
375
|
-
--af-button-
|
|
373
|
+
--af-button-ghost-text: var(--colour-brand-inkwell, #14343b);
|
|
374
|
+
--af-button-ghost-icon: var(--colour-brand-inkwell, #14343b);
|
|
375
|
+
--af-button-ghost-stroke: var(--colour-brand-soft-clay, #b09670);
|
|
376
376
|
|
|
377
377
|
/* Input tokens */
|
|
378
378
|
--af-input-label: var(--af-typography-body-dark);
|
|
@@ -403,6 +403,7 @@
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
/* Mobile adjustments */
|
|
406
|
+
/* mobile-only */
|
|
406
407
|
@media (max-width: 768px) {
|
|
407
408
|
.padding-tight {
|
|
408
409
|
padding: 32px 0;
|
|
@@ -13,8 +13,8 @@ export class AfSection {
|
|
|
13
13
|
this.container = true;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
const content = h("slot", { key: '
|
|
17
|
-
return (h(Host, { key: '
|
|
16
|
+
const content = h("slot", { key: '9a5e38a56170b65a8bc88191fef5cfd0c7d37cda' });
|
|
17
|
+
return (h(Host, { key: '66fa1e6000cebdf1fa4ea850156ff54ec55f5952' }, h("div", { key: '883a3f086eab3b120afed962b2fff8986aaf0b25', class: `section padding-${this.padding} theme-${this.theme}` }, this.container ? (h("af-container", null, content)) : content)));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "af-section"; }
|
|
20
20
|
static get encapsulation() { return "scoped"; }
|
|
@@ -18,7 +18,7 @@ export class AfShow {
|
|
|
18
18
|
[`show-above-${this.above}`]: !!this.above,
|
|
19
19
|
[`show-below-${this.below}`]: !!this.below,
|
|
20
20
|
};
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '0e1fa54d81a3a30c5547bd08f83bf43bf357038f', class: classes }, h("slot", { key: '52af3932d49d463f0d807bb7654ecbff02f7db8e' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "af-show"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,7 +29,7 @@ export class AfSocialLink {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '9cd9c78a4b964d2a43f9d85ff528abb63eea31e2' }, h("a", { key: '2fc0c44720aa6f58229a5ad285269ab7b73c07cc', href: this.href, target: "_blank", rel: "noopener noreferrer", class: "social-link", "aria-label": this.label }, this.renderIcon())));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "af-social-link"; }
|
|
35
35
|
static get encapsulation() { return "scoped"; }
|