@repobit/dex-system-design 3.0.1 → 3.0.2
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 +7 -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 +14 -3
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-bg.js","sourceRoot":"","sources":["../../../../src/components/accordion/accordion-bg.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,YAAY,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QAEE,UAAK,GAAG,EAAE,CAAC;QAEX,SAAI,GAAG,KAAK,CAAC;QAEb,cAAS,GAAG,KAAK,CAAC;QAElB,cAAS,GAAG,EAAE,CAAC;QAEf,eAAU,GAAG,EAAE,CAAC;QAEhB,cAAS,GAAG,GAAG,CAAC;QAEhB,aAAQ,GAAY,SAAS,CAAC;QAE9B,YAAO,GAAY,SAAS,CAAC;IAoF/B,CAAC;aAlFQ,WAAM,GAAG,CAAC,WAAW,EAAE,YAAY,EAAE,gBAAgB,CAAC,AAAhD,CAAiD;IAE9D,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B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VzB,iBAAiB;IADtB,aAAa,CAAC,sBAAsB,CAAC;GAChC,iBAAiB,CA0ItB","sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport \"../heading/heading.ts\";\nimport \"../icons/minus-icon.ts\";\nimport \"../icons/plus-icon.ts\";\nimport \"../paragraph/paragraph.ts\";\nimport accordionCSS from \"./accordion-bg.css.ts\";\nimport { ensembleCSS } from \"../shared/ensemble.css.ts\";\nimport { accordionItem, accordionSection } from \"./accordion.css.ts\";\nimport { onTriggerKeydown } from \"./accordion-keyboard.ts\";\nimport { panelHidden } from \"./accordion-panel.ts\";\n\ntype Variant = \"default\" | \"faq\" | \"terms-of-use\";\n\n@defineElement(\"bd-accordion-bg\")\nclass BdAccordionBg extends LitElement {\n @property({ type: String })\n title = \"\";\n @property({ type: Boolean, reflect: true, attribute: \"no-bg\" })\n noBg = false;\n @property({ type: Boolean, reflect: true, attribute: \"no-padding\" })\n noPadding = false;\n @property({ type: String, reflect: true, attribute: \"guide-icon\" })\n guideIcon = \"\";\n @property({ type: String, reflect: true, attribute: \"guide-label\" })\n guideLabel = \"\";\n @property({ type: String, reflect: true, attribute: \"guide-href\" })\n guideHref = \"#\";\n @state()\n _variant: Variant = \"default\";\n @property({ type: String, reflect: true, attribute: \"data-variant\" })\n variant: Variant = \"default\";\n\n static styles = [ensembleCSS, accordionCSS, accordionSection];\n\n connectedCallback() {\n super.connectedCallback();\n Promise.resolve().then(() => this._detectVariant());\n }\n\n _detectVariant() {\n let el = this.parentElement;\n while (el) {\n if (el.classList.contains(\"faq\")) {\n this._variant = \"faq\";\n this.variant = \"faq\";\n this._propagateVariant(\"faq\");\n return;\n }\n if (\n el.classList.contains(\"terms-of-use\") ||\n el.classList.contains(\"system-requirements\")\n ) {\n this._variant = \"terms-of-use\";\n this.variant = \"terms-of-use\";\n this._propagateVariant(\"terms-of-use\");\n return;\n }\n el = el.parentElement;\n }\n this._variant = \"default\";\n this.variant = \"default\";\n this._propagateVariant(\"default\");\n }\n\n _propagateVariant(variant: Variant) {\n this.querySelectorAll(\"bd-accordion-bg-item\").forEach(item => {\n item.setAttribute(\"data-variant\", variant);\n });\n }\n\n _renderFaq() {\n return html`\n <div class=\"bd-accordion-bg-container ${this.noBg ? \"no-bg\" : \"\"} ${this.noPadding ? \"no-padding\" : \"\"}\">\n <div class=\"bd-ensemble bd-accordion-bg-inner\">\n <div class=\"bd-accordion-bg-header\">\n <bd-h as=\"h2\" class=\"bd-accordion-bg-title\">${this.title}</bd-h>\n </div>\n <slot></slot>\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n\n _renderTerms() {\n return html`\n <div class=\"bd-accordion-section-container\">\n <div class=\"bd-ensemble bd-accordion-section-inner\">\n ${this.title\n ? html`<bd-h as=\"h6\" paddingBottom=\"32\" fontWeight=\"bold\" class=\"section-title\">${this.title}</bd-h>`\n : \"\"}\n <slot></slot>\n <slot name=\"footer\"></slot>\n ${this.guideLabel\n ? html`\n <p class=\"user-guide-link\">\n <a href=${this.guideHref}>\n ${this.guideIcon\n ? html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`\n : \"\"}\n ${this.guideLabel}\n </a>\n </p>`\n : \"\"}\n </div>\n </div>\n `;\n }\n\n render() {\n return this._variant === \"terms-of-use\"\n ? this._renderTerms()\n : this._renderFaq();\n }\n}\n\n@defineElement(\"bd-accordion-bg-item\")\nclass BdAccordionBgItem extends LitElement {\n @property({ type: String })\n title = \"\";\n @property({ type: Boolean, reflect: true })\n open = false;\n @property({ type: Boolean, reflect: true, attribute: \"no-bg\" })\n noBg = false;\n @state()\n _variant: Variant = \"default\";\n @property({ type: String, reflect: true, attribute: \"data-variant\" })\n variant: Variant = \"default\";\n\n _headerId: string;\n _panelId : string;\n\n constructor() {\n super();\n const id = Math.random().toString(36)\n .slice(2, 11);\n this._headerId = `acc-bg-h-${id}`;\n this._panelId = `acc-bg-p-${id}`;\n }\n\n static styles = [accordionCSS, accordionItem];\n\n connectedCallback() {\n super.connectedCallback();\n Promise.resolve().then(() => this._detectVariant());\n }\n\n _detectVariant() {\n let el = this.parentElement;\n while (el) {\n if (el.classList.contains(\"faq\")) {\n this._variant = \"faq\";\n this.variant = \"faq\";\n return;\n }\n if (\n el.classList.contains(\"terms-of-use\") ||\n el.classList.contains(\"system-requirements\")\n ) {\n this._variant = \"terms-of-use\";\n this.variant = \"terms-of-use\";\n return;\n }\n el = el.parentElement;\n }\n this._variant = \"default\";\n this.variant = \"default\";\n }\n\n toggleItem() {\n this.open = !this.open;\n }\n\n /* Find in page matched text in the closed panel; see accordion-panel.ts. */\n _onBeforeMatch() {\n this.open = true;\n }\n\n _onTriggerKeydown(e: KeyboardEvent) {\n onTriggerKeydown(this, e);\n }\n\n /** Move keyboard focus to this item's disclosure trigger. */\n focusTrigger() {\n this.renderRoot?.querySelector<HTMLElement>(\".bd-accordion-bg-question, .header\")?.focus();\n }\n\n /* As in accordion.ts, the trigger and its panel sit in one .disclosure,\n the box the focus ring goes round. The default layout's item div is it. */\n _renderTerms() {\n return html`<div class=\"disclosure\">\n <button\n type=\"button\"\n class=\"header\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._panelId}\"\n @click=${this.toggleItem}\n @keydown=${this._onTriggerKeydown}\n >\n <span class=\"toggle\" aria-hidden=\"true\">\n ${this.open\n ? html`<bd-minus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-minus-icon>`\n : html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`}\n </span>\n <span class=\"title\">${this.title}</span>\n </button>\n <div\n id=\"${this._panelId}\"\n class=\"content\"\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n >\n <slot></slot>\n </div>\n </div>`;\n }\n\n _renderDefault() {\n return html`\n <div class=\"disclosure bd-accordion-bg-item ${this.open ? \"open\" : \"\"} ${this.noBg ? \"no-bg\" : \"\"}\">\n <button\n type=\"button\"\n id=\"${this._headerId}\"\n class=\"bd-accordion-bg-question\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._panelId}\"\n @click=${this.toggleItem}\n @keydown=${this._onTriggerKeydown}\n >\n <span class=\"bd-accordion-bg-icon\" aria-hidden=\"true\">\n ${this.open\n ? html`<bd-minus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-minus-icon>`\n : html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`}\n </span>\n <span class=\"bd-accordion-bg-question-text\">${this.title}</span>\n </button>\n <div\n id=\"${this._panelId}\"\n class=\"bd-accordion-bg-answer\"\n role=\"region\"\n aria-labelledby=\"${this._headerId}\"\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n >\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n render() {\n return this._variant === \"terms-of-use\"\n ? this._renderTerms()\n : this._renderDefault();\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-accordion-bg\" : BdAccordionBg;\n \"bd-accordion-bg-item\": BdAccordionBgItem;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"accordion-bg.js","names":["accordionCSS","_decorate","accordion_bg_css_default","__decorate","BdAccordionBg","LitElement","_args","ensembleCSS","accordionSection","el","item","variant","property","state","defineElement","BdAccordionBgItem","id","accordionItem","onTriggerKeydown","panelHidden"],"sources":["../../../../src/components/accordion/accordion-bg.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/icons/minus-icon.ts\";\nimport \"#components/icons/plus-icon.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport accordionCSS from \"./accordion-bg.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { accordionItem, accordionSection } from \"./accordion.css.ts\";\nimport { onTriggerKeydown } from \"./accordion-keyboard.ts\";\nimport { panelHidden } from \"./accordion-panel.ts\";\n\ntype Variant = \"default\" | \"faq\" | \"terms-of-use\";\n\n@defineElement(\"bd-accordion-bg\")\nclass BdAccordionBg extends LitElement {\n @property({ type: String })\n title = \"\";\n @property({ type: Boolean, reflect: true, attribute: \"no-bg\" })\n noBg = false;\n @property({ type: Boolean, reflect: true, attribute: \"no-padding\" })\n noPadding = false;\n @property({ type: String, reflect: true, attribute: \"guide-icon\" })\n guideIcon = \"\";\n @property({ type: String, reflect: true, attribute: \"guide-label\" })\n guideLabel = \"\";\n @property({ type: String, reflect: true, attribute: \"guide-href\" })\n guideHref = \"#\";\n @state()\n _variant: Variant = \"default\";\n @property({ type: String, reflect: true, attribute: \"data-variant\" })\n variant: Variant = \"default\";\n\n static styles = [ensembleCSS, accordionCSS, accordionSection];\n\n connectedCallback() {\n super.connectedCallback();\n Promise.resolve().then(() => this._detectVariant());\n }\n\n _detectVariant() {\n let el = this.parentElement;\n while (el) {\n if (el.classList.contains(\"faq\")) {\n this._variant = \"faq\";\n this.variant = \"faq\";\n this._propagateVariant(\"faq\");\n return;\n }\n if (\n el.classList.contains(\"terms-of-use\") ||\n el.classList.contains(\"system-requirements\")\n ) {\n this._variant = \"terms-of-use\";\n this.variant = \"terms-of-use\";\n this._propagateVariant(\"terms-of-use\");\n return;\n }\n el = el.parentElement;\n }\n this._variant = \"default\";\n this.variant = \"default\";\n this._propagateVariant(\"default\");\n }\n\n _propagateVariant(variant: Variant) {\n this.querySelectorAll(\"bd-accordion-bg-item\").forEach(item => {\n item.setAttribute(\"data-variant\", variant);\n });\n }\n\n _renderFaq() {\n return html`\n <div class=\"bd-accordion-bg-container ${this.noBg ? \"no-bg\" : \"\"} ${this.noPadding ? \"no-padding\" : \"\"}\">\n <div class=\"bd-ensemble bd-accordion-bg-inner\">\n <div class=\"bd-accordion-bg-header\">\n <bd-h as=\"h2\" class=\"bd-accordion-bg-title\">${this.title}</bd-h>\n </div>\n <slot></slot>\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n\n _renderTerms() {\n return html`\n <div class=\"bd-accordion-section-container\">\n <div class=\"bd-ensemble bd-accordion-section-inner\">\n ${this.title\n ? html`<bd-h as=\"h6\" paddingBottom=\"32\" fontWeight=\"bold\" class=\"section-title\">${this.title}</bd-h>`\n : \"\"}\n <slot></slot>\n <slot name=\"footer\"></slot>\n ${this.guideLabel\n ? html`\n <p class=\"user-guide-link\">\n <a href=${this.guideHref}>\n ${this.guideIcon\n ? html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`\n : \"\"}\n ${this.guideLabel}\n </a>\n </p>`\n : \"\"}\n </div>\n </div>\n `;\n }\n\n render() {\n return this._variant === \"terms-of-use\"\n ? this._renderTerms()\n : this._renderFaq();\n }\n}\n\n@defineElement(\"bd-accordion-bg-item\")\nclass BdAccordionBgItem extends LitElement {\n @property({ type: String })\n title = \"\";\n @property({ type: Boolean, reflect: true })\n open = false;\n @property({ type: Boolean, reflect: true, attribute: \"no-bg\" })\n noBg = false;\n @state()\n _variant: Variant = \"default\";\n @property({ type: String, reflect: true, attribute: \"data-variant\" })\n variant: Variant = \"default\";\n\n _headerId: string;\n _panelId : string;\n\n constructor() {\n super();\n const id = Math.random().toString(36)\n .slice(2, 11);\n this._headerId = `acc-bg-h-${id}`;\n this._panelId = `acc-bg-p-${id}`;\n }\n\n static styles = [accordionCSS, accordionItem];\n\n connectedCallback() {\n super.connectedCallback();\n Promise.resolve().then(() => this._detectVariant());\n }\n\n _detectVariant() {\n let el = this.parentElement;\n while (el) {\n if (el.classList.contains(\"faq\")) {\n this._variant = \"faq\";\n this.variant = \"faq\";\n return;\n }\n if (\n el.classList.contains(\"terms-of-use\") ||\n el.classList.contains(\"system-requirements\")\n ) {\n this._variant = \"terms-of-use\";\n this.variant = \"terms-of-use\";\n return;\n }\n el = el.parentElement;\n }\n this._variant = \"default\";\n this.variant = \"default\";\n }\n\n toggleItem() {\n this.open = !this.open;\n }\n\n /* Find in page matched text in the closed panel; see accordion-panel.ts. */\n _onBeforeMatch() {\n this.open = true;\n }\n\n _onTriggerKeydown(e: KeyboardEvent) {\n onTriggerKeydown(this, e);\n }\n\n /** Move keyboard focus to this item's disclosure trigger. */\n focusTrigger() {\n this.renderRoot?.querySelector<HTMLElement>(\".bd-accordion-bg-question, .header\")?.focus();\n }\n\n /* As in accordion.ts, the trigger and its panel sit in one .disclosure,\n the box the focus ring goes round. The default layout's item div is it. */\n _renderTerms() {\n return html`<div class=\"disclosure\">\n <button\n type=\"button\"\n class=\"header\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._panelId}\"\n @click=${this.toggleItem}\n @keydown=${this._onTriggerKeydown}\n >\n <span class=\"toggle\" aria-hidden=\"true\">\n ${this.open\n ? html`<bd-minus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-minus-icon>`\n : html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`}\n </span>\n <span class=\"title\">${this.title}</span>\n </button>\n <div\n id=\"${this._panelId}\"\n class=\"content\"\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n >\n <slot></slot>\n </div>\n </div>`;\n }\n\n _renderDefault() {\n return html`\n <div class=\"disclosure bd-accordion-bg-item ${this.open ? \"open\" : \"\"} ${this.noBg ? \"no-bg\" : \"\"}\">\n <button\n type=\"button\"\n id=\"${this._headerId}\"\n class=\"bd-accordion-bg-question\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._panelId}\"\n @click=${this.toggleItem}\n @keydown=${this._onTriggerKeydown}\n >\n <span class=\"bd-accordion-bg-icon\" aria-hidden=\"true\">\n ${this.open\n ? html`<bd-minus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-minus-icon>`\n : html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`}\n </span>\n <span class=\"bd-accordion-bg-question-text\">${this.title}</span>\n </button>\n <div\n id=\"${this._panelId}\"\n class=\"bd-accordion-bg-answer\"\n role=\"region\"\n aria-labelledby=\"${this._headerId}\"\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n >\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n render() {\n return this._variant === \"terms-of-use\"\n ? this._renderTerms()\n : this._renderDefault();\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-accordion-bg\" : BdAccordionBg;\n \"bd-accordion-bg-item\": BdAccordionBgItem;\n }\n}\n"],"mappings":"A,ypBAiBA,IACMI,EADN,cAC4BC,CAAW,C,8BAE7B,KAAA,MAAA,GAED,KAAA,KAAA,GAEK,KAAA,UAAA,GAEA,KAAA,UAAA,GAEC,KAAA,WAAA,GAED,KAAA,UAAA,IAEQ,KAAA,SAAA,UAED,KAAA,QAAA,S,QAEH,KAAA,OAAA,CAACE,EAAaP,EAAcQ,CAAgB,C,CAE5D,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,QAAQ,QAAQ,CAAC,CAAC,SAAW,KAAK,eAAe,CAAC,CACpD,CAEA,gBAAiB,CACf,IAAIC,EAAK,KAAK,cACd,KAAOA,GAAI,CACT,GAAIA,EAAG,UAAU,SAAS,KAAK,EAAG,CAChC,KAAK,SAAW,MAChB,KAAK,QAAW,MAChB,KAAK,kBAAkB,KAAK,EAC5B,MACF,CACA,GACEA,EAAG,UAAU,SAAS,cAAc,GACpCA,EAAG,UAAU,SAAS,qBAAqB,EAC3C,CACA,KAAK,SAAW,eAChB,KAAK,QAAW,eAChB,KAAK,kBAAkB,cAAc,EACrC,MACF,CACA,EAAKA,EAAG,aACV,CACA,KAAK,SAAW,UAChB,KAAK,QAAW,UAChB,KAAK,kBAAkB,SAAS,CAClC,CAEA,kBAAkB,EAAkB,CAClC,KAAK,iBAAiB,sBAAsB,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AA,EAAAC,CAAA"}
|
|
@@ -1,90 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Keyboard navigation between the disclosure triggers of one accordion group.
|
|
3
|
-
*
|
|
4
|
-
* The group is the set of accordion items that share a parent element -- the
|
|
5
|
-
* children of a bd-accordion-section, of a bd-accordion-bg, or of whatever the
|
|
6
|
-
* consuming page put them in. That is the smallest definition that gives the
|
|
7
|
-
* group ownership of navigation without a coordinator: the section is optional
|
|
8
|
-
* (Components/Accordion has an isolated-item story), items are cloned into
|
|
9
|
-
* bd-features' shadow root, and a consumer may nest one accordion inside
|
|
10
|
-
* another's panel. In every one of those cases the item's parent is the right
|
|
11
|
-
* group, and an item with no siblings is a group of one where these keys do
|
|
12
|
-
* nothing but swallow the key.
|
|
13
|
-
*
|
|
14
|
-
* The group is read at keydown time rather than cached, so items inserted or
|
|
15
|
-
* removed later are simply there or not.
|
|
16
|
-
*
|
|
17
|
-
* Keys, following the WAI-ARIA accordion pattern:
|
|
18
|
-
*
|
|
19
|
-
* ArrowDown / ArrowRight next trigger
|
|
20
|
-
* ArrowUp / ArrowLeft previous trigger
|
|
21
|
-
* Home first trigger
|
|
22
|
-
* End last trigger
|
|
23
|
-
*
|
|
24
|
-
* The arrows wrap at the ends, as Components/Tab List already does in this package;
|
|
25
|
-
* the pattern permits either wrapping or stopping and one answer per package is
|
|
26
|
-
* better than two. Left/Right are an extension of the pattern's Up/Down for a
|
|
27
|
-
* vertical list, harmless because the handler is on the button and cannot
|
|
28
|
-
* reach a text field in a panel.
|
|
29
|
-
*
|
|
30
|
-
* These keys MOVE focus and do nothing else. They do not open or close the
|
|
31
|
-
* item they land on -- Enter and Space do that, through the button's own
|
|
32
|
-
* activation, which this code never touches -- and Tab and Shift+Tab are not
|
|
33
|
-
* handled here at all, so the document's tab sequence runs through the group
|
|
34
|
-
* unchanged. There is no trap.
|
|
35
|
-
*/
|
|
36
|
-
const ITEM_TAGS = new Set(["BD-ACCORDION-ITEM", "BD-ACCORDION-BG-ITEM"]);
|
|
37
|
-
/** The accordion items that share this item's parent, in DOM order. */
|
|
38
|
-
export function accordionGroup(item) {
|
|
39
|
-
const parent = item.parentElement;
|
|
40
|
-
if (!parent)
|
|
41
|
-
return [item];
|
|
42
|
-
return Array.from(parent.children).filter((el) => ITEM_TAGS.has(el.tagName));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Handle a keydown that fired on an item's trigger. Returns true when the key
|
|
46
|
-
* was one of ours.
|
|
47
|
-
*/
|
|
48
|
-
export function onTriggerKeydown(item, event) {
|
|
49
|
-
if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey)
|
|
50
|
-
return false;
|
|
51
|
-
let where;
|
|
52
|
-
switch (event.key) {
|
|
53
|
-
case "ArrowDown":
|
|
54
|
-
case "ArrowRight":
|
|
55
|
-
where = "next";
|
|
56
|
-
break;
|
|
57
|
-
case "ArrowUp":
|
|
58
|
-
case "ArrowLeft":
|
|
59
|
-
where = "prev";
|
|
60
|
-
break;
|
|
61
|
-
case "Home":
|
|
62
|
-
where = "first";
|
|
63
|
-
break;
|
|
64
|
-
case "End":
|
|
65
|
-
where = "last";
|
|
66
|
-
break;
|
|
67
|
-
default: return false;
|
|
68
|
-
}
|
|
69
|
-
const group = accordionGroup(item);
|
|
70
|
-
const index = group.indexOf(item);
|
|
71
|
-
if (index < 0)
|
|
72
|
-
return false;
|
|
73
|
-
const last = group.length - 1;
|
|
74
|
-
let target;
|
|
75
|
-
if (where === "first")
|
|
76
|
-
target = 0;
|
|
77
|
-
else if (where === "last")
|
|
78
|
-
target = last;
|
|
79
|
-
else if (where === "next")
|
|
80
|
-
target = index === last ? 0 : index + 1;
|
|
81
|
-
else
|
|
82
|
-
target = index === 0 ? last : index - 1;
|
|
83
|
-
// Even a group of one swallows the key: an arrow on a focused disclosure
|
|
84
|
-
// trigger should not scroll the page out from under it.
|
|
85
|
-
event.preventDefault();
|
|
86
|
-
if (target !== index)
|
|
87
|
-
group[target].focusTrigger?.();
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
1
|
+
var e=/* @__PURE__ */ new Set([`BD-ACCORDION-ITEM`,`BD-ACCORDION-BG-ITEM`]);function t(t){let n=t.parentElement;return n?Array.from(n.children).filter(t=>e.has(t.tagName)):[t]}function n(e,n){if(n.defaultPrevented||n.altKey||n.ctrlKey||n.metaKey)return!1;let r;switch(n.key){case`ArrowDown`:case`ArrowRight`:r=`next`;break;case`ArrowUp`:case`ArrowLeft`:r=`prev`;break;case`Home`:r=`first`;break;case`End`:r=`last`;break;default:return!1}let i=t(e),a=i.indexOf(e);if(a<0)return!1;let o=i.length-1,s;return s=r===`first`?0:r===`last`?o:r===`next`?a===o?0:a+1:a===0?o:a-1,n.preventDefault(),s!==a&&i[s].focusTrigger?.(),!0}export{t as accordionGroup,n as onTriggerKeydown};
|
|
90
2
|
//# sourceMappingURL=accordion-keyboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-keyboard.js","
|
|
1
|
+
{"version":3,"file":"accordion-keyboard.js","names":["ITEM_TAGS","accordionGroup","parent","item","el","onTriggerKeydown","event","where","group","index","last","target"],"sources":["../../../../src/components/accordion/accordion-keyboard.ts"],"sourcesContent":["/**\n * Keyboard navigation between the disclosure triggers of one accordion group.\n *\n * The group is the set of accordion items that share a parent element -- the\n * children of a bd-accordion-section, of a bd-accordion-bg, or of whatever the\n * consuming page put them in. That is the smallest definition that gives the\n * group ownership of navigation without a coordinator: the section is optional\n * (Components/Accordion has an isolated-item story), items are cloned into\n * bd-features' shadow root, and a consumer may nest one accordion inside\n * another's panel. In every one of those cases the item's parent is the right\n * group, and an item with no siblings is a group of one where these keys do\n * nothing but swallow the key.\n *\n * The group is read at keydown time rather than cached, so items inserted or\n * removed later are simply there or not.\n *\n * Keys, following the WAI-ARIA accordion pattern:\n *\n * ArrowDown / ArrowRight next trigger\n * ArrowUp / ArrowLeft previous trigger\n * Home first trigger\n * End last trigger\n *\n * The arrows wrap at the ends, as Components/Tab List already does in this package;\n * the pattern permits either wrapping or stopping and one answer per package is\n * better than two. Left/Right are an extension of the pattern's Up/Down for a\n * vertical list, harmless because the handler is on the button and cannot\n * reach a text field in a panel.\n *\n * These keys MOVE focus and do nothing else. They do not open or close the\n * item they land on -- Enter and Space do that, through the button's own\n * activation, which this code never touches -- and Tab and Shift+Tab are not\n * handled here at all, so the document's tab sequence runs through the group\n * unchanged. There is no trap.\n */\n\nconst ITEM_TAGS = new Set([\"BD-ACCORDION-ITEM\", \"BD-ACCORDION-BG-ITEM\"]);\n\ntype AccordionItem = HTMLElement & { focusTrigger?(): void };\n\n/** The accordion items that share this item's parent, in DOM order. */\nexport function accordionGroup(item: AccordionItem): AccordionItem[] {\n const parent = item.parentElement;\n if (!parent) return [item];\n return Array.from(parent.children).filter((el): el is AccordionItem => ITEM_TAGS.has(el.tagName));\n}\n\n/**\n * Handle a keydown that fired on an item's trigger. Returns true when the key\n * was one of ours.\n */\nexport function onTriggerKeydown(item: AccordionItem, event: KeyboardEvent): boolean {\n if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return false;\n\n let where: \"next\" | \"prev\" | \"first\" | \"last\";\n switch (event.key) {\n case \"ArrowDown\":\n case \"ArrowRight\": where = \"next\"; break;\n case \"ArrowUp\":\n case \"ArrowLeft\": where = \"prev\"; break;\n case \"Home\": where = \"first\"; break;\n case \"End\": where = \"last\"; break;\n default: return false;\n }\n\n const group = accordionGroup(item);\n const index = group.indexOf(item);\n if (index < 0) return false;\n\n const last = group.length - 1;\n let target: number;\n if (where === \"first\") target = 0;\n else if (where === \"last\") target = last;\n else if (where === \"next\") target = index === last ? 0 : index + 1;\n else target = index === 0 ? last : index - 1;\n\n // Even a group of one swallows the key: an arrow on a focused disclosure\n // trigger should not scroll the page out from under it.\n event.preventDefault();\n if (target !== index) group[target].focusTrigger?.();\n return true;\n}\n"],"mappings":"AAoCA,IAAMA,kBAAY,IAAI,IAAI,CAAC,oBAAqB,sBAAsB,CAAC,EAKvE,SAAgBC,EAAe,EAAsC,CACnE,IAAMC,EAASC,EAAK,cAEpB,OADKD,EACE,MAAM,KAAKA,EAAO,QAAQ,CAAC,CAAC,OAAQ,GAA4BF,EAAU,IAAII,EAAG,OAAO,CAAC,EAD5E,CAACD,CAAI,CAE3B,CAMA,SAAgBE,EAAiB,EAAqB,EAA+B,CACnF,GAAIC,EAAM,kBAAoBA,EAAM,QAAUA,EAAM,SAAWA,EAAM,QAAS,MAAO,GAErF,IAAIC,EACJ,OAAQD,EAAM,IAAd,CACE,IAAK,YACL,IAAK,aAAc,EAAQ,OAAQ,MACnC,IAAK,UACL,IAAK,YAAa,EAAQ,OAAQ,MAClC,IAAK,OAAQ,EAAQ,QAAS,MAC9B,IAAK,MAAO,EAAQ,OAAQ,MAC5B,QAAS,MAAO,EAClB,CAEA,IAAME,EAAQP,EAAeE,CAAI,EAC3BM,EAAQD,EAAM,QAAQL,CAAI,EAChC,GAAIM,EAAQ,EAAG,MAAO,GAEtB,IAAMC,EAAOF,EAAM,OAAS,EACxBG,EAUJ,MATA,CAGKA,EAHDJ,IAAU,QAAkB,EACvBA,IAAU,OAAiBG,EAC3BH,IAAU,OAAiBE,IAAUC,EAAO,EAAID,EAAQ,EACnDA,IAAU,EAAIC,EAAOD,EAAQ,EAI3CH,EAAM,eAAe,EACjBK,IAAWF,GAAOD,EAAMG,EAAO,CAAC,eAAe,EAC5C,EACT,C"}
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* How a closed accordion panel is hidden, for both accordion families.
|
|
4
|
-
*
|
|
5
|
-
* A panel hidden with plain [hidden] is skipped by the browser's find in page
|
|
6
|
-
* and by a link to a text fragment, so Ctrl+F could not find anything an
|
|
7
|
-
* accordion was holding closed. hidden="until-found" keeps the panel's text
|
|
8
|
-
* searchable: on a match the browser fires beforematch on the panel, the item
|
|
9
|
-
* opens itself from that event (so aria-expanded, the icon and `open` follow),
|
|
10
|
-
* and the browser removes the attribute and scrolls to the match.
|
|
11
|
-
*
|
|
12
|
-
* It is Limited availability -- Chromium, and Firefox from 148; not Safari --
|
|
13
|
-
* so it is detected, and where it is missing the panel is plain hidden, as it
|
|
14
|
-
* always was (CLAUDE.md, Browser support).
|
|
15
|
-
*
|
|
16
|
-
* The panel keeps its box under until-found (the browser skips its contents,
|
|
17
|
-
* not the box), so a closed panel must have no block padding:
|
|
18
|
-
* accordion.css.ts zeroes it.
|
|
19
|
-
*/
|
|
20
|
-
export const UNTIL_FOUND = "onbeforematch" in HTMLElement.prototype;
|
|
21
|
-
/** The panel's hidden attribute: absent while open. */
|
|
22
|
-
export const panelHidden = (open) => (open ? nothing : UNTIL_FOUND ? "until-found" : "");
|
|
1
|
+
import{nothing as e}from"lit";var t=`onbeforematch`in HTMLElement.prototype,n=n=>n?e:t?`until-found`:``;export{t as UNTIL_FOUND,n as panelHidden};
|
|
23
2
|
//# sourceMappingURL=accordion-panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-panel.js","
|
|
1
|
+
{"version":3,"file":"accordion-panel.js","names":["UNTIL_FOUND","panelHidden","open","nothing"],"sources":["../../../../src/components/accordion/accordion-panel.ts"],"sourcesContent":["import { nothing } from \"lit\";\n\n/**\n * How a closed accordion panel is hidden, for both accordion families.\n *\n * A panel hidden with plain [hidden] is skipped by the browser's find in page\n * and by a link to a text fragment, so Ctrl+F could not find anything an\n * accordion was holding closed. hidden=\"until-found\" keeps the panel's text\n * searchable: on a match the browser fires beforematch on the panel, the item\n * opens itself from that event (so aria-expanded, the icon and `open` follow),\n * and the browser removes the attribute and scrolls to the match.\n *\n * It is Limited availability -- Chromium, and Firefox from 148; not Safari --\n * so it is detected, and where it is missing the panel is plain hidden, as it\n * always was (CLAUDE.md, Browser support).\n *\n * The panel keeps its box under until-found (the browser skips its contents,\n * not the box), so a closed panel must have no block padding:\n * accordion.css.ts zeroes it.\n */\nexport const UNTIL_FOUND = \"onbeforematch\" in HTMLElement.prototype;\n\n/** The panel's hidden attribute: absent while open. */\nexport const panelHidden = (open: boolean) => (open ? nothing : UNTIL_FOUND ? \"until-found\" : \"\");\n"],"mappings":"A,8BAoBA,IAAaA,EAAc,kBAAmB,YAAY,UAG7CC,EAAe,GAAmBC,EAAOC,EAAUH,EAAc,cAAgB,G"}
|
|
@@ -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
|