@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,345 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
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 } 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 "../button/button.js";
|
|
13
|
-
import "../heading/heading.js";
|
|
14
|
-
import carouselCSS from "./card.css.js";
|
|
15
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
16
|
-
let Card = class Card extends LitElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.title = "";
|
|
20
|
-
this.headingLevel = 2;
|
|
21
|
-
this.subtitle = "";
|
|
22
|
-
this.bgBlue = false;
|
|
23
|
-
// "" (default — existing grey-box carousel look) | "outline" — bordered,
|
|
24
|
-
// centered cards with a light-blue tint, blue title and centered icon.
|
|
25
|
-
// Propagated to every slotted bd-card-item (see _onSlotChange) unless an
|
|
26
|
-
// item sets its own variant attribute.
|
|
27
|
-
this.variant = "";
|
|
28
|
-
this._mutationObserver = null;
|
|
29
|
-
this._onSlotChange = () => {
|
|
30
|
-
this._propagateVariant();
|
|
31
|
-
this._syncAlignRows();
|
|
32
|
-
this._syncColumns();
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static { this.styles = [ensembleCSS, carouselCSS]; }
|
|
36
|
-
_getColumnCount(itemCount) {
|
|
37
|
-
if (itemCount <= 4)
|
|
38
|
-
return itemCount;
|
|
39
|
-
if (itemCount <= 6)
|
|
40
|
-
return 3;
|
|
41
|
-
if (itemCount <= 8)
|
|
42
|
-
return 4;
|
|
43
|
-
if (itemCount === 9)
|
|
44
|
-
return 3;
|
|
45
|
-
return 4;
|
|
46
|
-
}
|
|
47
|
-
/* The column count follows the number of cards, and card.css.ts turns it
|
|
48
|
-
into tracks, so nothing here measures the track. Every card spans two
|
|
49
|
-
tracks of a grid twice as fine, which is what lets a short last row sit
|
|
50
|
-
in the middle, the way the wrapping row this replaces centred it: its
|
|
51
|
-
first card starts as many tracks in as the row is short of cards.
|
|
52
|
-
|
|
53
|
-
Between md and lg a card's 200px floor fits three to a row, not four,
|
|
54
|
-
so that band has its own count and its own short row. */
|
|
55
|
-
_syncColumns() {
|
|
56
|
-
const items = [...this.querySelectorAll("bd-card-item")];
|
|
57
|
-
const count = items.length;
|
|
58
|
-
const cols = this._getColumnCount(count);
|
|
59
|
-
const colsMd = Math.min(cols, 3);
|
|
60
|
-
this.style.setProperty("--bd-card-cols", String(cols));
|
|
61
|
-
this.style.setProperty("--bd-card-tracks", String(cols * 2));
|
|
62
|
-
this.style.setProperty("--bd-card-tracks-md", String(colsMd * 2));
|
|
63
|
-
const shortRow = (n) => {
|
|
64
|
-
const left = count % n;
|
|
65
|
-
return left ? { first: count - left, start: n - left + 1 } : null;
|
|
66
|
-
};
|
|
67
|
-
const wide = shortRow(cols);
|
|
68
|
-
const md = shortRow(colsMd);
|
|
69
|
-
items.forEach((item, i) => {
|
|
70
|
-
if (wide?.first === i)
|
|
71
|
-
item.style.setProperty("--bd-card-start", String(wide.start));
|
|
72
|
-
else
|
|
73
|
-
item.style.removeProperty("--bd-card-start");
|
|
74
|
-
if (md?.first === i)
|
|
75
|
-
item.style.setProperty("--bd-card-start-md", String(md.start));
|
|
76
|
-
else
|
|
77
|
-
item.style.removeProperty("--bd-card-start-md");
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
// Propagates this.variant onto every slotted bd-card-item that didn't
|
|
81
|
-
// itself declare a variant attribute in its ORIGINAL markup. We can't use
|
|
82
|
-
// item.hasAttribute("variant") here — CardItem's own `variant` property
|
|
83
|
-
// has reflect:true, so Lit reflects its default "" onto the attribute on
|
|
84
|
-
// first render, meaning hasAttribute("variant") becomes true for EVERY
|
|
85
|
-
// item almost immediately, even ones the author never touched. Instead
|
|
86
|
-
// we rely on item._authorSetVariant, captured in CardItem's constructor
|
|
87
|
-
// (before Lit's own reflection has a chance to run) — see below.
|
|
88
|
-
_propagateVariant() {
|
|
89
|
-
if (!this.variant)
|
|
90
|
-
return;
|
|
91
|
-
this.querySelectorAll("bd-card-item").forEach((item) => {
|
|
92
|
-
if (!item._authorSetVariant) {
|
|
93
|
-
item.variant = this.variant;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/* Marks every item as a subgrid of the section (their shadow styles key off
|
|
98
|
-
align-rows) and sizes the shared row tracks: header, title, the longest
|
|
99
|
-
content list, CTA. Above md the cards line up row by row through those
|
|
100
|
-
tracks -- card.css.ts -- which is what the section used to do in script:
|
|
101
|
-
a ResizeObserver, a wait for the fonts, two animation frames and a px
|
|
102
|
-
height written on every card's header, title, content and box.
|
|
103
|
-
|
|
104
|
-
align-rows was the opt-in to this layout; it is the only one now, so the
|
|
105
|
-
section no longer reads the attribute. */
|
|
106
|
-
_syncAlignRows() {
|
|
107
|
-
const items = [...this.querySelectorAll("bd-card-item")];
|
|
108
|
-
items.forEach((item) => item.setAttribute("align-rows", ""));
|
|
109
|
-
const contentRows = Math.max(0, ...items.map((item) => item._contentNodes?.().length ?? 0));
|
|
110
|
-
this.style.setProperty("--bd-card-content-rows", String(contentRows));
|
|
111
|
-
this.style.setProperty("--bd-card-rows", String(contentRows + 3));
|
|
112
|
-
}
|
|
113
|
-
firstUpdated() {
|
|
114
|
-
this._propagateVariant();
|
|
115
|
-
this._syncAlignRows();
|
|
116
|
-
this._syncColumns();
|
|
117
|
-
// Content added to or removed from an item changes its row count, which
|
|
118
|
-
// doesn't trigger slotchange on the section.
|
|
119
|
-
this._mutationObserver = new MutationObserver(() => this._syncAlignRows());
|
|
120
|
-
this._mutationObserver.observe(this, { childList: true, subtree: true });
|
|
121
|
-
}
|
|
122
|
-
disconnectedCallback() {
|
|
123
|
-
super.disconnectedCallback();
|
|
124
|
-
this._mutationObserver?.disconnect();
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Level is the document-outline question and belongs to page composition;
|
|
128
|
-
* the type scale is this component's and stays where it was. visual-level
|
|
129
|
-
* pins the look at h1 so only the semantics move. Defaults to h2, because a
|
|
130
|
-
* reusable section cannot know it is the page's only heading.
|
|
131
|
-
*/
|
|
132
|
-
get _headingTag() {
|
|
133
|
-
const n = Number(this.headingLevel);
|
|
134
|
-
return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : "h2";
|
|
135
|
-
}
|
|
136
|
-
render() {
|
|
137
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import"../button/button.js";import r from"./card.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends i{constructor(...e){super(...e),this.title=``,this.headingLevel=2,this.subtitle=``,this.bgBlue=!1,this.variant=``,this._mutationObserver=null,this._onSlotChange=()=>{this._propagateVariant(),this._syncAlignRows(),this._syncColumns()}}static{this.styles=[n,r]}_getColumnCount(e){return e<=4?e:e<=6?3:e<=8?4:e===9?3:4}_syncColumns(){let e=[...this.querySelectorAll(`bd-card-item`)],t=e.length,n=this._getColumnCount(t),r=Math.min(n,3);this.style.setProperty(`--bd-card-cols`,String(n)),this.style.setProperty(`--bd-card-tracks`,String(n*2)),this.style.setProperty(`--bd-card-tracks-md`,String(r*2));let i=e=>{let n=t%e;return n?{first:t-n,start:e-n+1}:null},a=i(n),o=i(r);e.forEach((e,t)=>{a?.first===t?e.style.setProperty(`--bd-card-start`,String(a.start)):e.style.removeProperty(`--bd-card-start`),o?.first===t?e.style.setProperty(`--bd-card-start-md`,String(o.start)):e.style.removeProperty(`--bd-card-start-md`)})}_propagateVariant(){this.variant&&this.querySelectorAll(`bd-card-item`).forEach(e=>{e._authorSetVariant||(e.variant=this.variant)})}_syncAlignRows(){let e=[...this.querySelectorAll(`bd-card-item`)];e.forEach(e=>e.setAttribute(`align-rows`,``));let t=Math.max(0,...e.map(e=>e._contentNodes?.().length??0));this.style.setProperty(`--bd-card-content-rows`,String(t)),this.style.setProperty(`--bd-card-rows`,String(t+3))}firstUpdated(){this._propagateVariant(),this._syncAlignRows(),this._syncColumns(),this._mutationObserver=new MutationObserver(()=>this._syncAlignRows()),this._mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this._mutationObserver?.disconnect()}get _headingTag(){let e=Number(this.headingLevel);return Number.isInteger(e)&&e>=1&&e<=6?`h${e}`:`h2`}render(){return a`
|
|
138
2
|
<section class="bd-ensemble bd-light-carousel-s">
|
|
139
|
-
${this.title
|
|
140
|
-
? html `
|
|
3
|
+
${this.title?a`
|
|
141
4
|
<div class="bd-header-light-carousel-s">
|
|
142
5
|
<bd-h as="${this._headingTag}" visual-level="h1" class="bd-section-title-s">${this.title}</bd-h>
|
|
143
|
-
${this.subtitle
|
|
144
|
-
? html `<p class="bd-section-subtitle-s">${this.subtitle}</p>`
|
|
145
|
-
: ""}
|
|
6
|
+
${this.subtitle?a`<p class="bd-section-subtitle-s">${this.subtitle}</p>`:``}
|
|
146
7
|
</div>
|
|
147
|
-
|
|
148
|
-
: ""}
|
|
8
|
+
`:``}
|
|
149
9
|
|
|
150
10
|
<div class="bd-light-carousel-track-s">
|
|
151
11
|
<slot @slotchange=${this._onSlotChange}></slot>
|
|
152
12
|
</div>
|
|
153
13
|
|
|
154
14
|
</section>
|
|
155
|
-
`;
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
__decorate([
|
|
159
|
-
property({ type: String })
|
|
160
|
-
], Card.prototype, "title", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
property({ type: Number, attribute: "heading-level" })
|
|
163
|
-
], Card.prototype, "headingLevel", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
property({ type: String })
|
|
166
|
-
], Card.prototype, "subtitle", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
property({ type: Boolean, reflect: true, attribute: "bg-blue" })
|
|
169
|
-
], Card.prototype, "bgBlue", void 0);
|
|
170
|
-
__decorate([
|
|
171
|
-
property({ type: String, reflect: true })
|
|
172
|
-
], Card.prototype, "variant", void 0);
|
|
173
|
-
Card = __decorate([
|
|
174
|
-
defineElement("bd-card-section")
|
|
175
|
-
], Card);
|
|
176
|
-
let CardItem = class CardItem extends LitElement {
|
|
177
|
-
static { this.styles = [carouselCSS]; }
|
|
178
|
-
constructor() {
|
|
179
|
-
super();
|
|
180
|
-
this.title = "";
|
|
181
|
-
this.subtitle = "";
|
|
182
|
-
this.icon = "";
|
|
183
|
-
this.align = "start";
|
|
184
|
-
this.bgBlue = false;
|
|
185
|
-
this.ctaAlign = "";
|
|
186
|
-
this.headingLevel = 3;
|
|
187
|
-
// "" (default) | "outline" — see Card.variant above. Reflected so
|
|
188
|
-
// card.css.ts can target it with :host([variant="outline"]).
|
|
189
|
-
this.variant = "";
|
|
190
|
-
// Captured BEFORE Lit's own property-to-attribute reflection runs (that
|
|
191
|
-
// happens on first update/render, not here). At this point the DOM
|
|
192
|
-
// parser has already set any attribute the author wrote in markup, so
|
|
193
|
-
// this reliably answers "did the author explicitly set variant on this
|
|
194
|
-
// element", independent of whatever default value we assign below.
|
|
195
|
-
this._authorSetVariant = this.hasAttribute("variant");
|
|
196
|
-
}
|
|
197
|
-
_renderIcon() {
|
|
198
|
-
const iconEl = this.querySelector("[slot='icon']");
|
|
199
|
-
const isOutline = this.variant === "outline";
|
|
200
|
-
const iconW = isOutline ? 65 : 48;
|
|
201
|
-
const iconH = isOutline ? 75 : 48;
|
|
202
|
-
if (iconEl) {
|
|
203
|
-
const clone = iconEl.cloneNode(true);
|
|
204
|
-
// The icon components (bd-globe-icon etc.) size their inner <svg>
|
|
205
|
-
// from their own width/height attributes, not from CSS on the host —
|
|
206
|
-
// setting only clone.style.width/height left the SVG's actual
|
|
207
|
-
// width="48" height="48" attributes untouched, so nothing visibly
|
|
208
|
-
// changed. Overwrite the attributes themselves for anything that
|
|
209
|
-
// looks like an icon component (custom element) or a raw <svg>.
|
|
210
|
-
clone.setAttribute("width", String(iconW));
|
|
211
|
-
clone.setAttribute("height", String(iconH));
|
|
212
|
-
clone.style.maxWidth = `${iconW}px`;
|
|
213
|
-
clone.style.maxHeight = `${iconH}px`;
|
|
214
|
-
clone.style.width = `${iconW}px`;
|
|
215
|
-
clone.style.height = `${iconH}px`;
|
|
216
|
-
clone.style.objectFit = "contain";
|
|
217
|
-
clone.style.display = "block";
|
|
218
|
-
const innerImg = clone.querySelector("img");
|
|
219
|
-
if (innerImg) {
|
|
220
|
-
innerImg.style.maxWidth = `${iconW}px`;
|
|
221
|
-
innerImg.style.maxHeight = `${iconH}px`;
|
|
222
|
-
innerImg.style.width = `${iconW}px`;
|
|
223
|
-
innerImg.style.height = `${iconH}px`;
|
|
224
|
-
innerImg.style.objectFit = "contain";
|
|
225
|
-
innerImg.style.display = "block";
|
|
226
|
-
innerImg.removeAttribute("width");
|
|
227
|
-
innerImg.removeAttribute("height");
|
|
228
|
-
}
|
|
229
|
-
return clone;
|
|
230
|
-
}
|
|
231
|
-
if (this.icon) {
|
|
232
|
-
return html `<img
|
|
15
|
+
`}};t([o({type:String})],s.prototype,`title`,void 0),t([o({type:Number,attribute:`heading-level`})],s.prototype,`headingLevel`,void 0),t([o({type:String})],s.prototype,`subtitle`,void 0),t([o({type:Boolean,reflect:!0,attribute:`bg-blue`})],s.prototype,`bgBlue`,void 0),t([o({type:String,reflect:!0})],s.prototype,`variant`,void 0),s=t([e(`bd-card-section`)],s);var c=class extends i{static{this.styles=[r]}constructor(){super(),this.title=``,this.subtitle=``,this.icon=``,this.align=`start`,this.bgBlue=!1,this.ctaAlign=``,this.headingLevel=3,this.variant=``,this._authorSetVariant=this.hasAttribute(`variant`)}_renderIcon(){let e=this.querySelector(`[slot='icon']`),t=this.variant===`outline`,n=t?65:48,r=t?75:48;if(e){let t=e.cloneNode(!0);t.setAttribute(`width`,String(n)),t.setAttribute(`height`,String(r)),t.style.maxWidth=`${n}px`,t.style.maxHeight=`${r}px`,t.style.width=`${n}px`,t.style.height=`${r}px`,t.style.objectFit=`contain`,t.style.display=`block`;let i=t.querySelector(`img`);return i&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`,i.style.width=`${n}px`,i.style.height=`${r}px`,i.style.objectFit=`contain`,i.style.display=`block`,i.removeAttribute(`width`),i.removeAttribute(`height`)),t}return this.icon?a`<img
|
|
233
16
|
src="${this.icon}"
|
|
234
17
|
alt=""
|
|
235
18
|
class="bd-light-icon-s"
|
|
236
|
-
style="width: ${
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
return "";
|
|
240
|
-
}
|
|
241
|
-
// Nodes rendered in the default slot — each one is a content row
|
|
242
|
-
_contentNodes() {
|
|
243
|
-
return [...this.childNodes].filter((node) => {
|
|
244
|
-
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
245
|
-
const slot = node.getAttribute("slot");
|
|
246
|
-
return slot !== "icon" && slot !== "cta";
|
|
247
|
-
}
|
|
248
|
-
return node.nodeType === Node.TEXT_NODE && node.textContent.trim() !== "";
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
_hasContent() {
|
|
252
|
-
return this._contentNodes().length > 0;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* One level below the section default. The h5 it used to carry was a type
|
|
256
|
-
* choice, not an outline one, so the size stays on visual-level while the
|
|
257
|
-
* level itself stops skipping three steps below its own section.
|
|
258
|
-
*/
|
|
259
|
-
get _headingTag() {
|
|
260
|
-
const n = Number(this.headingLevel);
|
|
261
|
-
return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : "h3";
|
|
262
|
-
}
|
|
263
|
-
render() {
|
|
264
|
-
const isOutline = this.variant === "outline";
|
|
265
|
-
const isCentered = this.align === "center" || isOutline;
|
|
266
|
-
const hasContent = this._hasContent();
|
|
267
|
-
const hasCtaSlot = !!this.querySelector("[slot='cta']");
|
|
268
|
-
const ctaAlign = this.ctaAlign || (isCentered ? "center" : "start");
|
|
269
|
-
const ctaJustify = ctaAlign === "center"
|
|
270
|
-
? "justify-content: center;"
|
|
271
|
-
: ctaAlign === "end"
|
|
272
|
-
? "justify-content: flex-end;"
|
|
273
|
-
: "justify-content: flex-start;";
|
|
274
|
-
return html `
|
|
19
|
+
style="width: ${n}px; height: ${r}px;"
|
|
20
|
+
/>`:``}_contentNodes(){return[...this.childNodes].filter(e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.getAttribute(`slot`);return t!==`icon`&&t!==`cta`}return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()!==``})}_hasContent(){return this._contentNodes().length>0}get _headingTag(){let e=Number(this.headingLevel);return Number.isInteger(e)&&e>=1&&e<=6?`h${e}`:`h3`}render(){let e=this.variant===`outline`,t=this.align===`center`||e,n=this._hasContent(),r=!!this.querySelector(`[slot='cta']`),i=this.ctaAlign||(t?`center`:`start`),o=i===`center`?`justify-content: center;`:i===`end`?`justify-content: flex-end;`:`justify-content: flex-start;`;return a`
|
|
275
21
|
<div
|
|
276
22
|
class="bd-light-box-s
|
|
277
|
-
${
|
|
278
|
-
${this.bgBlue
|
|
279
|
-
${
|
|
23
|
+
${t?`bd-light-box-center`:``}
|
|
24
|
+
${this.bgBlue?`bd-light-box-blue`:``}
|
|
25
|
+
${e?`bd-light-box-outline`:``}"
|
|
280
26
|
>
|
|
281
|
-
<div class="bd-light-box-header-s ${
|
|
27
|
+
<div class="bd-light-box-header-s ${t?`bd-light-box-header-center`:``}">
|
|
282
28
|
${this._renderIcon()}
|
|
283
29
|
</div>
|
|
284
30
|
|
|
285
|
-
${this.title
|
|
286
|
-
|
|
287
|
-
<div class="bd-light-title-badge-wrapper-s ${!hasContent ? "bd-light-title-no-content" : ""}">
|
|
31
|
+
${this.title?a`
|
|
32
|
+
<div class="bd-light-title-badge-wrapper-s ${n?``:`bd-light-title-no-content`}">
|
|
288
33
|
<div class="bd-card-title-group">
|
|
289
34
|
<bd-h as="${this._headingTag}" visual-level="h5" fontWeight="bold">${this.title}</bd-h>
|
|
290
|
-
${this.subtitle
|
|
291
|
-
? html `<p class="bd-card-item-subtitle">${this.subtitle}</p>`
|
|
292
|
-
: ""}
|
|
35
|
+
${this.subtitle?a`<p class="bd-card-item-subtitle">${this.subtitle}</p>`:``}
|
|
293
36
|
</div>
|
|
294
37
|
</div>
|
|
295
|
-
|
|
296
|
-
: ""}
|
|
38
|
+
`:``}
|
|
297
39
|
|
|
298
|
-
${
|
|
299
|
-
? html `
|
|
40
|
+
${n?a`
|
|
300
41
|
<div class="bd-card-content-wrapper">
|
|
301
42
|
<slot></slot>
|
|
302
43
|
</div>
|
|
303
|
-
|
|
304
|
-
: ""}
|
|
44
|
+
`:``}
|
|
305
45
|
|
|
306
|
-
${
|
|
307
|
-
|
|
308
|
-
<div class="bd-card-cta-wrapper" style="${ctaJustify}">
|
|
46
|
+
${r?a`
|
|
47
|
+
<div class="bd-card-cta-wrapper" style="${o}">
|
|
309
48
|
<slot name="cta"></slot>
|
|
310
49
|
</div>
|
|
311
|
-
|
|
312
|
-
: ""}
|
|
50
|
+
`:``}
|
|
313
51
|
|
|
314
52
|
</div>
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
__decorate([
|
|
319
|
-
property({ type: String })
|
|
320
|
-
], CardItem.prototype, "title", void 0);
|
|
321
|
-
__decorate([
|
|
322
|
-
property({ type: String })
|
|
323
|
-
], CardItem.prototype, "subtitle", void 0);
|
|
324
|
-
__decorate([
|
|
325
|
-
property({ type: String })
|
|
326
|
-
], CardItem.prototype, "icon", void 0);
|
|
327
|
-
__decorate([
|
|
328
|
-
property({ type: String })
|
|
329
|
-
], CardItem.prototype, "align", void 0);
|
|
330
|
-
__decorate([
|
|
331
|
-
property({ type: Boolean, reflect: true, attribute: "bg-blue" })
|
|
332
|
-
], CardItem.prototype, "bgBlue", void 0);
|
|
333
|
-
__decorate([
|
|
334
|
-
property({ type: String, attribute: "cta-align" })
|
|
335
|
-
], CardItem.prototype, "ctaAlign", void 0);
|
|
336
|
-
__decorate([
|
|
337
|
-
property({ type: Number, attribute: "heading-level" })
|
|
338
|
-
], CardItem.prototype, "headingLevel", void 0);
|
|
339
|
-
__decorate([
|
|
340
|
-
property({ type: String, reflect: true })
|
|
341
|
-
], CardItem.prototype, "variant", void 0);
|
|
342
|
-
CardItem = __decorate([
|
|
343
|
-
defineElement("bd-card-item")
|
|
344
|
-
], CardItem);
|
|
53
|
+
`}};t([o({type:String})],c.prototype,`title`,void 0),t([o({type:String})],c.prototype,`subtitle`,void 0),t([o({type:String})],c.prototype,`icon`,void 0),t([o({type:String})],c.prototype,`align`,void 0),t([o({type:Boolean,reflect:!0,attribute:`bg-blue`})],c.prototype,`bgBlue`,void 0),t([o({type:String,attribute:`cta-align`})],c.prototype,`ctaAlign`,void 0),t([o({type:Number,attribute:`heading-level`})],c.prototype,`headingLevel`,void 0),t([o({type:String,reflect:!0})],c.prototype,`variant`,void 0),c=t([e(`bd-card-item`)],c);
|
|
345
54
|
//# sourceMappingURL=card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../../src/components/cards/card.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE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C,CAAC,IAAI,CAAA;;;;aAIH;YACH,CAAC,CAAC,EAAE;;UAEJ,UAAU;YACV,CAAC,CAAC,IAAI,CAAA;wDACwC,UAAU;;;aAGrD;YACH,CAAC,CAAC,EAAE;;;KAGT,CAAC;IACJ,CAAC;;AAjKD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCAChB;AAEX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACb;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCACjB;AAEV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACJ;AAEvB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;wCAClD;AAEf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;0CAC3B;AAExB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;8CACtC;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCACpB;AApBlB,QAAQ;IADb,aAAa,CAAC,cAAc,CAAC;GACxB,QAAQ,CAsKb","sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport \"../button/button.ts\";\nimport \"../heading/heading.ts\";\nimport carouselCSS from \"./card.css.ts\";\nimport { ensembleCSS } from \"../shared/ensemble.css.ts\";\n\ntype Variant = \"\" | \"outline\";\n\n@defineElement(\"bd-card-section\")\nclass Card extends LitElement {\n static styles = [ensembleCSS, carouselCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: Number, attribute: \"heading-level\" })\n headingLevel = 2;\n @property({ type: String })\n subtitle = \"\";\n @property({ type: Boolean, reflect: true, attribute: \"bg-blue\" })\n bgBlue = false;\n // \"\" (default — existing grey-box carousel look) | \"outline\" — bordered,\n // centered cards with a light-blue tint, blue title and centered icon.\n // Propagated to every slotted bd-card-item (see _onSlotChange) unless an\n // item sets its own variant attribute.\n @property({ type: String, reflect: true })\n variant: Variant = \"\";\n\n _mutationObserver: MutationObserver | null = null;\n\n _getColumnCount(itemCount: number) {\n if (itemCount <= 4) return itemCount;\n if (itemCount <= 6) return 3;\n if (itemCount <= 8) return 4;\n if (itemCount === 9) return 3;\n return 4;\n }\n\n /* The column count follows the number of cards, and card.css.ts turns it\n into tracks, so nothing here measures the track. Every card spans two\n tracks of a grid twice as fine, which is what lets a short last row sit\n in the middle, the way the wrapping row this replaces centred it: its\n first card starts as many tracks in as the row is short of cards.\n\n Between md and lg a card's 200px floor fits three to a row, not four,\n so that band has its own count and its own short row. */\n _syncColumns() {\n const items = [...this.querySelectorAll(\"bd-card-item\")];\n const count = items.length;\n const cols = this._getColumnCount(count);\n const colsMd = Math.min(cols, 3);\n this.style.setProperty(\"--bd-card-cols\", String(cols));\n this.style.setProperty(\"--bd-card-tracks\", String(cols * 2));\n this.style.setProperty(\"--bd-card-tracks-md\", String(colsMd * 2));\n\n const shortRow = (n: number) => {\n const left = count % n;\n return left ? { first: count - left, start: n - left + 1 } : null;\n };\n const wide = shortRow(cols);\n const md = shortRow(colsMd);\n items.forEach((item, i) => {\n if (wide?.first === i) item.style.setProperty(\"--bd-card-start\", String(wide.start));\n else item.style.removeProperty(\"--bd-card-start\");\n if (md?.first === i) item.style.setProperty(\"--bd-card-start-md\", String(md.start));\n else item.style.removeProperty(\"--bd-card-start-md\");\n });\n }\n\n // Propagates this.variant onto every slotted bd-card-item that didn't\n // itself declare a variant attribute in its ORIGINAL markup. We can't use\n // item.hasAttribute(\"variant\") here — CardItem's own `variant` property\n // has reflect:true, so Lit reflects its default \"\" onto the attribute on\n // first render, meaning hasAttribute(\"variant\") becomes true for EVERY\n // item almost immediately, even ones the author never touched. Instead\n // we rely on item._authorSetVariant, captured in CardItem's constructor\n // (before Lit's own reflection has a chance to run) — see below.\n _propagateVariant() {\n if (!this.variant) return;\n this.querySelectorAll(\"bd-card-item\").forEach((item) => {\n if (!item._authorSetVariant) {\n item.variant = this.variant;\n }\n });\n }\n\n /* Marks every item as a subgrid of the section (their shadow styles key off\n align-rows) and sizes the shared row tracks: header, title, the longest\n content list, CTA. Above md the cards line up row by row through those\n tracks -- card.css.ts -- which is what the section used to do in script:\n a ResizeObserver, a wait for the fonts, two animation frames and a px\n height written on every card's header, title, content and box.\n\n align-rows was the opt-in to this layout; it is the only one now, so the\n section no longer reads the attribute. */\n _syncAlignRows() {\n const items = [...this.querySelectorAll(\"bd-card-item\")];\n items.forEach((item) => item.setAttribute(\"align-rows\", \"\"));\n\n const contentRows = Math.max(0, ...items.map((item) => item._contentNodes?.().length ?? 0));\n this.style.setProperty(\"--bd-card-content-rows\", String(contentRows));\n this.style.setProperty(\"--bd-card-rows\", String(contentRows + 3));\n }\n\n _onSlotChange = () => {\n this._propagateVariant();\n this._syncAlignRows();\n this._syncColumns();\n }\n\n firstUpdated() {\n this._propagateVariant();\n this._syncAlignRows();\n this._syncColumns();\n\n // Content added to or removed from an item changes its row count, which\n // doesn't trigger slotchange on the section.\n this._mutationObserver = new MutationObserver(() => this._syncAlignRows());\n this._mutationObserver.observe(this, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._mutationObserver?.disconnect();\n }\n\n\n /**\n * Level is the document-outline question and belongs to page composition;\n * the type scale is this component's and stays where it was. visual-level\n * pins the look at h1 so only the semantics move. Defaults to h2, because a\n * reusable section cannot know it is the page's only heading.\n */\n get _headingTag() {\n const n = Number(this.headingLevel);\n return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : \"h2\";\n }\n\n render() {\n return html`\n <section class=\"bd-ensemble bd-light-carousel-s\">\n ${this.title\n ? html`\n <div class=\"bd-header-light-carousel-s\">\n <bd-h as=\"${this._headingTag}\" visual-level=\"h1\" class=\"bd-section-title-s\">${this.title}</bd-h>\n ${this.subtitle\n ? html`<p class=\"bd-section-subtitle-s\">${this.subtitle}</p>`\n : \"\"}\n </div>\n `\n : \"\"}\n\n <div class=\"bd-light-carousel-track-s\">\n <slot @slotchange=${this._onSlotChange}></slot>\n </div>\n\n </section>\n `;\n }\n}\n\ntype Align = \"start\" | \"center\";\ntype CtaAlign = \"\" | \"start\" | \"center\" | \"end\";\n\n@defineElement(\"bd-card-item\")\nclass CardItem extends LitElement {\n static styles = [carouselCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n subtitle = \"\";\n @property({ type: String })\n icon = \"\";\n @property({ type: String })\n align: Align = \"start\";\n @property({ type: Boolean, reflect: true, attribute: \"bg-blue\" })\n bgBlue = false;\n @property({ type: String, attribute: \"cta-align\" })\n ctaAlign: CtaAlign = \"\";\n @property({ type: Number, attribute: \"heading-level\" })\n headingLevel = 3;\n // \"\" (default) | \"outline\" — see Card.variant above. Reflected so\n // card.css.ts can target it with :host([variant=\"outline\"]).\n @property({ type: String, reflect: true })\n variant: Variant = \"\";\n\n _authorSetVariant: boolean;\n\n constructor() {\n super();\n // Captured BEFORE Lit's own property-to-attribute reflection runs (that\n // happens on first update/render, not here). At this point the DOM\n // parser has already set any attribute the author wrote in markup, so\n // this reliably answers \"did the author explicitly set variant on this\n // element\", independent of whatever default value we assign below.\n this._authorSetVariant = this.hasAttribute(\"variant\");\n }\n\n _renderIcon() {\n const iconEl = this.querySelector<HTMLElement | SVGElement>(\"[slot='icon']\");\n const isOutline = this.variant === \"outline\";\n const iconW = isOutline ? 65 : 48;\n const iconH = isOutline ? 75 : 48;\n\n if (iconEl) {\n const clone = iconEl.cloneNode(true) as typeof iconEl;\n\n // The icon components (bd-globe-icon etc.) size their inner <svg>\n // from their own width/height attributes, not from CSS on the host —\n // setting only clone.style.width/height left the SVG's actual\n // width=\"48\" height=\"48\" attributes untouched, so nothing visibly\n // changed. Overwrite the attributes themselves for anything that\n // looks like an icon component (custom element) or a raw <svg>.\n clone.setAttribute(\"width\", String(iconW));\n clone.setAttribute(\"height\", String(iconH));\n\n clone.style.maxWidth = `${iconW}px`;\n clone.style.maxHeight = `${iconH}px`;\n clone.style.width = `${iconW}px`;\n clone.style.height = `${iconH}px`;\n clone.style.objectFit = \"contain\";\n clone.style.display = \"block\";\n\n const innerImg = clone.querySelector(\"img\");\n if (innerImg) {\n innerImg.style.maxWidth = `${iconW}px`;\n innerImg.style.maxHeight = `${iconH}px`;\n innerImg.style.width = `${iconW}px`;\n innerImg.style.height = `${iconH}px`;\n innerImg.style.objectFit = \"contain\";\n innerImg.style.display = \"block\";\n innerImg.removeAttribute(\"width\");\n innerImg.removeAttribute(\"height\");\n }\n\n return clone;\n }\n\n if (this.icon) {\n return html`<img\n src=\"${this.icon}\"\n alt=\"\"\n class=\"bd-light-icon-s\"\n style=\"width: ${iconW}px; height: ${iconH}px;\"\n />`;\n }\n\n return \"\";\n }\n // Nodes rendered in the default slot — each one is a content row\n _contentNodes() {\n return [...this.childNodes].filter((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const slot = (node as Element).getAttribute(\"slot\");\n return slot !== \"icon\" && slot !== \"cta\";\n }\n return node.nodeType === Node.TEXT_NODE && (node as Text).textContent.trim() !== \"\";\n });\n }\n\n _hasContent() {\n return this._contentNodes().length > 0;\n }\n\n\n /**\n * One level below the section default. The h5 it used to carry was a type\n * choice, not an outline one, so the size stays on visual-level while the\n * level itself stops skipping three steps below its own section.\n */\n get _headingTag() {\n const n = Number(this.headingLevel);\n return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : \"h3\";\n }\n\n render() {\n const isOutline = this.variant === \"outline\";\n const isCentered = this.align === \"center\" || isOutline;\n const hasContent = this._hasContent();\n const hasCtaSlot = !!this.querySelector(\"[slot='cta']\");\n const ctaAlign = this.ctaAlign || (isCentered ? \"center\" : \"start\");\n const ctaJustify = ctaAlign === \"center\"\n ? \"justify-content: center;\"\n : ctaAlign === \"end\"\n ? \"justify-content: flex-end;\"\n : \"justify-content: flex-start;\";\n\n return html`\n <div\n class=\"bd-light-box-s\n ${isCentered ? \"bd-light-box-center\" : \"\"}\n ${this.bgBlue ? \"bd-light-box-blue\" : \"\"}\n ${isOutline ? \"bd-light-box-outline\" : \"\"}\"\n >\n <div class=\"bd-light-box-header-s ${isCentered ? \"bd-light-box-header-center\" : \"\"}\">\n ${this._renderIcon()}\n </div>\n\n ${this.title\n ? html`\n <div class=\"bd-light-title-badge-wrapper-s ${!hasContent ? \"bd-light-title-no-content\" : \"\"}\">\n <div class=\"bd-card-title-group\">\n <bd-h as=\"${this._headingTag}\" visual-level=\"h5\" fontWeight=\"bold\">${this.title}</bd-h>\n ${this.subtitle\n ? html`<p class=\"bd-card-item-subtitle\">${this.subtitle}</p>`\n : \"\"}\n </div>\n </div>\n `\n : \"\"}\n\n ${hasContent\n ? html`\n <div class=\"bd-card-content-wrapper\">\n <slot></slot>\n </div>\n `\n : \"\"}\n\n ${hasCtaSlot\n ? html`\n <div class=\"bd-card-cta-wrapper\" style=\"${ctaJustify}\">\n <slot name=\"cta\"></slot>\n </div>\n `\n : \"\"}\n\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-card-section\": Card;\n \"bd-card-item\" : CardItem;\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"card.js","names":["carouselCSS","_decorate","__decorate","card_css_default","Card","LitElement","_args","ensembleCSS","itemCount","items","count","cols","colsMd","shortRow","left","n","wide","md","i","item","contentRows","property","defineElement","CardItem","iconEl","isOutline","iconW","iconH","clone","innerImg","node","slot","isCentered","hasContent","hasCtaSlot","ctaAlign","ctaJustify"],"sources":["../../../../src/components/cards/card.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/heading/heading.ts\";\nimport carouselCSS from \"./card.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ntype Variant = \"\" | \"outline\";\n\n@defineElement(\"bd-card-section\")\nclass Card extends LitElement {\n static styles = [ensembleCSS, carouselCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: Number, attribute: \"heading-level\" })\n headingLevel = 2;\n @property({ type: String })\n subtitle = \"\";\n @property({ type: Boolean, reflect: true, attribute: \"bg-blue\" })\n bgBlue = false;\n // \"\" (default — existing grey-box carousel look) | \"outline\" — bordered,\n // centered cards with a light-blue tint, blue title and centered icon.\n // Propagated to every slotted bd-card-item (see _onSlotChange) unless an\n // item sets its own variant attribute.\n @property({ type: String, reflect: true })\n variant: Variant = \"\";\n\n _mutationObserver: MutationObserver | null = null;\n\n _getColumnCount(itemCount: number) {\n if (itemCount <= 4) return itemCount;\n if (itemCount <= 6) return 3;\n if (itemCount <= 8) return 4;\n if (itemCount === 9) return 3;\n return 4;\n }\n\n /* The column count follows the number of cards, and card.css.ts turns it\n into tracks, so nothing here measures the track. Every card spans two\n tracks of a grid twice as fine, which is what lets a short last row sit\n in the middle, the way the wrapping row this replaces centred it: its\n first card starts as many tracks in as the row is short of cards.\n\n Between md and lg a card's 200px floor fits three to a row, not four,\n so that band has its own count and its own short row. */\n _syncColumns() {\n const items = [...this.querySelectorAll(\"bd-card-item\")];\n const count = items.length;\n const cols = this._getColumnCount(count);\n const colsMd = Math.min(cols, 3);\n this.style.setProperty(\"--bd-card-cols\", String(cols));\n this.style.setProperty(\"--bd-card-tracks\", String(cols * 2));\n this.style.setProperty(\"--bd-card-tracks-md\", String(colsMd * 2));\n\n const shortRow = (n: number) => {\n const left = count % n;\n return left ? { first: count - left, start: n - left + 1 } : null;\n };\n const wide = shortRow(cols);\n const md = shortRow(colsMd);\n items.forEach((item, i) => {\n if (wide?.first === i) item.style.setProperty(\"--bd-card-start\", String(wide.start));\n else item.style.removeProperty(\"--bd-card-start\");\n if (md?.first === i) item.style.setProperty(\"--bd-card-start-md\", String(md.start));\n else item.style.removeProperty(\"--bd-card-start-md\");\n });\n }\n\n // Propagates this.variant onto every slotted bd-card-item that didn't\n // itself declare a variant attribute in its ORIGINAL markup. We can't use\n // item.hasAttribute(\"variant\") here — CardItem's own `variant` property\n // has reflect:true, so Lit reflects its default \"\" onto the attribute on\n // first render, meaning hasAttribute(\"variant\") becomes true for EVERY\n // item almost immediately, even ones the author never touched. Instead\n // we rely on item._authorSetVariant, captured in CardItem's constructor\n // (before Lit's own reflection has a chance to run) — see below.\n _propagateVariant() {\n if (!this.variant) return;\n this.querySelectorAll(\"bd-card-item\").forEach((item) => {\n if (!item._authorSetVariant) {\n item.variant = this.variant;\n }\n });\n }\n\n /* Marks every item as a subgrid of the section (their shadow styles key off\n align-rows) and sizes the shared row tracks: header, title, the longest\n content list, CTA. Above md the cards line up row by row through those\n tracks -- card.css.ts -- which is what the section used to do in script:\n a ResizeObserver, a wait for the fonts, two animation frames and a px\n height written on every card's header, title, content and box.\n\n align-rows was the opt-in to this layout; it is the only one now, so the\n section no longer reads the attribute. */\n _syncAlignRows() {\n const items = [...this.querySelectorAll(\"bd-card-item\")];\n items.forEach((item) => item.setAttribute(\"align-rows\", \"\"));\n\n const contentRows = Math.max(0, ...items.map((item) => item._contentNodes?.().length ?? 0));\n this.style.setProperty(\"--bd-card-content-rows\", String(contentRows));\n this.style.setProperty(\"--bd-card-rows\", String(contentRows + 3));\n }\n\n _onSlotChange = () => {\n this._propagateVariant();\n this._syncAlignRows();\n this._syncColumns();\n }\n\n firstUpdated() {\n this._propagateVariant();\n this._syncAlignRows();\n this._syncColumns();\n\n // Content added to or removed from an item changes its row count, which\n // doesn't trigger slotchange on the section.\n this._mutationObserver = new MutationObserver(() => this._syncAlignRows());\n this._mutationObserver.observe(this, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._mutationObserver?.disconnect();\n }\n\n\n /**\n * Level is the document-outline question and belongs to page composition;\n * the type scale is this component's and stays where it was. visual-level\n * pins the look at h1 so only the semantics move. Defaults to h2, because a\n * reusable section cannot know it is the page's only heading.\n */\n get _headingTag() {\n const n = Number(this.headingLevel);\n return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : \"h2\";\n }\n\n render() {\n return html`\n <section class=\"bd-ensemble bd-light-carousel-s\">\n ${this.title\n ? html`\n <div class=\"bd-header-light-carousel-s\">\n <bd-h as=\"${this._headingTag}\" visual-level=\"h1\" class=\"bd-section-title-s\">${this.title}</bd-h>\n ${this.subtitle\n ? html`<p class=\"bd-section-subtitle-s\">${this.subtitle}</p>`\n : \"\"}\n </div>\n `\n : \"\"}\n\n <div class=\"bd-light-carousel-track-s\">\n <slot @slotchange=${this._onSlotChange}></slot>\n </div>\n\n </section>\n `;\n }\n}\n\ntype Align = \"start\" | \"center\";\ntype CtaAlign = \"\" | \"start\" | \"center\" | \"end\";\n\n@defineElement(\"bd-card-item\")\nclass CardItem extends LitElement {\n static styles = [carouselCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n subtitle = \"\";\n @property({ type: String })\n icon = \"\";\n @property({ type: String })\n align: Align = \"start\";\n @property({ type: Boolean, reflect: true, attribute: \"bg-blue\" })\n bgBlue = false;\n @property({ type: String, attribute: \"cta-align\" })\n ctaAlign: CtaAlign = \"\";\n @property({ type: Number, attribute: \"heading-level\" })\n headingLevel = 3;\n // \"\" (default) | \"outline\" — see Card.variant above. Reflected so\n // card.css.ts can target it with :host([variant=\"outline\"]).\n @property({ type: String, reflect: true })\n variant: Variant = \"\";\n\n _authorSetVariant: boolean;\n\n constructor() {\n super();\n // Captured BEFORE Lit's own property-to-attribute reflection runs (that\n // happens on first update/render, not here). At this point the DOM\n // parser has already set any attribute the author wrote in markup, so\n // this reliably answers \"did the author explicitly set variant on this\n // element\", independent of whatever default value we assign below.\n this._authorSetVariant = this.hasAttribute(\"variant\");\n }\n\n _renderIcon() {\n const iconEl = this.querySelector<HTMLElement | SVGElement>(\"[slot='icon']\");\n const isOutline = this.variant === \"outline\";\n const iconW = isOutline ? 65 : 48;\n const iconH = isOutline ? 75 : 48;\n\n if (iconEl) {\n const clone = iconEl.cloneNode(true) as typeof iconEl;\n\n // The icon components (bd-globe-icon etc.) size their inner <svg>\n // from their own width/height attributes, not from CSS on the host —\n // setting only clone.style.width/height left the SVG's actual\n // width=\"48\" height=\"48\" attributes untouched, so nothing visibly\n // changed. Overwrite the attributes themselves for anything that\n // looks like an icon component (custom element) or a raw <svg>.\n clone.setAttribute(\"width\", String(iconW));\n clone.setAttribute(\"height\", String(iconH));\n\n clone.style.maxWidth = `${iconW}px`;\n clone.style.maxHeight = `${iconH}px`;\n clone.style.width = `${iconW}px`;\n clone.style.height = `${iconH}px`;\n clone.style.objectFit = \"contain\";\n clone.style.display = \"block\";\n\n const innerImg = clone.querySelector(\"img\");\n if (innerImg) {\n innerImg.style.maxWidth = `${iconW}px`;\n innerImg.style.maxHeight = `${iconH}px`;\n innerImg.style.width = `${iconW}px`;\n innerImg.style.height = `${iconH}px`;\n innerImg.style.objectFit = \"contain\";\n innerImg.style.display = \"block\";\n innerImg.removeAttribute(\"width\");\n innerImg.removeAttribute(\"height\");\n }\n\n return clone;\n }\n\n if (this.icon) {\n return html`<img\n src=\"${this.icon}\"\n alt=\"\"\n class=\"bd-light-icon-s\"\n style=\"width: ${iconW}px; height: ${iconH}px;\"\n />`;\n }\n\n return \"\";\n }\n // Nodes rendered in the default slot — each one is a content row\n _contentNodes() {\n return [...this.childNodes].filter((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const slot = (node as Element).getAttribute(\"slot\");\n return slot !== \"icon\" && slot !== \"cta\";\n }\n return node.nodeType === Node.TEXT_NODE && (node as Text).textContent.trim() !== \"\";\n });\n }\n\n _hasContent() {\n return this._contentNodes().length > 0;\n }\n\n\n /**\n * One level below the section default. The h5 it used to carry was a type\n * choice, not an outline one, so the size stays on visual-level while the\n * level itself stops skipping three steps below its own section.\n */\n get _headingTag() {\n const n = Number(this.headingLevel);\n return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : \"h3\";\n }\n\n render() {\n const isOutline = this.variant === \"outline\";\n const isCentered = this.align === \"center\" || isOutline;\n const hasContent = this._hasContent();\n const hasCtaSlot = !!this.querySelector(\"[slot='cta']\");\n const ctaAlign = this.ctaAlign || (isCentered ? \"center\" : \"start\");\n const ctaJustify = ctaAlign === \"center\"\n ? \"justify-content: center;\"\n : ctaAlign === \"end\"\n ? \"justify-content: flex-end;\"\n : \"justify-content: flex-start;\";\n\n return html`\n <div\n class=\"bd-light-box-s\n ${isCentered ? \"bd-light-box-center\" : \"\"}\n ${this.bgBlue ? \"bd-light-box-blue\" : \"\"}\n ${isOutline ? \"bd-light-box-outline\" : \"\"}\"\n >\n <div class=\"bd-light-box-header-s ${isCentered ? \"bd-light-box-header-center\" : \"\"}\">\n ${this._renderIcon()}\n </div>\n\n ${this.title\n ? html`\n <div class=\"bd-light-title-badge-wrapper-s ${!hasContent ? \"bd-light-title-no-content\" : \"\"}\">\n <div class=\"bd-card-title-group\">\n <bd-h as=\"${this._headingTag}\" visual-level=\"h5\" fontWeight=\"bold\">${this.title}</bd-h>\n ${this.subtitle\n ? html`<p class=\"bd-card-item-subtitle\">${this.subtitle}</p>`\n : \"\"}\n </div>\n </div>\n `\n : \"\"}\n\n ${hasContent\n ? html`\n <div class=\"bd-card-content-wrapper\">\n <slot></slot>\n </div>\n `\n : \"\"}\n\n ${hasCtaSlot\n ? html`\n <div class=\"bd-card-cta-wrapper\" style=\"${ctaJustify}\">\n <slot name=\"cta\"></slot>\n </div>\n `\n : \"\"}\n\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-card-section\": Card;\n \"bd-card-item\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