@affinda/wc 0.0.24 → 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-cd138311.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-heading_5.cjs.entry.js +9 -6
- 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 +23 -2
- 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-navbar/af-navbar.js +9 -6
- 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-typography-lockup/af-typography-lockup.js +28 -1
- 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-navbar.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-CYXTWxXF.js +1 -0
- package/dist/components/{p-B7-0t_dL.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-heading_5.entry.js +9 -6
- 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 +23 -2
- 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/af-typography-lockup/af-typography-lockup.d.ts +14 -0
- 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-6c10d037.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-9405394d.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-2f5xVWwF.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-CB_hDYLo.js +0 -1
- package/dist/components/p-CRW9bpXa.js +0 -1
- package/dist/components/p-Cv9-Wbu_.js +0 -1
- package/dist/components/p-CwPFdy8d.js +0 -1
- package/dist/components/p-wM1k9Wi7.js +0 -1
|
@@ -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"; }
|
|
@@ -104,12 +104,15 @@ export class AfNavbar {
|
|
|
104
104
|
this.cancelScheduledClose();
|
|
105
105
|
}
|
|
106
106
|
scheduleClose() {
|
|
107
|
-
//
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
//
|
|
107
|
+
// Short 100ms debounce so the mouse has time to cross any tiny
|
|
108
|
+
// dead-zone between the nav pill, the dropdown panel, and the
|
|
109
|
+
// items inside it without accidentally closing the panel. A
|
|
110
|
+
// re-entering mouseenter on the host cancels the pending close.
|
|
111
111
|
this.cancelScheduledClose();
|
|
112
|
-
this.
|
|
112
|
+
this.closeTimer = window.setTimeout(() => {
|
|
113
|
+
this.closeDropdown();
|
|
114
|
+
this.closeTimer = undefined;
|
|
115
|
+
}, 100);
|
|
113
116
|
}
|
|
114
117
|
cancelScheduledClose() {
|
|
115
118
|
if (this.closeTimer !== undefined) {
|
|
@@ -169,7 +172,7 @@ export class AfNavbar {
|
|
|
169
172
|
}
|
|
170
173
|
render() {
|
|
171
174
|
const hasDropdown = this.activeDropdown !== null;
|
|
172
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: 'bb5b7b7b1fe78eed12b3c16e2878d7905352d40c', class: { 'has-dropdown-open': hasDropdown } }, h("div", { key: 'd35c38cfbb329a7811abbc4bbc5b83e3673d3dab', class: `navbar-spacer${this.theme ? ` theme-${this.theme}` : ''}` }), h("nav", { key: '44d49577e393f60773db2d3b934ee1a253a3db1c', class: "navbar-container" }, h("div", { key: '172dfc9bcfd092c62537e2906dce3b97ae0bc6f3', class: "navbar theme-white" }, h("div", { key: 'bb10a24a359b569bd29082a75264e0d150a0cfae', class: "navbar-left" }, h("div", { key: 'd9b13adcdd2936fbfe3d177c81597b36998239a5', class: "logo" }, h("slot", { key: 'e6752d9755b854dbca123f4e45f7c4194fba9997', name: "logo" }, this.showDefaultLogo && h("af-logo", { key: '414958654451d4ec05d2ede68f989d850d6e3326' }))), h("button", { key: '42361097f38ca78004d91299ff570f168b79c342', class: "mobile-menu-toggle", onClick: this.toggleMobileMenu, "aria-label": "Toggle navigation menu", "aria-expanded": this.mobileMenuOpen ? 'true' : 'false' }, this.mobileMenuOpen ? (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor" }, h("path", { d: "M18 6L6 18M6 6l12 12", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))) : (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor" }, h("path", { d: "M3 12h18M3 6h18M3 18h18", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '11cedc5ae46d5bc4c1254c73571fa6d99849db15', class: `nav-links ${this.mobileMenuOpen ? 'mobile-open' : ''}` }, h("slot", { key: '2ab1f72977583995c0ee569e34df8c87ea5a2787', name: "start" }))), h("div", { key: 'aca92b065a53ee293a391bc32e3d1eb693acd7c0', class: `navbar-right ${this.mobileMenuOpen ? 'mobile-open' : ''}` }, h("div", { key: 'c94a0d6c88f6dbbdc92a328effa898a3b275466c', class: "nav-actions" }, h("slot", { key: '051e4a16d64f9d8b66504921cfafd734a78a3148', name: "end" })), h("div", { key: 'fc60234ab1b58d4bfb675d7a4d65253995c3b548', class: "nav-button" }, h("slot", { key: '5a826f4d58eef982abd103e4b2fe076f0dfc138e', name: "button" })))), h("div", { key: 'cd7c0db3e62cdb689ec75855109091666177deb7', class: `dropdown-container ${hasDropdown ? 'is-open' : ''}` }, h("div", { key: 'c40e3a8032991758e8fbe40507533b9335febfef', class: "dropdown-panel theme-white" }, h("slot", { key: '72680638403af582146ae0937d21dc8342cee1cb', name: "dropdowns" })))), h("div", { key: '12dbebc3c6bb463b63424d1ee431ecdcb2d11391', class: `mobile-menu-panel theme-white ${this.mobileMenuOpen ? 'is-open' : ''}` }, h("div", { key: 'db40b156136d18f54647583d03fbc108c1ea6243', class: "mobile-button-container" }, h("slot", { key: '9a018110748c36f0129e30fadaffe4e15bf4c076', name: "mobile-button" }, h("slot", { key: '8929b69c67419e9ceccaca72b90ffede5a2ade29', name: "button" }))), h("div", { key: '151a7cad7ad32874176c59a1729a37049ca57f75', class: "mobile-menu-content" }, h("slot", { key: 'caee9dd00f204a52e0e3b7598b215020a2bec70e', name: "mobile-menu" })))));
|
|
173
176
|
}
|
|
174
177
|
static get is() { return "af-navbar"; }
|
|
175
178
|
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"; }
|
|
@@ -34,7 +34,7 @@ export class AfSpacer {
|
|
|
34
34
|
style.height = sizeValue;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return h(Host, { key: '
|
|
37
|
+
return h(Host, { key: '667181ea8f243b47e0a54fbfc5441b7551d69082', style: style, "aria-hidden": "true" });
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "af-spacer"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,14 +26,14 @@ export class AfSplitSection {
|
|
|
26
26
|
this.container = true;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
const content = h("slot", { key: '
|
|
29
|
+
const content = h("slot", { key: 'de39e81b9bc88da7323663c248faf7a4faf20f7f' });
|
|
30
30
|
// Create the split background using CSS gradient
|
|
31
31
|
const topColor = themeColors[this.topTheme];
|
|
32
32
|
const bottomColor = themeColors[this.bottomTheme];
|
|
33
33
|
const backgroundStyle = {
|
|
34
34
|
background: `linear-gradient(to bottom, ${topColor} 0%, ${topColor} 50%, ${bottomColor} 50%, ${bottomColor} 100%)`
|
|
35
35
|
};
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '4b140cb28dd9ec3dd2a5148737aada241dbbfb1d' }, h("div", { key: '7eeb358bbae0e98e403e39020482505248c3bb69', class: `split-section padding-${this.padding} top-theme-${this.topTheme}`, style: backgroundStyle }, this.container ? (h("af-container", null, content)) : content)));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "af-split-section"; }
|
|
39
39
|
static get encapsulation() { return "scoped"; }
|
|
@@ -55,7 +55,7 @@ export class AfStack {
|
|
|
55
55
|
justifyContent: justifyMap[this.justify],
|
|
56
56
|
flexWrap: this.wrap ? 'wrap' : 'nowrap',
|
|
57
57
|
};
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '757fee5201ab0831e7dc51aa0f7dc2cad4279f95', style: style }, h("slot", { key: '06e94b64a308a3465e54d79e1a5ffb3758c6e626' })));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "af-stack"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class AfStepper {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '0ca79e9f0006bfbe3ab6e18cceaafd0257f4defb', class: `stepper stepper--${this.orientation}` }, h("div", { key: '8682fe5e58f7df3fb9866966fb6c04715203fd87', class: "stepper__connector", "aria-hidden": "true" }), h("slot", { key: 'ecdf79d87ee099666521dbb6f8e32375dd829fea' })));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "af-stepper"; }
|
|
46
46
|
static get encapsulation() { return "scoped"; }
|
|
@@ -18,7 +18,7 @@ export class AfStepperStep {
|
|
|
18
18
|
this.index = 1;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '36a45ffc037fb0efd1352fb1aa8482205faada04' }, h("span", { key: '93a75d705f40f920b3480607dfe2ed9f4ba37e55', class: "stepper-step__badge" }, this.index), h("div", { key: '2eb52b18397349da4fd3a9322fb7f1af0a271b4c', class: "stepper-step__content" }, h("div", { key: 'cf0fff2d73189a63e675017b1d431d2edc03e0c6', class: "stepper-step__heading" }, h("slot", { key: '6649a32664e82bc04e6f53c05d92050ad9b828d6', name: "heading" })), h("div", { key: '8f66cf21ff1b3e1bb4e817e6e85b418c1bdffd24', class: "stepper-step__body" }, h("slot", { key: 'a38c1c2c19d5d821ca513f098cd1b4fe6d007a92', name: "body" })))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "af-stepper-step"; }
|
|
24
24
|
static get encapsulation() { return "scoped"; }
|
|
@@ -17,54 +17,77 @@
|
|
|
17
17
|
cursor: default;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/* Make links look clickable */
|
|
21
20
|
a.tag {
|
|
22
21
|
cursor: pointer;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
/* ==========================================================================
|
|
26
|
-
VARIANT:
|
|
25
|
+
VARIANT: DEFAULT (inherits from parent theme context)
|
|
27
26
|
========================================================================== */
|
|
28
27
|
|
|
29
|
-
.tag.variant-
|
|
30
|
-
background-color: var(--af-tag-
|
|
31
|
-
color: var(--af-tag-
|
|
28
|
+
.tag.variant-default {
|
|
29
|
+
background-color: var(--af-tag-bg, var(--colour-brand-soft-clay, #b09670));
|
|
30
|
+
color: var(--af-tag-text, var(--colour-brand-inkwell, #14343b));
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
.tag.variant-
|
|
35
|
-
background-color: var(--af-tag-
|
|
33
|
+
.tag.variant-default:hover {
|
|
34
|
+
background-color: var(--af-tag-bg-hover, var(--colour-tints-soft-clay-400, #c0ab8d));
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
/* ==========================================================================
|
|
39
|
-
|
|
38
|
+
EXPLICIT THEME VARIANTS
|
|
40
39
|
========================================================================== */
|
|
41
40
|
|
|
42
|
-
.tag.variant-
|
|
43
|
-
background-color: var(--
|
|
44
|
-
color: var(--
|
|
41
|
+
.tag.variant-inkwell {
|
|
42
|
+
background-color: var(--colour-brand-inkwell, #14343b);
|
|
43
|
+
color: var(--colour-brand-white, #ffffff);
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
.tag.variant-
|
|
48
|
-
background-color: var(--
|
|
46
|
+
.tag.variant-inkwell:hover {
|
|
47
|
+
background-color: var(--colour-tints-inkwell-500, #1e4a48);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.tag.variant-white {
|
|
51
|
+
background-color: var(--colour-brand-white, #ffffff);
|
|
52
|
+
color: var(--colour-brand-inkwell, #14343b);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tag.variant-white:hover {
|
|
56
|
+
background-color: var(--colour-tints-mist-green-100, #e1eee1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tag.variant-soft-clay {
|
|
60
|
+
background-color: var(--colour-brand-soft-clay, #b09670);
|
|
61
|
+
color: var(--colour-brand-inkwell, #14343b);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tag.variant-soft-clay:hover {
|
|
65
|
+
background-color: var(--colour-tints-soft-clay-400, #c0ab8d);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tag.variant-mist-green {
|
|
69
|
+
background-color: var(--colour-brand-mist-green, #c6d5d1);
|
|
70
|
+
color: var(--colour-brand-inkwell, #14343b);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tag.variant-mist-green:hover {
|
|
74
|
+
background-color: var(--colour-tints-mist-green-200, #d2e8e3);
|
|
49
75
|
}
|
|
50
76
|
|
|
51
77
|
/* ==========================================================================
|
|
52
78
|
SIZES
|
|
53
79
|
========================================================================== */
|
|
54
80
|
|
|
55
|
-
/* Size: X-Small */
|
|
56
81
|
.tag.size-x-small {
|
|
57
82
|
padding: 6px 10px;
|
|
58
83
|
font-size: var(--font-size-label-tag, 14px);
|
|
59
84
|
}
|
|
60
85
|
|
|
61
|
-
/* Size: Small */
|
|
62
86
|
.tag.size-small {
|
|
63
87
|
padding: 8px 12px;
|
|
64
88
|
font-size: var(--font-size-label-tag, 14px);
|
|
65
89
|
}
|
|
66
90
|
|
|
67
|
-
/* Size: Large */
|
|
68
91
|
.tag.size-large {
|
|
69
92
|
padding: 12px 16px;
|
|
70
93
|
font-size: var(--font-size-body-large, 18px);
|
|
@@ -74,19 +97,16 @@ a.tag {
|
|
|
74
97
|
FOCUS STATES
|
|
75
98
|
========================================================================== */
|
|
76
99
|
|
|
77
|
-
/* Focus state */
|
|
78
100
|
.tag:focus {
|
|
79
101
|
outline: none;
|
|
80
|
-
box-shadow:
|
|
102
|
+
box-shadow:
|
|
81
103
|
0 0 0 4px var(--af-background-base, var(--colour-background-white, #ffffff)),
|
|
82
104
|
0 0 0 5px var(--af-button-secondary-stroke, var(--colour-brand-inkwell, #14343b));
|
|
83
105
|
}
|
|
84
106
|
|
|
85
|
-
/* Focus visible for keyboard navigation */
|
|
86
107
|
.tag:focus-visible {
|
|
87
108
|
outline: none;
|
|
88
|
-
box-shadow:
|
|
109
|
+
box-shadow:
|
|
89
110
|
0 0 0 4px var(--af-background-base, var(--colour-background-white, #ffffff)),
|
|
90
111
|
0 0 0 5px var(--af-button-secondary-stroke, var(--colour-brand-inkwell, #14343b));
|
|
91
112
|
}
|
|
92
|
-
|
|
@@ -3,11 +3,15 @@ import { h, Host } from "@stencil/core";
|
|
|
3
3
|
* Tag displays a label in a styled container.
|
|
4
4
|
* Perfect for categorization, topics, or metadata display.
|
|
5
5
|
*
|
|
6
|
+
* The `default` variant inherits its colors from the parent theme context
|
|
7
|
+
* (af-section, af-card). Use explicit variants (`inkwell`, `white`,
|
|
8
|
+
* `soft-clay`, `mist-green`) to override.
|
|
9
|
+
*
|
|
6
10
|
* @example
|
|
7
11
|
* ```html
|
|
8
12
|
* <af-tag>AI</af-tag>
|
|
9
|
-
* <af-tag size="small">Machine Learning</af-tag>
|
|
10
|
-
* <af-tag size="large" variant="
|
|
13
|
+
* <af-tag size="small" variant="inkwell">Machine Learning</af-tag>
|
|
14
|
+
* <af-tag size="large" variant="white">Document Processing</af-tag>
|
|
11
15
|
* ```
|
|
12
16
|
*/
|
|
13
17
|
export class AfTag {
|
|
@@ -15,25 +19,24 @@ export class AfTag {
|
|
|
15
19
|
/**
|
|
16
20
|
* The size of the tag
|
|
17
21
|
* - `x-small` - Compact tag with minimal padding
|
|
18
|
-
* - `small` - Small tag with moderate padding
|
|
22
|
+
* - `small` - Small tag with moderate padding (default)
|
|
19
23
|
* - `large` - Large tag with generous padding
|
|
20
24
|
*/
|
|
21
25
|
this.size = 'small';
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* - `light` - Mist-green/light colored background
|
|
27
|
+
* Visual variant of the tag. `default` inherits tag colors from the
|
|
28
|
+
* parent theme context. Theme-named variants force a specific palette.
|
|
26
29
|
*/
|
|
27
|
-
this.variant = '
|
|
30
|
+
this.variant = 'default';
|
|
28
31
|
}
|
|
29
32
|
render() {
|
|
30
33
|
const TagElement = this.href ? 'a' : 'span';
|
|
31
34
|
const linkProps = this.href ? { href: this.href } : {};
|
|
32
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '389b869350a0ead31639016403b8bbd86c8be12f' }, h(TagElement, { key: '7be8b372a4c391ae3e426827cf425274dfe3dc44', class: {
|
|
33
36
|
'tag': true,
|
|
34
37
|
[`size-${this.size}`]: true,
|
|
35
38
|
[`variant-${this.variant}`]: true,
|
|
36
|
-
}, ...linkProps }, h("slot", { key: '
|
|
39
|
+
}, ...linkProps }, h("slot", { key: 'cf622bef7dca7e64215e0e778f3893097e9e30d0' }))));
|
|
37
40
|
}
|
|
38
41
|
static get is() { return "af-tag"; }
|
|
39
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -67,7 +70,7 @@ export class AfTag {
|
|
|
67
70
|
"optional": false,
|
|
68
71
|
"docs": {
|
|
69
72
|
"tags": [],
|
|
70
|
-
"text": "The size of the tag\n- `x-small` - Compact tag with minimal padding\n- `small` - Small tag with moderate padding\n- `large` - Large tag with generous padding"
|
|
73
|
+
"text": "The size of the tag\n- `x-small` - Compact tag with minimal padding\n- `small` - Small tag with moderate padding (default)\n- `large` - Large tag with generous padding"
|
|
71
74
|
},
|
|
72
75
|
"getter": false,
|
|
73
76
|
"setter": false,
|
|
@@ -80,7 +83,7 @@ export class AfTag {
|
|
|
80
83
|
"mutable": false,
|
|
81
84
|
"complexType": {
|
|
82
85
|
"original": "TagVariant",
|
|
83
|
-
"resolved": "\"
|
|
86
|
+
"resolved": "\"default\" | \"inkwell\" | \"mist-green\" | \"soft-clay\" | \"white\"",
|
|
84
87
|
"references": {
|
|
85
88
|
"TagVariant": {
|
|
86
89
|
"location": "local",
|
|
@@ -93,13 +96,13 @@ export class AfTag {
|
|
|
93
96
|
"optional": false,
|
|
94
97
|
"docs": {
|
|
95
98
|
"tags": [],
|
|
96
|
-
"text": "
|
|
99
|
+
"text": "Visual variant of the tag. `default` inherits tag colors from the\nparent theme context. Theme-named variants force a specific palette."
|
|
97
100
|
},
|
|
98
101
|
"getter": false,
|
|
99
102
|
"setter": false,
|
|
100
103
|
"reflect": false,
|
|
101
104
|
"attribute": "variant",
|
|
102
|
-
"defaultValue": "'
|
|
105
|
+
"defaultValue": "'default'"
|
|
103
106
|
},
|
|
104
107
|
"href": {
|
|
105
108
|
"type": "string",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/* Image side - 40.5% of card width (519px of 1280px in Figma) */
|
|
17
17
|
.testimonial-image {
|
|
18
18
|
position: relative;
|
|
19
|
-
width:
|
|
19
|
+
width: 50%;
|
|
20
20
|
min-width: 300px;
|
|
21
21
|
/* Minimum for readability */
|
|
22
22
|
max-width: 519px;
|
|
@@ -84,16 +84,38 @@
|
|
|
84
84
|
flex-shrink: 0;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/* Quote text
|
|
87
|
+
/* Quote text — 22px / 140% per Webflow reference. Accepts either the
|
|
88
|
+
`quote` prop (rendered as plain text) or the `quote-body` slot (rich). */
|
|
88
89
|
.testimonial-text {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
font-family: var(--typography-bodyfont, 'NeuSans', sans-serif);
|
|
91
|
+
font-size: 22px;
|
|
92
|
+
line-height: 1.4;
|
|
93
|
+
font-weight: var(--font-weight-regular, 400);
|
|
94
|
+
color: var(--af-typography-body-default, var(--colour-brand-inkwell, #14343b));
|
|
95
|
+
}
|
|
96
|
+
.testimonial-text ::slotted(p),
|
|
97
|
+
.testimonial-text p {
|
|
98
|
+
font: inherit;
|
|
99
|
+
color: inherit;
|
|
100
|
+
margin: 0 0 12px 0;
|
|
101
|
+
}
|
|
102
|
+
.testimonial-text ::slotted(p:last-child),
|
|
103
|
+
.testimonial-text p:last-child {
|
|
104
|
+
margin-bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
.testimonial-text ::slotted(ul),
|
|
107
|
+
.testimonial-text ul {
|
|
108
|
+
margin: 0 0 12px 0;
|
|
109
|
+
padding-left: 20px;
|
|
92
110
|
}
|
|
93
111
|
|
|
94
112
|
/* Attribution uses body-dark color for emphasis */
|
|
95
113
|
.testimonial-attribution {
|
|
96
|
-
|
|
114
|
+
font-family: var(--typography-bodyfont, 'NeuSans', sans-serif);
|
|
115
|
+
font-size: 16px;
|
|
116
|
+
line-height: 24px;
|
|
117
|
+
color: var(--af-typography-body-dark, var(--colour-brand-inkwell, #14343b));
|
|
118
|
+
margin-top: 12px;
|
|
97
119
|
}
|
|
98
120
|
|
|
99
121
|
.testimonial-stats {
|