@repobit/dex-system-design 3.1.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1067 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +78 -0
- package/dist/src/components/select/select.js +35 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +27 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4546 -3215
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
declare const VARIANTS: readonly ["info", "success", "error"];
|
|
5
|
+
type Variant = typeof VARIANTS[number];
|
|
6
|
+
/**
|
|
7
|
+
* A determinate progress bar: how far through a known quantity something is.
|
|
8
|
+
*
|
|
9
|
+
* `value` and `max` are data the bar parses, so they stay attributes; the
|
|
10
|
+
* caption above the bar is the page's copy, so it is the `label` slot.
|
|
11
|
+
*/
|
|
12
|
+
export declare class BdProgressBar extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult[];
|
|
14
|
+
value: number;
|
|
15
|
+
max: number;
|
|
16
|
+
/** What the fill means: info | success | error. Unset is the default fill. */
|
|
17
|
+
variant?: Variant;
|
|
18
|
+
_slots: SlotController<"label">;
|
|
19
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
'bd-progress-bar': BdProgressBar;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
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{SlotController as r}from"../shared/controller.slot.js";import i from"./progress-bar.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=[`info`,`success`,`error`],u=class extends a{constructor(...e){super(...e),this.value=0,this.max=100,this._slots=new r(this,{slots:[`label`]})}static{this.styles=[i]}willUpdate(e){e.has(`variant`)&&this.variant!=null&&!t(l,this.variant)&&(this.variant=void 0)}render(){let e=Number.isFinite(this.max)&&this.max>0?this.max:100,t=Number.isFinite(this.value)?Math.min(Math.max(this.value,0),e):0,n=t/e*100,r=this._slots.has(`label`);return o`
|
|
2
|
+
<span class="label" ?hidden=${!r}>
|
|
3
|
+
<span id="label"><slot name="label"></slot></span>
|
|
4
|
+
<span>${Math.round(n)}%</span>
|
|
5
|
+
</span>
|
|
6
|
+
<progress
|
|
7
|
+
id="bar"
|
|
8
|
+
class="track"
|
|
9
|
+
value=${t}
|
|
10
|
+
max=${e}
|
|
11
|
+
aria-labelledby=${r?`label`:s}
|
|
12
|
+
aria-label=${r?s:`Progress`}
|
|
13
|
+
></progress>
|
|
14
|
+
`}};n([c({type:Number})],u.prototype,`value`,void 0),n([c({type:Number})],u.prototype,`max`,void 0),n([c({type:String,reflect:!0})],u.prototype,`variant`,void 0),u=n([e(`bd-progress-bar`)],u);export{u as BdProgressBar};
|
|
15
|
+
//# sourceMappingURL=progress-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar.js","names":["_decorate","__decorate","progressBarCSS","VARIANTS","BdProgressBar","LitElement","_args","SlotController","changed","isOneOf","max","value","percent","labelled","nothing","property","defineElement"],"sources":["../../../../src/components/progress-bar/progress-bar.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { SlotController } from '#shared/controller.slot.ts';\nimport { defineElement } from '#shared/define-element.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';\nimport { progressBarCSS } from './progress-bar.css.ts';\n\n/* The meanings progress-bar.css.ts styles. No variant is the default fill. */\nconst VARIANTS = ['info', 'success', 'error'] as const;\ntype Variant = typeof VARIANTS[number];\n\n/**\n * A determinate progress bar: how far through a known quantity something is.\n *\n * `value` and `max` are data the bar parses, so they stay attributes; the\n * caption above the bar is the page's copy, so it is the `label` slot.\n */\n@defineElement('bd-progress-bar')\nexport class BdProgressBar extends LitElement {\n static styles = [progressBarCSS];\n\n @property({ type: Number })\n value = 0;\n @property({ type: Number })\n max = 100;\n /** What the fill means: info | success | error. Unset is the default fill. */\n @property({ type: String, reflect: true })\n variant?: Variant;\n\n _slots = new SlotController(this, { slots: ['label'] });\n\n /* variant reflects, so an unknown one used to sit on the element as if it\n meant something -- variant=\"warning\" or the retired \"default\" -- while the\n bar drew the default fill. It is cleared instead, so the attribute says\n what is drawn. */\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has('variant') && this.variant != null && !isOneOf(VARIANTS, this.variant)) this.variant = undefined;\n }\n\n render() {\n /* One clamped value for all three readers. Only the fill used to be\n clamped: value 150 read \"150%\" beside a full bar and reported an\n aria-valuenow above aria-valuemax, a negative value drew nothing and\n read \"-20%\", and max 0 read \"NaN%\". A max that is not a positive number\n falls back to the default, as an unknown variant does elsewhere. */\n const max = Number.isFinite(this.max) && this.max > 0 ? this.max : 100;\n const value = Number.isFinite(this.value) ? Math.min(Math.max(this.value, 0), max) : 0;\n const percent = (value / max) * 100;\n const labelled = this._slots.has('label');\n\n /* A native <progress>: the progressbar role, its value and its range come\n with the element. The caption row shows while the label slot holds\n something, and the box around the slot is the bar's name through\n aria-labelledby -- name computation reads the slotted words through\n the flat tree, which a <label for> wrapping a slot would leave to each\n engine. With no label the name is the literal \"Progress\". */\n return html`\n <span class=\"label\" ?hidden=${!labelled}>\n <span id=\"label\"><slot name=\"label\"></slot></span>\n <span>${Math.round(percent)}%</span>\n </span>\n <progress\n id=\"bar\"\n class=\"track\"\n value=${value}\n max=${max}\n aria-labelledby=${labelled ? 'label' : nothing}\n aria-label=${labelled ? nothing : 'Progress'}\n ></progress>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-progress-bar': BdProgressBar;\n }\n}\n"],"mappings":"A,oaAUA,IAAMG,EAAW,CAAC,OAAQ,UAAW,OAAO,EAU/BC,EAAN,cAA4BC,CAAW,C,8BAIpC,KAAA,MAAA,EAEF,KAAA,IAAA,IAKG,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAO,CAAE,CAAC,C,QAVtC,KAAA,OAAA,CAACL,CAAc,C,CAgB/B,WAAW,EAA+B,CACpCM,EAAQ,IAAI,SAAS,GAAK,KAAK,SAAW,MAAQ,CAACC,EAAQN,EAAU,KAAK,OAAO,IAAG,KAAK,QAAU,IAAA,GACzG,CAEA,QAAS,CAMP,IAAMO,EAAM,OAAO,SAAS,KAAK,GAAG,GAAK,KAAK,IAAM,EAAI,KAAK,IAAM,IAC7DC,EAAQ,OAAO,SAAS,KAAK,KAAK,EAAI,KAAK,IAAI,KAAK,IAAI,KAAK,MAAO,CAAC,EAAGD,CAAG,EAAI,EAC/EE,EAAWD,EAAQD,EAAO,IAC1BG,EAAW,KAAK,OAAO,IAAI,OAAO,EAQxC,MAAO,EAAI;oCACqB,CAACA,EAAS;;gBAE9B,KAAK,MAAMD,CAAO,EAAE;;;;;gBAKpBD,EAAM;cACRD,EAAI;0BACQG,EAAW,QAAUC,EAAQ;qBAClCD,EAAWC,EAAU,WAAW;;KAGnD,CACF,EAlDGd,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,MAAA,IAAA,EAAA,EAGzBJ,EAAA,CAAAe,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAX,EAAA,UAAA,UAAA,IAAA,EAAA,EAT1C,EAAAJ,EAAA,CAAAgB,EAAc,iBAAiB,CAAA,EAAAZ,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);display:block}.bd-quickanswer-container{background:var(--status-brand-surface);padding:var(--spacing-32) var(--spacing-28) var(--spacing-32) var(--spacing-28);box-sizing:border-box}.bd-quickanswer-
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}.bd-quickanswer-container{background:var(--status-brand-surface);padding:var(--spacing-32) var(--spacing-28) var(--spacing-32) var(--spacing-28);box-sizing:border-box}.bd-quickanswer-container [hidden]{display:none}.bd-quickanswer-eyebrow{margin:0 0 var(--spacing-16);color:var(--color-text-brand);font-size:var(--typography-label-large-fontSize);font-weight:var(--typography-label-large-fontWeight);line-height:var(--typography-label-large-lineHeight);letter-spacing:var(--typography-label-large-letterSpacing);font-family:var(--typography-label-large-fontFamily)}.bd-quickanswer-text{margin:0}.bd-quickanswer-divider{margin:var(--spacing-24) 0 var(--spacing-16);display:block}.bd-quickanswer-meta{gap:var(--spacing-24);flex-wrap:wrap;display:flex}@media (width<576px){.bd-quickanswer-container{padding:var(--spacing-24)}.bd-quickanswer-meta{gap:var(--spacing-12);flex-direction:column}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=quick-answer.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-answer.css.js","names":["quick_answer_css_default"],"sources":["../../../../src/components/quick-answer/quick-answer.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 }\n\n .bd-quickanswer-container {\n background: var(--status-brand-surface);\n padding: var(--spacing-32) var(--spacing-28) var(--spacing-32) var(--spacing-28);\n box-sizing: border-box;\n }\n\n /*
|
|
1
|
+
{"version":3,"file":"quick-answer.css.js","names":["quick_answer_css_default"],"sources":["../../../../src/components/quick-answer/quick-answer.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 }\n\n .bd-quickanswer-container {\n background: var(--status-brand-surface);\n padding: var(--spacing-32) var(--spacing-28) var(--spacing-32) var(--spacing-28);\n box-sizing: border-box;\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-quickanswer-container [hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so it takes its role from here: label-large, the\n role whose job is a short label -- 16px, Medium 500 at 1.5, what 3.x drew\n with a bd-p regular and font-weight=\"medium\" -- at every width, as 3.x\n did. text-brand, not the brand's step 500: this label is 16px on\n --status-brand-surface, where step 500 measures 4.20:1 and fails 1.4.3,\n and the role gives 5.72:1. 16 under it, the margin 3.x's paragraph\n collapsed into. */\n .bd-quickanswer-eyebrow {\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-brand);\n font-size: var(--typography-label-large-fontSize);\n font-weight: var(--typography-label-large-fontWeight);\n line-height: var(--typography-label-large-lineHeight);\n letter-spacing: var(--typography-label-large-letterSpacing);\n font-family: var(--typography-label-large-fontFamily);\n }\n\n /* The answer is the page's bd-p: its size is the page's, and its 16px flow\n margin is the distance to whatever follows, as in 3.x. */\n .bd-quickanswer-text {\n margin: 0;\n }\n\n /* The atom, not a border of our own: a line separating regions of content\n is a divider rather than a boundary. brand-subtle is --status-brand-border\n through BORDER_ROLES, and opacity is set to 1 because the atom dims to\n 0.25 by default. The margins are this panel's rhythm, not the rule's. It\n is drawn only while there are facts under it. */\n .bd-quickanswer-divider {\n display: block;\n margin: var(--spacing-24) 0 var(--spacing-16);\n }\n\n /* The strip of facts: each bd-fact, in the inline look, is a flex item\n and draws its own key and value. */\n .bd-quickanswer-meta {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-24);\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-quickanswer-container {\n padding: var(--spacing-24);\n }\n\n .bd-quickanswer-meta {\n flex-direction: column;\n gap: var(--spacing-12);\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,67B"}
|
|
@@ -1,21 +1,34 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import "../divider/divider.js";
|
|
5
|
+
import "../fact/fact.js";
|
|
6
|
+
import "../p/p.js";
|
|
7
|
+
/**
|
|
8
|
+
* A light-blue callout that gives a short, direct answer to a question, with
|
|
9
|
+
* an optional strip of labelled facts under a divider.
|
|
10
|
+
*
|
|
11
|
+
* <bd-quick-answer>
|
|
12
|
+
* <span slot="eyebrow">Quick answer</span>
|
|
13
|
+
* <bd-p slot="description" appearance="large">Bitdefender AI Guardian is …</bd-p>
|
|
14
|
+
* <bd-fact slot="facts" appearance="inline"><span slot="label">Platform</span><span slot="value">macOS</span></bd-fact>
|
|
15
|
+
* <bd-fact slot="facts" appearance="inline"><span slot="label">Status</span><span slot="value">Open BETA</span></bd-fact>
|
|
16
|
+
* </bd-quick-answer>
|
|
17
|
+
*
|
|
18
|
+
* The eyebrow is text, in the quick answer's own brand label; the answer is
|
|
19
|
+
* the page's bd-p, and the default slot takes anything after it. The facts are
|
|
20
|
+
* bd-fact children in `facts`, in the inline look -- 3.x's `items` array of
|
|
21
|
+
* { label, value } -- and the divider and the strip are drawn only while
|
|
22
|
+
* there are any. Each part's box is hidden while its slot is empty; 3.x's
|
|
23
|
+
* "Quick answer" default is the stories' now.
|
|
24
|
+
*/
|
|
25
|
+
export declare class BdQuickAnswer extends LitElement {
|
|
10
26
|
static styles: import("lit").CSSResult[];
|
|
11
|
-
|
|
12
|
-
text: string;
|
|
13
|
-
items: QuickAnswerItem[];
|
|
27
|
+
_slots: SlotController<"" | "eyebrow" | "description" | "facts">;
|
|
14
28
|
render(): import("lit-html").TemplateResult<1>;
|
|
15
29
|
}
|
|
16
30
|
declare global {
|
|
17
31
|
interface HTMLElementTagNameMap {
|
|
18
|
-
"bd-quick-answer":
|
|
32
|
+
"bd-quick-answer": BdQuickAnswer;
|
|
19
33
|
}
|
|
20
34
|
}
|
|
21
|
-
export {};
|
|
@@ -1,32 +1,16 @@
|
|
|
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"../divider/divider.js";import"../fact/fact.js";import r from"./quick-answer.css.js";import{LitElement as i,html as a}from"lit";var o=class extends i{constructor(...e){super(...e),this._slots=new n(this,{slots:[`eyebrow`,`description`,``,`facts`]})}static{this.styles=[r]}render(){let e=e=>this._slots.has(e);return a`
|
|
2
2
|
<div class="bd-quickanswer-container">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<slot></slot>
|
|
14
|
-
|
|
15
|
-
${this.items&&this.items.length?i`
|
|
16
|
-
<bd-divider-horizontal
|
|
17
|
-
class="bd-quickanswer-divider"
|
|
18
|
-
color="brand-subtle"
|
|
19
|
-
opacity="1"
|
|
20
|
-
></bd-divider-horizontal>
|
|
21
|
-
<div class="bd-quickanswer-meta">
|
|
22
|
-
${this.items.map(e=>i`
|
|
23
|
-
<span class="bd-quickanswer-meta-item">
|
|
24
|
-
<span class="bd-quickanswer-meta-label">${e.label}</span>
|
|
25
|
-
<span class="bd-quickanswer-meta-value">${e.value}</span>
|
|
26
|
-
</span>
|
|
27
|
-
`)}
|
|
28
|
-
</div>
|
|
29
|
-
`:a}
|
|
3
|
+
<div class="bd-quickanswer-eyebrow" ?hidden=${!e(`eyebrow`)}><slot name="eyebrow"></slot></div>
|
|
4
|
+
<div class="bd-quickanswer-text" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
5
|
+
<div class="bd-quickanswer-content" ?hidden=${!e(``)}><slot></slot></div>
|
|
6
|
+
<bd-divider
|
|
7
|
+
orientation="horizontal"
|
|
8
|
+
class="bd-quickanswer-divider"
|
|
9
|
+
color="brand-subtle"
|
|
10
|
+
opacity="1"
|
|
11
|
+
?hidden=${!e(`facts`)}
|
|
12
|
+
></bd-divider>
|
|
13
|
+
<div class="bd-quickanswer-meta" ?hidden=${!e(`facts`)}><slot name="facts"></slot></div>
|
|
30
14
|
</div>
|
|
31
|
-
`}};
|
|
15
|
+
`}};o=t([e(`bd-quick-answer`)],o);export{o as BdQuickAnswer};
|
|
32
16
|
//# sourceMappingURL=quick-answer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-answer.js","names":["quickAnswerCSS","_decorate","__decorate","quick_answer_css_default","
|
|
1
|
+
{"version":3,"file":"quick-answer.js","names":["quickAnswerCSS","_decorate","__decorate","quick_answer_css_default","BdQuickAnswer","LitElement","_args","SlotController","has","name","defineElement"],"sources":["../../../../src/components/quick-answer/quick-answer.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\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/divider/divider.ts\";\nimport \"#components/fact/fact.ts\";\n/* The atom the page writes the answer with. The quick answer does not render\n it now, but 3.x's module registered it, and a page importing only this one\n still gets it. */\nimport \"#components/p/p.ts\";\nimport quickAnswerCSS from \"./quick-answer.css.ts\";\n\n/**\n * A light-blue callout that gives a short, direct answer to a question, with\n * an optional strip of labelled facts under a divider.\n *\n * <bd-quick-answer>\n * <span slot=\"eyebrow\">Quick answer</span>\n * <bd-p slot=\"description\" appearance=\"large\">Bitdefender AI Guardian is …</bd-p>\n * <bd-fact slot=\"facts\" appearance=\"inline\"><span slot=\"label\">Platform</span><span slot=\"value\">macOS</span></bd-fact>\n * <bd-fact slot=\"facts\" appearance=\"inline\"><span slot=\"label\">Status</span><span slot=\"value\">Open BETA</span></bd-fact>\n * </bd-quick-answer>\n *\n * The eyebrow is text, in the quick answer's own brand label; the answer is\n * the page's bd-p, and the default slot takes anything after it. The facts are\n * bd-fact children in `facts`, in the inline look -- 3.x's `items` array of\n * { label, value } -- and the divider and the strip are drawn only while\n * there are any. Each part's box is hidden while its slot is empty; 3.x's\n * \"Quick answer\" default is the stories' now.\n */\n@defineElement(\"bd-quick-answer\")\nexport class BdQuickAnswer extends LitElement {\n static styles = [quickAnswerCSS];\n\n _slots = new SlotController(this, { slots: [\"eyebrow\", \"description\", \"\", \"facts\"] });\n\n render() {\n const has = (name: \"eyebrow\" | \"description\" | \"\" | \"facts\") => this._slots.has(name);\n return html`\n <div class=\"bd-quickanswer-container\">\n <div class=\"bd-quickanswer-eyebrow\" ?hidden=${!has(\"eyebrow\")}><slot name=\"eyebrow\"></slot></div>\n <div class=\"bd-quickanswer-text\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-quickanswer-content\" ?hidden=${!has(\"\")}><slot></slot></div>\n <bd-divider\n orientation=\"horizontal\"\n class=\"bd-quickanswer-divider\"\n color=\"brand-subtle\"\n opacity=\"1\"\n ?hidden=${!has(\"facts\")}\n ></bd-divider>\n <div class=\"bd-quickanswer-meta\" ?hidden=${!has(\"facts\")}><slot name=\"facts\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-quick-answer\": BdQuickAnswer;\n }\n}\n"],"mappings":"A,2XAgCO,IAAMI,EAAN,cAA4BC,CAAW,C,8BAGnC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,UAAW,cAAe,GAAI,OAAO,CAAE,CAAC,C,QAFpE,KAAA,OAAA,CAACP,CAAc,C,CAI/B,QAAS,CACP,IAAMQ,EAAO,GAAmD,KAAK,OAAO,IAAIC,CAAI,EACpF,MAAO,EAAI;;sDAEuC,CAACD,EAAI,SAAS,EAAE;mDACnB,CAACA,EAAI,aAAa,EAAE;sDACjB,CAACA,EAAI,EAAE,EAAE;;;;;;oBAM3C,CAACA,EAAI,OAAO,EAAE;;mDAEiB,CAACA,EAAI,OAAO,EAAE;;KAG/D,CACF,EAxBC,EAAAP,EAAA,CAAAS,EAAc,iBAAiB,CAAA,EAAAN,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`:host{display:block}.label{font-family:var(--form-label-default-fontFamily);font-size:var(--form-label-default-fontSize);font-weight:var(--form-label-default-fontWeight);line-height:var(--form-label-default-lineHeight);letter-spacing:var(--form-label-default-letterSpacing);color:var(--form-label-default-color);margin-bottom:var(--form-label-default-marginBottom);display:block}.required{color:var(--form-label-required-color);margin-inline-start:var(--form-label-required-marginLeft)}.options{align-items:flex-start;gap:var(--spacing-8);flex-direction:column;display:flex}`;export{t as default};
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:block}.label{font-family:var(--form-label-default-fontFamily);font-size:var(--form-label-default-fontSize);font-weight:var(--form-label-default-fontWeight);line-height:var(--form-label-default-lineHeight);letter-spacing:var(--form-label-default-letterSpacing);color:var(--form-label-default-color);margin-bottom:var(--form-label-default-marginBottom);display:block}.label[hidden]{display:none}.required{color:var(--form-label-required-color);margin-inline-start:var(--form-label-required-marginLeft)}.options{align-items:flex-start;gap:var(--spacing-8);flex-direction:column;display:flex}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=radio-group.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.css.js","names":["radio_group_css_default"],"sources":["../../../../src/components/radio/radio-group.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * The group's own chrome: a label over the radios, and the radios stacked.\n *\n * The label is a field label, so it reads the --form-label-* tokens the\n * fields' built-in labels and bd-label read, at the default size, with the\n * same required mark. The stack is the 8px every radio story already set by\n * hand around its group.\n */\nexport default css`\n :host {\n display: block;\n }\n\n .label {\n display: block;\n font-family: var(--form-label-default-fontFamily);\n font-size: var(--form-label-default-fontSize);\n font-weight: var(--form-label-default-fontWeight);\n line-height: var(--form-label-default-lineHeight);\n letter-spacing: var(--form-label-default-letterSpacing);\n color: var(--form-label-default-color);\n margin-bottom: var(--form-label-default-marginBottom);\n }\n\n .required {\n color: var(--form-label-required-color);\n margin-inline-start: var(--form-label-required-marginLeft);\n }\n\n /* flex-start, so each radio stays as wide as its own row. Stretched, the\n empty run beside a short label would be part of the host and select it\n from across the column. A page lays the options out in a row through\n ::part(options). */\n .options {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-8);\n }\n`;\n"],"mappings":"A,0BAUA,IAAAA,EAAe,CAAG,
|
|
1
|
+
{"version":3,"file":"radio-group.css.js","names":["radio_group_css_default"],"sources":["../../../../src/components/radio/radio-group.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * The group's own chrome: a label over the radios, and the radios stacked.\n *\n * The label is a field label, so it reads the --form-label-* tokens the\n * fields' built-in labels and bd-label read, at the default size, with the\n * same required mark. The stack is the 8px every radio story already set by\n * hand around its group.\n */\nexport default css`\n :host {\n display: block;\n }\n\n .label {\n display: block;\n font-family: var(--form-label-default-fontFamily);\n font-size: var(--form-label-default-fontSize);\n font-weight: var(--form-label-default-fontWeight);\n line-height: var(--form-label-default-lineHeight);\n letter-spacing: var(--form-label-default-letterSpacing);\n color: var(--form-label-default-color);\n margin-bottom: var(--form-label-default-marginBottom);\n }\n\n /* The wrapper around the label slot, hidden while it is empty; display:\n block above outranks the hidden attribute's own rule. */\n .label[hidden] {\n display: none;\n }\n\n .required {\n color: var(--form-label-required-color);\n margin-inline-start: var(--form-label-required-marginLeft);\n }\n\n /* flex-start, so each radio stays as wide as its own row. Stretched, the\n empty run beside a short label would be part of the host and select it\n from across the column. A page lays the options out in a row through\n ::part(options). */\n .options {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-8);\n }\n`;\n"],"mappings":"A,0BAUA,IAAAA,EAAe,CAAG,6lB"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from "lit";
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
4
|
/**
|
|
4
5
|
* The element that owns a set of bd-radio: what a <fieldset> of native radios
|
|
5
6
|
* would be, and what the browser cannot do for radios that each live in a
|
|
6
7
|
* shadow root of their own.
|
|
7
8
|
*
|
|
8
|
-
* <bd-radio-group
|
|
9
|
-
* <
|
|
10
|
-
* <bd-radio value="
|
|
9
|
+
* <bd-radio-group name="billing" required>
|
|
10
|
+
* <span slot="label">Billing</span>
|
|
11
|
+
* <bd-radio value="monthly"><span slot="label">Monthly</span></bd-radio>
|
|
12
|
+
* <bd-radio value="yearly" checked><span slot="label">Yearly</span></bd-radio>
|
|
11
13
|
* </bd-radio-group>
|
|
12
14
|
*
|
|
13
|
-
* It renders role="radiogroup", named by its label
|
|
15
|
+
* It renders role="radiogroup", named by its `label` slot -- aria-labelledby
|
|
16
|
+
* points at the box around the slot, and name computation reads the slotted
|
|
17
|
+
* words through it -- so a screen reader hears
|
|
14
18
|
* the group and its question, and it scopes the radios: the ones inside it
|
|
15
19
|
* exclude each other, take its name and are required when it is, whatever
|
|
16
20
|
* else on the page shares their name. The radios still do everything a radio
|
|
@@ -23,10 +27,10 @@ import "../../tokens/tokens.js";
|
|
|
23
27
|
*/
|
|
24
28
|
export declare class BdRadioGroup extends LitElement {
|
|
25
29
|
static styles: import("lit").CSSResult[];
|
|
26
|
-
label: string;
|
|
27
30
|
/** Given to every radio inside, which is the name they submit under. */
|
|
28
31
|
name: string;
|
|
29
32
|
required: boolean;
|
|
33
|
+
protected _slots: SlotController<"label">;
|
|
30
34
|
/** Its radios, in document order. A group nested inside keeps its own. */
|
|
31
35
|
get radios(): HTMLElementTagNameMap["bd-radio"][];
|
|
32
36
|
/** The selected radio's value, or "" when none is, as RadioNodeList.value. */
|
|
@@ -1,12 +1,12 @@
|
|
|
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{SlotController as n}from"../shared/controller.slot.js";import r from"./radio-group.css.js";import{radiosOf as i}from"./radio.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.name=``,this.required=!1,this._slots=new n(this,{slots:[`label`]})}static{this.styles=[r]}get radios(){return i(this)}get value(){return this.radios.find(e=>e.checked)?.value??``}set value(e){let t=this.radios.find(t=>t.value===e);t&&(t.checked=!0)}updated(e){if(e.has(`name`)&&this.name)for(let e of this.radios)e.name=this.name;if(e.has(`required`))for(let e of this.radios)e.requestUpdate?.()}render(){let e=this._slots.has(`label`);return o`
|
|
2
2
|
<div
|
|
3
3
|
class="bd-radio-group"
|
|
4
4
|
role="radiogroup"
|
|
5
|
-
aria-labelledby=${
|
|
6
|
-
aria-required=${this.required?`true`:
|
|
5
|
+
aria-labelledby=${e?`label`:s}
|
|
6
|
+
aria-required=${this.required?`true`:s}
|
|
7
7
|
>
|
|
8
|
-
|
|
8
|
+
<span id="label" class="label" part="label" ?hidden=${!e}><slot name="label"></slot>${this.required?o`<span class="required" aria-hidden="true">*</span>`:s}</span>
|
|
9
9
|
<div class="options" part="options"><slot></slot></div>
|
|
10
10
|
</div>
|
|
11
|
-
`}};t([
|
|
11
|
+
`}};t([c({type:String})],l.prototype,`name`,void 0),t([c({type:Boolean})],l.prototype,`required`,void 0),l=t([e(`bd-radio-group`)],l);export{l as BdRadioGroup};
|
|
12
12
|
//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","names":["radioGroupCSS","_decorate","__decorate","radio_group_css_default","BdRadioGroup","LitElement","_args","radiosOf","radio","r","value","changed","nothing","property","defineElement"],"sources":["../../../../src/components/radio/radio-group.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } 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 { radiosOf } from \"./radio.ts\";\nimport radioGroupCSS from \"./radio-group.css.ts\";\n\n/**\n * The element that owns a set of bd-radio: what a <fieldset> of native radios\n * would be, and what the browser cannot do for radios that each live in a\n * shadow root of their own.\n *\n * <bd-radio-group
|
|
1
|
+
{"version":3,"file":"radio-group.js","names":["radioGroupCSS","_decorate","__decorate","radio_group_css_default","BdRadioGroup","LitElement","_args","SlotController","radiosOf","radio","r","value","changed","labelled","nothing","property","defineElement"],"sources":["../../../../src/components/radio/radio-group.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } 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 { radiosOf } from \"./radio.ts\";\nimport radioGroupCSS from \"./radio-group.css.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n\n/**\n * The element that owns a set of bd-radio: what a <fieldset> of native radios\n * would be, and what the browser cannot do for radios that each live in a\n * shadow root of their own.\n *\n * <bd-radio-group name=\"billing\" required>\n * <span slot=\"label\">Billing</span>\n * <bd-radio value=\"monthly\"><span slot=\"label\">Monthly</span></bd-radio>\n * <bd-radio value=\"yearly\" checked><span slot=\"label\">Yearly</span></bd-radio>\n * </bd-radio-group>\n *\n * It renders role=\"radiogroup\", named by its `label` slot -- aria-labelledby\n * points at the box around the slot, and name computation reads the slotted\n * words through it -- so a screen reader hears\n * the group and its question, and it scopes the radios: the ones inside it\n * exclude each other, take its name and are required when it is, whatever\n * else on the page shares their name. The radios still do everything a radio\n * does themselves -- each is the form control, each submits its own value --\n * so radios without a group keep working exactly as before.\n *\n * The role sits on an element in this shadow root, around the slot, rather\n * than on the host: the accessibility tree follows the slot, so the radios\n * are its children there, and the label it points at is in the same root.\n */\n@defineElement(\"bd-radio-group\")\nexport class BdRadioGroup extends LitElement {\n static styles = [radioGroupCSS];\n\n /** Given to every radio inside, which is the name they submit under. */\n @property({ type: String })\n name = \"\";\n @property({ type: Boolean })\n required = false;\n\n protected _slots = new SlotController(this, { slots: [\"label\"] });\n\n /** Its radios, in document order. A group nested inside keeps its own. */\n get radios(): HTMLElementTagNameMap[\"bd-radio\"][] {\n return radiosOf(this);\n }\n\n /** The selected radio's value, or \"\" when none is, as RadioNodeList.value. */\n get value() {\n return this.radios.find(radio => radio.checked)?.value ?? \"\";\n }\n\n /** Selects the radio with this value; a value no radio has changes nothing. */\n set value(value: string) {\n const radio = this.radios.find(r => r.value === value);\n if (radio) radio.checked = true;\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"name\") && this.name) {\n for (const radio of this.radios) radio.name = this.name;\n }\n if (changed.has(\"required\")) {\n for (const radio of this.radios) radio.requestUpdate?.();\n }\n }\n\n render() {\n const labelled = this._slots.has(\"label\");\n return html`\n <div\n class=\"bd-radio-group\"\n role=\"radiogroup\"\n aria-labelledby=${labelled ? \"label\" : nothing}\n aria-required=${this.required ? \"true\" : nothing}\n >\n <span id=\"label\" class=\"label\" part=\"label\" ?hidden=${!labelled}><slot name=\"label\"></slot>${this.required\n ? html`<span class=\"required\" aria-hidden=\"true\">*</span>`\n : nothing}</span>\n <div class=\"options\" part=\"options\"><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-radio-group\": BdRadioGroup;\n }\n}\n"],"mappings":"A,kZAkCO,IAAMI,EAAN,cAA2BC,CAAW,C,8BAKpC,KAAA,KAAA,GAEI,KAAA,SAAA,GAEQ,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAO,CAAE,CAAC,C,QARhD,KAAA,OAAA,CAACP,CAAa,C,CAW9B,IAAI,QAA8C,CAChD,OAAOQ,EAAS,IAAI,CACtB,CAGA,IAAI,OAAQ,CACV,OAAO,KAAK,OAAO,KAAK,GAASC,EAAM,OAAO,CAAC,EAAE,OAAS,EAC5D,CAGA,IAAI,MAAM,EAAe,CACvB,IAAMA,EAAQ,KAAK,OAAO,KAAK,GAAKC,EAAE,QAAUC,CAAK,EACjDF,IAAO,EAAM,QAAU,GAC7B,CAEA,QAAQ,EAA+B,CACrC,GAAIG,EAAQ,IAAI,MAAM,GAAK,KAAK,KAC9B,IAAK,IAAMH,KAAS,KAAK,OAAQ,EAAM,KAAO,KAAK,KAErD,GAAIG,EAAQ,IAAI,UAAU,EACxB,IAAK,IAAMH,KAAS,KAAK,OAAQA,EAAM,gBAAgB,CAE3D,CAEA,QAAS,CACP,IAAMI,EAAW,KAAK,OAAO,IAAI,OAAO,EACxC,MAAO,EAAI;;;;0BAIWA,EAAW,QAAUC,EAAQ;wBAC/B,KAAK,SAAW,OAASA,EAAQ;;8DAEK,CAACD,EAAS,6BAA6B,KAAK,SAC9F,CAAI,qDACJC,EAAQ;;;KAIlB,CACF,EAhDGb,EAAA,CAAAc,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAX,EAAA,UAAA,WAAA,IAAA,EAAA,EAP5B,EAAAH,EAAA,CAAAe,EAAc,gBAAgB,CAAA,EAAAZ,CAAA,E"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* bd-radio. (3.x's bd-toggle-radio shared it; that tag is gone, and its place
|
|
3
|
+
* is bd-checkbox, which it always was underneath.)
|
|
3
4
|
*
|
|
4
5
|
* Styled entirely from src/tokens/tokens.ts — see CLAUDE.md, "The foundation
|
|
5
6
|
* rule". Measurements were matched to the ds-radio design by finding the token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.css.js","names":["radio_css_default"],"sources":["../../../../src/components/radio/radio.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"radio.css.js","names":["radio_css_default"],"sources":["../../../../src/components/radio/radio.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * bd-radio. (3.x's bd-toggle-radio shared it; that tag is gone, and its place\n * is bd-checkbox, which it always was underneath.)\n *\n * Styled entirely from src/tokens/tokens.ts — see CLAUDE.md, \"The foundation\n * rule\". Measurements were matched to the ds-radio design by finding the token\n * that already carries each value.\n *\n * The whole row is the control, not just the circle. That makes clicking the\n * label work and gives the target the 24px minimum WCAG 2.5.8 asks for, which\n * a 20px circle alone cannot reach. Padding rather than a min-height, so the\n * focus ring is inset evenly on all four sides.\n */\nexport default css`\n :host {\n display: inline-block;\n }\n\n .bd-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-8);\n padding: var(--spacing-2);\n cursor: pointer;\n font-family: var(--typography-fontFamily-sans);\n /* body-small: sm / normal / 1.5, which is what this already rendered on all\n three axes. Only the axes this rule declares are adopted -- the role also\n carries a family and a tracking, and importing those would change text\n the rule never spoke for. */\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-primary);\n vertical-align: middle;\n outline: none;\n }\n\n /* Each row is a <label> around the native radio, which stays in the\n accessibility tree; the circle draws it. The clip idiom bd-switch uses. */\n input {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, not a border -- as in\n switch.css.ts, with the -1px below. */\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n }\n\n .bd-radio:has(input:focus-visible) {\n /* the one focus ring — see Foundations/Focus. A two-colour ring whose\n white inner band keeps it visible on a coloured or dark surface, which a\n single-colour outline cannot do. */\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n /* ---- the circle -------------------------------------------------------\n flex: none matters. Without it the circle shrank in the flex row — it\n rendered 16x22, and a 50% radius on a non-square box is an ellipse. */\n .box {\n flex: none;\n width: var(--dimension-20);\n height: var(--dimension-20);\n box-sizing: border-box;\n /* The action role when unchecked, matching bd-checkbox. ds-radio specifies\n a neutral ring and ds-checkbox a brand one for the same conceptual\n state; the two frames disagree, and one system should not.\n\n Spelled as the role rather than the blue-500 step it resolves to: this\n and bd-checkbox were the two atoms a --color-action-primary override\n did not reach, where bd-button and bd-switch already did. */\n border: var(--border-width-2) solid var(--color-action-primary);\n border-radius: var(--radius-full);\n background: var(--color-surface-default);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth),\n border-color var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n /* ---- checked: the circle fills and the dot is the hole in it ---------- */\n :host([checked]) .box {\n background: var(--color-action-primary);\n border-color: var(--color-action-primary);\n }\n\n .bd-radio:hover .box {\n border-color: var(--color-action-primary-hover);\n }\n\n :host([checked]) .bd-radio:hover .box {\n background: var(--color-action-primary-hover);\n border-color: var(--color-action-primary-hover);\n }\n\n .dot {\n width: var(--dimension-12);\n height: var(--dimension-12);\n border-radius: var(--radius-full);\n /* ink on the brand fill, like the checkbox mark */\n background: var(--color-brand-on-fill);\n transform: scale(0);\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n :host([checked]) .dot {\n transform: scale(1);\n }\n\n /* ---- disabled --------------------------------------------------------\n :disabled rather than [disabled]: a <fieldset disabled> around a radio\n disables it without the attribute, and a form-associated element\n matches :disabled for both.\n\n The label greys with the control rather than the whole row dropping to an\n opacity. Exempt from contrast under WCAG 1.4.3.\n\n The edge is --color-border-disabled, the state role, for the reasons\n written out over bd-checkbox's disabled block: one disabled-edge value\n across the control family, and 2.27:1 where the hierarchy role gave 1.66.\n The dot fill below is a fill rather than an edge and is unchanged. */\n :host(:disabled) .bd-radio {\n cursor: not-allowed;\n color: var(--color-text-subtle);\n }\n\n :host(:disabled) .box,\n :host(:disabled) .bd-radio:hover .box {\n border-color: var(--color-border-disabled);\n background: var(--color-surface-default);\n }\n\n :host(:disabled[checked]) .box,\n :host(:disabled[checked]) .bd-radio:hover .box {\n background: var(--color-border-subtle);\n border-color: var(--color-border-disabled);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .box,\n .dot {\n transition: none;\n }\n }\n\n /* Forced colours keep the ring -- a border is repainted, not dropped --\n but repaint both fills as Canvas, and the dot is a fill: a checked radio\n drew exactly what an unchecked one did. The circle and the dot opt out\n and state system colours: a CanvasText ring at rest, and once checked a\n Highlight ring holding a Highlight dot, the native radio's own reading.\n Disabled is GrayText. Each state's selector is repeated with its hover,\n because those outrank a plain .box. */\n @media (forced-colors: active) {\n .box,\n .dot {\n forced-color-adjust: none;\n }\n\n .box,\n .bd-radio:hover .box {\n border-color: CanvasText;\n background: Canvas;\n }\n\n .dot { background: Highlight; }\n\n :host([checked]) .box,\n :host([checked]) .bd-radio:hover .box {\n border-color: Highlight;\n background: Canvas;\n }\n\n :host(:disabled) .box,\n :host(:disabled) .bd-radio:hover .box,\n :host(:disabled[checked]) .box,\n :host(:disabled[checked]) .bd-radio:hover .box {\n border-color: GrayText;\n background: Canvas;\n }\n\n :host(:disabled) .dot { background: GrayText; }\n }\n`;\n"],"mappings":"A,0BAeA,IAAAA,EAAe,CAAG,yjF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from "lit";
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "
|
|
3
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
4
4
|
export declare const radiosOf: (group: Element) => BdRadio[];
|
|
5
5
|
declare const BdRadio_base: (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof LitElement;
|
|
6
6
|
/**
|
|
@@ -15,6 +15,11 @@ declare const BdRadio_base: (new (...args: any[]) => import("../shared/form-cont
|
|
|
15
15
|
* without one, the same-name radios in this root, as it always was. The
|
|
16
16
|
* group element is what adds role="radiogroup" and its label; see
|
|
17
17
|
* radio-group.ts.
|
|
18
|
+
*
|
|
19
|
+
* <bd-radio value="yearly" checked><span slot="label">Yearly</span></bd-radio>
|
|
20
|
+
*
|
|
21
|
+
* The label is the page's, in the `label` slot, inside the <label> around the
|
|
22
|
+
* native radio, so the slotted words are the radio's name.
|
|
18
23
|
*/
|
|
19
24
|
declare class BdRadio extends BdRadio_base {
|
|
20
25
|
static styles: import("lit").CSSResult[];
|
|
@@ -23,10 +28,10 @@ declare class BdRadio extends BdRadio_base {
|
|
|
23
28
|
checked: boolean;
|
|
24
29
|
disabled: boolean;
|
|
25
30
|
required: boolean;
|
|
26
|
-
label: string;
|
|
27
31
|
_defaults?: {
|
|
28
32
|
checked: boolean;
|
|
29
33
|
};
|
|
34
|
+
protected _slots: SlotController<"label">;
|
|
30
35
|
_groupNow: BdRadio[];
|
|
31
36
|
_peers?: BdRadio[];
|
|
32
37
|
protected get _control(): HTMLInputElement | null;
|
|
@@ -51,6 +56,7 @@ declare class BdRadio extends BdRadio_base {
|
|
|
51
56
|
formResetCallback(): void;
|
|
52
57
|
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
53
58
|
protected _activate(): void;
|
|
59
|
+
_onInput(): void;
|
|
54
60
|
_onChange(): void;
|
|
55
61
|
/** Move to the next or previous enabled radio, focus it, and select it. */
|
|
56
62
|
_move(step: number): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{FormControl as
|
|
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{SlotController as n}from"../shared/controller.slot.js";import{FormControl as r,omitEmpty as i}from"../shared/form-control.js";import a from"./radio.css.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l}from"lit/decorators.js";var u=[`ArrowDown`,`ArrowRight`],d=[`ArrowUp`,`ArrowLeft`],f=e=>[...e.querySelectorAll(`bd-radio`)].filter(t=>t.closest(`bd-radio-group`)===e),p=(e,t,n)=>[...e.querySelectorAll(`bd-radio[name="${CSS.escape(t)}"]`)].filter(e=>!e._owner&&(e.form??null)===n),m=class extends r(o){constructor(...e){super(...e),this.name=``,this.value=``,this.checked=!1,this.disabled=!1,this.required=!1,this._slots=new n(this,{slots:[`label`]})}static{this.styles=[a]}get _control(){return this.renderRoot?.querySelector?.(`input`)}get _owner(){return this.closest(`bd-radio-group`)}get _group(){let e=this._owner;if(e)return f(e);if(!this.name)return[this];let t=this.getRootNode();return t===this?[this]:p(t,this.name,this.form)}get _isDisabled(){return this.disabled||this._formDisabled}_tabbable(e){return this._isDisabled?!1:e.some(e=>e.checked)?this.checked:e.find(e=>!e._isDisabled)===this}_missing(e){return(this._owner?.required||e.some(e=>e.required))&&!e.some(e=>e.checked)}_refreshPeers(e){for(let t of e)t!==this&&t.requestUpdate?.()}_exclusive(e=this._group){for(let t of e)t!==this&&t.checked&&(t.checked=!1)}connectedCallback(){super.connectedCallback(),this._defaults??={checked:this.checked};let e=this._owner;e?.name&&(this.name=e.name),this._refreshPeers(this._group)}disconnectedCallback(){super.disconnectedCallback(),this._refreshPeers(this._peers??[])}willUpdate(e){this._groupNow=this._group,e.has(`checked`)&&this.checked&&this.hasUpdated&&this._exclusive(this._groupNow)}updated(e){let t=this._groupNow;[`checked`,`disabled`,`name`,`required`,`_formDisabled`].some(t=>e.has(t))&&this._refreshPeers(/* @__PURE__ */ new Set([...this._peers??[],...t])),this._peers=t,this._internals.setFormValue(this.checked?this.value||`on`:null,String(this.checked)),this._mirrorValidity(this._control)}formResetCallback(){super.formResetCallback(),this._defaults&&(this.checked=this._defaults.checked)}formStateRestoreCallback(e){this.checked=e===`true`}_activate(){this._control?.click()}_onInput(){this._exclusive(),this.checked=!0}_onChange(){this._relayChange()}_move(e){let t=this._group.filter(e=>!e._isDisabled);if(t.length<2)return;let n=t[(t.indexOf(this)+e+t.length)%t.length];n._control.focus(),n._control.click()}_onKeydown(e){if(e.key===`Enter`){e.preventDefault(),this._submitImplicitly();return}let t=u.includes(e.key)?1:d.includes(e.key)?-1:0;t&&((e.key.endsWith(`Left`)||e.key.endsWith(`Right`))&&(t*=this.matches(`:dir(rtl)`)?-1:1),e.preventDefault(),this._move(t))}render(){let e=this._groupNow;return s`
|
|
2
2
|
<label class="bd-radio">
|
|
3
3
|
<input
|
|
4
4
|
type="radio"
|
|
@@ -7,13 +7,14 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
|
|
|
7
7
|
?disabled=${this._isDisabled}
|
|
8
8
|
?required=${this._missing(e)}
|
|
9
9
|
tabindex=${this._tabbable(e)?0:-1}
|
|
10
|
-
aria-posinset=${e.length>1?e.indexOf(this)+1:
|
|
11
|
-
aria-setsize=${e.length>1?e.length:
|
|
10
|
+
aria-posinset=${e.length>1?e.indexOf(this)+1:c}
|
|
11
|
+
aria-setsize=${e.length>1?e.length:c}
|
|
12
|
+
@input=${this._onInput}
|
|
12
13
|
@change=${this._onChange}
|
|
13
14
|
@keydown=${this._onKeydown}
|
|
14
15
|
/>
|
|
15
16
|
<span class="box" part="box"><span class="dot"></span></span>
|
|
16
|
-
<span class="label" part="label"
|
|
17
|
+
<span class="label" part="label" ?hidden=${!this._slots.has(`label`)}><slot name="label"></slot></span>
|
|
17
18
|
</label>
|
|
18
|
-
`}};t([
|
|
19
|
+
`}};t([l({type:String,reflect:!0,converter:i})],m.prototype,`name`,void 0),t([l({type:String})],m.prototype,`value`,void 0),t([l({type:Boolean,reflect:!0})],m.prototype,`checked`,void 0),t([l({type:Boolean,reflect:!0})],m.prototype,`disabled`,void 0),t([l({type:Boolean})],m.prototype,`required`,void 0),m=t([e(`bd-radio`)],m);export{f as radiosOf};
|
|
19
20
|
//# sourceMappingURL=radio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.js","names":["radioCSS","_decorate","__decorate","radio_css_default","NEXT_KEYS","PREV_KEYS","radiosOf","group","radio","byName","scope","name","form","BdRadio","FormControl","LitElement","_args","owner","root","r","changed","p","state","enabled","next","step","nothing","property","omitEmpty","defineElement"],"sources":["../../../../src/components/radio/radio.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } 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 radioCSS from \"./radio.css.ts\";\nimport { FormControl, omitEmpty } from \"#shared/form-control.ts\";\n// bd-toggle-radio has its own module, and this one still registers it, as it\n// always has\nimport \"./toggle-radio.ts\";\n\nconst NEXT_KEYS = [\"ArrowDown\", \"ArrowRight\"];\nconst PREV_KEYS = [\"ArrowUp\", \"ArrowLeft\"];\n\n/* A group's radios, in document order; a group nested inside keeps its own.\n Read off the DOM rather than asked of the group, because radios upgrade\n first -- radio-group.ts imports this module -- and a group that is not\n upgraded yet has no methods to ask. */\nexport const radiosOf = (group: Element) => [...group.querySelectorAll(\"bd-radio\")]\n .filter(radio => radio.closest(\"bd-radio-group\") === group);\n\n/* Same-name radios in `scope` that no bd-radio-group has claimed and that\n belong to `form` -- a native group is the radios with one name AND one form\n owner, so two forms that each ask for a \"plan\" hold two groups: a choice in\n one neither clears the other nor answers its `required`. A radio not yet\n upgraded has no form to compare; it joins when it upgrades. */\nconst byName = (scope: ParentNode, name: string, form: HTMLFormElement | null) => [...scope.querySelectorAll<BdRadio>(`bd-radio[name=\"${CSS.escape(name)}\"]`)]\n .filter(radio => !radio._owner && (radio.form ?? null) === form);\n\n/**\n * A single radio. Selecting one clears the others in its group, and the arrow\n * keys move between them.\n *\n * Each radio is a native <input type=\"radio\"> in its own shadow root, and that\n * is exactly what the browser cannot group: a native group is the radios\n * sharing a name in one tree, and every shadow root is a tree of its own. So\n * the group is still worked out here -- exclusivity, the arrow keys, the one\n * tab stop, the position in the set -- over a bd-radio-group's radios, or,\n * without one, the same-name radios in this root, as it always was. The\n * group element is what adds role=\"radiogroup\" and its label; see\n * radio-group.ts.\n */\n@defineElement(\"bd-radio\")\nclass BdRadio extends FormControl(LitElement) {\n static styles = [radioCSS];\n\n /* Reflected because the group is found by it: _group selects same-name\n radios by attribute, so a name set as a property -- radio.name = \"plan\",\n which is what a framework binding does -- left the radio in no group at\n all, with no exclusivity, no arrow keys and its own tab stop. A form\n reads it off the attribute too. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n @property({ type: String })\n value = \"\";\n // checked was left undefined, which rendered aria-checked=\"\" — not a valid\n // value, so an unselected radio announced no state at all\n @property({ type: Boolean, reflect: true })\n checked = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: Boolean })\n required = false;\n @property({ type: String })\n label = \"\";\n\n _defaults?: { checked: boolean };\n _groupNow!: BdRadio[];\n _peers? : BdRadio[];\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.(\"input\");\n }\n\n /** The bd-radio-group this radio belongs to, if any. */\n get _owner() {\n return this.closest(\"bd-radio-group\");\n }\n\n /** The radios this one excludes, itself included, in document order. */\n get _group() {\n const owner = this._owner;\n if (owner) return radiosOf(owner);\n if (!this.name) return [this];\n /* The tree the radio is in: a document, a shadow root, or -- taken off\n the page -- the fragment or the detached element it went with. It used\n to fall back to the live document there, so a detached radio checked\n from script cleared every same-name radio on the page. */\n const root = this.getRootNode();\n return root === this ? [this] : byName(root as ParentNode, this.name, this.form);\n }\n\n get _isDisabled() {\n return this.disabled || this._formDisabled;\n }\n\n /**\n * One tab stop per group, as the radiogroup pattern requires: the selected\n * radio, or the first enabled one when nothing is selected yet.\n */\n _tabbable(group: BdRadio[]) {\n if (this._isDisabled) return false;\n if (group.some(r => r.checked)) return this.checked;\n return group.find(r => !r._isDisabled) === this;\n }\n\n /* `required` on any radio, or on the group element, requires the group:\n one of them has to be selected. */\n _missing(group: BdRadio[]) {\n const required = this._owner?.required || group.some(r => r.required);\n return required && !group.some(r => r.checked);\n }\n\n /* The tab stop, the validity and the position in the set are group\n decisions, but each radio renders only when its own properties change.\n So when one radio's state flips, or one joins or leaves, the rest are told\n to re-render: clicking radio 3 in a group with nothing selected used to\n leave radio 1 at tabindex 0 beside it -- two tab stops in one group. The\n peers' own properties do not change, so this does not cascade. */\n _refreshPeers(group: Iterable<BdRadio>) {\n for (const radio of group) {\n if (radio !== this) radio.requestUpdate?.();\n }\n }\n\n /** The defining behaviour of a radio: the rest of the group lets go. */\n _exclusive(group = this._group) {\n for (const radio of group) {\n if (radio !== this && radio.checked) radio.checked = false;\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n // what reset returns to, as in bd-checkbox: checked reflects, so the\n // attribute cannot hold the default\n this._defaults ??= { checked: this.checked };\n const owner = this._owner;\n if (owner?.name) this.name = owner.name;\n this._refreshPeers(this._group);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n // detached, this radio can no longer find its group, so it tells the one\n // it was last rendered in\n this._refreshPeers(this._peers ?? []);\n }\n\n willUpdate(changed: PropertyValues<this>) {\n /* The group, read once an update. The tab stop, the validity, the\n position in the set and the peers to tell all ask it, and each read is\n a scan of the whole root: it was read four times a render, on every\n radio a change re-renders. */\n this._groupNow = this._group;\n /* A radio checked from script clears the rest, as a native one does. Not\n on its first render: what a page wrote is taken as written, so a page\n that renders one name in several places -- pricing cards, each with its\n own \"billing\" pair -- loads every pair as it always did. */\n if (changed.has(\"checked\") && this.checked && this.hasUpdated) this._exclusive(this._groupNow);\n }\n\n updated(changed: PropertyValues<this>) {\n const group = this._groupNow;\n // _formDisabled is protected, so PropertyValues<this> does not list it as a key\n if ([\"checked\", \"disabled\", \"name\", \"required\", \"_formDisabled\"].some(p => (changed as Map<PropertyKey, unknown>).has(p))) {\n // a radio renamed out of a group leaves its old peers to re-decide too\n this._refreshPeers(new Set([...(this._peers ?? []), ...group]));\n }\n this._peers = group;\n\n this._internals.setFormValue(this.checked ? this.value || \"on\" : null, String(this.checked));\n // the inner radio carries `required` only while the group is missing a\n // choice, so it is invalid exactly when the group is -- see render()\n this._mirrorValidity(this._control);\n }\n\n formResetCallback() {\n super.formResetCallback();\n // never connected, it has no default yet and keeps what it holds, as in\n // bd-checkbox\n if (!this._defaults) return;\n this.checked = this._defaults.checked;\n }\n\n formStateRestoreCallback(state: string | File | FormData | null) {\n this.checked = state === \"true\";\n }\n\n // a native radio is selected when its label is clicked, or on el.click()\n protected _activate() {\n this._control?.click();\n }\n\n /* A native radio fires change only when it becomes checked. The rest of the\n group lets go before the event, so a handler reading the group sees one\n selection, not two. */\n _onChange() {\n this._exclusive();\n this.checked = true;\n\n this.dispatchEvent(\n new CustomEvent(\"change\", {\n detail : { name: this.name, value: this.value },\n bubbles : true,\n composed: true\n })\n );\n }\n\n /** Move to the next or previous enabled radio, focus it, and select it. */\n _move(step: number) {\n const enabled = this._group.filter(r => !r._isDisabled);\n if (enabled.length < 2) return;\n const from = enabled.indexOf(this);\n const next = enabled[(from + step + enabled.length) % enabled.length];\n next._control!.focus();\n // a click, as the browser sends one when the arrow keys select a radio:\n // it checks the radio and fires input and change on the way\n next._control!.click();\n }\n\n /* The arrow keys are the group's, and the browser's own group here is this\n one radio, so they are handled here. Space is the native radio's own, and\n Enter submits the form, as it does from a native radio (see\n shared/form-control.ts). */\n _onKeydown(e: KeyboardEvent) {\n if (e.key === \"Enter\") {\n e.preventDefault();\n this._submitImplicitly();\n return;\n }\n let step = NEXT_KEYS.includes(e.key) ? 1 : PREV_KEYS.includes(e.key) ? -1 : 0;\n if (!step) return;\n // left and right swap on a right-to-left page, as a native group's do\n if (e.key.endsWith(\"Left\") || e.key.endsWith(\"Right\")) step *= this.matches(\":dir(rtl)\") ? -1 : 1;\n e.preventDefault();\n this._move(step);\n }\n\n render() {\n const group = this._groupNow;\n /* The inner radio is required while the group has no choice, and only\n then. It supplies the browser's own message for an empty required\n group; marked required for good, an unselected radio beside the\n selected one would be invalid on its own and could be announced so.\n It needs a name for that: a radio without one is in no group, and the\n browser never finds it missing. Any name does -- it is the only radio\n in this root, and the host is what a form reads.\n\n Its position in the set is stated, because the browser counts each\n shadow root's radios alone and would announce every radio as 1 of 1. */\n return html`\n <label class=\"bd-radio\">\n <input\n type=\"radio\"\n name=\"choice\"\n .checked=${this.checked}\n ?disabled=${this._isDisabled}\n ?required=${this._missing(group)}\n tabindex=${this._tabbable(group) ? 0 : -1}\n aria-posinset=${group.length > 1 ? group.indexOf(this) + 1 : nothing}\n aria-setsize=${group.length > 1 ? group.length : nothing}\n @change=${this._onChange}\n @keydown=${this._onKeydown}\n />\n <span class=\"box\" part=\"box\"><span class=\"dot\"></span></span>\n <span class=\"label\" part=\"label\"><slot>${this.label}</slot></span>\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-radio\": BdRadio;\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"radio.js","names":["radioCSS","_decorate","__decorate","radio_css_default","NEXT_KEYS","PREV_KEYS","radiosOf","group","radio","byName","scope","name","form","BdRadio","FormControl","LitElement","_args","SlotController","owner","root","r","changed","p","state","enabled","next","step","nothing","property","omitEmpty","defineElement"],"sources":["../../../../src/components/radio/radio.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } 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 radioCSS from \"./radio.css.ts\";\nimport { FormControl, omitEmpty } from \"#shared/form-control.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n\nconst NEXT_KEYS = [\"ArrowDown\", \"ArrowRight\"];\nconst PREV_KEYS = [\"ArrowUp\", \"ArrowLeft\"];\n\n/* A group's radios, in document order; a group nested inside keeps its own.\n Read off the DOM rather than asked of the group, because radios upgrade\n first -- radio-group.ts imports this module -- and a group that is not\n upgraded yet has no methods to ask. */\nexport const radiosOf = (group: Element) => [...group.querySelectorAll(\"bd-radio\")]\n .filter(radio => radio.closest(\"bd-radio-group\") === group);\n\n/* Same-name radios in `scope` that no bd-radio-group has claimed and that\n belong to `form` -- a native group is the radios with one name AND one form\n owner, so two forms that each ask for a \"plan\" hold two groups: a choice in\n one neither clears the other nor answers its `required`. A radio not yet\n upgraded has no form to compare; it joins when it upgrades. */\nconst byName = (scope: ParentNode, name: string, form: HTMLFormElement | null) => [...scope.querySelectorAll<BdRadio>(`bd-radio[name=\"${CSS.escape(name)}\"]`)]\n .filter(radio => !radio._owner && (radio.form ?? null) === form);\n\n/**\n * A single radio. Selecting one clears the others in its group, and the arrow\n * keys move between them.\n *\n * Each radio is a native <input type=\"radio\"> in its own shadow root, and that\n * is exactly what the browser cannot group: a native group is the radios\n * sharing a name in one tree, and every shadow root is a tree of its own. So\n * the group is still worked out here -- exclusivity, the arrow keys, the one\n * tab stop, the position in the set -- over a bd-radio-group's radios, or,\n * without one, the same-name radios in this root, as it always was. The\n * group element is what adds role=\"radiogroup\" and its label; see\n * radio-group.ts.\n *\n * <bd-radio value=\"yearly\" checked><span slot=\"label\">Yearly</span></bd-radio>\n *\n * The label is the page's, in the `label` slot, inside the <label> around the\n * native radio, so the slotted words are the radio's name.\n */\n@defineElement(\"bd-radio\")\nclass BdRadio extends FormControl(LitElement) {\n static styles = [radioCSS];\n\n /* Reflected because the group is found by it: _group selects same-name\n radios by attribute, so a name set as a property -- radio.name = \"plan\",\n which is what a framework binding does -- left the radio in no group at\n all, with no exclusivity, no arrow keys and its own tab stop. A form\n reads it off the attribute too. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n @property({ type: String })\n value = \"\";\n // checked was left undefined, which rendered aria-checked=\"\" — not a valid\n // value, so an unselected radio announced no state at all\n @property({ type: Boolean, reflect: true })\n checked = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: Boolean })\n required = false;\n\n _defaults?: { checked: boolean };\n protected _slots = new SlotController(this, { slots: [\"label\"] });\n _groupNow!: BdRadio[];\n _peers? : BdRadio[];\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.(\"input\");\n }\n\n /** The bd-radio-group this radio belongs to, if any. */\n get _owner() {\n return this.closest(\"bd-radio-group\");\n }\n\n /** The radios this one excludes, itself included, in document order. */\n get _group() {\n const owner = this._owner;\n if (owner) return radiosOf(owner);\n if (!this.name) return [this];\n /* The tree the radio is in: a document, a shadow root, or -- taken off\n the page -- the fragment or the detached element it went with. It used\n to fall back to the live document there, so a detached radio checked\n from script cleared every same-name radio on the page. */\n const root = this.getRootNode();\n return root === this ? [this] : byName(root as ParentNode, this.name, this.form);\n }\n\n get _isDisabled() {\n return this.disabled || this._formDisabled;\n }\n\n /**\n * One tab stop per group, as the radiogroup pattern requires: the selected\n * radio, or the first enabled one when nothing is selected yet.\n */\n _tabbable(group: BdRadio[]) {\n if (this._isDisabled) return false;\n if (group.some(r => r.checked)) return this.checked;\n return group.find(r => !r._isDisabled) === this;\n }\n\n /* `required` on any radio, or on the group element, requires the group:\n one of them has to be selected. */\n _missing(group: BdRadio[]) {\n const required = this._owner?.required || group.some(r => r.required);\n return required && !group.some(r => r.checked);\n }\n\n /* The tab stop, the validity and the position in the set are group\n decisions, but each radio renders only when its own properties change.\n So when one radio's state flips, or one joins or leaves, the rest are told\n to re-render: clicking radio 3 in a group with nothing selected used to\n leave radio 1 at tabindex 0 beside it -- two tab stops in one group. The\n peers' own properties do not change, so this does not cascade. */\n _refreshPeers(group: Iterable<BdRadio>) {\n for (const radio of group) {\n if (radio !== this) radio.requestUpdate?.();\n }\n }\n\n /** The defining behaviour of a radio: the rest of the group lets go. */\n _exclusive(group = this._group) {\n for (const radio of group) {\n if (radio !== this && radio.checked) radio.checked = false;\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n // what reset returns to, as in bd-checkbox: checked reflects, so the\n // attribute cannot hold the default\n this._defaults ??= { checked: this.checked };\n const owner = this._owner;\n if (owner?.name) this.name = owner.name;\n this._refreshPeers(this._group);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n // detached, this radio can no longer find its group, so it tells the one\n // it was last rendered in\n this._refreshPeers(this._peers ?? []);\n }\n\n willUpdate(changed: PropertyValues<this>) {\n /* The group, read once an update. The tab stop, the validity, the\n position in the set and the peers to tell all ask it, and each read is\n a scan of the whole root: it was read four times a render, on every\n radio a change re-renders. */\n this._groupNow = this._group;\n /* A radio checked from script clears the rest, as a native one does. Not\n on its first render: what a page wrote is taken as written, so a page\n that renders one name in several places -- pricing cards, each with its\n own \"billing\" pair -- loads every pair as it always did. */\n if (changed.has(\"checked\") && this.checked && this.hasUpdated) this._exclusive(this._groupNow);\n }\n\n updated(changed: PropertyValues<this>) {\n const group = this._groupNow;\n // _formDisabled is protected, so PropertyValues<this> does not list it as a key\n if ([\"checked\", \"disabled\", \"name\", \"required\", \"_formDisabled\"].some(p => (changed as Map<PropertyKey, unknown>).has(p))) {\n // a radio renamed out of a group leaves its old peers to re-decide too\n this._refreshPeers(new Set([...(this._peers ?? []), ...group]));\n }\n this._peers = group;\n\n this._internals.setFormValue(this.checked ? this.value || \"on\" : null, String(this.checked));\n // the inner radio carries `required` only while the group is missing a\n // choice, so it is invalid exactly when the group is -- see render()\n this._mirrorValidity(this._control);\n }\n\n formResetCallback() {\n super.formResetCallback();\n // never connected, it has no default yet and keeps what it holds, as in\n // bd-checkbox\n if (!this._defaults) return;\n this.checked = this._defaults.checked;\n }\n\n formStateRestoreCallback(state: string | File | FormData | null) {\n this.checked = state === \"true\";\n }\n\n // a native radio is selected when its label is clicked, or on el.click()\n protected _activate() {\n this._control?.click();\n }\n\n /* A native radio fires input and then change, and only when it becomes\n checked. input leaves the shadow root by itself, retargeted to this\n element, and this listener runs on the native radio before any of the\n page's: so the rest of the group lets go here, and a handler reading the\n group, or event.target.checked, sees one selection, not two. change stops\n at the shadow root and is sent once from here (shared/form-control.ts);\n a listener reads event.target.value. */\n _onInput() {\n this._exclusive();\n this.checked = true;\n }\n\n _onChange() {\n this._relayChange();\n }\n\n /** Move to the next or previous enabled radio, focus it, and select it. */\n _move(step: number) {\n const enabled = this._group.filter(r => !r._isDisabled);\n if (enabled.length < 2) return;\n const from = enabled.indexOf(this);\n const next = enabled[(from + step + enabled.length) % enabled.length];\n next._control!.focus();\n // a click, as the browser sends one when the arrow keys select a radio:\n // it checks the radio and fires input and change on the way\n next._control!.click();\n }\n\n /* The arrow keys are the group's, and the browser's own group here is this\n one radio, so they are handled here. Space is the native radio's own, and\n Enter submits the form, as it does from a native radio (see\n shared/form-control.ts). */\n _onKeydown(e: KeyboardEvent) {\n if (e.key === \"Enter\") {\n e.preventDefault();\n this._submitImplicitly();\n return;\n }\n let step = NEXT_KEYS.includes(e.key) ? 1 : PREV_KEYS.includes(e.key) ? -1 : 0;\n if (!step) return;\n // left and right swap on a right-to-left page, as a native group's do\n if (e.key.endsWith(\"Left\") || e.key.endsWith(\"Right\")) step *= this.matches(\":dir(rtl)\") ? -1 : 1;\n e.preventDefault();\n this._move(step);\n }\n\n render() {\n const group = this._groupNow;\n /* The inner radio is required while the group has no choice, and only\n then. It supplies the browser's own message for an empty required\n group; marked required for good, an unselected radio beside the\n selected one would be invalid on its own and could be announced so.\n It needs a name for that: a radio without one is in no group, and the\n browser never finds it missing. Any name does -- it is the only radio\n in this root, and the host is what a form reads.\n\n Its position in the set is stated, because the browser counts each\n shadow root's radios alone and would announce every radio as 1 of 1. */\n return html`\n <label class=\"bd-radio\">\n <input\n type=\"radio\"\n name=\"choice\"\n .checked=${this.checked}\n ?disabled=${this._isDisabled}\n ?required=${this._missing(group)}\n tabindex=${this._tabbable(group) ? 0 : -1}\n aria-posinset=${group.length > 1 ? group.indexOf(this) + 1 : nothing}\n aria-setsize=${group.length > 1 ? group.length : nothing}\n @input=${this._onInput}\n @change=${this._onChange}\n @keydown=${this._onKeydown}\n />\n <span class=\"box\" part=\"box\"><span class=\"dot\"></span></span>\n <span class=\"label\" part=\"label\" ?hidden=${!this._slots.has(\"label\")}><slot name=\"label\"></slot></span>\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-radio\": BdRadio;\n }\n}\n"],"mappings":"A,6aASA,IAAMI,EAAY,CAAC,YAAa,YAAY,EACtCC,EAAY,CAAC,UAAW,WAAW,EAM5BC,EAAY,GAAmB,CAAC,GAAGC,EAAM,iBAAiB,UAAU,CAAC,CAAC,CAChF,OAAO,GAASC,EAAM,QAAQ,gBAAgB,IAAMD,CAAK,EAOtDE,GAAU,EAAmB,EAAc,IAAiC,CAAC,GAAGC,EAAM,iBAA0B,kBAAkB,IAAI,OAAOC,CAAI,EAAE,GAAG,CAAC,CAAC,CAC3J,OAAO,GAAS,CAACH,EAAM,SAAWA,EAAM,MAAQ,QAAUI,CAAI,EAqB3DC,EADN,cACsBC,EAAYC,CAAU,CAAC,AAAC,C,8BASrC,KAAA,KAAA,GAEC,KAAA,MAAA,GAIE,KAAA,QAAA,GAEC,KAAA,SAAA,GAEA,KAAA,SAAA,GAGQ,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAO,CAAE,CAAC,C,QArBhD,KAAA,OAAA,CAACjB,CAAQ,C,CAyBzB,IAAc,UAAoC,CAChD,OAAO,KAAK,YAAY,gBAAgB,OAAO,CACjD,CAGA,IAAI,QAAS,CACX,OAAO,KAAK,QAAQ,gBAAgB,CACtC,CAGA,IAAI,QAAS,CACX,IAAMkB,EAAQ,KAAK,OACnB,GAAIA,EAAO,OAAOZ,EAASY,CAAK,EAChC,GAAI,CAAC,KAAK,KAAM,MAAO,CAAC,IAAI,EAK5B,IAAMC,EAAO,KAAK,YAAY,EAC9B,OAAOA,IAAS,KAAO,CAAC,IAAI,EAAIV,EAAOU,EAAoB,KAAK,KAAM,KAAK,IAAI,CACjF,CAEA,IAAI,aAAc,CAChB,OAAO,KAAK,UAAY,KAAK,aAC/B,CAMA,UAAU,EAAkB,CAG1B,OAFI,KAAK,YAAoB,GACzBZ,EAAM,KAAK,GAAKa,EAAE,OAAO,EAAU,KAAK,QACrCb,EAAM,KAAK,GAAK,CAACa,EAAE,WAAW,IAAM,IAC7C,CAIA,SAAS,EAAkB,CAEzB,OADiB,KAAK,QAAQ,UAAYb,EAAM,KAAK,GAAKa,EAAE,QAAQ,IACjD,CAACb,EAAM,KAAK,GAAKa,EAAE,OAAO,CAC/C,CAQA,cAAc,EAA0B,CACtC,IAAK,IAAMZ,KAASD,EACdC,IAAU,MAAMA,EAAM,gBAAgB,CAE9C,CAGA,WAAW,EAAQ,KAAK,OAAQ,CAC9B,IAAK,IAAMA,KAASD,EACdC,IAAU,MAAQA,EAAM,UAAS,EAAM,QAAU,GAEzD,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EAGxB,KAAK,YAAc,CAAE,QAAS,KAAK,OAAQ,EAC3C,IAAMU,EAAQ,KAAK,OACfA,GAAO,OAAM,KAAK,KAAOA,EAAM,MACnC,KAAK,cAAc,KAAK,MAAM,CAChC,CAEA,sBAAuB,CACrB,MAAM,qBAAqB,EAG3B,KAAK,cAAc,KAAK,QAAU,CAAC,CAAC,CACtC,CAEA,WAAW,EAA+B,CAKxC,KAAK,UAAY,KAAK,OAKlBG,EAAQ,IAAI,SAAS,GAAK,KAAK,SAAW,KAAK,YAAY,KAAK,WAAW,KAAK,SAAS,CAC/F,CAEA,QAAQ,EAA+B,CACrC,IAAMd,EAAQ,KAAK,UAEf,CAAC,UAAW,WAAY,OAAQ,WAAY,eAAe,CAAC,CAAC,KAAK,GAAMc,EAAsC,IAAIC,CAAC,CAAC,GAEtH,KAAK,8BAAc,IAAI,IAAI,CAAC,GAAI,KAAK,QAAU,CAAC,EAAI,GAAGf,CAAK,CAAC,CAAC,EAEhE,KAAK,OAASA,EAEd,KAAK,WAAW,aAAa,KAAK,QAAU,KAAK,OAAS,KAAO,KAAM,OAAO,KAAK,OAAO,CAAC,EAG3F,KAAK,gBAAgB,KAAK,QAAQ,CACpC,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EAGnB,KAAK,YACV,KAAK,QAAU,KAAK,UAAU,QAChC,CAEA,yBAAyB,EAAwC,CAC/D,KAAK,QAAUgB,IAAU,MAC3B,CAGA,WAAsB,CACpB,KAAK,UAAU,MAAM,CACvB,CASA,UAAW,CACT,KAAK,WAAW,EAChB,KAAK,QAAU,EACjB,CAEA,WAAY,CACV,KAAK,aAAa,CACpB,CAGA,MAAM,EAAc,CAClB,IAAMC,EAAU,KAAK,OAAO,OAAO,GAAK,CAACJ,EAAE,WAAW,EACtD,GAAII,EAAQ,OAAS,EAAG,OAExB,IAAMC,EAAOD,GADAA,EAAQ,QAAQ,IACP,EAAOE,EAAOF,EAAQ,QAAUA,EAAQ,QAC9DC,EAAK,SAAU,MAAM,EAGrBA,EAAK,SAAU,MAAM,CACvB,CAMA,WAAW,EAAkB,CAC3B,GAAI,EAAE,MAAQ,QAAS,CACrB,EAAE,eAAe,EACjB,KAAK,kBAAkB,EACvB,MACF,CACA,IAAIC,EAAOtB,EAAU,SAAS,EAAE,GAAG,EAAI,EAAIC,EAAU,SAAS,EAAE,GAAG,EAAI,GAAK,EACvEqB,KAED,EAAE,IAAI,SAAS,MAAM,GAAK,EAAE,IAAI,SAAS,OAAO,KAAG,GAAQ,KAAK,QAAQ,WAAW,EAAI,GAAK,GAChG,EAAE,eAAe,EACjB,KAAK,MAAMA,CAAI,EACjB,CAEA,QAAS,CACP,IAAMnB,EAAQ,KAAK,UAWnB,MAAO,EAAI;;;;;qBAKM,KAAK,QAAQ;sBACZ,KAAK,YAAY;sBACjB,KAAK,SAASA,CAAK,EAAE;qBACtB,KAAK,UAAUA,CAAK,EAAI,EAAI,GAAG;0BAC1BA,EAAM,OAAS,EAAIA,EAAM,QAAQ,IAAI,EAAI,EAAIoB,EAAQ;yBACtDpB,EAAM,OAAS,EAAIA,EAAM,OAASoB,EAAQ;mBAChD,KAAK,SAAS;oBACb,KAAK,UAAU;qBACd,KAAK,WAAW;;;mDAGc,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;;KAG3E,CACF,EA5NG1B,EAAA,CAAA2B,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAWC,CAAU,CAAC,CAAA,EAAAhB,EAAA,UAAA,OAAA,IAAA,EAAA,EAE9DZ,EAAA,CAAA2B,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAf,EAAA,UAAA,QAAA,IAAA,EAAA,EAIzBZ,EAAA,CAAA2B,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAf,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzCZ,EAAA,CAAA2B,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAf,EAAA,UAAA,WAAA,IAAA,EAAA,EAEzCZ,EAAA,CAAA2B,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAf,EAAA,UAAA,WAAA,IAAA,EAAA,EAnB5B,EAAAZ,EAAA,CAAA6B,EAAc,UAAU,CAAA,EAAAjB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.related [hidden]{display:none}.title{margin:0 0 var(--spacing-24)}::slotted(bd-h[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-normal);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily);--bd-heading-color:var(--color-text-primary);--bd-paragraph-color:var(--color-text-primary)}.grid{gap:var(--spacing-32);grid-template-columns:minmax(0,1fr);margin:0;padding:0;list-style:none;display:grid}::slotted(bd-post-card:nth-of-type(n+4)){display:none}@container (width>=768px){.grid{gap:var(--spacing-24);grid-template-columns:repeat(3,minmax(0,1fr))}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=related-articles.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"related-articles.css.js","names":["related_articles_css_default"],"sources":["../../../../src/components/related-articles/related-articles.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, headingRole, ink } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* The related row after a post, as the shipped blog lays it out\n (www-blog-csg's templates/csg/post/related) and as Figma's csg_blog titles\n it (206:454): the title regular in the primary ink over the cards, one\n column 32 apart, and three across 24 apart from md. */\nexport default css`\n /* The row lays itself out by its own width, so it is a size container; it\n takes its column's whole width (shared/fill-width.css.ts), which a\n container would not ask for itself. */\n :host {\n display: block;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\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 .related [hidden] {\n display: none;\n }\n\n .title {\n margin: 0 0 var(--spacing-24);\n }\n\n /* Figma's title is regular 28 in the primary ink. 28 is on no scale: the\n title is the component section's heading-h3 (24 on a phone, 32 from\n lg), in regular, at whatever level the page picks. */\n ::slotted(bd-h[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h3\"))}\n --bd-heading-font-weight: var(--typography-fontWeight-normal); /* no role: Figma's related title is regular, where every heading role is medium or heavier */\n ${unsafeCSS(ink(\"strong\"))}\n }\n\n /* One column, 32 apart. */\n .grid {\n margin: 0;\n padding: 0;\n list-style: none;\n display: grid;\n gap: var(--spacing-32);\n grid-template-columns: minmax(0, 1fr);\n }\n\n /* The first three are drawn. :nth-of-type counts the cards alone among\n the host's children, whatever else the page slotted beside them. */\n ::slotted(bd-post-card:nth-of-type(n + 4)) {\n display: none;\n }\n\n /* Three across, 24 apart, once the row is md wide. */\n @container ${unsafeCSS(above(\"md\"))} {\n .grid {\n gap: var(--spacing-24);\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n`;\n"],"mappings":"A,gGAQA,IAAAA,EAAe,CAAG,ijC"}
|