@repobit/dex-system-design 3.0.1 → 3.0.3
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/CHANGELOG.md +14 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +16 -5
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchor-nav.js","sourceRoot":"","sources":["../../../../src/components/anchor/anchor-nav.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AACrC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,SAAS,eAAe,CAAC,KAAa;IACpC,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/B,IAAI,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IACjB,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;IAC3C,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,GAAG,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnF,OAAO,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC9B,CAAC;IACD,OAAO,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,WAAW,GAA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;6CAC9B;AAErB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;4CACrC;AAEb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;0CACW;AAErC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;6CACrC;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;8CAClC;AApBd,WAAW;IADhB,aAAa,CAAC,eAAe,CAAC;GACzB,WAAW,CAwkBhB","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport \"../icons/arrow-down-icon.ts\";\nimport \"../button/button.ts\";\nimport \"../link/link.ts\";\nimport { anchorNavStyles } from \"./anchor-nav.css.ts\";\nimport { ensembleCSS } from \"../shared/ensemble.css.ts\";\nimport { matchesBelow } from \"../shared/token-scales.ts\";\n\nfunction parseLengthToPx(value: string) {\n const s = (value || \"\").trim();\n if (!s) return 0;\n if (s.endsWith(\"px\")) return parseFloat(s);\n if (s.endsWith(\"rem\")) {\n const root = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;\n return parseFloat(s) * root;\n }\n return parseFloat(s) || 0;\n}\n\nconst sectionIdOf = (href: string, n: number | string) => (href || \"\").replace(/^#/, \"\") || `anchor-${n}-section`;\n\n/* \"The rest of the page\" as a root margin: a hundred viewports. Each observer\n below watches one edge, and a jump only registers if it carries a section\n across that edge while still inside the root -- so the root reaches this far\n past the edge, beyond any jump a real page makes. */\nconst FAR = \"10000%\";\n\n/* The dropdown panel is a popover only where it can also be anchored to its\n toggle: in the top layer it leaves the toggle's box, and without anchor\n positioning it would sit in the middle of the viewport. Both are newer than\n the Widely available target, so elsewhere the panel keeps its z-index and\n the document listeners close it. */\nconst NATIVE_POPOVER = \"popover\" in HTMLElement.prototype && CSS.supports(\"anchor-name: --a\");\n\ninterface AnchorNavItem {\n title: string;\n href?: string;\n}\n\ninterface ResolvedItem {\n title: string | null;\n href : string;\n id : string;\n}\n\n@defineElement(\"bd-anchor-nav-item\")\nclass BdAnchorNavItem extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: \"open\" });\n }\n connectedCallback() { this.render(); }\n render() { this.shadowRoot!.innerHTML = `<slot></slot>`; }\n}\n\n@defineElement(\"bd-anchor-nav\")\nclass BdAnchorNav extends LitElement {\n static styles = [ensembleCSS, anchorNavStyles];\n\n @state()\n activeId = \"\";\n @property({ type: String, attribute: \"aria-label\" })\n navLabel = \"Section navigation\";\n @state()\n _dropdownOpen = false;\n @state()\n _mobileCtaRevealed = false;\n @property({ type: String, attribute: \"cta-label\" })\n ctaLabel = \"Buy now\";\n @property({ type: String, attribute: \"cta-href\" })\n ctaHref = \"\";\n @property({ type: Array })\n items: AnchorNavItem[] | null = null;\n @property({ type: String, attribute: \"max-width\" })\n maxWidth = \"\";\n @property({ type: String, attribute: \"sticky-top\" })\n stickyTop = \"0px\";\n\n _panelId : string;\n _spyFrame : number;\n _spyObserver : IntersectionObserver | null;\n _ctaObserver : IntersectionObserver | null;\n _layoutObserver : ResizeObserver | null;\n _sections : (HTMLElement | null)[];\n _spyLine : number;\n _spyViewport : number;\n _passed : Map<Element | null, boolean | undefined>;\n _firstSectionBehind : boolean;\n _programmaticScrollTargetId: string | null;\n _unlockScrollSpyTimer : number | null;\n _scrollEndUnlockHandler : (() => void) | null;\n _onStickyScroll : (() => void) | null;\n _restoreScrollBehavior : (() => void) | null;\n _indicatorReady : boolean;\n _indicatorResizeObserver : ResizeObserver | null;\n\n constructor() {\n super();\n this._panelId = `bd-anchor-nav-panel-${Math.random().toString(36)\n .slice(2, 11)}`;\n this._onDocumentPointerDown = this._onDocumentPointerDown.bind(this);\n this._onKeydown = this._onKeydown.bind(this);\n this._onSectionsCrossLine = this._onSectionsCrossLine.bind(this);\n this._onFirstSectionCross = this._onFirstSectionCross.bind(this);\n this._scheduleSpy = this._scheduleSpy.bind(this);\n this._spyFrame = 0;\n this._spyObserver = null;\n this._ctaObserver = null;\n this._layoutObserver = null;\n this._sections = [];\n this._spyLine = 0;\n this._spyViewport = 0;\n this._passed = new Map();\n this._firstSectionBehind = false;\n this._programmaticScrollTargetId = null;\n this._unlockScrollSpyTimer = null;\n this._scrollEndUnlockHandler = null;\n this._onStickyScroll = null;\n this._restoreScrollBehavior = null;\n this._handleResize = this._handleResize.bind(this);\n this._indicatorReady = false;\n this._indicatorResizeObserver = null;\n }\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener(\"resize\", this._handleResize);\n if (!NATIVE_POPOVER) {\n document.addEventListener(\"pointerdown\", this._onDocumentPointerDown, true);\n document.addEventListener(\"keydown\", this._onKeydown, true);\n }\n this._initSticky();\n /* The bar's height moves the line the sections are read against, and the\n page growing may bring a section that was not there yet. */\n this._layoutObserver = new ResizeObserver(this._scheduleSpy);\n this._layoutObserver.observe(this);\n this._layoutObserver.observe(document.documentElement);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._cancelScrollSpyUnlock();\n this._restoreScrollBehavior?.();\n window.removeEventListener(\"resize\", this._handleResize);\n document.removeEventListener(\"pointerdown\", this._onDocumentPointerDown, true);\n document.removeEventListener(\"keydown\", this._onKeydown, true);\n this._destroySticky();\n this._indicatorResizeObserver?.disconnect();\n this._unobserveSections();\n }\n\n /* The first item is active before the first render, not after it: state set\n in firstUpdated or updated starts a second render, the one Lit warns about\n as change-in-update. */\n willUpdate(changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties);\n if (!this.hasUpdated && !this.activeId && this._resolvedItems().length) this.activeId = \"anchor-1\";\n }\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has(\"stickyTop\")) {\n this.style.setProperty(\"--sticky-top\", this.stickyTop || \"0px\");\n }\n\n if (changedProperties.has(\"stickyTop\") || changedProperties.has(\"items\")) {\n this._scheduleSpy();\n }\n\n if (changedProperties.has(\"activeId\") || changedProperties.has(\"items\")) {\n requestAnimationFrame(() => this._updateIndicator(\"updated\"));\n }\n\n if (!changedProperties.has(\"activeId\")) return;\n const prev = changedProperties.get(\"activeId\");\n if (prev === undefined || prev === \"\") return;\n if (prev === this.activeId) return;\n queueMicrotask(() => this._playMobileDropdownLabelSwap());\n }\n\n firstUpdated() {\n requestAnimationFrame(() => this._updateIndicator(\"firstUpdated\"));\n\n const links = this.renderRoot?.querySelector(\".anchor-links--desktop\");\n if (links) {\n this._indicatorResizeObserver = new ResizeObserver(() => {\n this._updateIndicator(\"ResizeObserver\");\n });\n this._indicatorResizeObserver.observe(links);\n this._indicatorResizeObserver.observe(this);\n }\n }\n\n /* The indicator spans the link row and is moved and sized on the\n compositor: translate to the current link's corner, scale to its width.\n It used to animate top and width, which laid the bar out again on every\n frame of the slide. The offsets are physical -- offsetLeft is -- so the\n indicator is anchored at the row's physical left, on a right-to-left\n page too. */\n _updateIndicator(_caller?: string) {\n const indicator = this.renderRoot?.querySelector<HTMLElement>(\".anchor-indicator\");\n const activeLink = this.renderRoot?.querySelector<HTMLElement>(\n \".anchor-links--desktop .anchor-link[current]\"\n );\n if (!indicator || !activeLink) return;\n\n const row = indicator.offsetWidth;\n const scale = row ? activeLink.offsetWidth / row : 0;\n // The bar's bottom edge is the inner's padding-bottom below the link.\n const inner = this.renderRoot.querySelector(\".bd-anchor-nav__inner\");\n const gap = inner ? parseFloat(getComputedStyle(inner).paddingBottom) || 0 : 0;\n const top = activeLink.offsetTop + activeLink.offsetHeight + gap;\n\n const place = () => {\n indicator.style.translate = `${activeLink.offsetLeft}px ${top}px`;\n indicator.style.scale = `${scale} 1`;\n };\n\n if (!this._indicatorReady) {\n indicator.style.transition = \"none\";\n place();\n void indicator.offsetWidth;\n indicator.style.transition = \"\";\n this._indicatorReady = true;\n return;\n }\n\n place();\n }\n\n _handleResize() {\n this._updateIndicator(\"windowResize\");\n // The viewport's height places the spy's line inside its root.\n this._scheduleSpy();\n }\n\n /* The bar sticks with position: sticky, which keeps its own place in the\n flow and lets go at the end of its parent, so nothing here positions it.\n It used to: past its top it switched to position: fixed at the\n viewport's width, measured its parent to know when to let go, and left a\n placeholder behind to hold its space.\n\n While stuck it draws a shadow. A scroll-state container query says when\n that is, and it is newer than the Widely available target; where it is\n missing, this tells instead: the bar sits at its sticky top -- read as\n the browser resolved it, as _stickyOffsetPx() reads it, so calc(), em\n and custom properties count -- and the page has scrolled. A bar that\n merely rests at that line on an unscrolled page is not stuck, as the\n query would not call it. */\n _initSticky() {\n this.style.setProperty(\"--sticky-top\", this.stickyTop || \"0px\");\n if (CSS.supports(\"container-type: scroll-state\")) return;\n\n this._onStickyScroll = () => {\n const top = parseFloat(getComputedStyle(this).top) || 0;\n const atTop = Math.abs(this.getBoundingClientRect().top - top) < 1;\n this.classList.toggle(\"is-sticky\", atTop && window.scrollY > 0);\n };\n window.addEventListener(\"scroll\", this._onStickyScroll, { passive: true });\n window.addEventListener(\"resize\", this._onStickyScroll, { passive: true });\n /* Removed within a frame of connecting, the bar has torn this down. */\n requestAnimationFrame(() => this._onStickyScroll?.());\n }\n\n _destroySticky() {\n if (this._onStickyScroll) {\n window.removeEventListener(\"scroll\", this._onStickyScroll);\n window.removeEventListener(\"resize\", this._onStickyScroll);\n this._onStickyScroll = null;\n }\n this.classList.remove(\"is-sticky\");\n }\n\n _cancelScrollSpyUnlock() {\n if (this._unlockScrollSpyTimer != null) {\n clearTimeout(this._unlockScrollSpyTimer);\n this._unlockScrollSpyTimer = null;\n }\n if (this._scrollEndUnlockHandler) {\n window.removeEventListener(\"scrollend\", this._scrollEndUnlockHandler);\n this._scrollEndUnlockHandler = null;\n }\n }\n\n /* The click's item stays active until the scroll is over. scrollend says so\n where the browser has it. The timer is for a click that scrolls nothing,\n which no scrollend follows, and for browsers without the event: it ends\n the lock once the page has stopped moving. It used to end it after a\n fixed second, and a long smooth scroll outlasts that -- measured 1.3s\n from the first section to the third on the playground at 1280, with the\n second item lit for the last 250ms of it. */\n _scheduleScrollSpyUnlock() {\n this._cancelScrollSpyUnlock();\n const unlock = () => {\n this._cancelScrollSpyUnlock();\n this._restoreScrollBehavior?.();\n this._programmaticScrollTargetId = null;\n this._runScrollSpy();\n };\n this._scrollEndUnlockHandler = unlock;\n window.addEventListener(\"scrollend\", unlock, { passive: true });\n let lastY = window.scrollY;\n const unlockOnceStill = () => {\n if (window.scrollY === lastY) return unlock();\n lastY = window.scrollY;\n this._unlockScrollSpyTimer = window.setTimeout(unlockOnceStill, 250);\n };\n this._unlockScrollSpyTimer = window.setTimeout(unlockOnceStill, 250);\n }\n\n _onKeydown(e: KeyboardEvent) {\n if (e.key === \"Escape\" && this._dropdownOpen) {\n this._dropdownOpen = false;\n this.requestUpdate();\n this.updateComplete.then(() =>\n this.renderRoot?.querySelector<HTMLButtonElement>(\".bd-anchor-nav__dropdown-toggle\")?.focus());\n }\n }\n\n _onDocumentPointerDown(e: PointerEvent) {\n if (!this._dropdownOpen) return;\n const path = e.composedPath();\n if (path.includes(this)) return;\n this._dropdownOpen = false;\n this.requestUpdate();\n }\n\n _scheduleSpy() {\n if (this._spyFrame) return;\n this._spyFrame = requestAnimationFrame(() => {\n this._spyFrame = 0;\n this._observeSections();\n });\n }\n\n /* Scroll-spy, without reading the page on every scroll. The active item is\n the last section whose top has reached a line just under the stuck bar,\n and two IntersectionObservers say when an edge crosses:\n\n - the spy's root ends at that line and reaches FAR above it, so a section\n is inside it exactly while its top is past the line;\n - the CTA's root starts at the top of the viewport and reaches FAR below,\n so the first section leaves it exactly when its bottom scrolls off.\n\n Each entry carries the target's box, so the callbacks read nothing. The\n line depends on the bar's height, the sticky top and the viewport, and a\n root margin cannot change, so the observers are rebuilt when one moves. */\n _observeSections() {\n const sections = this._resolvedItems()\n .map(({ href }, i) => document.getElementById(sectionIdOf(href, i + 1)));\n const offset = this._stickyOffsetPx();\n // 2px under where a click leaves the section, so a section the bar has just\n // scrolled to counts as reached.\n const line = offset + 2;\n const viewport = document.documentElement.clientHeight;\n\n if (line === this._spyLine && viewport === this._spyViewport &&\n sections.length === this._sections.length &&\n sections.every((el, i) => el === this._sections[i])) return;\n\n /* A section a click scrolls to stops under the bar, not behind it, and so\n does one the URL's hash or the back button brings into view. */\n for (const el of this._sections) {\n if (el && !sections.includes(el)) el.style.removeProperty(\"scroll-margin-top\");\n }\n for (const el of sections) el?.style.setProperty(\"scroll-margin-top\", `${offset}px`);\n\n this._spyObserver?.disconnect();\n this._ctaObserver?.disconnect();\n this._spyObserver = this._ctaObserver = null;\n if (sections[0] !== this._sections[0]) this._firstSectionBehind = false;\n this._passed = new Map(sections.filter((el) => this._passed.has(el))\n .map((el) => [el, this._passed.get(el)]));\n this._sections = sections;\n this._spyLine = line;\n this._spyViewport = viewport;\n\n const found = sections.filter(Boolean) as HTMLElement[];\n if (found.length) {\n this._spyObserver = new IntersectionObserver(this._onSectionsCrossLine, {\n root : document,\n rootMargin: `${FAR} 0px ${line - viewport}px 0px`\n });\n found.forEach((el) => this._spyObserver!.observe(el));\n }\n if (sections[0]) {\n this._ctaObserver = new IntersectionObserver(this._onFirstSectionCross, {\n root : document,\n rootMargin: `0px 0px ${FAR} 0px`\n });\n this._ctaObserver.observe(sections[0]);\n }\n this._runScrollSpy();\n }\n\n _unobserveSections() {\n cancelAnimationFrame(this._spyFrame);\n this._spyFrame = 0;\n this._layoutObserver?.disconnect();\n this._spyObserver?.disconnect();\n this._ctaObserver?.disconnect();\n this._layoutObserver = this._spyObserver = this._ctaObserver = null;\n for (const el of this._sections) el?.style.removeProperty(\"scroll-margin-top\");\n this._sections = [];\n this._passed = new Map();\n }\n\n _onSectionsCrossLine(entries: IntersectionObserverEntry[]) {\n for (const { target, boundingClientRect, rootBounds } of entries) {\n this._passed.set(target, boundingClientRect.top <= rootBounds!.bottom);\n }\n this._runScrollSpy();\n }\n\n _onFirstSectionCross(entries: IntersectionObserverEntry[]) {\n const { boundingClientRect, rootBounds } = entries[entries.length - 1];\n this._firstSectionBehind = boundingClientRect.bottom <= rootBounds!.top;\n this._runScrollSpy();\n }\n\n _resolvedItems(): ResolvedItem[] {\n if (this.items && this.items.length) {\n return this.items.map((item, i) => ({\n title: item.title,\n href : item.href || `#anchor-${i + 1}-section`,\n id : `anchor-${i + 1}`\n }));\n }\n return Array.from(this.children)\n .filter((el) => el.tagName === \"BD-ANCHOR-NAV-ITEM\")\n .map((el, i) => ({\n title: el.getAttribute(\"title\"),\n href : el.getAttribute(\"href\") || `#anchor-${i + 1}-section`,\n id : `anchor-${i + 1}`\n }));\n }\n\n /* Read off what the observers last reported; while a click's scroll runs,\n the item it chose stays active. The CTA flag is set at every width, since\n only the stylesheet below md hides the CTA until the first section is\n behind the reader. */\n _runScrollSpy() {\n let next = this.activeId;\n\n if (this._sections.length && !this._programmaticScrollTargetId) {\n next = \"anchor-1\";\n this._sections.forEach((el, i) => {\n if (el && this._passed.get(el)) next = `anchor-${i + 1}`;\n });\n }\n\n this.activeId = next;\n this._mobileCtaRevealed = !this._sections[0] || this._firstSectionBehind;\n }\n\n _playMobileDropdownLabelSwap() {\n if (typeof window === \"undefined\") return;\n if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n if (!matchesBelow('md')) return;\n const el = this.renderRoot?.querySelector<HTMLElement>(\".bd-anchor-nav__dropdown-label\");\n if (!el) return;\n el.classList.remove(\"bd-anchor-nav__dropdown-label--swap\");\n void el.offsetWidth;\n el.classList.add(\"bd-anchor-nav__dropdown-label--swap\");\n el.addEventListener(\n \"animationend\",\n () => el.classList.remove(\"bd-anchor-nav__dropdown-label--swap\"),\n { once: true }\n );\n }\n\n /* Where a section stops under the bar: the sticky top, the bar, and a gap.\n The sticky top is read as the browser resolved it, so any length\n sticky-top accepts -- rem, calc(), a custom property -- counts. */\n _stickyOffsetPx() {\n const barPx = this.offsetHeight;\n const stickyTopPx = parseFloat(getComputedStyle(this).top) || 0;\n const insetRaw = getComputedStyle(this).getPropertyValue(\"--spacing-8\")\n .trim();\n const insetPx = parseLengthToPx(insetRaw) || 8;\n if (barPx > 0) return barPx + insetPx + stickyTopPx;\n const fallback = getComputedStyle(this).getPropertyValue(\"--spacing-128\")\n .trim();\n return parseLengthToPx(fallback) || 128;\n }\n\n /* A section link is an ordinary fragment link, and the browser follows it:\n the hash goes into the URL as a history entry, :target moves to the\n section, and the next Tab starts from there. This used to stop the\n click and scroll by hand -- pushState and scrollIntoView -- which kept\n the URL but left :target and the Tab position behind, so a keyboard\n reader who chose \"Pricing\" tabbed on through the nav. The section's own\n scroll-margin-top keeps it clear of the bar.\n\n The click's item stays current until the scroll is over, so the spy\n does not light the sections it passes on the way. A click with a\n modifier, or on an item whose section is not on this page, is left to\n the browser as an ordinary link. */\n handleClick(event: MouseEvent, id: string, href: string) {\n if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n this._cancelScrollSpyUnlock();\n this._programmaticScrollTargetId = null;\n this.activeId = id;\n const sectionId = sectionIdOf(href, id.replace(/^anchor-/, \"\"));\n if (!document.getElementById(sectionId)) return;\n\n this._programmaticScrollTargetId = id;\n this._smoothFragmentScroll();\n this._scheduleScrollSpyUnlock();\n }\n\n /* Fragment navigation scrolls with the root's scroll-behavior, and the\n page's <html> is not this component's to style. So for a reader who has\n not asked for less motion, the click sets it to smooth for the length of\n this one scroll -- before the navigation runs, which is after the click\n listeners -- and gives back whatever the page had when the scroll ends. */\n _smoothFragmentScroll() {\n if (this._restoreScrollBehavior) return;\n if (!window.matchMedia(\"(prefers-reduced-motion: no-preference)\").matches) return;\n const root = document.documentElement;\n const before = root.style.scrollBehavior;\n root.style.scrollBehavior = \"smooth\";\n this._restoreScrollBehavior = () => {\n root.style.scrollBehavior = before;\n this._restoreScrollBehavior = null;\n };\n }\n\n /* With a native popover, popovertarget opens and closes the panel and the\n toggle event reports it; this handler is the fallback's. */\n _toggleDropdown(e: Event) {\n if (NATIVE_POPOVER) return;\n e.preventDefault();\n e.stopPropagation();\n this._dropdownOpen = !this._dropdownOpen;\n }\n\n _onPanelToggle(e: ToggleEvent) {\n this._dropdownOpen = e.newState === \"open\";\n }\n\n _selectFromDropdown(e: MouseEvent, id: string, href: string) {\n if (NATIVE_POPOVER) {\n const panel = this.renderRoot.querySelector<HTMLElement>(\".bd-anchor-nav__dropdown-panel\");\n if (panel?.matches(\":popover-open\")) panel.hidePopover();\n } else {\n this._dropdownOpen = false;\n }\n this.handleClick(e, id, href);\n }\n\n _activeLabel(resolved: ResolvedItem[]) {\n const m = /^anchor-(\\d+)$/.exec(this.activeId || \"\");\n const n = m ? parseInt(m[1], 10) : 1;\n const idx = Math.min(Math.max(n - 1, 0), Math.max(0, resolved.length - 1));\n return resolved[idx]?.title || resolved[0]?.title || \"Section\";\n }\n\n render() {\n const resolved = this._resolvedItems();\n const dropdownLabel = this._activeLabel(resolved);\n\n const linkRow = (cls: string) => html`\n <div class=\"${cls}\">\n ${resolved.map(({ id, title, href }) => {\n const isActive = this.activeId === id;\n return html`\n <bd-link\n href=\"${href}\"\n variant=\"primary\"\n no-underline\n class=\"anchor-link\"\n current=${isActive ? \"location\" : nothing}\n @click=${(e: MouseEvent) => this.handleClick(e, id, href)}\n >${title}</bd-link>\n `;\n })}\n <span class=\"anchor-indicator\" aria-hidden=\"true\"></span>\n </div>\n `;\n\n const innerStyle = this.maxWidth ? `max-width: ${this.maxWidth};` : '';\n\n return html`\n <nav aria-label=${this.navLabel}>\n <div\n class=\"bd-ensemble bd-anchor-nav__inner\"\n part=\"inner\"\n style=\"${innerStyle}\"\n ?data-mobile-cta-visible=${this._mobileCtaRevealed}\n >\n ${linkRow(\"anchor-links anchor-links--desktop\")}\n\n <div class=\"bd-anchor-nav__dropdown\" part=\"dropdown\">\n <button\n type=\"button\"\n class=\"bd-anchor-nav__dropdown-toggle\"\n aria-expanded=${this._dropdownOpen ? \"true\" : \"false\"}\n aria-controls=${this._panelId}\n popovertarget=${NATIVE_POPOVER ? this._panelId : nothing}\n @click=${this._toggleDropdown}\n >\n <span class=\"bd-anchor-nav__dropdown-label\">${dropdownLabel}</span>\n <span class=\"bd-anchor-nav__dropdown-chevron\" aria-hidden=\"true\">\n <bd-arrow-down-icon size=\"md\"></bd-arrow-down-icon>\n </span>\n </button>\n <div\n class=\"bd-anchor-nav__dropdown-panel\"\n id=${this._panelId}\n popover=${NATIVE_POPOVER ? \"auto\" : nothing}\n ?hidden=${!NATIVE_POPOVER && !this._dropdownOpen}\n @toggle=${this._onPanelToggle}\n >\n <ul class=\"bd-anchor-nav__dropdown-list\">\n ${resolved.map(({ id, title, href }) => {\n const isActive = this.activeId === id;\n return html`\n <li>\n <a\n href=\"${href}\"\n class=\"bd-anchor-nav__dropdown-option\"\n aria-current=${isActive ? \"location\" : nothing}\n @click=${(e: MouseEvent) => this._selectFromDropdown(e, id, href)}\n >${title}</a>\n </li>\n `;\n })}\n </ul>\n </div>\n </div>\n\n <div class=\"bd-cta\">\n <div class=\"bd-cta__inner\"><slot name=\"cta\"></slot></div>\n </div>\n </div>\n </nav>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-anchor-nav-item\": BdAnchorNavItem;\n \"bd-anchor-nav\" : BdAnchorNav;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"anchor-nav.js","names":["_decorate","__decorate","parseLengthToPx","s","value","root","sectionIdOf","href","n","FAR","NATIVE_POPOVER","BdAnchorNavItem","defineElement","BdAnchorNav","LitElement","ensembleCSS","anchorNavStyles","changedProperties","prev","links","indicator","activeLink","row","scale","inner","gap","top","place","atTop","unlock","lastY","unlockOnceStill","sections","i","offset","line","viewport","el","found","entries","target","boundingClientRect","rootBounds","item","next","matchesBelow","barPx","stickyTopPx","insetPx","event","id","sectionId","before","panel","m","resolved","dropdownLabel","linkRow","cls","isActive","nothing","e","title","innerStyle","state","property"],"sources":["../../../../src/components/anchor/anchor-nav.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/arrow-down-icon.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/link/link.ts\";\nimport { anchorNavStyles } from \"./anchor-nav.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { matchesBelow } from \"#shared/token-scales.ts\";\n\nfunction parseLengthToPx(value: string) {\n const s = (value || \"\").trim();\n if (!s) return 0;\n if (s.endsWith(\"px\")) return parseFloat(s);\n if (s.endsWith(\"rem\")) {\n const root = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;\n return parseFloat(s) * root;\n }\n return parseFloat(s) || 0;\n}\n\nconst sectionIdOf = (href: string, n: number | string) => (href || \"\").replace(/^#/, \"\") || `anchor-${n}-section`;\n\n/* \"The rest of the page\" as a root margin: a hundred viewports. Each observer\n below watches one edge, and a jump only registers if it carries a section\n across that edge while still inside the root -- so the root reaches this far\n past the edge, beyond any jump a real page makes. */\nconst FAR = \"10000%\";\n\n/* The dropdown panel is a popover only where it can also be anchored to its\n toggle: in the top layer it leaves the toggle's box, and without anchor\n positioning it would sit in the middle of the viewport. Both are newer than\n the Widely available target, so elsewhere the panel keeps its z-index and\n the document listeners close it. */\nconst NATIVE_POPOVER = \"popover\" in HTMLElement.prototype && CSS.supports(\"anchor-name: --a\");\n\ninterface AnchorNavItem {\n title: string;\n href?: string;\n}\n\ninterface ResolvedItem {\n title: string | null;\n href : string;\n id : string;\n}\n\n@defineElement(\"bd-anchor-nav-item\")\nclass BdAnchorNavItem extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: \"open\" });\n }\n connectedCallback() { this.render(); }\n render() { this.shadowRoot!.innerHTML = `<slot></slot>`; }\n}\n\n@defineElement(\"bd-anchor-nav\")\nclass BdAnchorNav extends LitElement {\n static styles = [ensembleCSS, anchorNavStyles];\n\n @state()\n activeId = \"\";\n @property({ type: String, attribute: \"aria-label\" })\n navLabel = \"Section navigation\";\n @state()\n _dropdownOpen = false;\n @state()\n _mobileCtaRevealed = false;\n @property({ type: String, attribute: \"cta-label\" })\n ctaLabel = \"Buy now\";\n @property({ type: String, attribute: \"cta-href\" })\n ctaHref = \"\";\n @property({ type: Array })\n items: AnchorNavItem[] | null = null;\n @property({ type: String, attribute: \"max-width\" })\n maxWidth = \"\";\n @property({ type: String, attribute: \"sticky-top\" })\n stickyTop = \"0px\";\n\n _panelId : string;\n _spyFrame : number;\n _spyObserver : IntersectionObserver | null;\n _ctaObserver : IntersectionObserver | null;\n _layoutObserver : ResizeObserver | null;\n _sections : (HTMLElement | null)[];\n _spyLine : number;\n _spyViewport : number;\n _passed : Map<Element | null, boolean | undefined>;\n _firstSectionBehind : boolean;\n _programmaticScrollTargetId: string | null;\n _unlockScrollSpyTimer : number | null;\n _scrollEndUnlockHandler : (() => void) | null;\n _onStickyScroll : (() => void) | null;\n _restoreScrollBehavior : (() => void) | null;\n _indicatorReady : boolean;\n _indicatorResizeObserver : ResizeObserver | null;\n\n constructor() {\n super();\n this._panelId = `bd-anchor-nav-panel-${Math.random().toString(36)\n .slice(2, 11)}`;\n this._onDocumentPointerDown = this._onDocumentPointerDown.bind(this);\n this._onKeydown = this._onKeydown.bind(this);\n this._onSectionsCrossLine = this._onSectionsCrossLine.bind(this);\n this._onFirstSectionCross = this._onFirstSectionCross.bind(this);\n this._scheduleSpy = this._scheduleSpy.bind(this);\n this._spyFrame = 0;\n this._spyObserver = null;\n this._ctaObserver = null;\n this._layoutObserver = null;\n this._sections = [];\n this._spyLine = 0;\n this._spyViewport = 0;\n this._passed = new Map();\n this._firstSectionBehind = false;\n this._programmaticScrollTargetId = null;\n this._unlockScrollSpyTimer = null;\n this._scrollEndUnlockHandler = null;\n this._onStickyScroll = null;\n this._restoreScrollBehavior = null;\n this._handleResize = this._handleResize.bind(this);\n this._indicatorReady = false;\n this._indicatorResizeObserver = null;\n }\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener(\"resize\", this._handleResize);\n if (!NATIVE_POPOVER) {\n document.addEventListener(\"pointerdown\", this._onDocumentPointerDown, true);\n document.addEventListener(\"keydown\", this._onKeydown, true);\n }\n this._initSticky();\n /* The bar's height moves the line the sections are read against, and the\n page growing may bring a section that was not there yet. */\n this._layoutObserver = new ResizeObserver(this._scheduleSpy);\n this._layoutObserver.observe(this);\n this._layoutObserver.observe(document.documentElement);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._cancelScrollSpyUnlock();\n this._restoreScrollBehavior?.();\n window.removeEventListener(\"resize\", this._handleResize);\n document.removeEventListener(\"pointerdown\", this._onDocumentPointerDown, true);\n document.removeEventListener(\"keydown\", this._onKeydown, true);\n this._destroySticky();\n this._indicatorResizeObserver?.disconnect();\n this._unobserveSections();\n }\n\n /* The first item is active before the first render, not after it: state set\n in firstUpdated or updated starts a second render, the one Lit warns about\n as change-in-update. */\n willUpdate(changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties);\n if (!this.hasUpdated && !this.activeId && this._resolvedItems().length) this.activeId = \"anchor-1\";\n }\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has(\"stickyTop\")) {\n this.style.setProperty(\"--sticky-top\", this.stickyTop || \"0px\");\n }\n\n if (changedProperties.has(\"stickyTop\") || changedProperties.has(\"items\")) {\n this._scheduleSpy();\n }\n\n if (changedProperties.has(\"activeId\") || changedProperties.has(\"items\")) {\n requestAnimationFrame(() => this._updateIndicator(\"updated\"));\n }\n\n if (!changedProperties.has(\"activeId\")) return;\n const prev = changedProperties.get(\"activeId\");\n if (prev === undefined || prev === \"\") return;\n if (prev === this.activeId) return;\n queueMicrotask(() => this._playMobileDropdownLabelSwap());\n }\n\n firstUpdated() {\n requestAnimationFrame(() => this._updateIndicator(\"firstUpdated\"));\n\n const links = this.renderRoot?.querySelector(\".anchor-links--desktop\");\n if (links) {\n this._indicatorResizeObserver = new ResizeObserver(() => {\n this._updateIndicator(\"ResizeObserver\");\n });\n this._indicatorResizeObserver.observe(links);\n this._indicatorResizeObserver.observe(this);\n }\n }\n\n /* The indicator spans the link row and is moved and sized on the\n compositor: translate to the current link's corner, scale to its width.\n It used to animate top and width, which laid the bar out again on every\n frame of the slide. The offsets are physical -- offsetLeft is -- so the\n indicator is anchored at the row's physical left, on a right-to-left\n page too. */\n _updateIndicator(_caller?: string) {\n const indicator = this.renderRoot?.querySelector<HTMLElement>(\".anchor-indicator\");\n const activeLink = this.renderRoot?.querySelector<HTMLElement>(\n \".anchor-links--desktop .anchor-link[current]\"\n );\n if (!indicator || !activeLink) return;\n\n const row = indicator.offsetWidth;\n const scale = row ? activeLink.offsetWidth / row : 0;\n // The bar's bottom edge is the inner's padding-bottom below the link.\n const inner = this.renderRoot.querySelector(\".bd-anchor-nav__inner\");\n const gap = inner ? parseFloat(getComputedStyle(inner).paddingBottom) || 0 : 0;\n const top = activeLink.offsetTop + activeLink.offsetHeight + gap;\n\n const place = () => {\n indicator.style.translate = `${activeLink.offsetLeft}px ${top}px`;\n indicator.style.scale = `${scale} 1`;\n };\n\n if (!this._indicatorReady) {\n indicator.style.transition = \"none\";\n place();\n void indicator.offsetWidth;\n indicator.style.transition = \"\";\n this._indicatorReady = true;\n return;\n }\n\n place();\n }\n\n _handleResize() {\n this._updateIndicator(\"windowResize\");\n // The viewport's height places the spy's line inside its root.\n this._scheduleSpy();\n }\n\n /* The bar sticks with position: sticky, which keeps its own place in the\n flow and lets go at the end of its parent, so nothing here positions it.\n It used to: past its top it switched to position: fixed at the\n viewport's width, measured its parent to know when to let go, and left a\n placeholder behind to hold its space.\n\n While stuck it draws a shadow. A scroll-state container query says when\n that is, and it is newer than the Widely available target; where it is\n missing, this tells instead: the bar sits at its sticky top -- read as\n the browser resolved it, as _stickyOffsetPx() reads it, so calc(), em\n and custom properties count -- and the page has scrolled. A bar that\n merely rests at that line on an unscrolled page is not stuck, as the\n query would not call it. */\n _initSticky() {\n this.style.setProperty(\"--sticky-top\", this.stickyTop || \"0px\");\n if (CSS.supports(\"container-type: scroll-state\")) return;\n\n this._onStickyScroll = () => {\n const top = parseFloat(getComputedStyle(this).top) || 0;\n const atTop = Math.abs(this.getBoundingClientRect().top - top) < 1;\n this.classList.toggle(\"is-sticky\", atTop && window.scrollY > 0);\n };\n window.addEventListener(\"scroll\", this._onStickyScroll, { passive: true });\n window.addEventListener(\"resize\", this._onStickyScroll, { passive: true });\n /* Removed within a frame of connecting, the bar has torn this down. */\n requestAnimationFrame(() => this._onStickyScroll?.());\n }\n\n _destroySticky() {\n if (this._onStickyScroll) {\n window.removeEventListener(\"scroll\", this._onStickyScroll);\n window.removeEventListener(\"resize\", this._onStickyScroll);\n this._onStickyScroll = null;\n }\n this.classList.remove(\"is-sticky\");\n }\n\n _cancelScrollSpyUnlock() {\n if (this._unlockScrollSpyTimer != null) {\n clearTimeout(this._unlockScrollSpyTimer);\n this._unlockScrollSpyTimer = null;\n }\n if (this._scrollEndUnlockHandler) {\n window.removeEventListener(\"scrollend\", this._scrollEndUnlockHandler);\n this._scrollEndUnlockHandler = null;\n }\n }\n\n /* The click's item stays active until the scroll is over. scrollend says so\n where the browser has it. The timer is for a click that scrolls nothing,\n which no scrollend follows, and for browsers without the event: it ends\n the lock once the page has stopped moving. It used to end it after a\n fixed second, and a long smooth scroll outlasts that -- measured 1.3s\n from the first section to the third on the playground at 1280, with the\n second item lit for the last 250ms of it. */\n _scheduleScrollSpyUnlock() {\n this._cancelScrollSpyUnlock();\n const unlock = () => {\n this._cancelScrollSpyUnlock();\n this._restoreScrollBehavior?.();\n this._programmaticScrollTargetId = null;\n this._runScrollSpy();\n };\n this._scrollEndUnlockHandler = unlock;\n window.addEventListener(\"scrollend\", unlock, { passive: true });\n let lastY = window.scrollY;\n const unlockOnceStill = () => {\n if (window.scrollY === lastY) return unlock();\n lastY = window.scrollY;\n this._unlockScrollSpyTimer = window.setTimeout(unlockOnceStill, 250);\n };\n this._unlockScrollSpyTimer = window.setTimeout(unlockOnceStill, 250);\n }\n\n _onKeydown(e: KeyboardEvent) {\n if (e.key === \"Escape\" && this._dropdownOpen) {\n this._dropdownOpen = false;\n this.requestUpdate();\n this.updateComplete.then(() =>\n this.renderRoot?.querySelector<HTMLButtonElement>(\".bd-anchor-nav__dropdown-toggle\")?.focus());\n }\n }\n\n _onDocumentPointerDown(e: PointerEvent) {\n if (!this._dropdownOpen) return;\n const path = e.composedPath();\n if (path.includes(this)) return;\n this._dropdownOpen = false;\n this.requestUpdate();\n }\n\n _scheduleSpy() {\n if (this._spyFrame) return;\n this._spyFrame = requestAnimationFrame(() => {\n this._spyFrame = 0;\n this._observeSections();\n });\n }\n\n /* Scroll-spy, without reading the page on every scroll. The active item is\n the last section whose top has reached a line just under the stuck bar,\n and two IntersectionObservers say when an edge crosses:\n\n - the spy's root ends at that line and reaches FAR above it, so a section\n is inside it exactly while its top is past the line;\n - the CTA's root starts at the top of the viewport and reaches FAR below,\n so the first section leaves it exactly when its bottom scrolls off.\n\n Each entry carries the target's box, so the callbacks read nothing. The\n line depends on the bar's height, the sticky top and the viewport, and a\n root margin cannot change, so the observers are rebuilt when one moves. */\n _observeSections() {\n const sections = this._resolvedItems()\n .map(({ href }, i) => document.getElementById(sectionIdOf(href, i + 1)));\n const offset = this._stickyOffsetPx();\n // 2px under where a click leaves the section, so a section the bar has just\n // scrolled to counts as reached.\n const line = offset + 2;\n const viewport = document.documentElement.clientHeight;\n\n if (line === this._spyLine && viewport === this._spyViewport &&\n sections.length === this._sections.length &&\n sections.every((el, i) => el === this._sections[i])) return;\n\n /* A section a click scrolls to stops under the bar, not behind it, and so\n does one the URL's hash or the back button brings into view. */\n for (const el of this._sections) {\n if (el && !sections.includes(el)) el.style.removeProperty(\"scroll-margin-top\");\n }\n for (const el of sections) el?.style.setProperty(\"scroll-margin-top\", `${offset}px`);\n\n this._spyObserver?.disconnect();\n this._ctaObserver?.disconnect();\n this._spyObserver = this._ctaObserver = null;\n if (sections[0] !== this._sections[0]) this._firstSectionBehind = false;\n this._passed = new Map(sections.filter((el) => this._passed.has(el))\n .map((el) => [el, this._passed.get(el)]));\n this._sections = sections;\n this._spyLine = line;\n this._spyViewport = viewport;\n\n const found = sections.filter(Boolean) as HTMLElement[];\n if (found.length) {\n this._spyObserver = new IntersectionObserver(this._onSectionsCrossLine, {\n root : document,\n rootMargin: `${FAR} 0px ${line - viewport}px 0px`\n });\n found.forEach((el) => this._spyObserver!.observe(el));\n }\n if (sections[0]) {\n this._ctaObserver = new IntersectionObserver(this._onFirstSectionCross, {\n root : document,\n rootMargin: `0px 0px ${FAR} 0px`\n });\n this._ctaObserver.observe(sections[0]);\n }\n this._runScrollSpy();\n }\n\n _unobserveSections() {\n cancelAnimationFrame(this._spyFrame);\n this._spyFrame = 0;\n this._layoutObserver?.disconnect();\n this._spyObserver?.disconnect();\n this._ctaObserver?.disconnect();\n this._layoutObserver = this._spyObserver = this._ctaObserver = null;\n for (const el of this._sections) el?.style.removeProperty(\"scroll-margin-top\");\n this._sections = [];\n this._passed = new Map();\n }\n\n _onSectionsCrossLine(entries: IntersectionObserverEntry[]) {\n for (const { target, boundingClientRect, rootBounds } of entries) {\n this._passed.set(target, boundingClientRect.top <= rootBounds!.bottom);\n }\n this._runScrollSpy();\n }\n\n _onFirstSectionCross(entries: IntersectionObserverEntry[]) {\n const { boundingClientRect, rootBounds } = entries[entries.length - 1];\n this._firstSectionBehind = boundingClientRect.bottom <= rootBounds!.top;\n this._runScrollSpy();\n }\n\n _resolvedItems(): ResolvedItem[] {\n if (this.items && this.items.length) {\n return this.items.map((item, i) => ({\n title: item.title,\n href : item.href || `#anchor-${i + 1}-section`,\n id : `anchor-${i + 1}`\n }));\n }\n return Array.from(this.children)\n .filter((el) => el.tagName === \"BD-ANCHOR-NAV-ITEM\")\n .map((el, i) => ({\n title: el.getAttribute(\"title\"),\n href : el.getAttribute(\"href\") || `#anchor-${i + 1}-section`,\n id : `anchor-${i + 1}`\n }));\n }\n\n /* Read off what the observers last reported; while a click's scroll runs,\n the item it chose stays active. The CTA flag is set at every width, since\n only the stylesheet below md hides the CTA until the first section is\n behind the reader. */\n _runScrollSpy() {\n let next = this.activeId;\n\n if (this._sections.length && !this._programmaticScrollTargetId) {\n next = \"anchor-1\";\n this._sections.forEach((el, i) => {\n if (el && this._passed.get(el)) next = `anchor-${i + 1}`;\n });\n }\n\n this.activeId = next;\n this._mobileCtaRevealed = !this._sections[0] || this._firstSectionBehind;\n }\n\n _playMobileDropdownLabelSwap() {\n if (typeof window === \"undefined\") return;\n if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n if (!matchesBelow('md')) return;\n const el = this.renderRoot?.querySelector<HTMLElement>(\".bd-anchor-nav__dropdown-label\");\n if (!el) return;\n el.classList.remove(\"bd-anchor-nav__dropdown-label--swap\");\n void el.offsetWidth;\n el.classList.add(\"bd-anchor-nav__dropdown-label--swap\");\n el.addEventListener(\n \"animationend\",\n () => el.classList.remove(\"bd-anchor-nav__dropdown-label--swap\"),\n { once: true }\n );\n }\n\n /* Where a section stops under the bar: the sticky top, the bar, and a gap.\n The sticky top is read as the browser resolved it, so any length\n sticky-top accepts -- rem, calc(), a custom property -- counts. */\n _stickyOffsetPx() {\n const barPx = this.offsetHeight;\n const stickyTopPx = parseFloat(getComputedStyle(this).top) || 0;\n const insetRaw = getComputedStyle(this).getPropertyValue(\"--spacing-8\")\n .trim();\n const insetPx = parseLengthToPx(insetRaw) || 8;\n if (barPx > 0) return barPx + insetPx + stickyTopPx;\n const fallback = getComputedStyle(this).getPropertyValue(\"--spacing-128\")\n .trim();\n return parseLengthToPx(fallback) || 128;\n }\n\n /* A section link is an ordinary fragment link, and the browser follows it:\n the hash goes into the URL as a history entry, :target moves to the\n section, and the next Tab starts from there. This used to stop the\n click and scroll by hand -- pushState and scrollIntoView -- which kept\n the URL but left :target and the Tab position behind, so a keyboard\n reader who chose \"Pricing\" tabbed on through the nav. The section's own\n scroll-margin-top keeps it clear of the bar.\n\n The click's item stays current until the scroll is over, so the spy\n does not light the sections it passes on the way. A click with a\n modifier, or on an item whose section is not on this page, is left to\n the browser as an ordinary link. */\n handleClick(event: MouseEvent, id: string, href: string) {\n if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n this._cancelScrollSpyUnlock();\n this._programmaticScrollTargetId = null;\n this.activeId = id;\n const sectionId = sectionIdOf(href, id.replace(/^anchor-/, \"\"));\n if (!document.getElementById(sectionId)) return;\n\n this._programmaticScrollTargetId = id;\n this._smoothFragmentScroll();\n this._scheduleScrollSpyUnlock();\n }\n\n /* Fragment navigation scrolls with the root's scroll-behavior, and the\n page's <html> is not this component's to style. So for a reader who has\n not asked for less motion, the click sets it to smooth for the length of\n this one scroll -- before the navigation runs, which is after the click\n listeners -- and gives back whatever the page had when the scroll ends. */\n _smoothFragmentScroll() {\n if (this._restoreScrollBehavior) return;\n if (!window.matchMedia(\"(prefers-reduced-motion: no-preference)\").matches) return;\n const root = document.documentElement;\n const before = root.style.scrollBehavior;\n root.style.scrollBehavior = \"smooth\";\n this._restoreScrollBehavior = () => {\n root.style.scrollBehavior = before;\n this._restoreScrollBehavior = null;\n };\n }\n\n /* With a native popover, popovertarget opens and closes the panel and the\n toggle event reports it; this handler is the fallback's. */\n _toggleDropdown(e: Event) {\n if (NATIVE_POPOVER) return;\n e.preventDefault();\n e.stopPropagation();\n this._dropdownOpen = !this._dropdownOpen;\n }\n\n _onPanelToggle(e: ToggleEvent) {\n this._dropdownOpen = e.newState === \"open\";\n }\n\n _selectFromDropdown(e: MouseEvent, id: string, href: string) {\n if (NATIVE_POPOVER) {\n const panel = this.renderRoot.querySelector<HTMLElement>(\".bd-anchor-nav__dropdown-panel\");\n if (panel?.matches(\":popover-open\")) panel.hidePopover();\n } else {\n this._dropdownOpen = false;\n }\n this.handleClick(e, id, href);\n }\n\n _activeLabel(resolved: ResolvedItem[]) {\n const m = /^anchor-(\\d+)$/.exec(this.activeId || \"\");\n const n = m ? parseInt(m[1], 10) : 1;\n const idx = Math.min(Math.max(n - 1, 0), Math.max(0, resolved.length - 1));\n return resolved[idx]?.title || resolved[0]?.title || \"Section\";\n }\n\n render() {\n const resolved = this._resolvedItems();\n const dropdownLabel = this._activeLabel(resolved);\n\n const linkRow = (cls: string) => html`\n <div class=\"${cls}\">\n ${resolved.map(({ id, title, href }) => {\n const isActive = this.activeId === id;\n return html`\n <bd-link\n href=\"${href}\"\n variant=\"primary\"\n no-underline\n class=\"anchor-link\"\n current=${isActive ? \"location\" : nothing}\n @click=${(e: MouseEvent) => this.handleClick(e, id, href)}\n >${title}</bd-link>\n `;\n })}\n <span class=\"anchor-indicator\" aria-hidden=\"true\"></span>\n </div>\n `;\n\n const innerStyle = this.maxWidth ? `max-width: ${this.maxWidth};` : '';\n\n return html`\n <nav aria-label=${this.navLabel}>\n <div\n class=\"bd-ensemble bd-anchor-nav__inner\"\n part=\"inner\"\n style=\"${innerStyle}\"\n ?data-mobile-cta-visible=${this._mobileCtaRevealed}\n >\n ${linkRow(\"anchor-links anchor-links--desktop\")}\n\n <div class=\"bd-anchor-nav__dropdown\" part=\"dropdown\">\n <button\n type=\"button\"\n class=\"bd-anchor-nav__dropdown-toggle\"\n aria-expanded=${this._dropdownOpen ? \"true\" : \"false\"}\n aria-controls=${this._panelId}\n popovertarget=${NATIVE_POPOVER ? this._panelId : nothing}\n @click=${this._toggleDropdown}\n >\n <span class=\"bd-anchor-nav__dropdown-label\">${dropdownLabel}</span>\n <span class=\"bd-anchor-nav__dropdown-chevron\" aria-hidden=\"true\">\n <bd-arrow-down-icon size=\"md\"></bd-arrow-down-icon>\n </span>\n </button>\n <div\n class=\"bd-anchor-nav__dropdown-panel\"\n id=${this._panelId}\n popover=${NATIVE_POPOVER ? \"auto\" : nothing}\n ?hidden=${!NATIVE_POPOVER && !this._dropdownOpen}\n @toggle=${this._onPanelToggle}\n >\n <ul class=\"bd-anchor-nav__dropdown-list\">\n ${resolved.map(({ id, title, href }) => {\n const isActive = this.activeId === id;\n return html`\n <li>\n <a\n href=\"${href}\"\n class=\"bd-anchor-nav__dropdown-option\"\n aria-current=${isActive ? \"location\" : nothing}\n @click=${(e: MouseEvent) => this._selectFromDropdown(e, id, href)}\n >${title}</a>\n </li>\n `;\n })}\n </ul>\n </div>\n </div>\n\n <div class=\"bd-cta\">\n <div class=\"bd-cta__inner\"><slot name=\"cta\"></slot></div>\n </div>\n </div>\n </nav>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-anchor-nav-item\": BdAnchorNavItem;\n \"bd-anchor-nav\" : BdAnchorNav;\n }\n}\n"],"mappings":"A,ohBAYA,SAASE,EAAgB,EAAe,CACtC,IAAMC,GAAKC,GAAS,GAAA,CAAI,KAAK,EAC7B,GAAI,CAACD,EAAG,MAAO,GACf,GAAIA,EAAE,SAAS,IAAI,EAAG,OAAO,WAAWA,CAAC,EACzC,GAAIA,EAAE,SAAS,KAAK,EAAG,CACrB,IAAME,EAAO,WAAW,iBAAiB,SAAS,eAAe,CAAC,CAAC,QAAQ,GAAK,GAChF,OAAO,WAAWF,CAAC,EAAIE,CACzB,CACA,OAAO,WAAWF,CAAC,GAAK,CAC1B,CAEA,IAAMG,GAAe,EAAc,KAAwBC,GAAQ,GAAA,CAAI,QAAQ,KAAM,EAAE,GAAK,UAAUC,EAAE,UAMlGC,EAAM,SAONC,EAAiB,YAAa,YAAY,WAAa,IAAI,SAAS,kBAAkB,EActFC,EADN,cAC8B,WAAY,CACxC,aAAc,CACZ,MAAM,EACN,KAAK,aAAa,CAAE,KAAM,MAAO,CAAC,CACpC,CACA,mBAAoB,CAAE,KAAK,OAAO,CAAG,CACrC,QAAS,CAAE,KAAK,WAAY,UAAY,eAAiB,CAC3D,EARC,EAAAX,EAAA,CAAAY,EAAc,oBAAoB,CAAA,EAAAD,CAAA,EAUnC,IACME,EAD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A,EAAApD,EAAA,UAAA,YAAA,IAAA,EAAA,EApBpD,EAAAb,EAAA,CAAAY,EAAc,eAAe,CAAA,EAAAC,CAAA"}
|
|
@@ -1,65 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** Styled entirely from design tokens — see npm run lint:tokens. */
|
|
3
|
-
export const annotationCSS = css `
|
|
4
|
-
:host { display: inline; }
|
|
5
|
-
|
|
6
|
-
.footnote {
|
|
7
|
-
font-size: var(--footnote-reference-fontSize);
|
|
8
|
-
font-weight: var(--footnote-reference-fontWeight);
|
|
9
|
-
line-height: var(--footnote-reference-lineHeight);
|
|
10
|
-
vertical-align: var(--footnote-reference-verticalAlign);
|
|
11
|
-
color: var(--footnote-reference-color);
|
|
12
|
-
/* The marker's gap before and after it in the line, wherever the line
|
|
13
|
-
runs; the tokens keep their physical names. Here and on .sup/.sub the
|
|
14
|
-
logical shorthand rather than its longhands: check:spacing-scale reads
|
|
15
|
-
margin-inline, and these em values are registered exceptions there. */
|
|
16
|
-
margin-inline: var(--footnote-reference-marginLeft) var(--footnote-reference-marginRight);
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.citation {
|
|
21
|
-
font-size: var(--citation-reference-fontSize);
|
|
22
|
-
font-weight: var(--citation-reference-fontWeight);
|
|
23
|
-
line-height: var(--citation-reference-lineHeight);
|
|
24
|
-
color: var(--citation-reference-color);
|
|
25
|
-
text-decoration: var(--citation-reference-textDecoration);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.citation:hover {
|
|
29
|
-
color: var(--citation-reference-hover-color);
|
|
30
|
-
text-decoration: var(--citation-reference-hover-textDecoration);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.citation:focus-visible,
|
|
34
|
-
.footnote:focus-visible {
|
|
35
|
-
/* the one focus ring — see Foundations/Focus. A two-colour ring whose
|
|
36
|
-
white inner band keeps it visible on a coloured or dark surface, which
|
|
37
|
-
a single-colour outline cannot do. */
|
|
38
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
39
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
40
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
41
|
-
outer band. */
|
|
42
|
-
outline: var(--border-width-2) solid transparent;
|
|
43
|
-
outline-offset: var(--focus-outline-offset);
|
|
44
|
-
box-shadow: var(--focus-outline-primary);
|
|
45
|
-
border-radius: var(--focus-outline-radius);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.sup {
|
|
49
|
-
font-size: var(--math-superscript-fontSize);
|
|
50
|
-
font-weight: var(--math-superscript-fontWeight);
|
|
51
|
-
line-height: var(--math-superscript-lineHeight);
|
|
52
|
-
vertical-align: var(--math-superscript-verticalAlign);
|
|
53
|
-
margin-inline: var(--math-superscript-marginLeft) 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.sub {
|
|
57
|
-
font-size: var(--math-subscript-fontSize);
|
|
58
|
-
font-weight: var(--math-subscript-fontWeight);
|
|
59
|
-
line-height: var(--math-subscript-lineHeight);
|
|
60
|
-
vertical-align: var(--math-subscript-verticalAlign);
|
|
61
|
-
margin-inline: var(--math-subscript-marginLeft) 0;
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
export default annotationCSS;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:inline}.footnote{font-size:var(--footnote-reference-fontSize);font-weight:var(--footnote-reference-fontWeight);line-height:var(--footnote-reference-lineHeight);vertical-align:var(--footnote-reference-verticalAlign);color:var(--footnote-reference-color);margin-inline:var(--footnote-reference-marginLeft) var(--footnote-reference-marginRight);text-decoration:none}.citation{font-size:var(--citation-reference-fontSize);font-weight:var(--citation-reference-fontWeight);line-height:var(--citation-reference-lineHeight);color:var(--citation-reference-color);-webkit-text-decoration:var(--citation-reference-textDecoration);text-decoration:var(--citation-reference-textDecoration)}.citation:hover{color:var(--citation-reference-hover-color);-webkit-text-decoration:var(--citation-reference-hover-textDecoration);text-decoration:var(--citation-reference-hover-textDecoration)}.citation:focus-visible,.footnote:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary);border-radius:var(--focus-outline-radius)}.sup{font-size:var(--math-superscript-fontSize);font-weight:var(--math-superscript-fontWeight);line-height:var(--math-superscript-lineHeight);vertical-align:var(--math-superscript-verticalAlign);margin-inline:var(--math-superscript-marginLeft) 0}.sub{font-size:var(--math-subscript-fontSize);font-weight:var(--math-subscript-fontWeight);line-height:var(--math-subscript-lineHeight);vertical-align:var(--math-subscript-verticalAlign);margin-inline:var(--math-subscript-marginLeft) 0}`;export{t as annotationCSS,t as default};
|
|
65
2
|
//# sourceMappingURL=annotation.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.css.js","
|
|
1
|
+
{"version":3,"file":"annotation.css.js","names":["annotationCSS"],"sources":["../../../../src/components/annotation/annotation.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const annotationCSS = css`\n :host { display: inline; }\n\n .footnote {\n font-size: var(--footnote-reference-fontSize);\n font-weight: var(--footnote-reference-fontWeight);\n line-height: var(--footnote-reference-lineHeight);\n vertical-align: var(--footnote-reference-verticalAlign);\n color: var(--footnote-reference-color);\n /* The marker's gap before and after it in the line, wherever the line\n runs; the tokens keep their physical names. Here and on .sup/.sub the\n logical shorthand rather than its longhands: check:spacing-scale reads\n margin-inline, and these em values are registered exceptions there. */\n margin-inline: var(--footnote-reference-marginLeft) var(--footnote-reference-marginRight);\n text-decoration: none;\n }\n\n .citation {\n font-size: var(--citation-reference-fontSize);\n font-weight: var(--citation-reference-fontWeight);\n line-height: var(--citation-reference-lineHeight);\n color: var(--citation-reference-color);\n text-decoration: var(--citation-reference-textDecoration);\n }\n\n .citation:hover {\n color: var(--citation-reference-hover-color);\n text-decoration: var(--citation-reference-hover-textDecoration);\n }\n\n .citation:focus-visible,\n .footnote:focus-visible {\n /* the one focus ring — see Foundations/Focus. A two-colour ring whose\n white inner band keeps it visible on a coloured or dark surface, which\n a single-colour outline cannot do. */\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n .sup {\n font-size: var(--math-superscript-fontSize);\n font-weight: var(--math-superscript-fontWeight);\n line-height: var(--math-superscript-lineHeight);\n vertical-align: var(--math-superscript-verticalAlign);\n margin-inline: var(--math-superscript-marginLeft) 0;\n }\n\n .sub {\n font-size: var(--math-subscript-fontSize);\n font-weight: var(--math-subscript-fontWeight);\n line-height: var(--math-subscript-lineHeight);\n vertical-align: var(--math-subscript-verticalAlign);\n margin-inline: var(--math-subscript-marginLeft) 0;\n }\n`;\n\nexport default annotationCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAgB,CAAG,sjD"}
|
|
@@ -1,75 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from 'lit';
|
|
8
|
-
import { property } from 'lit/decorators.js';
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import { annotationCSS } from "./annotation.css.js";
|
|
13
|
-
let BdFootnote = class BdFootnote extends LitElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.href = '';
|
|
17
|
-
}
|
|
18
|
-
static { this.styles = [annotationCSS]; }
|
|
19
|
-
render() {
|
|
20
|
-
return html `
|
|
21
|
-
<a class="footnote" href=${this.href || nothing}><slot></slot></a>
|
|
22
|
-
`;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
__decorate([
|
|
26
|
-
property({ type: String })
|
|
27
|
-
], BdFootnote.prototype, "href", void 0);
|
|
28
|
-
BdFootnote = __decorate([
|
|
29
|
-
defineElement('bd-footnote')
|
|
30
|
-
], BdFootnote);
|
|
31
|
-
export { BdFootnote };
|
|
32
|
-
let BdCitation = class BdCitation extends LitElement {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
this.href = '';
|
|
36
|
-
}
|
|
37
|
-
static { this.styles = [annotationCSS]; }
|
|
38
|
-
render() {
|
|
39
|
-
return html `
|
|
40
|
-
<a class="citation" href=${this.href || nothing}><slot></slot></a>
|
|
41
|
-
`;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
__decorate([
|
|
45
|
-
property({ type: String })
|
|
46
|
-
], BdCitation.prototype, "href", void 0);
|
|
47
|
-
BdCitation = __decorate([
|
|
48
|
-
defineElement('bd-citation')
|
|
49
|
-
], BdCitation);
|
|
50
|
-
export { BdCitation };
|
|
51
|
-
let BdSup = class BdSup extends LitElement {
|
|
52
|
-
static { this.styles = [annotationCSS]; }
|
|
53
|
-
render() {
|
|
54
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{annotationCSS as n}from"./annotation.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends r{constructor(...e){super(...e),this.href=``}static{this.styles=[n]}render(){return i`
|
|
2
|
+
<a class="footnote" href=${this.href||a}><slot></slot></a>
|
|
3
|
+
`}};t([o({type:String})],s.prototype,`href`,void 0),s=t([e(`bd-footnote`)],s);var c=class extends r{constructor(...e){super(...e),this.href=``}static{this.styles=[n]}render(){return i`
|
|
4
|
+
<a class="citation" href=${this.href||a}><slot></slot></a>
|
|
5
|
+
`}};t([o({type:String})],c.prototype,`href`,void 0),c=t([e(`bd-citation`)],c);var l=class extends r{static{this.styles=[n]}render(){return i`
|
|
55
6
|
<sup class="sup"><slot></slot></sup>
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
BdSup = __decorate([
|
|
60
|
-
defineElement('bd-sup')
|
|
61
|
-
], BdSup);
|
|
62
|
-
export { BdSup };
|
|
63
|
-
let BdSub = class BdSub extends LitElement {
|
|
64
|
-
static { this.styles = [annotationCSS]; }
|
|
65
|
-
render() {
|
|
66
|
-
return html `
|
|
7
|
+
`}};l=t([e(`bd-sup`)],l);var u=class extends r{static{this.styles=[n]}render(){return i`
|
|
67
8
|
<sub class="sub"><slot></slot></sub>
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
BdSub = __decorate([
|
|
72
|
-
defineElement('bd-sub')
|
|
73
|
-
], BdSub);
|
|
74
|
-
export { BdSub };
|
|
9
|
+
`}};u=t([e(`bd-sub`)],u);export{c as BdCitation,s as BdFootnote,u as BdSub,l as BdSup};
|
|
75
10
|
//# sourceMappingURL=annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.js","
|
|
1
|
+
{"version":3,"file":"annotation.js","names":["_decorate","__decorate","BdFootnote","LitElement","_args","annotationCSS","nothing","property","defineElement","BdCitation","_args2","BdSup","BdSub"],"sources":["../../../../src/components/annotation/annotation.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { annotationCSS } from './annotation.css.ts';\n\n@defineElement('bd-footnote')\nexport class BdFootnote extends LitElement {\n static styles = [annotationCSS];\n\n @property({ type: String })\n href = '';\n\n render() {\n return html`\n <a class=\"footnote\" href=${this.href || nothing}><slot></slot></a>\n `;\n }\n}\n\n@defineElement('bd-citation')\nexport class BdCitation extends LitElement {\n static styles = [annotationCSS];\n\n @property({ type: String })\n href = '';\n\n render() {\n return html`\n <a class=\"citation\" href=${this.href || nothing}><slot></slot></a>\n `;\n }\n}\n\n@defineElement('bd-sup')\nexport class BdSup extends LitElement {\n static styles = [annotationCSS];\n\n render() {\n return html`\n <sup class=\"sup\"><slot></slot></sup>\n `;\n }\n}\n\n@defineElement('bd-sub')\nexport class BdSub extends LitElement {\n static styles = [annotationCSS];\n\n render() {\n return html`\n <sub class=\"sub\"><slot></slot></sub>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-footnote': BdFootnote;\n 'bd-citation': BdCitation;\n 'bd-sup' : BdSup;\n 'bd-sub' : BdSub;\n }\n}\n"],"mappings":"A,8TAQO,IAAME,EAAN,cAAyBC,CAAW,C,8BAIlC,KAAA,KAAA,E,QAHS,KAAA,OAAA,CAACE,CAAa,C,CAK9B,QAAS,CACP,MAAO,EAAI;iCACkB,KAAK,MAAQC,EAAQ;KAEpD,CACF,EARGN,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ3B,EAAAF,EAAA,CAAAQ,EAAc,aAAa,CAAA,EAAAN,CAAA,EAerB,IAAMO,EAAN,cAAyBN,CAAW,C,8BAIlC,KAAA,KAAA,E,QAHS,KAAA,OAAA,CAACE,CAAa,C,CAK9B,QAAS,CACP,MAAO,EAAI;iCACkB,KAAK,MAAQC,EAAQ;KAEpD,CACF,EARGN,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAE,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ3B,EAAAT,EAAA,CAAAQ,EAAc,aAAa,CAAA,EAAAC,CAAA,EAerB,IAAME,EAAN,cAAoBR,CAAW,C,OACpB,KAAA,OAAA,CAACE,CAAa,C,CAE9B,QAAS,CACP,MAAO,EAAI;;KAGb,CACF,EATC,EAAAL,EAAA,CAAAQ,EAAc,QAAQ,CAAA,EAAAG,CAAA,EAYhB,IAAMC,EAAN,cAAoBT,CAAW,C,OACpB,KAAA,OAAA,CAACE,CAAa,C,CAE9B,QAAS,CACP,MAAO,EAAI;;KAGb,CACF,EATC,EAAAL,EAAA,CAAAQ,EAAc,QAAQ,CAAA,EAAAI,CAAA,E"}
|
|
@@ -1,123 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { above } from "../shared/token-scales.js";
|
|
3
|
-
import { hostFillsWidth } from "../shared/fill-width.css.js";
|
|
4
|
-
/* The card sits on the hero's brand band and the page below it at once, so
|
|
5
|
-
it takes the second clause of the card rule: surface/default with a
|
|
6
|
-
border/container edge, at the card corner and the compact inset. */
|
|
7
|
-
export const audienceCardCSS = css `
|
|
8
|
-
/* The card is a size container, so its content gives it no width: it
|
|
9
|
-
takes its cell's whole width, as it takes the row's height, and lays
|
|
10
|
-
itself out for that. Left to fit its content -- bd-grid places its items
|
|
11
|
-
at start -- a container measures 0 wide. The width is the column less
|
|
12
|
-
the card's margins (shared/fill-width.css.ts). */
|
|
13
|
-
:host {
|
|
14
|
-
display: block;
|
|
15
|
-
height: 100%;
|
|
16
|
-
container-type: inline-size;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
${hostFillsWidth()}
|
|
20
|
-
|
|
21
|
-
.card {
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
height: 100%;
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
align-items: flex-end;
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
gap: var(--spacing-8);
|
|
29
|
-
padding: var(--card-padding-compact);
|
|
30
|
-
background: var(--color-surface-default);
|
|
31
|
-
border: var(--border-width-1) solid var(--color-border-container);
|
|
32
|
-
border-radius: var(--card-radius);
|
|
33
|
-
/* the containing block for the link's stretched hit area, below */
|
|
34
|
-
position: relative;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.copy {
|
|
38
|
-
align-self: stretch;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
gap: var(--spacing-8);
|
|
42
|
-
min-width: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* The eyebrow is label-default set in capitals, in text/brand -- the draft
|
|
46
|
-
paints it status/info/accent, a status role on a plain label. */
|
|
47
|
-
.eyebrow {
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
gap: var(--spacing-8);
|
|
51
|
-
margin: 0;
|
|
52
|
-
font-family: var(--typography-label-default-fontFamily);
|
|
53
|
-
font-size: var(--typography-label-default-fontSize);
|
|
54
|
-
font-weight: var(--typography-label-default-fontWeight);
|
|
55
|
-
line-height: var(--typography-label-default-lineHeight);
|
|
56
|
-
letter-spacing: var(--typography-label-default-letterSpacing);
|
|
57
|
-
text-transform: uppercase;
|
|
58
|
-
color: var(--color-text-brand);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
::slotted([slot="icon"]) {
|
|
62
|
-
flex: none;
|
|
63
|
-
color: var(--color-text-brand);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.heading {
|
|
67
|
-
margin: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.description {
|
|
71
|
-
margin: 0;
|
|
72
|
-
font-family: var(--typography-body-regular-fontFamily);
|
|
73
|
-
font-size: var(--typography-body-regular-fontSize);
|
|
74
|
-
font-weight: var(--typography-body-regular-fontWeight);
|
|
75
|
-
line-height: var(--typography-body-regular-lineHeight);
|
|
76
|
-
letter-spacing: var(--typography-body-regular-letterSpacing);
|
|
77
|
-
color: var(--color-text-primary);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.arrow {
|
|
81
|
-
flex: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* The stretched link: the arrow's own <a> (bd-button-link's part="button")
|
|
85
|
-
draws an ::after over the whole card, so the card is the link's hit area
|
|
86
|
-
-- middle-click, Ctrl/Cmd-click and the link menu included -- with no
|
|
87
|
-
script. Nothing between the card and the <a> is positioned, so the card
|
|
88
|
-
is what it fills. The pointer over it is the link's own. It paints
|
|
89
|
-
nothing, so it takes no corner of its own. */
|
|
90
|
-
.arrow::part(button)::after {
|
|
91
|
-
content: "";
|
|
92
|
-
position: absolute;
|
|
93
|
-
inset: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* The tablet row, copy left and the arrow right and centred on it,
|
|
97
|
-
wherever the card is wide enough for it -- not wherever the screen is.
|
|
98
|
-
Following the viewport from md to lg, a card in a two- or three-column
|
|
99
|
-
grid at tablet width took the row with no room for it, and a lone card
|
|
100
|
-
on a desktop page stayed a column with its arrow far below the copy. */
|
|
101
|
-
@container ${unsafeCSS(above("sm"))} {
|
|
102
|
-
.card {
|
|
103
|
-
flex-direction: row;
|
|
104
|
-
align-items: center;
|
|
105
|
-
gap: var(--spacing-24);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.copy {
|
|
109
|
-
flex: 1 1 auto;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
114
|
-
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
115
|
-
arrives as a newline in the property). Text only: nothing here renders
|
|
116
|
-
HTML. The rule sits on a span around the text, not on bd-h or on the
|
|
117
|
-
eyebrow, which also holds the slotted icon. */
|
|
118
|
-
.text,
|
|
119
|
-
.description {
|
|
120
|
-
white-space: pre-line;
|
|
121
|
-
}
|
|
122
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;height:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.card{box-sizing:border-box;justify-content:space-between;align-items:flex-end;gap:var(--spacing-8);height:100%;padding:var(--card-padding-compact);background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);flex-direction:column;display:flex;position:relative}.copy{align-self:stretch;gap:var(--spacing-8);flex-direction:column;min-width:0;display:flex}.eyebrow{align-items:center;gap:var(--spacing-8);font-family:var(--typography-label-default-fontFamily);font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);text-transform:uppercase;color:var(--color-text-brand);margin:0;display:flex}::slotted([slot=icon]){color:var(--color-text-brand);flex:none}.heading{margin:0}.description{font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);color:var(--color-text-primary);margin:0}.arrow{flex:none}.arrow::part(button):after{content:"";position:absolute;inset:0}@container (width>=576px){.card{align-items:center;gap:var(--spacing-24);flex-direction:row}.copy{flex:auto}}.text,.description{white-space:pre-line}`;export{t as audienceCardCSS};
|
|
123
2
|
//# sourceMappingURL=audience-card.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-card.css.js","
|
|
1
|
+
{"version":3,"file":"audience-card.css.js","names":["audienceCardCSS"],"sources":["../../../../src/components/audience-card/audience-card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* The card sits on the hero's brand band and the page below it at once, so\n it takes the second clause of the card rule: surface/default with a\n border/container edge, at the card corner and the compact inset. */\nexport const audienceCardCSS = css`\n /* The card is a size container, so its content gives it no width: it\n takes its cell's whole width, as it takes the row's height, and lays\n itself out for that. Left to fit its content -- bd-grid places its items\n at start -- a container measures 0 wide. The width is the column less\n the card's margins (shared/fill-width.css.ts). */\n :host {\n display: block;\n height: 100%;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\n\n .card {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n justify-content: space-between;\n gap: var(--spacing-8);\n padding: var(--card-padding-compact);\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n /* the containing block for the link's stretched hit area, below */\n position: relative;\n }\n\n .copy {\n align-self: stretch;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n min-width: 0;\n }\n\n /* The eyebrow is label-default set in capitals, in text/brand -- the draft\n paints it status/info/accent, a status role on a plain label. */\n .eyebrow {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n margin: 0;\n font-family: var(--typography-label-default-fontFamily);\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n line-height: var(--typography-label-default-lineHeight);\n letter-spacing: var(--typography-label-default-letterSpacing);\n text-transform: uppercase;\n color: var(--color-text-brand);\n }\n\n ::slotted([slot=\"icon\"]) {\n flex: none;\n color: var(--color-text-brand);\n }\n\n .heading {\n margin: 0;\n }\n\n .description {\n margin: 0;\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-text-primary);\n }\n\n .arrow {\n flex: none;\n }\n\n /* The stretched link: the arrow's own <a> (bd-button-link's part=\"button\")\n draws an ::after over the whole card, so the card is the link's hit area\n -- middle-click, Ctrl/Cmd-click and the link menu included -- with no\n script. Nothing between the card and the <a> is positioned, so the card\n is what it fills. The pointer over it is the link's own. It paints\n nothing, so it takes no corner of its own. */\n .arrow::part(button)::after {\n content: \"\";\n position: absolute;\n inset: 0;\n }\n\n /* The tablet row, copy left and the arrow right and centred on it,\n wherever the card is wide enough for it -- not wherever the screen is.\n Following the viewport from md to lg, a card in a two- or three-column\n grid at tablet width took the row with no room for it, and a lone card\n on a desktop page stayed a column with its arrow far below the copy. */\n @container ${unsafeCSS(above(\"sm\"))} {\n .card {\n flex-direction: row;\n align-items: center;\n gap: var(--spacing-24);\n }\n\n .copy {\n flex: 1 1 auto;\n }\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. The rule sits on a span around the text, not on bd-h or on the\n eyebrow, which also holds the slotted icon. */\n .text,\n .description {\n white-space: pre-line;\n }\n`;\n"],"mappings":"A,gGAOA,IAAaA,EAAkB,CAAG,ovD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../button/button.
|
|
3
|
-
import "../heading/heading.
|
|
2
|
+
import "../button/button.js";
|
|
3
|
+
import "../heading/heading.js";
|
|
4
4
|
type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
5
|
/**
|
|
6
6
|
* The homepage's audience entry: who it is for, a title, a line of
|