@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
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../icons/
|
|
3
|
+
import "../icons/marks/ai.js";
|
|
4
4
|
import "../link/link.js";
|
|
5
|
-
interface PageSwitcherItem {
|
|
6
|
-
title?: string;
|
|
7
|
-
href: string;
|
|
8
|
-
active?: boolean;
|
|
9
|
-
}
|
|
10
5
|
/**
|
|
11
6
|
* The product-level page navigation: a brand mark and one link per page, with
|
|
12
7
|
* the page you are on marked.
|
|
13
8
|
*
|
|
14
|
-
*
|
|
9
|
+
* <bd-page-switcher label="Product navigation">
|
|
10
|
+
* <bd-link href="/ai-guardian" current="page">AI Guardian</bd-link>
|
|
11
|
+
* <bd-link href="/skill-scanner">Skill Scanner</bd-link>
|
|
12
|
+
* </bd-page-switcher>
|
|
15
13
|
*
|
|
16
|
-
* The
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* the current one carries `current`, which drops it to --color-text-primary at
|
|
20
|
-
* weight 700 and takes the 3px indicator. bd-link's current-and-hovered rule
|
|
21
|
-
* keeps it there under the pointer.
|
|
14
|
+
* The links are the page's own bd-link children, in its <nav>; 3.x drew them
|
|
15
|
+
* from an `items` array. `label` names the nav, with no default -- 3.x's was
|
|
16
|
+
* the English "Product navigation". The `ai` mark is the switcher's own.
|
|
22
17
|
*
|
|
23
|
-
* The
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
18
|
+
* The ink is Position 2 of the wayfinding family review: colour means
|
|
19
|
+
* AVAILABLE and neutral means current. A resting link is bd-link's primary
|
|
20
|
+
* look, --color-text-brand, hovering to --color-text-brand-hover; the one with
|
|
21
|
+
* `current="page"` drops to --color-text-primary at weight 700 and takes the
|
|
22
|
+
* 3px indicator. `page`, not the generic `true`: these items are pages; the
|
|
23
|
+
* anchor nav's items are places inside one page and say `location`. bd-link
|
|
24
|
+
* puts it on its <a> as aria-current, and the indicator keys on the same
|
|
25
|
+
* attribute, so a link cannot be drawn current without being announced so.
|
|
28
26
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* element, it was never announced -- the <a> is in bd-link's shadow root. The
|
|
34
|
-
* look, the indicator below included, keys on the same attribute, so the item
|
|
35
|
-
* cannot be drawn current without being announced so.
|
|
27
|
+
* The switcher hands each link one thing, its `withoutUnderline`: the bar's
|
|
28
|
+
* links never underline, and the underline is drawn inside bd-link's shadow
|
|
29
|
+
* root, which no rule here reaches. It is a property, so nothing is written
|
|
30
|
+
* on the page's markup, and the push bd-breadcrumb makes for its orientation.
|
|
36
31
|
*/
|
|
37
|
-
declare class BdPageSwitcher extends LitElement {
|
|
32
|
+
export declare class BdPageSwitcher extends LitElement {
|
|
38
33
|
static styles: import("lit").CSSResult[];
|
|
39
|
-
|
|
34
|
+
/** The accessible name of the switcher's <nav>. No default. */
|
|
35
|
+
label: string;
|
|
36
|
+
firstUpdated(): void;
|
|
37
|
+
_links(): (Element & {
|
|
38
|
+
withoutUnderline: boolean;
|
|
39
|
+
})[];
|
|
40
|
+
_pushLinks: () => void;
|
|
40
41
|
render(): import("lit-html").TemplateResult<1>;
|
|
41
42
|
}
|
|
42
43
|
declare global {
|
|
@@ -44,4 +45,3 @@ declare global {
|
|
|
44
45
|
"bd-page-switcher": BdPageSwitcher;
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
export {};
|
|
@@ -1,18 +1,10 @@
|
|
|
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{ensembleCSS as n}from"../shared/ensemble.css.js";import"../
|
|
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"../link/link.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import"../icons/marks/ai.js";import{pageSwitcherStyles as r}from"./page-switcher.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.label=``,this._pushLinks=()=>{for(let e of this._links())e.withoutUnderline=!0}}static{this.styles=[n,r]}firstUpdated(){this._pushLinks()}_links(){return[...this.children].filter(e=>e.localName===`bd-link`&&!e.slot)}render(){return a`
|
|
2
2
|
<div class="bd-ensemble inner">
|
|
3
|
-
<bd-ai
|
|
3
|
+
<bd-mark name="ai" class="logo" width="200" height="24"></bd-mark>
|
|
4
4
|
|
|
5
|
-
<nav aria-label
|
|
6
|
-
|
|
7
|
-
<bd-link
|
|
8
|
-
href=${t}
|
|
9
|
-
variant="primary"
|
|
10
|
-
no-underline
|
|
11
|
-
current=${n?`page`:o}
|
|
12
|
-
class="page-link"
|
|
13
|
-
>${e||o}</bd-link>
|
|
14
|
-
`)}
|
|
5
|
+
<nav aria-label=${this.label||o}>
|
|
6
|
+
<slot @slotchange=${this._pushLinks}></slot>
|
|
15
7
|
</nav>
|
|
16
8
|
</div>
|
|
17
|
-
`}};t([s({type:
|
|
9
|
+
`}};t([s({type:String})],c.prototype,`label`,void 0),c=t([e(`bd-page-switcher`)],c);export{c as BdPageSwitcher};
|
|
18
10
|
//# sourceMappingURL=page-switcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-switcher.js","names":["_decorate","__decorate","BdPageSwitcher","LitElement","_args","
|
|
1
|
+
{"version":3,"file":"page-switcher.js","names":["_decorate","__decorate","BdPageSwitcher","LitElement","_args","link","ensembleCSS","pageSwitcherStyles","el","nothing","property","defineElement"],"sources":["../../../../src/components/page-switcher/page-switcher.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 \"#components/icons/marks/ai.ts\";\n/* The atom the page writes its links with. Imported first, so a bd-link is\n defined by the time the switcher hands it its look. */\nimport \"#components/link/link.ts\";\nimport { pageSwitcherStyles } from \"./page-switcher.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * The product-level page navigation: a brand mark and one link per page, with\n * the page you are on marked.\n *\n * <bd-page-switcher label=\"Product navigation\">\n * <bd-link href=\"/ai-guardian\" current=\"page\">AI Guardian</bd-link>\n * <bd-link href=\"/skill-scanner\">Skill Scanner</bd-link>\n * </bd-page-switcher>\n *\n * The links are the page's own bd-link children, in its <nav>; 3.x drew them\n * from an `items` array. `label` names the nav, with no default -- 3.x's was\n * the English \"Product navigation\". The `ai` mark is the switcher's own.\n *\n * The ink is Position 2 of the wayfinding family review: colour means\n * AVAILABLE and neutral means current. A resting link is bd-link's primary\n * look, --color-text-brand, hovering to --color-text-brand-hover; the one with\n * `current=\"page\"` drops to --color-text-primary at weight 700 and takes the\n * 3px indicator. `page`, not the generic `true`: these items are pages; the\n * anchor nav's items are places inside one page and say `location`. bd-link\n * puts it on its <a> as aria-current, and the indicator keys on the same\n * attribute, so a link cannot be drawn current without being announced so.\n *\n * The switcher hands each link one thing, its `withoutUnderline`: the bar's\n * links never underline, and the underline is drawn inside bd-link's shadow\n * root, which no rule here reaches. It is a property, so nothing is written\n * on the page's markup, and the push bd-breadcrumb makes for its orientation.\n */\n@defineElement(\"bd-page-switcher\")\nexport class BdPageSwitcher extends LitElement {\n static styles = [ensembleCSS, pageSwitcherStyles];\n\n /** The accessible name of the switcher's <nav>. No default. */\n @property({ type: String })\n label = \"\";\n\n firstUpdated() {\n this._pushLinks();\n }\n\n /* The page's bd-link children in the nav. */\n _links(): (Element & { withoutUnderline: boolean })[] {\n return [...this.children].filter((el): el is Element & { withoutUnderline: boolean } => el.localName === \"bd-link\" && !el.slot);\n }\n\n _pushLinks = () => {\n for (const link of this._links()) link.withoutUnderline = true;\n };\n\n render() {\n return html`\n <div class=\"bd-ensemble inner\">\n <bd-mark name=\"ai\" class=\"logo\" width=\"200\" height=\"24\"></bd-mark>\n\n <nav aria-label=${this.label || nothing}>\n <slot @slotchange=${this._pushLinks}></slot>\n </nav>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-page-switcher\": BdPageSwitcher;\n }\n}\n"],"mappings":"A,mbAwCO,IAAME,EAAN,cAA6BC,CAAW,C,8BAKrC,KAAA,MAAA,GAWW,KAAA,eAAA,CACjB,IAAK,IAAME,KAAQ,KAAK,OAAO,EAAG,EAAK,iBAAmB,EAC5D,C,QAjBgB,KAAA,OAAA,CAACC,EAAaC,CAAkB,C,CAMhD,cAAe,CACb,KAAK,WAAW,CAClB,CAGA,QAAsD,CACpD,MAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,OAAQ,GAAsDC,EAAG,YAAc,WAAa,CAACA,EAAG,IAAI,CAChI,CAMA,QAAS,CACP,MAAO,EAAI;;;;0BAIW,KAAK,OAASC,EAAQ;8BAClB,KAAK,WAAW;;;KAI5C,CACF,EA3BGT,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAR,EAAA,UAAA,QAAA,IAAA,EAAA,EAL3B,EAAAF,EAAA,CAAAW,EAAc,kBAAkB,CAAA,EAAAT,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`:host{display:inline-flex}.dots{align-items:center;display:flex}.dot{height:var(--dimension-24);padding:0 var(--spacing-8);cursor:pointer;background:0 0;border:none;place-items:center;margin:0;display:grid}.mark{width:var(--dimension-8);height:var(--dimension-8);border-radius:var(--radius-full);background:var(--color-
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:inline-flex}.dots{align-items:center;display:flex}.dot{height:var(--dimension-24);padding:0 var(--spacing-8);cursor:pointer;background:0 0;border:none;place-items:center;margin:0;display:grid}.mark{width:var(--dimension-8);height:var(--dimension-8);border-radius:var(--radius-full);background:var(--color-text-subtle);transition:width var(--transition-duration-normal) var(--transition-easing-ease), background var(--transition-duration-normal) var(--transition-easing-ease);display:block;position:relative;overflow:hidden}.dot:hover .mark{background:var(--color-text-muted)}.fill{background:var(--indicator-color);transform-origin:0;position:absolute;inset:0;transform:scaleX(0)}:host(:dir(rtl)) .fill{transform-origin:100%}.dot[aria-current=true]{cursor:default}.dot[aria-current=true] .mark{width:var(--dimension-40);background:color-mix(in srgb, var(--indicator-color) 20%, transparent);outline:var(--border-width-2) solid var(--indicator-color);outline-offset:calc(-1 * var(--border-width-2))}.dot[aria-current=true] .fill{transform:scaleX(1)}.dot:focus{outline:none}.dot:focus-visible{box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);border-radius:var(--radius-full)}@media (prefers-reduced-motion:reduce){.mark{transition:none}}@media (forced-colors:active){.mark{box-sizing:border-box;border:var(--border-width-1) solid currentColor}.fill{forced-color-adjust:none;background:highlight}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=pagination-dots.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-dots.css.js","names":["pagination_dots_css_default"],"sources":["../../../../src/components/pagination-dots/pagination-dots.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * Styled entirely from src/tokens/tokens.ts -- see CLAUDE.md, \"The foundation\n * rule\".\n *\n * The geometry is dimension, not spacing, on purpose: a dot is a fixed mark\n * and should not grow when a reader enlarges their text. The gap around each\n * dot is spacing, because it is padding, and padding is allowed to grow. So a\n * larger root font makes the targets wider and leaves the dots as drawn.\n */\nexport default css`\n :host {\n display: inline-flex;\n }\n\n .dots {\n display: flex;\n align-items: center;\n /* Each button carries its own target, so the space between two dots comes\n from the boxes. A gap on top would push them apart without making\n either easier to hit. */\n }\n\n /* ---- dots ---------------------------------------------------------------\n The target. 24px tall for WCAG 2.5.8, and the dot plus 8px either side\n wide: 24 for a resting dot, 56 for the current pill. The dot is drawn\n inside it rather than being it. */\n .dot {\n display: grid;\n place-items: center;\n height: var(--dimension-24);\n margin: 0;\n padding: 0 var(--spacing-8);\n border: none;\n background: transparent;\n cursor: pointer;\n }\n\n /* The mark is a real element rather than a ::before, because the current\n one holds the progress fill and a Web Animation needs an element to run\n on. */\n .mark {\n position: relative;\n display: block;\n overflow: hidden;\n width: var(--dimension-8);\n height: var(--dimension-8);\n border-radius: var(--radius-full);\n /*
|
|
1
|
+
{"version":3,"file":"pagination-dots.css.js","names":["pagination_dots_css_default"],"sources":["../../../../src/components/pagination-dots/pagination-dots.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * Styled entirely from src/tokens/tokens.ts -- see CLAUDE.md, \"The foundation\n * rule\".\n *\n * The geometry is dimension, not spacing, on purpose: a dot is a fixed mark\n * and should not grow when a reader enlarges their text. The gap around each\n * dot is spacing, because it is padding, and padding is allowed to grow. So a\n * larger root font makes the targets wider and leaves the dots as drawn.\n */\nexport default css`\n :host {\n display: inline-flex;\n }\n\n .dots {\n display: flex;\n align-items: center;\n /* Each button carries its own target, so the space between two dots comes\n from the boxes. A gap on top would push them apart without making\n either easier to hit. */\n }\n\n /* ---- dots ---------------------------------------------------------------\n The target. 24px tall for WCAG 2.5.8, and the dot plus 8px either side\n wide: 24 for a resting dot, 56 for the current pill. The dot is drawn\n inside it rather than being it. */\n .dot {\n display: grid;\n place-items: center;\n height: var(--dimension-24);\n margin: 0;\n padding: 0 var(--spacing-8);\n border: none;\n background: transparent;\n cursor: pointer;\n }\n\n /* The mark is a real element rather than a ::before, because the current\n one holds the progress fill and a Web Animation needs an element to run\n on. */\n .mark {\n position: relative;\n display: block;\n overflow: hidden;\n width: var(--dimension-8);\n height: var(--dimension-8);\n border-radius: var(--radius-full);\n /* A resting slide mark, drawn in ink as an icon is, at the quietest step\n of the text hierarchy: it has to clear the 3:1 WCAG 1.4.11 asks of a\n control's only visual, and subtle is the quietest ink that reads.\n neutral-500 in light, as before -- 4.81 on the page and 4.46 on the\n blue-50 info tint the homepage puts it on -- and neutral-450 in dark,\n 4.93 on the page and 4.32 on the dark brand wash. Until 2026-11-10 it\n read neutral-500 itself, and on the dark page stayed the light grey,\n 4.04:1 there and 3.55 on the wash. The design's 30% neutral-900\n measures 1.94 on the tint; neutral-300, which 3.x's bd-awards-flex\n drew, 2.10. */\n background: var(--color-text-subtle);\n transition: width var(--transition-duration-normal) var(--transition-easing-ease),\n background var(--transition-duration-normal) var(--transition-easing-ease);\n }\n\n .dot:hover .mark {\n /* the same mark under the pointer, one rung up the hierarchy:\n neutral-600 in light, as before, and lighter in dark */\n background: var(--color-text-muted);\n }\n\n /* The progress. Scaled rather than sized, so the fill is drawn by the\n compositor and never re-lays the row out. Without autoplay the current\n fill is whole, which is the pill as it always was; with it, the atom's\n Web Animation runs this from 0 to 1 over the delay and the end of the\n animation is the change of slide. */\n .fill {\n position: absolute;\n inset: 0;\n background: var(--indicator-color);\n transform: scaleX(0);\n transform-origin: left center;\n }\n\n :host(:dir(rtl)) .fill {\n transform-origin: right center;\n }\n\n /* The current slide. The pill is the design's shape. The colour is the\n indicator role, the one every current-item mark in the package shares --\n the tab and nav underlines -- so they cannot drift apart. The design draws\n it neutral-900 as an unbound value; using that would make this the one\n current mark in the system that is not the indicator. */\n .dot[aria-current=\"true\"] {\n cursor: default;\n }\n\n /* The current pill is also the autoplay track: the indicator colour at a\n fifth, laid over whatever surface the dots sit on, inside an indicator\n edge. Translucent rather than a colour of its own, so it belongs to every\n ground -- a white track read as a hole on the awards tint and on a band.\n It was the resting grey before that, and the blue fill could not be seen\n on it: blue-500 on neutral-500 is 1.06:1.\n .\n The edge is 2px, drawn as an outline pulled inside the box rather than as\n a border. At 1px it was faint at 1x density, and that is the moment it\n matters most: the start of each slide, when nothing has filled yet and\n the edge alone marks the pill. A 2px border would have taken the 2px out\n of the box and left the fill a 4px sliver; an outline takes no room, and\n it paints above the fill in the fill's own colour, so the fill keeps the\n full 8px and the two merge where they meet. Under a forced palette the\n outline is repainted in a system colour and still draws.\n .\n Measured: the fill against the track is 3.10:1 or better on the page,\n the container, the subtle band and the awards tint; the edge against the\n ground 4.05:1 or better. When the fill is whole the edge and fill are one\n colour, which is the solid pill a dots row without autoplay shows. */\n .dot[aria-current=\"true\"] .mark {\n width: var(--dimension-40);\n background: color-mix(in srgb, var(--indicator-color) 20%, transparent);\n outline: var(--border-width-2) solid var(--indicator-color);\n outline-offset: calc(-1 * var(--border-width-2));\n }\n\n .dot[aria-current=\"true\"] .fill {\n transform: scaleX(1);\n }\n\n /* ---- focus ------------------------------------------------------------\n the one focus ring -- see Foundations/Focus. It follows the target, not\n the mark, so keyboard focus shows the size the button really is. */\n .dot:focus {\n outline: none;\n }\n\n .dot:focus-visible {\n box-shadow: var(--focus-outline-primary);\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 border-radius: var(--radius-full);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .mark {\n transition: none;\n }\n }\n\n /* A forced palette repaints backgrounds, which would erase every dot.\n Borders survive it, so a resting dot is drawn as a ring, and the fill is\n kept out of the repaint and drawn in the highlight colour -- so the\n current pill still shows, and so does the time it has left. */\n @media (forced-colors: active) {\n .mark {\n box-sizing: border-box;\n border: var(--border-width-1) solid currentColor;\n }\n .fill {\n forced-color-adjust: none;\n background: Highlight;\n }\n }\n`;\n"],"mappings":"A,0BAWA,IAAAA,EAAe,CAAG,q9C"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LitElement, nothing, type PropertyValues } from "lit";
|
|
2
|
-
import "../shared/events.js";
|
|
3
2
|
import "../../tokens/tokens.js";
|
|
4
3
|
declare class BdPaginationDots extends LitElement {
|
|
5
4
|
static styles: import("lit").CSSResult[];
|
|
@@ -27,13 +26,16 @@ declare class BdPaginationDots extends LitElement {
|
|
|
27
26
|
_announcePlayState(): void;
|
|
28
27
|
_select(n: number): void;
|
|
29
28
|
_pick(n: number): void;
|
|
30
|
-
render():
|
|
29
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
31
30
|
}
|
|
32
31
|
declare global {
|
|
33
32
|
interface HTMLElementTagNameMap {
|
|
34
33
|
"bd-pagination-dots": BdPaginationDots;
|
|
35
34
|
}
|
|
36
35
|
interface HTMLElementEventMap {
|
|
36
|
+
"bd-slide-change": CustomEvent<{
|
|
37
|
+
current: number;
|
|
38
|
+
}>;
|
|
37
39
|
"bd-toggle": CustomEvent<{
|
|
38
40
|
paused: boolean;
|
|
39
41
|
moving: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
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{MediaQueryController as n,REDUCED_MOTION as r}from"../shared/controller.media-query.js";import i from"./pagination-dots.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=1e3,d=class extends a{static{this.styles=[i]}constructor(){super(),this.count=0,this.current=1,this.label=`Slides`,this.itemLabel=`Go to slide`,this.autoplay=!1,this.delay=4e3,this.paused=!1,this.held=!1,this._selfHeld=!1,this._progress=null,this._announced=void 0,new n(this,r,e=>{e&&(this.paused=!0)})}disconnectedCallback(){super.disconnectedCallback(),this._stopProgress()}willUpdate(e){if(!e.has(`count`)&&!e.has(`current`))return;let t=Math.max(0,Math.floor(Number(this.count)||0));t!==this.count&&(this.count=t);let n=Math.min(Math.max(1,Math.floor(Number(this.current)||1)),Math.max(1,t));n!==this.current&&(this.current=n)}updated(e){[`count`,`current`,`autoplay`,`delay`].some(t=>e.has(t))&&this._startProgress(),this._syncProgress(),this._announcePlayState()}get _running(){return this.autoplay&&this.count>1}get _moving(){return this._running&&!this.paused&&!this.held&&!this._selfHeld}_startProgress(){if(this._stopProgress(),!this._running)return;let e=this.renderRoot.querySelector(`.dot[aria-current="true"] .fill`);if(!e?.animate)return;let t=Math.max(u,Number(this.delay)||0),n=e.animate([{transform:`scaleX(0)`},{transform:`scaleX(1)`}],{duration:t,easing:`linear`,fill:`forwards`});this._progress=n,n.finished.then(()=>{this._progress===n&&this._select(this.current>=this.count?1:this.current+1)},()=>{})}_stopProgress(){let e=this._progress;this._progress=null,e?.cancel()}_syncProgress(){let e=this._progress;e&&(this._moving&&e.playState===`paused`?e.play():!this._moving&&e.playState===`running`&&e.pause())}_announcePlayState(){let e=`${this.paused}|${this._moving}`;e!==this._announced&&(this._announced=e,this.dispatchEvent(new CustomEvent(`bd-toggle`,{detail:{paused:this.paused,moving:this._moving},bubbles:!0,composed:!0})))}_select(e){e!==this.current&&(this.current=e,this.dispatchEvent(new CustomEvent(`bd-change`,{detail:{current:e},bubbles:!0,composed:!0})))}_pick(e){this._running&&(this.paused=!0),this._select(e)}render(){if(this.count<2)return s;let e=Array.from({length:this.count},(e,t)=>t+1);return o`<div
|
|
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{MediaQueryController as n,REDUCED_MOTION as r}from"../shared/controller.media-query.js";import i from"./pagination-dots.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=1e3,d=class extends a{static{this.styles=[i]}constructor(){super(),this.count=0,this.current=1,this.label=`Slides`,this.itemLabel=`Go to slide`,this.autoplay=!1,this.delay=4e3,this.paused=!1,this.held=!1,this._selfHeld=!1,this._progress=null,this._announced=void 0,new n(this,r,e=>{e&&(this.paused=!0)})}disconnectedCallback(){super.disconnectedCallback(),this._stopProgress()}willUpdate(e){if(!e.has(`count`)&&!e.has(`current`))return;let t=Math.max(0,Math.floor(Number(this.count)||0));t!==this.count&&(this.count=t);let n=Math.min(Math.max(1,Math.floor(Number(this.current)||1)),Math.max(1,t));n!==this.current&&(this.current=n)}updated(e){[`count`,`current`,`autoplay`,`delay`].some(t=>e.has(t))&&this._startProgress(),this._syncProgress(),this._announcePlayState()}get _running(){return this.autoplay&&this.count>1}get _moving(){return this._running&&!this.paused&&!this.held&&!this._selfHeld}_startProgress(){if(this._stopProgress(),!this._running)return;let e=this.renderRoot.querySelector(`.dot[aria-current="true"] .fill`);if(!e?.animate)return;let t=Math.max(u,Number(this.delay)||0),n=e.animate([{transform:`scaleX(0)`},{transform:`scaleX(1)`}],{duration:t,easing:`linear`,fill:`forwards`});this._progress=n,n.finished.then(()=>{this._progress===n&&this._select(this.current>=this.count?1:this.current+1)},()=>{})}_stopProgress(){let e=this._progress;this._progress=null,e?.cancel()}_syncProgress(){let e=this._progress;e&&(this._moving&&e.playState===`paused`?e.play():!this._moving&&e.playState===`running`&&e.pause())}_announcePlayState(){let e=`${this.paused}|${this._moving}`;e!==this._announced&&(this._announced=e,this.dispatchEvent(new CustomEvent(`bd-toggle`,{detail:{paused:this.paused,moving:this._moving},bubbles:!0,composed:!0})))}_select(e){e!==this.current&&(this.current=e,this.dispatchEvent(new CustomEvent(`bd-slide-change`,{detail:{current:e},bubbles:!0,composed:!0})))}_pick(e){this._running&&(this.paused=!0),this._select(e)}render(){if(this.count<2)return s;let e=Array.from({length:this.count},(e,t)=>t+1);return o`<div
|
|
2
2
|
class="dots"
|
|
3
3
|
role="group"
|
|
4
4
|
aria-label="${this.label}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-dots.js","names":["paginationDotsCSS","_decorate","__decorate","pagination_dots_css_default","MIN_DELAY","BdPaginationDots","LitElement","MediaQueryController","REDUCED_MOTION","reduced","changed","count","current","k","fill","delay","progress","state","n","nothing","pages","i","property","defineElement"],"sources":["../../../../src/components/pagination-dots/pagination-dots.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 { MediaQueryController, REDUCED_MOTION } from \"#shared/controller.media-query.ts\";\nimport \"#shared/events.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport paginationDotsCSS from \"./pagination-dots.css.ts\";\n\n/**\n * Which of a run of slides is showing, and a way to go to another: the\n * package's one set of slide dots. Drawn in the foundation Figma file as\n * Pagination dot and Pagination dots.\n *\n * bd-awards-flex and bd-carousel-section each used to draw their own -- a dot\n * row that claimed to be a tablist, and a pair of <img role=\"button\"> arrows --\n * and the two had drifted apart on contrast, semantics and names. The carousel\n * that owns the slides stays the owner of the slides: it sets current, and\n * listens for bd-change.\n *\n * SEMANTICS. A group of buttons, the current one marked aria-current. Not a\n * tablist: a tab needs a tabpanel it controls, and this atom does not own or\n * know the panels. Each button is named for what it does (\"Go to slide 2\"),\n * and the group for what it moves through. Both names are attributes, so a\n * page in another language can say them.\n *\n * TARGET SIZE. A dot is 8px and the design spaces them 8px apart. Clickable at\n * that size they fail WCAG 2.5.8, so each button is a 24px target with the dot\n * drawn inside it. The dots end up 16px apart instead of 8; the part you can\n * hit grows and the dots do not.\n *\n * AUTOPLAY. With autoplay set, the atom advances itself every delay ms and the\n * current pill fills as the time runs: the progress IS the clock, so the fill\n * and the change of slide cannot drift apart. That is why the timer lives here\n * and not in the carousel. Every advance fires bd-change, exactly as a click.\n *\n * Stopping it. WCAG 2.2.2 wants a way to stop anything that moves on its own,\n * and there is no pause button, so the dots are the mechanism: picking one\n * stops autoplay for good (paused), because a visitor who chose a slide has\n * said which one they want to read. The clock also holds -- transiently --\n * while the pointer or focus is on the dots, or while the owner sets held for\n * its own slides. Under prefers-reduced-motion it never starts.\n *\n * count below 2 renders nothing: one page has nothing to move to.\n */\nconst MIN_DELAY = 1000;\n\n@defineElement(\"bd-pagination-dots\")\nclass BdPaginationDots extends LitElement {\n static styles = [paginationDotsCSS];\n\n @property({ type: Number })\n count = 0;\n // 1-based, like the names the buttons announce\n @property({ type: Number, reflect: true })\n current = 1;\n @property({ type: String })\n label = \"Slides\";\n @property({ type: String, attribute: \"item-label\" })\n itemLabel = \"Go to slide\";\n @property({ type: Boolean, reflect: true })\n autoplay = false;\n @property({ type: Number })\n delay = 4000;\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: Boolean })\n held = false;\n @state()\n _selfHeld = false;\n\n _progress : Animation | null;\n _announced: string | undefined;\n\n constructor() {\n super();\n this._progress = null;\n this._announced = undefined;\n // Watched rather than read once, so turning the setting on mid-visit stops it.\n new MediaQueryController(this, REDUCED_MOTION, reduced => { if (reduced) this.paused = true; });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._stopProgress();\n }\n\n /** count is a whole number of dots, and current always names one of them. */\n willUpdate(changed: PropertyValues<this>) {\n if (!changed.has(\"count\") && !changed.has(\"current\")) return;\n const count = Math.max(0, Math.floor(Number(this.count) || 0));\n if (count !== this.count) this.count = count;\n const current = Math.min(Math.max(1, Math.floor(Number(this.current) || 1)), Math.max(1, count));\n if (current !== this.current) this.current = current;\n }\n\n updated(changed: PropertyValues<this>) {\n // A new slide, a new clock or autoplay switched: the fill starts again.\n if (([\"count\", \"current\", \"autoplay\", \"delay\"] as const).some(k => changed.has(k))) this._startProgress();\n this._syncProgress();\n this._announcePlayState();\n }\n\n get _running() {\n return this.autoplay && this.count > 1;\n }\n\n get _moving() {\n return this._running && !this.paused && !this.held && !this._selfHeld;\n }\n\n /* One Web Animation per slide, on the current pill's fill. Its finish is the\n advance; pausing it is pausing the clock, and the fill holds where it\n stopped rather than snapping back. */\n _startProgress() {\n this._stopProgress();\n if (!this._running) return;\n const fill = this.renderRoot.querySelector('.dot[aria-current=\"true\"] .fill');\n if (!fill?.animate) return;\n const delay = Math.max(MIN_DELAY, Number(this.delay) || 0);\n const progress = fill.animate(\n [{ transform: \"scaleX(0)\" }, { transform: \"scaleX(1)\" }],\n { duration: delay, easing: \"linear\", fill: \"forwards\" }\n );\n this._progress = progress;\n progress.finished.then(() => {\n if (this._progress !== progress) return;\n this._select(this.current >= this.count ? 1 : this.current + 1);\n }, () => {});\n }\n\n _stopProgress() {\n const progress = this._progress;\n this._progress = null;\n progress?.cancel();\n }\n\n _syncProgress() {\n const progress = this._progress;\n if (!progress) return;\n if (this._moving && progress.playState === \"paused\") progress.play();\n else if (!this._moving && progress.playState === \"running\") progress.pause();\n }\n\n /* bd-toggle whenever the slides start or stop moving, for whatever reason.\n An owner needs it for its live region -- slides that change on their own\n must not be announced, and slides that change because the visitor asked\n must be -- and only this atom knows about the holds it places itself.\n Fired once on first render too, so the owner starts in step. */\n _announcePlayState() {\n const state = `${this.paused}|${this._moving}`;\n if (state === this._announced) return;\n this._announced = state;\n this.dispatchEvent(new CustomEvent(\"bd-toggle\", {\n detail : { paused: this.paused, moving: this._moving },\n bubbles : true,\n composed: true\n }));\n }\n\n _select(n: number) {\n if (n === this.current) return;\n this.current = n;\n this.dispatchEvent(new CustomEvent(\"bd-change\", {\n detail : { current: n },\n bubbles : true,\n composed: true\n }));\n }\n\n // The visitor's pick: it moves, and it stops autoplay for good.\n _pick(n: number) {\n if (this._running) this.paused = true;\n this._select(n);\n }\n\n render() {\n if (this.count < 2) return nothing;\n const pages = Array.from({ length: this.count }, (_, i) => i + 1);\n return html`<div\n class=\"dots\"\n role=\"group\"\n aria-label=\"${this.label}\"\n @pointerenter=${() => { this._selfHeld = true; }}\n @pointerleave=${() => { this._selfHeld = this.renderRoot.contains((this.renderRoot as ShadowRoot).activeElement); }}\n @focusin=${() => { this._selfHeld = true; }}\n @focusout=${(e: FocusEvent) => { this._selfHeld = this.renderRoot.contains(e.relatedTarget as Node | null) || this.matches(\":hover\"); }}\n >${pages.map(n => html`<button\n type=\"button\"\n class=\"dot\"\n aria-label=\"${this.itemLabel} ${n}\"\n aria-current=\"${n === this.current ? \"true\" : nothing}\"\n @click=${() => this._pick(n)}\n ><span class=\"mark\"><span class=\"fill\"></span></span></button>`)}</div>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-pagination-dots\": BdPaginationDots;\n }\n interface HTMLElementEventMap {\n \"bd-toggle\": CustomEvent<{ paused: boolean; moving: boolean }>;\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"pagination-dots.js","names":["paginationDotsCSS","_decorate","__decorate","pagination_dots_css_default","MIN_DELAY","BdPaginationDots","LitElement","MediaQueryController","REDUCED_MOTION","reduced","changed","count","current","k","fill","delay","progress","state","n","nothing","pages","i","property","defineElement"],"sources":["../../../../src/components/pagination-dots/pagination-dots.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 { MediaQueryController, REDUCED_MOTION } from \"#shared/controller.media-query.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport paginationDotsCSS from \"./pagination-dots.css.ts\";\n\n/**\n * Which of a run of slides is showing, and a way to go to another: the\n * package's one set of slide dots. Drawn in the foundation Figma file as\n * Pagination dot and Pagination dots.\n *\n * bd-awards (bd-awards-flex until v4) and bd-carousel (bd-carousel-section)\n * each used to draw their own -- a dot row that claimed to be a tablist, and\n * a pair of <img role=\"button\"> arrows --\n * and the two had drifted apart on contrast, semantics and names. The carousel\n * that owns the slides stays the owner of the slides: it sets current, and\n * listens for bd-slide-change, Web Awesome's carousel event with this\n * package's prefix.\n *\n * SEMANTICS. A group of buttons, the current one marked aria-current. Not a\n * tablist: a tab needs a tabpanel it controls, and this atom does not own or\n * know the panels. Each button is named for what it does (\"Go to slide 2\"),\n * and the group for what it moves through. Both names are attributes, so a\n * page in another language can say them.\n *\n * TARGET SIZE. A dot is 8px and the design spaces them 8px apart. Clickable at\n * that size they fail WCAG 2.5.8, so each button is a 24px target with the dot\n * drawn inside it. The dots end up 16px apart instead of 8; the part you can\n * hit grows and the dots do not.\n *\n * AUTOPLAY. With autoplay set, the atom advances itself every delay ms and the\n * current pill fills as the time runs: the progress IS the clock, so the fill\n * and the change of slide cannot drift apart. That is why the timer lives here\n * and not in the carousel. Every advance fires bd-slide-change, exactly as a\n * click.\n *\n * Stopping it. WCAG 2.2.2 wants a way to stop anything that moves on its own,\n * and there is no pause button, so the dots are the mechanism: picking one\n * stops autoplay for good (paused), because a visitor who chose a slide has\n * said which one they want to read. The clock also holds -- transiently --\n * while the pointer or focus is on the dots, or while the owner sets held for\n * its own slides. Under prefers-reduced-motion it never starts.\n *\n * count below 2 renders nothing: one page has nothing to move to.\n */\nconst MIN_DELAY = 1000;\n\n@defineElement(\"bd-pagination-dots\")\nclass BdPaginationDots extends LitElement {\n static styles = [paginationDotsCSS];\n\n @property({ type: Number })\n count = 0;\n // 1-based, like the names the buttons announce\n @property({ type: Number, reflect: true })\n current = 1;\n @property({ type: String })\n label = \"Slides\";\n @property({ type: String, attribute: \"item-label\" })\n itemLabel = \"Go to slide\";\n @property({ type: Boolean, reflect: true })\n autoplay = false;\n @property({ type: Number })\n delay = 4000;\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: Boolean })\n held = false;\n @state()\n _selfHeld = false;\n\n _progress : Animation | null;\n _announced: string | undefined;\n\n constructor() {\n super();\n this._progress = null;\n this._announced = undefined;\n // Watched rather than read once, so turning the setting on mid-visit stops it.\n new MediaQueryController(this, REDUCED_MOTION, reduced => { if (reduced) this.paused = true; });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._stopProgress();\n }\n\n /** count is a whole number of dots, and current always names one of them. */\n willUpdate(changed: PropertyValues<this>) {\n if (!changed.has(\"count\") && !changed.has(\"current\")) return;\n const count = Math.max(0, Math.floor(Number(this.count) || 0));\n if (count !== this.count) this.count = count;\n const current = Math.min(Math.max(1, Math.floor(Number(this.current) || 1)), Math.max(1, count));\n if (current !== this.current) this.current = current;\n }\n\n updated(changed: PropertyValues<this>) {\n // A new slide, a new clock or autoplay switched: the fill starts again.\n if (([\"count\", \"current\", \"autoplay\", \"delay\"] as const).some(k => changed.has(k))) this._startProgress();\n this._syncProgress();\n this._announcePlayState();\n }\n\n get _running() {\n return this.autoplay && this.count > 1;\n }\n\n get _moving() {\n return this._running && !this.paused && !this.held && !this._selfHeld;\n }\n\n /* One Web Animation per slide, on the current pill's fill. Its finish is the\n advance; pausing it is pausing the clock, and the fill holds where it\n stopped rather than snapping back. */\n _startProgress() {\n this._stopProgress();\n if (!this._running) return;\n const fill = this.renderRoot.querySelector('.dot[aria-current=\"true\"] .fill');\n if (!fill?.animate) return;\n const delay = Math.max(MIN_DELAY, Number(this.delay) || 0);\n const progress = fill.animate(\n [{ transform: \"scaleX(0)\" }, { transform: \"scaleX(1)\" }],\n { duration: delay, easing: \"linear\", fill: \"forwards\" }\n );\n this._progress = progress;\n progress.finished.then(() => {\n if (this._progress !== progress) return;\n this._select(this.current >= this.count ? 1 : this.current + 1);\n }, () => {});\n }\n\n _stopProgress() {\n const progress = this._progress;\n this._progress = null;\n progress?.cancel();\n }\n\n _syncProgress() {\n const progress = this._progress;\n if (!progress) return;\n if (this._moving && progress.playState === \"paused\") progress.play();\n else if (!this._moving && progress.playState === \"running\") progress.pause();\n }\n\n /* bd-toggle whenever the slides start or stop moving, for whatever reason.\n An owner needs it for its live region -- slides that change on their own\n must not be announced, and slides that change because the visitor asked\n must be -- and only this atom knows about the holds it places itself.\n Fired once on first render too, so the owner starts in step. */\n _announcePlayState() {\n const state = `${this.paused}|${this._moving}`;\n if (state === this._announced) return;\n this._announced = state;\n this.dispatchEvent(new CustomEvent(\"bd-toggle\", {\n detail : { paused: this.paused, moving: this._moving },\n bubbles : true,\n composed: true\n }));\n }\n\n _select(n: number) {\n if (n === this.current) return;\n this.current = n;\n this.dispatchEvent(new CustomEvent(\"bd-slide-change\", {\n detail : { current: n },\n bubbles : true,\n composed: true\n }));\n }\n\n // The visitor's pick: it moves, and it stops autoplay for good.\n _pick(n: number) {\n if (this._running) this.paused = true;\n this._select(n);\n }\n\n render() {\n if (this.count < 2) return nothing;\n const pages = Array.from({ length: this.count }, (_, i) => i + 1);\n return html`<div\n class=\"dots\"\n role=\"group\"\n aria-label=\"${this.label}\"\n @pointerenter=${() => { this._selfHeld = true; }}\n @pointerleave=${() => { this._selfHeld = this.renderRoot.contains((this.renderRoot as ShadowRoot).activeElement); }}\n @focusin=${() => { this._selfHeld = true; }}\n @focusout=${(e: FocusEvent) => { this._selfHeld = this.renderRoot.contains(e.relatedTarget as Node | null) || this.matches(\":hover\"); }}\n >${pages.map(n => html`<button\n type=\"button\"\n class=\"dot\"\n aria-label=\"${this.itemLabel} ${n}\"\n aria-current=\"${n === this.current ? \"true\" : nothing}\"\n @click=${() => this._pick(n)}\n ><span class=\"mark\"><span class=\"fill\"></span></span></button>`)}</div>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-pagination-dots\": BdPaginationDots;\n }\n interface HTMLElementEventMap {\n \"bd-slide-change\": CustomEvent<{ current: number }>;\n \"bd-toggle\" : CustomEvent<{ paused: boolean; moving: boolean }>;\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.photo{height:260px;overflow:hidden}::slotted([slot=
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.photo{height:260px;overflow:hidden}::slotted([slot=media]){object-fit:cover;object-position:center top;width:100%;height:100%;display:block}.band{background:var(--color-surface-brand)}.card{gap:var(--spacing-24);padding-block:var(--spacing-32);background:var(--color-surface-brand);color:var(--color-brand-on-fill);flex-direction:column;display:flex}.intro,.detail{align-items:flex-start;gap:var(--spacing-24);flex-direction:column;min-width:0;display:flex}.lockup{display:flex}::slotted([slot=lockup]){max-width:100%;display:block}.card [hidden]{display:none}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill)}.quote{gap:var(--spacing-4);flex-direction:column;margin:0;display:flex}blockquote{font-family:var(--typography-heading-h4-fontFamily);font-size:var(--typography-heading-h4-fontSize);font-weight:var(--typography-heading-h4-fontWeight);line-height:var(--typography-heading-h4-lineHeight);letter-spacing:var(--typography-heading-h4-letterSpacing);margin:0}figcaption{font-family:var(--typography-label-large-fontFamily);font-size:var(--typography-label-large-fontSize);font-weight:var(--typography-label-large-fontWeight);line-height:var(--typography-label-large-lineHeight);letter-spacing:var(--typography-label-large-letterSpacing)}::slotted([slot=description]){--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-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill);--bd-paragraph-margin-bottom:0}.actions{align-self:stretch;gap:var(--spacing-22);flex-direction:column;display:flex}@media (width>=768px){.photo{height:320px}.band{background:0 0}.column{--_rise:var(--spacing-64);margin-block-start:calc(-1 * var(--_rise));position:relative}.card{padding:var(--spacing-32);border-radius:var(--shape-radius-3xl);background:linear-gradient(to top, var(--color-surface-brand) calc(100% - var(--_rise)), color-mix(in srgb, var(--color-surface-brand) 5%, transparent) 100%);backdrop-filter:blur(29px)}.actions{align-self:auto;gap:var(--spacing-16);flex-flow:wrap;width:fit-content;max-width:100%}::slotted([slot=actions]){flex:auto;width:auto}::slotted([slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing)}}@media (width>=992px){.photo{height:600px}.column{--_rise:var(--spacing-128)}.card{column-gap:var(--spacing-64);row-gap:var(--spacing-16);padding:var(--spacing-64);grid-template-rows:auto auto 1fr;grid-template-columns:1fr 1fr;display:grid}.intro,.detail{grid-row:span 3;grid-template-rows:subgrid;row-gap:normal;display:grid}.lockup,.quote{grid-row:1}.title{grid-row:2/span 2}.description{grid-row:2}.actions{grid-row:3;margin-block-start:var(--spacing-8)}}`;export{t as partnerBannerCSS};
|
|
2
2
|
//# sourceMappingURL=partner-banner.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner-banner.css.js","names":["partnerBannerCSS"],"sources":["../../../../src/components/partner-banner/partner-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* Mobile first, in the Figma Partner banner's three frames.\n below md the photo (260), then the card as a solid brand band under it,\n edge to edge, its copy on the page column\n md to lg the photo (320), the card rising 64 over its lower edge\n lg and up the photo (600), the card rising 128, in two columns\n Everything on the card is in the brand's own ink, --color-brand-on-fill. */\nexport const partnerBannerCSS = css`\n :host {\n display: block;\n }\n\n .photo {\n /* no token: the photo band's height in each frame -- 260, 320, 600; the\n dimension scale stops at 64 */\n height: 260px;\n overflow: hidden;\n }\n\n /* Cropped from the foot, never the head. Past about 1900px the 600 band is\n wider than the photo's own ratio, so cover crops it vertically, and a\n centred crop took the top off the Ferrari helmet and its Bitdefender\n mark from 2048 up. The card rises over the photo's lower edge anyway,\n so the foot is the part a crop can spend. An author can still set\n object-position on the img for a photo whose subject sits lower. */\n ::slotted([slot=\"
|
|
1
|
+
{"version":3,"file":"partner-banner.css.js","names":["partnerBannerCSS"],"sources":["../../../../src/components/partner-banner/partner-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\n/* Mobile first, in the Figma Partner banner's three frames.\n below md the photo (260), then the card as a solid brand band under it,\n edge to edge, its copy on the page column\n md to lg the photo (320), the card rising 64 over its lower edge\n lg and up the photo (600), the card rising 128, in two columns\n Everything on the card is in the brand's own ink, --color-brand-on-fill. */\nexport const partnerBannerCSS = css`\n :host {\n display: block;\n }\n\n .photo {\n /* no token: the photo band's height in each frame -- 260, 320, 600; the\n dimension scale stops at 64 */\n height: 260px;\n overflow: hidden;\n }\n\n /* Cropped from the foot, never the head. Past about 1900px the 600 band is\n wider than the photo's own ratio, so cover crops it vertically, and a\n centred crop took the top off the Ferrari helmet and its Bitdefender\n mark from 2048 up. The card rises over the photo's lower edge anyway,\n so the foot is the part a crop can spend. An author can still set\n object-position on the img for a photo whose subject sits lower. */\n ::slotted([slot=\"media\"]) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center top;\n }\n\n /* Below md the card is a band: the brand runs edge to edge behind the\n column, and the copy keeps the column's edges, 32 from the band's top\n and foot as the phone frame draws it. */\n .band {\n background: var(--color-surface-brand);\n }\n\n .card {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-24);\n padding-block: var(--spacing-32);\n background: var(--color-surface-brand);\n color: var(--color-brand-on-fill);\n }\n\n .intro,\n .detail {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-24);\n min-width: 0;\n }\n\n .lockup {\n display: flex;\n }\n\n ::slotted([slot=\"lockup\"]) {\n display: block;\n max-width: 100%;\n }\n\n /* Each part's box on the card is left out while its slot is empty; the\n attribute's selector outweighs the display a box sets. */\n .card [hidden] {\n display: none;\n }\n\n /* The section's title, whatever level the page writes: the h2 role, in\n the brand's ink. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n }\n\n .quote {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n margin: 0;\n }\n\n blockquote {\n margin: 0;\n font-family: var(--typography-heading-h4-fontFamily);\n font-size: var(--typography-heading-h4-fontSize);\n font-weight: var(--typography-heading-h4-fontWeight);\n line-height: var(--typography-heading-h4-lineHeight);\n letter-spacing: var(--typography-heading-h4-letterSpacing);\n }\n\n figcaption {\n font-family: var(--typography-label-large-fontFamily);\n font-size: var(--typography-label-large-fontSize);\n font-weight: var(--typography-label-large-fontWeight);\n line-height: var(--typography-label-large-lineHeight);\n letter-spacing: var(--typography-label-large-letterSpacing);\n }\n\n /* The description: body-regular, body-large from md, in the brand's ink.\n Its own flow margin goes, as 3.x's <p> had none: the column's gap\n spaces it. */\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* on a phone the CTAs stack, each the card's width (the banner sets their\n full-width), 22 apart as the phone frame draws them */\n .actions {\n display: flex;\n flex-direction: column;\n align-self: stretch;\n gap: var(--spacing-22);\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n .photo {\n /* no token: the tablet frame's photo band */\n height: 320px;\n }\n\n .band {\n background: none;\n }\n\n /* --_rise is how far the card rises over the photo's lower edge: 64\n here, 128 from lg. The card's fade spends exactly that much. */\n .column {\n --_rise: var(--spacing-64);\n position: relative;\n margin-block-start: calc(-1 * var(--_rise));\n }\n\n /* The card over the photo: the brand from translucent to solid behind a\n blur, so the photo shows through at the top and the copy sits on solid\n brand. No token: a gradient's stops and a blur radius.\n .\n The fade ends where the photo does, --_rise below the card's top. It\n ended at 35% of the card's height, which from md to lg is a single\n column and runs 100px and more past the photo, so the title sat on the\n brand thinned over the PAGE, not over the photo: white on a pale blue\n in light, and on a dark page a light partner's dark ink on a dark\n wash. Below the photo the card is now solid brand in both themes,\n which is the ground --color-brand-on-fill is held to. From lg the\n card is shorter and 35% was within a few pixels of the rise.\n .\n Written from the solid end, so the card's ground is the brand and the\n fade is its top edge: the theme sweep, like the brand sweep, reads a\n band's ground from a gradient's first stop. */\n .card {\n padding: var(--spacing-32);\n border-radius: var(--shape-radius-3xl);\n background: linear-gradient(\n to top,\n var(--color-surface-brand) calc(100% - var(--_rise)),\n color-mix(in srgb, var(--color-surface-brand) 5%, transparent) 100%\n );\n backdrop-filter: blur(29px);\n }\n\n /* A row as wide as its labels, never wider than the column. While they\n fit there is no free space, so nothing grows and each CTA keeps its\n label's width, as the frames draw them; once one wraps the row is the\n column's width and a CTA alone on its line grows to fill it, instead\n of a short button stranded beside empty space. fit-content rather\n than max-content: from lg the row sits in the detail column's own\n content-sized track, and a max-content box would size that track to\n the unwrapped row and run past the card. */\n .actions {\n flex-direction: row;\n flex-wrap: wrap;\n align-self: auto;\n width: fit-content;\n max-width: 100%;\n gap: var(--spacing-16);\n }\n\n /* full-width (set by the banner) makes the host a 100% block; auto hands\n the width back to the flex line */\n ::slotted([slot=\"actions\"]) {\n flex: 1 1 auto;\n width: auto;\n }\n\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n }\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n .photo {\n /* no token: the desktop frame's photo band */\n height: 600px;\n }\n\n .column {\n --_rise: var(--spacing-128);\n }\n\n /* Two columns on three shared rows, as the desktop frame lines them up:\n the lockup and the quote share the first, so the heading and the lead\n start on one line under the taller of the two, 16 below it; the\n actions take the third, under the lead. Each column is a subgrid of\n the card's rows (its row gap normal, so the card's), and the heading\n runs on through the third. */\n .card {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: auto auto 1fr;\n column-gap: var(--spacing-64);\n row-gap: var(--spacing-16);\n padding: var(--spacing-64);\n }\n\n .intro,\n .detail {\n display: grid;\n grid-row: span 3;\n grid-template-rows: subgrid;\n row-gap: normal;\n }\n\n .lockup,\n .quote {\n grid-row: 1;\n }\n\n .title {\n grid-row: 2 / span 2;\n }\n\n .description {\n grid-row: 2;\n }\n\n /* the frame sets the actions 24 under the lead: the row gap and 8 more */\n .actions {\n grid-row: 3;\n margin-block-start: var(--spacing-8);\n }\n }\n`;\n"],"mappings":"A,4DASA,IAAaA,EAAmB,CAAG,28G"}
|
|
@@ -1,36 +1,59 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../
|
|
4
|
-
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
import "../display/display.js";
|
|
6
|
+
import "../p/p.js";
|
|
7
|
+
import "../img/img.js";
|
|
8
|
+
import "../button/button.js";
|
|
9
|
+
type BannerSlot = "title" | "description" | "" | "caption" | "media" | "lockup" | "actions";
|
|
5
10
|
/**
|
|
6
11
|
* A partnership band: a full-bleed photo with a brand card that rises over
|
|
7
|
-
* its lower edge, holding the partner lockup, a
|
|
8
|
-
* attribution, a
|
|
9
|
-
* the foundation Figma file as Partner banner.
|
|
12
|
+
* its lower edge, holding the partner lockup, a title, a quote with its
|
|
13
|
+
* attribution, a description and two CTAs. The homepage's Ferrari section;
|
|
14
|
+
* drawn in the foundation Figma file as Partner banner.
|
|
10
15
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
16
|
+
* <bd-partner-banner>
|
|
17
|
+
* <img slot="media" src="/ferrari.jpg" alt="">
|
|
18
|
+
* <bd-img slot="lockup" src="/lockup.png" alt="Bitdefender, Ferrari Team Partner"></bd-img>
|
|
19
|
+
* <bd-h slot="title" as="h2">Trusted by Ferrari as their Exclusive Cybersecurity Partner.</bd-h>
|
|
20
|
+
* “I’m proud to have Bitdefender riding with me in 2026.”
|
|
21
|
+
* <span slot="caption">Lewis Hamilton, Scuderia Ferrari HP Driver</span>
|
|
22
|
+
* <bd-p slot="description">The same intelligence trusted by Ferrari …</bd-p>
|
|
23
|
+
* <bd-button slot="actions" appearance="white" href="…">Read more</bd-button>
|
|
24
|
+
* </bd-partner-banner>
|
|
13
25
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
26
|
+
* Every word is the page's (ADR 0003). The default slot is the quote, drawn
|
|
27
|
+
* in the <blockquote> at the heading-h4 role, and `caption` its attribution
|
|
28
|
+
* in the <figcaption>; the <figure> is left out while there is no quote. The
|
|
29
|
+
* page picks the title's level; the banner draws it at heading-h2, and
|
|
30
|
+
* everything on the card in the brand's own ink. Each part's box on the card
|
|
31
|
+
* is left out while its slot is empty; the photo's band keeps its height
|
|
32
|
+
* without one, as 3.x's did, since the card is laid over its lower edge.
|
|
33
|
+
*
|
|
34
|
+
* Not bd-cta-banner, which has no image, and not bd-spotlight, which sets its
|
|
35
|
+
* picture beside the copy rather than behind it.
|
|
36
|
+
*
|
|
37
|
+
* `media` takes the photo (an <img> or a <picture>, cover-fitted and cropped
|
|
38
|
+
* from the foot), `lockup` the partner's and Bitdefender's logos side by
|
|
39
|
+
* side (a bd-img), `actions` white and
|
|
40
|
+
* outline-white bd-buttons with href. Below md the card stops overlapping and
|
|
41
|
+
* becomes a solid band under the photo, edge to edge, with the CTAs stacked
|
|
42
|
+
* at its full width, as the phone frame draws them. From md they sit in a
|
|
43
|
+
* row, and one that wraps grows to the row's width rather than keeping its
|
|
44
|
+
* own.
|
|
20
45
|
*/
|
|
21
|
-
export declare class
|
|
46
|
+
export declare class BdPartnerBanner extends LitElement {
|
|
22
47
|
static styles: import("lit").CSSResult[];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
as: HeadingTag;
|
|
28
|
-
_onActionsSlot(e: Event): void;
|
|
48
|
+
_slots: SlotController<BannerSlot>;
|
|
49
|
+
private _widened;
|
|
50
|
+
private _widen;
|
|
51
|
+
updated(): void;
|
|
29
52
|
render(): import("lit-html").TemplateResult<1>;
|
|
30
53
|
}
|
|
31
54
|
declare global {
|
|
32
55
|
interface HTMLElementTagNameMap {
|
|
33
|
-
"bd-partner-banner":
|
|
56
|
+
"bd-partner-banner": BdPartnerBanner;
|
|
34
57
|
}
|
|
35
58
|
}
|
|
36
59
|
export {};
|
|
@@ -1,24 +1,24 @@
|
|
|
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"../
|
|
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"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../button/button.js";import"../img/img.js";import"../display/display.js";import{partnerBannerCSS as i}from"./partner-banner.css.js";import{LitElement as a,html as o}from"lit";var s=class extends a{constructor(...e){super(...e),this._slots=new n(this,{slots:[`title`,`description`,``,`caption`,`media`,`lockup`,`actions`]}),this._widened=/* @__PURE__ */ new Set}static{this.styles=[r,i]}_widen(){let e=new Set(this._slots.elements(`actions`).filter(e=>e.localName===`bd-button`));for(let t of[...this._widened])e.has(t)||(t.removeAttribute(`full-width`),this._widened.delete(t));for(let t of e)this._widened.has(t)||t.hasAttribute(`full-width`)||(t.setAttribute(`full-width`,``),this._widened.add(t))}updated(){this._widen()}render(){let e=e=>this._slots.has(e);return o`
|
|
2
2
|
<section class="root">
|
|
3
|
-
<div class="photo"><slot name="
|
|
3
|
+
<div class="photo"><slot name="media"></slot></div>
|
|
4
4
|
<div class="band">
|
|
5
5
|
<div class="bd-ensemble column">
|
|
6
6
|
<div class="card">
|
|
7
7
|
<div class="intro">
|
|
8
|
-
<div class="lockup"><slot name="lockup"></slot></div>
|
|
9
|
-
|
|
8
|
+
<div class="lockup" ?hidden=${!e(`lockup`)}><slot name="lockup"></slot></div>
|
|
9
|
+
<div class="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="detail">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<div class="actions"><slot name="actions"
|
|
12
|
+
<figure class="quote" ?hidden=${!e(``)}>
|
|
13
|
+
<blockquote><slot></slot></blockquote>
|
|
14
|
+
<figcaption ?hidden=${!e(`caption`)}><slot name="caption"></slot></figcaption>
|
|
15
|
+
</figure>
|
|
16
|
+
<div class="description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
17
|
+
<div class="actions" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
</section>
|
|
23
|
-
`}};
|
|
23
|
+
`}};s=t([e(`bd-partner-banner`)],s);export{s as BdPartnerBanner};
|
|
24
24
|
//# sourceMappingURL=partner-banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner-banner.js","names":["_decorate","__decorate","
|
|
1
|
+
{"version":3,"file":"partner-banner.js","names":["_decorate","__decorate","BdPartnerBanner","LitElement","_args","SlotController","ensembleCSS","partnerBannerCSS","now","el","has","name","defineElement"],"sources":["../../../../src/components/partner-banner/partner-banner.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { defineElement } from \"#shared/define-element.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\";\n/* The atoms the page writes into the banner's slots. It renders none of\n them, but 3.x's module registered bd-h, and a page importing only this\n module still gets what its slots are written with. */\nimport \"#components/h/h.ts\";\nimport \"#components/display/display.ts\";\nimport \"#components/p/p.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/button/button.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { partnerBannerCSS } from \"./partner-banner.css.ts\";\n\ntype BannerSlot = \"title\" | \"description\" | \"\" | \"caption\" | \"media\" | \"lockup\" | \"actions\";\n\n/**\n * A partnership band: a full-bleed photo with a brand card that rises over\n * its lower edge, holding the partner lockup, a title, a quote with its\n * attribution, a description and two CTAs. The homepage's Ferrari section;\n * drawn in the foundation Figma file as Partner banner.\n *\n * <bd-partner-banner>\n * <img slot=\"media\" src=\"/ferrari.jpg\" alt=\"\">\n * <bd-img slot=\"lockup\" src=\"/lockup.png\" alt=\"Bitdefender, Ferrari Team Partner\"></bd-img>\n * <bd-h slot=\"title\" as=\"h2\">Trusted by Ferrari as their Exclusive Cybersecurity Partner.</bd-h>\n * “I’m proud to have Bitdefender riding with me in 2026.”\n * <span slot=\"caption\">Lewis Hamilton, Scuderia Ferrari HP Driver</span>\n * <bd-p slot=\"description\">The same intelligence trusted by Ferrari …</bd-p>\n * <bd-button slot=\"actions\" appearance=\"white\" href=\"…\">Read more</bd-button>\n * </bd-partner-banner>\n *\n * Every word is the page's (ADR 0003). The default slot is the quote, drawn\n * in the <blockquote> at the heading-h4 role, and `caption` its attribution\n * in the <figcaption>; the <figure> is left out while there is no quote. The\n * page picks the title's level; the banner draws it at heading-h2, and\n * everything on the card in the brand's own ink. Each part's box on the card\n * is left out while its slot is empty; the photo's band keeps its height\n * without one, as 3.x's did, since the card is laid over its lower edge.\n *\n * Not bd-cta-banner, which has no image, and not bd-spotlight, which sets its\n * picture beside the copy rather than behind it.\n *\n * `media` takes the photo (an <img> or a <picture>, cover-fitted and cropped\n * from the foot), `lockup` the partner's and Bitdefender's logos side by\n * side (a bd-img), `actions` white and\n * outline-white bd-buttons with href. Below md the card stops overlapping and\n * becomes a solid band under the photo, edge to edge, with the CTAs stacked\n * at its full width, as the phone frame draws them. From md they sit in a\n * row, and one that wraps grows to the row's width rather than keeping its\n * own.\n */\n@defineElement(\"bd-partner-banner\")\nexport class BdPartnerBanner extends LitElement {\n static styles = [ensembleCSS, partnerBannerCSS];\n\n _slots = new SlotController<BannerSlot>(this, { slots: [\"title\", \"description\", \"\", \"caption\", \"media\", \"lockup\", \"actions\"] });\n\n /* The CTAs this banner made full-width, so one that leaves the slot gets\n its own width back. */\n private _widened = new Set<Element>();\n\n /* A bd-button fills its own box only through its full-width attribute,\n so the banner sets it on every CTA at every width and leaves the box's\n width to partner-banner.css.ts: the column's width on a phone, and from\n md the label's width until the row wraps, then the row's. That decides on\n the rendered labels, so a longer translation wraps and grows where the\n English fits on one line -- no breakpoint could know where that is.\n\n Only on a CTA that does not have it: one the page wrote full-width is the\n page's, and keeps it after it leaves the slot, where the banner takes\n back only its own. Written by tag as an attribute, so a bd-button another\n copy of the package defines later reads it when it upgrades. */\n private _widen() {\n const now = new Set(this._slots.elements(\"actions\").filter(el => el.localName === \"bd-button\"));\n for (const el of [...this._widened]) {\n if (now.has(el)) continue;\n el.removeAttribute(\"full-width\");\n this._widened.delete(el);\n }\n for (const el of now) {\n if (this._widened.has(el) || el.hasAttribute(\"full-width\")) continue;\n el.setAttribute(\"full-width\", \"\");\n this._widened.add(el);\n }\n }\n\n updated() {\n this._widen();\n }\n\n render() {\n const has = (name: BannerSlot) => this._slots.has(name);\n return html`\n <section class=\"root\">\n <div class=\"photo\"><slot name=\"media\"></slot></div>\n <div class=\"band\">\n <div class=\"bd-ensemble column\">\n <div class=\"card\">\n <div class=\"intro\">\n <div class=\"lockup\" ?hidden=${!has(\"lockup\")}><slot name=\"lockup\"></slot></div>\n <div class=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n </div>\n <div class=\"detail\">\n <figure class=\"quote\" ?hidden=${!has(\"\")}>\n <blockquote><slot></slot></blockquote>\n <figcaption ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></figcaption>\n </figure>\n <div class=\"description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"actions\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n </div>\n </div>\n </div>\n </div>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-partner-banner\": BdPartnerBanner;\n }\n}\n"],"mappings":"A,qfAuDO,IAAME,EAAN,cAA8BC,CAAW,C,8BAGrC,KAAA,OAAA,IAAIE,EAA2B,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,GAAI,UAAW,QAAS,SAAU,SAAS,CAAE,CAAC,EAI3G,KAAA,yBAAA,IAAI,G,QANP,KAAA,OAAA,CAACC,EAAaC,CAAgB,C,CAmB9C,QAAiB,CACf,IAAMC,EAAM,IAAI,IAAI,KAAK,OAAO,SAAS,SAAS,CAAC,CAAC,OAAO,GAAMC,EAAG,YAAc,WAAW,CAAC,EAC9F,IAAK,IAAMA,IAAM,CAAC,GAAG,KAAK,QAAQ,EAC5BD,EAAI,IAAIC,CAAE,IACdA,EAAG,gBAAgB,YAAY,EAC/B,KAAK,SAAS,OAAOA,CAAE,GAEzB,IAAK,IAAMA,KAAMD,EACX,KAAK,SAAS,IAAIC,CAAE,GAAKA,EAAG,aAAa,YAAY,IACzDA,EAAG,aAAa,aAAc,EAAE,EAChC,KAAK,SAAS,IAAIA,CAAE,EAExB,CAEA,SAAU,CACR,KAAK,OAAO,CACd,CAEA,QAAS,CACP,IAAMC,EAAO,GAAqB,KAAK,OAAO,IAAIC,CAAI,EACtD,MAAO,EAAI;;;;;;;8CAO+B,CAACD,EAAI,QAAQ,EAAE;6CAChB,CAACA,EAAI,OAAO,EAAE;;;gDAGX,CAACA,EAAI,EAAE,EAAE;;wCAEjB,CAACA,EAAI,SAAS,EAAE;;mDAEL,CAACA,EAAI,aAAa,EAAE;+CACxB,CAACA,EAAI,SAAS,EAAE;;;;;;KAO7D,CACF,EAjEC,EAAAV,EAAA,CAAAY,EAAc,mBAAmB,CAAA,EAAAV,CAAA,E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bd-paste-button: an icon button, drawn quiet so it sits over the end of the
|
|
3
|
+
* field it fills (bd-input's `end` slot), and the live region it speaks
|
|
4
|
+
* through.
|
|
5
|
+
*
|
|
6
|
+
* It is 3.x's clipboard field's paste button, and keeps its drawing: the
|
|
7
|
+
* secondary ink, the primary on hover, the field's own disabled ink.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: import("lit").CSSResult;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{vertical-align:middle;display:inline-flex}.paste-button{min-width:var(--dimension-24);min-height:var(--dimension-24);cursor:pointer;font-family:var(--typography-fontFamily-sans);font-size:var(--typography-fontSize-base);color:var(--color-text-secondary);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.paste-button: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)}.paste-button:hover{color:var(--color-text-primary)}.paste-button:disabled{cursor:not-allowed;color:var(--form-input-disabled-color)}.status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=paste-button.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paste-button.css.js","names":["paste_button_css_default"],"sources":["../../../../src/components/paste-button/paste-button.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * bd-paste-button: an icon button, drawn quiet so it sits over the end of the\n * field it fills (bd-input's `end` slot), and the live region it speaks\n * through.\n *\n * It is 3.x's clipboard field's paste button, and keeps its drawing: the\n * secondary ink, the primary on hover, the field's own disabled ink.\n */\nexport default css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n .paste-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n /* The 24px WCAG 2.5.8 asks of a target, in px: the box is matched to the\n icon it holds, which does not grow with the reader's text. */\n min-width: var(--dimension-24);\n min-height: var(--dimension-24);\n background: transparent;\n border: none;\n padding: 0;\n cursor: pointer;\n font-family: var(--typography-fontFamily-sans);\n /* no role: this button holds one 20x20 icon and no text, so there is no\n text-content type for a role to describe -- the same glyph-box category\n as .bd-arrow's fallback typography.\n .\n Not redundant: at \"revert\" the button falls to the UA's 13.333px, so\n the line does real work in normalising a <button> to the inherited\n step; it simply has nothing to act on today, since the box measures the\n same at either value. Deleting it would let the UA size surface the day\n the button gains a label. */\n font-size: var(--typography-fontSize-base);\n color: var(--color-text-secondary);\n }\n\n /* The shared ring; the radius is the default for an element with no radius\n of its own, so the ring is not a hard rectangle. */\n .paste-button:focus-visible {\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 .paste-button:hover {\n color: var(--color-text-primary);\n }\n\n .paste-button:disabled {\n cursor: not-allowed;\n /* The token the field it sits in disables to, so a disabled field and its\n button grey alike. Disabled text is exempt under WCAG 1.4.3. */\n color: var(--form-input-disabled-color);\n }\n\n /* The live region a copy is announced through (shared/announcer.ts). Out of\n view, in the accessibility tree. */\n .status {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, not a border -- the same\n sanctioned literal as visually-hidden.css.ts. */\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n`;\n"],"mappings":"A,0BAUA,IAAAA,EAAe,CAAG,2yB"}
|