@repobit/dex-system-design 3.1.2 → 4.1.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 +1075 -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 +16 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +10 -12
- 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 +85 -0
- package/dist/src/components/select/select.js +36 -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 +35 -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 +4110 -2766
- 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,52 +1,76 @@
|
|
|
1
|
-
import { LitElement,
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { ObserverController } from "../shared/controller.observer.js";
|
|
3
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
4
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
import "../h/h.js";
|
|
6
|
+
import "../p/p.js";
|
|
7
|
+
declare const APPEARANCES: readonly ["standard", "outcome", "risk", "light"];
|
|
8
|
+
type Appearance = typeof APPEARANCES[number];
|
|
9
|
+
declare const BACKGROUNDS: readonly ["none", "tint"];
|
|
10
|
+
type Background = typeof BACKGROUNDS[number];
|
|
11
|
+
/**
|
|
12
|
+
* A compatibility, outcome or risk matrix, or a light grid of label / value
|
|
13
|
+
* pairs, over a native <table> the page writes.
|
|
14
|
+
*
|
|
15
|
+
* <bd-compatibility-table appearance="outcome">
|
|
16
|
+
* <bd-h slot="title" as="h2">The same agent, with and without AI Guardian</bd-h>
|
|
17
|
+
* <bd-p slot="description">How five common agent events play out …</bd-p>
|
|
18
|
+
* <table>
|
|
19
|
+
* <thead><tr><th scope="col">Agent event</th><th scope="col">Without AI Guardian</th><th scope="col">With AI Guardian</th></tr></thead>
|
|
20
|
+
* <tbody><tr><th scope="row">Prompt injection</th><td>Agent may follow the injected instruction</td><td>Flagged or blocked before it acts</td></tr></tbody>
|
|
21
|
+
* </table>
|
|
22
|
+
* </bd-compatibility-table>
|
|
23
|
+
*
|
|
24
|
+
* The table is the page's: its words, its headers and its language, which
|
|
25
|
+
* 3.x built from `columns` and `rows` arrays with English defaults. It is
|
|
26
|
+
* slotted whole into the component's card; its cells are styled by tableCSS,
|
|
27
|
+
* which adoptStyles() puts into the tree the component sits in, because no
|
|
28
|
+
* rule in a shadow root reaches past a slotted element. The appearance picks
|
|
29
|
+
* the columns' shares and inks by position: the row's first cell is its
|
|
30
|
+
* <th scope="row">, and outcome's second and third columns are the without
|
|
31
|
+
* and with.
|
|
32
|
+
*
|
|
33
|
+
* Below md the rows stack into cards and the header row goes. Each cell then
|
|
34
|
+
* shows its column's name in front of its value, which the component copies
|
|
35
|
+
* from the table's own <th scope="col"> onto its host as --bd-col-N-label --
|
|
36
|
+
* a style on its own host, as bd-anchor-nav writes --sticky-top -- and follows
|
|
37
|
+
* as the page edits the header. And it writes each element's own table role
|
|
38
|
+
* on it (table, rowgroup, row, columnheader, rowheader, cell): WebKit drops a
|
|
39
|
+
* table's semantics once an element's display is no longer the table's, and
|
|
40
|
+
* the stacked layout changes all of them, as the light grid always does.
|
|
41
|
+
* Chromium and Firefox keep them, so there the roles say what the tags say.
|
|
42
|
+
* An element the page gave a role of its own keeps it.
|
|
43
|
+
*
|
|
44
|
+
* The page writes the title and picks its level; the component draws it at
|
|
45
|
+
* the page-section h2 role, and the description at body-large in muted ink.
|
|
46
|
+
* Each box is hidden while its slot is empty.
|
|
47
|
+
*/
|
|
48
|
+
export declare class BdCompatibilityTable extends LitElement {
|
|
19
49
|
static styles: import("lit").CSSResult[];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
50
|
+
/** The look: standard (environment / coverage / notes), outcome (without and with, in error and success ink), risk (category / coverage), light (label / value pairs in columns, no card). */
|
|
51
|
+
appearance: Appearance;
|
|
52
|
+
/** The ground: none, or tint, the brand wash. */
|
|
23
53
|
background: Background;
|
|
54
|
+
/** The light table's own card: border, corners, inset and a lift on hover. */
|
|
55
|
+
withBorder: boolean;
|
|
56
|
+
/** How many columns the light table's pairs flow into. */
|
|
24
57
|
lightColumns: number;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* There was no way to change it and no way to translate it.
|
|
38
|
-
*
|
|
39
|
-
* Passed to CSS as a string custom property so the label stays generated
|
|
40
|
-
* content: it is a visual stand-in for a header that is still in the
|
|
41
|
-
* accessibility tree, and putting it in the DOM would say it twice.
|
|
42
|
-
*/
|
|
43
|
-
_cellLabel(index: number): string | typeof nothing;
|
|
44
|
-
_renderRow(row: CompatibilityRow): TemplateResult<1>;
|
|
45
|
-
render(): TemplateResult<1>;
|
|
58
|
+
_slots: SlotController<"" | "title" | "description">;
|
|
59
|
+
private _roled;
|
|
60
|
+
private _labels;
|
|
61
|
+
_table: ObserverController<MutationObserver>;
|
|
62
|
+
connectedCallback(): void;
|
|
63
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
64
|
+
updated(changed: PropertyValues<this>): void;
|
|
65
|
+
_tables(): HTMLTableElement[];
|
|
66
|
+
_syncTable(): void;
|
|
67
|
+
_writeRoles(table: HTMLTableElement): void;
|
|
68
|
+
_writeLabels(table: HTMLTableElement | undefined): void;
|
|
69
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
46
70
|
}
|
|
47
71
|
declare global {
|
|
48
72
|
interface HTMLElementTagNameMap {
|
|
49
|
-
"bd-compatibility-table":
|
|
73
|
+
"bd-compatibility-table": BdCompatibilityTable;
|
|
50
74
|
}
|
|
51
75
|
}
|
|
52
76
|
export {};
|
|
@@ -1,67 +1,8 @@
|
|
|
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"../
|
|
2
|
-
<tr class="bd-compattable-row">
|
|
3
|
-
<th class="bd-compattable-cell bd-compattable-cell--event" scope="row">${e.event}</th>
|
|
4
|
-
<td class="bd-compattable-cell bd-compattable-cell--without" style=${this._cellLabel(1)}>${e.without}</td>
|
|
5
|
-
<td class="bd-compattable-cell bd-compattable-cell--with" style=${this._cellLabel(2)}>${e.with}</td>
|
|
6
|
-
</tr>
|
|
7
|
-
`:this.variant===`risk`?a`
|
|
8
|
-
<tr class="bd-compattable-row">
|
|
9
|
-
<th class="bd-compattable-cell bd-compattable-cell--category" scope="row">${e.category}</th>
|
|
10
|
-
<td class="bd-compattable-cell bd-compattable-cell--riskcoverage" style=${this._cellLabel(1)}>${e.coverage}</td>
|
|
11
|
-
</tr>
|
|
12
|
-
`:this.variant===`light`?a`
|
|
13
|
-
<tr class="bd-compattable-lightrow">
|
|
14
|
-
<th class="bd-compattable-lightlabel" scope="row">${e.label}</th>
|
|
15
|
-
<td class="bd-compattable-lightvalue">${e.value}</td>
|
|
16
|
-
</tr>
|
|
17
|
-
`:a`
|
|
18
|
-
<tr class="bd-compattable-row">
|
|
19
|
-
<th class="bd-compattable-cell bd-compattable-cell--environment" scope="row">${e.environment}</th>
|
|
20
|
-
<td class="bd-compattable-cell bd-compattable-cell--coverage" style=${this._cellLabel(1)}>${e.coverage}</td>
|
|
21
|
-
<td class="bd-compattable-cell bd-compattable-cell--notes" style=${this._cellLabel(2)}><span class="bd-compattable-notes">${e.notes}</span></td>
|
|
22
|
-
</tr>
|
|
23
|
-
`}render(){let e=this._defaultColumns();return a`
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{ObserverController as r}from"../shared/controller.observer.js";import{flatText as i}from"../shared/flat-text.js";import{SlotController as a}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as o}from"../shared/ensemble.css.js";import{adoptStyles as s}from"../shared/adopt-styles.js";import c,{tableCSS as l}from"./compatibility-table.css.js";import{LitElement as u,html as d}from"lit";import{property as f}from"lit/decorators.js";var p=[`standard`,`outcome`,`risk`,`light`],m=[`none`,`tint`],h={table:`table`,thead:`rowgroup`,tbody:`rowgroup`,tfoot:`rowgroup`,tr:`row`,td:`cell`},g=e=>e.closest(`thead`)!==null||/^col(group)?$/i.test(e.scope),_=e=>`"${e.replace(/["\\]/g,`\\$&`)}"`,v=class extends u{constructor(...e){super(...e),this.appearance=`standard`,this.background=`none`,this.withBorder=!1,this.lightColumns=2,this._slots=new a(this,{slots:[`title`,`description`,``]}),this._roled=/* @__PURE__ */ new WeakSet,this._labels=0,this._table=new r(this,()=>new MutationObserver(()=>this._syncTable()),e=>{e.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`scope`]}),this._syncTable()})}static{this.styles=[o,c]}connectedCallback(){super.connectedCallback(),s(this,`bd-compatibility-table`,l)}willUpdate(e){e.has(`appearance`)&&!t(p,this.appearance)&&(this.appearance=`standard`),e.has(`background`)&&!t(m,this.background)&&(this.background=`none`)}updated(e){if(e.has(`lightColumns`)){let e=Number(this.lightColumns);Number.isInteger(e)&&e>0?this.style.setProperty(`--bd-compattable-light-columns`,String(e)):this.style.removeProperty(`--bd-compattable-light-columns`)}}_tables(){return[...this.children].filter(e=>e instanceof HTMLTableElement&&!e.slot)}_syncTable(){let e=this._tables();for(let t of e)this._writeRoles(t);this._writeLabels(e[0])}_writeRoles(e){let t=(e,t)=>{(!e.hasAttribute(`role`)||this._roled.has(e))&&(this._roled.add(e),e.getAttribute(`role`)!==t&&e.setAttribute(`role`,t))};t(e,h.table);for(let n of[e.tHead,...e.tBodies,e.tFoot])n&&t(n,h[n.localName]);for(let n of e.rows){t(n,h.tr);for(let e of n.cells)t(e,e.localName===`th`?g(e)?`columnheader`:`rowheader`:h.td)}}_writeLabels(e){let t=e?[...e.rows].find(e=>[...e.cells].some(e=>e.localName===`th`&&g(e))):void 0,n=t?[...t.cells]:[];n.forEach((e,t)=>{let n=`--bd-col-${t+1}-label`,r=e.localName===`th`&&g(e)?i(e):``;r?this.style.setProperty(n,_(r)):this.style.removeProperty(n)});for(let e=n.length;e<this._labels;e++)this.style.removeProperty(`--bd-col-${e+1}-label`);this._labels=n.length}render(){let e=e=>this._slots.has(e);return d`
|
|
24
2
|
<div class="bd-ensemble bd-compattable-wrapper">
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</bd-h>
|
|
29
|
-
`:o}
|
|
30
|
-
|
|
31
|
-
${this.description?a`
|
|
32
|
-
<bd-p variant="large" class="bd-compattable-description" color="muted">
|
|
33
|
-
<slot name="description">${this.description}</slot>
|
|
34
|
-
</bd-p>
|
|
35
|
-
`:o}
|
|
36
|
-
|
|
37
|
-
${this.variant===`light`?a`
|
|
38
|
-
<table
|
|
39
|
-
class="bd-compattable-lightgrid"
|
|
40
|
-
style="--bd-compattable-light-columns: ${this.lightColumns};"
|
|
41
|
-
>
|
|
42
|
-
<tbody class="bd-compattable-lightbody">
|
|
43
|
-
${this.rows.map(e=>this._renderRow(e))}
|
|
44
|
-
</tbody>
|
|
45
|
-
</table>
|
|
46
|
-
<slot name="rows"></slot>
|
|
47
|
-
`:a`
|
|
48
|
-
<div class="bd-compattable-table-container">
|
|
49
|
-
<table class="bd-compattable-table">
|
|
50
|
-
<colgroup>${e.map(()=>a`<col>`)}</colgroup>
|
|
51
|
-
<thead class="bd-compattable-header">
|
|
52
|
-
<tr>
|
|
53
|
-
${e.map(e=>a`<th class="bd-compattable-header-cell" scope="col">${e}</th>`)}
|
|
54
|
-
</tr>
|
|
55
|
-
</thead>
|
|
56
|
-
<tbody class="bd-compattable-body">
|
|
57
|
-
${this.rows.map(e=>this._renderRow(e))}
|
|
58
|
-
</tbody>
|
|
59
|
-
</table>
|
|
60
|
-
<!-- after the table, inside the card: a slotted element
|
|
61
|
-
cannot become a row of a native table -->
|
|
62
|
-
<slot name="rows"></slot>
|
|
63
|
-
</div>
|
|
64
|
-
`}
|
|
3
|
+
<div class="bd-compattable-title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
4
|
+
<div class="bd-compattable-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
5
|
+
<div class="bd-compattable-table-container" ?hidden=${!e(``)}><slot></slot></div>
|
|
65
6
|
</div>
|
|
66
|
-
`}};
|
|
7
|
+
`}};n([f({type:String,reflect:!0})],v.prototype,`appearance`,void 0),n([f({type:String,reflect:!0})],v.prototype,`background`,void 0),n([f({type:Boolean,reflect:!0,attribute:`with-border`})],v.prototype,`withBorder`,void 0),n([f({type:Number,attribute:`light-columns`})],v.prototype,`lightColumns`,void 0),v=n([e(`bd-compatibility-table`)],v);export{v as BdCompatibilityTable};
|
|
67
8
|
//# sourceMappingURL=compatibility-table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatibility-table.js","names":["compatibilityTableCSS","_decorate","__decorate","compatibility_table_css_default","CompatibilityTable","LitElement","_args","ensembleCSS","name","index","nothing","row","columns","col","property","defineElement"],"sources":["../../../../src/components/compatibility-table/compatibility-table.ts"],"sourcesContent":["import { LitElement, html, nothing, type TemplateResult } 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/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport compatibilityTableCSS from \"./compatibility-table.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ntype Variant = \"default\" | \"outcome\" | \"risk\" | \"light\";\ntype Background = \"default\" | \"blue\" | \"bordered\";\n\ninterface CompatibilityRow {\n environment?: string;\n coverage? : string;\n notes? : string | TemplateResult;\n event? : string;\n without? : string;\n with? : string;\n category? : string;\n label? : string;\n value? : string;\n}\n\n@defineElement(\"bd-compatibility-table\")\nclass CompatibilityTable extends LitElement {\n static styles = [ensembleCSS, compatibilityTableCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: String, reflect: true })\n variant: Variant = \"default\";\n @property({ type: String, reflect: true })\n background: Background = \"default\";\n @property({ type: Number, attribute: \"light-columns\" })\n lightColumns = 2;\n @property({ type: Array })\n columns: string[] | null = null;\n @property({ type: Array })\n rows: CompatibilityRow[] = [];\n\n _defaultColumns() {\n if (this.columns) return this.columns;\n if (this.variant === \"outcome\") return [\"Agent event\", \"Without AI Guardian\", \"With AI Guardian\"];\n if (this.variant === \"risk\") return [\"Risk category\", \"AI Guardian coverage\"];\n if (this.variant === \"light\") return null;\n return [\"Environment\", \"Coverage\", \"Notes\"];\n }\n\n /**\n * The column name a cell shows below md, where the header row is hidden.\n *\n * It has to come from `columns`, because that is what the header shows. The\n * stylesheet used to carry these as hardcoded strings in `content` --\n * \"Without AI Guardian: \" and four others -- so a consumer who passed their\n * own columns got them in the header and the component's English in the\n * cells. Measured at 375 with columns set to Romanian: the header read\n * \"Fara AI Guardian\" and the cell label still read \"Without AI Guardian\".\n * There was no way to change it and no way to translate it.\n *\n * Passed to CSS as a string custom property so the label stays generated\n * content: it is a visual stand-in for a header that is still in the\n * accessibility tree, and putting it in the DOM would say it twice.\n */\n _cellLabel(index: number) {\n const columns = this._defaultColumns();\n const name = columns?.[index];\n return name ? `--bd-cell-label: \"${String(name).replace(/[\"\\\\]/g, \"\")}: \"` : nothing;\n }\n\n /* A native table. It was divs carrying role=\"table\", \"row\", \"columnheader\"\n and \"cell\", which said in ARIA what the elements say for themselves --\n and only for as long as every role stayed in step with the markup, which\n the rowgroup note this replaces records it once did not. The first cell\n of a row names the row, so it is the row's <th>. */\n _renderRow(row: CompatibilityRow) {\n if (this.variant === \"outcome\") {\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--event\" scope=\"row\">${row.event}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--without\" style=${this._cellLabel(1)}>${row.without}</td>\n <td class=\"bd-compattable-cell bd-compattable-cell--with\" style=${this._cellLabel(2)}>${row.with}</td>\n </tr>\n `;\n }\n\n if (this.variant === \"risk\") {\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--category\" scope=\"row\">${row.category}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--riskcoverage\" style=${this._cellLabel(1)}>${row.coverage}</td>\n </tr>\n `;\n }\n\n if (this.variant === \"light\") {\n return html`\n <tr class=\"bd-compattable-lightrow\">\n <th class=\"bd-compattable-lightlabel\" scope=\"row\">${row.label}</th>\n <td class=\"bd-compattable-lightvalue\">${row.value}</td>\n </tr>\n `;\n }\n\n /* notes may be a template of several inline items, which the cell spaced\n as a flex row; a table cell cannot be one, so the content is wrapped */\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--environment\" scope=\"row\">${row.environment}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--coverage\" style=${this._cellLabel(1)}>${row.coverage}</td>\n <td class=\"bd-compattable-cell bd-compattable-cell--notes\" style=${this._cellLabel(2)}><span class=\"bd-compattable-notes\">${row.notes}</span></td>\n </tr>\n `;\n }\n\n render() {\n const columns = this._defaultColumns();\n\n return html`\n <div class=\"bd-ensemble bd-compattable-wrapper\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-compattable-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"large\" class=\"bd-compattable-description\" color=\"muted\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n ${this.variant === \"light\"\n ? html`\n <table\n class=\"bd-compattable-lightgrid\"\n style=\"--bd-compattable-light-columns: ${this.lightColumns};\"\n >\n <tbody class=\"bd-compattable-lightbody\">\n ${this.rows.map((row) => this._renderRow(row))}\n </tbody>\n </table>\n <slot name=\"rows\"></slot>\n `\n : html`\n <div class=\"bd-compattable-table-container\">\n <table class=\"bd-compattable-table\">\n <colgroup>${columns!.map(() => html`<col>`)}</colgroup>\n <thead class=\"bd-compattable-header\">\n <tr>\n ${columns!.map(\n (col) => html`<th class=\"bd-compattable-header-cell\" scope=\"col\">${col}</th>`\n )}\n </tr>\n </thead>\n <tbody class=\"bd-compattable-body\">\n ${this.rows.map((row) => this._renderRow(row))}\n </tbody>\n </table>\n <!-- after the table, inside the card: a slotted element\n cannot become a row of a native table -->\n <slot name=\"rows\"></slot>\n </div>\n `}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-compatibility-table\": CompatibilityTable;\n }\n}"],"mappings":"A,8aAyBA,IACMI,EADN,cACiCC,CAAW,C,8BAIlC,KAAA,MAAA,GAEM,KAAA,YAAA,GAEK,KAAA,QAAA,UAEM,KAAA,WAAA,UAEV,KAAA,aAAA,EAEY,KAAA,QAAA,KAEA,KAAA,KAAA,CAAC,C,QAfZ,KAAA,OAAA,CAACE,EAAaP,CAAqB,C,CAiBnD,iBAAkB,CAKhB,OAJI,KAAK,QAAgB,KAAK,QAC1B,KAAK,UAAY,UAAkB,CAAC,cAAe,sBAAuB,kBAAkB,EAC5F,KAAK,UAAY,OAAe,CAAC,gBAAiB,sBAAsB,EACxE,KAAK,UAAY,QAAgB,KAC9B,CAAC,cAAe,WAAY,OAAO,CAC5C,CAiBA,WAAW,EAAe,CAExB,IAAMQ,EADU,KAAK,gBACR,CAAA,GAAUC,GACvB,OAAOD,EAAO,qBAAqB,OAAOA,CAAI,CAAC,CAAC,QAAQ,SAAU,EAAE,EAAE,KAAOE,CAC/E,CAOA,WAAW,EAAuB,CA+BhC,OA9BI,KAAK,UAAY,UACZ,CAAI;;mFAEkEC,EAAI,MAAM;+EACd,KAAK,WAAW,CAAC,EAAE,GAAGA,EAAI,QAAQ;4EACrC,KAAK,WAAW,CAAC,EAAE,GAAGA,EAAI,KAAK;;QAKnG,KAAK,UAAY,OACZ,CAAI;;sFAEqEA,EAAI,SAAS;oFACf,KAAK,WAAW,CAAC,EAAE,GAAGA,EAAI,SAAS;;QAK/G,KAAK,UAAY,QACZ,CAAI;;8DAE6CA,EAAI,MAAM;kDACtBA,EAAI,MAAM;;QAOjD,CAAI;;uFAEwEA,EAAI,YAAY;8EACzB,KAAK,WAAW,CAAC,EAAE,GAAGA,EAAI,SAAS;2EACtC,KAAK,WAAW,CAAC,EAAE,sCAAsCA,EAAI,MAAM;;KAG5I,CAEA,QAAS,CACP,IAAMC,EAAU,KAAK,gBAAgB,EAErC,MAAO,EAAI;;UAEL,KAAK,MACH,CAAI;;qCAEqB,KAAK,MAAM;;cAGpCF,EAAQ;;UAEV,KAAK,YACH,CAAI;;2CAE2B,KAAK,YAAY;;cAGhDA,EAAQ;;UAEV,KAAK,UAAY,QACf,CAAI;;;yDAGyC,KAAK,aAAa;;;oBAGvD,KAAK,KAAK,IAAK,GAAQ,KAAK,WAAWC,CAAG,CAAC,EAAE;;;;cAKrD,CAAI;;;8BAGcC,EAAS,QAAU,CAAI,OAAO,EAAE;;;wBAGtCA,EAAS,IACR,GAAQ,CAAI,sDAAsDC,EAAI,MACzE,EAAE;;;;sBAIF,KAAK,KAAK,IAAK,GAAQ,KAAK,WAAWF,CAAG,CAAC,EAAE;;;;;;;cAOrD;;KAGZ,CACF,EAjJGV,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,UAAA,IAAA,EAAA,EAExCH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,aAAA,IAAA,EAAA,EAExCH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAV,EAAA,UAAA,eAAA,IAAA,EAAA,EAErDH,EAAA,CAAAa,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAV,EAAA,UAAA,UAAA,IAAA,EAAA,EAExBH,EAAA,CAAAa,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAV,EAAA,UAAA,OAAA,IAAA,EAAA,EAhB1B,EAAAH,EAAA,CAAAc,EAAc,wBAAwB,CAAA,EAAAX,CAAA"}
|
|
1
|
+
{"version":3,"file":"compatibility-table.js","names":["compatibilityTableCSS","_decorate","__decorate","compatibility_table_css_default","APPEARANCES","BACKGROUNDS","ROLE_OF","headsColumn","th","cssString","text","BdCompatibilityTable","LitElement","_args","SlotController","ObserverController","observer","ensembleCSS","adoptStyles","tableCSS","changed","isOneOf","columns","el","tables","table","give","role","group","row","cell","r","c","cells","name","i","words","flatText","has","property","defineElement"],"sources":["../../../../src/components/compatibility-table/compatibility-table.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { adoptStyles } from \"#shared/adopt-styles.ts\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { flatText } from \"#shared/flat-text.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.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 title and description slots. The table\n renders neither now, but 3.x's module registered both, and a page importing\n only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport compatibilityTableCSS, { tableCSS } from \"./compatibility-table.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\nconst APPEARANCES = [\"standard\", \"outcome\", \"risk\", \"light\"] as const;\ntype Appearance = typeof APPEARANCES[number];\n\nconst BACKGROUNDS = [\"none\", \"tint\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\n/* The roles each element of a table has by its tag, written out for the\n engine that drops them once the stacked layout changes the element's\n display (below). */\nconst ROLE_OF: Readonly<Record<string, string>> = {\n table: \"table\",\n thead: \"rowgroup\",\n tbody: \"rowgroup\",\n tfoot: \"rowgroup\",\n tr : \"row\",\n td : \"cell\"\n};\n\n/* A header cell heads its column inside a <thead> or when it says so;\n otherwise it heads its row. */\nconst headsColumn = (th: HTMLTableCellElement) =>\n th.closest(\"thead\") !== null || /^col(group)?$/i.test(th.scope);\n\n/** The text as a CSS string, quotes and backslashes escaped. */\nconst cssString = (text: string) => `\"${text.replace(/[\"\\\\]/g, \"\\\\$&\")}\"`;\n\n/**\n * A compatibility, outcome or risk matrix, or a light grid of label / value\n * pairs, over a native <table> the page writes.\n *\n * <bd-compatibility-table appearance=\"outcome\">\n * <bd-h slot=\"title\" as=\"h2\">The same agent, with and without AI Guardian</bd-h>\n * <bd-p slot=\"description\">How five common agent events play out …</bd-p>\n * <table>\n * <thead><tr><th scope=\"col\">Agent event</th><th scope=\"col\">Without AI Guardian</th><th scope=\"col\">With AI Guardian</th></tr></thead>\n * <tbody><tr><th scope=\"row\">Prompt injection</th><td>Agent may follow the injected instruction</td><td>Flagged or blocked before it acts</td></tr></tbody>\n * </table>\n * </bd-compatibility-table>\n *\n * The table is the page's: its words, its headers and its language, which\n * 3.x built from `columns` and `rows` arrays with English defaults. It is\n * slotted whole into the component's card; its cells are styled by tableCSS,\n * which adoptStyles() puts into the tree the component sits in, because no\n * rule in a shadow root reaches past a slotted element. The appearance picks\n * the columns' shares and inks by position: the row's first cell is its\n * <th scope=\"row\">, and outcome's second and third columns are the without\n * and with.\n *\n * Below md the rows stack into cards and the header row goes. Each cell then\n * shows its column's name in front of its value, which the component copies\n * from the table's own <th scope=\"col\"> onto its host as --bd-col-N-label --\n * a style on its own host, as bd-anchor-nav writes --sticky-top -- and follows\n * as the page edits the header. And it writes each element's own table role\n * on it (table, rowgroup, row, columnheader, rowheader, cell): WebKit drops a\n * table's semantics once an element's display is no longer the table's, and\n * the stacked layout changes all of them, as the light grid always does.\n * Chromium and Firefox keep them, so there the roles say what the tags say.\n * An element the page gave a role of its own keeps it.\n *\n * The page writes the title and picks its level; the component draws it at\n * the page-section h2 role, and the description at body-large in muted ink.\n * Each box is hidden while its slot is empty.\n */\n@defineElement(\"bd-compatibility-table\")\nexport class BdCompatibilityTable extends LitElement {\n static styles = [ensembleCSS, compatibilityTableCSS];\n\n /** The look: standard (environment / coverage / notes), outcome (without and with, in error and success ink), risk (category / coverage), light (label / value pairs in columns, no card). */\n @property({ type: String, reflect: true })\n appearance: Appearance = \"standard\";\n\n /** The ground: none, or tint, the brand wash. */\n @property({ type: String, reflect: true })\n background: Background = \"none\";\n\n /** The light table's own card: border, corners, inset and a lift on hover. */\n @property({ type: Boolean, reflect: true, attribute: \"with-border\" })\n withBorder = false;\n\n /** How many columns the light table's pairs flow into. */\n @property({ type: Number, attribute: \"light-columns\" })\n lightColumns = 2;\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\", \"\"] });\n\n /* The elements this component gave a role, so a header whose scope the\n page changes is given the other one, while a role the page wrote is\n never touched. */\n private _roled = new WeakSet<Element>();\n /* How many --bd-col-N-label properties the host holds, so a column that\n goes takes its label with it. */\n private _labels = 0;\n\n /* Any edit to the table: a header's words, a row added, a cell's scope. The\n roles and the host's style are attributes, so writing them is no mutation\n this hears. A reconnect syncs at once, since nothing reports what changed\n while it was out of the page. */\n _table = new ObserverController(this,\n () => new MutationObserver(() => this._syncTable()),\n observer => {\n observer.observe(this, { childList: true, subtree: true, characterData: true, attributes: true, attributeFilter: [\"scope\"] });\n this._syncTable();\n });\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, \"bd-compatibility-table\", tableCSS);\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"standard\";\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"none\";\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"lightColumns\")) {\n const columns = Number(this.lightColumns);\n if (Number.isInteger(columns) && columns > 0) this.style.setProperty(\"--bd-compattable-light-columns\", String(columns));\n else this.style.removeProperty(\"--bd-compattable-light-columns\");\n }\n }\n\n /* The page's tables: the default slot's. */\n _tables() {\n return [...this.children].filter((el): el is HTMLTableElement => el instanceof HTMLTableElement && !el.slot);\n }\n\n _syncTable() {\n const tables = this._tables();\n for (const table of tables) this._writeRoles(table);\n this._writeLabels(tables[0]);\n }\n\n _writeRoles(table: HTMLTableElement) {\n const give = (el: Element, role: string) => {\n if (el.hasAttribute(\"role\") && !this._roled.has(el)) return;\n this._roled.add(el);\n if (el.getAttribute(\"role\") !== role) el.setAttribute(\"role\", role);\n };\n give(table, ROLE_OF.table);\n for (const group of [table.tHead, ...table.tBodies, table.tFoot]) if (group) give(group, ROLE_OF[group.localName]);\n for (const row of table.rows) {\n give(row, ROLE_OF.tr);\n for (const cell of row.cells) {\n give(cell, cell.localName === \"th\"\n ? headsColumn(cell) ? \"columnheader\" : \"rowheader\"\n : ROLE_OF.td);\n }\n }\n }\n\n /* Column N's name is the words of the N-th cell of the first row that\n holds a column header; a cell there that heads no column, or has no\n words, names nothing. */\n _writeLabels(table: HTMLTableElement | undefined) {\n const row = table ? [...table.rows].find(r => [...r.cells].some(c => c.localName === \"th\" && headsColumn(c))) : undefined;\n const cells = row ? [...row.cells] : [];\n cells.forEach((cell, i) => {\n const name = `--bd-col-${i + 1}-label`;\n const words = cell.localName === \"th\" && headsColumn(cell) ? flatText(cell) : \"\";\n if (words) this.style.setProperty(name, cssString(words));\n else this.style.removeProperty(name);\n });\n for (let i = cells.length; i < this._labels; i++) this.style.removeProperty(`--bd-col-${i + 1}-label`);\n this._labels = cells.length;\n }\n\n render() {\n const has = (name: \"title\" | \"description\" | \"\") => this._slots.has(name);\n return html`\n <div class=\"bd-ensemble bd-compattable-wrapper\">\n <div class=\"bd-compattable-title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-compattable-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-compattable-table-container\" ?hidden=${!has(\"\")}><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-compatibility-table\": BdCompatibilityTable;\n }\n}\n"],"mappings":"A,yrBAkBA,IAAMI,EAAc,CAAC,WAAY,UAAW,OAAQ,OAAO,EAGrDC,EAAc,CAAC,OAAQ,MAAM,EAM7BC,EAA4C,CAChD,MAAO,QACP,MAAO,WACP,MAAO,WACP,MAAO,WACP,GAAO,MACP,GAAO,MACT,EAIMC,EAAe,GACnBC,EAAG,QAAQ,OAAO,IAAM,MAAQ,iBAAiB,KAAKA,EAAG,KAAK,EAG1DC,EAAa,GAAiB,IAAIC,EAAK,QAAQ,SAAU,MAAM,EAAE,GAwC1DC,EAAN,cAAmCC,CAAW,C,8BAK1B,KAAA,WAAA,WAIA,KAAA,WAAA,OAIZ,KAAA,WAAA,GAIE,KAAA,aAAA,EAEN,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,EAAE,CAAE,CAAC,EAKxD,KAAA,uBAAA,IAAI,QAGH,KAAA,QAAA,EAMT,KAAA,OAAA,IAAIC,EAAmB,SACxB,IAAI,qBAAuB,KAAK,WAAW,CAAC,EAClD,GAAY,CACVC,EAAS,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,cAAe,GAAM,WAAY,GAAM,gBAAiB,CAAC,OAAO,CAAE,CAAC,EAC5H,KAAK,WAAW,CAClB,CAAC,C,QArCa,KAAA,OAAA,CAACC,EAAajB,CAAqB,C,CAuCnD,mBAAoB,CAClB,MAAM,kBAAkB,EACxBkB,EAAY,KAAM,yBAA0BC,CAAQ,CACtD,CAEA,WAAW,EAA+B,CACpCC,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQjB,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,YACvFgB,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQhB,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,OAC7F,CAEA,QAAQ,EAA+B,CACrC,GAAIe,EAAQ,IAAI,cAAc,EAAG,CAC/B,IAAME,EAAU,OAAO,KAAK,YAAY,EACpC,OAAO,UAAUA,CAAO,GAAKA,EAAU,EAAG,KAAK,MAAM,YAAY,iCAAkC,OAAOA,CAAO,CAAC,EACjH,KAAK,MAAM,eAAe,gCAAgC,CACjE,CACF,CAGA,SAAU,CACR,MAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,OAAQ,GAA+BC,aAAc,kBAAoB,CAACA,EAAG,IAAI,CAC7G,CAEA,YAAa,CACX,IAAMC,EAAS,KAAK,QAAQ,EAC5B,IAAK,IAAMC,KAASD,EAAQ,KAAK,YAAYC,CAAK,EAClD,KAAK,aAAaD,EAAO,EAAE,CAC7B,CAEA,YAAY,EAAyB,CACnC,IAAME,GAAQ,EAAa,IAAiB,EACtC,GAAG,aAAa,MAAM,GAAM,KAAK,OAAO,IAAIH,CAAE,KAClD,KAAK,OAAO,IAAIA,CAAE,EACdA,EAAG,aAAa,MAAM,IAAMI,GAAMJ,EAAG,aAAa,OAAQI,CAAI,EACpE,EACAD,EAAKD,EAAOnB,EAAQ,KAAK,EACzB,IAAK,IAAMsB,IAAS,CAACH,EAAM,MAAO,GAAGA,EAAM,QAASA,EAAM,KAAK,EAAOG,GAAOF,EAAKE,EAAOtB,EAAQsB,EAAM,UAAU,EACjH,IAAK,IAAMC,KAAOJ,EAAM,KAAM,CAC5BC,EAAKG,EAAKvB,EAAQ,EAAE,EACpB,IAAK,IAAMwB,KAAQD,EAAI,MACrBH,EAAKI,EAAMA,EAAK,YAAc,KAC1BvB,EAAYuB,CAAI,EAAI,eAAiB,YACrCxB,EAAQ,EAAE,CAElB,CACF,CAKA,aAAa,EAAqC,CAChD,IAAMuB,EAAMJ,EAAQ,CAAC,GAAGA,EAAM,IAAI,CAAC,CAAC,KAAK,GAAK,CAAC,GAAGM,EAAE,KAAK,CAAC,CAAC,KAAK,GAAKC,EAAE,YAAc,MAAQzB,EAAYyB,CAAC,CAAC,CAAC,EAAI,IAAA,GAC1GC,EAAQJ,EAAM,CAAC,GAAGA,EAAI,KAAK,EAAI,CAAC,EACtCI,EAAM,SAAS,EAAM,IAAM,CACzB,IAAMC,EAAO,YAAYC,EAAI,EAAE,QACzBC,EAAQN,EAAK,YAAc,MAAQvB,EAAYuB,CAAI,EAAIO,EAASP,CAAI,EAAI,GAC1EM,EAAO,KAAK,MAAM,YAAYF,EAAMzB,EAAU2B,CAAK,CAAC,EACnD,KAAK,MAAM,eAAeF,CAAI,CACrC,CAAC,EACD,IAAK,IAAIC,EAAIF,EAAM,OAAQE,EAAI,KAAK,QAAS,IAAK,KAAK,MAAM,eAAe,YAAYA,EAAI,EAAE,OAAO,EACrG,KAAK,QAAUF,EAAM,MACvB,CAEA,QAAS,CACP,IAAMK,EAAO,GAAuC,KAAK,OAAO,IAAIJ,CAAI,EACxE,MAAO,EAAI;;oDAEqC,CAACI,EAAI,OAAO,EAAE;0DACR,CAACA,EAAI,aAAa,EAAE;8DAChB,CAACA,EAAI,EAAE,EAAE;;KAGrE,CACF,EA7GGrC,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAA5B,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCV,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAA5B,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCV,EAAA,CAAAsC,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,aAAc,CAAC,CAAA,EAAA5B,EAAA,UAAA,aAAA,IAAA,EAAA,EAInEV,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAA5B,EAAA,UAAA,eAAA,IAAA,EAAA,EAjBvD,EAAAV,EAAA,CAAAuC,EAAc,wBAAwB,CAAA,EAAA7B,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);background:
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{isolation:isolate;font-family:var(--typography-fontFamily-sans);background:linear-gradient(160deg, var(--color-surface-brand) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);display:block;position:relative}:host:before{content:"";z-index:var(--z-below);pointer-events:none;background:radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%);position:absolute;inset:0}.bd-ctabanner-container{padding-block:var(--spacing-64);box-sizing:border-box;text-align:center;align-items:center;gap:var(--spacing-16);flex-direction:column;display:flex}.bd-ctabanner-footer{margin-top:var(--spacing-24);align-items:center;gap:var(--spacing-8);text-align:center;flex-direction:column;display:flex}.bd-ctabanner-title[hidden],.bd-ctabanner-description[hidden],.bd-ctabanner-cta[hidden],.bd-ctabanner-caption[hidden],.bd-ctabanner-footer[hidden]{display:none}.bd-ctabanner-title{max-width:800px}::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);margin:0}.bd-ctabanner-description{margin-bottom:var(--spacing-16);max-width:640px}::slotted(bd-p[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);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill)}.bd-ctabanner-cta{justify-content:center;gap:var(--spacing-16);flex-wrap:wrap;display:flex}.bd-ctabanner-caption{margin:var(--spacing-8) 0 0;font-family:var(--typography-fontFamily-mono);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);color:var(--color-brand-on-fill)}@media (width<576px){.bd-ctabanner-container{padding-block:var(--spacing-48)}.bd-ctabanner-cta{flex-direction:column;width:100%}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=cta-banner.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta-banner.css.js","names":["cta_banner_css_default"],"sources":["../../../../src/components/cta-banner/cta-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n /*
|
|
1
|
+
{"version":3,"file":"cta-banner.css.js","names":["cta_banner_css_default"],"sources":["../../../../src/components/cta-banner/cta-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n /* the light spot below is drawn behind the copy, inside this box */\n position: relative;\n isolation: isolate;\n font-family: var(--typography-fontFamily-sans);\n /* The band runs full-bleed on the host; the column inside it is\n bd-ensemble. Its ground is the brand fill, --color-surface-brand,\n deepening along the ramp: the ground --color-brand-on-fill is held to,\n and the same in both themes, as a brand band is. */\n background: linear-gradient(160deg, var(--color-surface-brand) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);\n }\n\n /* The light spot at the band's top right: decoration over the ground,\n under the copy. It was the first layer of the host's background, so a\n reading of the band's ground from its first stop -- the theme and brand\n sweeps' -- took brand-400 for the ground under every word, where the\n copy never sits: the spot is centred above the band and mostly outside\n it (Foundations/Text on a surface). */\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: var(--z-below);\n pointer-events: none;\n background: radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%);\n }\n\n .bd-ctabanner-container {\n padding-block: var(--spacing-64);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n gap: var(--spacing-16);\n }\n .bd-ctabanner-footer {\n margin-top: var(--spacing-24);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n text-align: center;\n }\n\n /* Each part's box is left out while its slot is empty (cta-banner.ts). The\n footer's used to be hidden by :not(:has(*)), which its own <slot> always\n defeated, so an empty footer kept its 24 above it. */\n .bd-ctabanner-title[hidden],\n .bd-ctabanner-description[hidden],\n .bd-ctabanner-cta[hidden],\n .bd-ctabanner-caption[hidden],\n .bd-ctabanner-footer[hidden] {\n display: none;\n }\n\n .bd-ctabanner-title {\n max-width: 800px;\n }\n\n /* The page's heading, at the page-section role whatever level it chose,\n in the band's ink -- what as=\"h2\" color=\"on-brand\" on the banner's own\n bd-h used to say. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n margin: 0;\n }\n\n .bd-ctabanner-description {\n margin-bottom: var(--spacing-16);\n max-width: 640px;\n }\n\n /* Solid on-brand ink, the title's. It was 85% white, translucent so the\n gradient showed through, and recorded as 4.67:1. Measured from\n screenshots of the Default story on 2026-10-29 -- text hidden, the ground\n under the glyph band sampled, the ink composited -- it was 4.07:1 at 375,\n 4.24 at 768 and 4.41 at 1024, at 18px/400 against a 4.5 bar: on a narrow\n screen it wraps up into the gradient's light spot. Nothing under 93%\n white clears that, so it is solid: worst point rgb(18,106,226) at 375,\n 5.02:1.\n .\n bd-p's flow margin is left on, as it was on the banner's own bd-p: with\n the box's 16 and the gap it holds the buttons and the caption where the\n caption's contrast was measured (below). */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n }\n\n .bd-ctabanner-cta {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-16);\n }\n\n /* The caption is text, so the page writes the words and this box sets\n them: body-small in mono, what <bd-p appearance=\"small\"\n font-family=\"mono\"> drew. */\n .bd-ctabanner-caption {\n margin: var(--spacing-8) 0 0;\n font-family: var(--typography-fontFamily-mono);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n /* The band's ink, solid, as the description's became. It was that ink\n at 65%, no role, sampled from screenshots where it sat -- 4.92:1 at\n its worst, rgb(0,63,158) at 1600, on 2026-11-04 -- and re-measured\n each time the band's height or copy moved it. Against the band's own\n fill, the ground --color-brand-on-fill is held to under every theme,\n 65% is 2.7:1. Solid, it is that pair's 4.5:1 or more wherever the\n caption lands, under a partner's dark ink as under Bitdefender's white\n (9.5:1 at the worst point above). */\n color: var(--color-brand-on-fill);\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-ctabanner-container {\n padding-block: var(--spacing-48);\n }\n\n .bd-ctabanner-cta {\n flex-direction: column;\n width: 100%;\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,o5E"}
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
import "../p/p.js";
|
|
6
|
+
/**
|
|
7
|
+
* A full-width closing call to action on a brand gradient: a title, a
|
|
8
|
+
* supporting line, one or two buttons, and an optional caption underneath.
|
|
9
|
+
*
|
|
10
|
+
* Every word is the page's (ADR 0003): `<bd-h slot="title" as="h2">`,
|
|
11
|
+
* `<bd-p slot="description">`, `<bd-button slot="actions">` (one or two, in
|
|
12
|
+
* source order) and `<span slot="caption">`. The page picks the title's
|
|
13
|
+
* level; the banner sets the title's size (heading-h2), the description's
|
|
14
|
+
* (body-large) and the brand band's ink on both. Each part's box is left out
|
|
15
|
+
* while its slot is empty.
|
|
16
|
+
*/
|
|
17
|
+
export declare class BdCtaBanner extends LitElement {
|
|
6
18
|
static styles: import("lit").CSSResult[];
|
|
7
|
-
|
|
8
|
-
description: string;
|
|
9
|
-
caption: string;
|
|
19
|
+
_slots: SlotController<"title" | "description" | "caption" | "actions" | "footer">;
|
|
10
20
|
render(): import("lit-html").TemplateResult<1>;
|
|
11
21
|
}
|
|
12
22
|
declare global {
|
|
13
23
|
interface HTMLElementTagNameMap {
|
|
14
|
-
"bd-cta-banner":
|
|
24
|
+
"bd-cta-banner": BdCtaBanner;
|
|
15
25
|
}
|
|
16
26
|
}
|
|
17
|
-
export {};
|
|
@@ -1,34 +1,14 @@
|
|
|
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 i from"./cta-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`,`actions`,`caption`,`footer`]})}static{this.styles=[r,i]}render(){let e=e=>this._slots.has(e);return o`
|
|
2
2
|
<div class="bd-ensemble bd-ctabanner-container">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`:o}
|
|
3
|
+
<div class="bd-ctabanner-title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
4
|
+
<div class="bd-ctabanner-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
5
|
+
<div class="bd-ctabanner-cta" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
|
|
6
|
+
<div class="bd-ctabanner-caption" ?hidden=${!e(`caption`)}><slot name="caption"></slot></div>
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
<bd-p variant="large" color="on-brand" class="bd-ctabanner-description">
|
|
11
|
-
<slot name="description">${this.description}</slot>
|
|
12
|
-
</bd-p>
|
|
13
|
-
`:o}
|
|
14
|
-
|
|
15
|
-
<div class="bd-ctabanner-cta">
|
|
16
|
-
<slot name="primary-button"></slot>
|
|
17
|
-
<slot name="secondary-button"></slot>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
${this.caption?a`
|
|
21
|
-
<bd-p variant="small" font-family="mono" class="bd-ctabanner-caption">
|
|
22
|
-
<slot name="caption">${this.caption}</slot>
|
|
23
|
-
</bd-p>
|
|
24
|
-
`:o}
|
|
25
|
-
|
|
26
|
-
<!-- Freeform slot for extra content below the caption — contact
|
|
8
|
+
<!-- Freeform slot for extra content below the caption -- contact
|
|
27
9
|
info, legal disclaimers, links, etc. Empty by default,
|
|
28
10
|
collapses to nothing when unused. -->
|
|
29
|
-
<div class="bd-ctabanner-footer">
|
|
30
|
-
<slot name="footer"></slot>
|
|
31
|
-
</div>
|
|
11
|
+
<div class="bd-ctabanner-footer" ?hidden=${!e(`footer`)}><slot name="footer"></slot></div>
|
|
32
12
|
</div>
|
|
33
|
-
`}};
|
|
13
|
+
`}};s=t([e(`bd-cta-banner`)],s);export{s as BdCtaBanner};
|
|
34
14
|
//# sourceMappingURL=cta-banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta-banner.js","names":["ctaBannerCSS","_decorate","__decorate","cta_banner_css_default","
|
|
1
|
+
{"version":3,"file":"cta-banner.js","names":["ctaBannerCSS","_decorate","__decorate","cta_banner_css_default","BdCtaBanner","LitElement","_args","SlotController","ensembleCSS","has","name","defineElement"],"sources":["../../../../src/components/cta-banner/cta-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 title and description. It\n renders neither now, but 3.x's module registered both, and a page\n importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport ctaBannerCSS from \"./cta-banner.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * A full-width closing call to action on a brand gradient: a title, a\n * supporting line, one or two buttons, and an optional caption underneath.\n *\n * Every word is the page's (ADR 0003): `<bd-h slot=\"title\" as=\"h2\">`,\n * `<bd-p slot=\"description\">`, `<bd-button slot=\"actions\">` (one or two, in\n * source order) and `<span slot=\"caption\">`. The page picks the title's\n * level; the banner sets the title's size (heading-h2), the description's\n * (body-large) and the brand band's ink on both. Each part's box is left out\n * while its slot is empty.\n */\n@defineElement(\"bd-cta-banner\")\nexport class BdCtaBanner extends LitElement {\n static styles = [ensembleCSS, ctaBannerCSS];\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\", \"actions\", \"caption\", \"footer\"] });\n\n render() {\n const has = (name: \"title\" | \"description\" | \"actions\" | \"caption\" | \"footer\") => this._slots.has(name);\n return html`\n <div class=\"bd-ensemble bd-ctabanner-container\">\n <div class=\"bd-ctabanner-title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-ctabanner-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-ctabanner-cta\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n <div class=\"bd-ctabanner-caption\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></div>\n\n <!-- Freeform slot for extra content below the caption -- contact\n info, legal disclaimers, links, etc. Empty by default,\n collapses to nothing when unused. -->\n <div class=\"bd-ctabanner-footer\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-cta-banner\": BdCtaBanner;\n }\n}\n"],"mappings":"A,6YAyBO,IAAMI,EAAN,cAA0BC,CAAW,C,8BAGjC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,UAAW,UAAW,QAAQ,CAAE,CAAC,C,QAFrF,KAAA,OAAA,CAACC,EAAaR,CAAY,C,CAI1C,QAAS,CACP,IAAMS,EAAO,GAAqE,KAAK,OAAO,IAAIC,CAAI,EACtG,MAAO,EAAI;;kDAEmC,CAACD,EAAI,OAAO,EAAE;wDACR,CAACA,EAAI,aAAa,EAAE;gDAC5B,CAACA,EAAI,SAAS,EAAE;oDACZ,CAACA,EAAI,SAAS,EAAE;;;;;mDAKjB,CAACA,EAAI,QAAQ,EAAE;;KAGhE,CACF,EAtBC,EAAAR,EAAA,CAAAU,EAAc,eAAe,CAAA,EAAAP,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`.bd-dialog{color:inherit;border:none}.bd-dialog [hidden]{display:none}.bd-dialog::backdrop{background:color-mix(in srgb, var(--color-neutral-1000) 50%, transparent);backdrop-filter:blur(var(--spacing-12));overscroll-behavior:contain;overflow:hidden}.bd-dialog:modal{overscroll-behavior:contain}.bd-dialog,.bd-dialog::backdrop{opacity:0;transition-property:opacity,transform,display,overlay;transition-duration:var(--transition-duration-slow);transition-timing-function:var(--transition-easing-ease);transition-behavior:allow-discrete}.bd-dialog{transform:scale(.9)}.bd-dialog[open],.bd-dialog[open]::backdrop{opacity:1}.bd-dialog[open]{transform:scale(1)}@starting-style{.bd-dialog[open],.bd-dialog[open]::backdrop{opacity:0}.bd-dialog[open]{transform:scale(.9)}}.bd-dialog{background:var(--color-surface-default);padding:var(--spacing-32);border-radius:var(--shape-radius-xl);max-width:500px;max-height:calc(100dvh - var(--spacing-128));text-align:start;box-shadow:var(--shadow-md);font-family:var(--typography-fontFamily-sans);overflow-y:auto}.header{align-items:flex-start;gap:var(--spacing-16);margin-bottom:var(--spacing-16);display:flex}.heading{align-items:flex-start;gap:var(--spacing-8);flex-direction:column;flex:1;min-width:0;display:flex}::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)}.close{padding:var(--spacing-12);border-radius:var(--radius-full);color:var(--color-text-muted);line-height:var(--typography-lineHeight-none);cursor:pointer;background:0 0;border:none;flex:none;justify-content:center;align-items:center;margin-block-start:calc(-1 * var(--spacing-12));margin-inline-end:calc(-1 * var(--spacing-12));display:flex}.close:hover{background:var(--color-surface-muted);color:var(--color-text-primary)}.close:active{background:var(--color-surface-pressed);color:var(--color-text-primary)}.close:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}.body{gap:var(--spacing-16);--bd-paragraph-margin-bottom:0;flex-direction:column;display:flex}.footer{justify-content:flex-end;align-items:center;gap:var(--spacing-12);margin-top:var(--spacing-32);flex-wrap:wrap;display:flex}@media (prefers-reduced-motion:reduce){.bd-dialog,.bd-dialog::backdrop{transition:none;transform:none}}@media (width<768px){.bd-dialog{max-width:90%;padding:var(--spacing-24)}}@media (width<=480px){.bd-dialog{padding:var(--spacing-32)}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=dialog.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.css.js","names":["dialog_css_default"],"sources":["../../../../src/components/dialog/dialog.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole } from \"#shared/token-scales.ts\";\n\nexport default css`\n /* The panel is the <dialog> itself. Its user-agent border and colour are\n reset so the tokens below are all there is; the browser still centres it\n and puts it in the top layer, which is why there is no z-index here. */\n .bd-dialog {\n border: none;\n color: inherit;\n }\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .bd-dialog [hidden] {\n display: none;\n }\n\n /* The scrim. ::backdrop reads the tokens because it inherits from its\n dialog. */\n .bd-dialog::backdrop {\n /* Expressed as a mix over the palette rather than a raw rgba, which is the\n house pattern -- --color-border-container-inverse and spinner's two\n private aliases are written the same way. A raw rgba(0,0,0,0.5) is a\n black no theme can reach; this one follows --color-neutral-1000.\n Verified pixel-identical to the rgba it replaces.\n .\n no role: a page scrim has no role, and with one consumer it should not\n have one yet. If a second component ever needs to darken the page behind\n itself, that is the point to name it. */\n background: color-mix(in srgb, var(--color-neutral-1000) 50%, transparent);\n backdrop-filter: blur(var(--spacing-12));\n /* Scrolling over the scrim, or past the end of a tall panel, no longer\n scrolls the page behind it. overscroll-behavior is Widely available;\n holding back a scroll that is not a scroll container's is newer, and\n where it is missing the page scrolls behind, as it always has. */\n overflow: hidden;\n overscroll-behavior: contain;\n }\n\n .bd-dialog:modal {\n overscroll-behavior: contain;\n }\n\n /* The panel scales and fades in and the scrim fades. Animating into and out\n of the top layer -- @starting-style, and display transitioned with\n allow-discrete -- is Baseline Newly available, so it needs no guard.\n overlay is Limited availability; a browser without it takes the panel\n out of the top layer as the fade starts rather than when it ends, and the\n fade still runs. */\n .bd-dialog,\n .bd-dialog::backdrop {\n opacity: 0;\n transition-property: opacity, transform, display, overlay;\n transition-duration: var(--transition-duration-slow);\n transition-timing-function: var(--transition-easing-ease);\n transition-behavior: allow-discrete;\n }\n\n .bd-dialog {\n transform: scale(0.9);\n }\n\n .bd-dialog[open],\n .bd-dialog[open]::backdrop {\n opacity: 1;\n }\n\n .bd-dialog[open] {\n transform: scale(1);\n }\n\n @starting-style {\n .bd-dialog[open],\n .bd-dialog[open]::backdrop {\n opacity: 0;\n }\n\n .bd-dialog[open] {\n transform: scale(0.9);\n }\n }\n\n /* max-height and overflow, because without them the bottom of a tall dialog\n is simply gone. Measured on Components/Modal \"Long Modal Text\": the panel\n is 506px tall at every viewport height, so at 500px and at 360px its\n bottom edge -- and the Close button on it -- sat past the viewport with\n nothing scrollable anywhere. The panel could not scroll (overflow\n visible, no max-height) and neither could the page (the scrim is\n position: fixed at 100% height, so the document never grows), which left\n the only control in the dialog unreachable by any means.\n\n --spacing-128 rather than --spacing-64, and the arithmetic is the reason.\n This box is content-box, so the cap applies to the content and the 32px\n padding is added outside it: subtracting 64 produced a panel of exactly\n the viewport height at every constrained height -- 436 + 64 = 500 at a\n 500px viewport, 296 + 64 = 360 at 360 -- with no scrim band at all.\n 128 is that 64 of padding plus the 64 of scrim the band wants, which\n lands the panel 32px from the top and bottom edges.\n\n box-sizing: border-box would express the same thing more directly and is\n deliberately not used here: it also makes max-width mean the border box,\n which took the panel from 564px wide to 500 and rewrapped its text a line\n taller. That is a visible change to an axis this fix has no business\n touching, so the arithmetic goes in the calc instead. */\n .bd-dialog {\n /* --color-surface-default, the role, not --color-neutral-0, the primitive\n it resolves to. Same value; the category is the point, and CLAUDE.md's\n \"same primitive value is not same semantic meaning\" section exists for\n exactly this. */\n background: var(--color-surface-default);\n /* 3.x wrote 2em and 1.5em, 32 and 24 at the dialog's 16px; the steps say\n the same distances on the scale. */\n padding: var(--spacing-32);\n border-radius: var(--shape-radius-xl);\n max-width: 500px;\n max-height: calc(100dvh - var(--spacing-128));\n overflow-y: auto;\n text-align: start;\n /* --shadow-md, the role this package already uses for a floating overlay\n surface: bd-tooltip's bubble and bd-anchor-nav's dropdown panel both name\n it, and this panel is the third of the same kind. A drop shadow is a\n fixed optical depth, not a distance that should scale with text, which\n is why it is not built from the spacing scale. */\n box-shadow: var(--shadow-md);\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* === HEADER ===\n The icon above the title, and the close button at the row's end. 16 under\n it is the title's distance from the body, the padding 3.x put under its\n own bd-h. */\n .header {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-16);\n margin-bottom: var(--spacing-16);\n }\n\n .heading {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-8);\n }\n\n /* The dialog's title: the h2 role 3.x's own bd-h rendered, whatever level the\n page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n }\n\n /* The close button: an icon in a 44px circle, the md icon-only button's\n geometry (12 + 20 + 12), pulled into the panel's padding by its own inset\n so the glyph lines up with the content's edge. It is a <button> the\n component renders, not a slotted bd-button, because the element owns the\n close and the button carries autofocus, which a custom element's inner\n control would not receive. */\n .close {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--spacing-12);\n margin-block-start: calc(-1 * var(--spacing-12));\n margin-inline-end: calc(-1 * var(--spacing-12));\n border: none;\n border-radius: var(--radius-full);\n background: transparent;\n color: var(--color-text-muted);\n line-height: var(--typography-lineHeight-none);\n cursor: pointer;\n }\n\n .close:hover {\n background: var(--color-surface-muted);\n color: var(--color-text-primary);\n }\n\n .close:active {\n background: var(--color-surface-pressed);\n color: var(--color-text-primary);\n }\n\n .close:focus-visible {\n /* the one focus ring — see Foundations/Focus */\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 }\n\n /* === BODY ===\n The page's atoms, 16 apart. The gap replaces the paragraphs' own flow\n margin, which would otherwise leave 16 under the last one on top of the\n panel's padding. */\n .body {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* === FOOTER ===\n The page's actions at the row's end, 32 under the body: the distance 3.x\n left between its text and its Close button. */\n .footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n gap: var(--spacing-12);\n margin-top: var(--spacing-32);\n }\n\n /* The panel scales and fades in. Measured before this: with\n prefers-reduced-motion: reduce the transition still reported\n 0.3s on opacity and transform, so a reader who asked for less motion got\n the panel zooming in anyway. Every other animated component in this\n package honours the query -- see the tooltip two files over. */\n @media (prefers-reduced-motion: reduce) {\n .bd-dialog,\n .bd-dialog::backdrop {\n transition: none;\n transform: none;\n }\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-dialog {\n max-width: 90%;\n padding: var(--spacing-24);\n }\n }\n\n @media (max-width: 480px) {\n .bd-dialog {\n padding: var(--spacing-32);\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,gtF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../shared/events.js";
|
|
4
|
+
import "../../tokens/tokens.js";
|
|
5
|
+
import "../icons/close.js";
|
|
6
|
+
import "../h/h.js";
|
|
7
|
+
import "../img/img.js";
|
|
8
|
+
import "../p/p.js";
|
|
9
|
+
/**
|
|
10
|
+
* A modal dialog: a scrim, a centred panel with an icon, a title, a body and
|
|
11
|
+
* a footer, and its own close button.
|
|
12
|
+
*
|
|
13
|
+
* <bd-dialog close-label="Close">
|
|
14
|
+
* <bd-img slot="icon" src="/icons/vpn.png" alt="" width="96" height="96"></bd-img>
|
|
15
|
+
* <bd-h slot="title" as="h2">VPN Protection</bd-h>
|
|
16
|
+
* <bd-p>Our VPN encrypts your internet traffic.</bd-p>
|
|
17
|
+
* <bd-button slot="footer" data-dialog="close">Got it</bd-button>
|
|
18
|
+
* </bd-dialog>
|
|
19
|
+
*
|
|
20
|
+
* It is a native <dialog> opened with showModal(), which is what makes it
|
|
21
|
+
* modal rather than a panel drawn over the page: the dialog role and modal
|
|
22
|
+
* state, a page made inert behind it, focus moved in on open and returned to
|
|
23
|
+
* whatever opened it on close, Esc, and the top layer, so no z-index decides
|
|
24
|
+
* whether it is on top.
|
|
25
|
+
*
|
|
26
|
+
* THE DIALOG OWNS ITS STATE. Esc, a click on the backdrop, its close button
|
|
27
|
+
* and a click on any element the page marks `data-dialog="close"` (Web
|
|
28
|
+
* Awesome's convention) each send a cancelable bd-hide; unless a listener
|
|
29
|
+
* prevents it, `open` goes false. A prevented one leaves the dialog open, and
|
|
30
|
+
* modal: a browser that refuses to let a repeated Esc be cancelled closes the
|
|
31
|
+
* dialog itself, and it is shown again. The page can set `open` itself too,
|
|
32
|
+
* either way, and then bd-show or bd-hide reports it -- not cancelable, since
|
|
33
|
+
* the page has already decided. bd-after-show and bd-after-hide follow once
|
|
34
|
+
* the panel's transition has run, at once under reduced motion (N8). 3.x
|
|
35
|
+
* closed nothing itself: it sent close-modal and waited for the page.
|
|
36
|
+
*
|
|
37
|
+
* NAMES FOLLOW THE TEXT. The dialog is named by its title through
|
|
38
|
+
* aria-labelledby on the box around the title slot, and described by its
|
|
39
|
+
* body through aria-describedby on the box around the default slot, each
|
|
40
|
+
* written only while that slot holds something. The ids are fixed, as 3.x's
|
|
41
|
+
* modal-title and modal-description were: an id reference resolves inside the
|
|
42
|
+
* shadow root it is written in, so two dialogs on a page never meet. Accname
|
|
43
|
+
* walks the flat tree from the box through the slot into the page's bd-h,
|
|
44
|
+
* also when an enclosing component forwards its own slot into the title
|
|
45
|
+
* (bd-carousel-item does). The close button is an icon with no
|
|
46
|
+
* words, named by `close-label`, which has no default.
|
|
47
|
+
*/
|
|
48
|
+
export declare class BdDialog extends LitElement {
|
|
49
|
+
static styles: import("lit").CSSResult[];
|
|
50
|
+
/** Whether the dialog is open. Reflected. The dialog sets it false itself when a close is not prevented. */
|
|
51
|
+
open: boolean;
|
|
52
|
+
/** The accessible name of the dialog's own close button, an icon with no words. No default. */
|
|
53
|
+
closeLabel: string;
|
|
54
|
+
_slots: SlotController<"" | "title" | "icon" | "footer">;
|
|
55
|
+
private _shown;
|
|
56
|
+
private _hideSent;
|
|
57
|
+
private _pressedOutside;
|
|
58
|
+
get _dialog(): HTMLDialogElement | null;
|
|
59
|
+
_requestClose(): void;
|
|
60
|
+
_onCancel(e: Event): void;
|
|
61
|
+
_onDialogClose(): void;
|
|
62
|
+
_onClick(e: MouseEvent): void;
|
|
63
|
+
_outside(e: PointerEvent): boolean;
|
|
64
|
+
_onPointerDown(e: PointerEvent): void;
|
|
65
|
+
_onPointerUp(e: PointerEvent): void;
|
|
66
|
+
connectedCallback(): void;
|
|
67
|
+
updated(): void;
|
|
68
|
+
_sync(): void;
|
|
69
|
+
_afterTransition(shown: boolean): Promise<void>;
|
|
70
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
71
|
+
}
|
|
72
|
+
declare global {
|
|
73
|
+
interface HTMLElementTagNameMap {
|
|
74
|
+
"bd-dialog": BdDialog;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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"../icons/close.js";import"../img/img.js";import r from"./dialog.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=`closedBy`in HTMLDialogElement.prototype,l=class extends i{constructor(...e){super(...e),this.open=!1,this.closeLabel=``,this._slots=new n(this,{slots:[`icon`,`title`,``,`footer`]}),this._shown=!1,this._hideSent=!1,this._pressedOutside=!1}static{this.styles=[r]}get _dialog(){return this.renderRoot?.querySelector(`dialog`)??null}_requestClose(){if(!this.open)return;let e=new CustomEvent(`bd-hide`,{bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e)?(this._hideSent=!0,this.open=!1):this._sync()}_onCancel(e){e.cancelable&&(e.preventDefault(),this._requestClose())}_onDialogClose(){this.open&&!this._dialog?.open&&this._requestClose()}_onClick(e){for(let t of e.composedPath()){if(t===this._dialog||t instanceof HTMLDialogElement)return;if(t instanceof Element&&t.matches(`[data-dialog="close"]`)){this._requestClose();return}}}_outside(e){let t=this._dialog.getBoundingClientRect();return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}_onPointerDown(e){this._pressedOutside=!c&&e.target===this._dialog&&this._outside(e)}_onPointerUp(e){let t=this._pressedOutside&&e.target===this._dialog&&this._outside(e);this._pressedOutside=!1,t&&this._requestClose()}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._sync()}updated(){this._sync()}_sync(){let e=this._dialog;if(!e?.isConnected)return;if(this.open){let t=!this._shown;t&&(this._shown=!0,this.dispatchEvent(new CustomEvent(`bd-show`,{bubbles:!0,composed:!0}))),e.matches(`:modal`)||(e.open&&e.close(),e.showModal()),t&&this._afterTransition(!0);return}let t=this._shown;this._shown=!1,t&&!this._hideSent&&this.dispatchEvent(new CustomEvent(`bd-hide`,{bubbles:!0,composed:!0})),this._hideSent=!1,e.open&&e.close(),t&&this._afterTransition(!1)}async _afterTransition(e){let t=this._dialog?.getAnimations({subtree:!0})??[];await Promise.allSettled(t.map(e=>e.finished)),this._shown===e&&(e?this.dispatchEvent(new CustomEvent(`bd-after-show`,{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent(`bd-after-hide`,{bubbles:!0,composed:!0})))}render(){let e=e=>this._slots.has(e);return a`
|
|
2
|
+
<dialog
|
|
3
|
+
class="bd-dialog"
|
|
4
|
+
closedby="any"
|
|
5
|
+
aria-labelledby=${e(`title`)?`title`:o}
|
|
6
|
+
aria-describedby=${e(``)?`body`:o}
|
|
7
|
+
@cancel=${this._onCancel}
|
|
8
|
+
@close=${this._onDialogClose}
|
|
9
|
+
@click=${this._onClick}
|
|
10
|
+
@pointerdown=${this._onPointerDown}
|
|
11
|
+
@pointerup=${this._onPointerUp}
|
|
12
|
+
>
|
|
13
|
+
<div class="header">
|
|
14
|
+
<div class="heading" ?hidden=${!e(`icon`)&&!e(`title`)}>
|
|
15
|
+
<div class="icon" ?hidden=${!e(`icon`)}><slot name="icon"></slot></div>
|
|
16
|
+
<div class="title" id="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
17
|
+
</div>
|
|
18
|
+
<button
|
|
19
|
+
type="button"
|
|
20
|
+
class="close"
|
|
21
|
+
aria-label=${this.closeLabel||o}
|
|
22
|
+
autofocus
|
|
23
|
+
@click=${()=>this._requestClose()}
|
|
24
|
+
>
|
|
25
|
+
<bd-icon name="close" size="md"></bd-icon>
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="body" id="body" ?hidden=${!e(``)}><slot></slot></div>
|
|
29
|
+
<div class="footer" ?hidden=${!e(`footer`)}><slot name="footer"></slot></div>
|
|
30
|
+
</dialog>
|
|
31
|
+
`}};t([s({type:Boolean,reflect:!0})],l.prototype,`open`,void 0),t([s({type:String,attribute:`close-label`})],l.prototype,`closeLabel`,void 0),l=t([e(`bd-dialog`)],l);export{l as BdDialog};
|
|
32
|
+
//# sourceMappingURL=dialog.js.map
|