@repobit/dex-system-design 3.0.1 → 3.0.3
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 +14 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- 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 +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +16 -5
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1,381 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export const accordionItem = css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
margin-bottom: var(--bd-acc-item-margin-bottom, var(--spacing-16));
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
border-radius: var(--shape-radius-sm);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* The one focus ring, on the item.
|
|
11
|
-
|
|
12
|
-
Two owners are in play and they are deliberately different elements. The
|
|
13
|
-
TRIGGER owns focus: it is the button, it carries aria-expanded, a keyboard
|
|
14
|
-
lands on it and a screen reader announces it. The ITEM owns the focus
|
|
15
|
-
VISUAL: a disclosure is perceived as one object -- the question and, when
|
|
16
|
-
open, its answer -- and the ring goes round that object, growing with the
|
|
17
|
-
answer when it is revealed. Measured before the item drew it, on
|
|
18
|
-
Components/Accordion "Item open by default": host [99,131,1242,61],
|
|
19
|
-
trigger [99,131,1242,24], content [99,171,1242,21] -- the ring stopped at
|
|
20
|
-
the question and the answer sat outside it.
|
|
21
|
-
|
|
22
|
-
Exactly one painter. The trigger's :focus-visible rule below sets outline
|
|
23
|
-
none and nothing else; the ring lives here. P6C.2.1 found both painting the
|
|
24
|
-
same --focus-outline-primary and removed the host's; P6C.2.2 moved the one
|
|
25
|
-
ring up to the item and took the trigger's away, so the invariant that
|
|
26
|
-
phase established -- one token, one painter -- still holds.
|
|
27
|
-
|
|
28
|
-
The item is .disclosure, the element in this shadow root that holds the
|
|
29
|
-
trigger and the panel and fills the host's box, so :has() can see the
|
|
30
|
-
trigger match :focus-visible. The host cannot: :host(:has(...)) looks at
|
|
31
|
-
light-DOM children, never at the shadow tree. It used to be the host all
|
|
32
|
-
the same, through data-bd-acc-focus, an attribute script set two frames
|
|
33
|
-
after focusin and again on every keydown when the trigger matched
|
|
34
|
-
:focus-visible; the selector answers both of those as they happen. A
|
|
35
|
-
mouse click is still not :focus-visible, so it still draws no ring.
|
|
36
|
-
|
|
37
|
-
The radius is the host's, inherited, for the reason the bg item's note
|
|
38
|
-
gives: the ring follows the item's own corner.
|
|
39
|
-
|
|
40
|
-
The stacking is measured: --bd-acc-item-margin-bottom is a public custom
|
|
41
|
-
property, and with it zeroed on AccordionBg "FAQ - Default" a 300x5
|
|
42
|
-
sample where the ring overlaps the next item holds 600 blue-500 pixels
|
|
43
|
-
with position/z-index and 0 without -- the next item's tint paints over
|
|
44
|
-
the ring. On the untinted bd-accordion-item it reads 600 either way.
|
|
45
|
-
|
|
46
|
-
bd-accordion-bg-item adopts this stylesheet too, so this is the one rule
|
|
47
|
-
that rings and stacks the whole accordion family. */
|
|
48
|
-
.disclosure {
|
|
49
|
-
border-radius: inherit;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.disclosure:has(> :is(.header, .bd-accordion-bg-question):focus-visible) {
|
|
53
|
-
position: relative;
|
|
54
|
-
z-index: var(--z-base);
|
|
55
|
-
/* The host's ground, repainted by the element that draws the ring, so
|
|
56
|
-
one element anti-aliases the ring's inner corner against the tint.
|
|
57
|
-
Split between the two, the corner showed a faint tinted seam inside
|
|
58
|
-
the ring's white band (60 pixels at 8x, measured). Unset hosts are
|
|
59
|
-
transparent, so this paints nothing on them. */
|
|
60
|
-
background-color: inherit;
|
|
61
|
-
box-shadow: var(--focus-outline-primary);
|
|
62
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
63
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
64
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
65
|
-
outer band. */
|
|
66
|
-
outline: var(--border-width-2) solid transparent;
|
|
67
|
-
outline-offset: var(--focus-outline-offset);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
:host(:last-child) {
|
|
71
|
-
margin-bottom: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* The section variants reach the items as custom properties, set on
|
|
75
|
-
bd-accordion-section's own host (accordionSection below) and inherited
|
|
76
|
-
through the slot. They were :host-context() rules here, which only
|
|
77
|
-
Chromium implements: in Safari and Firefox the small variant's padding,
|
|
78
|
-
type and colours, and the item spacing, never applied. The default
|
|
79
|
-
section's block went with them -- every value in it was already the
|
|
80
|
-
fallback each rule below carries, and its title colours were never read. */
|
|
81
|
-
|
|
82
|
-
::slotted(bd-list) {
|
|
83
|
-
--bd-li-margin-bottom: var(--spacing-16);
|
|
84
|
-
display: block;
|
|
85
|
-
margin-bottom: var(--spacing-16);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
::slotted(bd-list:last-child) {
|
|
89
|
-
margin-bottom: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* bd-p in bd-accordion simplu — spacing-16 intre paragrafe */
|
|
93
|
-
::slotted(bd-p:last-of-type) {
|
|
94
|
-
--bd-paragraph-margin-bottom: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.header {
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: flex-start;
|
|
100
|
-
width: 100%;
|
|
101
|
-
padding: var(--bd-acc-header-padding, var(--spacing-0));
|
|
102
|
-
border: none;
|
|
103
|
-
background: none;
|
|
104
|
-
text-align: start;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
gap: var(--bd-acc-icon-gap, var(--spacing-12));
|
|
107
|
-
font-family: var(--typography-fontFamily-sans);
|
|
108
|
-
font-style: normal;
|
|
109
|
-
font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));
|
|
110
|
-
font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));
|
|
111
|
-
line-height: var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight));
|
|
112
|
-
margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/* No ring on the trigger. outline: none is not a removal: the visible focus
|
|
116
|
-
indicator is the item's ring, drawn by .disclosure above on exactly the
|
|
117
|
-
frames this pseudo-class matches. Painting it here as well is the double
|
|
118
|
-
ring P6C.2.1 measured and removed. */
|
|
119
|
-
.header:focus-visible {
|
|
120
|
-
outline: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.header[aria-expanded="true"] .title {
|
|
124
|
-
/* blue-500 is 4.2:1 on the blue-50 tint these titles sit on; blue-600 is 5.72 */
|
|
125
|
-
color: var(--bd-acc-title-color-expanded, var(--color-text-brand));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.header[aria-expanded="false"] .title {
|
|
129
|
-
color: var(--bd-acc-title-color-collapsed, var(--color-text-brand));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* Only a section that sets a hover colour changes on hover; the fallback is
|
|
133
|
-
each state's own colour. */
|
|
134
|
-
.header[aria-expanded="true"]:hover .title {
|
|
135
|
-
color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-expanded, var(--color-text-brand)));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.header[aria-expanded="false"]:hover .title {
|
|
139
|
-
color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-collapsed, var(--color-text-brand)));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.toggle {
|
|
143
|
-
flex-shrink: 0;
|
|
144
|
-
width: var(--bd-acc-toggle-size, var(--icon-sm-size));
|
|
145
|
-
min-width: var(--bd-acc-toggle-size, var(--icon-sm-size));
|
|
146
|
-
height: var(--bd-acc-toggle-size, var(--icon-sm-size));
|
|
147
|
-
display: flex;
|
|
148
|
-
align-items: center;
|
|
149
|
-
justify-content: center;
|
|
150
|
-
/* the box holds an icon, not text; none collapses the leading to the
|
|
151
|
-
glyph rather than reserving a text line around it */
|
|
152
|
-
line-height: var(--typography-lineHeight-none);
|
|
153
|
-
/* Safari reads only the prefixed property */
|
|
154
|
-
-webkit-user-select: none;
|
|
155
|
-
user-select: none;
|
|
156
|
-
margin-top: calc(
|
|
157
|
-
(var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight)) * 1em -
|
|
158
|
-
var(--bd-acc-toggle-size, var(--icon-sm-size))) / 2
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* A ".toggle img" rule stood here and could never match. The toggle renders
|
|
163
|
-
<bd-plus-icon>, <bd-minus-icon> or the chevron atoms, each taking its own
|
|
164
|
-
size and color props -- there has been no <img> here since that migration,
|
|
165
|
-
and the atom's props already carry what this rule was sizing.
|
|
166
|
-
.
|
|
167
|
-
Those props pass --color-text-brand, the same role .header carries and the
|
|
168
|
-
one bd-link's whole family resolves to. They passed --color-blue-500 until
|
|
169
|
-
the Figma audit put icon and label side by side: the label was already the
|
|
170
|
-
role, so the toggle disagreed with its own text by one step. This file had
|
|
171
|
-
already made the same move twice -- on .header[aria-expanded="true"] .title
|
|
172
|
-
and on .user-guide-link a -- and the icon was the hold-out, passing on the
|
|
173
|
-
3:1 non-text bar where the text beside it needed 4.5:1. */
|
|
174
|
-
|
|
175
|
-
.title {
|
|
176
|
-
font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/* Wrapping is the whole mechanism: whether a title and its badge fit on one
|
|
180
|
-
line depends on how long the title is and how much room this accordion
|
|
181
|
-
has, not on how wide the window is. A 430px viewport rule used to force
|
|
182
|
-
the column stack, which was both too eager and too narrow -- measured, a
|
|
183
|
-
320px-wide accordion on a 1280px viewport never triggered it and laid out
|
|
184
|
-
correctly anyway, while a short title on a 320px viewport was stacked when
|
|
185
|
-
it would have fitted. flex-wrap answers the question actually being asked. */
|
|
186
|
-
.title-badge-wrapper {
|
|
187
|
-
display: flex;
|
|
188
|
-
align-items: center;
|
|
189
|
-
gap: var(--spacing-8);
|
|
190
|
-
flex: 1;
|
|
191
|
-
flex-wrap: wrap;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/* The panel is indented past the toggle, so the indent is on the inline
|
|
195
|
-
start: on a right-to-left page the toggle and the indent are both on the
|
|
196
|
-
right. The section variant passes its padding as a block pair and an
|
|
197
|
-
inline pair (start end) for the same reason; it was one four-value
|
|
198
|
-
shorthand, which put the indent on the left whatever the direction. */
|
|
199
|
-
.content {
|
|
200
|
-
padding-block: var(--bd-acc-panel-padding-block, 0);
|
|
201
|
-
padding-inline: var(--bd-acc-panel-padding-inline, calc(var(--icon-sm-size) + var(--spacing-12)) 0);
|
|
202
|
-
font-family: var(--typography-fontFamily-sans);
|
|
203
|
-
font-size: var(--bd-acc-panel-font-size, var(--typography-body-small-fontSize));
|
|
204
|
-
font-weight: var(--bd-acc-panel-font-weight, var(--typography-body-small-fontWeight));
|
|
205
|
-
line-height: var(--bd-acc-panel-line-height, var(--typography-body-small-lineHeight));
|
|
206
|
-
/* -primary, which is what every section renders this at, and what the
|
|
207
|
-
Figma item draws: text/primary. */
|
|
208
|
-
color: var(--bd-acc-panel-color, var(--color-text-primary));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/* Plain hidden only: a panel that is hidden="until-found" must keep its
|
|
212
|
-
box, or find in page cannot reach it (accordion-panel.ts). The browser
|
|
213
|
-
skips its contents, so it paints nothing, but a box in flow still counts:
|
|
214
|
-
its block padding would show (the small variant's is 8 at the bottom), and
|
|
215
|
-
even at zero height it stops the trigger's bottom margin collapsing
|
|
216
|
-
through the item -- measured, every closed item grew from 24 to 40. Out of
|
|
217
|
-
flow and unpadded, a closed panel lays out as display: none did. */
|
|
218
|
-
.content[hidden]:not([hidden="until-found" i]) {
|
|
219
|
-
display: none !important;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.content[hidden] {
|
|
223
|
-
position: absolute;
|
|
224
|
-
padding-block: 0;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
::slotted(p) {
|
|
228
|
-
margin-top: 0;
|
|
229
|
-
margin-bottom: var(--bd-acc-panel-paragraph-gap, var(--spacing-16));
|
|
230
|
-
font-size: inherit;
|
|
231
|
-
font-family: inherit;
|
|
232
|
-
font-weight: inherit;
|
|
233
|
-
line-height: inherit;
|
|
234
|
-
color: inherit;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
::slotted(p:last-child) {
|
|
238
|
-
margin-bottom: 0;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/* === CHEVRON VARIANT (text + arrow icon only, no visible border/pill/background) === */
|
|
242
|
-
.header--chevron {
|
|
243
|
-
display: inline-flex;
|
|
244
|
-
align-items: center;
|
|
245
|
-
justify-content: flex-start;
|
|
246
|
-
width: auto;
|
|
247
|
-
gap: var(--spacing-8);
|
|
248
|
-
padding: 0;
|
|
249
|
-
border: none;
|
|
250
|
-
border-radius: var(--radius-none);
|
|
251
|
-
background: none;
|
|
252
|
-
margin-bottom: var(--spacing-24);
|
|
253
|
-
font-size: var(--typography-label-default-fontSize);
|
|
254
|
-
font-weight: var(--typography-label-default-fontWeight);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.header--chevron .title-badge-wrapper {
|
|
258
|
-
flex: 0 1 auto;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.header--chevron .title {
|
|
262
|
-
color: var(--color-text-brand);
|
|
263
|
-
white-space: nowrap;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.header--chevron:hover .title {
|
|
267
|
-
text-decoration: underline;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.toggle--chevron {
|
|
271
|
-
width: 16px;
|
|
272
|
-
min-width: 16px;
|
|
273
|
-
height: 16px;
|
|
274
|
-
margin-top: 0;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.content--chevron {
|
|
278
|
-
padding: 0;
|
|
279
|
-
}
|
|
280
|
-
`;
|
|
281
|
-
export const accordionSection = css `
|
|
282
|
-
/* The band is as wide as the section, and the section, like every page
|
|
283
|
-
section, is as wide as the page; the column inside is .bd-ensemble's. It
|
|
284
|
-
used to escape to the window's edges with width: 100vw and calc(50% -
|
|
285
|
-
50vw) margins, and 100vw counts a classic scrollbar: measured with a 15px
|
|
286
|
-
one, the band ran from -7px to 1273px over a 1265px page, so every page
|
|
287
|
-
with an accordion section scrolled sideways. */
|
|
288
|
-
.bd-accordion-section-container {
|
|
289
|
-
background-color: var(--bd-acc-section-bg, var(--color-surface-container));
|
|
290
|
-
border-radius: var(--radius-none);
|
|
291
|
-
box-sizing: border-box;
|
|
292
|
-
padding-top: var(--bd-acc-section-padding-v, var(--spacing-32));
|
|
293
|
-
padding-bottom: var(--bd-acc-section-padding-v, var(--spacing-32));
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.bd-accordion-section-inner {
|
|
297
|
-
box-sizing: border-box;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
:host([variant="small"]) {
|
|
301
|
-
/* White here means "the untinted page ground", which is -surface-default's
|
|
302
|
-
job; the default variant two rules up already asks for a surface role. */
|
|
303
|
-
--bd-acc-section-bg: var(--color-surface-default);
|
|
304
|
-
--bd-acc-section-padding-v: var(--spacing-24);
|
|
305
|
-
/* Read by the items (accordionItem above), which inherit them through the slot. */
|
|
306
|
-
--bd-acc-header-padding: var(--spacing-12) var(--spacing-8);
|
|
307
|
-
--bd-acc-header-margin-bottom: var(--spacing-0);
|
|
308
|
-
--bd-acc-icon-gap: var(--spacing-12);
|
|
309
|
-
--bd-acc-toggle-size: var(--icon-sm-size);
|
|
310
|
-
--bd-acc-title-font-size: var(--typography-label-default-fontSize);
|
|
311
|
-
--bd-acc-title-font-weight: var(--typography-label-default-fontWeight);
|
|
312
|
-
--bd-acc-title-line-height: var(--typography-label-default-lineHeight);
|
|
313
|
-
--bd-acc-title-color-collapsed: var(--color-text-primary);
|
|
314
|
-
--bd-acc-title-color-expanded: var(--color-brand-800);
|
|
315
|
-
--bd-acc-title-color-hover: var(--color-text-brand);
|
|
316
|
-
--bd-acc-panel-font-size: var(--typography-caption-default-fontSize);
|
|
317
|
-
--bd-acc-panel-font-weight: var(--typography-caption-default-fontWeight);
|
|
318
|
-
--bd-acc-panel-line-height: var(--typography-caption-default-lineHeight);
|
|
319
|
-
/* Panel body copy, small variant. */
|
|
320
|
-
--bd-acc-panel-color: var(--color-text-primary);
|
|
321
|
-
--bd-acc-panel-padding-block: var(--spacing-0) var(--spacing-8);
|
|
322
|
-
--bd-acc-panel-padding-inline: var(--spacing-36) var(--spacing-8);
|
|
323
|
-
--bd-acc-panel-paragraph-gap: var(--spacing-0);
|
|
324
|
-
--bd-acc-item-margin-bottom: var(--spacing-0);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
:host([variant="default-blue"]) {
|
|
328
|
-
/* The brand tint as a surface, which is what the Figma section already
|
|
329
|
-
binds this to (status/brand/surface) and what bd-accordion-bg's item
|
|
330
|
-
ground uses for the same tint. */
|
|
331
|
-
--bd-acc-section-bg: var(--status-brand-surface);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.section-title {
|
|
335
|
-
margin-bottom: var(--spacing-24);
|
|
336
|
-
margin-top: var(--spacing-0);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
:host([variant="small"]) .section-title {
|
|
340
|
-
margin-bottom: var(--spacing-16);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.user-guide-link {
|
|
344
|
-
margin-top: var(--spacing-32);
|
|
345
|
-
color: var(--color-text-brand);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.user-guide-link a {
|
|
349
|
-
display: inline-flex;
|
|
350
|
-
align-items: center;
|
|
351
|
-
text-decoration: none;
|
|
352
|
-
/* --color-text-brand, which is what .user-guide-link one rule up already
|
|
353
|
-
says. This anchor overrode its own parent with the raw primitive, and
|
|
354
|
-
blue-500 measures 4.34:1 on the --color-surface-container these links sit
|
|
355
|
-
on -- the exact trap the token comment two hundred lines up describes and
|
|
356
|
-
that this file already avoids twice elsewhere. blue-600 is 5.92. */
|
|
357
|
-
color: var(--color-text-brand);
|
|
358
|
-
gap: var(--spacing-12);
|
|
359
|
-
font-family: var(--typography-fontFamily-sans);
|
|
360
|
-
font-size: var(--typography-body-xsmall-fontSize);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.user-guide-link a:focus-visible {
|
|
364
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
365
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
366
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
367
|
-
outer band. */
|
|
368
|
-
outline: var(--border-width-2) solid transparent;
|
|
369
|
-
outline-offset: var(--focus-outline-offset);
|
|
370
|
-
box-shadow: var(--focus-outline-primary);
|
|
371
|
-
border-radius: var(--focus-outline-radius);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.user-guide-link .icon img {
|
|
375
|
-
display: block;
|
|
376
|
-
width: var(--dimension-16);
|
|
377
|
-
height: var(--dimension-16);
|
|
378
|
-
object-fit: contain;
|
|
379
|
-
}
|
|
380
|
-
`;
|
|
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};
|
|
381
2
|
//# sourceMappingURL=accordion.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.css.js","sourceRoot":"","sources":["../../../../src/components/accordion/accordion.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsR/B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGlC,CAAC","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`;"]}
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import "../heading/heading.
|
|
4
|
-
import "../icons/arrow-down-icon.
|
|
5
|
-
import "../icons/arrow-up-icon.
|
|
6
|
-
import "../icons/minus-icon.
|
|
7
|
-
import "../icons/plus-icon.
|
|
8
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../heading/heading.js";
|
|
4
|
+
import "../icons/arrow-down-icon.js";
|
|
5
|
+
import "../icons/arrow-up-icon.js";
|
|
6
|
+
import "../icons/minus-icon.js";
|
|
7
|
+
import "../icons/plus-icon.js";
|
|
8
|
+
import "../paragraph/paragraph.js";
|
|
9
9
|
type SectionVariant = "default" | "default-blue" | "small";
|
|
10
10
|
export declare class BdAccordionItem extends LitElement {
|
|
11
11
|
static styles: import("lit").CSSResult[];
|