@repobit/dex-system-design 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +14 -3
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement, type PropertyValues } from
|
|
2
|
-
import
|
|
3
|
-
import { type Size } from
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import { type Size } from "../shared/prop-vocabulary.js";
|
|
4
4
|
export declare class BdCaption extends LitElement {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
6
6
|
size: Size;
|
|
@@ -1,38 +1,4 @@
|
|
|
1
|
-
|
|
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 { captionCSS } from "./caption.css.js";
|
|
13
|
-
import { resolveSize } from "../shared/prop-vocabulary.js";
|
|
14
|
-
let BdCaption = class BdCaption extends LitElement {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.size = 'md';
|
|
18
|
-
}
|
|
19
|
-
static { this.styles = [captionCSS]; }
|
|
20
|
-
willUpdate(changed) {
|
|
21
|
-
// small / default / large still resolve; see shared/prop-vocabulary.ts
|
|
22
|
-
if (changed.has('size'))
|
|
23
|
-
this.size = resolveSize(this.size, 'md');
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
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{resolveSize as n}from"../shared/prop-vocabulary.js";import{captionCSS as r}from"./caption.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.size=`md`}static{this.styles=[r]}willUpdate(e){e.has(`size`)&&(this.size=n(this.size,`md`))}render(){return a`
|
|
27
2
|
<figcaption><slot></slot></figcaption>
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
__decorate([
|
|
32
|
-
property({ type: String, reflect: true })
|
|
33
|
-
], BdCaption.prototype, "size", void 0);
|
|
34
|
-
BdCaption = __decorate([
|
|
35
|
-
defineElement('bd-caption')
|
|
36
|
-
], BdCaption);
|
|
37
|
-
export { BdCaption };
|
|
3
|
+
`}};t([o({type:String,reflect:!0})],s.prototype,`size`,void 0),s=t([e(`bd-caption`)],s);export{s as BdCaption};
|
|
38
4
|
//# sourceMappingURL=caption.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caption.js","
|
|
1
|
+
{"version":3,"file":"caption.js","names":["_decorate","__decorate","BdCaption","LitElement","_args","captionCSS","changed","resolveSize","property","defineElement"],"sources":["../../../../src/components/caption/caption.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } 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 { captionCSS } from './caption.css.ts';\nimport { resolveSize, type Size } from '#shared/prop-vocabulary.ts';\n\n@defineElement('bd-caption')\nexport class BdCaption extends LitElement {\n static styles = [captionCSS];\n\n @property({ type: String, reflect: true })\n size: Size = 'md';\n\n willUpdate(changed: PropertyValues<this>) {\n // small / default / large still resolve; see shared/prop-vocabulary.ts\n if (changed.has('size')) this.size = resolveSize(this.size, 'md');\n }\n\n render() {\n return html`\n <figcaption><slot></slot></figcaption>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-caption': BdCaption;\n }\n}\n"],"mappings":"A,sWASO,IAAME,EAAN,cAAwBC,CAAW,C,8BAI3B,KAAA,KAAA,I,QAHG,KAAA,OAAA,CAACE,CAAU,C,CAK3B,WAAW,EAA+B,CAEpCC,EAAQ,IAAI,MAAM,IAAG,KAAK,KAAOC,EAAY,KAAK,KAAM,IAAI,EAClE,CAEA,QAAS,CACP,MAAO,EAAI;;KAGb,CACF,EAbGP,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAN,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ1C,EAAAF,EAAA,CAAAS,EAAc,YAAY,CAAA,EAAAP,CAAA,E"}
|
|
@@ -1,121 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* The section is the container its columns and its cards' layout read,
|
|
8
|
-
where they read the screen: across the page the two are the same width,
|
|
9
|
-
in a narrower column the cards step down with it. Only the section --
|
|
10
|
-
this sheet is the item's too, and a card that answered its own queries
|
|
11
|
-
would stack its icon in a two-up row. width: 100% because a size
|
|
12
|
-
container contributes nothing to its own intrinsic width. */
|
|
13
|
-
:host(bd-card-features-section) {
|
|
14
|
-
container-type: inline-size;
|
|
15
|
-
width: 100%;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.bd-card-features-s {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
position: relative;
|
|
24
|
-
/* Same reason as the card below, which already sets it: the gutters belong
|
|
25
|
-
inside the 100% and inside the max-width, not added on top of them. */
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
width: 100%;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.bd-card-features-header-s {
|
|
33
|
-
margin-bottom: var(--spacing-48);
|
|
34
|
-
margin-top: var(--spacing-32);
|
|
35
|
-
text-align: center;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.bd-card-features-track-s {
|
|
39
|
-
width: 100%;
|
|
40
|
-
display: grid;
|
|
41
|
-
gap: var(--spacing-24);
|
|
42
|
-
grid-template-columns: repeat(3, 1fr);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.bd-card-features-box-s {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
align-items: flex-start;
|
|
49
|
-
gap: var(--spacing-16);
|
|
50
|
-
background: var(--color-surface-container);
|
|
51
|
-
border-radius: var(--card-radius);
|
|
52
|
-
/* The other content cards are all on 32, and this one is not the small one
|
|
53
|
-
that would justify less: at 431px it is wider than both the card box and
|
|
54
|
-
the light carousel item, which are 304 and 413 and still take 32. */
|
|
55
|
-
padding: var(--card-padding);
|
|
56
|
-
font-family: var(--typography-fontFamily-sans);
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
height: 100%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.bd-card-features-icon-s {
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
width: var(--spacing-32);
|
|
64
|
-
height: var(--spacing-32);
|
|
65
|
-
object-fit: contain;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.bd-card-features-content-s {
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.bd-card-features-title-badge-wrapper-s {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
gap: var(--spacing-8);
|
|
77
|
-
margin-bottom: var(--spacing-8);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.bd-card-features-item-title-s {
|
|
81
|
-
margin: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* No type here: this selector needs a directly-slotted raw <p>, and every
|
|
85
|
-
consumer slots <bd-p>, so it has never matched anything. The size and
|
|
86
|
-
leading are gone; the rest of the rule is dead by the same proof and is
|
|
87
|
-
left for a follow-up rather than widened into this one. */
|
|
88
|
-
::slotted(p) {
|
|
89
|
-
color: var(--color-text-secondary);
|
|
90
|
-
margin: 0;
|
|
91
|
-
font-family: var(--typography-fontFamily-sans);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@container (width <= 1024px) {
|
|
95
|
-
.bd-card-features-track-s {
|
|
96
|
-
grid-template-columns: repeat(2, 1fr);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* Side by side, every card is as tall as the tallest one in the section,
|
|
101
|
-
row or not: 1fr implicit rows in a grid of auto height all resolve to the
|
|
102
|
-
tallest row's content. The box's height: 100% then fills its row. */
|
|
103
|
-
@container (width > 600px) {
|
|
104
|
-
.bd-card-features-track-s {
|
|
105
|
-
grid-auto-rows: 1fr;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@container (width <= 600px) {
|
|
110
|
-
.bd-card-features-track-s {
|
|
111
|
-
grid-template-columns: 1fr;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.bd-card-features-box-s {
|
|
115
|
-
flex-direction: column;
|
|
116
|
-
align-items: flex-start;
|
|
117
|
-
height: auto;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:block}:host(bd-card-features-section){box-sizing:border-box;width:100%;container-type:inline-size}.bd-card-features-s{box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.bd-card-features-header-s{margin-bottom:var(--spacing-48);margin-top:var(--spacing-32);text-align:center}.bd-card-features-track-s{gap:var(--spacing-24);grid-template-columns:repeat(3,1fr);width:100%;display:grid}.bd-card-features-box-s{align-items:flex-start;gap:var(--spacing-16);background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);font-family:var(--typography-fontFamily-sans);box-sizing:border-box;flex-direction:row;height:100%;display:flex}.bd-card-features-icon-s{width:var(--spacing-32);height:var(--spacing-32);object-fit:contain;flex-shrink:0}.bd-card-features-content-s{flex-direction:column;display:flex}.bd-card-features-title-badge-wrapper-s{align-items:center;gap:var(--spacing-8);margin-bottom:var(--spacing-8);display:flex}.bd-card-features-item-title-s{margin:0}::slotted(p){color:var(--color-text-secondary);font-family:var(--typography-fontFamily-sans);margin:0}@container (width<=1024px){.bd-card-features-track-s{grid-template-columns:repeat(2,1fr)}}@container (width>600px){.bd-card-features-track-s{grid-auto-rows:1fr}}@container (width<=600px){.bd-card-features-track-s{grid-template-columns:1fr}.bd-card-features-box-s{flex-direction:column;align-items:flex-start;height:auto}}`;export{t as default};
|
|
121
2
|
//# sourceMappingURL=card-features.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-features.css.js","
|
|
1
|
+
{"version":3,"file":"card-features.css.js","names":["card_features_css_default"],"sources":["../../../../src/components/card-features/card-features.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n }\n\n /* The section is the container its columns and its cards' layout read,\n where they read the screen: across the page the two are the same width,\n in a narrower column the cards step down with it. Only the section --\n this sheet is the item's too, and a card that answered its own queries\n would stack its icon in a two-up row. width: 100% because a size\n container contributes nothing to its own intrinsic width. */\n :host(bd-card-features-section) {\n container-type: inline-size;\n width: 100%;\n box-sizing: border-box;\n }\n\n .bd-card-features-s {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n /* Same reason as the card below, which already sets it: the gutters belong\n inside the 100% and inside the max-width, not added on top of them. */\n box-sizing: border-box;\n width: 100%;\n overflow: hidden;\n flex-direction: column;\n }\n\n .bd-card-features-header-s {\n margin-bottom: var(--spacing-48);\n margin-top: var(--spacing-32);\n text-align: center;\n }\n\n .bd-card-features-track-s {\n width: 100%;\n display: grid;\n gap: var(--spacing-24);\n grid-template-columns: repeat(3, 1fr);\n }\n\n .bd-card-features-box-s {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n gap: var(--spacing-16);\n background: var(--color-surface-container);\n border-radius: var(--card-radius);\n /* The other content cards are all on 32, and this one is not the small one\n that would justify less: at 431px it is wider than both the card box and\n the light carousel item, which are 304 and 413 and still take 32. */\n padding: var(--card-padding);\n font-family: var(--typography-fontFamily-sans);\n box-sizing: border-box;\n height: 100%;\n }\n\n .bd-card-features-icon-s {\n flex-shrink: 0;\n width: var(--spacing-32);\n height: var(--spacing-32);\n object-fit: contain;\n }\n\n .bd-card-features-content-s {\n display: flex;\n flex-direction: column;\n }\n\n .bd-card-features-title-badge-wrapper-s {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n margin-bottom: var(--spacing-8);\n }\n\n .bd-card-features-item-title-s {\n margin: 0;\n }\n\n /* No type here: this selector needs a directly-slotted raw <p>, and every\n consumer slots <bd-p>, so it has never matched anything. The size and\n leading are gone; the rest of the rule is dead by the same proof and is\n left for a follow-up rather than widened into this one. */\n ::slotted(p) {\n color: var(--color-text-secondary);\n margin: 0;\n font-family: var(--typography-fontFamily-sans);\n }\n\n @container (width <= 1024px) {\n .bd-card-features-track-s {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n\n /* Side by side, every card is as tall as the tallest one in the section,\n row or not: 1fr implicit rows in a grid of auto height all resolve to the\n tallest row's content. The box's height: 100% then fills its row. */\n @container (width > 600px) {\n .bd-card-features-track-s {\n grid-auto-rows: 1fr;\n }\n }\n\n @container (width <= 600px) {\n .bd-card-features-track-s {\n grid-template-columns: 1fr;\n }\n\n .bd-card-features-box-s {\n flex-direction: column;\n align-items: flex-start;\n height: auto;\n }\n }\n`;"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,8/C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import "../badge/badge.
|
|
4
|
-
import "../heading/heading.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../badge/badge.js";
|
|
4
|
+
import "../heading/heading.js";
|
|
5
5
|
declare class CardFeatures extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
7
7
|
title: string;
|
|
@@ -1,170 +1,37 @@
|
|
|
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 "../badge/badge.js";
|
|
13
|
-
import "../heading/heading.js";
|
|
14
|
-
import cardFeaturesCSS from "./card-features.css.js";
|
|
15
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
16
|
-
let CardFeatures = class CardFeatures extends LitElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.title = "";
|
|
20
|
-
this.headingLevel = 2;
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [ensembleCSS, cardFeaturesCSS]; }
|
|
23
|
-
/* Every card in the section is as tall as the tallest, with no script: the
|
|
24
|
-
track's implicit rows are 1fr, which a grid of auto height resolves to its
|
|
25
|
-
tallest row (card-features.css.ts). This used to be a ResizeObserver
|
|
26
|
-
measuring every box and writing the tallest height back onto each. */
|
|
27
|
-
/**
|
|
28
|
-
* The heading element this section renders. Level is the document-outline
|
|
29
|
-
* question and belongs to whoever composes the page; the type scale is this
|
|
30
|
-
* component's own and does not move with it. Defaults to h2, because a
|
|
31
|
-
* reusable section cannot know it is the only thing on the page, and two of
|
|
32
|
-
* these used to put two h1s on one.
|
|
33
|
-
*/
|
|
34
|
-
get _headingTag() {
|
|
35
|
-
const n = Number(this.headingLevel);
|
|
36
|
-
return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : "h2";
|
|
37
|
-
}
|
|
38
|
-
/* bd-h already builds the dynamic tag, and it keeps the two questions apart
|
|
39
|
-
the way this component needs: as= is the outline level the page composes,
|
|
40
|
-
visual-level= is the type role, which is ours. Building the element here
|
|
41
|
-
meant re-implementing bd-h and then hand-writing the type on top of it. */
|
|
42
|
-
_renderTitle(className) {
|
|
43
|
-
return html `<bd-h as=${this._headingTag} visual-level="h3" class=${className}
|
|
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"../badge/badge.js";import r from"./card-features.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}static{this.styles=[n,r]}get _headingTag(){let e=Number(this.headingLevel);return Number.isInteger(e)&&e>=1&&e<=6?`h${e}`:`h2`}_renderTitle(e){return a`<bd-h as=${this._headingTag} visual-level="h3" class=${e}
|
|
44
2
|
>${this.title}</bd-h
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
return html `
|
|
3
|
+
>`}render(){return a`
|
|
49
4
|
<section class="bd-ensemble bd-card-features-s">
|
|
50
|
-
${this.title
|
|
51
|
-
? html `
|
|
5
|
+
${this.title?a`
|
|
52
6
|
<div class="bd-card-features-header-s">
|
|
53
|
-
${this._renderTitle(
|
|
7
|
+
${this._renderTitle(`bd-card-features-title-s`)}
|
|
54
8
|
</div>
|
|
55
|
-
|
|
56
|
-
: null}
|
|
9
|
+
`:null}
|
|
57
10
|
<div class="bd-card-features-track-s">
|
|
58
11
|
<slot></slot>
|
|
59
12
|
</div>
|
|
60
13
|
</section>
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
__decorate([
|
|
65
|
-
property({ type: String })
|
|
66
|
-
], CardFeatures.prototype, "title", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
property({ type: Number, attribute: "heading-level" })
|
|
69
|
-
], CardFeatures.prototype, "headingLevel", void 0);
|
|
70
|
-
CardFeatures = __decorate([
|
|
71
|
-
defineElement("bd-card-features-section")
|
|
72
|
-
], CardFeatures);
|
|
73
|
-
let CardFeaturesItem = class CardFeaturesItem extends LitElement {
|
|
74
|
-
constructor() {
|
|
75
|
-
super(...arguments);
|
|
76
|
-
this.title = "";
|
|
77
|
-
this.icon = "";
|
|
78
|
-
this.badge = "";
|
|
79
|
-
/* `badge-variant`, which this component documents twice over: the usage
|
|
80
|
-
example in card-features.stories.ts writes
|
|
81
|
-
badge-variant="bd-light-blue", and the props table there lists
|
|
82
|
-
`badge-variant` as a documented String input. It was never observed --
|
|
83
|
-
Lit was listening for `badgevariant` -- so the property held its "fill"
|
|
84
|
-
default and every badge rendered the same fill treatment: measured on
|
|
85
|
-
Modules/CardFeatures Default, the item asking for "bd-light-green" came
|
|
86
|
-
out rgb(0, 109, 255), the identical blue as the four asking for
|
|
87
|
-
"bd-light-blue".
|
|
88
|
-
|
|
89
|
-
Zero consumers of the lowercase spelling, so the mapping is safe. The
|
|
90
|
-
value is passed straight through to bd-badge's own `variant`, which is
|
|
91
|
-
where the colour decision lives; nothing about the badge's design
|
|
92
|
-
changes here beyond the variant finally being the one that was asked
|
|
93
|
-
for. */
|
|
94
|
-
// reproduces the blue fill these badges carried before ds-badge
|
|
95
|
-
this.badgeVariant = "fill";
|
|
96
|
-
this.badgeTone = "primary";
|
|
97
|
-
this.headingLevel = 3;
|
|
98
|
-
}
|
|
99
|
-
static { this.styles = [cardFeaturesCSS]; }
|
|
100
|
-
_renderIcon() {
|
|
101
|
-
const iconEl = this.querySelector("[slot='icon']");
|
|
102
|
-
if (iconEl) {
|
|
103
|
-
return iconEl.cloneNode(true);
|
|
104
|
-
}
|
|
105
|
-
if (this.icon) {
|
|
106
|
-
return html `<img
|
|
14
|
+
`}};t([o({type:String})],s.prototype,`title`,void 0),t([o({type:Number,attribute:`heading-level`})],s.prototype,`headingLevel`,void 0),s=t([e(`bd-card-features-section`)],s);var c=class extends i{constructor(...e){super(...e),this.title=``,this.icon=``,this.badge=``,this.badgeVariant=`fill`,this.badgeTone=`primary`,this.headingLevel=3}static{this.styles=[r]}_renderIcon(){let e=this.querySelector(`[slot='icon']`);return e?e.cloneNode(!0):this.icon?a`<img
|
|
107
15
|
src="${this.icon}"
|
|
108
16
|
alt=""
|
|
109
17
|
class="bd-card-features-icon-s"
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
return "";
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* One level below the section default. The h5 it used to carry was a type
|
|
116
|
-
* choice, not an outline one, so the size stays on visual-level while the
|
|
117
|
-
* level itself stops skipping three steps below its own section.
|
|
118
|
-
*/
|
|
119
|
-
get _headingTag() {
|
|
120
|
-
const n = Number(this.headingLevel);
|
|
121
|
-
return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : "h3";
|
|
122
|
-
}
|
|
123
|
-
render() {
|
|
124
|
-
return html `
|
|
18
|
+
/>`:``}get _headingTag(){let e=Number(this.headingLevel);return Number.isInteger(e)&&e>=1&&e<=6?`h${e}`:`h3`}render(){return a`
|
|
125
19
|
<div class="bd-card-features-box-s">
|
|
126
20
|
${this._renderIcon()}
|
|
127
21
|
|
|
128
22
|
<div class="bd-card-features-content-s">
|
|
129
|
-
${this.title
|
|
130
|
-
? html `
|
|
23
|
+
${this.title?a`
|
|
131
24
|
<div class="bd-card-features-title-badge-wrapper-s">
|
|
132
25
|
<bd-h as="${this._headingTag}" visual-level="h5" fontWeight="bold" class="bd-card-features-item-title-s">${this.title}</bd-h>
|
|
133
|
-
${this.badge
|
|
134
|
-
? html `<bd-badge
|
|
26
|
+
${this.badge?a`<bd-badge
|
|
135
27
|
variant="${this.badgeVariant}"
|
|
136
28
|
tone="${this.badgeTone}"
|
|
137
29
|
size="sm"
|
|
138
|
-
>${this.badge}</bd-badge
|
|
139
|
-
: ""}
|
|
30
|
+
>${this.badge}</bd-badge>`:``}
|
|
140
31
|
</div>
|
|
141
|
-
|
|
142
|
-
: ""}
|
|
32
|
+
`:``}
|
|
143
33
|
<slot></slot>
|
|
144
34
|
</div>
|
|
145
35
|
</div>
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
__decorate([
|
|
150
|
-
property({ type: String })
|
|
151
|
-
], CardFeaturesItem.prototype, "title", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
property({ type: String })
|
|
154
|
-
], CardFeaturesItem.prototype, "icon", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
property({ type: String })
|
|
157
|
-
], CardFeaturesItem.prototype, "badge", void 0);
|
|
158
|
-
__decorate([
|
|
159
|
-
property({ type: String, attribute: "badge-variant" })
|
|
160
|
-
], CardFeaturesItem.prototype, "badgeVariant", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
property({ type: String })
|
|
163
|
-
], CardFeaturesItem.prototype, "badgeTone", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
property({ type: Number, attribute: "heading-level" })
|
|
166
|
-
], CardFeaturesItem.prototype, "headingLevel", void 0);
|
|
167
|
-
CardFeaturesItem = __decorate([
|
|
168
|
-
defineElement("bd-card-features-item")
|
|
169
|
-
], CardFeaturesItem);
|
|
36
|
+
`}};t([o({type:String})],c.prototype,`title`,void 0),t([o({type:String})],c.prototype,`icon`,void 0),t([o({type:String})],c.prototype,`badge`,void 0),t([o({type:String,attribute:`badge-variant`})],c.prototype,`badgeVariant`,void 0),t([o({type:String})],c.prototype,`badgeTone`,void 0),t([o({type:Number,attribute:`heading-level`})],c.prototype,`headingLevel`,void 0),c=t([e(`bd-card-features-item`)],c);
|
|
170
37
|
//# sourceMappingURL=card-features.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-features.js","
|
|
1
|
+
{"version":3,"file":"card-features.js","names":["cardFeaturesCSS","_decorate","__decorate","card_features_css_default","CardFeatures","LitElement","_args","ensembleCSS","n","className","property","defineElement","CardFeaturesItem","_args2","iconEl"],"sources":["../../../../src/components/card-features/card-features.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/badge/badge.ts\";\nimport \"#components/heading/heading.ts\";\nimport cardFeaturesCSS from \"./card-features.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n@defineElement(\"bd-card-features-section\")\nclass CardFeatures extends LitElement {\n static styles = [ensembleCSS, cardFeaturesCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: Number, attribute: \"heading-level\" })\n headingLevel = 2;\n\n /* Every card in the section is as tall as the tallest, with no script: the\n track's implicit rows are 1fr, which a grid of auto height resolves to its\n tallest row (card-features.css.ts). This used to be a ResizeObserver\n measuring every box and writing the tallest height back onto each. */\n\n /**\n * The heading element this section renders. Level is the document-outline\n * question and belongs to whoever composes the page; the type scale is this\n * component's own and does not move with it. Defaults to h2, because a\n * reusable section cannot know it is the only thing on the page, and two of\n * these used to put two h1s on one.\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 /* bd-h already builds the dynamic tag, and it keeps the two questions apart\n the way this component needs: as= is the outline level the page composes,\n visual-level= is the type role, which is ours. Building the element here\n meant re-implementing bd-h and then hand-writing the type on top of it. */\n _renderTitle(className: string) {\n return html`<bd-h as=${this._headingTag} visual-level=\"h3\" class=${className}\n >${this.title}</bd-h\n >`;\n }\n\n render() {\n return html`\n <section class=\"bd-ensemble bd-card-features-s\">\n ${this.title\n ? html`\n <div class=\"bd-card-features-header-s\">\n ${this._renderTitle(\"bd-card-features-title-s\")}\n </div>\n `\n : null}\n <div class=\"bd-card-features-track-s\">\n <slot></slot>\n </div>\n </section>\n `;\n }\n}\n\n@defineElement(\"bd-card-features-item\")\nclass CardFeaturesItem extends LitElement {\n static styles = [cardFeaturesCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n icon = \"\";\n @property({ type: String })\n badge = \"\";\n /* `badge-variant`, which this component documents twice over: the usage\n example in card-features.stories.ts writes\n badge-variant=\"bd-light-blue\", and the props table there lists\n `badge-variant` as a documented String input. It was never observed --\n Lit was listening for `badgevariant` -- so the property held its \"fill\"\n default and every badge rendered the same fill treatment: measured on\n Modules/CardFeatures Default, the item asking for \"bd-light-green\" came\n out rgb(0, 109, 255), the identical blue as the four asking for\n \"bd-light-blue\".\n\n Zero consumers of the lowercase spelling, so the mapping is safe. The\n value is passed straight through to bd-badge's own `variant`, which is\n where the colour decision lives; nothing about the badge's design\n changes here beyond the variant finally being the one that was asked\n for. */\n // reproduces the blue fill these badges carried before ds-badge\n @property({ type: String, attribute: \"badge-variant\" })\n badgeVariant = \"fill\";\n @property({ type: String })\n badgeTone = \"primary\";\n @property({ type: Number, attribute: \"heading-level\" })\n headingLevel = 3;\n\n _renderIcon() {\n const iconEl = this.querySelector(\"[slot='icon']\");\n\n if (iconEl) {\n return iconEl.cloneNode(true);\n }\n\n if (this.icon) {\n return html`<img\n src=\"${this.icon}\"\n alt=\"\"\n class=\"bd-card-features-icon-s\"\n />`;\n }\n\n return \"\";\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 return html`\n <div class=\"bd-card-features-box-s\">\n ${this._renderIcon()}\n\n <div class=\"bd-card-features-content-s\">\n ${this.title\n ? html`\n <div class=\"bd-card-features-title-badge-wrapper-s\">\n <bd-h as=\"${this._headingTag}\" visual-level=\"h5\" fontWeight=\"bold\" class=\"bd-card-features-item-title-s\">${this.title}</bd-h>\n ${this.badge\n ? html`<bd-badge\n variant=\"${this.badgeVariant}\"\n tone=\"${this.badgeTone}\"\n size=\"sm\"\n >${this.badge}</bd-badge>`\n : \"\"}\n </div>\n `\n : \"\"}\n <slot></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-card-features-section\": CardFeatures;\n \"bd-card-features-item\" : CardFeaturesItem;\n }\n}"],"mappings":"A,mZAUA,IACMI,EADN,cAC2BC,CAAW,C,8BAI5B,KAAA,MAAA,GAEO,KAAA,aAAA,C,QALC,KAAA,OAAA,CAACE,EAAaP,CAAe,C,CAmB7C,IAAI,aAAc,CAChB,IAAMQ,EAAI,OAAO,KAAK,YAAY,EAClC,OAAO,OAAO,UAAUA,CAAC,GAAKA,GAAK,GAAKA,GAAK,EAAI,IAAIA,IAAM,IAC7D,CAMA,aAAa,EAAmB,CAC9B,MAAO,EAAI,YAAY,KAAK,YAAY,2BAA2BC,EAAU;SACxE,KAAK,MAAM;MAElB,CAEA,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,MACH,CAAI;;kBAEE,KAAK,aAAa,0BAA0B,EAAE;;cAGpD,KAAK;;;;;KAMf,CACF,EAhDGR,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAN,EAAA,UAAA,eAAA,IAAA,EAAA,EANvD,EAAAH,EAAA,CAAAU,EAAc,0BAA0B,CAAA,EAAAP,CAAA,EAsDzC,IACMQ,EADN,cAC+BP,CAAW,C,8BAIhC,KAAA,MAAA,GAED,KAAA,KAAA,GAEC,KAAA,MAAA,GAkBO,KAAA,aAAA,OAEH,KAAA,UAAA,UAEG,KAAA,aAAA,C,QA7BC,KAAA,OAAA,CAACL,CAAe,C,CA+BhC,aAAc,CACZ,IAAMc,EAAS,KAAK,cAAc,eAAe,EAcjD,OAZIA,EACKA,EAAO,UAAU,EAAI,EAG1B,KAAK,KACA,CAAI;eACF,KAAK,KAAK;;;UAMd,EACT,CAQA,IAAI,aAAc,CAChB,IAAMN,EAAI,OAAO,KAAK,YAAY,EAClC,OAAO,OAAO,UAAUA,CAAC,GAAKA,GAAK,GAAKA,GAAK,EAAI,IAAIA,IAAM,IAC7D,CAEA,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,YAAY,EAAE;;;YAGjB,KAAK,MACH,CAAI;;8BAEY,KAAK,YAAY,8EAA8E,KAAK,MAAM;oBACpH,KAAK,MACH,CAAI;mCACS,KAAK,aAAa;gCACrB,KAAK,UAAU;;yBAEtB,KAAK,MAAM,aACd,GAAG;;gBAGX,GAAG;;;;KAKf,CACF,EAnFGP,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAE,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBX,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAE,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBX,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAE,EAAA,UAAA,QAAA,IAAA,EAAA,EAkBzBX,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAE,EAAA,UAAA,eAAA,IAAA,EAAA,EAErDX,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAE,EAAA,UAAA,YAAA,IAAA,EAAA,EAEzBX,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAE,EAAA,UAAA,eAAA,IAAA,EAAA,EA9BvD,EAAAX,EAAA,CAAAU,EAAc,uBAAuB,CAAA,EAAAC,CAAA"}
|