@repobit/dex-system-design 3.1.2 → 4.0.0
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 +1067 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- 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 +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +78 -0
- package/dist/src/components/select/select.js +35 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +27 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4546 -3215
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{background:var(--color-surface-default);width:100%;top:var(--sticky-top,0);z-index:var(--z-sticky);display:block;position:sticky}@supports (container-type:scroll-state){:host{container:anchor-nav/scroll-state}@container anchor-nav scroll-state(stuck:top){nav{box-shadow:var(--shadow-sm)}}}:host(.is-sticky) nav{box-shadow:var(--shadow-sm)}nav{margin:var(--spacing-0);padding:var(--spacing-0);box-sizing:border-box;border-top:var(--border-width-1) solid var(--color-border-container);border-bottom:var(--border-width-1) solid var(--color-border-container);width:100%;display:block}.inner{justify-content:space-between;align-items:center;gap:var(--spacing-32);width:100%;padding-block:var(--spacing-10);box-sizing:border-box;flex-wrap:wrap;display:flex}.inner [hidden]{display:none}.menu{flex:auto;min-width:0;position:relative}.toggle:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}.list{align-items:center;column-gap:var(--spacing-32);row-gap:var(--spacing-8);margin:var(--spacing-0);padding:var(--spacing-0);flex-wrap:wrap;display:flex;position:relative}.indicator{left:var(--spacing-0);top:var(--spacing-0);width:100%;height:var(--indicator-underline-height);background-color:var(--indicator-color);transform-origin:0 0;transition:translate var(--indicator-underline-duration) var(--indicator-underline-easing), scale var(--indicator-underline-duration) var(--indicator-underline-easing);pointer-events:none;position:absolute;scale:0 1}.toggle{justify-content:space-between;align-items:center;gap:var(--spacing-12);width:100%;min-height:var(--dimension-48);padding-block:var(--spacing-10);padding-inline:var(--spacing-16);box-sizing:border-box;font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-regular-fontSize);line-height:var(--typography-body-regular-lineHeight);font-weight:var(--typography-fontWeight-semibold);color:var(--color-text-primary);background:var(--color-surface-container);border:var(--border-width-1) solid var(--color-border-default);border-radius:var(--shape-radius-lg);cursor:pointer;text-align:start;transition:background var(--transition-duration-fast) var(--transition-easing-smooth), border-color var(--transition-duration-fast) var(--transition-easing-smooth), border-radius var(--transition-duration-fast) var(--transition-easing-smooth);display:none}.toggle:hover{background:var(--color-surface-subtle);border-color:var(--color-action-primary-hover)}.toggle[aria-expanded=true]{background:var(--color-surface-subtle);border-color:var(--color-brand-200)}.label{text-overflow:ellipsis;white-space:nowrap;transform-origin:0;flex:auto;min-width:0;overflow:hidden}.chevron{color:var(--color-text-muted);transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);flex:none;display:flex}.toggle[aria-expanded=true] .chevron{color:var(--color-text-brand);transform:rotate(180deg)}@media (forced-colors:active){.indicator{forced-color-adjust:none;background-color:highlight}}@keyframes bd-anchor-nav-label-swap{0%{opacity:.35;transform:translateY(var(--spacing-4))}to{opacity:1;transform:translateY(var(--spacing-0))}}@media (prefers-reduced-motion:reduce){.indicator,.chevron,.actions,.label--swap{transition:none!important;animation:none!important}}@media (width<768px){.inner{align-items:stretch;gap:var(--spacing-16);flex-direction:column}.menu{width:100%}.toggle{display:flex}.indicator{display:none}.list{left:var(--spacing-0);right:var(--spacing-0);z-index:var(--z-overlay);align-items:stretch;gap:var(--spacing-2);padding:var(--spacing-8);background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-brand-200);border-radius:var(--radius-none) var(--radius-none) var(--shape-radius-lg) var(--shape-radius-lg);max-height:min(50dvh,20rem);box-shadow:var(--shadow-md);border-top:none;flex-flow:column;position:absolute;top:100%;overflow-y:auto}.label.label--swap{animation:bd-anchor-nav-label-swap var(--transition-duration-normal) var(--transition-easing-smooth)}.actions{opacity:0;visibility:hidden;transform:translateY(calc(-1 * var(--spacing-8)));pointer-events:none;margin-top:calc(-1 * var(--spacing-16));transition:grid-template-rows var(--transition-duration-slow) var(--transition-easing-ease-out), opacity var(--transition-duration-normal) var(--transition-easing-smooth), transform var(--transition-duration-normal) var(--transition-easing-smooth), margin-top var(--transition-duration-normal) var(--transition-easing-smooth), visibility var(--transition-duration-slow);grid-template-rows:0fr;align-self:stretch;display:grid}.actions__inner{min-height:0;padding:var(--spacing-4);margin:calc(-1 * var(--spacing-4));overflow:hidden}.inner[data-actions-visible] .actions{opacity:1;visibility:visible;transform:translateY(var(--spacing-0));pointer-events:auto;margin-top:var(--spacing-0);grid-template-rows:1fr}::slotted([slot=actions]){--bd-button-width:100%}}@supports (anchor-name:--a){.toggle{anchor-name:--bd-anchor-nav-toggle}.list[popover]{position-anchor:--bd-anchor-nav-toggle;inset:auto;top:anchor(bottom);left:anchor(left);width:anchor-size(width);box-sizing:border-box;margin:var(--spacing-0);color:inherit}}.list[popover]:not(:popover-open){display:none}`;export{t as anchorNavStyles};
|
|
2
|
+
//# sourceMappingURL=anchor-nav.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-nav.css.js","names":["anchorNavStyles"],"sources":["../../../../src/components/anchor-nav/anchor-nav.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport const anchorNavStyles = css`\n :host {\n display: block;\n width: 100%;\n background: var(--color-surface-default);\n position: sticky;\n top: var(--sticky-top, 0);\n z-index: var(--z-sticky);\n }\n\n /* The shadow the bar casts while stuck. A scroll-state container query\n reads the stuck state where the browser has one; elsewhere anchor-nav.ts\n sets .is-sticky. */\n @supports (container-type: scroll-state) {\n :host {\n container: anchor-nav / scroll-state;\n }\n\n @container anchor-nav scroll-state(stuck: top) {\n nav {\n box-shadow: var(--shadow-sm);\n }\n }\n }\n\n :host(.is-sticky) nav {\n box-shadow: var(--shadow-sm);\n }\n\n nav {\n display: block;\n margin: var(--spacing-0);\n padding: var(--spacing-0);\n width: 100%;\n box-sizing: border-box;\n border-top: var(--border-width-1) solid var(--color-border-container);\n border-bottom: var(--border-width-1) solid var(--color-border-container);\n }\n\n .inner {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: var(--spacing-32);\n width: 100%;\n padding-block: var(--spacing-10);\n box-sizing: border-box;\n }\n\n /* The actions' box while the slot is empty, and the dropdown list in the\n fallback while it is closed. The attribute's selector outweighs the\n display each box sets below. */\n .inner [hidden] {\n display: none;\n }\n\n /* The links and the toggle that shows them below md. */\n .menu {\n position: relative;\n flex: 1 1 auto;\n min-width: 0;\n }\n\n /* The one focus ring -- see Foundations/Focus -- on the one control this\n shadow root draws; each item's link carries its own. No border-radius:\n the ring is a box-shadow and follows the toggle's own --shape-radius-lg,\n and --focus-outline-radius is the default for an element with none. */\n .toggle:focus-visible {\n /* forced-colors mode does not paint box-shadow, so the ring vanishes\n there; it does paint an outline, in a system colour. This one is\n 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 }\n\n /* === THE BAR: the list from md ===\n Column gap and row gap say different things here, so they are spelled\n apart: 32 between links, 8 between the rows when they wrap. */\n .list {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: var(--spacing-32);\n row-gap: var(--spacing-8);\n margin: var(--spacing-0);\n padding: var(--spacing-0);\n }\n\n /* One indicator slides between the items rather than an underline per\n link. It is aimed at the bar's bottom edge, so the distance it travels\n below the link is the inner's padding-bottom, which _updateIndicator()\n reads rather than a number -- the two move together.\n\n It spans the whole list and is placed with translate and sized with\n scale from its top-left corner, so a slide is drawn on the compositor.\n Scaled to nothing until the first placement. The anchor is the physical\n left because the offsets it is given are physical. */\n .indicator {\n position: absolute;\n left: var(--spacing-0);\n top: var(--spacing-0);\n width: 100%;\n height: var(--indicator-underline-height);\n background-color: var(--indicator-color);\n transform-origin: left top;\n scale: 0 1;\n transition:\n translate var(--indicator-underline-duration) var(--indicator-underline-easing),\n scale var(--indicator-underline-duration) var(--indicator-underline-easing);\n pointer-events: none;\n }\n\n .toggle {\n display: none;\n align-items: center;\n justify-content: space-between;\n gap: var(--spacing-12);\n width: 100%;\n min-height: var(--dimension-48);\n padding-block: var(--spacing-10);\n padding-inline: var(--spacing-16);\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-body-regular-fontSize);\n /* The leading that belongs to the size above, so the ellipsised label is\n not laid out on the font's own \"normal\" metric. */\n line-height: var(--typography-body-regular-lineHeight);\n /* no role: the weight of a control, not a text-content type -- see\n button.css.ts's .button--bold. Nothing in the vocabulary carries semibold\n at a body size anyway: all ten heavy-weight roles are headings or display\n steps at 2xl and up. */\n font-weight: var(--typography-fontWeight-semibold);\n color: var(--color-text-primary);\n /* One step off the page, and two under the pointer or open\n (--color-surface-subtle below): the ladder the surface roles are. It\n was neutral-25 as a primitive, on the grounds that no role names \"a\n bordered control at rest\" -- --form-input-default-backgroundColor is\n the page's own ground, and this toggle deliberately sits one step off\n it -- and so it stayed near-white on a dark page, under ink that had\n turned near-white with it: 1.07:1. The step is the job, and\n --color-surface-container is the role that carries one step off the\n page in both themes; the same neutral-25 in light. */\n background: var(--color-surface-container);\n /* A control edge, so it takes the role the form-field atom uses for one. */\n border: var(--border-width-1) solid var(--color-border-default);\n border-radius: var(--shape-radius-lg);\n cursor: pointer;\n text-align: start;\n transition:\n background var(--transition-duration-fast) var(--transition-easing-smooth),\n border-color var(--transition-duration-fast) var(--transition-easing-smooth),\n border-radius var(--transition-duration-fast) var(--transition-easing-smooth);\n }\n\n .toggle:hover {\n background: var(--color-surface-subtle);\n /* The edge of a bordered control under the pointer: the action role\n radio.css.ts and checkbox.css.ts take for the same job. An interaction\n state is the job, and the border roles describe permanence. */\n border-color: var(--color-action-primary-hover);\n }\n\n .toggle[aria-expanded=\"true\"] {\n background: var(--color-surface-subtle);\n /* no role: the edge while the list is open. No border role sits at\n brand-200 -- only --status-brand-border and --status-info-border, and\n an open disclosure is neither a brand nor an information STATUS.\n Expanded has no vocabulary in either control family. */\n border-color: var(--color-brand-200);\n }\n\n .label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n transform-origin: left center;\n }\n\n /* The arrow-down icon, the same one bd-select's caret and the accordion's\n toggle use; it reads currentColor from this span, which keeps the colour\n and the rotation. */\n .chevron {\n flex: 0 0 auto;\n display: flex;\n color: var(--color-text-muted);\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n .toggle[aria-expanded=\"true\"] .chevron {\n transform: rotate(180deg);\n /* The brand ink: a chevron is a currentColor glyph, so it takes the ink\n role of its context. 5.51:1 on the toggle's grey tint. */\n color: var(--color-text-brand);\n }\n\n /* Forced colours repaint backgrounds as Canvas, which took the sliding\n indicator with them. It opts out into Highlight, as bd-tab-list's and\n bd-page-switcher's indicators do. */\n @media (forced-colors: active) {\n .indicator {\n forced-color-adjust: none;\n background-color: Highlight;\n }\n }\n\n @keyframes bd-anchor-nav-label-swap {\n from { opacity: 0.35; transform: translateY(var(--spacing-4)); }\n to { opacity: 1; transform: translateY(var(--spacing-0)); }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .indicator,\n .chevron,\n .actions,\n .label--swap {\n transition: none !important;\n animation: none !important;\n }\n }\n\n /* === THE DROPDOWN: the list below md === */\n @media ${unsafeCSS(below('md'))} {\n .inner {\n flex-direction: column;\n align-items: stretch;\n gap: var(--spacing-16);\n }\n\n .menu {\n width: 100%;\n }\n\n .toggle {\n display: flex;\n }\n\n .indicator {\n display: none;\n }\n\n /* The panel under the toggle, as wide as it: the list in a column, each\n item a 48px row 2px from the next. */\n .list {\n position: absolute;\n left: var(--spacing-0);\n right: var(--spacing-0);\n top: 100%;\n z-index: var(--z-overlay);\n flex-direction: column;\n flex-wrap: nowrap;\n align-items: stretch;\n gap: var(--spacing-2);\n padding: var(--spacing-8);\n max-height: min(50dvh, 20rem);\n overflow-y: auto;\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-brand-200);\n border-top: none;\n border-radius: var(--radius-none) var(--radius-none) var(--shape-radius-lg) var(--shape-radius-lg);\n box-shadow: var(--shadow-md);\n }\n\n .label.label--swap {\n animation: bd-anchor-nav-label-swap var(--transition-duration-normal)\n var(--transition-easing-smooth);\n }\n\n /* The actions open below the dropdown once the first section is behind\n the reader. Their row grows from 0fr to 1fr: a grid track interpolates\n to the content's own height, so a label that wraps at a large text size\n is not clipped. visibility follows, so closed actions are out of the\n tab order as well as out of sight. */\n .actions {\n align-self: stretch;\n display: grid;\n grid-template-rows: 0fr;\n opacity: 0;\n visibility: hidden;\n transform: translateY(calc(-1 * var(--spacing-8)));\n pointer-events: none;\n margin-top: calc(-1 * var(--spacing-16));\n transition:\n grid-template-rows var(--transition-duration-slow) var(--transition-easing-ease-out),\n opacity var(--transition-duration-normal) var(--transition-easing-smooth),\n transform var(--transition-duration-normal) var(--transition-easing-smooth),\n margin-top var(--transition-duration-normal) var(--transition-easing-smooth),\n visibility var(--transition-duration-slow);\n }\n\n /* The clip the row needs while it grows, held off the actions by the\n width of their focus ring -- an outline 2px out at a 2px offset -- so\n the ring is not cut off. Padding and margin cancel, so nothing moves. */\n .actions__inner {\n min-height: 0;\n overflow: hidden;\n padding: var(--spacing-4);\n margin: calc(-1 * var(--spacing-4));\n }\n\n .inner[data-actions-visible] .actions {\n grid-template-rows: 1fr;\n opacity: 1;\n visibility: visible;\n transform: translateY(var(--spacing-0));\n pointer-events: auto;\n margin-top: var(--spacing-0);\n }\n\n /* Full width on a phone, through bd-button's width hook. */\n ::slotted([slot=\"actions\"]) {\n --bd-button-width: 100%;\n }\n }\n\n /* Where popover and anchor positioning both exist, anchor-nav.ts makes the\n list a popover below md: the top layer replaces the z-index above, and\n light dismiss replaces the document listeners. A closed popover is the\n UA's display: none, which the list's own display above would otherwise\n beat. In the top layer the list is no longer inside the menu's box, so it\n is tied to the toggle instead, at the place the absolute rule above puts\n it: under the toggle, as wide as it. The rest undoes the popover's UA\n styles -- centred, fit-content, CanvasText. */\n @supports (anchor-name: --a) {\n .toggle {\n anchor-name: --bd-anchor-nav-toggle;\n }\n\n .list[popover] {\n position-anchor: --bd-anchor-nav-toggle;\n inset: auto;\n top: anchor(bottom);\n left: anchor(left);\n width: anchor-size(width);\n box-sizing: border-box;\n margin: var(--spacing-0);\n color: inherit;\n }\n }\n\n .list[popover]:not(:popover-open) {\n display: none;\n }\n`;\n"],"mappings":"A,4DAGA,IAAaA,EAAkB,CAAG,yqK"}
|
|
@@ -1,32 +1,46 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { MediaQueryController } from "../shared/controller.media-query.js";
|
|
2
3
|
import { ObserverController } from "../shared/controller.observer.js";
|
|
4
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
5
|
import "../../tokens/tokens.js";
|
|
4
|
-
import "../icons/arrow-down
|
|
6
|
+
import "../icons/arrow-down.js";
|
|
7
|
+
import "./anchor-nav-item.js";
|
|
5
8
|
import "../button/button.js";
|
|
6
|
-
import "
|
|
7
|
-
interface AnchorNavItem {
|
|
8
|
-
title: string;
|
|
9
|
-
href?: string;
|
|
10
|
-
}
|
|
9
|
+
import type { BdAnchorNavItem } from "./anchor-nav-item.js";
|
|
11
10
|
interface ResolvedItem {
|
|
12
|
-
|
|
11
|
+
el: BdAnchorNavItem;
|
|
13
12
|
href: string;
|
|
14
13
|
id: string;
|
|
15
14
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
/**
|
|
16
|
+
* A sticky bar of links to the sections of one page, with the reader's
|
|
17
|
+
* section marked, and the page's own actions beside them.
|
|
18
|
+
*
|
|
19
|
+
* <bd-anchor-nav aria-label="On this page">
|
|
20
|
+
* <bd-anchor-nav-item href="#overview">Overview</bd-anchor-nav-item>
|
|
21
|
+
* <bd-anchor-nav-item href="#pricing">Pricing</bd-anchor-nav-item>
|
|
22
|
+
* <bd-button slot="actions" appearance="accent" href="/buy">Buy now</bd-button>
|
|
23
|
+
* </bd-anchor-nav>
|
|
24
|
+
*
|
|
25
|
+
* There is one list. Each bd-anchor-nav-item is its own link, slotted into the
|
|
26
|
+
* nav's list once: from md the list is the bar, with an indicator under the
|
|
27
|
+
* current link; below md the same list is the dropdown under a toggle, whose
|
|
28
|
+
* label is the current item's words. 3.x drew every label twice from an
|
|
29
|
+
* `items` array or a `title` attribute -- a link row and a dropdown list -- so
|
|
30
|
+
* the copy lived in the shadow root, twice.
|
|
31
|
+
*
|
|
32
|
+
* The current item is the last section whose top has reached the line under
|
|
33
|
+
* the bar, and it is the only item with `current`; the indicator follows it.
|
|
34
|
+
* Below md the actions open once the first section is behind the reader.
|
|
35
|
+
*/
|
|
36
|
+
export declare class BdAnchorNav extends LitElement {
|
|
22
37
|
static styles: import("lit").CSSResult[];
|
|
23
38
|
activeId: string;
|
|
39
|
+
/** The nav's accessible name. No default: a page with one nav may not need one, and one with two names each. */
|
|
24
40
|
navLabel: string;
|
|
25
41
|
_dropdownOpen: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
ctaHref: string;
|
|
29
|
-
items: AnchorNavItem[] | null;
|
|
42
|
+
_actionsRevealed: boolean;
|
|
43
|
+
_below: boolean;
|
|
30
44
|
maxWidth: string;
|
|
31
45
|
stickyTop: string;
|
|
32
46
|
_panelId: string;
|
|
@@ -45,13 +59,20 @@ declare class BdAnchorNav extends LitElement {
|
|
|
45
59
|
_onStickyScroll: (() => void) | null;
|
|
46
60
|
_restoreScrollBehavior: (() => void) | null;
|
|
47
61
|
_indicatorReady: boolean;
|
|
62
|
+
_seenItems: BdAnchorNavItem[];
|
|
63
|
+
_slots: SlotController<"" | "actions">;
|
|
64
|
+
_viewport: MediaQueryController;
|
|
48
65
|
_indicatorSize: ObserverController<ResizeObserver>;
|
|
49
66
|
constructor();
|
|
50
67
|
connectedCallback(): void;
|
|
51
68
|
disconnectedCallback(): void;
|
|
52
69
|
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
53
70
|
updated(changedProperties: PropertyValues<this>): void;
|
|
54
|
-
|
|
71
|
+
_observeIndicator(observer: ResizeObserver): void;
|
|
72
|
+
_items(): BdAnchorNavItem[];
|
|
73
|
+
_resolvedItems(): ResolvedItem[];
|
|
74
|
+
_syncItems(items?: BdAnchorNavItem[]): void;
|
|
75
|
+
_currentItem(): BdAnchorNavItem;
|
|
55
76
|
_updateIndicator(_caller?: string): void;
|
|
56
77
|
_handleResize(): void;
|
|
57
78
|
_initSticky(): void;
|
|
@@ -65,21 +86,18 @@ declare class BdAnchorNav extends LitElement {
|
|
|
65
86
|
_unobserveSections(): void;
|
|
66
87
|
_onSectionsCrossLine(entries: IntersectionObserverEntry[]): void;
|
|
67
88
|
_onFirstSectionCross(entries: IntersectionObserverEntry[]): void;
|
|
68
|
-
_resolvedItems(): ResolvedItem[];
|
|
69
89
|
_runScrollSpy(): void;
|
|
70
|
-
|
|
90
|
+
_playLabelSwap(): void;
|
|
71
91
|
_stickyOffsetPx(): number;
|
|
72
92
|
handleClick(event: MouseEvent, id: string, href: string): void;
|
|
73
93
|
_smoothFragmentScroll(): void;
|
|
94
|
+
_onListClick(e: MouseEvent): void;
|
|
74
95
|
_toggleDropdown(e: Event): void;
|
|
75
96
|
_onPanelToggle(e: ToggleEvent): void;
|
|
76
|
-
_selectFromDropdown(e: MouseEvent, id: string, href: string): void;
|
|
77
|
-
_activeLabel(resolved: ResolvedItem[]): string;
|
|
78
97
|
render(): import("lit-html").TemplateResult<1>;
|
|
79
98
|
}
|
|
80
99
|
declare global {
|
|
81
100
|
interface HTMLElementTagNameMap {
|
|
82
|
-
"bd-anchor-nav-item": BdAnchorNavItem;
|
|
83
101
|
"bd-anchor-nav": BdAnchorNav;
|
|
84
102
|
}
|
|
85
103
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import{below as e,matchesBelow as t}from"../shared/token-scales.js";import{defineElement as n}from"../shared/define-element.js";import"../../tokens/tokens.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ObserverController as i}from"../shared/controller.observer.js";import{flatText as a}from"../shared/flat-text.js";import{SlotController as o}from"../shared/controller.slot.js";import{ensembleCSS as s}from"../shared/ensemble.css.js";import"../icons/arrow-down.js";import"../button/button.js";import"./anchor-nav-item.js";import{anchorNavStyles as c}from"./anchor-nav.css.js";import{MediaQueryController as l}from"../shared/controller.media-query.js";import{LitElement as u,html as d,nothing as f}from"lit";import{property as p,state as m}from"lit/decorators.js";function h(e){let t=(e||``).trim();if(!t)return 0;if(t.endsWith(`px`))return parseFloat(t);if(t.endsWith(`rem`)){let e=parseFloat(getComputedStyle(document.documentElement).fontSize)||16;return parseFloat(t)*e}return parseFloat(t)||0}var g=(e,t)=>(e||``).replace(/^#/,``)||`anchor-${t}-section`,_=`10000%`,v=CSS.supports(`anchor-name: --a`),y=class extends u{static{this.styles=[s,c]}constructor(){super(),this.activeId=``,this.navLabel=``,this._dropdownOpen=!1,this._actionsRevealed=!1,this._below=!1,this.maxWidth=``,this.stickyTop=`0px`,this._slots=new o(this,{slots:[``,`actions`],text:[``]}),this._viewport=new l(this,e(`md`),e=>{this._below=e,e||(this._dropdownOpen=!1)}),this._indicatorSize=new i(this,()=>new ResizeObserver(()=>this._updateIndicator(`ResizeObserver`)),e=>this._observeIndicator(e)),this._panelId=`bd-anchor-nav-panel-${Math.random().toString(36).slice(2,11)}`,this._onDocumentPointerDown=this._onDocumentPointerDown.bind(this),this._onKeydown=this._onKeydown.bind(this),this._onSectionsCrossLine=this._onSectionsCrossLine.bind(this),this._onFirstSectionCross=this._onFirstSectionCross.bind(this),this._scheduleSpy=this._scheduleSpy.bind(this),this._spyFrame=0,this._spyObserver=null,this._ctaObserver=null,this._layoutObserver=null,this._sections=[],this._spyLine=0,this._spyViewport=0,this._passed=/* @__PURE__ */ new Map,this._firstSectionBehind=!1,this._programmaticScrollTargetId=null,this._unlockScrollSpyTimer=null,this._scrollEndUnlockHandler=null,this._onStickyScroll=null,this._restoreScrollBehavior=null,this._handleResize=this._handleResize.bind(this),this._indicatorReady=!1,this._seenItems=[]}connectedCallback(){super.connectedCallback(),window.addEventListener(`resize`,this._handleResize),v||(document.addEventListener(`pointerdown`,this._onDocumentPointerDown,!0),document.addEventListener(`keydown`,this._onKeydown,!0)),this._initSticky(),this._layoutObserver=new ResizeObserver(this._scheduleSpy),this._layoutObserver.observe(this),this._layoutObserver.observe(document.documentElement)}disconnectedCallback(){super.disconnectedCallback(),this._cancelScrollSpyUnlock(),this._restoreScrollBehavior?.(),window.removeEventListener(`resize`,this._handleResize),document.removeEventListener(`pointerdown`,this._onDocumentPointerDown,!0),document.removeEventListener(`keydown`,this._onKeydown,!0),this._destroySticky(),this._unobserveSections()}willUpdate(e){super.willUpdate(e),!this.hasUpdated&&!this.activeId&&this._items().length&&(this.activeId=`anchor-1`)}updated(e){super.updated(e),e.has(`stickyTop`)&&this.style.setProperty(`--sticky-top`,this.stickyTop||`0px`);let t=this._items(),n=t.length!==this._seenItems.length||t.some((e,t)=>e!==this._seenItems[t]);this._seenItems=t,this._syncItems(t),(e.has(`stickyTop`)||n)&&this._scheduleSpy();let r=this._indicatorSize.observer;if(n&&r&&this._observeIndicator(r),(e.has(`activeId`)||e.has(`_below`))&&requestAnimationFrame(()=>this._updateIndicator(`updated`)),!e.has(`activeId`))return;let i=e.get(`activeId`);i!==void 0&&i!==``&&i!==this.activeId&&queueMicrotask(()=>this._playLabelSwap())}_observeIndicator(e){let t=this.renderRoot.querySelector(`.list`);if(t){e.disconnect(),e.observe(t),e.observe(this);for(let t of this._items())e.observe(t)}}_items(){return this._slots.elements(``).filter(e=>e.localName===`bd-anchor-nav-item`)}_resolvedItems(){return this._items().map((e,t)=>({el:e,href:e.href||`#anchor-${t+1}-section`,id:`anchor-${t+1}`}))}_syncItems(e=this._items()){e.forEach((e,t)=>{let n=`anchor-${t+1}`;e.current=this.activeId===n,e._sectionHref=`#anchor-${t+1}-section`})}_currentItem(){let e=this._items(),t=/^anchor-(\d+)$/.exec(this.activeId||``),n=t?parseInt(t[1],10):1;return e[Math.min(Math.max(n-1,0),Math.max(0,e.length-1))]}_updateIndicator(e){let t=this.renderRoot?.querySelector(`.indicator`),n=this.renderRoot?.querySelector(`.list`),r=this._items().find(e=>e.current);if(!t||!n||!r||this._below)return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect(),o=t.offsetWidth,s=o?a.width/o:0,c=this.renderRoot.querySelector(`.inner`),l=c&&parseFloat(getComputedStyle(c).paddingBottom)||0,u=a.left-i.left,d=a.top-i.top+a.height+l,f=()=>{t.style.translate=`${u}px ${d}px`,t.style.scale=`${s} 1`};this._indicatorReady?f():(t.style.transition=`none`,f(),t.offsetWidth,t.style.transition=``,this._indicatorReady=!0)}_handleResize(){this._updateIndicator(`windowResize`),this._scheduleSpy()}_initSticky(){this.style.setProperty(`--sticky-top`,this.stickyTop||`0px`),!CSS.supports(`container-type: scroll-state`)&&(this._onStickyScroll=()=>{let e=parseFloat(getComputedStyle(this).top)||0,t=Math.abs(this.getBoundingClientRect().top-e)<1;this.classList.toggle(`is-sticky`,t&&window.scrollY>0)},window.addEventListener(`scroll`,this._onStickyScroll,{passive:!0}),window.addEventListener(`resize`,this._onStickyScroll,{passive:!0}),requestAnimationFrame(()=>this._onStickyScroll?.()))}_destroySticky(){this._onStickyScroll&&=(window.removeEventListener(`scroll`,this._onStickyScroll),window.removeEventListener(`resize`,this._onStickyScroll),null),this.classList.remove(`is-sticky`)}_cancelScrollSpyUnlock(){this._unlockScrollSpyTimer!=null&&(clearTimeout(this._unlockScrollSpyTimer),this._unlockScrollSpyTimer=null),this._scrollEndUnlockHandler&&=(window.removeEventListener(`scrollend`,this._scrollEndUnlockHandler),null)}_scheduleScrollSpyUnlock(){this._cancelScrollSpyUnlock();let e=()=>{this._cancelScrollSpyUnlock(),this._restoreScrollBehavior?.(),this._programmaticScrollTargetId=null,this._runScrollSpy()};this._scrollEndUnlockHandler=e,window.addEventListener(`scrollend`,e,{passive:!0});let t=window.scrollY,n=()=>{if(window.scrollY===t)return e();t=window.scrollY,this._unlockScrollSpyTimer=window.setTimeout(n,250)};this._unlockScrollSpyTimer=window.setTimeout(n,250)}_onKeydown(e){e.key===`Escape`&&this._dropdownOpen&&(this._dropdownOpen=!1,this.updateComplete.then(()=>this.renderRoot?.querySelector(`.toggle`)?.focus()))}_onDocumentPointerDown(e){this._dropdownOpen&&(e.composedPath().includes(this)||(this._dropdownOpen=!1))}_scheduleSpy(){this._spyFrame||=requestAnimationFrame(()=>{this._spyFrame=0,this._observeSections()})}_observeSections(){let e=this._resolvedItems().map(({href:e},t)=>document.getElementById(g(e,t+1))),t=this._stickyOffsetPx(),n=t+2,r=document.documentElement.clientHeight;if(n===this._spyLine&&r===this._spyViewport&&e.length===this._sections.length&&e.every((e,t)=>e===this._sections[t]))return;for(let t of this._sections)t&&!e.includes(t)&&t.style.removeProperty(`scroll-margin-top`);for(let n of e)n?.style.setProperty(`scroll-margin-top`,`${t}px`);this._spyObserver?.disconnect(),this._ctaObserver?.disconnect(),this._spyObserver=this._ctaObserver=null,e[0]!==this._sections[0]&&(this._firstSectionBehind=!1),this._passed=new Map(e.filter(e=>this._passed.has(e)).map(e=>[e,this._passed.get(e)])),this._sections=e,this._spyLine=n,this._spyViewport=r;let i=e.filter(Boolean);i.length&&(this._spyObserver=new IntersectionObserver(this._onSectionsCrossLine,{root:document,rootMargin:`${_} 0px ${n-r}px 0px`}),i.forEach(e=>this._spyObserver.observe(e))),e[0]&&(this._ctaObserver=new IntersectionObserver(this._onFirstSectionCross,{root:document,rootMargin:`0px 0px ${_} 0px`}),this._ctaObserver.observe(e[0])),this._runScrollSpy()}_unobserveSections(){cancelAnimationFrame(this._spyFrame),this._spyFrame=0,this._layoutObserver?.disconnect(),this._spyObserver?.disconnect(),this._ctaObserver?.disconnect(),this._layoutObserver=this._spyObserver=this._ctaObserver=null;for(let e of this._sections)e?.style.removeProperty(`scroll-margin-top`);this._sections=[],this._passed=/* @__PURE__ */ new Map}_onSectionsCrossLine(e){for(let{target:t,isIntersecting:n,boundingClientRect:r,rootBounds:i}of e)this._passed.set(t,n||r.bottom<i.top);this._runScrollSpy()}_onFirstSectionCross(e){let{boundingClientRect:t,rootBounds:n}=e[e.length-1];this._firstSectionBehind=t.bottom<=n.top,this._runScrollSpy()}_runScrollSpy(){let e=this.activeId;this._sections.length&&!this._programmaticScrollTargetId&&(e=`anchor-1`,this._sections.forEach((t,n)=>{t&&this._passed.get(t)&&(e=`anchor-${n+1}`)})),this.activeId=e,this._actionsRevealed=!this._sections[0]||this._firstSectionBehind}_playLabelSwap(){if(typeof window>`u`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!t(`md`))return;let e=this.renderRoot?.querySelector(`.label`);e&&(e.classList.remove(`label--swap`),e.offsetWidth,e.classList.add(`label--swap`),e.addEventListener(`animationend`,()=>e.classList.remove(`label--swap`),{once:!0}))}_stickyOffsetPx(){let e=this.offsetHeight,t=parseFloat(getComputedStyle(this).top)||0,n=h(getComputedStyle(this).getPropertyValue(`--spacing-8`).trim())||8;return e>0?e+n+t:h(getComputedStyle(this).getPropertyValue(`--spacing-128`).trim())||128}handleClick(e,t,n){if(e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;this._cancelScrollSpyUnlock(),this._programmaticScrollTargetId=null,this.activeId=t;let r=g(n,t.replace(/^anchor-/,``));document.getElementById(r)&&(this._programmaticScrollTargetId=t,this._smoothFragmentScroll(),this._scheduleScrollSpyUnlock())}_smoothFragmentScroll(){if(this._restoreScrollBehavior||!window.matchMedia(`(prefers-reduced-motion: no-preference)`).matches)return;let e=document.documentElement,t=e.style.scrollBehavior;e.style.scrollBehavior=`smooth`,this._restoreScrollBehavior=()=>{e.style.scrollBehavior=t,this._restoreScrollBehavior=null}}_onListClick(e){let t=e.composedPath().find(e=>e.localName===`bd-anchor-nav-item`),n=t&&this._resolvedItems().find(e=>e.el===t);if(n){if(this._below){if(v){let e=this.renderRoot.querySelector(`.list`);e?.matches(`:popover-open`)&&e.hidePopover()}else this._dropdownOpen=!1}this.handleClick(e,n.id,n.href)}}_toggleDropdown(e){v||(e.preventDefault(),e.stopPropagation(),this._dropdownOpen=!this._dropdownOpen)}_onPanelToggle(e){this._dropdownOpen=e.newState===`open`}render(){let e=this._below,t=e&&v,n=this._currentItem(),r=this.maxWidth?`max-width: ${this.maxWidth};`:``;return d`
|
|
2
|
+
<nav aria-label=${this.navLabel||f}>
|
|
3
|
+
<div
|
|
4
|
+
class="bd-ensemble inner"
|
|
5
|
+
part="inner"
|
|
6
|
+
style="${r}"
|
|
7
|
+
?data-actions-visible=${this._actionsRevealed}
|
|
8
|
+
>
|
|
9
|
+
<div class="menu" part="dropdown">
|
|
10
|
+
<button
|
|
11
|
+
type="button"
|
|
12
|
+
class="toggle"
|
|
13
|
+
aria-expanded=${this._dropdownOpen?`true`:`false`}
|
|
14
|
+
aria-controls=${this._panelId}
|
|
15
|
+
popovertarget=${t?this._panelId:f}
|
|
16
|
+
@click=${this._toggleDropdown}
|
|
17
|
+
>
|
|
18
|
+
<span class="label">${n?a(n):``}</span>
|
|
19
|
+
<span class="chevron" aria-hidden="true">
|
|
20
|
+
<bd-icon name="arrow-down" size="md"></bd-icon>
|
|
21
|
+
</span>
|
|
22
|
+
</button>
|
|
23
|
+
<div
|
|
24
|
+
class="list"
|
|
25
|
+
id=${this._panelId}
|
|
26
|
+
role="list"
|
|
27
|
+
popover=${t?`auto`:f}
|
|
28
|
+
?hidden=${e&&!v&&!this._dropdownOpen}
|
|
29
|
+
@toggle=${this._onPanelToggle}
|
|
30
|
+
@click=${this._onListClick}
|
|
31
|
+
>
|
|
32
|
+
<slot></slot>
|
|
33
|
+
<span class="indicator" aria-hidden="true"></span>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div class="actions" ?hidden=${!this._slots.has(`actions`)}>
|
|
38
|
+
<div class="actions__inner"><slot name="actions"></slot></div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</nav>
|
|
42
|
+
`}};r([m()],y.prototype,`activeId`,void 0),r([p({type:String,attribute:`aria-label`})],y.prototype,`navLabel`,void 0),r([m()],y.prototype,`_dropdownOpen`,void 0),r([m()],y.prototype,`_actionsRevealed`,void 0),r([m()],y.prototype,`_below`,void 0),r([p({type:String,attribute:`max-width`})],y.prototype,`maxWidth`,void 0),r([p({type:String,attribute:`sticky-top`})],y.prototype,`stickyTop`,void 0),y=r([n(`bd-anchor-nav`)],y);export{y as BdAnchorNav};
|
|
43
|
+
//# sourceMappingURL=anchor-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-nav.js","names":["_decorate","__decorate","parseLengthToPx","s","value","root","sectionIdOf","href","n","FAR","NATIVE_POPOVER","BdAnchorNav","LitElement","ensembleCSS","anchorNavStyles","SlotController","MediaQueryController","below","isBelow","ObserverController","observer","changedProperties","items","itemsChanged","el","i","prev","list","item","id","m","indicator","current","rowBox","linkBox","row","scale","inner","gap","left","top","place","atTop","unlock","lastY","unlockOnceStill","sections","offset","line","viewport","found","entries","target","isIntersecting","boundingClientRect","rootBounds","next","matchesBelow","barPx","stickyTopPx","insetPx","event","sectionId","before","r","dropdown","popover","innerStyle","nothing","flatText","state","property","defineElement"],"sources":["../../../../src/components/anchor-nav/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\";\nimport { flatText } from \"#shared/flat-text.ts\";\nimport { MediaQueryController } from \"#shared/controller.media-query.ts\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/arrow-down.ts\";\nimport \"./anchor-nav-item.ts\";\n/* The atom a page writes into the actions slot. The nav does not render it,\n but 3.x's module registered it, and a page importing only this one still\n gets it. */\nimport \"#components/button/button.ts\";\nimport type { BdAnchorNavItem } from \"./anchor-nav-item.ts\";\nimport { anchorNavStyles } from \"./anchor-nav.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { below, 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/* Below md the list 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. Popover is Baseline\n Newly available (2025-01-27), inside the target, but anchor positioning is\n Limited availability, so elsewhere the list keeps `hidden`, its z-index and\n the document listeners that close it -- 3.x's script. */\nconst NATIVE_POPOVER = CSS.supports(\"anchor-name: --a\");\n\ninterface ResolvedItem {\n el : BdAnchorNavItem;\n href: string;\n id : string;\n}\n\n/**\n * A sticky bar of links to the sections of one page, with the reader's\n * section marked, and the page's own actions beside them.\n *\n * <bd-anchor-nav aria-label=\"On this page\">\n * <bd-anchor-nav-item href=\"#overview\">Overview</bd-anchor-nav-item>\n * <bd-anchor-nav-item href=\"#pricing\">Pricing</bd-anchor-nav-item>\n * <bd-button slot=\"actions\" appearance=\"accent\" href=\"/buy\">Buy now</bd-button>\n * </bd-anchor-nav>\n *\n * There is one list. Each bd-anchor-nav-item is its own link, slotted into the\n * nav's list once: from md the list is the bar, with an indicator under the\n * current link; below md the same list is the dropdown under a toggle, whose\n * label is the current item's words. 3.x drew every label twice from an\n * `items` array or a `title` attribute -- a link row and a dropdown list -- so\n * the copy lived in the shadow root, twice.\n *\n * The current item is the last section whose top has reached the line under\n * the bar, and it is the only item with `current`; the indicator follows it.\n * Below md the actions open once the first section is behind the reader.\n */\n@defineElement(\"bd-anchor-nav\")\nexport class BdAnchorNav extends LitElement {\n static styles = [ensembleCSS, anchorNavStyles];\n\n @state()\n activeId = \"\";\n /** The nav's accessible name. No default: a page with one nav may not need one, and one with two names each. */\n @property({ type: String, attribute: \"aria-label\" })\n navLabel = \"\";\n @state()\n _dropdownOpen = false;\n @state()\n _actionsRevealed = false;\n /* Below md the list is the dropdown. */\n @state()\n _below = false;\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 _seenItems : BdAnchorNavItem[];\n\n /* The items and their words: a text edit re-renders the toggle's label. */\n _slots = new SlotController(this, { slots: [\"\", \"actions\"], text: [\"\"] });\n\n _viewport = new MediaQueryController(this, below(\"md\"), isBelow => {\n this._below = isBelow;\n if (!isBelow) this._dropdownOpen = false;\n });\n\n /* The indicator follows the list's size, the bar's and each item's for as\n long as the nav is connected. It used to start in firstUpdated and stop\n on disconnect, so a nav moved in the page left its indicator where it\n was. The items are watched because a link can change width with no\n render and no change to the list's box -- the webfont arriving after the\n first measure (measured: the indicator stayed at the fallback face's\n 72.73px under a 71.03px link), a theme restating the link's tracking --\n and an item before the current one growing moves it. */\n _indicatorSize = new ObserverController(this,\n () => new ResizeObserver(() => this._updateIndicator(\"ResizeObserver\")),\n observer => this._observeIndicator(observer));\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._seenItems = [];\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._unobserveSections();\n }\n\n /* The first item is current before the first render, not after it: state\n set in firstUpdated or updated starts a second render, the one Lit warns\n about as change-in-update. */\n willUpdate(changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties);\n if (!this.hasUpdated && !this.activeId && this._items().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 /* A slotchange or a text edit re-renders without a changed property, so\n the items are compared with the last render's: a new set is pushed its\n state and read for sections again. */\n const items = this._items();\n const itemsChanged = items.length !== this._seenItems.length || items.some((el, i) => el !== this._seenItems[i]);\n this._seenItems = items;\n this._syncItems(items);\n\n if (changedProperties.has(\"stickyTop\") || itemsChanged) {\n this._scheduleSpy();\n }\n\n /* A new item set is watched afresh, and the observer's first delivery\n places the indicator. Anything else that moves the link -- its words, a\n font, the list wrapping, the bar turning into the dropdown -- changes a\n box the observer watches. What no box reports is which item is\n current, and the indicator being needed again once the list is the bar. */\n const observer = this._indicatorSize.observer;\n if (itemsChanged && observer) this._observeIndicator(observer);\n if (changedProperties.has(\"activeId\") || changedProperties.has(\"_below\")) {\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._playLabelSwap());\n }\n\n /* What the indicator's observer watches: the list, the bar and the items,\n from scratch, so an item that left the nav is not watched any longer. */\n _observeIndicator(observer: ResizeObserver) {\n const list = this.renderRoot.querySelector(\".list\");\n if (!list) return;\n observer.disconnect();\n observer.observe(list);\n observer.observe(this);\n for (const item of this._items()) observer.observe(item);\n }\n\n /* The nav's own children in its default slot. */\n _items(): BdAnchorNavItem[] {\n return this._slots.elements<BdAnchorNavItem>(\"\").filter(el => el.localName === \"bd-anchor-nav-item\");\n }\n\n _resolvedItems(): ResolvedItem[] {\n return this._items().map((el, i) => ({\n el,\n href: el.href || `#anchor-${i + 1}-section`,\n id : `anchor-${i + 1}`\n }));\n }\n\n /* The state the nav hands its items: `current` on the one whose section the\n reader is in, and the section an item without an href goes to. Both are\n properties the item reflects or renders from, the push 3.x's\n bd-breadcrumb makes for its orientation. */\n _syncItems(items = this._items()) {\n items.forEach((el, i) => {\n const id = `anchor-${i + 1}`;\n el.current = this.activeId === id;\n el._sectionHref = `#anchor-${i + 1}-section`;\n });\n }\n\n _currentItem() {\n const items = this._items();\n const m = /^anchor-(\\d+)$/.exec(this.activeId || \"\");\n const n = m ? parseInt(m[1], 10) : 1;\n return items[Math.min(Math.max(n - 1, 0), Math.max(0, items.length - 1))];\n }\n\n /* The indicator spans the list and is moved and sized on the compositor:\n translate to the current link's corner, scale to its width. The offsets\n are physical, read from the two boxes -- a slotted item's offsetLeft is\n not measured from the list it sits in -- so the indicator is anchored at\n the list's physical left, on a right-to-left page too. Below md the list\n is the dropdown and there is no indicator. */\n _updateIndicator(_caller?: string) {\n const indicator = this.renderRoot?.querySelector<HTMLElement>(\".indicator\");\n const list = this.renderRoot?.querySelector<HTMLElement>(\".list\");\n const current = this._items().find(el => el.current);\n if (!indicator || !list || !current || this._below) return;\n\n const rowBox = list.getBoundingClientRect();\n const linkBox = current.getBoundingClientRect();\n const row = indicator.offsetWidth;\n const scale = row ? linkBox.width / row : 0;\n // The bar's bottom edge is the inner's padding-bottom below the link.\n const inner = this.renderRoot.querySelector(\".inner\");\n const gap = inner ? parseFloat(getComputedStyle(inner).paddingBottom) || 0 : 0;\n const left = linkBox.left - rowBox.left;\n const top = linkBox.top - rowBox.top + linkBox.height + gap;\n\n const place = () => {\n indicator.style.translate = `${left}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\n While stuck it draws a shadow. A scroll-state container query says when\n that is, and it is Limited availability; where it is missing, this tells\n instead: the bar sits at its sticky top -- read as the browser resolved\n it, as _stickyOffsetPx() reads it, so calc(), em and custom properties\n 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 current until the scroll is over. scrollend says\n so where the browser has it. The timer is for a click that scrolls\n nothing, which no scrollend follows, and for browsers without the event:\n it ends the lock once the page has stopped moving. It used to end it after\n a 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 /* The fallback's Escape: the native popover's light dismiss does this\n where there is one. */\n _onKeydown(e: KeyboardEvent) {\n if (e.key === \"Escape\" && this._dropdownOpen) {\n this._dropdownOpen = false;\n this.updateComplete.then(() =>\n this.renderRoot?.querySelector<HTMLButtonElement>(\".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 }\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 current 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 actions' root starts at the top of the viewport and reaches FAR\n below, so the first section leaves it exactly when its bottom scrolls\n 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 /* A section is past the line while it is inside the root, or once it has\n left the root's far top. Not its top against the line: a section the page\n still hides (display: none until its blocks load) reports an empty box at\n 0, above the line, and when it shows up below the line it is still\n outside the root, so no entry comes to take that back -- the last such\n section stayed active on load and after every click. */\n _onSectionsCrossLine(entries: IntersectionObserverEntry[]) {\n for (const { target, isIntersecting, boundingClientRect, rootBounds } of entries) {\n this._passed.set(target, isIntersecting || boundingClientRect.bottom < rootBounds!.top);\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 /* Read off what the observers last reported; while a click's scroll runs,\n the item it chose stays current. The actions flag is set at every width,\n since only the stylesheet below md hides the actions until the first\n section is 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._actionsRevealed = !this._sections[0] || this._firstSectionBehind;\n }\n\n _playLabelSwap() {\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>(\".label\");\n if (!el) return;\n el.classList.remove(\"label--swap\");\n void el.offsetWidth;\n el.classList.add(\"label--swap\");\n el.addEventListener(\n \"animationend\",\n () => el.classList.remove(\"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. 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 /* A click on an item's link, heard on the list it is slotted into. Below md\n the list is the dropdown, which closes first. */\n _onListClick(e: MouseEvent) {\n const el = e.composedPath().find((n): n is BdAnchorNavItem => (n as Element).localName === \"bd-anchor-nav-item\");\n const item = el && this._resolvedItems().find(r => r.el === el);\n if (!item) return;\n if (this._below) {\n if (NATIVE_POPOVER) {\n const list = this.renderRoot.querySelector<HTMLElement>(\".list\");\n if (list?.matches(\":popover-open\")) list.hidePopover();\n } else {\n this._dropdownOpen = false;\n }\n }\n this.handleClick(e, item.id, item.href);\n }\n\n /* With a native popover, popovertarget opens and closes the list 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 render() {\n const dropdown = this._below;\n const popover = dropdown && NATIVE_POPOVER;\n const current = this._currentItem();\n const innerStyle = this.maxWidth ? `max-width: ${this.maxWidth};` : '';\n\n return html`\n <nav aria-label=${this.navLabel || nothing}>\n <div\n class=\"bd-ensemble inner\"\n part=\"inner\"\n style=\"${innerStyle}\"\n ?data-actions-visible=${this._actionsRevealed}\n >\n <div class=\"menu\" part=\"dropdown\">\n <button\n type=\"button\"\n class=\"toggle\"\n aria-expanded=${this._dropdownOpen ? \"true\" : \"false\"}\n aria-controls=${this._panelId}\n popovertarget=${popover ? this._panelId : nothing}\n @click=${this._toggleDropdown}\n >\n <span class=\"label\">${current ? flatText(current) : \"\"}</span>\n <span class=\"chevron\" aria-hidden=\"true\">\n <bd-icon name=\"arrow-down\" size=\"md\"></bd-icon>\n </span>\n </button>\n <div\n class=\"list\"\n id=${this._panelId}\n role=\"list\"\n popover=${popover ? \"auto\" : nothing}\n ?hidden=${dropdown && !NATIVE_POPOVER && !this._dropdownOpen}\n @toggle=${this._onPanelToggle}\n @click=${this._onListClick}\n >\n <slot></slot>\n <span class=\"indicator\" aria-hidden=\"true\"></span>\n </div>\n </div>\n\n <div class=\"actions\" ?hidden=${!this._slots.has(\"actions\")}>\n <div class=\"actions__inner\"><slot name=\"actions\"></slot></div>\n </div>\n </div>\n </nav>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-anchor-nav\": BdAnchorNav;\n }\n}\n"],"mappings":"A,gyBAoBA,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,SAQNC,EAAiB,IAAI,SAAS,kBAAkB,EA8BzCC,EAAN,cAA0BC,CAAW,C,OAC1B,KAAA,OAAA,CAACC,EAAaC,CAAe,C,CAyD7C,aAAc,CACZ,MAAM,EAvDG,KAAA,SAAA,GAGA,KAAA,SAAA,GAEK,KAAA,cAAA,GAEG,KAAA,iBAAA,GAGV,KAAA,OAAA,GAEE,KAAA,SAAA,GAEC,KAAA,UAAA,MAqBH,KAAA,OAAA,IAAIC,EAAe,KAAM,CAAE,MAAO,CAAC,GAA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CAAAwE,EAAc,eAAe,CAAA,EAAA7D,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
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)
|
|
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);text-decoration:var(--citation-reference-textDecoration)}.citation:hover{color:var(--citation-reference-hover-color);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};
|
|
2
2
|
//# sourceMappingURL=annotation.css.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,86C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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
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`
|
|
3
|
+
`}};t([o({type:String,attribute:`href`})],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
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`
|
|
5
|
+
`}};t([o({type:String,attribute:`href`})],c.prototype,`href`,void 0),c=t([e(`bd-citation`)],c);var l=class extends r{static{this.styles=[n]}render(){return i`
|
|
6
6
|
<sup class="sup"><slot></slot></sup>
|
|
7
7
|
`}};l=t([e(`bd-sup`)],l);var u=class extends r{static{this.styles=[n]}render(){return i`
|
|
8
8
|
<sub class="sub"><slot></slot></sub>
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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, attribute: 'href' })\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, attribute: 'href' })\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,OAAQ,UAAW,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ9C,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,OAAQ,UAAW,MAAO,CAAC,CAAA,EAAAE,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ9C,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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bd-article, laid out as REAL's post and drawn as csg_blog's article --
|
|
3
|
+
* frames 69:830 and 296:457, both 440 wide: the hero 296:469, the body
|
|
4
|
+
* 70:1381. Every gap between two parts is 24, the byline row's 16 above the
|
|
5
|
+
* title. The copy is the page's atoms, and the article gives them its look
|
|
6
|
+
* on what it slots, through their hooks:
|
|
7
|
+
*
|
|
8
|
+
* the title bd-h, display-md in the condensed face, bold, in the
|
|
9
|
+
* brand's text ink (296:477: 34 at 440, display-md's 33)
|
|
10
|
+
* a heading bd-h at h2: heading-h2 in the condensed face, semibold
|
|
11
|
+
* (296:497: 28 at 440, heading-h2's 28.6); at h3 heading-h5
|
|
12
|
+
* semibold in the sans face (69:1377: 20); deeper,
|
|
13
|
+
* heading-h6 semibold
|
|
14
|
+
* a paragraph bd-p, body-regular in the primary ink (69:1363: 16)
|
|
15
|
+
* a link bd-link, the brand's text ink (#0059d6 in 70:1381), its
|
|
16
|
+
* own default; the page writes `inline underline`
|
|
17
|
+
* an image bd-img at the card's corner, no hairline
|
|
18
|
+
*
|
|
19
|
+
* Figma's leading is Plex's "normal", which no one decided; each part keeps
|
|
20
|
+
* its role's own.
|
|
21
|
+
*/
|
|
22
|
+
export declare const articleCSS: import("lit").CSSResult;
|
|
23
|
+
/**
|
|
24
|
+
* What no rule in the article's shadow root reaches -- the items of a
|
|
25
|
+
* slotted list, and the image and caption inside a slotted <figure> -- is
|
|
26
|
+
* adopted into the tree the article sits in (shared/adopt-styles.ts),
|
|
27
|
+
* anchored on its tag. :where() keeps the tag's weight out, so a page's
|
|
28
|
+
* class outweighs it.
|
|
29
|
+
*/
|
|
30
|
+
export declare const articleProseCSS: import("lit").CSSResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}[hidden]{display:none!important}.article-layout{display:block}.article-hero{margin-bottom:var(--spacing-24)}.article-meta{align-items:center;gap:var(--spacing-8);margin-bottom:var(--spacing-16);flex-wrap:wrap;display:flex}.article-hero__title,.article-hero__authors{margin-bottom:var(--spacing-24)}.article-hero-divider,.article-divider{margin:var(--spacing-24) 0;border:0;border-top:var(--border-width-1) solid var(--color-border-container)}.article-hero-divider{margin:0 0 var(--spacing-24)}.article-hero__featured{margin:var(--spacing-24) 0 0}slot[name=title]::slotted(bd-h){--bd-heading-font-size:var(--typography-display-md-fontSize);--bd-heading-font-weight:var(--typography-display-md-fontWeight);--bd-heading-line-height:var(--typography-display-md-lineHeight);--bd-heading-letter-spacing:var(--typography-display-md-letterSpacing);--bd-heading-font-family:var(--typography-fontFamily-sans-condensed);--bd-heading-color:var(--color-text-brand)}slot[name=media]::slotted(:is(bd-img,bd-picture)){border-radius:var(--shape-radius-2xl);display:block;overflow:hidden}.article-toc--inline{margin:0 0 var(--spacing-24)}.prose::slotted(:is(bd-p,bd-h,ul,ol)){max-width:var(--content-width-readable)}.prose::slotted(:is(bd-p,bd-h,ul,ol,bd-blockquote,bd-code,bd-img,bd-picture,figure)),.body::slotted(:is(bd-key-takeaways,bd-report-promo)){margin:0 0 var(--spacing-24)}.body::slotted(:is(bd-key-takeaways,bd-report-promo,bd-code,bd-img,bd-picture,figure)){width:100%;display:block}.prose::slotted(:is(bd-img,bd-picture)){border-radius:var(--shape-radius-2xl);overflow:hidden}.prose::slotted(bd-p){--bd-paragraph-font-size:var(--typography-body-regular-fontSize);--bd-paragraph-font-weight:var(--typography-body-regular-fontWeight);--bd-paragraph-line-height:var(--typography-body-regular-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-regular-letterSpacing);--bd-paragraph-margin-bottom:0;--bd-paragraph-color:var(--color-text-primary);--bd-link-color:var(--color-text-brand)}.prose::slotted(bd-h){scroll-margin-top:var(--spacing-48);--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-semibold);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-fontFamily-sans-condensed);--bd-heading-color:var(--color-text-primary)}.prose::slotted(bd-h:is([as=h3 i],[as="3"])){--bd-heading-font-size:var(--typography-heading-h5-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-semibold);--bd-heading-line-height:var(--typography-heading-h5-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h5-letterSpacing);--bd-heading-font-family:var(--typography-heading-h5-fontFamily)}.prose::slotted(bd-h:is([as=h4 i],[as="4"],[as=h5 i],[as="5"],[as=h6 i],[as="6"])){--bd-heading-font-size:var(--typography-heading-h6-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-semibold);--bd-heading-line-height:var(--typography-heading-h6-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h6-letterSpacing);--bd-heading-font-family:var(--typography-heading-h6-fontFamily)}.prose::slotted(:is(ul,ol)){padding-left:var(--spacing-24);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);--bd-link-color:var(--color-text-brand)}.article-promo{margin:0}.article-newsletter{margin:var(--spacing-32) 0}.article-tags{gap:var(--spacing-8);margin-top:var(--spacing-32);flex-wrap:wrap;display:flex}@media (width>=992px){.article-layout{gap:var(--spacing-32);grid-template-columns:minmax(0,3fr) minmax(0,1fr);align-items:start;display:grid}.article-hero{grid-area:1/1;min-width:0;margin-bottom:0}.article-layout__preamble{grid-area:2/1;min-width:0}.article-layout__sections-main{grid-area:3/1;min-width:0}.article-newsletter{grid-area:4/1;min-width:0;margin-top:0}.preamble::slotted(bd-key-takeaways){margin-bottom:0}.article-sidebar{flex-direction:column;grid-area:1/2/4;align-self:stretch;min-width:0;display:flex}.article-sidebar__authors-zone{height:var(--bd-article-authors-zone-height,auto);flex:none}.article-sidebar__authors{top:var(--spacing-24);position:sticky}.article-sidebar__toc-gap{height:var(--bd-article-toc-gap-height,0);flex:none}.article-sidebar__toc{top:var(--spacing-24);flex:none;position:sticky}}`,n=e`:where(bd-article)>:is(ul,ol)>li+li{margin-top:var(--spacing-8)}:where(bd-article)>figure>:is(bd-img,bd-picture){border-radius:var(--shape-radius-2xl);display:block;overflow:hidden}:where(bd-article)>figure>bd-caption{margin-top:var(--spacing-12)}`;export{t as articleCSS,n as articleProseCSS};
|
|
2
|
+
//# sourceMappingURL=article.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"article.css.js","names":["articleCSS","articleProseCSS"],"sources":["../../../../src/components/article/article.css.ts"],"sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { above, bodyRole, headingRole } from '#shared/token-scales.ts';\n\n/**\n * bd-article, laid out as REAL's post and drawn as csg_blog's article --\n * frames 69:830 and 296:457, both 440 wide: the hero 296:469, the body\n * 70:1381. Every gap between two parts is 24, the byline row's 16 above the\n * title. The copy is the page's atoms, and the article gives them its look\n * on what it slots, through their hooks:\n *\n * the title bd-h, display-md in the condensed face, bold, in the\n * brand's text ink (296:477: 34 at 440, display-md's 33)\n * a heading bd-h at h2: heading-h2 in the condensed face, semibold\n * (296:497: 28 at 440, heading-h2's 28.6); at h3 heading-h5\n * semibold in the sans face (69:1377: 20); deeper,\n * heading-h6 semibold\n * a paragraph bd-p, body-regular in the primary ink (69:1363: 16)\n * a link bd-link, the brand's text ink (#0059d6 in 70:1381), its\n * own default; the page writes `inline underline`\n * an image bd-img at the card's corner, no hairline\n *\n * Figma's leading is Plex's \"normal\", which no one decided; each part keeps\n * its role's own.\n */\nexport const articleCSS = css`\n :host {\n display: block;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .article-layout {\n display: block;\n }\n\n /* The places the authors and the contents move between -- the sidebar,\n and the hero's and the body's -- are shown and hidden by _wide in\n render(), never by the lg query here: the stylesheet follows the\n query at the resize, before its change event reaches _wide and the\n article assigns them again, and a focused link whose place stops\n being drawn in between loses the focus. So the place that holds the\n node is drawn until the node moves. */\n\n /* === THE HERO === */\n\n .article-hero {\n margin-bottom: var(--spacing-24);\n }\n\n /* The byline row: its items 8 apart (296:472). */\n .article-meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-8);\n margin-bottom: var(--spacing-16);\n }\n\n .article-hero__title,\n .article-hero__authors {\n margin-bottom: var(--spacing-24);\n }\n\n .article-hero-divider,\n .article-divider {\n margin: var(--spacing-24) 0;\n border: 0;\n border-top: var(--border-width-1) solid var(--color-border-container);\n }\n\n .article-hero-divider {\n margin: 0 0 var(--spacing-24);\n }\n\n .article-hero__featured {\n margin: var(--spacing-24) 0 0;\n }\n\n /* The page's title: display-md in the condensed face and the brand's text\n ink. display-md is bold, as 296:477 draws it. */\n slot[name='title']::slotted(bd-h) {\n ${unsafeCSS(headingRole('display-md'))}\n --bd-heading-font-family: var(--typography-fontFamily-sans-condensed);\n --bd-heading-color: var(--color-text-brand);\n }\n\n /* The featured image, the page's largest paint: the column's width at\n its own proportions, at the card's corner (69:835). An image is no card\n -- it has no inset -- so it reads the step the card role names, not the\n role. */\n slot[name='media']::slotted(:is(bd-img, bd-picture)) {\n display: block;\n border-radius: var(--shape-radius-2xl);\n overflow: hidden;\n }\n\n /* === THE PROSE === */\n\n .article-toc--inline {\n margin: 0 0 var(--spacing-24);\n }\n\n /* not the column: the prose measure, narrower than the page on purpose */\n .prose::slotted(:is(bd-p, bd-h, ul, ol)) {\n max-width: var(--content-width-readable);\n }\n\n .prose::slotted(:is(bd-p, bd-h, ul, ol, bd-blockquote, bd-code, bd-img, bd-picture, figure)) {\n margin: 0 0 var(--spacing-24);\n }\n\n .body::slotted(:is(bd-key-takeaways, bd-report-promo)) {\n margin: 0 0 var(--spacing-24);\n }\n\n .body::slotted(:is(bd-key-takeaways, bd-report-promo, bd-code, bd-img, bd-picture, figure)) {\n display: block;\n width: 100%;\n }\n\n /* an image in the body, at the featured image's corner */\n .prose::slotted(:is(bd-img, bd-picture)) {\n border-radius: var(--shape-radius-2xl);\n overflow: hidden;\n }\n\n /* A paragraph: body-regular in the primary ink, its links in the brand's\n text ink, and the article's 24 under it in place of bd-p's own 16. */\n .prose::slotted(bd-p) {\n ${unsafeCSS(bodyRole('body-regular'))}\n --bd-paragraph-margin-bottom: 0;\n --bd-paragraph-color: var(--color-text-primary);\n --bd-link-color: var(--color-text-brand);\n }\n\n /* A section heading, h2 or a level bd-h draws as one: heading-h2 in the\n condensed face, semibold, landing 48 below the top on a jump to it. */\n .prose::slotted(bd-h) {\n scroll-margin-top: var(--spacing-48);\n ${unsafeCSS(headingRole('heading-h2'))}\n /* no role: the h2 role at 600, which csg_blog draws (296:497); no\n heading role carries the h2 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-semibold);\n --bd-heading-font-family: var(--typography-fontFamily-sans-condensed);\n --bd-heading-color: var(--color-text-primary);\n }\n\n .prose::slotted(bd-h:is([as='h3' i], [as='3'])) {\n ${unsafeCSS(headingRole('heading-h5'))}\n /* no role: the h5 role at 600, which csg_blog draws (69:1377); no\n heading role carries the h5 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-semibold);\n }\n\n .prose::slotted(bd-h:is([as='h4' i], [as='4'], [as='h5' i], [as='5'], [as='h6' i], [as='6'])) {\n ${unsafeCSS(headingRole('heading-h6'))}\n /* no role: the h6 role at 600, a step below the h3's; no heading role\n carries the h6 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-semibold);\n }\n\n /* The page's own lists, in the paragraphs' type; the space between their\n items is adopted into the page's tree (articleProseCSS). */\n .prose::slotted(:is(ul, ol)) {\n padding-left: var(--spacing-24);\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 --bd-link-color: var(--color-text-brand);\n }\n\n /* The product card closes the text (REAL's placePromo, DEX-29412). It is\n drawn in the sections' own box, as REAL's .post-promo-section is in\n .post-body: 24 under the last section's last part, which carries its own\n 24, at every width, and the contents beside it, from lg, keep sticking\n while it scrolls by. What follows it keeps its own distance, so it\n takes no margin. */\n .article-promo {\n margin: 0;\n }\n\n .article-newsletter {\n margin: var(--spacing-32) 0;\n }\n\n /* === AFTER THE LAYOUT === */\n\n .article-tags {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-8);\n margin-top: var(--spacing-32);\n }\n\n /* === FROM LG: THE GRID AND THE SIDEBAR === */\n\n @media ${unsafeCSS(above('lg'))} {\n .article-layout {\n display: grid;\n /* no token: the main column and the sidebar, 3 to 1, as REAL's post layout */\n grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);\n gap: var(--spacing-32);\n align-items: start;\n }\n\n .article-hero {\n grid-column: 1;\n grid-row: 1;\n min-width: 0;\n margin-bottom: 0;\n }\n\n .article-layout__preamble {\n grid-column: 1;\n grid-row: 2;\n min-width: 0;\n }\n\n .article-layout__sections-main {\n grid-column: 1;\n grid-row: 3;\n min-width: 0;\n }\n\n .article-newsletter {\n grid-column: 1;\n grid-row: 4;\n min-width: 0;\n margin-top: 0;\n }\n\n .preamble::slotted(bd-key-takeaways) {\n margin-bottom: 0;\n }\n\n .article-sidebar {\n display: flex;\n flex-direction: column;\n grid-column: 2;\n grid-row: 1 / 4;\n align-self: stretch;\n min-width: 0;\n }\n\n /* The two zones' heights are measured by the article's script\n (_syncSidebarLayout), and written on the sidebar. */\n .article-sidebar__authors-zone {\n flex: none;\n height: var(--bd-article-authors-zone-height, auto);\n }\n\n .article-sidebar__authors {\n position: sticky;\n top: var(--spacing-24);\n }\n\n .article-sidebar__toc-gap {\n flex: none;\n height: var(--bd-article-toc-gap-height, 0);\n }\n\n .article-sidebar__toc {\n position: sticky;\n top: var(--spacing-24);\n flex: none;\n }\n }\n`;\n\n/**\n * What no rule in the article's shadow root reaches -- the items of a\n * slotted list, and the image and caption inside a slotted <figure> -- is\n * adopted into the tree the article sits in (shared/adopt-styles.ts),\n * anchored on its tag. :where() keeps the tag's weight out, so a page's\n * class outweighs it.\n */\nexport const articleProseCSS = css`\n :where(bd-article) > :is(ul, ol) > li + li {\n margin-top: var(--spacing-8);\n }\n\n :where(bd-article) > figure > :is(bd-img, bd-picture) {\n display: block;\n border-radius: var(--shape-radius-2xl);\n overflow: hidden;\n }\n\n :where(bd-article) > figure > bd-caption {\n margin-top: var(--spacing-12);\n }\n`;\n"],"mappings":"A,4DAwBA,IAAaA,EAAa,CAAG,kgJAiQhBC,EAAkB,CAAG,0P"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { MediaQueryController } from "../shared/controller.media-query.js";
|
|
3
|
+
import { ObserverController } from "../shared/controller.observer.js";
|
|
4
|
+
import "../../tokens/tokens.js";
|
|
5
|
+
import "../abstract/abstract.js";
|
|
6
|
+
import "../authors/authors.js";
|
|
7
|
+
import "../blockquote/blockquote.js";
|
|
8
|
+
import "../caption/caption.js";
|
|
9
|
+
import "../code/code.js";
|
|
10
|
+
import "../h/h.js";
|
|
11
|
+
import "../img/img.js";
|
|
12
|
+
import "../key-takeaways/key-takeaways.js";
|
|
13
|
+
import "../link/link.js";
|
|
14
|
+
import "../meta/meta.js";
|
|
15
|
+
import "../newsletter-signup/newsletter-signup.js";
|
|
16
|
+
import "../p/p.js";
|
|
17
|
+
import "../picture/picture.js";
|
|
18
|
+
import "../product-upsell/product-upsell.js";
|
|
19
|
+
import "../related-articles/related-articles.js";
|
|
20
|
+
import "../report-promo/report-promo.js";
|
|
21
|
+
import "../table-of-contents/table-of-contents.js";
|
|
22
|
+
import "../tag/tag.js";
|
|
23
|
+
declare const NAMED: readonly ["eyebrow", "title", "authors", "description", "promo", "media", "toc", "newsletter", "footer", "related"];
|
|
24
|
+
type Named = typeof NAMED[number];
|
|
25
|
+
interface Plan {
|
|
26
|
+
named: Map<Named, Element[]>;
|
|
27
|
+
preamble: Node[];
|
|
28
|
+
sections: Node[];
|
|
29
|
+
firstSubhead: Element | null;
|
|
30
|
+
takeaways: Element | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The article: the page's article, laid out in the page column.
|
|
34
|
+
*
|
|
35
|
+
* <bd-article>
|
|
36
|
+
* <bd-meta slot="eyebrow" type="date" datetime="2026-06-17">17 June 2026</bd-meta>
|
|
37
|
+
* <bd-h slot="title" as="h1">…</bd-h>
|
|
38
|
+
* <bd-authors slot="authors">…</bd-authors>
|
|
39
|
+
* <bd-abstract slot="description">…</bd-abstract>
|
|
40
|
+
* <bd-img slot="media" src="…" alt="…" fetchpriority="high"></bd-img>
|
|
41
|
+
* <bd-table-of-contents slot="toc" collapsible>…</bd-table-of-contents>
|
|
42
|
+
* <bd-key-takeaways>…</bd-key-takeaways>
|
|
43
|
+
* <bd-h as="h2" id="how-the-scam-works">How the scam works</bd-h>
|
|
44
|
+
* <bd-p>…</bd-p>
|
|
45
|
+
* …
|
|
46
|
+
* <bd-product-upsell slot="promo">…</bd-product-upsell>
|
|
47
|
+
* <bd-newsletter-signup slot="newsletter">…</bd-newsletter-signup>
|
|
48
|
+
* <bd-tag slot="footer" appearance="chip" variant="brand">Scams</bd-tag>
|
|
49
|
+
* </bd-article>
|
|
50
|
+
*
|
|
51
|
+
* The page writes the article and this lays out what it is given: nothing
|
|
52
|
+
* here draws a word. The copy is the package's atoms -- bd-h, bd-p, bd-link,
|
|
53
|
+
* bd-img, bd-caption -- and the article gives them its look through the
|
|
54
|
+
* container hooks on what it slots (article.css.ts): the title, the
|
|
55
|
+
* section headings, the paragraphs and their links, the images' corners.
|
|
56
|
+
*
|
|
57
|
+
* bd-blog-article until the blog folded into the package's components
|
|
58
|
+
* (DEX-29414). It drew the blog's own prose atoms -- bd-blog-title,
|
|
59
|
+
* -subhead, -paragraph, -link, -image -- and sat in bd-blog-page-layout's
|
|
60
|
+
* column; it is the page column's own section now (ensembleCSS).
|
|
61
|
+
*
|
|
62
|
+
* ## Where each part goes
|
|
63
|
+
*
|
|
64
|
+
* The hero, in the page's order: the byline (`eyebrow`), the `title`, the
|
|
65
|
+
* `authors`, a divider, the abstract (`description`) and the featured image
|
|
66
|
+
* (`media`). The divider is always drawn, as REAL's
|
|
67
|
+
* post.ts draws its hr.post-hero-divider: it closes the byline, under the
|
|
68
|
+
* authors below lg and under the title once they are in the sidebar. Then
|
|
69
|
+
* the body -- every child with no `slot` -- cut at its first section
|
|
70
|
+
* heading, a bd-h at h2, as REAL cuts its body at the first <h2>: what
|
|
71
|
+
* comes before it (the key takeaways, and an h3 or h4 if the page wrote one
|
|
72
|
+
* there) is the preamble, and the sections start at it. The product card
|
|
73
|
+
* (`promo`) closes the article's text, after its last section -- or after
|
|
74
|
+
* the preamble, with no section heading -- as REAL's placePromo puts it
|
|
75
|
+
* since DEX-29412 (SEO feedback: no card between the abstract and the hero
|
|
76
|
+
* image). REAL puts it before the article's FAQ when there is one; once the
|
|
77
|
+
* package has an FAQ (DEX-29514) the article does the same, and until then
|
|
78
|
+
* a FAQ the page writes in the body comes before the card. The `newsletter`
|
|
79
|
+
* closes the main column; the tags (`footer`) and, after a divider, the
|
|
80
|
+
* `related` links follow the whole layout. A report promo goes where the
|
|
81
|
+
* page puts it in the body.
|
|
82
|
+
*
|
|
83
|
+
* From lg the layout is a grid: the hero, the preamble, the sections and
|
|
84
|
+
* the newsletter down the main column, and beside the first three a sidebar
|
|
85
|
+
* holding the authors -- in a zone as tall as the distance to the
|
|
86
|
+
* takeaways' bottom, so they stick there and scroll away with them -- then a
|
|
87
|
+
* gap down to the first section heading, and the table of contents, sticky,
|
|
88
|
+
* level with that heading (_syncSidebarLayout measures the page's takeaways
|
|
89
|
+
* and heading for both). Below lg it is one column, the authors under the
|
|
90
|
+
* title and the contents between the preamble and the sections.
|
|
91
|
+
*
|
|
92
|
+
* ## One node in each place
|
|
93
|
+
*
|
|
94
|
+
* 3.x drew the authors and the contents twice, a copy in the hero or the body
|
|
95
|
+
* and another in the sidebar, and hid one per width. The page writes each
|
|
96
|
+
* once, and the article moves the one node: its shadow root assigns its
|
|
97
|
+
* slots by hand (slotAssignment: "manual", as bd-tab-group's does), each
|
|
98
|
+
* child by its `slot`, the body split at the first section heading, and
|
|
99
|
+
* `authors` and `toc` to their hero and inline places below lg and to the
|
|
100
|
+
* sidebar from it, again whenever the lg query changes. A child added,
|
|
101
|
+
* removed or given another `slot`, or a heading given another `as`, is
|
|
102
|
+
* routed again. A table of contents written without `slot="toc"` is part of
|
|
103
|
+
* the body and stays where the page put it.
|
|
104
|
+
*
|
|
105
|
+
* The space between list items, and the corners of an image in a <figure>,
|
|
106
|
+
* are adopted into the page's tree (articleProseCSS): no rule in the
|
|
107
|
+
* article's shadow root reaches past the slotted list or figure. The
|
|
108
|
+
* sidebar is a div: 3.x's `<aside aria-label="Article sidebar">`, and its
|
|
109
|
+
* "Authors" and "Table of contents" labels, were English of the article's
|
|
110
|
+
* own, and the contents' nav is named by its own heading.
|
|
111
|
+
*/
|
|
112
|
+
export declare class BdArticle extends LitElement {
|
|
113
|
+
static shadowRootOptions: ShadowRootInit;
|
|
114
|
+
static styles: import("lit").CSSResult[];
|
|
115
|
+
/** From lg: the sidebar holds the authors and the contents. */
|
|
116
|
+
_wide: boolean;
|
|
117
|
+
_media: MediaQueryController;
|
|
118
|
+
_children: ObserverController<MutationObserver>;
|
|
119
|
+
_resize: ObserverController<ResizeObserver>;
|
|
120
|
+
_plan: Plan | null;
|
|
121
|
+
connectedCallback(): void;
|
|
122
|
+
updated(): void;
|
|
123
|
+
/** The page's children, by where each goes. */
|
|
124
|
+
_read(): Plan;
|
|
125
|
+
_route(): void;
|
|
126
|
+
/** Size the sidebar's zones so the authors scroll away at the takeaways' bottom and the contents stand level with the first section heading. */
|
|
127
|
+
_syncSidebarLayout(): void;
|
|
128
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
129
|
+
}
|
|
130
|
+
declare global {
|
|
131
|
+
interface HTMLElementTagNameMap {
|
|
132
|
+
'bd-article': BdArticle;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
export {};
|