@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
package/README.md
CHANGED
|
@@ -8,6 +8,15 @@ from design tokens.
|
|
|
8
8
|
npm install @repobit/dex-system-design
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Upgrading from 3.x
|
|
12
|
+
|
|
13
|
+
4.0 is a breaking release, and no 3.x name works in it. Copy moves out of
|
|
14
|
+
attributes into elements the page writes, repeated content becomes child
|
|
15
|
+
elements, and the names follow Web Awesome's. The
|
|
16
|
+
[migration guide](https://github.com/bitdefender/dex-core/blob/main/packages/dex-system-design/docs/MIGRATING-v4.md)
|
|
17
|
+
lists every renamed and removed tag, attribute, slot, event and import path.
|
|
18
|
+
It also says how to run the codemod that rewrites most of a page for you.
|
|
19
|
+
|
|
11
20
|
## Using a component
|
|
12
21
|
|
|
13
22
|
Import the component you need; importing it registers its custom element and
|
|
@@ -18,11 +27,27 @@ import '@repobit/dex-system-design/button';
|
|
|
18
27
|
```
|
|
19
28
|
|
|
20
29
|
```html
|
|
21
|
-
<bd-button
|
|
30
|
+
<bd-button appearance="primary" size="md">Buy now</bd-button>
|
|
22
31
|
```
|
|
23
32
|
|
|
24
33
|
Each component is a separate entry point — see the `exports` map in
|
|
25
|
-
`package.json` for the full list. There is no barrel import
|
|
34
|
+
`package.json` for the full list. There is no barrel import of the
|
|
35
|
+
components.
|
|
36
|
+
|
|
37
|
+
The icons are the one family with a barrel: `./icons` registers `bd-icon`
|
|
38
|
+
with every interface drawing, and `./marks` registers `bd-mark` with every
|
|
39
|
+
brand and award mark. A page that shows a few imports just those drawings
|
|
40
|
+
instead, by name; each one defines its element too:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
import '@repobit/dex-system-design/icons/check';
|
|
44
|
+
import '@repobit/dex-system-design/icons/marks/pc-mag';
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<bd-icon name="check"></bd-icon>
|
|
49
|
+
<bd-mark name="pc-mag"></bd-mark>
|
|
50
|
+
```
|
|
26
51
|
|
|
27
52
|
The package ships compiled JavaScript with TypeScript declarations, so an
|
|
28
53
|
entry point also types what it registers: `document.createElement('bd-button')`
|
|
@@ -33,8 +58,8 @@ properties carry their allowed values, and the events it sends are in
|
|
|
33
58
|
|
|
34
59
|
## Loading components
|
|
35
60
|
|
|
36
|
-
To skip working out which entry point a tag lives in — `bd-
|
|
37
|
-
`./
|
|
61
|
+
To skip working out which entry point a tag lives in — `bd-li` is
|
|
62
|
+
`./list`'s, `bd-sup` is `./annotation`'s, `bd-mark` is `./marks`'s —
|
|
38
63
|
let the loader do it. It carries a map of every tag the package registers to
|
|
39
64
|
the module that registers it (about 2 KB gzipped with the loader), and imports
|
|
40
65
|
only the modules a page actually uses.
|
|
@@ -44,8 +69,8 @@ import { load, autoload } from '@repobit/dex-system-design/loader';
|
|
|
44
69
|
|
|
45
70
|
// build, wait, then show: nothing renders half-defined
|
|
46
71
|
const layout = document.createElement('bd-grid');
|
|
47
|
-
layout.append(document.createElement('bd-stat
|
|
48
|
-
await load(layout); // imports ./grid, ./stat and ./
|
|
72
|
+
layout.append(document.createElement('bd-stat'), document.createElement('bd-p'));
|
|
73
|
+
await load(layout); // imports ./grid, ./stat and ./p
|
|
49
74
|
container.replaceChildren(layout);
|
|
50
75
|
|
|
51
76
|
// and anything added to the page later, once
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bd-abstract: csg_blog's abstract, frame 69:830 node 69:1141 -- a 2px
|
|
3
|
+
* brand bar, 16 from the words, which are italic 20 in the primary ink.
|
|
4
|
+
* The 20 is body-lead's (18 at 320, 20 from lg), at the role's own leading;
|
|
5
|
+
* Figma's leading is Plex's "normal", no decision.
|
|
6
|
+
*/
|
|
7
|
+
export declare const abstractCSS: import("lit").CSSResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{max-width:var(--content-width-readable);padding-left:var(--spacing-16);border-left:var(--border-width-2) solid var(--color-border-brand);display:block}::slotted(bd-p){margin:0 0 var(--spacing-16);--bd-paragraph-margin-bottom:0;--bd-paragraph-color:var(--color-text-primary);--bd-paragraph-font-size:var(--typography-body-lead-fontSize);--bd-paragraph-font-weight:var(--typography-body-lead-fontWeight);--bd-paragraph-line-height:var(--typography-body-lead-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-lead-letterSpacing);font-style:italic}::slotted(bd-p:last-child){margin-bottom:0}`;export{t as abstractCSS};
|
|
2
|
+
//# sourceMappingURL=abstract.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstract.css.js","names":["abstractCSS"],"sources":["../../../../src/components/abstract/abstract.css.ts"],"sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { bodyRole } from '#shared/token-scales.ts';\n\n/**\n * bd-abstract: csg_blog's abstract, frame 69:830 node 69:1141 -- a 2px\n * brand bar, 16 from the words, which are italic 20 in the primary ink.\n * The 20 is body-lead's (18 at 320, 20 from lg), at the role's own leading;\n * Figma's leading is Plex's \"normal\", no decision.\n */\nexport const abstractCSS = css`\n :host {\n display: block;\n /* not the column: the prose measure, as the body's paragraphs */\n max-width: var(--content-width-readable);\n padding-left: var(--spacing-16);\n border-left: var(--border-width-2) solid var(--color-border-brand);\n }\n\n /* The page's paragraphs, at the lead role through bd-p's hooks. Italic is\n no hook of bd-p's and needs none: its <p> inherits font-style from its\n host, which this rule reaches. */\n ::slotted(bd-p) {\n margin: 0 0 var(--spacing-16);\n font-style: italic;\n --bd-paragraph-margin-bottom: 0;\n --bd-paragraph-color: var(--color-text-primary);\n ${unsafeCSS(bodyRole('body-lead'))}\n }\n\n /* The abstract ends at its last paragraph: what follows it is spaced by\n whatever holds it. */\n ::slotted(bd-p:last-child) {\n margin-bottom: 0;\n }\n`;\n"],"mappings":"A,4DASA,IAAaA,EAAc,CAAG,kmB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../p/p.js";
|
|
4
|
+
/**
|
|
5
|
+
* An article's abstract: the intro paragraphs after its title, set off by a
|
|
6
|
+
* brand bar.
|
|
7
|
+
*
|
|
8
|
+
* <bd-abstract>
|
|
9
|
+
* <bd-p>Online investment scams have evolved beyond fake websites …</bd-p>
|
|
10
|
+
* <bd-p>…</bd-p>
|
|
11
|
+
* </bd-abstract>
|
|
12
|
+
*
|
|
13
|
+
* The paragraphs are the page's bd-p, as in the body. The abstract gives
|
|
14
|
+
* them its look -- the lead role, italic, the primary ink -- through the
|
|
15
|
+
* --bd-paragraph-* hooks on the paragraphs slotted here, so a paragraph's
|
|
16
|
+
* own <em> and links work as they do anywhere.
|
|
17
|
+
*
|
|
18
|
+
* bd-blog-abstract until the blog folded into the package's components
|
|
19
|
+
* (DEX-29414), with bd-blog-paragraph children. Its last paragraph kept
|
|
20
|
+
* 24px under it, which an article took away with --blog-abstract-spacing-
|
|
21
|
+
* after-last; the abstract ends at its last paragraph now.
|
|
22
|
+
*/
|
|
23
|
+
export declare class BdAbstract extends LitElement {
|
|
24
|
+
static styles: import("lit").CSSResult[];
|
|
25
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
interface HTMLElementTagNameMap {
|
|
29
|
+
'bd-abstract': BdAbstract;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{abstractCSS as e}from"./abstract.css.js";import{defineElement as t}from"../shared/define-element.js";import"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{LitElement as r,html as i}from"lit";var a=class extends r{static{this.styles=[e]}render(){return i`<slot></slot>`}};a=n([t(`bd-abstract`)],a);export{a as BdAbstract};
|
|
2
|
+
//# sourceMappingURL=abstract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstract.js","names":["_decorate","__decorate","BdAbstract","LitElement","abstractCSS","defineElement"],"sources":["../../../../src/components/abstract/abstract.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\n// the paragraphs the page writes\nimport '#components/p/p.ts';\nimport { abstractCSS } from './abstract.css.ts';\n\n/**\n * An article's abstract: the intro paragraphs after its title, set off by a\n * brand bar.\n *\n * <bd-abstract>\n * <bd-p>Online investment scams have evolved beyond fake websites …</bd-p>\n * <bd-p>…</bd-p>\n * </bd-abstract>\n *\n * The paragraphs are the page's bd-p, as in the body. The abstract gives\n * them its look -- the lead role, italic, the primary ink -- through the\n * --bd-paragraph-* hooks on the paragraphs slotted here, so a paragraph's\n * own <em> and links work as they do anywhere.\n *\n * bd-blog-abstract until the blog folded into the package's components\n * (DEX-29414), with bd-blog-paragraph children. Its last paragraph kept\n * 24px under it, which an article took away with --blog-abstract-spacing-\n * after-last; the abstract ends at its last paragraph now.\n */\n@defineElement('bd-abstract')\nexport class BdAbstract extends LitElement {\n static styles = [abstractCSS];\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-abstract': BdAbstract;\n }\n}\n"],"mappings":"A,kRA4BO,IAAME,EAAN,cAAyBC,CAAW,C,OACzB,KAAA,OAAA,CAACC,CAAW,C,CAE5B,QAAS,CACP,MAAO,EAAI,eACb,CACF,EAPC,EAAAJ,EAAA,CAAAK,EAAc,aAAa,CAAA,EAAAH,CAAA,E"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { ObserverController } from "../shared/controller.observer.js";
|
|
3
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
4
|
+
import "../../tokens/tokens.js";
|
|
5
|
+
import "../shared/events.js";
|
|
6
|
+
import { type AccordionBackground, type ItemAppearance } from "./accordion.js";
|
|
7
|
+
import "../badge/badge.js";
|
|
8
|
+
import "../h/h.js";
|
|
9
|
+
import "../list/list-item/list-item.js";
|
|
10
|
+
import "../list/list.js";
|
|
11
|
+
import "../p/p.js";
|
|
12
|
+
import "../icons/arrow-down.js";
|
|
13
|
+
import "../icons/arrow-up.js";
|
|
14
|
+
import "../icons/minus.js";
|
|
15
|
+
import "../icons/plus.js";
|
|
16
|
+
export { BdAccordion } from "./accordion.js";
|
|
17
|
+
/**
|
|
18
|
+
* One disclosure: a title the reader activates, and the panel it opens.
|
|
19
|
+
*
|
|
20
|
+
* <bd-accordion-item>
|
|
21
|
+
* <bd-h slot="title" as="h3">How do I install it?</bd-h>
|
|
22
|
+
* <bd-badge slot="badge" appearance="fill" variant="brand" size="sm">New</bd-badge>
|
|
23
|
+
* <bd-p appearance="small">Download the installer from your account.</bd-p>
|
|
24
|
+
* </bd-accordion-item>
|
|
25
|
+
*
|
|
26
|
+
* It replaces bd-accordion-item and bd-accordion-bg-item, which drew the same
|
|
27
|
+
* disclosure in two DOMs; one DOM draws every look now, the WAI-ARIA
|
|
28
|
+
* accordion pattern:
|
|
29
|
+
*
|
|
30
|
+
* div[role=heading][aria-level] > button[aria-expanded][aria-controls]
|
|
31
|
+
*
|
|
32
|
+
* with the title and badge slots inside the button and the panel after the
|
|
33
|
+
* heading. The level is the slotted bd-h's -- the page's outline -- and the
|
|
34
|
+
* item writes `in-control` on that bd-h, which then renders its hN as
|
|
35
|
+
* role="none": the words are the button's name inside the item's heading,
|
|
36
|
+
* announced once. The badge is slotted, not cloned.
|
|
37
|
+
*
|
|
38
|
+
* `appearance` is the look: standard, small, faq and terms, which a
|
|
39
|
+
* bd-accordion hands to every item whose page set none -- an item's own, by
|
|
40
|
+
* attribute or by property, wins -- and chevron, the text-and-arrow look an
|
|
41
|
+
* item has on its own outside a group. `background` is the ground of the
|
|
42
|
+
* item's own box, N5's words: none (default) draws none; container and tint
|
|
43
|
+
* make the item a card, on --color-surface-container or the brand wash, with
|
|
44
|
+
* a 16px inset. It is the item's alone and no group hands it down: a group's
|
|
45
|
+
* `background` is its band, and 3.x's FAQ items were cards on a group that
|
|
46
|
+
* drew no band, so the two are different boxes with different grounds.
|
|
47
|
+
*
|
|
48
|
+
* Opening and closing -- a click, Enter or Space, find in page reaching the
|
|
49
|
+
* closed panel, or the page setting `open` -- sends bd-show or bd-hide, and
|
|
50
|
+
* bd-after-show or bd-after-hide once the panel has finished (N8). None is
|
|
51
|
+
* cancelable: the page toggles the item through `open`.
|
|
52
|
+
*/
|
|
53
|
+
export declare class BdAccordionItem extends LitElement {
|
|
54
|
+
static styles: import("lit").CSSResult[];
|
|
55
|
+
/** Whether the panel is shown. Reflected. */
|
|
56
|
+
open: boolean;
|
|
57
|
+
/** The look: standard (default), small, faq, terms or chevron. In a bd-accordion, the group's unless the item sets its own. */
|
|
58
|
+
appearance: ItemAppearance;
|
|
59
|
+
/** The item's own ground: none (default), container or tint, which make it a card. Not handed down by a group. */
|
|
60
|
+
background: AccordionBackground;
|
|
61
|
+
private _group;
|
|
62
|
+
_ownAppearance: boolean;
|
|
63
|
+
private _ownWrite;
|
|
64
|
+
private readonly _id;
|
|
65
|
+
private _controlled;
|
|
66
|
+
private _shown;
|
|
67
|
+
_slots: SlotController<"title" | "badge">;
|
|
68
|
+
_levels: ObserverController<MutationObserver>;
|
|
69
|
+
requestUpdate(...args: Parameters<LitElement["requestUpdate"]>): void;
|
|
70
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
71
|
+
connectedCallback(): void;
|
|
72
|
+
protected update(changed: PropertyValues<this>): void;
|
|
73
|
+
/** bd-accordion's appearance, which the item takes unless the page chose its own. */
|
|
74
|
+
_takeAppearance(value: ItemAppearance): void;
|
|
75
|
+
private _quietly;
|
|
76
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
77
|
+
updated(changed: PropertyValues<this>): void;
|
|
78
|
+
toggle(): void;
|
|
79
|
+
_onBeforeMatch(): void;
|
|
80
|
+
_onTriggerKeydown(e: KeyboardEvent): void;
|
|
81
|
+
/** Move keyboard focus to this item's disclosure trigger. */
|
|
82
|
+
focusTrigger(): void;
|
|
83
|
+
private _markHeading;
|
|
84
|
+
private _syncShown;
|
|
85
|
+
private _afterChange;
|
|
86
|
+
firstUpdated(): void;
|
|
87
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
88
|
+
}
|
|
89
|
+
declare global {
|
|
90
|
+
interface HTMLElementTagNameMap {
|
|
91
|
+
"bd-accordion-item": BdAccordionItem;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{ObserverController as r}from"../shared/controller.observer.js";import{SlotController as i}from"../shared/controller.slot.js";import"../h/h.js";import{accordionItemCSS as a}from"./accordion.css.js";import{ACCORDION_BACKGROUNDS as o,BdAccordion as s,ITEM_APPEARANCES as c}from"./accordion.js";import"../badge/badge.js";import"../list/list-item/list-item.js";import"../list/list.js";import"../icons/arrow-down.js";import"../icons/arrow-up.js";import"../icons/minus.js";import"../icons/plus.js";import{onTriggerKeydown as l}from"./accordion-keyboard.js";import{panelHidden as u}from"./accordion-panel.js";import{LitElement as d,html as f,nothing as p}from"lit";import{property as m}from"lit/decorators.js";var h=0,g=[`as`,`aria-level`];function _(e){let t=e.getAttribute(`aria-level`)?.trim()??``;if(/^[1-9]\d*$/.test(t))return t;let n=(e.getAttribute(`as`)??`h1`).trim().toLowerCase();return/^h?([1-6])$/.exec(n)?.[1]??`2`}var v=class extends d{constructor(...e){super(...e),this.open=!1,this.appearance=`standard`,this.background=`none`,this._group=null,this._ownAppearance=this.hasAttribute(`appearance`),this._ownWrite=!1,this._id=`bd-accordion-${++h}`,this._controlled=/* @__PURE__ */ new Set,this._shown=!1,this._slots=new i(this,{slots:[`title`,`badge`]}),this._levels=new r(this,()=>new MutationObserver(()=>this.requestUpdate()),e=>e.observe(this,{subtree:!0,attributes:!0,attributeFilter:g}))}static{this.styles=[a]}requestUpdate(...e){e[0]===`appearance`&&!this._ownWrite&&this._ownAppearance!==void 0&&(this._ownAppearance=!0),super.requestUpdate(...e)}attributeChangedCallback(e,t,n){e!==`appearance`||this._ownWrite?super.attributeChangedCallback(e,t,n):(this._quietly(()=>super.attributeChangedCallback(e,t,n)),this._ownAppearance=n!==null,n===null&&this._group?.hasUpdated&&this._takeAppearance(this._group.appearance))}connectedCallback(){super.connectedCallback();let e=this.parentElement,t=e?.localName===`bd-accordion`?e:null;this._group&&!t&&!this._ownAppearance&&this._quietly(()=>{this.appearance=`standard`}),this._group=t}update(e){this._quietly(()=>super.update(e))}_takeAppearance(e){this._ownAppearance||this._quietly(()=>{this.appearance=e})}_quietly(e){let t=this._ownWrite;this._ownWrite=!0;try{e()}finally{this._ownWrite=t}}willUpdate(e){e.has(`appearance`)&&!t(c,this.appearance)&&this._quietly(()=>{this.appearance=`standard`}),e.has(`background`)&&!t(o,this.background)&&(this.background=`none`)}updated(e){this._markHeading(),e.has(`open`)&&e.get(`open`)!==void 0&&this._syncShown()}toggle(){this.open=!this.open}_onBeforeMatch(){this.open=!0}_onTriggerKeydown(e){l(this,e)}focusTrigger(){this.renderRoot?.querySelector(`.header`)?.focus()}_markHeading(){let e=new Set(this._slots.elements(`title`).filter(e=>e.localName===`bd-h`));for(let t of this._controlled)e.has(t)||t.removeAttribute(`in-control`);for(let t of e)t.hasAttribute(`in-control`)||t.setAttribute(`in-control`,``);this._controlled=e}_syncShown(){this.open!==this._shown&&(this._shown=this.open,this.open?this.dispatchEvent(new CustomEvent(`bd-show`,{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent(`bd-hide`,{bubbles:!0,composed:!0})),this._afterChange(this.open))}async _afterChange(e){await this.updateComplete;let t=this.renderRoot.querySelector(`.content`);await Promise.allSettled((t?.getAnimations({subtree:!0})??[]).map(e=>e.finished)),this._shown===e&&(e?this.dispatchEvent(new CustomEvent(`bd-after-show`,{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent(`bd-after-hide`,{bubbles:!0,composed:!0})))}firstUpdated(){this._shown=this.open}render(){let e=this._slots.elements(`title`).find(e=>e.localName===`bd-h`),t=this.appearance===`chevron`,n=t?f`<span class="toggle" aria-hidden="true"><bd-icon name=${this.open?`arrow-up`:`arrow-down`} size="md"></bd-icon></span>`:f`<span class="toggle" aria-hidden="true"><bd-icon name=${this.open?`minus`:`plus`} size="sm"></bd-icon></span>`;return f`<div class="disclosure">
|
|
2
|
+
<div class="heading" role="heading" aria-level=${e?_(e):p}>
|
|
3
|
+
<button
|
|
4
|
+
type="button"
|
|
5
|
+
class="header"
|
|
6
|
+
id="${this._id}-header"
|
|
7
|
+
aria-expanded="${this.open}"
|
|
8
|
+
aria-controls="${this._id}-panel"
|
|
9
|
+
@click=${this.toggle}
|
|
10
|
+
@keydown=${this._onTriggerKeydown}
|
|
11
|
+
>${t?p:n}<span class="title-badge-wrapper">
|
|
12
|
+
<span class="title" ?hidden=${!this._slots.has(`title`)}><slot name="title"></slot></span>
|
|
13
|
+
<span class="badge" ?hidden=${!this._slots.has(`badge`)}><slot name="badge"></slot></span>
|
|
14
|
+
</span>${t?n:p}</button>
|
|
15
|
+
</div>
|
|
16
|
+
<div
|
|
17
|
+
id="${this._id}-panel"
|
|
18
|
+
class="content"
|
|
19
|
+
role=${this.open?`region`:p}
|
|
20
|
+
aria-labelledby=${this.open?`${this._id}-header`:p}
|
|
21
|
+
hidden=${u(this.open)}
|
|
22
|
+
@beforematch=${this._onBeforeMatch}
|
|
23
|
+
><slot></slot></div>
|
|
24
|
+
</div>`}};n([m({type:Boolean,reflect:!0})],v.prototype,`open`,void 0),n([m({type:String,reflect:!0})],v.prototype,`appearance`,void 0),n([m({type:String,reflect:!0})],v.prototype,`background`,void 0),v=n([e(`bd-accordion-item`)],v);export{s as BdAccordion,v as BdAccordionItem};
|
|
25
|
+
//# sourceMappingURL=accordion-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.js","names":["_decorate","__decorate","ids","LEVEL_ATTRIBUTES","levelOf","aria","heading","as","BdAccordionItem","LitElement","_args","SlotController","ObserverController","observer","accordionItemCSS","args","name","old","value","parent","group","changed","was","write","isOneOf","ITEM_APPEARANCES","ACCORDION_BACKGROUNDS","onTriggerKeydown","now","el","panel","a","shown","chevron","toggle","nothing","panelHidden","property","defineElement","BdAccordion"],"sources":["../../../../src/components/accordion/accordion-item.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\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 \"#shared/events.ts\";\n/* ./accordion registers the family through this module: the item, and the\n group that hands it its look (accordion.ts), as ./card does. */\nimport {\n ACCORDION_BACKGROUNDS, ITEM_APPEARANCES,\n type AccordionBackground, type BdAccordion, type ItemAppearance\n} from \"./accordion.ts\";\n/* The atoms the page writes into the item's slots: the title, a badge beside\n it, and the panel's copy. 3.x drew the title as text and cloned the badge,\n and a page importing only this module still gets what it writes. */\nimport \"#components/badge/badge.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/list/list-item/list-item.ts\";\nimport \"#components/list/list.ts\";\nimport \"#components/p/p.ts\";\nimport \"#components/icons/arrow-down.ts\";\nimport \"#components/icons/arrow-up.ts\";\nimport \"#components/icons/minus.ts\";\nimport \"#components/icons/plus.ts\";\nimport { accordionItemCSS } from \"./accordion.css.ts\";\nimport { onTriggerKeydown } from \"./accordion-keyboard.ts\";\nimport { panelHidden } from \"./accordion-panel.ts\";\n\nexport { BdAccordion } from \"./accordion.ts\";\n\nlet ids = 0;\n\n/* What the item reads off the bd-h in its title for the level. */\nconst LEVEL_ATTRIBUTES = [\"as\", \"aria-level\"];\n\n/* The level bd-h renders: a valid aria-level, else its `as` (h1-h6 or 1-6;\n h1 when unset, h2 when unknown), read from the attributes so a heading not\n yet upgraded answers the same. */\nfunction levelOf(heading: Element) {\n const aria = heading.getAttribute(\"aria-level\")?.trim() ?? \"\";\n if (/^[1-9]\\d*$/.test(aria)) return aria;\n const as = (heading.getAttribute(\"as\") ?? \"h1\").trim().toLowerCase();\n return /^h?([1-6])$/.exec(as)?.[1] ?? \"2\";\n}\n\n/**\n * One disclosure: a title the reader activates, and the panel it opens.\n *\n * <bd-accordion-item>\n * <bd-h slot=\"title\" as=\"h3\">How do I install it?</bd-h>\n * <bd-badge slot=\"badge\" appearance=\"fill\" variant=\"brand\" size=\"sm\">New</bd-badge>\n * <bd-p appearance=\"small\">Download the installer from your account.</bd-p>\n * </bd-accordion-item>\n *\n * It replaces bd-accordion-item and bd-accordion-bg-item, which drew the same\n * disclosure in two DOMs; one DOM draws every look now, the WAI-ARIA\n * accordion pattern:\n *\n * div[role=heading][aria-level] > button[aria-expanded][aria-controls]\n *\n * with the title and badge slots inside the button and the panel after the\n * heading. The level is the slotted bd-h's -- the page's outline -- and the\n * item writes `in-control` on that bd-h, which then renders its hN as\n * role=\"none\": the words are the button's name inside the item's heading,\n * announced once. The badge is slotted, not cloned.\n *\n * `appearance` is the look: standard, small, faq and terms, which a\n * bd-accordion hands to every item whose page set none -- an item's own, by\n * attribute or by property, wins -- and chevron, the text-and-arrow look an\n * item has on its own outside a group. `background` is the ground of the\n * item's own box, N5's words: none (default) draws none; container and tint\n * make the item a card, on --color-surface-container or the brand wash, with\n * a 16px inset. It is the item's alone and no group hands it down: a group's\n * `background` is its band, and 3.x's FAQ items were cards on a group that\n * drew no band, so the two are different boxes with different grounds.\n *\n * Opening and closing -- a click, Enter or Space, find in page reaching the\n * closed panel, or the page setting `open` -- sends bd-show or bd-hide, and\n * bd-after-show or bd-after-hide once the panel has finished (N8). None is\n * cancelable: the page toggles the item through `open`.\n */\n@defineElement(\"bd-accordion-item\")\nexport class BdAccordionItem extends LitElement {\n static styles = [accordionItemCSS];\n\n /** Whether the panel is shown. Reflected. */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /** The look: standard (default), small, faq, terms or chevron. In a bd-accordion, the group's unless the item sets its own. */\n @property({ type: String, reflect: true })\n appearance: ItemAppearance = \"standard\";\n\n /** The item's own ground: none (default), container or tint, which make it a card. Not handed down by a group. */\n @property({ type: String, reflect: true })\n background: AccordionBackground = \"none\";\n\n /* Whether the item's parent is a bd-accordion, whose look it takes. Read\n on connect, so an item moved into or out of a group follows: out of one,\n it drops the look the group gave it (connectedCallback); into one, the\n group's slotchange pushes its own. */\n private _group: BdAccordion | null = null;\n\n /* Whether the page chose this item's appearance, which the group then\n leaves alone: in its markup, through an attribute bound after the item\n was created, or by setting the property, as React 19 and a Lit\n `.appearance=` binding do. Read before Lit's first update reflects the\n default onto the attribute -- after that, hasAttribute() is true of every\n item -- and followed through every later write but the item's own: its\n reflection, the group's push and willUpdate's repair. bd-card's\n _ownAppearance. */\n _ownAppearance = this.hasAttribute(\"appearance\");\n /* Set while the item writes `appearance` itself, so the write is not taken for the page's. */\n private _ownWrite = false;\n\n private readonly _id = `bd-accordion-${++ids}`;\n /* The bd-h elements this item marked in-control, so one that leaves the title slot is unmarked. */\n private _controlled = new Set<Element>();\n /* What bd-show and bd-hide last reported. */\n private _shown = false;\n\n _slots = new SlotController(this, { slots: [\"title\", \"badge\"] });\n\n /* The title's level is an attribute of the page's bd-h, and an edit to it is\n no slotchange, so the item watches its children for the two that set it. */\n _levels = new ObserverController(this,\n () => new MutationObserver(() => this.requestUpdate()),\n observer => observer.observe(this, { subtree: true, attributes: true, attributeFilter: LEVEL_ATTRIBUTES }));\n\n /* Every write of the property reaches here, the page's included. The\n default is written before _ownAppearance is initialised, which is how\n that one write is told apart from the page's. */\n requestUpdate(...args: Parameters<LitElement[\"requestUpdate\"]>) {\n if (args[0] === \"appearance\" && !this._ownWrite && this._ownAppearance !== undefined) this._ownAppearance = true;\n super.requestUpdate(...args);\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null) {\n if (name !== \"appearance\" || this._ownWrite) {\n super.attributeChangedCallback(name, old, value);\n return;\n }\n // the page's attribute: the property follows it, and the item is the page's while it is there\n this._quietly(() => super.attributeChangedCallback(name, old, value));\n this._ownAppearance = value !== null;\n // the page took its own away: in a group, the group's is the item's again\n if (value === null && this._group?.hasUpdated) this._takeAppearance(this._group.appearance);\n }\n\n connectedCallback() {\n super.connectedCallback();\n const parent = this.parentElement;\n const group = parent?.localName === \"bd-accordion\" ? parent as BdAccordion : null;\n /* Out of its group, the look the group handed it is nobody's: an item the\n page gave no look of its own goes back to the default. Into a group,\n the group's slotchange pushes its own. */\n if (this._group && !group && !this._ownAppearance) this._quietly(() => { this.appearance = \"standard\"; });\n this._group = group;\n }\n\n /* ReactiveElement reflects properties to attributes inside update(). */\n protected update(changed: PropertyValues<this>) {\n this._quietly(() => super.update(changed));\n }\n\n /** bd-accordion's appearance, which the item takes unless the page chose its own. */\n _takeAppearance(value: ItemAppearance) {\n if (!this._ownAppearance) this._quietly(() => { this.appearance = value; });\n }\n\n private _quietly(write: () => void) {\n const was = this._ownWrite;\n this._ownWrite = true;\n try {\n write();\n } finally {\n this._ownWrite = was;\n }\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(ITEM_APPEARANCES, this.appearance)) this._quietly(() => { this.appearance = \"standard\"; });\n if (changed.has(\"background\") && !isOneOf(ACCORDION_BACKGROUNDS, this.background)) this.background = \"none\";\n }\n\n updated(changed: PropertyValues<this>) {\n this._markHeading();\n /* The first update is the state the item starts in, not a change. */\n if (changed.has(\"open\") && changed.get(\"open\") !== undefined) this._syncShown();\n }\n\n toggle() {\n this.open = !this.open;\n }\n\n /* Find in page matched text in the closed panel: open, so the item's state\n agrees with what the browser is about to reveal (accordion-panel.ts). */\n _onBeforeMatch() {\n this.open = true;\n }\n\n _onTriggerKeydown(e: KeyboardEvent) {\n onTriggerKeydown(this, e);\n }\n\n /** Move keyboard focus to this item's disclosure trigger. */\n focusTrigger() {\n this.renderRoot?.querySelector<HTMLElement>(\".header\")?.focus();\n }\n\n /* The bd-h elements in the title slot render their hN as role=\"none\"; one\n the page moved out of the slot reports its heading again. */\n private _markHeading() {\n const now = new Set(this._slots.elements(\"title\").filter(el => el.localName === \"bd-h\"));\n for (const el of this._controlled) if (!now.has(el)) el.removeAttribute(\"in-control\");\n for (const el of now) if (!el.hasAttribute(\"in-control\")) el.setAttribute(\"in-control\", \"\");\n this._controlled = now;\n }\n\n /* bd-show / bd-hide when `open` changes, whatever changed it, then\n bd-after-show / bd-after-hide once the panel has finished. The panel has\n no transition of its own, so that is once the render is done -- the\n animation list is still read, so a page that animates the panel is\n waited for, as bd-tooltip waits for its fade. */\n private _syncShown() {\n if (this.open === this._shown) return;\n this._shown = this.open;\n // each name spelled once, as a literal, so check:element-api can read it\n if (this.open) this.dispatchEvent(new CustomEvent(\"bd-show\", { bubbles: true, composed: true }));\n else this.dispatchEvent(new CustomEvent(\"bd-hide\", { bubbles: true, composed: true }));\n void this._afterChange(this.open);\n }\n\n private async _afterChange(shown: boolean) {\n await this.updateComplete;\n const panel = this.renderRoot.querySelector(\".content\");\n await Promise.allSettled((panel?.getAnimations({ subtree: true }) ?? []).map(a => a.finished));\n if (this._shown !== shown) return;\n if (shown) this.dispatchEvent(new CustomEvent(\"bd-after-show\", { bubbles: true, composed: true }));\n else this.dispatchEvent(new CustomEvent(\"bd-after-hide\", { bubbles: true, composed: true }));\n }\n\n firstUpdated() {\n this._shown = this.open;\n }\n\n /* The trigger and its panel sit in one .disclosure, the box the focus ring\n goes round -- see the note on .disclosure in accordion.css.ts. The\n heading holds the button, and the button the title and badge slots\n (the WAI-ARIA accordion pattern); the panel is a region named by the\n button while it is open. Closed, it is not: a hidden=\"until-found\" panel\n keeps its box, and Chromium exposed it as an empty named region, a\n landmark per closed item (measured with axNode). The chevron look puts\n its arrow after the words. */\n render() {\n const heading = this._slots.elements(\"title\").find(el => el.localName === \"bd-h\");\n const chevron = this.appearance === \"chevron\";\n const toggle = chevron\n ? html`<span class=\"toggle\" aria-hidden=\"true\"><bd-icon name=${this.open ? \"arrow-up\" : \"arrow-down\"} size=\"md\"></bd-icon></span>`\n : html`<span class=\"toggle\" aria-hidden=\"true\"><bd-icon name=${this.open ? \"minus\" : \"plus\"} size=\"sm\"></bd-icon></span>`;\n return html`<div class=\"disclosure\">\n <div class=\"heading\" role=\"heading\" aria-level=${heading ? levelOf(heading) : nothing}>\n <button\n type=\"button\"\n class=\"header\"\n id=\"${this._id}-header\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._id}-panel\"\n @click=${this.toggle}\n @keydown=${this._onTriggerKeydown}\n >${chevron ? nothing : toggle}<span class=\"title-badge-wrapper\">\n <span class=\"title\" ?hidden=${!this._slots.has(\"title\")}><slot name=\"title\"></slot></span>\n <span class=\"badge\" ?hidden=${!this._slots.has(\"badge\")}><slot name=\"badge\"></slot></span>\n </span>${chevron ? toggle : nothing}</button>\n </div>\n <div\n id=\"${this._id}-panel\"\n class=\"content\"\n role=${this.open ? \"region\" : nothing}\n aria-labelledby=${this.open ? `${this._id}-header` : nothing}\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n ><slot></slot></div>\n </div>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-accordion-item\": BdAccordionItem;\n }\n}\n"],"mappings":"A,m7BAiCA,IAAIE,EAAM,EAGJC,EAAmB,CAAC,KAAM,YAAY,EAK5C,SAASC,EAAQ,EAAkB,CACjC,IAAMC,EAAOC,EAAQ,aAAa,YAAY,CAAC,EAAE,KAAK,GAAK,GAC3D,GAAI,aAAa,KAAKD,CAAI,EAAG,OAAOA,EACpC,IAAME,GAAMD,EAAQ,aAAa,IAAI,GAAK,KAAA,CAAM,KAAK,CAAC,CAAC,YAAY,EACnE,MAAO,cAAc,KAAKC,CAAE,CAAC,GAAG,IAAM,GACxC,CAuCO,IAAMC,EAAN,cAA8BC,CAAW,C,8BAKvC,KAAA,KAAA,GAIsB,KAAA,WAAA,WAIK,KAAA,WAAA,OAMG,KAAA,OAAA,KAUpB,KAAA,eAAA,KAAK,aAAa,YAAY,EAE3B,KAAA,UAAA,GAEG,KAAA,IAAA,gBAAgB,EAAEP,IAEnB,KAAA,4BAAA,IAAI,IAET,KAAA,OAAA,GAER,KAAA,OAAA,IAAIS,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,OAAO,CAAE,CAAC,EAIrD,KAAA,QAAA,IAAIC,EAAmB,SACzB,IAAI,qBAAuB,KAAK,cAAc,CAAC,EACrD,GAAYC,EAAS,QAAQ,KAAM,CAAE,QAAS,GAAM,WAAY,GAAM,gBAAiBV,CAAiB,CAAC,CAAC,C,QA5C5F,KAAA,OAAA,CAACW,CAAgB,C,CAiDjC,cAAc,GAAGC,EAA+C,CAC1DA,EAAK,KAAO,cAAgB,CAAC,KAAK,WAAa,KAAK,iBAAmB,IAAA,KAAW,KAAK,eAAiB,IAC5G,MAAM,cAAc,GAAGA,CAAI,CAC7B,CAEA,yBAAyB,EAAc,EAAoB,EAAsB,CAC3EC,IAAS,cAAgB,KAAK,UAChC,MAAM,yBAAyBA,EAAMC,EAAKC,CAAK,GAIjD,KAAK,aAAe,MAAM,yBAAyBF,EAAMC,EAAKC,CAAK,CAAC,EACpE,KAAK,eAAiBA,IAAU,KAE5BA,IAAU,MAAQ,KAAK,QAAQ,YAAY,KAAK,gBAAgB,KAAK,OAAO,UAAU,EAC5F,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,IAAMC,EAAS,KAAK,cACdC,EAAQD,GAAQ,YAAc,eAAiBA,EAAwB,KAIzE,KAAK,QAAU,CAACC,GAAS,CAAC,KAAK,gBAAgB,KAAK,aAAe,CAAE,KAAK,WAAa,UAAY,CAAC,EACxG,KAAK,OAASA,CAChB,CAGA,OAAiB,EAA+B,CAC9C,KAAK,aAAe,MAAM,OAAOC,CAAO,CAAC,CAC3C,CAGA,gBAAgB,EAAuB,CAChC,KAAK,gBAAgB,KAAK,aAAe,CAAE,KAAK,WAAaH,CAAO,CAAC,CAC5E,CAEA,SAAiB,EAAmB,CAClC,IAAMI,EAAM,KAAK,UACjB,KAAK,UAAY,GACjB,GAAI,CACFC,EAAM,CACR,QAAU,CACR,KAAK,UAAYD,CACnB,CACF,CAEA,WAAW,EAA+B,CACpCD,EAAQ,IAAI,YAAY,GAAK,CAACG,EAAQC,EAAkB,KAAK,UAAU,GAAG,KAAK,aAAe,CAAE,KAAK,WAAa,UAAY,CAAC,EAC/HJ,EAAQ,IAAI,YAAY,GAAK,CAACG,EAAQE,EAAuB,KAAK,UAAU,IAAG,KAAK,WAAa,OACvG,CAEA,QAAQ,EAA+B,CACrC,KAAK,aAAa,EAEdL,EAAQ,IAAI,MAAM,GAAKA,EAAQ,IAAI,MAAM,IAAM,IAAA,IAAW,KAAK,WAAW,CAChF,CAEA,QAAS,CACP,KAAK,KAAO,CAAC,KAAK,IACpB,CAIA,gBAAiB,CACf,KAAK,KAAO,EACd,CAEA,kBAAkB,EAAkB,CAClCM,EAAiB,KAAM,CAAC,CAC1B,CAGA,cAAe,CACb,KAAK,YAAY,cAA2B,SAAS,CAAC,EAAE,MAAM,CAChE,CAIA,cAAuB,CACrB,IAAMC,EAAM,IAAI,IAAI,KAAK,OAAO,SAAS,OAAO,CAAC,CAAC,OAAO,GAAMC,EAAG,YAAc,MAAM,CAAC,EACvF,IAAK,IAAMA,KAAM,KAAK,YAAkBD,EAAI,IAAIC,CAAE,GAAGA,EAAG,gBAAgB,YAAY,EACpF,IAAK,IAAMA,KAAMD,EAAUC,EAAG,aAAa,YAAY,GAAGA,EAAG,aAAa,aAAc,EAAE,EAC1F,KAAK,YAAcD,CACrB,CAOA,YAAqB,CACf,KAAK,OAAS,KAAK,SACvB,KAAK,OAAS,KAAK,KAEf,KAAK,KAAM,KAAK,cAAc,IAAI,YAAY,UAAW,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAC1F,KAAK,cAAc,IAAI,YAAY,UAAW,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EACrF,KAAU,aAAa,KAAK,IAAI,EAClC,CAEA,MAAc,aAAa,EAAgB,CACzC,MAAM,KAAK,eACX,IAAME,EAAQ,KAAK,WAAW,cAAc,UAAU,EACtD,MAAM,QAAQ,YAAYA,GAAO,cAAc,CAAE,QAAS,EAAK,CAAC,GAAK,CAAC,EAAA,CAAG,IAAI,GAAKC,EAAE,QAAQ,CAAC,EACzF,KAAK,SAAWC,IAChBA,EAAO,KAAK,cAAc,IAAI,YAAY,gBAAiB,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAC5F,KAAK,cAAc,IAAI,YAAY,gBAAiB,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAC7F,CAEA,cAAe,CACb,KAAK,OAAS,KAAK,IACrB,CAUA,QAAS,CACP,IAAM1B,EAAU,KAAK,OAAO,SAAS,OAAO,CAAC,CAAC,KAAK,GAAMuB,EAAG,YAAc,MAAM,EAC1EI,EAAU,KAAK,aAAe,UAC9BC,EAASD,EACX,CAAI,yDAAyD,KAAK,KAAO,WAAa,aAAa,8BACnG,CAAI,yDAAyD,KAAK,KAAO,QAAU,OAAO,8BAC9F,MAAO,EAAI;uDACwC3B,EAAUF,EAAQE,CAAO,EAAI6B,EAAQ;;;;gBAI5E,KAAK,IAAI;2BACE,KAAK,KAAK;2BACV,KAAK,IAAI;mBACjB,KAAK,OAAO;qBACV,KAAK,kBAAkB;WACjCF,EAAUE,EAAUD,EAAO;0CACI,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;0CAC1B,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;mBACjDD,EAAUC,EAASC,EAAQ;;;cAGhC,KAAK,IAAI;;eAER,KAAK,KAAO,SAAWA,EAAQ;0BACpB,KAAK,KAAO,GAAG,KAAK,IAAI,SAAWA,EAAQ;iBACpDC,EAAY,KAAK,IAAI,EAAE;uBACjB,KAAK,eAAe;;WAGzC,CACF,EAvMGpC,EAAA,CAAAqC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAA7B,EAAA,UAAA,OAAA,IAAA,EAAA,EAIzCR,EAAA,CAAAqC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAA7B,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCR,EAAA,CAAAqC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAA7B,EAAA,UAAA,aAAA,IAAA,EAAA,EAb1C,EAAAR,EAAA,CAAAsC,EAAc,mBAAmB,CAAA,EAAA9B,CAAA,E"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Keyboard navigation between the disclosure triggers of one accordion group.
|
|
3
3
|
*
|
|
4
4
|
* The group is the set of accordion items that share a parent element -- the
|
|
5
|
-
* children of a bd-accordion
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* bd-
|
|
5
|
+
* children of a bd-accordion, or of whatever the consuming page put them in.
|
|
6
|
+
* That is the smallest definition that gives the group ownership of
|
|
7
|
+
* navigation without a coordinator: the group is optional (an item stands
|
|
8
|
+
* alone in the chevron look), a page may set items straight into a
|
|
9
|
+
* bd-feature-columns column, and a consumer may nest one accordion inside
|
|
10
10
|
* another's panel. In every one of those cases the item's parent is the right
|
|
11
11
|
* group, and an item with no siblings is a group of one where these keys do
|
|
12
12
|
* nothing but swallow the key.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=/* @__PURE__ */ new Set([`BD-ACCORDION-ITEM
|
|
1
|
+
var e=/* @__PURE__ */ new Set([`BD-ACCORDION-ITEM`]);function t(t){let n=t.parentElement;return n?Array.from(n.children).filter(t=>e.has(t.tagName)):[t]}function n(e,n){if(n.defaultPrevented||n.altKey||n.ctrlKey||n.metaKey)return!1;let r;switch(n.key){case`ArrowDown`:case`ArrowRight`:r=`next`;break;case`ArrowUp`:case`ArrowLeft`:r=`prev`;break;case`Home`:r=`first`;break;case`End`:r=`last`;break;default:return!1}let i=t(e),a=i.indexOf(e);if(a<0)return!1;let o=i.length-1,s;return s=r===`first`?0:r===`last`?o:r===`next`?a===o?0:a+1:a===0?o:a-1,n.preventDefault(),s!==a&&i[s].focusTrigger?.(),!0}export{t as accordionGroup,n as onTriggerKeydown};
|
|
2
2
|
//# sourceMappingURL=accordion-keyboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-keyboard.js","names":["ITEM_TAGS","accordionGroup","parent","item","el","onTriggerKeydown","event","where","group","index","last","target"],"sources":["../../../../src/components/accordion/accordion-keyboard.ts"],"sourcesContent":["/**\n * Keyboard navigation between the disclosure triggers of one accordion group.\n *\n * The group is the set of accordion items that share a parent element -- the\n * children of a bd-accordion
|
|
1
|
+
{"version":3,"file":"accordion-keyboard.js","names":["ITEM_TAGS","accordionGroup","parent","item","el","onTriggerKeydown","event","where","group","index","last","target"],"sources":["../../../../src/components/accordion/accordion-keyboard.ts"],"sourcesContent":["/**\n * Keyboard navigation between the disclosure triggers of one accordion group.\n *\n * The group is the set of accordion items that share a parent element -- the\n * children of a bd-accordion, or of whatever the consuming page put them in.\n * That is the smallest definition that gives the group ownership of\n * navigation without a coordinator: the group is optional (an item stands\n * alone in the chevron look), a page may set items straight into a\n * bd-feature-columns column, and a consumer may nest one accordion inside\n * another's panel. In every one of those cases the item's parent is the right\n * group, and an item with no siblings is a group of one where these keys do\n * nothing but swallow the key.\n *\n * The group is read at keydown time rather than cached, so items inserted or\n * removed later are simply there or not.\n *\n * Keys, following the WAI-ARIA accordion pattern:\n *\n * ArrowDown / ArrowRight next trigger\n * ArrowUp / ArrowLeft previous trigger\n * Home first trigger\n * End last trigger\n *\n * The arrows wrap at the ends, as Components/Tab List already does in this package;\n * the pattern permits either wrapping or stopping and one answer per package is\n * better than two. Left/Right are an extension of the pattern's Up/Down for a\n * vertical list, harmless because the handler is on the button and cannot\n * reach a text field in a panel.\n *\n * These keys MOVE focus and do nothing else. They do not open or close the\n * item they land on -- Enter and Space do that, through the button's own\n * activation, which this code never touches -- and Tab and Shift+Tab are not\n * handled here at all, so the document's tab sequence runs through the group\n * unchanged. There is no trap.\n */\n\nconst ITEM_TAGS = new Set([\"BD-ACCORDION-ITEM\"]);\n\ntype AccordionItem = HTMLElement & { focusTrigger?(): void };\n\n/** The accordion items that share this item's parent, in DOM order. */\nexport function accordionGroup(item: AccordionItem): AccordionItem[] {\n const parent = item.parentElement;\n if (!parent) return [item];\n return Array.from(parent.children).filter((el): el is AccordionItem => ITEM_TAGS.has(el.tagName));\n}\n\n/**\n * Handle a keydown that fired on an item's trigger. Returns true when the key\n * was one of ours.\n */\nexport function onTriggerKeydown(item: AccordionItem, event: KeyboardEvent): boolean {\n if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return false;\n\n let where: \"next\" | \"prev\" | \"first\" | \"last\";\n switch (event.key) {\n case \"ArrowDown\":\n case \"ArrowRight\": where = \"next\"; break;\n case \"ArrowUp\":\n case \"ArrowLeft\": where = \"prev\"; break;\n case \"Home\": where = \"first\"; break;\n case \"End\": where = \"last\"; break;\n default: return false;\n }\n\n const group = accordionGroup(item);\n const index = group.indexOf(item);\n if (index < 0) return false;\n\n const last = group.length - 1;\n let target: number;\n if (where === \"first\") target = 0;\n else if (where === \"last\") target = last;\n else if (where === \"next\") target = index === last ? 0 : index + 1;\n else target = index === 0 ? last : index - 1;\n\n // Even a group of one swallows the key: an arrow on a focused disclosure\n // trigger should not scroll the page out from under it.\n event.preventDefault();\n if (target !== index) group[target].focusTrigger?.();\n return true;\n}\n"],"mappings":"AAoCA,IAAMA,kBAAY,IAAI,IAAI,CAAC,mBAAmB,CAAC,EAK/C,SAAgBC,EAAe,EAAsC,CACnE,IAAMC,EAASC,EAAK,cAEpB,OADKD,EACE,MAAM,KAAKA,EAAO,QAAQ,CAAC,CAAC,OAAQ,GAA4BF,EAAU,IAAII,EAAG,OAAO,CAAC,EAD5E,CAACD,CAAI,CAE3B,CAMA,SAAgBE,EAAiB,EAAqB,EAA+B,CACnF,GAAIC,EAAM,kBAAoBA,EAAM,QAAUA,EAAM,SAAWA,EAAM,QAAS,MAAO,GAErF,IAAIC,EACJ,OAAQD,EAAM,IAAd,CACE,IAAK,YACL,IAAK,aAAc,EAAQ,OAAQ,MACnC,IAAK,UACL,IAAK,YAAa,EAAQ,OAAQ,MAClC,IAAK,OAAQ,EAAQ,QAAS,MAC9B,IAAK,MAAO,EAAQ,OAAQ,MAC5B,QAAS,MAAO,EAClB,CAEA,IAAME,EAAQP,EAAeE,CAAI,EAC3BM,EAAQD,EAAM,QAAQL,CAAI,EAChC,GAAIM,EAAQ,EAAG,MAAO,GAEtB,IAAMC,EAAOF,EAAM,OAAS,EACxBG,EAUJ,MATA,CAGKA,EAHDJ,IAAU,QAAkB,EACvBA,IAAU,OAAiBG,EAC3BH,IAAU,OAAiBE,IAAUC,EAAO,EAAID,EAAQ,EACnDA,IAAU,EAAIC,EAAOD,EAAQ,EAI3CH,EAAM,eAAe,EACjBK,IAAWF,GAAOD,EAAMG,EAAO,CAAC,eAAe,EAC5C,EACT,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const accordionItemCSS: import("lit").CSSResult;
|
|
2
|
+
export declare const accordionCSS: import("lit").CSSResult;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`:host{margin-bottom:var(--bd-acc-item-margin-bottom,var(--spacing-16));box-sizing:border-box;border-radius:var(--shape-radius-sm);display:block}.disclosure{border-radius:inherit}.disclosure:has(>:is(.header,.bd-accordion-bg-question):focus-visible){z-index:var(--z-base);background-color:inherit;box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);position:relative}:host(:last-child){margin-bottom:0}::slotted(bd-list){--bd-li-margin-bottom:var(--spacing-16);margin-bottom:var(--spacing-16);display:block}::slotted(bd-list:last-child){margin-bottom:0}::slotted(bd-p:last-of-type){--bd-paragraph-margin-bottom:0}.header{width:100%;padding:var(--bd-acc-header-padding,var(--spacing-0));text-align:start;cursor:pointer;align-items:flex-start;gap:var(--bd-acc-icon-gap,var(--spacing-12));font-family:var(--typography-fontFamily-sans);font-style:normal;font-size:var(--bd-acc-title-font-size,var(--typography-label-large-fontSize));font-weight:var(--bd-acc-title-font-weight,var(--typography-label-large-fontWeight));line-height:var(--bd-acc-title-line-height,var(--typography-label-large-lineHeight));margin-bottom:var(--bd-acc-header-margin-bottom,var(--spacing-16));background:0 0;border:none;display:flex}.header:focus-visible{outline:none}.header[aria-expanded=true] .title{color:var(--bd-acc-title-color-expanded,var(--color-text-brand))}.header[aria-expanded=false] .title{color:var(--bd-acc-title-color-collapsed,var(--color-text-brand))}.header[aria-expanded=true]:hover .title{color:var(--bd-acc-title-color-hover,var(--bd-acc-title-color-expanded,var(--color-text-brand)))}.header[aria-expanded=false]:hover .title{color:var(--bd-acc-title-color-hover,var(--bd-acc-title-color-collapsed,var(--color-text-brand)))}.toggle{width:var(--bd-acc-toggle-size,var(--icon-sm-size));min-width:var(--bd-acc-toggle-size,var(--icon-sm-size));height:var(--bd-acc-toggle-size,var(--icon-sm-size));line-height:var(--typography-lineHeight-none);-webkit-user-select:none;user-select:none;margin-top:calc((var(--bd-acc-title-line-height,var(--typography-label-large-lineHeight)) * 1em - var(--bd-acc-toggle-size,var(--icon-sm-size))) / 2);flex-shrink:0;justify-content:center;align-items:center;display:flex}.title{font-weight:var(--bd-acc-title-font-weight,var(--typography-label-large-fontWeight))}.title-badge-wrapper{align-items:center;gap:var(--spacing-8);flex-wrap:wrap;flex:1;display:flex}.content{padding-block:var(--bd-acc-panel-padding-block,0);padding-inline:var(--bd-acc-panel-padding-inline,calc(var(--icon-sm-size) + var(--spacing-12)) 0);font-family:var(--typography-fontFamily-sans);font-size:var(--bd-acc-panel-font-size,var(--typography-body-small-fontSize));font-weight:var(--bd-acc-panel-font-weight,var(--typography-body-small-fontWeight));line-height:var(--bd-acc-panel-line-height,var(--typography-body-small-lineHeight));color:var(--bd-acc-panel-color,var(--color-text-primary))}.content[hidden]:not([hidden=until-found i]){display:none!important}.content[hidden]{padding-block:0;position:absolute}::slotted(p){margin-top:0;margin-bottom:var(--bd-acc-panel-paragraph-gap,var(--spacing-16));font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;color:inherit}::slotted(p:last-child){margin-bottom:0}.header--chevron{justify-content:flex-start;align-items:center;gap:var(--spacing-8);border-radius:var(--radius-none);width:auto;margin-bottom:var(--spacing-24);font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);background:0 0;border:none;padding:0;display:inline-flex}.header--chevron .title-badge-wrapper{flex:0 auto}.header--chevron .title{color:var(--color-text-brand);white-space:nowrap}.header--chevron:hover .title{text-decoration:underline}.toggle--chevron{width:16px;min-width:16px;height:16px;margin-top:0}.content--chevron{padding:0}`,n=e`.bd-accordion-section-container{background-color:var(--bd-acc-section-bg,var(--color-surface-container));border-radius:var(--radius-none);box-sizing:border-box;padding-top:var(--bd-acc-section-padding-v,var(--spacing-32));padding-bottom:var(--bd-acc-section-padding-v,var(--spacing-32))}.bd-accordion-section-inner{box-sizing:border-box}:host([variant=small]){--bd-acc-section-bg:var(--color-surface-default);--bd-acc-section-padding-v:var(--spacing-24);--bd-acc-header-padding:var(--spacing-12) var(--spacing-8);--bd-acc-header-margin-bottom:var(--spacing-0);--bd-acc-icon-gap:var(--spacing-12);--bd-acc-toggle-size:var(--icon-sm-size);--bd-acc-title-font-size:var(--typography-label-default-fontSize);--bd-acc-title-font-weight:var(--typography-label-default-fontWeight);--bd-acc-title-line-height:var(--typography-label-default-lineHeight);--bd-acc-title-color-collapsed:var(--color-text-primary);--bd-acc-title-color-expanded:var(--color-brand-800);--bd-acc-title-color-hover:var(--color-text-brand);--bd-acc-panel-font-size:var(--typography-caption-default-fontSize);--bd-acc-panel-font-weight:var(--typography-caption-default-fontWeight);--bd-acc-panel-line-height:var(--typography-caption-default-lineHeight);--bd-acc-panel-color:var(--color-text-primary);--bd-acc-panel-padding-block:var(--spacing-0) var(--spacing-8);--bd-acc-panel-padding-inline:var(--spacing-36) var(--spacing-8);--bd-acc-panel-paragraph-gap:var(--spacing-0);--bd-acc-item-margin-bottom:var(--spacing-0)}:host([variant=default-blue]){--bd-acc-section-bg:var(--status-brand-surface)}.section-title{margin-bottom:var(--spacing-24);margin-top:var(--spacing-0)}:host([variant=small]) .section-title{margin-bottom:var(--spacing-16)}.user-guide-link{margin-top:var(--spacing-32);color:var(--color-text-brand)}.user-guide-link a{color:var(--color-text-brand);align-items:center;gap:var(--spacing-12);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-xsmall-fontSize);text-decoration:none;display:inline-flex}.user-guide-link a:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary);border-radius:var(--focus-outline-radius)}.user-guide-link .icon img{width:var(--dimension-16);height:var(--dimension-16);object-fit:contain;display:block}`;export{t as accordionItem,n as accordionSection};
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{margin-bottom:var(--bd-acc-item-margin-bottom,var(--spacing-16));box-sizing:border-box;border-radius:var(--shape-radius-sm);display:block}:host([hidden]){display:none}:host(:last-child),:host([appearance=faq][background=none]:last-of-type){margin-bottom:0}.disclosure{border-radius:inherit}.disclosure:has(>.heading>.header:focus-visible){z-index:var(--z-base);background-color:inherit;box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);position:relative}.heading{margin:0}::slotted(bd-list){--bd-li-margin-bottom:var(--spacing-16);margin-bottom:var(--spacing-16);display:block}::slotted(bd-list:last-child){margin-bottom:0}::slotted(bd-p:last-of-type){--bd-paragraph-margin-bottom:0}.header{width:100%;padding:var(--bd-acc-header-padding,var(--spacing-0));text-align:start;cursor:pointer;align-items:flex-start;gap:var(--bd-acc-icon-gap,var(--spacing-12));font-family:var(--bd-acc-title-font-family,var(--typography-label-large-fontFamily));font-style:normal;font-size:var(--bd-acc-title-font-size,var(--typography-label-large-fontSize));font-weight:var(--bd-acc-title-font-weight,var(--typography-label-large-fontWeight));line-height:var(--bd-acc-title-line-height,var(--typography-label-large-lineHeight));margin-bottom:var(--bd-acc-header-margin-bottom,var(--spacing-16));--bd-heading-color:var(--bd-acc-title-color-collapsed,var(--color-text-brand));background:0 0;border:none;display:flex}.header:focus-visible{outline:none}.header[aria-expanded=true]{--bd-heading-color:var(--bd-acc-title-color-expanded,var(--color-text-brand))}.header[aria-expanded=true]:hover{--bd-heading-color:var(--bd-acc-title-color-hover,var(--bd-acc-title-color-expanded,var(--color-text-brand)))}.header[aria-expanded=false]:hover{--bd-heading-color:var(--bd-acc-title-color-hover,var(--bd-acc-title-color-collapsed,var(--color-text-brand)))}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--bd-acc-title-font-size,var(--typography-label-large-fontSize));--bd-heading-font-weight:var(--bd-acc-title-font-weight,var(--typography-label-large-fontWeight));--bd-heading-line-height:var(--bd-acc-title-line-height,var(--typography-label-large-lineHeight));--bd-heading-letter-spacing:var(--bd-acc-title-letter-spacing,var(--typography-label-large-letterSpacing));--bd-heading-font-family:var(--bd-acc-title-font-family,var(--typography-label-large-fontFamily))}.toggle{width:var(--bd-acc-toggle-size,var(--icon-sm-size));min-width:var(--bd-acc-toggle-size,var(--icon-sm-size));height:var(--bd-acc-toggle-size,var(--icon-sm-size));line-height:var(--typography-lineHeight-none);-webkit-user-select:none;user-select:none;margin-top:calc((var(--bd-acc-title-line-height,var(--typography-label-large-lineHeight)) * 1em - var(--bd-acc-toggle-size,var(--icon-sm-size))) / 2);color:var(--color-text-brand);flex-shrink:0;justify-content:center;align-items:center;display:flex}.title-badge-wrapper{align-items:center;gap:var(--spacing-8);flex-wrap:wrap;flex:1;display:flex}.title{min-width:0}.content{padding-block:var(--bd-acc-panel-padding-block,0);padding-inline:var(--bd-acc-panel-padding-inline,calc(var(--icon-sm-size) + var(--spacing-12)) 0);font-family:var(--typography-fontFamily-sans);font-size:var(--bd-acc-panel-font-size,var(--typography-body-small-fontSize));font-weight:var(--bd-acc-panel-font-weight,var(--typography-body-small-fontWeight));line-height:var(--bd-acc-panel-line-height,var(--typography-body-small-lineHeight));color:var(--bd-acc-panel-color,var(--color-text-primary))}.content[hidden]:not([hidden=until-found i]){display:none!important}.content[hidden]{padding-block:0;position:absolute}::slotted(p){margin-top:0;margin-bottom:var(--bd-acc-panel-paragraph-gap,var(--spacing-16));font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;color:inherit}::slotted(p:last-child){margin-bottom:0}:host([appearance=small]){--bd-acc-header-padding:var(--spacing-12) var(--spacing-8);--bd-acc-header-margin-bottom:var(--spacing-0);--bd-acc-icon-gap:var(--spacing-12);--bd-acc-toggle-size:var(--icon-sm-size);--bd-acc-title-font-size:var(--typography-label-default-fontSize);--bd-acc-title-font-weight:var(--typography-label-default-fontWeight);--bd-acc-title-line-height:var(--typography-label-default-lineHeight);--bd-acc-title-letter-spacing:var(--typography-label-default-letterSpacing);--bd-acc-title-font-family:var(--typography-label-default-fontFamily);--bd-acc-title-color-collapsed:var(--color-text-primary);--bd-acc-title-color-expanded:var(--color-text-brand-hover);--bd-acc-title-color-hover:var(--color-text-brand);--bd-acc-panel-font-size:var(--typography-caption-default-fontSize);--bd-acc-panel-font-weight:var(--typography-caption-default-fontWeight);--bd-acc-panel-line-height:var(--typography-caption-default-lineHeight);--bd-acc-panel-color:var(--color-text-primary);--bd-acc-panel-padding-block:var(--spacing-0) var(--spacing-8);--bd-acc-panel-padding-inline:var(--spacing-36) var(--spacing-8);--bd-acc-panel-paragraph-gap:var(--spacing-0);--bd-acc-item-margin-bottom:var(--spacing-0)}:host([appearance=faq]){--bd-acc-header-padding:var(--spacing-16) var(--spacing-0);--bd-acc-header-margin-bottom:var(--spacing-0);--bd-acc-title-font-size:var(--typography-control-label-xl-fontSize);--bd-acc-title-font-weight:var(--typography-control-label-xl-fontWeight);--bd-acc-title-line-height:var(--typography-control-label-xl-lineHeight);--bd-acc-title-letter-spacing:var(--typography-control-label-xl-letterSpacing);--bd-acc-title-font-family:var(--typography-control-label-xl-fontFamily);--bd-acc-title-color-collapsed:var(--color-text-primary);--bd-acc-title-color-expanded:var(--color-text-brand);--bd-acc-title-color-hover:var(--color-text-brand);--bd-acc-panel-padding-block:var(--spacing-0)}:host([appearance=faq][open]){--bd-acc-panel-padding-block:var(--spacing-0) var(--spacing-16)}:host([appearance=faq]) .content{overflow:hidden}:host([appearance=faq][background=none]){border-radius:var(--radius-none);--bd-acc-panel-padding-inline:var(--spacing-40)}:host([appearance=faq][background=none][open]){--bd-acc-panel-padding-block:var(--spacing-16)}:host([appearance=terms]){border-radius:var(--radius-none)}:host([appearance=terms][background=none]) .disclosure:has(>.heading>.header:focus-visible),:host([appearance=faq][background=none]) .disclosure:has(>.heading>.header:focus-visible){border-radius:var(--focus-outline-radius)}:host([appearance=chevron]){--bd-acc-title-font-size:var(--typography-label-default-fontSize);--bd-acc-title-font-weight:var(--typography-label-default-fontWeight);--bd-acc-title-line-height:var(--typography-label-default-lineHeight);--bd-acc-title-letter-spacing:var(--typography-label-default-letterSpacing);--bd-acc-title-font-family:var(--typography-label-default-fontFamily);--bd-acc-title-color-collapsed:var(--color-text-brand);--bd-acc-title-color-expanded:var(--color-text-brand);--bd-acc-icon-gap:var(--spacing-8);--bd-acc-header-padding:var(--spacing-0);--bd-acc-header-margin-bottom:var(--spacing-24);--bd-acc-panel-padding-block:var(--spacing-0);--bd-acc-panel-padding-inline:var(--spacing-0)}:host([appearance=chevron]) .header{border-radius:var(--radius-none);justify-content:flex-start;align-items:center;width:auto;display:inline-flex}:host([appearance=chevron]) .title-badge-wrapper{flex:0 auto}:host([appearance=chevron]) ::slotted(bd-h[slot=title]){white-space:nowrap}:host([appearance=chevron]) .header:hover ::slotted(bd-h[slot=title]){text-decoration:underline}:host([appearance=chevron]) .toggle{width:16px;min-width:16px;height:16px;margin-top:0}:host([background=container]){background-color:var(--color-surface-container);border-radius:var(--shape-radius-lg)}:host([background=tint]){background-color:var(--status-brand-surface);border-radius:var(--shape-radius-lg)}:host([background=container]) .disclosure,:host([background=tint]) .disclosure{padding-inline:var(--spacing-16)}:host([background=container]:not([appearance=faq])) .disclosure,:host([background=tint]:not([appearance=faq])) .disclosure{padding-block:var(--spacing-16)}:host([background=container]:not([appearance=faq]):not([open])),:host([background=tint]:not([appearance=faq]):not([open])){--bd-acc-header-margin-bottom:var(--spacing-0)}`,n=e`:host{display:block}.band{border-radius:var(--radius-none);box-sizing:border-box;padding-block:var(--bd-acc-section-padding-v,var(--spacing-32))}:host([background=container]) .band{background-color:var(--color-surface-container)}:host([background=tint]) .band{background-color:var(--status-brand-surface)}.inner{box-sizing:border-box}:host([appearance=small]){--bd-acc-section-padding-v:var(--spacing-24)}:host([appearance=faq]){--bd-acc-section-padding-v:var(--spacing-64)}:host([without-padding]) .band{padding-block:var(--spacing-0)}.title{margin-bottom:var(--spacing-24)}:host([appearance=small]) .title{margin-bottom:var(--spacing-16)}:host([appearance=terms]) .title{margin-bottom:var(--spacing-56)}:host([appearance=faq]) .title{margin-bottom:var(--spacing-32)}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h6-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-bold);--bd-heading-line-height:var(--typography-heading-h6-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h6-letterSpacing);--bd-heading-font-family:var(--typography-heading-h6-fontFamily)}:host([appearance=faq]) ::slotted(bd-h[slot=title]),:host([appearance=faq]) ::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily);text-align:center}.footer{align-items:flex-start;gap:var(--spacing-16);margin-top:var(--spacing-32);flex-direction:column;display:flex}:host([appearance=faq]) .footer{margin-top:var(--spacing-0);padding-top:var(--spacing-16)}.footer[hidden]{display:none}::slotted(bd-p[slot=footer]){font-style:italic}`;export{n as accordionCSS,t as accordionItemCSS};
|
|
2
2
|
//# sourceMappingURL=accordion.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.css.js","names":["accordionItem","accordionSection"],"sources":["../../../../src/components/accordion/accordion.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport const accordionItem = css`\n :host {\n display: block;\n margin-bottom: var(--bd-acc-item-margin-bottom, var(--spacing-16));\n box-sizing: border-box;\n border-radius: var(--shape-radius-sm);\n }\n\n /* The one focus ring, on the item.\n\n Two owners are in play and they are deliberately different elements. The\n TRIGGER owns focus: it is the button, it carries aria-expanded, a keyboard\n lands on it and a screen reader announces it. The ITEM owns the focus\n VISUAL: a disclosure is perceived as one object -- the question and, when\n open, its answer -- and the ring goes round that object, growing with the\n answer when it is revealed. Measured before the item drew it, on\n Components/Accordion \"Item open by default\": host [99,131,1242,61],\n trigger [99,131,1242,24], content [99,171,1242,21] -- the ring stopped at\n the question and the answer sat outside it.\n\n Exactly one painter. The trigger's :focus-visible rule below sets outline\n none and nothing else; the ring lives here. P6C.2.1 found both painting the\n same --focus-outline-primary and removed the host's; P6C.2.2 moved the one\n ring up to the item and took the trigger's away, so the invariant that\n phase established -- one token, one painter -- still holds.\n\n The item is .disclosure, the element in this shadow root that holds the\n trigger and the panel and fills the host's box, so :has() can see the\n trigger match :focus-visible. The host cannot: :host(:has(...)) looks at\n light-DOM children, never at the shadow tree. It used to be the host all\n the same, through data-bd-acc-focus, an attribute script set two frames\n after focusin and again on every keydown when the trigger matched\n :focus-visible; the selector answers both of those as they happen. A\n mouse click is still not :focus-visible, so it still draws no ring.\n\n The radius is the host's, inherited, for the reason the bg item's note\n gives: the ring follows the item's own corner.\n\n The stacking is measured: --bd-acc-item-margin-bottom is a public custom\n property, and with it zeroed on AccordionBg \"FAQ - Default\" a 300x5\n sample where the ring overlaps the next item holds 600 blue-500 pixels\n with position/z-index and 0 without -- the next item's tint paints over\n the ring. On the untinted bd-accordion-item it reads 600 either way.\n\n bd-accordion-bg-item adopts this stylesheet too, so this is the one rule\n that rings and stacks the whole accordion family. */\n .disclosure {\n border-radius: inherit;\n }\n\n .disclosure:has(> :is(.header, .bd-accordion-bg-question):focus-visible) {\n position: relative;\n z-index: var(--z-base);\n /* The host's ground, repainted by the element that draws the ring, so\n one element anti-aliases the ring's inner corner against the tint.\n Split between the two, the corner showed a faint tinted seam inside\n the ring's white band (60 pixels at 8x, measured). Unset hosts are\n transparent, so this paints nothing on them. */\n background-color: inherit;\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n }\n\n :host(:last-child) {\n margin-bottom: 0;\n }\n\n /* The section variants reach the items as custom properties, set on\n bd-accordion-section's own host (accordionSection below) and inherited\n through the slot. They were :host-context() rules here, which only\n Chromium implements: in Safari and Firefox the small variant's padding,\n type and colours, and the item spacing, never applied. The default\n section's block went with them -- every value in it was already the\n fallback each rule below carries, and its title colours were never read. */\n\n ::slotted(bd-list) {\n --bd-li-margin-bottom: var(--spacing-16);\n display: block;\n margin-bottom: var(--spacing-16);\n }\n\n ::slotted(bd-list:last-child) {\n margin-bottom: 0;\n }\n\n /* bd-p in bd-accordion simplu — spacing-16 intre paragrafe */\n ::slotted(bd-p:last-of-type) {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .header {\n display: flex;\n align-items: flex-start;\n width: 100%;\n padding: var(--bd-acc-header-padding, var(--spacing-0));\n border: none;\n background: none;\n text-align: start;\n cursor: pointer;\n gap: var(--bd-acc-icon-gap, var(--spacing-12));\n font-family: var(--typography-fontFamily-sans);\n font-style: normal;\n font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n line-height: var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight));\n margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));\n }\n\n /* No ring on the trigger. outline: none is not a removal: the visible focus\n indicator is the item's ring, drawn by .disclosure above on exactly the\n frames this pseudo-class matches. Painting it here as well is the double\n ring P6C.2.1 measured and removed. */\n .header:focus-visible {\n outline: none;\n }\n\n .header[aria-expanded=\"true\"] .title {\n /* blue-500 is 4.2:1 on the blue-50 tint these titles sit on; blue-600 is 5.72 */\n color: var(--bd-acc-title-color-expanded, var(--color-text-brand));\n }\n\n .header[aria-expanded=\"false\"] .title {\n color: var(--bd-acc-title-color-collapsed, var(--color-text-brand));\n }\n\n /* Only a section that sets a hover colour changes on hover; the fallback is\n each state's own colour. */\n .header[aria-expanded=\"true\"]:hover .title {\n color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-expanded, var(--color-text-brand)));\n }\n\n .header[aria-expanded=\"false\"]:hover .title {\n color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-collapsed, var(--color-text-brand)));\n }\n\n .toggle {\n flex-shrink: 0;\n width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n min-width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n height: var(--bd-acc-toggle-size, var(--icon-sm-size));\n display: flex;\n align-items: center;\n justify-content: center;\n /* the box holds an icon, not text; none collapses the leading to the\n glyph rather than reserving a text line around it */\n line-height: var(--typography-lineHeight-none);\n /* Safari reads only the prefixed property */\n -webkit-user-select: none;\n user-select: none;\n margin-top: calc(\n (var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight)) * 1em -\n var(--bd-acc-toggle-size, var(--icon-sm-size))) / 2\n );\n }\n\n /* A \".toggle img\" rule stood here and could never match. The toggle renders\n <bd-plus-icon>, <bd-minus-icon> or the chevron atoms, each taking its own\n size and color props -- there has been no <img> here since that migration,\n and the atom's props already carry what this rule was sizing.\n .\n Those props pass --color-text-brand, the same role .header carries and the\n one bd-link's whole family resolves to. They passed --color-blue-500 until\n the Figma audit put icon and label side by side: the label was already the\n role, so the toggle disagreed with its own text by one step. This file had\n already made the same move twice -- on .header[aria-expanded=\"true\"] .title\n and on .user-guide-link a -- and the icon was the hold-out, passing on the\n 3:1 non-text bar where the text beside it needed 4.5:1. */\n\n .title {\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n }\n\n /* Wrapping is the whole mechanism: whether a title and its badge fit on one\n line depends on how long the title is and how much room this accordion\n has, not on how wide the window is. A 430px viewport rule used to force\n the column stack, which was both too eager and too narrow -- measured, a\n 320px-wide accordion on a 1280px viewport never triggered it and laid out\n correctly anyway, while a short title on a 320px viewport was stacked when\n it would have fitted. flex-wrap answers the question actually being asked. */\n .title-badge-wrapper {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n flex: 1;\n flex-wrap: wrap;\n }\n\n /* The panel is indented past the toggle, so the indent is on the inline\n start: on a right-to-left page the toggle and the indent are both on the\n right. The section variant passes its padding as a block pair and an\n inline pair (start end) for the same reason; it was one four-value\n shorthand, which put the indent on the left whatever the direction. */\n .content {\n padding-block: var(--bd-acc-panel-padding-block, 0);\n padding-inline: var(--bd-acc-panel-padding-inline, calc(var(--icon-sm-size) + var(--spacing-12)) 0);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--bd-acc-panel-font-size, var(--typography-body-small-fontSize));\n font-weight: var(--bd-acc-panel-font-weight, var(--typography-body-small-fontWeight));\n line-height: var(--bd-acc-panel-line-height, var(--typography-body-small-lineHeight));\n /* -primary, which is what every section renders this at, and what the\n Figma item draws: text/primary. */\n color: var(--bd-acc-panel-color, var(--color-text-primary));\n }\n\n /* Plain hidden only: a panel that is hidden=\"until-found\" must keep its\n box, or find in page cannot reach it (accordion-panel.ts). The browser\n skips its contents, so it paints nothing, but a box in flow still counts:\n its block padding would show (the small variant's is 8 at the bottom), and\n even at zero height it stops the trigger's bottom margin collapsing\n through the item -- measured, every closed item grew from 24 to 40. Out of\n flow and unpadded, a closed panel lays out as display: none did. */\n .content[hidden]:not([hidden=\"until-found\" i]) {\n display: none !important;\n }\n\n .content[hidden] {\n position: absolute;\n padding-block: 0;\n }\n\n ::slotted(p) {\n margin-top: 0;\n margin-bottom: var(--bd-acc-panel-paragraph-gap, var(--spacing-16));\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n }\n\n ::slotted(p:last-child) {\n margin-bottom: 0;\n }\n\n /* === CHEVRON VARIANT (text + arrow icon only, no visible border/pill/background) === */\n .header--chevron {\n display: inline-flex;\n align-items: center;\n justify-content: flex-start;\n width: auto;\n gap: var(--spacing-8);\n padding: 0;\n border: none;\n border-radius: var(--radius-none);\n background: none;\n margin-bottom: var(--spacing-24);\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n }\n\n .header--chevron .title-badge-wrapper {\n flex: 0 1 auto;\n }\n\n .header--chevron .title {\n color: var(--color-text-brand);\n white-space: nowrap;\n }\n\n .header--chevron:hover .title {\n text-decoration: underline;\n }\n\n .toggle--chevron {\n width: 16px;\n min-width: 16px;\n height: 16px;\n margin-top: 0;\n }\n\n .content--chevron {\n padding: 0;\n }\n`;\n\nexport const accordionSection = css`\n /* The band is as wide as the section, and the section, like every page\n section, is as wide as the page; the column inside is .bd-ensemble's. It\n used to escape to the window's edges with width: 100vw and calc(50% -\n 50vw) margins, and 100vw counts a classic scrollbar: measured with a 15px\n one, the band ran from -7px to 1273px over a 1265px page, so every page\n with an accordion section scrolled sideways. */\n .bd-accordion-section-container {\n background-color: var(--bd-acc-section-bg, var(--color-surface-container));\n border-radius: var(--radius-none);\n box-sizing: border-box;\n padding-top: var(--bd-acc-section-padding-v, var(--spacing-32));\n padding-bottom: var(--bd-acc-section-padding-v, var(--spacing-32));\n }\n\n .bd-accordion-section-inner {\n box-sizing: border-box;\n }\n\n :host([variant=\"small\"]) {\n /* White here means \"the untinted page ground\", which is -surface-default's\n job; the default variant two rules up already asks for a surface role. */\n --bd-acc-section-bg: var(--color-surface-default);\n --bd-acc-section-padding-v: var(--spacing-24);\n /* Read by the items (accordionItem above), which inherit them through the slot. */\n --bd-acc-header-padding: var(--spacing-12) var(--spacing-8);\n --bd-acc-header-margin-bottom: var(--spacing-0);\n --bd-acc-icon-gap: var(--spacing-12);\n --bd-acc-toggle-size: var(--icon-sm-size);\n --bd-acc-title-font-size: var(--typography-label-default-fontSize);\n --bd-acc-title-font-weight: var(--typography-label-default-fontWeight);\n --bd-acc-title-line-height: var(--typography-label-default-lineHeight);\n --bd-acc-title-color-collapsed: var(--color-text-primary);\n --bd-acc-title-color-expanded: var(--color-brand-800);\n --bd-acc-title-color-hover: var(--color-text-brand);\n --bd-acc-panel-font-size: var(--typography-caption-default-fontSize);\n --bd-acc-panel-font-weight: var(--typography-caption-default-fontWeight);\n --bd-acc-panel-line-height: var(--typography-caption-default-lineHeight);\n /* Panel body copy, small variant. */\n --bd-acc-panel-color: var(--color-text-primary);\n --bd-acc-panel-padding-block: var(--spacing-0) var(--spacing-8);\n --bd-acc-panel-padding-inline: var(--spacing-36) var(--spacing-8);\n --bd-acc-panel-paragraph-gap: var(--spacing-0);\n --bd-acc-item-margin-bottom: var(--spacing-0);\n }\n\n :host([variant=\"default-blue\"]) {\n /* The brand tint as a surface, which is what the Figma section already\n binds this to (status/brand/surface) and what bd-accordion-bg's item\n ground uses for the same tint. */\n --bd-acc-section-bg: var(--status-brand-surface);\n }\n\n .section-title {\n margin-bottom: var(--spacing-24);\n margin-top: var(--spacing-0);\n }\n\n :host([variant=\"small\"]) .section-title {\n margin-bottom: var(--spacing-16);\n }\n\n .user-guide-link {\n margin-top: var(--spacing-32);\n color: var(--color-text-brand);\n }\n\n .user-guide-link a {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n /* --color-text-brand, which is what .user-guide-link one rule up already\n says. This anchor overrode its own parent with the raw primitive, and\n blue-500 measures 4.34:1 on the --color-surface-container these links sit\n on -- the exact trap the token comment two hundred lines up describes and\n that this file already avoids twice elsewhere. blue-600 is 5.92. */\n color: var(--color-text-brand);\n gap: var(--spacing-12);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-body-xsmall-fontSize);\n }\n\n .user-guide-link a:focus-visible {\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n .user-guide-link .icon img {\n display: block;\n width: var(--dimension-16);\n height: var(--dimension-16);\n object-fit: contain;\n }\n`;"],"mappings":"A,0BAEA,IAAaA,EAAgB,CAAG,00HAwRnBC,EAAmB,CAAG,yxE"}
|
|
1
|
+
{"version":3,"file":"accordion.css.js","names":["accordionItemCSS","accordionCSS"],"sources":["../../../../src/components/accordion/accordion.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { headingRole } from \"#shared/token-scales.ts\";\n\n/* bd-accordion-item's five looks in one DOM. standard, small and chevron are\n 3.x bd-accordion-item's, which bd-accordion-section retuned through these\n custom properties; faq and terms are bd-accordion-bg-item's, which drew a\n second DOM (accordion-bg.css.ts, merged here) for the same disclosure. Each\n was carried over from the stylesheet that drew it and measured against\n that render at 375 and 1280.\n\n The --bd-acc-* properties are the item's knobs: each look sets them on the\n item's own host, and a page can still set them on a bd-accordion-item from\n outside, which beats a :host rule. */\nexport const accordionItemCSS = css`\n :host {\n display: block;\n margin-bottom: var(--bd-acc-item-margin-bottom, var(--spacing-16));\n box-sizing: border-box;\n border-radius: var(--shape-radius-sm);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* The last child sets no margin under itself, as 3.x's items did. A footer\n the page writes after the items keeps the last item's 16, which the\n group's footer spacing counts on: the faq footer pads 16 on top of it,\n and the standard footer's 32 margin collapses with it. The flat faq item\n (3.x's no-bg) dropped its margin as the last of its type instead, so its\n footer sits 16 under it, not 32. */\n :host(:last-child),\n :host([appearance=\"faq\"][background=\"none\"]:last-of-type) {\n margin-bottom: 0;\n }\n\n /* The one focus ring, on the item.\n\n Two owners are in play and they are deliberately different elements. The\n TRIGGER owns focus: it is the button, it carries aria-expanded, a keyboard\n lands on it and a screen reader announces it. The ITEM owns the focus\n VISUAL: a disclosure is perceived as one object -- the question and, when\n open, its answer -- and the ring goes round that object, growing with the\n answer when it is revealed. Measured before the item drew it, on\n Components/Accordion \"Item open by default\": host [99,131,1242,61],\n trigger [99,131,1242,24], content [99,171,1242,21] -- the ring stopped at\n the question and the answer sat outside it.\n\n Exactly one painter. The trigger's :focus-visible rule below sets outline\n none and nothing else; the ring lives here. P6C.2.1 found both painting the\n same --focus-outline-primary and removed the host's; P6C.2.2 moved the one\n ring up to the item and took the trigger's away, so the invariant that\n phase established -- one token, one painter -- still holds.\n\n The item is .disclosure, the element in this shadow root that holds the\n heading (and the trigger in it) and the panel and fills the host's box, so\n :has() can see the trigger match :focus-visible -- one hop further down\n since v4, through the heading the WAI-ARIA pattern wraps the button in.\n The host cannot: :host(:has(...)) looks at light-DOM children, never at\n the shadow tree. It used to be the host all the same, through\n data-bd-acc-focus, an attribute script set two frames after focusin and\n again on every keydown when the trigger matched :focus-visible; the\n selector answers both of those as they happen. A mouse click is still not\n :focus-visible, so it still draws no ring.\n\n The radius is the host's, inherited, so the ring follows the item's own\n corner: --shape-radius-lg on the tinted faq card, which is right.\n\n The stacking is measured: --bd-acc-item-margin-bottom is a public custom\n property, and with it zeroed on a group of tinted faq cards a 300x5 sample where\n the ring overlaps the next item holds 600 blue-500 pixels with\n position/z-index and 0 without -- the next item's tint paints over the\n ring. On an untinted item it reads 600 either way.\n\n This is the one rule that rings and stacks every look, so nothing here\n could give one look a different colour -- the divergence P5G found and\n P5G.1 closed stays closed by construction. */\n .disclosure {\n border-radius: inherit;\n }\n\n .disclosure:has(> .heading > .header:focus-visible) {\n position: relative;\n z-index: var(--z-base);\n /* The host's ground, repainted by the element that draws the ring, so\n one element anti-aliases the ring's inner corner against the tint.\n Split between the two, the corner showed a faint tinted seam inside\n the ring's white band (60 pixels at 8x, measured). Unset hosts are\n transparent, so this paints nothing on them. */\n background-color: inherit;\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n }\n\n /* The heading is the WAI-ARIA pattern's wrapper round the button, and adds\n no box of its own. */\n .heading {\n margin: 0;\n }\n\n ::slotted(bd-list) {\n --bd-li-margin-bottom: var(--spacing-16);\n display: block;\n margin-bottom: var(--spacing-16);\n }\n\n ::slotted(bd-list:last-child) {\n margin-bottom: 0;\n }\n\n /* bd-p in bd-accordion simplu — spacing-16 intre paragrafe */\n ::slotted(bd-p:last-of-type) {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .header {\n display: flex;\n align-items: flex-start;\n width: 100%;\n padding: var(--bd-acc-header-padding, var(--spacing-0));\n border: none;\n background: none;\n text-align: start;\n cursor: pointer;\n gap: var(--bd-acc-icon-gap, var(--spacing-12));\n /* The title's role, on the button too: the toggle's margin below counts\n in its em, and the button is what lays the row out. */\n font-family: var(--bd-acc-title-font-family, var(--typography-label-large-fontFamily));\n font-style: normal;\n font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n line-height: var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight));\n margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));\n /* The title's ink, which the slotted bd-h reads: --bd-heading-color is\n the one hook it inherits rather than resets (h.css.ts), so it follows\n the button's state from here. A color= on the bd-h still wins. */\n --bd-heading-color: var(--bd-acc-title-color-collapsed, var(--color-text-brand));\n }\n\n /* No ring on the trigger. outline: none is not a removal: the visible focus\n indicator is the item's ring, drawn by .disclosure above on exactly the\n frames this pseudo-class matches. Painting it here as well is the double\n ring P6C.2.1 measured and removed. */\n .header:focus-visible {\n outline: none;\n }\n\n /* blue-500 is 4.2:1 on the blue-50 tint these titles sit on; blue-600 is 5.72 */\n .header[aria-expanded=\"true\"] {\n --bd-heading-color: var(--bd-acc-title-color-expanded, var(--color-text-brand));\n }\n\n /* Only a look that sets a hover colour changes on hover; the fallback is\n each state's own colour. */\n .header[aria-expanded=\"true\"]:hover {\n --bd-heading-color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-expanded, var(--color-text-brand)));\n }\n\n .header[aria-expanded=\"false\"]:hover {\n --bd-heading-color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-collapsed, var(--color-text-brand)));\n }\n\n /* The title is the page's bd-h, set at the look's label role through the\n type hooks: label-large on standard and terms, label-default on small and\n chevron, control-label-xl on faq -- what 3.x set its own text in. The\n page keeps the level, which the item's heading reports; a visual-level,\n font-weight= or color= on the bd-h still wins. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n --bd-heading-font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));\n --bd-heading-font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n --bd-heading-line-height: var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight));\n --bd-heading-letter-spacing: var(--bd-acc-title-letter-spacing, var(--typography-label-large-letterSpacing));\n --bd-heading-font-family: var(--bd-acc-title-font-family, var(--typography-label-large-fontFamily));\n }\n\n .toggle {\n flex-shrink: 0;\n width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n min-width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n height: var(--bd-acc-toggle-size, var(--icon-sm-size));\n display: flex;\n align-items: center;\n justify-content: center;\n /* the box holds an icon, not text; none collapses the leading to the\n glyph rather than reserving a text line around it */\n line-height: var(--typography-lineHeight-none);\n /* Safari reads only the prefixed property */\n -webkit-user-select: none;\n user-select: none;\n /* Half the difference between the title's first line box and the glyph,\n so the icon sits on the optical centre of the type it aligns with. */\n margin-top: calc(\n (var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight)) * 1em -\n var(--bd-acc-toggle-size, var(--icon-sm-size))) / 2\n );\n /* The icon's ink: --color-text-brand, the role the label beside it\n resolves to and the one bd-link's whole family does. It passed\n --color-blue-500 until the Figma audit put icon and label side by side,\n and passed on the 3:1 non-text bar where the text beside it needed\n 4.5:1. The icon draws in currentColor. */\n color: var(--color-text-brand);\n }\n\n /* Wrapping is the whole mechanism: whether a title and its badge fit on one\n line depends on how long the title is and how much room this accordion\n has, not on how wide the window is. A 430px viewport rule used to force\n the column stack, which was both too eager and too narrow -- measured, a\n 320px-wide accordion on a 1280px viewport never triggered it and laid out\n correctly anyway, while a short title on a 320px viewport was stacked when\n it would have fitted. flex-wrap answers the question actually being asked. */\n .title-badge-wrapper {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n flex: 1;\n flex-wrap: wrap;\n }\n\n .title {\n min-width: 0;\n }\n\n /* The panel is indented past the toggle, so the indent is on the inline\n start: on a right-to-left page the toggle and the indent are both on the\n right. A look passes its padding as a block pair and an inline pair\n (start end) for the same reason; it was one four-value shorthand, which\n put the indent on the left whatever the direction. */\n .content {\n padding-block: var(--bd-acc-panel-padding-block, 0);\n padding-inline: var(--bd-acc-panel-padding-inline, calc(var(--icon-sm-size) + var(--spacing-12)) 0);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--bd-acc-panel-font-size, var(--typography-body-small-fontSize));\n font-weight: var(--bd-acc-panel-font-weight, var(--typography-body-small-fontWeight));\n line-height: var(--bd-acc-panel-line-height, var(--typography-body-small-lineHeight));\n /* -primary, which is what every look renders this at, and what the\n Figma item draws: text/primary. An answer is the payload of the\n disclosure, body copy, not supporting copy under a title. */\n color: var(--bd-acc-panel-color, var(--color-text-primary));\n }\n\n /* Plain hidden only: a panel that is hidden=\"until-found\" must keep its\n box, or find in page cannot reach it (accordion-panel.ts). The browser\n skips its contents, so it paints nothing, but a box in flow still counts:\n its block padding would show (the small look's is 8 at the bottom), and\n even at zero height it stops the trigger's bottom margin collapsing\n through the item -- measured, every closed item grew from 24 to 40. Out of\n flow and unpadded, a closed panel lays out as display: none did. */\n .content[hidden]:not([hidden=\"until-found\" i]) {\n display: none !important;\n }\n\n .content[hidden] {\n position: absolute;\n padding-block: 0;\n }\n\n ::slotted(p) {\n margin-top: 0;\n margin-bottom: var(--bd-acc-panel-paragraph-gap, var(--spacing-16));\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n }\n\n ::slotted(p:last-child) {\n margin-bottom: 0;\n }\n\n /* === SMALL === tighter rows and smaller type, on the page ground. Was\n bd-accordion-section[variant=\"small\"], which set these on its own host\n for the items to inherit through the slot. */\n :host([appearance=\"small\"]) {\n --bd-acc-header-padding: var(--spacing-12) var(--spacing-8);\n --bd-acc-header-margin-bottom: var(--spacing-0);\n --bd-acc-icon-gap: var(--spacing-12);\n --bd-acc-toggle-size: var(--icon-sm-size);\n --bd-acc-title-font-size: var(--typography-label-default-fontSize);\n --bd-acc-title-font-weight: var(--typography-label-default-fontWeight);\n --bd-acc-title-line-height: var(--typography-label-default-lineHeight);\n --bd-acc-title-letter-spacing: var(--typography-label-default-letterSpacing);\n --bd-acc-title-font-family: var(--typography-label-default-fontFamily);\n --bd-acc-title-color-collapsed: var(--color-text-primary);\n /* The expanded title, one step past its hover's brand ink: the stronger\n brand ink role. It was brand-800, one consumer and no role, and so the\n same deep blue on a dark page, 1.68:1 there. Light moves 800 to 700\n (11.59 to 8.56:1 on white); dark takes the role's brand-300. */\n --bd-acc-title-color-expanded: var(--color-text-brand-hover);\n --bd-acc-title-color-hover: var(--color-text-brand);\n --bd-acc-panel-font-size: var(--typography-caption-default-fontSize);\n --bd-acc-panel-font-weight: var(--typography-caption-default-fontWeight);\n --bd-acc-panel-line-height: var(--typography-caption-default-lineHeight);\n /* Panel body copy, small look. */\n --bd-acc-panel-color: var(--color-text-primary);\n --bd-acc-panel-padding-block: var(--spacing-0) var(--spacing-8);\n --bd-acc-panel-padding-inline: var(--spacing-36) var(--spacing-8);\n --bd-acc-panel-paragraph-gap: var(--spacing-0);\n --bd-acc-item-margin-bottom: var(--spacing-0);\n }\n\n /* === FAQ === bd-accordion-bg-item's look: a question at control-label-xl\n in a 16px block inset, primary until open, and the answer clipped to its\n box. With a ground (background=\"tint\", 3.x's default) the item is a card;\n with none it is 3.x's no-bg item, flat with its answer inset 40 on both\n sides. */\n :host([appearance=\"faq\"]) {\n --bd-acc-header-padding: var(--spacing-16) var(--spacing-0);\n --bd-acc-header-margin-bottom: var(--spacing-0);\n --bd-acc-title-font-size: var(--typography-control-label-xl-fontSize);\n --bd-acc-title-font-weight: var(--typography-control-label-xl-fontWeight);\n --bd-acc-title-line-height: var(--typography-control-label-xl-lineHeight);\n --bd-acc-title-letter-spacing: var(--typography-control-label-xl-letterSpacing);\n --bd-acc-title-font-family: var(--typography-control-label-xl-fontFamily);\n /* 18px/500 on the blue-50 item ground -- below WCAG large (18.66px bold),\n so it needs 4.5:1. blue-500 measured 4.20:1. */\n --bd-acc-title-color-collapsed: var(--color-text-primary);\n --bd-acc-title-color-expanded: var(--color-text-brand);\n --bd-acc-title-color-hover: var(--color-text-brand);\n --bd-acc-panel-padding-block: var(--spacing-0);\n }\n\n :host([appearance=\"faq\"][open]) {\n --bd-acc-panel-padding-block: var(--spacing-0) var(--spacing-16);\n }\n\n /* A closed answer is [hidden]; this clip is the one that stayed from the\n max-height collapse it once animated. */\n :host([appearance=\"faq\"]) .content {\n overflow: hidden;\n }\n\n :host([appearance=\"faq\"][background=\"none\"]) {\n border-radius: var(--radius-none);\n --bd-acc-panel-padding-inline: var(--spacing-40);\n }\n\n :host([appearance=\"faq\"][background=\"none\"][open]) {\n --bd-acc-panel-padding-block: var(--spacing-16);\n }\n\n /* === TERMS === the standard item without its corner: bd-accordion-bg-item\n inside .terms-of-use, which drew bd-accordion-item's DOM transparent and\n square. */\n :host([appearance=\"terms\"]) {\n border-radius: var(--radius-none);\n }\n\n /* The flat faq and terms items are transparent boxes with --radius-none, so\n their ring would be a hard rectangle, which Foundations/Focus says the\n ring should not be on an element with no shape of its own. They take the\n focus radius while focused. That changes no resting pixel -- these hosts\n paint no background and no border. */\n :host([appearance=\"terms\"][background=\"none\"]) .disclosure:has(> .heading > .header:focus-visible),\n :host([appearance=\"faq\"][background=\"none\"]) .disclosure:has(> .heading > .header:focus-visible) {\n border-radius: var(--focus-outline-radius);\n }\n\n /* === CHEVRON === text and an arrow, with no border, pill or ground: an\n item on its own, outside a group. It was the chevron boolean. */\n :host([appearance=\"chevron\"]) {\n --bd-acc-title-font-size: var(--typography-label-default-fontSize);\n --bd-acc-title-font-weight: var(--typography-label-default-fontWeight);\n --bd-acc-title-line-height: var(--typography-label-default-lineHeight);\n --bd-acc-title-letter-spacing: var(--typography-label-default-letterSpacing);\n --bd-acc-title-font-family: var(--typography-label-default-fontFamily);\n --bd-acc-title-color-collapsed: var(--color-text-brand);\n --bd-acc-title-color-expanded: var(--color-text-brand);\n --bd-acc-icon-gap: var(--spacing-8);\n --bd-acc-header-padding: var(--spacing-0);\n --bd-acc-header-margin-bottom: var(--spacing-24);\n --bd-acc-panel-padding-block: var(--spacing-0);\n --bd-acc-panel-padding-inline: var(--spacing-0);\n }\n\n :host([appearance=\"chevron\"]) .header {\n display: inline-flex;\n align-items: center;\n justify-content: flex-start;\n width: auto;\n border-radius: var(--radius-none);\n }\n\n :host([appearance=\"chevron\"]) .title-badge-wrapper {\n flex: 0 1 auto;\n }\n\n :host([appearance=\"chevron\"]) ::slotted(bd-h[slot=\"title\"]) {\n white-space: nowrap;\n }\n\n :host([appearance=\"chevron\"]) .header:hover ::slotted(bd-h[slot=\"title\"]) {\n text-decoration: underline;\n }\n\n :host([appearance=\"chevron\"]) .toggle {\n width: 16px;\n min-width: 16px;\n height: 16px;\n margin-top: 0;\n }\n\n /* === THE ITEM'S OWN GROUND === background, N5's words, on the item's own\n box: none (default) paints nothing; container (--color-surface-container)\n and tint (the brand wash) make the item a card, at the corner 3.x's\n tinted FAQ card had. The inset is on .disclosure, not the host: the focus\n ring is drawn on .disclosure, and it has to go round the whole card, not\n 16px inside it. A group never hands this down -- its own background is\n its band, a different box. */\n :host([background=\"container\"]) {\n background-color: var(--color-surface-container);\n border-radius: var(--shape-radius-lg);\n }\n\n :host([background=\"tint\"]) {\n background-color: var(--status-brand-surface);\n border-radius: var(--shape-radius-lg);\n }\n\n :host([background=\"container\"]) .disclosure,\n :host([background=\"tint\"]) .disclosure {\n padding-inline: var(--spacing-16);\n }\n\n /* The faq question pads its own row 16 above and below, which is the card's\n block inset; every other look's row has none, so the card adds it, and a\n closed card keeps no gap under its row. */\n :host([background=\"container\"]:not([appearance=\"faq\"])) .disclosure,\n :host([background=\"tint\"]:not([appearance=\"faq\"])) .disclosure {\n padding-block: var(--spacing-16);\n }\n\n :host([background=\"container\"]:not([appearance=\"faq\"]):not([open])),\n :host([background=\"tint\"]:not([appearance=\"faq\"]):not([open])) {\n --bd-acc-header-margin-bottom: var(--spacing-0);\n }\n`;\n\n/* bd-accordion: the band, the column, the title and the footer, per look. It\n was two stylesheets, bd-accordion-section's and bd-accordion-bg's, for the\n same structure. */\nexport const accordionCSS = css`\n :host {\n display: block;\n }\n\n /* The band is as wide as the group, and the group, like every page\n section, is as wide as the page; the column inside is .bd-ensemble's. It\n used to escape to the window's edges with width: 100vw and calc(50% -\n 50vw) margins, and 100vw counts a classic scrollbar: measured with a 15px\n one, the band ran from -7px to 1273px over a 1265px page, so every page\n with an accordion section scrolled sideways.\n\n Its ground is the background attribute, in N5's words: container\n (default), the section's own; tint, the brand wash (the section's\n default-blue, the Figma section's status/brand/surface); none, no\n ground. The look sets\n only the band's padding: 32 above and below, 24 on small, 64 on faq.\n 3.x's small band was --color-surface-default, the page's own white, which\n is none on a page (measured the same at 375 and 1280); bd-accordion-bg's\n drew none, its ground being each item's card. */\n .band {\n border-radius: var(--radius-none);\n box-sizing: border-box;\n padding-block: var(--bd-acc-section-padding-v, var(--spacing-32));\n }\n\n :host([background=\"container\"]) .band {\n background-color: var(--color-surface-container);\n }\n\n :host([background=\"tint\"]) .band {\n background-color: var(--status-brand-surface);\n }\n\n .inner {\n box-sizing: border-box;\n }\n\n :host([appearance=\"small\"]) {\n --bd-acc-section-padding-v: var(--spacing-24);\n }\n\n :host([appearance=\"faq\"]) {\n --bd-acc-section-padding-v: var(--spacing-64);\n }\n\n :host([without-padding]) .band {\n padding-block: var(--spacing-0);\n }\n\n /* The title: heading-h6 in bold over the items (3.x's <bd-h as=\"h6\"\n font-weight=\"bold\">), or heading-h2 centred on faq. The page picks the\n level. */\n .title {\n margin-bottom: var(--spacing-24);\n }\n\n :host([appearance=\"small\"]) .title {\n margin-bottom: var(--spacing-16);\n }\n\n /* 24, and the 32 the terms look padded under its heading */\n :host([appearance=\"terms\"]) .title {\n margin-bottom: var(--spacing-56);\n }\n\n :host([appearance=\"faq\"]) .title {\n margin-bottom: var(--spacing-32);\n }\n\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h6\"))}\n /* no role: the h6 role at 700, which 3.x's font-weight=\"bold\" asked for;\n no heading role carries the h6 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-bold);\n }\n\n :host([appearance=\"faq\"]) ::slotted(bd-h[slot=\"title\"]),\n :host([appearance=\"faq\"]) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n text-align: center;\n }\n\n /* The footer: the guide link (3.x's guide-label, guide-href and guide-icon,\n a bd-link now) or a note. 32 under the items, which is where the guide\n link sat, the last item's own 16 collapsing into it; a note is set in\n italics, as the bg group's footer slot drew it. */\n .footer {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-16);\n margin-top: var(--spacing-32);\n }\n\n /* faq pads its footer 16, as the bg group's footer slot did, on top of the\n last item's margin: 32 under a card, which keeps its 16, and 16 under a\n flat item, which drops it (accordionItemCSS). A margin here would\n collapse with the card's and lose the difference. */\n :host([appearance=\"faq\"]) .footer {\n margin-top: var(--spacing-0);\n padding-top: var(--spacing-16);\n }\n\n /* display: flex above would show an empty footer's margin */\n .footer[hidden] {\n display: none;\n }\n\n ::slotted(bd-p[slot=\"footer\"]) {\n font-style: italic;\n }\n`;\n"],"mappings":"A,4DAaA,IAAaA,EAAmB,CAAG,qoQAkbtBC,EAAe,CAAG,o2D"}
|