@affinda/wc 0.0.23 → 0.0.25
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-04a096ee.entry.js +1 -0
- package/dist/affinda/{p-20fe557e.entry.js → p-0c408447.entry.js} +1 -1
- package/dist/affinda/{p-0ae3495c.entry.js → p-1d94a137.entry.js} +1 -1
- package/dist/affinda/p-1f51e065.entry.js +1 -0
- package/dist/affinda/{p-d9cfea73.entry.js → p-21b7ea67.entry.js} +1 -1
- package/dist/affinda/p-26362b90.entry.js +1 -0
- package/dist/affinda/{p-8742f8fe.entry.js → p-29fd5654.entry.js} +1 -1
- package/dist/affinda/p-2e1df315.entry.js +1 -0
- package/dist/affinda/{p-404f2cea.entry.js → p-39967eba.entry.js} +1 -1
- package/dist/affinda/{p-00a226ba.entry.js → p-3b4fb1a5.entry.js} +1 -1
- package/dist/affinda/p-40456eb5.entry.js +1 -0
- package/dist/affinda/{p-854f6a9e.entry.js → p-416836f3.entry.js} +1 -1
- package/dist/affinda/p-43c24797.entry.js +1 -0
- package/dist/affinda/{p-f825b81f.entry.js → p-45d62b98.entry.js} +1 -1
- package/dist/affinda/{p-26a60b00.entry.js → p-470b9a06.entry.js} +1 -1
- package/dist/affinda/p-4758f89c.entry.js +1 -0
- package/dist/affinda/{p-8c394de2.entry.js → p-4844d749.entry.js} +1 -1
- package/dist/affinda/p-4c362739.entry.js +1 -0
- package/dist/affinda/p-5636afa9.entry.js +1 -0
- package/dist/affinda/p-6059b95e.entry.js +1 -0
- package/dist/affinda/p-60cf2a82.entry.js +1 -0
- package/dist/affinda/p-65207722.entry.js +1 -0
- package/dist/affinda/{p-7ed6ee6a.entry.js → p-66dd6356.entry.js} +1 -1
- package/dist/affinda/{p-6c99b2bb.entry.js → p-678cb08c.entry.js} +1 -1
- package/dist/affinda/p-69cccdef.entry.js +1 -0
- package/dist/affinda/p-6d43ed06.entry.js +1 -0
- package/dist/affinda/p-6dc635ec.entry.js +1 -0
- package/dist/affinda/p-6f5d8680.entry.js +1 -0
- package/dist/affinda/p-7bc1ed79.entry.js +1 -0
- package/dist/affinda/{p-2d4c1202.entry.js → p-7c4f05a7.entry.js} +1 -1
- package/dist/affinda/p-821c1522.entry.js +1 -0
- package/dist/affinda/{p-81de8fbd.entry.js → p-8c34efbb.entry.js} +1 -1
- package/dist/affinda/p-ad71a40c.entry.js +1 -0
- package/dist/affinda/{p-468d16b1.entry.js → p-b0babcae.entry.js} +1 -1
- package/dist/affinda/p-b435de99.entry.js +1 -0
- package/dist/affinda/{p-e61dfb97.entry.js → p-b563bb90.entry.js} +1 -1
- package/dist/affinda/{p-f79781ff.entry.js → p-c1cb8ef8.entry.js} +1 -1
- package/dist/affinda/{p-9018ddec.entry.js → p-c1df7855.entry.js} +1 -1
- package/dist/affinda/p-c83e8184.entry.js +1 -0
- package/dist/affinda/p-cd138311.entry.js +1 -0
- package/dist/affinda/p-d3d9eac1.entry.js +1 -0
- package/dist/affinda/p-d3e3653e.entry.js +1 -0
- package/dist/affinda/{p-589a860a.entry.js → p-da9d1f7d.entry.js} +1 -1
- package/dist/affinda/{p-289cb56f.entry.js → p-dce846f2.entry.js} +1 -1
- package/dist/affinda/p-ddd41c87.entry.js +1 -0
- package/dist/affinda/{p-0264279f.entry.js → p-e169a37b.entry.js} +1 -1
- package/dist/affinda/p-e91ef47c.entry.js +1 -0
- package/dist/affinda/{p-b9f58a18.entry.js → p-fb01c4e0.entry.js} +1 -1
- package/dist/cjs/af-accordion-item.cjs.entry.js +27 -1
- package/dist/cjs/af-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-button.cjs.entry.js +4 -5
- 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 +30 -2
- package/dist/cjs/af-contact-item.cjs.entry.js +1 -1
- package/dist/cjs/af-container.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 +2 -2
- 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 +2 -2
- package/dist/cjs/af-grid.cjs.entry.js +3 -3
- package/dist/cjs/af-heading_5.cjs.entry.js +42 -11
- 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 +2 -12
- 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 +17 -2
- package/dist/cjs/af-nav-accordion.cjs.entry.js +1 -1
- package/dist/cjs/af-nav-menu-nest.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +8 -7
- package/dist/cjs/af-testimonial-carousel.cjs.entry.js +2 -2
- 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-text-image.cjs.entry.js +2 -1
- package/dist/cjs/af-theme-override.cjs.entry.js +2 -2
- package/dist/cjs/af-typography-lockup.cjs.entry.js +49 -3
- 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 +27 -1
- package/dist/collection/components/af-button/af-button.css +24 -24
- package/dist/collection/components/af-button/af-button.js +9 -10
- 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.css +17 -2
- package/dist/collection/components/af-client-carousel/af-client-carousel.js +41 -5
- package/dist/collection/components/af-contact-item/af-contact-item.js +1 -1
- package/dist/collection/components/af-container/af-container.css +6 -11
- package/dist/collection/components/af-divider/af-divider.js +1 -1
- package/dist/collection/components/af-feature-accordion/af-feature-accordion.css +2 -0
- package/dist/collection/components/af-feature-accordion/af-feature-accordion.js +2 -2
- package/dist/collection/components/af-feature-card/af-feature-card.css +1 -0
- package/dist/collection/components/af-feature-grid/af-feature-grid.css +6 -4
- package/dist/collection/components/af-feature-grid/af-feature-grid.js +1 -1
- package/dist/collection/components/af-footer/af-footer.css +11 -4
- 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.css +5 -2
- package/dist/collection/components/af-grid/af-grid.js +2 -2
- package/dist/collection/components/af-grid-callout/af-grid-callout.css +2 -0
- package/dist/collection/components/af-heading/af-heading.css +19 -32
- 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.css +1 -0
- package/dist/collection/components/af-icon-text/af-icon-text.js +3 -3
- package/dist/collection/components/af-illustrated-card/af-illustrated-card.js +3 -4
- package/dist/collection/components/af-image/af-image.css +4 -21
- package/dist/collection/components/af-image/af-image.js +1 -33
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.css +3 -3
- package/dist/collection/components/af-in-page-banner/af-in-page-banner.js +1 -11
- package/dist/collection/components/af-inline/af-inline.js +1 -1
- package/dist/collection/components/af-logo-well/af-logo-well.css +1 -0
- 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 +19 -4
- package/dist/collection/components/af-nav-item/af-nav-item.css +5 -8
- package/dist/collection/components/af-nav-item/af-nav-item.js +31 -4
- 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.css +25 -1
- package/dist/collection/components/af-nav-menu-nest/af-nav-menu-nest.js +1 -1
- package/dist/collection/components/af-navbar/af-navbar.css +30 -14
- package/dist/collection/components/af-navbar/af-navbar.js +15 -4
- 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 +15 -15
- package/dist/collection/components/af-section/af-section.js +2 -2
- package/dist/collection/components/af-show/af-show.css +4 -4
- 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.css +1 -0
- 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.css +1 -0
- package/dist/collection/components/af-stepper/af-stepper.js +1 -1
- package/dist/collection/components/af-stepper-step/af-stepper-step.css +1 -0
- package/dist/collection/components/af-stepper-step/af-stepper-step.js +1 -1
- package/dist/collection/components/af-tag/af-tag.css +21 -41
- package/dist/collection/components/af-tag/af-tag.js +13 -16
- package/dist/collection/components/af-testimonial/af-testimonial.css +24 -29
- package/dist/collection/components/af-testimonial/af-testimonial.js +6 -14
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.css +8 -0
- 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/af-text-image.css +10 -0
- package/dist/collection/components/af-text-image/af-text-image.js +4 -3
- package/dist/collection/components/af-text-image-nest/af-text-image-nest.css +1 -0
- 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 +4 -22
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.js +76 -3
- package/dist/collection/components/af-video-container/af-video-container.css +1 -0
- 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-container.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-heading.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-item.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-B7lJGMfD.js +1 -0
- package/dist/components/p-BAJW_4SY.js +1 -0
- package/dist/components/{p-9SgEr6QK.js → p-BE3eM0xx.js} +1 -1
- package/dist/components/p-BMwWkh8F.js +1 -0
- package/dist/components/p-BvLGR36l.js +1 -0
- package/dist/components/p-C5_nFNYV.js +1 -0
- package/dist/components/p-CQfk7gDb.js +1 -0
- package/dist/components/p-CRW9bpXa.js +1 -0
- package/dist/components/p-CYXTWxXF.js +1 -0
- package/dist/components/p-CwPFdy8d.js +1 -0
- package/dist/components/p-Doypq9O5.js +1 -0
- package/dist/components/p-oawfHsaK.js +1 -0
- package/dist/components/{p-DPujlxcb.js → p-sbtSgHjb.js} +1 -1
- package/dist/components/p-wM1k9Wi7.js +1 -0
- package/dist/esm/af-accordion-item.entry.js +27 -1
- package/dist/esm/af-accordion.entry.js +1 -1
- package/dist/esm/af-button.entry.js +4 -5
- 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 +31 -3
- package/dist/esm/af-contact-item.entry.js +1 -1
- package/dist/esm/af-container.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 +2 -2
- 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 +2 -2
- package/dist/esm/af-grid.entry.js +3 -3
- package/dist/esm/af-heading_5.entry.js +42 -11
- 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 +2 -12
- 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 +17 -2
- package/dist/esm/af-nav-accordion.entry.js +1 -1
- package/dist/esm/af-nav-menu-nest.entry.js +2 -2
- 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 +2 -2
- 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 +8 -7
- package/dist/esm/af-testimonial-carousel.entry.js +2 -2
- 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-text-image.entry.js +2 -1
- package/dist/esm/af-theme-override.entry.js +2 -2
- package/dist/esm/af-typography-lockup.entry.js +50 -4
- 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 +5 -6
- package/dist/types/components/af-client-carousel/af-client-carousel.d.ts +26 -3
- 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 +2 -3
- package/dist/types/components/af-image/af-image.d.ts +0 -10
- package/dist/types/components/af-in-page-banner/af-in-page-banner.d.ts +0 -10
- package/dist/types/components/af-nav-accordion-item/af-nav-accordion-item.d.ts +9 -0
- package/dist/types/components/af-nav-item/af-nav-item.d.ts +14 -0
- package/dist/types/components/af-navbar/af-navbar.d.ts +9 -1
- package/dist/types/components/af-tag/af-tag.d.ts +7 -10
- package/dist/types/components/af-testimonial/af-testimonial.d.ts +2 -11
- package/dist/types/components/af-text-image/af-text-image.d.ts +2 -1
- package/dist/types/components/af-typography-lockup/af-typography-lockup.d.ts +40 -1
- package/dist/types/components.d.ts +180 -115
- package/package.json +1 -1
- package/dist/affinda/p-09184969.entry.js +0 -1
- package/dist/affinda/p-0c6b7f0b.entry.js +0 -1
- package/dist/affinda/p-14c85efd.entry.js +0 -1
- package/dist/affinda/p-1d72e1dd.entry.js +0 -1
- package/dist/affinda/p-2c0c94c5.entry.js +0 -1
- package/dist/affinda/p-2ce405df.entry.js +0 -1
- package/dist/affinda/p-2f1e0c44.entry.js +0 -1
- package/dist/affinda/p-3899a278.entry.js +0 -1
- package/dist/affinda/p-46efe4e4.entry.js +0 -1
- package/dist/affinda/p-63e86a14.entry.js +0 -1
- package/dist/affinda/p-9fea6229.entry.js +0 -1
- package/dist/affinda/p-a5f7d3d6.entry.js +0 -1
- package/dist/affinda/p-a8af25d5.entry.js +0 -1
- package/dist/affinda/p-af9e25ea.entry.js +0 -1
- package/dist/affinda/p-bd3f81fc.entry.js +0 -1
- package/dist/affinda/p-ca14e17a.entry.js +0 -1
- package/dist/affinda/p-cb889d6b.entry.js +0 -1
- package/dist/affinda/p-cbf0911b.entry.js +0 -1
- package/dist/affinda/p-d7129564.entry.js +0 -1
- package/dist/affinda/p-df7b1b09.entry.js +0 -1
- package/dist/affinda/p-e0915179.entry.js +0 -1
- package/dist/affinda/p-e3cd6671.entry.js +0 -1
- package/dist/affinda/p-e6b4761c.entry.js +0 -1
- package/dist/affinda/p-ef754e65.entry.js +0 -1
- package/dist/affinda/p-f3d5d1be.entry.js +0 -1
- package/dist/affinda/p-ffdd2c30.entry.js +0 -1
- package/dist/components/p-B6I3yxMd.js +0 -1
- package/dist/components/p-BUFbtjxU.js +0 -1
- package/dist/components/p-BeVM-2kH.js +0 -1
- package/dist/components/p-BlfywPKX.js +0 -1
- package/dist/components/p-BzH2LxRQ.js +0 -1
- package/dist/components/p-CHNaDIj5.js +0 -1
- package/dist/components/p-CSGAhCLK.js +0 -1
- package/dist/components/p-CTcar4TG.js +0 -1
- package/dist/components/p-DOJEJFNa.js +0 -1
- package/dist/components/p-UTiuvQaz.js +0 -1
- package/dist/components/p-tB2jS8S_.js +0 -1
- package/dist/components/p-tF59ipRp.js +0 -1
|
@@ -22,16 +22,6 @@ 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.
|
|
35
25
|
*/
|
|
36
26
|
export class AfInPageBanner {
|
|
37
27
|
constructor() {
|
|
@@ -66,7 +56,7 @@ export class AfInPageBanner {
|
|
|
66
56
|
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" }))));
|
|
67
57
|
}
|
|
68
58
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '2720fd3ccb0d8f2e37144265de17ce7ec40d5197' }, h("div", { key: 'edfa5812b8de06a50fd4502ee57a4590bab7891c', class: `banner theme-${this.theme}` }, this.showWaveDecoration && this.renderWaveOverlay(), h("div", { key: '401c710a4642b04cae3ad4795db1a9444a25ca13', class: "banner__illustration" }, this.illustrationUrl ? (h("img", { src: this.illustrationUrl, alt: "", class: "banner__illustration-img", loading: "lazy" })) : (h("slot", { name: "illustration" }))), h("div", { key: 'f09c44f258171263a035081af7918085e11aede6', class: "banner__content" }, h("div", { key: '3badcdab323c0c16b9d484d4fc55989b37cdbe08', class: "banner__copy" }, this.heading && (h("h2", { key: 'c35214a8429164d16bbb024292daf8d18fbeba29', class: "banner__heading" }, this.heading)), this.description && (h("p", { key: 'ecbfa1ff0649d77d8d874582b2d09b60c8e193c6', class: "banner__description" }, this.description))), (this.primaryButtonText || this.secondaryButtonText) && (h("div", { key: '6ef15b587a684ac9d4cc9ce4af81fca6d0a23446', class: "banner__buttons" }, this.primaryButtonText && (h("af-button", { key: 'ef632338bc8a8e9332f12c30ada3ad2c83201688', href: this.primaryButtonUrl, variant: "primary" }, this.primaryButtonText)), this.secondaryButtonText && (h("af-button", { key: '6265d2595f6e7ad3f45bb1284b9b2953f03e0cfe', href: this.secondaryButtonUrl, variant: "secondary" }, this.secondaryButtonText))))))));
|
|
70
60
|
}
|
|
71
61
|
static get is() { return "af-in-page-banner"; }
|
|
72
62
|
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: '98aab1aa94a068796ee7abdd00d44cac516f6be1', style: style }, h("slot", { key: '2c700f8333f3c010344d499b7d8bc5126d139745' })));
|
|
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: '8101d42a68af7c5cfc90e6a13706e93823da27c3' }, h("div", { key: '2403b1d1f5b365cc2f7e37cb9387e9c2009efd5f', class: "logo-well" }, h("slot", { key: 'da5724c0fb823b8aa7f85fd7d95b94c2841c2f70' }))));
|
|
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: '9764092415b6f501cdbf38649e00d172bbbf8e12', class: { [`breakpoint-${this.breakpoint}`]: true, [`mode-${this.mode}`]: true } }, h("div", { key: 'c8dbefa2fcffc74ade77432b4a97e0decbc15823', class: "nav-accordion" }, h("slot", { key: '688c01dc567713e5e1040b766f32f8d1a67b8d0f' }))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "af-nav-accordion"; }
|
|
77
77
|
static get encapsulation() { return "scoped"; }
|
|
@@ -22,6 +22,7 @@ export class AfNavAccordionItem {
|
|
|
22
22
|
this.breakpoint = 'mobile';
|
|
23
23
|
this.contentHeight = 0;
|
|
24
24
|
this.hasTriggerSlot = false;
|
|
25
|
+
this.hasContent = false;
|
|
25
26
|
this.handleTriggerClick = (event) => {
|
|
26
27
|
// If it's a link, let it navigate (unless they clicked the chevron specifically)
|
|
27
28
|
if (this.href) {
|
|
@@ -46,6 +47,16 @@ export class AfNavAccordionItem {
|
|
|
46
47
|
this.measureContent();
|
|
47
48
|
}
|
|
48
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Detect whether the host has any default-slot children — i.e. whether
|
|
52
|
+
* this item expands to reveal a sub-menu, or is just a simple link.
|
|
53
|
+
* We check in componentWillLoad (before render) because after render
|
|
54
|
+
* Stencil has appended its own output to the host and this.el.children
|
|
55
|
+
* would include that.
|
|
56
|
+
*/
|
|
57
|
+
componentWillLoad() {
|
|
58
|
+
this.hasContent = Array.from(this.el.children).some((child) => !child.hasAttribute('slot'));
|
|
59
|
+
}
|
|
49
60
|
componentDidLoad() {
|
|
50
61
|
if (this.open) {
|
|
51
62
|
this.measureContent();
|
|
@@ -69,12 +80,15 @@ export class AfNavAccordionItem {
|
|
|
69
80
|
const contentStyle = {
|
|
70
81
|
maxHeight: this.open ? `${this.contentHeight}px` : '0px'
|
|
71
82
|
};
|
|
72
|
-
|
|
73
|
-
|
|
83
|
+
// Only render the chevron toggle when this item actually has
|
|
84
|
+
// sub-content to expand. A plain href item with no children is a
|
|
85
|
+
// direct link and shouldn't show a disclosure affordance.
|
|
86
|
+
const hasDropdownContent = this.hasContent;
|
|
87
|
+
return (h(Host, { key: '959165c0c1ba72e3e3e33956862a47a9e080ce91', class: {
|
|
74
88
|
'is-open': this.open,
|
|
75
89
|
'is-disabled': this.disabled,
|
|
76
90
|
[`breakpoint-${this.breakpoint}`]: true
|
|
77
|
-
} }, h("div", { key: '
|
|
91
|
+
} }, h("div", { key: '7edc90a2480aa453ca8407acf31c6af8c44bc9ab', 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: '826855c6ca16a807c1f4dec417c771c8bbdc0966', id: `content-${this.itemId}`, class: "content-wrapper", style: contentStyle, "aria-hidden": !this.open ? 'true' : 'false' }, h("div", { key: '9a614290248120ad48b7658fbeecb8d4e83e53db', class: "content", ref: (el) => (this.contentRef = el) }, h("slot", { key: 'dd22fe45b6ad6f7a7c39b1a0a1055421b7b80a51' }))))));
|
|
78
92
|
}
|
|
79
93
|
static get is() { return "af-nav-accordion-item"; }
|
|
80
94
|
static get encapsulation() { return "scoped"; }
|
|
@@ -212,7 +226,8 @@ export class AfNavAccordionItem {
|
|
|
212
226
|
static get states() {
|
|
213
227
|
return {
|
|
214
228
|
"contentHeight": {},
|
|
215
|
-
"hasTriggerSlot": {}
|
|
229
|
+
"hasTriggerSlot": {},
|
|
230
|
+
"hasContent": {}
|
|
216
231
|
};
|
|
217
232
|
}
|
|
218
233
|
static get events() {
|
|
@@ -210,13 +210,9 @@
|
|
|
210
210
|
color: var(--af-nav-item-secondary, var(--af-typography-body-default, #2b484f));
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
/* Icon rotation on
|
|
214
|
-
|
|
215
|
-
.
|
|
216
|
-
transform: rotate(180deg);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/* Icon rotation on active for mobile primary with dropdown indicator */
|
|
213
|
+
/* Icon rotation on active for mobile primary with dropdown indicator.
|
|
214
|
+
Desktop chevrons stay static — rotating on hover/active felt fidgety
|
|
215
|
+
and the open/closed state is already clear from the dropdown panel. */
|
|
220
216
|
.hierarchy-primary.breakpoint-mobile.active ::slotted([slot="icon-right"]) {
|
|
221
217
|
transform: rotate(180deg);
|
|
222
218
|
}
|
|
@@ -237,7 +233,8 @@
|
|
|
237
233
|
}
|
|
238
234
|
|
|
239
235
|
/* Fallback media query for when breakpoint prop is not set */
|
|
240
|
-
|
|
236
|
+
/* ≤ tablet */
|
|
237
|
+
@media (max-width: 1023px) {
|
|
241
238
|
:host([breakpoint="auto"]) .hierarchy-primary,
|
|
242
239
|
:host(:not([breakpoint])) .hierarchy-primary {
|
|
243
240
|
padding: 20px 12px;
|
|
@@ -2,6 +2,13 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
/**
|
|
3
3
|
* A generic navigation item component that can be used in navigation bars, menus, and sidebars.
|
|
4
4
|
* Supports multiple hierarchy levels, variants, and states (active, hover).
|
|
5
|
+
*
|
|
6
|
+
* **Dropdown trigger a11y:** when the host carries a `data-dropdown="id"`
|
|
7
|
+
* attribute and has no `href`, the inner wrapper is promoted to
|
|
8
|
+
* `role="button"` with `tabindex="0"` and keyboard activation (Enter/Space),
|
|
9
|
+
* so keyboard users can open the matching dropdown panel just like a
|
|
10
|
+
* pointer click. The companion `af-navbar` keeps `aria-expanded` on the
|
|
11
|
+
* host in sync with the active dropdown.
|
|
5
12
|
*/
|
|
6
13
|
export class AfNavItem {
|
|
7
14
|
constructor() {
|
|
@@ -27,6 +34,17 @@ export class AfNavItem {
|
|
|
27
34
|
* Whether this nav item is currently active/selected
|
|
28
35
|
*/
|
|
29
36
|
this.active = false;
|
|
37
|
+
/**
|
|
38
|
+
* Promote Enter and Space on a focused trigger into a synthetic click
|
|
39
|
+
* so the surrounding af-navbar (which listens on click) treats the
|
|
40
|
+
* keyboard activation identically to a pointer click.
|
|
41
|
+
*/
|
|
42
|
+
this.handleTriggerKeyDown = (event) => {
|
|
43
|
+
if (event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar') {
|
|
44
|
+
event.preventDefault();
|
|
45
|
+
this.el.click();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
30
48
|
}
|
|
31
49
|
render() {
|
|
32
50
|
const classes = {
|
|
@@ -34,13 +52,21 @@ export class AfNavItem {
|
|
|
34
52
|
[`hierarchy-${this.hierarchy}`]: true,
|
|
35
53
|
[`variant-${this.variant}`]: true,
|
|
36
54
|
[`breakpoint-${this.breakpoint}`]: true,
|
|
37
|
-
'active': this.active
|
|
55
|
+
'active': this.active,
|
|
38
56
|
};
|
|
39
|
-
const
|
|
57
|
+
const innerContent = [
|
|
58
|
+
h("slot", { name: "icon-left" }),
|
|
59
|
+
h("div", { class: "label-container" }, h("slot", null)),
|
|
60
|
+
h("slot", { name: "icon-right" }),
|
|
61
|
+
];
|
|
40
62
|
if (this.href) {
|
|
41
|
-
return (h(Host, null, h("a", { href: this.href, class: "nav-link" },
|
|
63
|
+
return (h(Host, null, h("a", { href: this.href, class: "nav-link" }, h("div", { class: classes }, innerContent))));
|
|
64
|
+
}
|
|
65
|
+
const isDropdownTrigger = this.el.hasAttribute('data-dropdown');
|
|
66
|
+
if (isDropdownTrigger) {
|
|
67
|
+
return (h(Host, null, h("div", { class: classes, role: "button", tabindex: 0, "aria-haspopup": "menu", onKeyDown: this.handleTriggerKeyDown }, innerContent)));
|
|
42
68
|
}
|
|
43
|
-
return h(Host, null,
|
|
69
|
+
return h(Host, null, h("div", { class: classes }, innerContent));
|
|
44
70
|
}
|
|
45
71
|
static get is() { return "af-nav-item"; }
|
|
46
72
|
static get encapsulation() { return "scoped"; }
|
|
@@ -157,4 +183,5 @@ export class AfNavItem {
|
|
|
157
183
|
}
|
|
158
184
|
};
|
|
159
185
|
}
|
|
186
|
+
static get elementRef() { return "el"; }
|
|
160
187
|
}
|
|
@@ -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: '11f883b5cc420ee5cb99c723cc492b7346c3761d' }, h("div", { key: 'c3261a46a80fcbbdbfc3d82ee43e4cb31f6de4d8', class: classes }, this.heading && (h("div", { key: 'fd6f90c2bc9f34ef30efc22b49eb36bd6fd7ae52', class: "menu-header" }, h("h3", { key: '5e80c33bdd36dcc23d3445fd92af76f69f28a7c8', class: "menu-heading" }, this.heading))), h("div", { key: '6b62d13e30422c7f331350ec39ab2429f5a50294', class: "menu-items" }, h("slot", { key: '49740ab88d6c957395b902f98526b60353af4be5' })))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "af-nav-menu"; }
|
|
36
36
|
static get encapsulation() { return "scoped"; }
|
|
@@ -36,8 +36,13 @@
|
|
|
36
36
|
margin-top: 16px;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/* Slotted NavMenu in columns -
|
|
39
|
+
/* Slotted NavMenu in columns - equal-width flex items with border and
|
|
40
|
+
* spacing. `flex: 1 1 0` gives every column the same width regardless of
|
|
41
|
+
* content; `min-width: 0` lets the content wrap within its column rather
|
|
42
|
+
* than forcing the whole row to grow. */
|
|
40
43
|
.nav-menu-nest.breakpoint-desktop .menu-columns ::slotted(af-nav-menu) {
|
|
44
|
+
flex: 1 1 0;
|
|
45
|
+
min-width: 0;
|
|
41
46
|
border-right: 1px solid var(--af-background-border-subtle, #e8eeed);
|
|
42
47
|
padding-right: 32px;
|
|
43
48
|
padding-top: 16px;
|
|
@@ -55,6 +60,25 @@
|
|
|
55
60
|
padding-right: 32px;
|
|
56
61
|
}
|
|
57
62
|
|
|
63
|
+
/* Tighter layout in the 992–1199px band where the desktop nav is still
|
|
64
|
+
* shown but horizontal room is limited — reduces gap/padding so the
|
|
65
|
+
* four-column layout doesn't read as cramped. */
|
|
66
|
+
@media (max-width: 1199px) {
|
|
67
|
+
.nav-menu-nest.breakpoint-desktop .menu-columns {
|
|
68
|
+
gap: 20px;
|
|
69
|
+
padding: 20px 0 24px 24px;
|
|
70
|
+
}
|
|
71
|
+
.nav-menu-nest.breakpoint-desktop .menu-sidebar {
|
|
72
|
+
padding: 20px 24px 24px 20px;
|
|
73
|
+
}
|
|
74
|
+
.nav-menu-nest.breakpoint-desktop .menu-columns ::slotted(af-nav-menu) {
|
|
75
|
+
padding-right: 20px;
|
|
76
|
+
}
|
|
77
|
+
:host([show-sidebar-border]) .nav-menu-nest.breakpoint-desktop .menu-columns ::slotted(af-nav-menu:last-of-type) {
|
|
78
|
+
padding-right: 20px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
58
82
|
/* Mobile layout */
|
|
59
83
|
.nav-menu-nest.breakpoint-mobile {
|
|
60
84
|
flex-direction: column;
|
|
@@ -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: '8b256672578e162c65c1dd83b735f3fd8af8bb56' }, h("div", { key: '1f009f9f0986790e3b330eec97fa5e9f63604108', class: classes }, h("div", { key: 'db3540b0259d8474093e1d31c51e7ae1311700c0', class: "menu-columns" }, h("slot", { key: '06c90ac9305b96d64bc86fcf16ba639db31c4d08' })), h("div", { key: '5ad8cb59dd4c88c6dadf38aac88df6697541ad52', class: "menu-sidebar" }, h("slot", { key: '98a73cb259c755fa1efc70294772abf89d233581', name: "sidebar" })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "af-nav-menu-nest"; }
|
|
54
54
|
static get encapsulation() { return "scoped"; }
|
|
@@ -28,11 +28,15 @@
|
|
|
28
28
|
/* Sticky navbar that floats above the spacer */
|
|
29
29
|
.navbar-container {
|
|
30
30
|
position: fixed;
|
|
31
|
-
top
|
|
31
|
+
/* Add safe-area-inset-top so the pill drops below the iOS notch / status bar
|
|
32
|
+
when the page uses viewport-fit=cover. Falls back to the original 32px. */
|
|
33
|
+
top: max(32px, env(safe-area-inset-top));
|
|
32
34
|
left: 0;
|
|
33
35
|
right: 0;
|
|
34
36
|
z-index: 10;
|
|
35
|
-
padding
|
|
37
|
+
/* Horizontal padding honours safe-area-inset-left/right for landscape on
|
|
38
|
+
notched devices; the inset is added on top of the existing 80px gutter. */
|
|
39
|
+
padding: 0 calc(80px + env(safe-area-inset-right)) 0 calc(80px + env(safe-area-inset-left));
|
|
36
40
|
box-sizing: border-box;
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -101,13 +105,19 @@
|
|
|
101
105
|
align-items: center;
|
|
102
106
|
}
|
|
103
107
|
|
|
104
|
-
/* Dropdown container
|
|
108
|
+
/* Dropdown container. The container's top is raised 8px into what
|
|
109
|
+
was previously a blank gap between the nav pill and the panel, and
|
|
110
|
+
that 8px is absorbed as container top-padding — so the visible panel
|
|
111
|
+
stays put, but the hoverable region is now continuous between the
|
|
112
|
+
nav pill and the dropdown. Without this, the mouse crosses an
|
|
113
|
+
un-hovered strip on its way from trigger to panel and the navbar's
|
|
114
|
+
mouseleave handler fires a close. */
|
|
105
115
|
.dropdown-container {
|
|
106
116
|
position: absolute;
|
|
107
|
-
top:
|
|
117
|
+
top: 100px;
|
|
108
118
|
left: 0;
|
|
109
119
|
right: 0;
|
|
110
|
-
padding:
|
|
120
|
+
padding: 8px 80px 0;
|
|
111
121
|
pointer-events: none;
|
|
112
122
|
opacity: 0;
|
|
113
123
|
transform: translateY(-8px);
|
|
@@ -142,7 +152,13 @@
|
|
|
142
152
|
bottom: 0;
|
|
143
153
|
background: var(--colour-background-base, #ffffff);
|
|
144
154
|
z-index: 9;
|
|
145
|
-
|
|
155
|
+
/* Full-viewport drawer: pad the top below the notch, the bottom above the
|
|
156
|
+
home indicator, and the sides away from landscape edge cutouts. */
|
|
157
|
+
padding:
|
|
158
|
+
max(100px, calc(100px + env(safe-area-inset-top)))
|
|
159
|
+
calc(16px + env(safe-area-inset-right))
|
|
160
|
+
max(24px, env(safe-area-inset-bottom))
|
|
161
|
+
calc(16px + env(safe-area-inset-left));
|
|
146
162
|
overflow-y: auto;
|
|
147
163
|
opacity: 0;
|
|
148
164
|
pointer-events: none;
|
|
@@ -199,8 +215,8 @@
|
|
|
199
215
|
}
|
|
200
216
|
|
|
201
217
|
.navbar-container {
|
|
202
|
-
top: 24px;
|
|
203
|
-
padding: 0 40px;
|
|
218
|
+
top: max(24px, env(safe-area-inset-top));
|
|
219
|
+
padding: 0 calc(40px + env(safe-area-inset-right)) 0 calc(40px + env(safe-area-inset-left));
|
|
204
220
|
}
|
|
205
221
|
|
|
206
222
|
.navbar-left {
|
|
@@ -226,8 +242,8 @@
|
|
|
226
242
|
}
|
|
227
243
|
|
|
228
244
|
.navbar-container {
|
|
229
|
-
top: 16px;
|
|
230
|
-
padding: 0 16px;
|
|
245
|
+
top: max(16px, env(safe-area-inset-top));
|
|
246
|
+
padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
|
|
231
247
|
z-index: 11; /* Above mobile menu panel */
|
|
232
248
|
}
|
|
233
249
|
|
|
@@ -277,7 +293,7 @@
|
|
|
277
293
|
|
|
278
294
|
/* Mobile menu panel adjustments */
|
|
279
295
|
.mobile-menu-panel {
|
|
280
|
-
padding-top: 88px; /* Accounts for navbar height */
|
|
296
|
+
padding-top: max(88px, calc(88px + env(safe-area-inset-top))); /* Accounts for navbar height + notch */
|
|
281
297
|
}
|
|
282
298
|
|
|
283
299
|
.mobile-button-container {
|
|
@@ -303,8 +319,8 @@
|
|
|
303
319
|
}
|
|
304
320
|
|
|
305
321
|
:host([force-mobile]) .navbar-container {
|
|
306
|
-
top: 16px;
|
|
307
|
-
padding: 0 16px;
|
|
322
|
+
top: max(16px, env(safe-area-inset-top));
|
|
323
|
+
padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
|
|
308
324
|
z-index: 11;
|
|
309
325
|
}
|
|
310
326
|
|
|
@@ -353,7 +369,7 @@
|
|
|
353
369
|
}
|
|
354
370
|
|
|
355
371
|
:host([force-mobile]) .mobile-menu-panel {
|
|
356
|
-
padding-top: 88px;
|
|
372
|
+
padding-top: max(88px, calc(88px + env(safe-area-inset-top)));
|
|
357
373
|
}
|
|
358
374
|
|
|
359
375
|
:host([force-mobile]) .mobile-menu-panel.is-open {
|
|
@@ -72,6 +72,7 @@ export class AfNavbar {
|
|
|
72
72
|
event.preventDefault();
|
|
73
73
|
event.stopPropagation();
|
|
74
74
|
this.cancelScheduledClose();
|
|
75
|
+
this.lastActiveTrigger = trigger;
|
|
75
76
|
this.toggleDropdown(id);
|
|
76
77
|
}
|
|
77
78
|
/**
|
|
@@ -89,6 +90,7 @@ export class AfNavbar {
|
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
92
|
this.cancelScheduledClose();
|
|
93
|
+
this.lastActiveTrigger = trigger;
|
|
92
94
|
this.openDropdown(id);
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
@@ -102,11 +104,15 @@ export class AfNavbar {
|
|
|
102
104
|
this.cancelScheduledClose();
|
|
103
105
|
}
|
|
104
106
|
scheduleClose() {
|
|
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.
|
|
105
111
|
this.cancelScheduledClose();
|
|
106
112
|
this.closeTimer = window.setTimeout(() => {
|
|
107
113
|
this.closeDropdown();
|
|
108
114
|
this.closeTimer = undefined;
|
|
109
|
-
},
|
|
115
|
+
}, 100);
|
|
110
116
|
}
|
|
111
117
|
cancelScheduledClose() {
|
|
112
118
|
if (this.closeTimer !== undefined) {
|
|
@@ -149,19 +155,24 @@ export class AfNavbar {
|
|
|
149
155
|
trigger.setAttribute('data-active', '');
|
|
150
156
|
else
|
|
151
157
|
trigger.removeAttribute('data-active');
|
|
158
|
+
trigger.setAttribute('aria-expanded', active ? 'true' : 'false');
|
|
152
159
|
});
|
|
153
160
|
}
|
|
154
161
|
/**
|
|
155
|
-
* Handle escape key to close dropdowns
|
|
162
|
+
* Handle escape key to close dropdowns. If a dropdown is open, restore
|
|
163
|
+
* focus to the trigger that opened it so keyboard users don't lose
|
|
164
|
+
* their place in the tab order.
|
|
156
165
|
*/
|
|
157
166
|
handleKeyDown(event) {
|
|
158
|
-
if (event.key === 'Escape') {
|
|
167
|
+
if (event.key === 'Escape' && this.activeDropdown !== null) {
|
|
168
|
+
const toFocus = this.lastActiveTrigger;
|
|
159
169
|
this.closeDropdown();
|
|
170
|
+
toFocus?.focus?.();
|
|
160
171
|
}
|
|
161
172
|
}
|
|
162
173
|
render() {
|
|
163
174
|
const hasDropdown = this.activeDropdown !== null;
|
|
164
|
-
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" })))));
|
|
165
176
|
}
|
|
166
177
|
static get is() { return "af-navbar"; }
|
|
167
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: '9966db4536a1ce0b5e35a65aa63ea5c0771e8a9a', role: "img", "aria-label": `Number ${this.number}${isInCircle ? ' badge' : ''}` }, h("span", { key: 'a963bb7feea690d898228a3a0d076e079994cdf4', 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: '9a6fac61d82f79f36a4cb60e929e96449de232a8' }, h("div", { key: '1d535263ab6274466280caebcaf52052adfbb4b5', 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: '6f479550cd91f8c4f5a256546ed80a09498d6bba', class: "progress-line__background" }), h("div", { key: 'b0f6e719cdede111f7a15651d9f5289456dbddf4', 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-tertiary-text: var(--colour-brand-inkwell, #14343b);
|
|
78
|
+
--af-button-tertiary-icon: var(--colour-brand-inkwell, #14343b);
|
|
79
|
+
--af-button-tertiary-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-tertiary-text: var(--colour-brand-white, #ffffff);
|
|
152
|
+
--af-button-tertiary-icon: var(--colour-brand-white, #ffffff);
|
|
153
|
+
--af-button-tertiary-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-tertiary-text: var(--colour-brand-inkwell, #14343b);
|
|
226
|
+
--af-button-tertiary-icon: var(--colour-brand-inkwell, #14343b);
|
|
227
|
+
--af-button-tertiary-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-tertiary-text: var(--colour-brand-inkwell, #14343b);
|
|
300
|
+
--af-button-tertiary-icon: var(--colour-brand-inkwell, #14343b);
|
|
301
|
+
--af-button-tertiary-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-tertiary-text: var(--colour-brand-inkwell, #14343b);
|
|
374
|
+
--af-button-tertiary-icon: var(--colour-brand-inkwell, #14343b);
|
|
375
|
+
--af-button-tertiary-stroke: var(--colour-brand-soft-clay, #b09670);
|
|
376
376
|
|
|
377
377
|
/* Input tokens */
|
|
378
378
|
--af-input-label: var(--af-typography-body-dark);
|
|
@@ -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: 'ae8f8342af2711fb23030adbd27d08ce89578ecb' });
|
|
17
|
+
return (h(Host, { key: 'bc6fba7cc81e35662dfb68621021136065b6e198' }, h("div", { key: '46d1700bb966cafb88a78ecc750d558b16942e79', 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"; }
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/* Show above breakpoints (hidden below) */
|
|
10
|
-
/* sm:
|
|
10
|
+
/* sm: 480px (small) */
|
|
11
11
|
:host(.show-above-sm) {
|
|
12
12
|
display: none;
|
|
13
13
|
}
|
|
14
|
-
@media (min-width:
|
|
14
|
+
@media (min-width: 480px) {
|
|
15
15
|
:host(.show-above-sm) {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Show below breakpoints (hidden at or above) */
|
|
51
|
-
/* sm:
|
|
52
|
-
@media (min-width:
|
|
51
|
+
/* sm: 480px (small) */
|
|
52
|
+
@media (min-width: 480px) {
|
|
53
53
|
:host(.show-below-sm) {
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
@@ -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: 'b88e3f6dedeb0a8cc4f69b3c9915a4fb0a115df7', class: classes }, h("slot", { key: '55f89874b70bbcc636e615556f11e99baeafad73' })));
|
|
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: 'd8875f8b62e560cd11e71f6c6b2baf219aef96d2' }, h("a", { key: 'a6e5c064945372150306b6aeb294b13659b565f4', 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: 'e3d8bff163b92ef7caf5802947556444ce2f1a48', style: style, "aria-hidden": "true" });
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "af-spacer"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|