@repobit/dex-system-design 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +16 -5
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1,70 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property, state } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import "../heading/heading.js";
|
|
13
|
-
import "../icons/minus-icon.js";
|
|
14
|
-
import "../icons/plus-icon.js";
|
|
15
|
-
import "../paragraph/paragraph.js";
|
|
16
|
-
import accordionCSS from "./accordion-bg.css.js";
|
|
17
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
18
|
-
import { accordionItem, accordionSection } from "./accordion.css.js";
|
|
19
|
-
import { onTriggerKeydown } from "./accordion-keyboard.js";
|
|
20
|
-
import { panelHidden } from "./accordion-panel.js";
|
|
21
|
-
let BdAccordionBg = class BdAccordionBg extends LitElement {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
|
-
this.title = "";
|
|
25
|
-
this.noBg = false;
|
|
26
|
-
this.noPadding = false;
|
|
27
|
-
this.guideIcon = "";
|
|
28
|
-
this.guideLabel = "";
|
|
29
|
-
this.guideHref = "#";
|
|
30
|
-
this._variant = "default";
|
|
31
|
-
this.variant = "default";
|
|
32
|
-
}
|
|
33
|
-
static { this.styles = [ensembleCSS, accordionCSS, accordionSection]; }
|
|
34
|
-
connectedCallback() {
|
|
35
|
-
super.connectedCallback();
|
|
36
|
-
Promise.resolve().then(() => this._detectVariant());
|
|
37
|
-
}
|
|
38
|
-
_detectVariant() {
|
|
39
|
-
let el = this.parentElement;
|
|
40
|
-
while (el) {
|
|
41
|
-
if (el.classList.contains("faq")) {
|
|
42
|
-
this._variant = "faq";
|
|
43
|
-
this.variant = "faq";
|
|
44
|
-
this._propagateVariant("faq");
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (el.classList.contains("terms-of-use") ||
|
|
48
|
-
el.classList.contains("system-requirements")) {
|
|
49
|
-
this._variant = "terms-of-use";
|
|
50
|
-
this.variant = "terms-of-use";
|
|
51
|
-
this._propagateVariant("terms-of-use");
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
el = el.parentElement;
|
|
55
|
-
}
|
|
56
|
-
this._variant = "default";
|
|
57
|
-
this.variant = "default";
|
|
58
|
-
this._propagateVariant("default");
|
|
59
|
-
}
|
|
60
|
-
_propagateVariant(variant) {
|
|
61
|
-
this.querySelectorAll("bd-accordion-bg-item").forEach(item => {
|
|
62
|
-
item.setAttribute("data-variant", variant);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
_renderFaq() {
|
|
66
|
-
return html `
|
|
67
|
-
<div class="bd-accordion-bg-container ${this.noBg ? "no-bg" : ""} ${this.noPadding ? "no-padding" : ""}">
|
|
1
|
+
import e from"./accordion-bg.css.js";import{defineElement as t}from"../shared/define-element.js";import"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../icons/minus-icon.js";import"../icons/plus-icon.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import{accordionItem as i,accordionSection as a}from"./accordion.css.js";import{onTriggerKeydown as o}from"./accordion-keyboard.js";import{panelHidden as s}from"./accordion-panel.js";import{LitElement as c,html as l}from"lit";import{property as u,state as d}from"lit/decorators.js";var f=class extends c{constructor(...e){super(...e),this.title=``,this.noBg=!1,this.noPadding=!1,this.guideIcon=``,this.guideLabel=``,this.guideHref=`#`,this._variant=`default`,this.variant=`default`}static{this.styles=[r,e,a]}connectedCallback(){super.connectedCallback(),Promise.resolve().then(()=>this._detectVariant())}_detectVariant(){let e=this.parentElement;for(;e;){if(e.classList.contains(`faq`)){this._variant=`faq`,this.variant=`faq`,this._propagateVariant(`faq`);return}if(e.classList.contains(`terms-of-use`)||e.classList.contains(`system-requirements`)){this._variant=`terms-of-use`,this.variant=`terms-of-use`,this._propagateVariant(`terms-of-use`);return}e=e.parentElement}this._variant=`default`,this.variant=`default`,this._propagateVariant(`default`)}_propagateVariant(e){this.querySelectorAll(`bd-accordion-bg-item`).forEach(t=>{t.setAttribute(`data-variant`,e)})}_renderFaq(){return l`
|
|
2
|
+
<div class="bd-accordion-bg-container ${this.noBg?`no-bg`:``} ${this.noPadding?`no-padding`:``}">
|
|
68
3
|
<div class="bd-ensemble bd-accordion-bg-inner">
|
|
69
4
|
<div class="bd-accordion-bg-header">
|
|
70
5
|
<bd-h as="h2" class="bd-accordion-bg-title">${this.title}</bd-h>
|
|
@@ -73,120 +8,22 @@ let BdAccordionBg = class BdAccordionBg extends LitElement {
|
|
|
73
8
|
<slot name="footer"></slot>
|
|
74
9
|
</div>
|
|
75
10
|
</div>
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
_renderTerms() {
|
|
79
|
-
return html `
|
|
11
|
+
`}_renderTerms(){return l`
|
|
80
12
|
<div class="bd-accordion-section-container">
|
|
81
13
|
<div class="bd-ensemble bd-accordion-section-inner">
|
|
82
|
-
${this.title
|
|
83
|
-
? html `<bd-h as="h6" paddingBottom="32" fontWeight="bold" class="section-title">${this.title}</bd-h>`
|
|
84
|
-
: ""}
|
|
14
|
+
${this.title?l`<bd-h as="h6" paddingBottom="32" fontWeight="bold" class="section-title">${this.title}</bd-h>`:``}
|
|
85
15
|
<slot></slot>
|
|
86
16
|
<slot name="footer"></slot>
|
|
87
|
-
${this.guideLabel
|
|
88
|
-
? html `
|
|
17
|
+
${this.guideLabel?l`
|
|
89
18
|
<p class="user-guide-link">
|
|
90
19
|
<a href=${this.guideHref}>
|
|
91
|
-
${this.guideIcon
|
|
92
|
-
? html `<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`
|
|
93
|
-
: ""}
|
|
20
|
+
${this.guideIcon?l`<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`:``}
|
|
94
21
|
${this.guideLabel}
|
|
95
22
|
</a>
|
|
96
|
-
</p
|
|
97
|
-
: ""}
|
|
23
|
+
</p>`:``}
|
|
98
24
|
</div>
|
|
99
25
|
</div>
|
|
100
|
-
`;
|
|
101
|
-
}
|
|
102
|
-
render() {
|
|
103
|
-
return this._variant === "terms-of-use"
|
|
104
|
-
? this._renderTerms()
|
|
105
|
-
: this._renderFaq();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
__decorate([
|
|
109
|
-
property({ type: String })
|
|
110
|
-
], BdAccordionBg.prototype, "title", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
property({ type: Boolean, reflect: true, attribute: "no-bg" })
|
|
113
|
-
], BdAccordionBg.prototype, "noBg", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
property({ type: Boolean, reflect: true, attribute: "no-padding" })
|
|
116
|
-
], BdAccordionBg.prototype, "noPadding", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
property({ type: String, reflect: true, attribute: "guide-icon" })
|
|
119
|
-
], BdAccordionBg.prototype, "guideIcon", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
property({ type: String, reflect: true, attribute: "guide-label" })
|
|
122
|
-
], BdAccordionBg.prototype, "guideLabel", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
property({ type: String, reflect: true, attribute: "guide-href" })
|
|
125
|
-
], BdAccordionBg.prototype, "guideHref", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
state()
|
|
128
|
-
], BdAccordionBg.prototype, "_variant", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
property({ type: String, reflect: true, attribute: "data-variant" })
|
|
131
|
-
], BdAccordionBg.prototype, "variant", void 0);
|
|
132
|
-
BdAccordionBg = __decorate([
|
|
133
|
-
defineElement("bd-accordion-bg")
|
|
134
|
-
], BdAccordionBg);
|
|
135
|
-
let BdAccordionBgItem = class BdAccordionBgItem extends LitElement {
|
|
136
|
-
constructor() {
|
|
137
|
-
super();
|
|
138
|
-
this.title = "";
|
|
139
|
-
this.open = false;
|
|
140
|
-
this.noBg = false;
|
|
141
|
-
this._variant = "default";
|
|
142
|
-
this.variant = "default";
|
|
143
|
-
const id = Math.random().toString(36)
|
|
144
|
-
.slice(2, 11);
|
|
145
|
-
this._headerId = `acc-bg-h-${id}`;
|
|
146
|
-
this._panelId = `acc-bg-p-${id}`;
|
|
147
|
-
}
|
|
148
|
-
static { this.styles = [accordionCSS, accordionItem]; }
|
|
149
|
-
connectedCallback() {
|
|
150
|
-
super.connectedCallback();
|
|
151
|
-
Promise.resolve().then(() => this._detectVariant());
|
|
152
|
-
}
|
|
153
|
-
_detectVariant() {
|
|
154
|
-
let el = this.parentElement;
|
|
155
|
-
while (el) {
|
|
156
|
-
if (el.classList.contains("faq")) {
|
|
157
|
-
this._variant = "faq";
|
|
158
|
-
this.variant = "faq";
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (el.classList.contains("terms-of-use") ||
|
|
162
|
-
el.classList.contains("system-requirements")) {
|
|
163
|
-
this._variant = "terms-of-use";
|
|
164
|
-
this.variant = "terms-of-use";
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
el = el.parentElement;
|
|
168
|
-
}
|
|
169
|
-
this._variant = "default";
|
|
170
|
-
this.variant = "default";
|
|
171
|
-
}
|
|
172
|
-
toggleItem() {
|
|
173
|
-
this.open = !this.open;
|
|
174
|
-
}
|
|
175
|
-
/* Find in page matched text in the closed panel; see accordion-panel.ts. */
|
|
176
|
-
_onBeforeMatch() {
|
|
177
|
-
this.open = true;
|
|
178
|
-
}
|
|
179
|
-
_onTriggerKeydown(e) {
|
|
180
|
-
onTriggerKeydown(this, e);
|
|
181
|
-
}
|
|
182
|
-
/** Move keyboard focus to this item's disclosure trigger. */
|
|
183
|
-
focusTrigger() {
|
|
184
|
-
this.renderRoot?.querySelector(".bd-accordion-bg-question, .header")?.focus();
|
|
185
|
-
}
|
|
186
|
-
/* As in accordion.ts, the trigger and its panel sit in one .disclosure,
|
|
187
|
-
the box the focus ring goes round. The default layout's item div is it. */
|
|
188
|
-
_renderTerms() {
|
|
189
|
-
return html `<div class="disclosure">
|
|
26
|
+
`}render(){return this._variant===`terms-of-use`?this._renderTerms():this._renderFaq()}};n([u({type:String})],f.prototype,`title`,void 0),n([u({type:Boolean,reflect:!0,attribute:`no-bg`})],f.prototype,`noBg`,void 0),n([u({type:Boolean,reflect:!0,attribute:`no-padding`})],f.prototype,`noPadding`,void 0),n([u({type:String,reflect:!0,attribute:`guide-icon`})],f.prototype,`guideIcon`,void 0),n([u({type:String,reflect:!0,attribute:`guide-label`})],f.prototype,`guideLabel`,void 0),n([u({type:String,reflect:!0,attribute:`guide-href`})],f.prototype,`guideHref`,void 0),n([d()],f.prototype,`_variant`,void 0),n([u({type:String,reflect:!0,attribute:`data-variant`})],f.prototype,`variant`,void 0),f=n([t(`bd-accordion-bg`)],f);var p=class extends c{constructor(){super(),this.title=``,this.open=!1,this.noBg=!1,this._variant=`default`,this.variant=`default`;let e=Math.random().toString(36).slice(2,11);this._headerId=`acc-bg-h-${e}`,this._panelId=`acc-bg-p-${e}`}static{this.styles=[e,i]}connectedCallback(){super.connectedCallback(),Promise.resolve().then(()=>this._detectVariant())}_detectVariant(){let e=this.parentElement;for(;e;){if(e.classList.contains(`faq`)){this._variant=`faq`,this.variant=`faq`;return}if(e.classList.contains(`terms-of-use`)||e.classList.contains(`system-requirements`)){this._variant=`terms-of-use`,this.variant=`terms-of-use`;return}e=e.parentElement}this._variant=`default`,this.variant=`default`}toggleItem(){this.open=!this.open}_onBeforeMatch(){this.open=!0}_onTriggerKeydown(e){o(this,e)}focusTrigger(){this.renderRoot?.querySelector(`.bd-accordion-bg-question, .header`)?.focus()}_renderTerms(){return l`<div class="disclosure">
|
|
190
27
|
<button
|
|
191
28
|
type="button"
|
|
192
29
|
class="header"
|
|
@@ -196,25 +33,20 @@ let BdAccordionBgItem = class BdAccordionBgItem extends LitElement {
|
|
|
196
33
|
@keydown=${this._onTriggerKeydown}
|
|
197
34
|
>
|
|
198
35
|
<span class="toggle" aria-hidden="true">
|
|
199
|
-
${this.open
|
|
200
|
-
? html `<bd-minus-icon size="16" color="var(--color-text-brand)"></bd-minus-icon>`
|
|
201
|
-
: html `<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`}
|
|
36
|
+
${this.open?l`<bd-minus-icon size="16" color="var(--color-text-brand)"></bd-minus-icon>`:l`<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`}
|
|
202
37
|
</span>
|
|
203
38
|
<span class="title">${this.title}</span>
|
|
204
39
|
</button>
|
|
205
40
|
<div
|
|
206
41
|
id="${this._panelId}"
|
|
207
42
|
class="content"
|
|
208
|
-
hidden=${
|
|
43
|
+
hidden=${s(this.open)}
|
|
209
44
|
@beforematch=${this._onBeforeMatch}
|
|
210
45
|
>
|
|
211
46
|
<slot></slot>
|
|
212
47
|
</div>
|
|
213
|
-
</div
|
|
214
|
-
|
|
215
|
-
_renderDefault() {
|
|
216
|
-
return html `
|
|
217
|
-
<div class="disclosure bd-accordion-bg-item ${this.open ? "open" : ""} ${this.noBg ? "no-bg" : ""}">
|
|
48
|
+
</div>`}_renderDefault(){return l`
|
|
49
|
+
<div class="disclosure bd-accordion-bg-item ${this.open?`open`:``} ${this.noBg?`no-bg`:``}">
|
|
218
50
|
<button
|
|
219
51
|
type="button"
|
|
220
52
|
id="${this._headerId}"
|
|
@@ -225,9 +57,7 @@ let BdAccordionBgItem = class BdAccordionBgItem extends LitElement {
|
|
|
225
57
|
@keydown=${this._onTriggerKeydown}
|
|
226
58
|
>
|
|
227
59
|
<span class="bd-accordion-bg-icon" aria-hidden="true">
|
|
228
|
-
${this.open
|
|
229
|
-
? html `<bd-minus-icon size="16" color="var(--color-text-brand)"></bd-minus-icon>`
|
|
230
|
-
: html `<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`}
|
|
60
|
+
${this.open?l`<bd-minus-icon size="16" color="var(--color-text-brand)"></bd-minus-icon>`:l`<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`}
|
|
231
61
|
</span>
|
|
232
62
|
<span class="bd-accordion-bg-question-text">${this.title}</span>
|
|
233
63
|
</button>
|
|
@@ -236,36 +66,11 @@ let BdAccordionBgItem = class BdAccordionBgItem extends LitElement {
|
|
|
236
66
|
class="bd-accordion-bg-answer"
|
|
237
67
|
role="region"
|
|
238
68
|
aria-labelledby="${this._headerId}"
|
|
239
|
-
hidden=${
|
|
69
|
+
hidden=${s(this.open)}
|
|
240
70
|
@beforematch=${this._onBeforeMatch}
|
|
241
71
|
>
|
|
242
72
|
<slot></slot>
|
|
243
73
|
</div>
|
|
244
74
|
</div>
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
render() {
|
|
248
|
-
return this._variant === "terms-of-use"
|
|
249
|
-
? this._renderTerms()
|
|
250
|
-
: this._renderDefault();
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
__decorate([
|
|
254
|
-
property({ type: String })
|
|
255
|
-
], BdAccordionBgItem.prototype, "title", void 0);
|
|
256
|
-
__decorate([
|
|
257
|
-
property({ type: Boolean, reflect: true })
|
|
258
|
-
], BdAccordionBgItem.prototype, "open", void 0);
|
|
259
|
-
__decorate([
|
|
260
|
-
property({ type: Boolean, reflect: true, attribute: "no-bg" })
|
|
261
|
-
], BdAccordionBgItem.prototype, "noBg", void 0);
|
|
262
|
-
__decorate([
|
|
263
|
-
state()
|
|
264
|
-
], BdAccordionBgItem.prototype, "_variant", void 0);
|
|
265
|
-
__decorate([
|
|
266
|
-
property({ type: String, reflect: true, attribute: "data-variant" })
|
|
267
|
-
], BdAccordionBgItem.prototype, "variant", void 0);
|
|
268
|
-
BdAccordionBgItem = __decorate([
|
|
269
|
-
defineElement("bd-accordion-bg-item")
|
|
270
|
-
], BdAccordionBgItem);
|
|
75
|
+
`}render(){return this._variant===`terms-of-use`?this._renderTerms():this._renderDefault()}};n([u({type:String})],p.prototype,`title`,void 0),n([u({type:Boolean,reflect:!0})],p.prototype,`open`,void 0),n([u({type:Boolean,reflect:!0,attribute:`no-bg`})],p.prototype,`noBg`,void 0),n([d()],p.prototype,`_variant`,void 0),n([u({type:String,reflect:!0,attribute:`data-variant`})],p.prototype,`variant`,void 0),p=n([t(`bd-accordion-bg-item`)],p);
|
|
271
76
|
//# sourceMappingURL=accordion-bg.js.map
|
|
@@ -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;AA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AAc,EAAE,CAAC;IAC5B,CAAC;;AAvID;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAChB;AAEX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC9B;AAEb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;+CAClD;AAEb;IADC,KAAK,EAAE;mDACsB;AAE9B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;kDACxC;AAVzB,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,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d,EAAA,CAAAW,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAG,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzCd,EAAA,CAAAW,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,OAAQ,CAAC,CAAA,EAAAG,EAAA,UAAA,OAAA,IAAA,EAAA,EAE7Dd,EAAA,CAAAY,EAAM,CAAA,EAAAE,EAAA,UAAA,WAAA,IAAA,EAAA,EAENd,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,cAAe,CAAC,CAAA,EAAAG,EAAA,UAAA,UAAA,IAAA,EAAA,EAVrE,EAAAd,EAAA,CAAAa,EAAc,sBAAsB,CAAA,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"}
|