@repobit/dex-system-design 3.0.0 → 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 +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 +4 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -136
- 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,90 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
@layer bd-components {
|
|
7
|
-
/* No vertical margin. A heading's spacing depends on what it sits above
|
|
8
|
-
and below, which this element cannot see, so it is the caller's to set —
|
|
9
|
-
through the padding and paddingBottom props, which resolve to spacing
|
|
10
|
-
steps in shared/token-scales.ts. Six commented-out margin pairs used to
|
|
11
|
-
stand here recording an earlier answer; they were written with a //
|
|
12
|
-
prefix, which CSS does not recognise as a comment, so the parser was
|
|
13
|
-
discarding them through error recovery rather than honouring them.
|
|
14
|
-
|
|
15
|
-
The colour is set rather than inherited. Left to inherit, a heading took
|
|
16
|
-
whatever ink the page happened to carry, which is how bd-h, bd-display,
|
|
17
|
-
bd-p and bd-li ended up with four different blacks between them. */
|
|
18
|
-
.bd-heading {
|
|
19
|
-
margin: 0;
|
|
20
|
-
padding: 0;
|
|
21
|
-
color: var(--color-text-primary);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* A heading that wraps shares its words between its lines rather than
|
|
25
|
-
leaving one on the last. text-wrap is inherited, so slotted copy and
|
|
26
|
-
every component titled through bd-h -- bd-section-header among them --
|
|
27
|
-
balances too. Behind @supports: balance is Newly available (Safari 17.5,
|
|
28
|
-
2024-05-13) and Widely available only from 2026-11-13. */
|
|
29
|
-
@supports (text-wrap: balance) {
|
|
30
|
-
.bd-heading {
|
|
31
|
-
text-wrap: balance;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* h1 */
|
|
36
|
-
.bd-heading.h1 {
|
|
37
|
-
font-size: var(--typography-heading-h1-fontSize);
|
|
38
|
-
font-weight: var(--typography-heading-h1-fontWeight);
|
|
39
|
-
line-height: var(--typography-heading-h1-lineHeight);
|
|
40
|
-
letter-spacing: var(--typography-heading-h1-letterSpacing);
|
|
41
|
-
font-family: var(--typography-heading-h1-fontFamily);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* h2 */
|
|
45
|
-
.bd-heading.h2 {
|
|
46
|
-
font-size: var(--typography-heading-h2-fontSize);
|
|
47
|
-
font-weight: var(--typography-heading-h2-fontWeight);
|
|
48
|
-
line-height: var(--typography-heading-h2-lineHeight);
|
|
49
|
-
letter-spacing: var(--typography-heading-h2-letterSpacing);
|
|
50
|
-
font-family: var(--typography-heading-h2-fontFamily);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* h3 */
|
|
54
|
-
.bd-heading.h3 {
|
|
55
|
-
font-size: var(--typography-heading-h3-fontSize);
|
|
56
|
-
font-weight: var(--typography-heading-h3-fontWeight);
|
|
57
|
-
line-height: var(--typography-heading-h3-lineHeight);
|
|
58
|
-
letter-spacing: var(--typography-heading-h3-letterSpacing);
|
|
59
|
-
font-family: var(--typography-heading-h3-fontFamily);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* h4 */
|
|
63
|
-
.bd-heading.h4 {
|
|
64
|
-
font-size: var(--typography-heading-h4-fontSize);
|
|
65
|
-
font-weight: var(--typography-heading-h4-fontWeight);
|
|
66
|
-
line-height: var(--typography-heading-h4-lineHeight);
|
|
67
|
-
letter-spacing: var(--typography-heading-h4-letterSpacing);
|
|
68
|
-
font-family: var(--typography-heading-h4-fontFamily);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* h5 */
|
|
72
|
-
.bd-heading.h5 {
|
|
73
|
-
font-size: var(--typography-heading-h5-fontSize);
|
|
74
|
-
font-weight: var(--typography-heading-h5-fontWeight);
|
|
75
|
-
line-height: var(--typography-heading-h5-lineHeight);
|
|
76
|
-
letter-spacing: var(--typography-heading-h5-letterSpacing);
|
|
77
|
-
font-family: var(--typography-heading-h5-fontFamily);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* h6 */
|
|
81
|
-
.bd-heading.h6 {
|
|
82
|
-
font-size: var(--typography-heading-h6-fontSize);
|
|
83
|
-
font-weight: var(--typography-heading-h6-fontWeight);
|
|
84
|
-
line-height: var(--typography-heading-h6-lineHeight);
|
|
85
|
-
letter-spacing: var(--typography-heading-h6-letterSpacing);
|
|
86
|
-
font-family: var(--typography-heading-h6-fontFamily);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:block}@layer bd-components{.bd-heading{color:var(--color-text-primary);margin:0;padding:0}@supports (text-wrap:balance){.bd-heading{text-wrap:balance}}.bd-heading.h1{font-size:var(--typography-heading-h1-fontSize);font-weight:var(--typography-heading-h1-fontWeight);line-height:var(--typography-heading-h1-lineHeight);letter-spacing:var(--typography-heading-h1-letterSpacing);font-family:var(--typography-heading-h1-fontFamily)}.bd-heading.h2{font-size:var(--typography-heading-h2-fontSize);font-weight:var(--typography-heading-h2-fontWeight);line-height:var(--typography-heading-h2-lineHeight);letter-spacing:var(--typography-heading-h2-letterSpacing);font-family:var(--typography-heading-h2-fontFamily)}.bd-heading.h3{font-size:var(--typography-heading-h3-fontSize);font-weight:var(--typography-heading-h3-fontWeight);line-height:var(--typography-heading-h3-lineHeight);letter-spacing:var(--typography-heading-h3-letterSpacing);font-family:var(--typography-heading-h3-fontFamily)}.bd-heading.h4{font-size:var(--typography-heading-h4-fontSize);font-weight:var(--typography-heading-h4-fontWeight);line-height:var(--typography-heading-h4-lineHeight);letter-spacing:var(--typography-heading-h4-letterSpacing);font-family:var(--typography-heading-h4-fontFamily)}.bd-heading.h5{font-size:var(--typography-heading-h5-fontSize);font-weight:var(--typography-heading-h5-fontWeight);line-height:var(--typography-heading-h5-lineHeight);letter-spacing:var(--typography-heading-h5-letterSpacing);font-family:var(--typography-heading-h5-fontFamily)}.bd-heading.h6{font-size:var(--typography-heading-h6-fontSize);font-weight:var(--typography-heading-h6-fontWeight);line-height:var(--typography-heading-h6-lineHeight);letter-spacing:var(--typography-heading-h6-letterSpacing);font-family:var(--typography-heading-h6-fontFamily)}}`;export{t as default};
|
|
90
2
|
//# sourceMappingURL=heading.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.css.js","
|
|
1
|
+
{"version":3,"file":"heading.css.js","names":["heading_css_default"],"sources":["../../../../src/components/heading/heading.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n }\n @layer bd-components {\n /* No vertical margin. A heading's spacing depends on what it sits above\n and below, which this element cannot see, so it is the caller's to set —\n through the padding and paddingBottom props, which resolve to spacing\n steps in shared/token-scales.ts. Six commented-out margin pairs used to\n stand here recording an earlier answer; they were written with a //\n prefix, which CSS does not recognise as a comment, so the parser was\n discarding them through error recovery rather than honouring them.\n\n The colour is set rather than inherited. Left to inherit, a heading took\n whatever ink the page happened to carry, which is how bd-h, bd-display,\n bd-p and bd-li ended up with four different blacks between them. */\n .bd-heading {\n margin: 0;\n padding: 0;\n color: var(--color-text-primary);\n }\n\n /* A heading that wraps shares its words between its lines rather than\n leaving one on the last. text-wrap is inherited, so slotted copy and\n every component titled through bd-h -- bd-section-header among them --\n balances too. Behind @supports: balance is Newly available (Safari 17.5,\n 2024-05-13) and Widely available only from 2026-11-13. */\n @supports (text-wrap: balance) {\n .bd-heading {\n text-wrap: balance;\n }\n }\n\n /* h1 */\n .bd-heading.h1 {\n font-size: var(--typography-heading-h1-fontSize);\n font-weight: var(--typography-heading-h1-fontWeight);\n line-height: var(--typography-heading-h1-lineHeight);\n letter-spacing: var(--typography-heading-h1-letterSpacing);\n font-family: var(--typography-heading-h1-fontFamily);\n }\n\n /* h2 */\n .bd-heading.h2 {\n font-size: var(--typography-heading-h2-fontSize);\n font-weight: var(--typography-heading-h2-fontWeight);\n line-height: var(--typography-heading-h2-lineHeight);\n letter-spacing: var(--typography-heading-h2-letterSpacing);\n font-family: var(--typography-heading-h2-fontFamily);\n }\n\n /* h3 */\n .bd-heading.h3 {\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n font-family: var(--typography-heading-h3-fontFamily);\n }\n\n /* h4 */\n .bd-heading.h4 {\n font-size: var(--typography-heading-h4-fontSize);\n font-weight: var(--typography-heading-h4-fontWeight);\n line-height: var(--typography-heading-h4-lineHeight);\n letter-spacing: var(--typography-heading-h4-letterSpacing);\n font-family: var(--typography-heading-h4-fontFamily);\n }\n\n /* h5 */\n .bd-heading.h5 {\n font-size: var(--typography-heading-h5-fontSize);\n font-weight: var(--typography-heading-h5-fontWeight);\n line-height: var(--typography-heading-h5-lineHeight);\n letter-spacing: var(--typography-heading-h5-letterSpacing);\n font-family: var(--typography-heading-h5-fontFamily);\n }\n\n /* h6 */\n .bd-heading.h6 {\n font-size: var(--typography-heading-h6-fontSize);\n font-weight: var(--typography-heading-h6-fontWeight);\n line-height: var(--typography-heading-h6-lineHeight);\n letter-spacing: var(--typography-heading-h6-letterSpacing);\n font-family: var(--typography-heading-h6-fontFamily);\n }\n }\n`;\n"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,uyD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import { type SpacingStep, type FontWeightStep, type ColorRole } from "../shared/token-scales.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import { type SpacingStep, type FontWeightStep, type ColorRole } from "../shared/token-scales.js";
|
|
4
4
|
type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
5
|
type HeadingLevel = HeadingTag | "1" | "2" | "3" | "4" | "5" | "6";
|
|
6
6
|
export declare class BdH extends LitElement {
|
|
@@ -1,109 +1,2 @@
|
|
|
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 headingCSS from "./heading.css.js";
|
|
13
|
-
import { spacingShorthand, spacing, fontWeight, color } from "../shared/token-scales.js";
|
|
14
|
-
let BdH = class BdH extends LitElement {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.as = "h1";
|
|
18
|
-
/**
|
|
19
|
-
* Which step of the heading type scale to render, when that has to differ
|
|
20
|
-
* from the semantic level. Defaults to following `as`, so passing nothing
|
|
21
|
-
* behaves exactly as before.
|
|
22
|
-
*
|
|
23
|
-
* The two were one axis: the tag chose the element AND the type scale, so
|
|
24
|
-
* a section that had to stop being an h1 for the document outline would
|
|
25
|
-
* have shrunk from 5xl to 4xl at the same time. Level is what the outline
|
|
26
|
-
* reads; size is what the page looks like, and they are not the same
|
|
27
|
-
* question. Accepts h1-h6 or 1-6.
|
|
28
|
-
*/
|
|
29
|
-
this.visualLevel = "";
|
|
30
|
-
this.ariaLevel = null;
|
|
31
|
-
this.padding = "";
|
|
32
|
-
this.paddingBottom = "";
|
|
33
|
-
this.fontWeight = "";
|
|
34
|
-
this.color = "";
|
|
35
|
-
}
|
|
36
|
-
_isValidHeadingTag(tag) {
|
|
37
|
-
return ["h1", "h2", "h3", "h4", "h5", "h6"].includes(tag);
|
|
38
|
-
}
|
|
39
|
-
/** Accepts h1-h6 or a bare 1-6, and returns "" for anything else. */
|
|
40
|
-
_normaliseLevel(value) {
|
|
41
|
-
const v = String(value ?? "").trim()
|
|
42
|
-
.toLowerCase();
|
|
43
|
-
if (this._isValidHeadingTag(v))
|
|
44
|
-
return v;
|
|
45
|
-
return /^[1-6]$/.test(v) ? `h${v}` : "";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Each prop is a step name, resolved to a token reference by
|
|
49
|
-
* shared/token-scales.ts. A value that is not on its scale is dropped, so
|
|
50
|
-
* the heading keeps the styling its own CSS gives it.
|
|
51
|
-
*/
|
|
52
|
-
_computeStyles() {
|
|
53
|
-
const declarations = [
|
|
54
|
-
["padding", spacingShorthand(this.padding)],
|
|
55
|
-
["padding-bottom", spacing(this.paddingBottom)],
|
|
56
|
-
["font-weight", fontWeight(this.fontWeight)],
|
|
57
|
-
["color", color(this.color)]
|
|
58
|
-
];
|
|
59
|
-
return declarations
|
|
60
|
-
.filter(([, value]) => value)
|
|
61
|
-
.map(([property, value]) => `${property}: ${value};`)
|
|
62
|
-
.join(" ");
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
/* An unrecognised `as` used to fall back to h1, so a typo produced a
|
|
66
|
-
page-level heading in a component that had no business owning one --
|
|
67
|
-
the loudest possible thing to get wrong silently. It falls back to h2
|
|
68
|
-
now: still a heading, never the page's. A missing `as` is unaffected,
|
|
69
|
-
because the property defaults to h1 and h1 is valid. */
|
|
70
|
-
const tag = this._normaliseLevel(this.as) || "h2";
|
|
71
|
-
const visual = this._normaliseLevel(this.visualLevel) || tag;
|
|
72
|
-
const element = document.createElement(tag);
|
|
73
|
-
element.className = `bd-heading ${visual}`;
|
|
74
|
-
if (this.ariaLevel)
|
|
75
|
-
element.setAttribute("aria-level", this.ariaLevel);
|
|
76
|
-
const styles = this._computeStyles();
|
|
77
|
-
if (styles)
|
|
78
|
-
element.setAttribute("style", styles);
|
|
79
|
-
element.innerHTML = `<slot></slot>`;
|
|
80
|
-
return html `${element}`;
|
|
81
|
-
}
|
|
82
|
-
static { this.styles = [headingCSS]; }
|
|
83
|
-
};
|
|
84
|
-
__decorate([
|
|
85
|
-
property({ type: String, reflect: true })
|
|
86
|
-
], BdH.prototype, "as", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
property({ type: String, attribute: "visual-level", reflect: true })
|
|
89
|
-
], BdH.prototype, "visualLevel", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
property({ type: Number, attribute: "aria-level" })
|
|
92
|
-
], BdH.prototype, "ariaLevel", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: String })
|
|
95
|
-
], BdH.prototype, "padding", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
property({ type: String })
|
|
98
|
-
], BdH.prototype, "paddingBottom", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
property({ type: String })
|
|
101
|
-
], BdH.prototype, "fontWeight", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
property({ type: String })
|
|
104
|
-
], BdH.prototype, "color", void 0);
|
|
105
|
-
BdH = __decorate([
|
|
106
|
-
defineElement("bd-h")
|
|
107
|
-
], BdH);
|
|
108
|
-
export { BdH };
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"./heading.css.js";import{color as n,fontWeight as r,spacing as i,spacingShorthand as a}from"../shared/token-scales.js";import o from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{LitElement as s,html as c}from"lit";import{property as l}from"lit/decorators.js";var u=class extends s{constructor(...e){super(...e),this.as=`h1`,this.visualLevel=``,this.ariaLevel=null,this.padding=``,this.paddingBottom=``,this.fontWeight=``,this.color=``}_isValidHeadingTag(e){return[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(e)}_normaliseLevel(e){let t=String(e??``).trim().toLowerCase();return this._isValidHeadingTag(t)?t:/^[1-6]$/.test(t)?`h${t}`:``}_computeStyles(){return[[`padding`,a(this.padding)],[`padding-bottom`,i(this.paddingBottom)],[`font-weight`,r(this.fontWeight)],[`color`,n(this.color)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t};`).join(` `)}render(){let e=this._normaliseLevel(this.as)||`h2`,t=this._normaliseLevel(this.visualLevel)||e,n=document.createElement(e);n.className=`bd-heading ${t}`,this.ariaLevel&&n.setAttribute(`aria-level`,this.ariaLevel);let r=this._computeStyles();return r&&n.setAttribute(`style`,r),n.innerHTML=`<slot></slot>`,c`${n}`}static{this.styles=[t]}};o([l({type:String,reflect:!0})],u.prototype,`as`,void 0),o([l({type:String,attribute:`visual-level`,reflect:!0})],u.prototype,`visualLevel`,void 0),o([l({type:Number,attribute:`aria-level`})],u.prototype,`ariaLevel`,void 0),o([l({type:String})],u.prototype,`padding`,void 0),o([l({type:String})],u.prototype,`paddingBottom`,void 0),o([l({type:String})],u.prototype,`fontWeight`,void 0),o([l({type:String})],u.prototype,`color`,void 0),u=o([e(`bd-h`)],u);export{u as BdH};
|
|
109
2
|
//# sourceMappingURL=heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","
|
|
1
|
+
{"version":3,"file":"heading.js","names":["headingCSS","_decorate","heading_css_default","__decorate","BdH","LitElement","_args","tag","v","value","spacingShorthand","spacing","fontWeight","color","property","visual","element","styles","defineElement"],"sources":["../../../../src/components/heading/heading.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 headingCSS from \"./heading.css.ts\";\nimport {\n spacingShorthand, spacing, fontWeight, color,\n type SpacingStep, type FontWeightStep, type ColorRole\n} from \"#shared/token-scales.ts\";\n\ntype HeadingTag = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\ntype HeadingLevel = HeadingTag | \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\";\n\n@defineElement(\"bd-h\")\nexport class BdH extends LitElement {\n @property({ type: String, reflect: true })\n as: HeadingLevel = \"h1\";\n /**\n * Which step of the heading type scale to render, when that has to differ\n * from the semantic level. Defaults to following `as`, so passing nothing\n * behaves exactly as before.\n *\n * The two were one axis: the tag chose the element AND the type scale, so\n * a section that had to stop being an h1 for the document outline would\n * have shrunk from 5xl to 4xl at the same time. Level is what the outline\n * reads; size is what the page looks like, and they are not the same\n * question. Accepts h1-h6 or 1-6.\n */\n @property({ type: String, attribute: \"visual-level\", reflect: true })\n visualLevel: HeadingLevel | \"\" = \"\";\n @property({ type: Number, attribute: \"aria-level\" })\n ariaLevel: string | null = null;\n @property({ type: String })\n padding = \"\";\n @property({ type: String })\n paddingBottom: SpacingStep | \"\" = \"\";\n @property({ type: String })\n fontWeight: FontWeightStep | \"\" = \"\";\n @property({ type: String })\n color: ColorRole | \"\" = \"\";\n\n _isValidHeadingTag(tag: string) {\n return [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"].includes(tag);\n }\n\n /** Accepts h1-h6 or a bare 1-6, and returns \"\" for anything else. */\n _normaliseLevel(value: unknown) {\n const v = String(value ?? \"\").trim()\n .toLowerCase();\n if (this._isValidHeadingTag(v)) return v;\n return /^[1-6]$/.test(v) ? `h${v}` : \"\";\n }\n\n /**\n * Each prop is a step name, resolved to a token reference by\n * shared/token-scales.ts. A value that is not on its scale is dropped, so\n * the heading keeps the styling its own CSS gives it.\n */\n _computeStyles() {\n const declarations = [\n [\"padding\", spacingShorthand(this.padding)],\n [\"padding-bottom\", spacing(this.paddingBottom)],\n [\"font-weight\", fontWeight(this.fontWeight)],\n [\"color\", color(this.color)]\n ];\n\n return declarations\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value};`)\n .join(\" \");\n }\n\n\n render() {\n /* An unrecognised `as` used to fall back to h1, so a typo produced a\n page-level heading in a component that had no business owning one --\n the loudest possible thing to get wrong silently. It falls back to h2\n now: still a heading, never the page's. A missing `as` is unaffected,\n because the property defaults to h1 and h1 is valid. */\n const tag = this._normaliseLevel(this.as) || \"h2\";\n const visual = this._normaliseLevel(this.visualLevel) || tag;\n const element = document.createElement(tag);\n element.className = `bd-heading ${visual}`;\n if (this.ariaLevel) element.setAttribute(\"aria-level\", this.ariaLevel);\n\n const styles = this._computeStyles();\n if (styles) element.setAttribute(\"style\", styles);\n\n element.innerHTML = `<slot></slot>`;\n return html`${element}`;\n }\n\n\n static styles = [headingCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-h\": BdH;\n }\n}\n"],"mappings":"A,kYAeO,IAAMI,EAAN,cAAkBC,CAAW,C,8BAEf,KAAA,GAAA,KAac,KAAA,YAAA,GAEN,KAAA,UAAA,KAEjB,KAAA,QAAA,GAEwB,KAAA,cAAA,GAEA,KAAA,WAAA,GAEV,KAAA,MAAA,E,CAExB,mBAAmB,EAAa,CAC9B,MAAO,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,IAAI,CAAC,CAAC,SAASE,CAAG,CAC1D,CAGA,gBAAgB,EAAgB,CAC9B,IAAMC,EAAI,OAAOC,GAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CACjC,YAAY,EAEf,OADI,KAAK,mBAAmBD,CAAC,EAAUA,EAChC,UAAU,KAAKA,CAAC,EAAI,IAAIA,IAAM,EACvC,CAOA,gBAAiB,CAQf,MAAO,CANL,CAAC,UAAkBE,EAAiB,KAAK,OAAO,CAAC,EACjD,CAAC,iBAAkBC,EAAQ,KAAK,aAAa,CAAC,EAC9C,CAAC,cAAkBC,EAAW,KAAK,UAAU,CAAC,EAC9C,CAAC,QAAkBC,EAAM,KAAK,KAAK,CAAC,CAG/B,CAAA,CACJ,QAAQ,EAAGJ,KAAWA,CAAK,CAAC,CAC5B,KAAK,CAACK,EAAUL,KAAW,GAAGK,EAAS,IAAIL,EAAM,EAAE,CAAC,CACpD,KAAK,GAAG,CACb,CAGA,QAAS,CAMP,IAAMF,EAAM,KAAK,gBAAgB,KAAK,EAAE,GAAK,KACvCQ,EAAS,KAAK,gBAAgB,KAAK,WAAW,GAAKR,EACnDS,EAAU,SAAS,cAAcT,CAAG,EAC1C,EAAQ,UAAY,cAAcQ,IAC9B,KAAK,WAAWC,EAAQ,aAAa,aAAc,KAAK,SAAS,EAErE,IAAMC,EAAS,KAAK,eAAe,EAInC,OAHIA,GAAQD,EAAQ,aAAa,QAASC,CAAM,EAEhD,EAAQ,UAAY,gBACb,CAAI,GAAGD,GAChB,C,OAGgB,KAAA,OAAA,CAAChB,CAAU,C,CAC7B,EA/EGC,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,KAAA,IAAA,EAAA,EAaxCH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,cAAA,IAAA,EAAA,EAEnEH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAV,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,gBAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,aAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAzB3B,EAAAH,EAAA,CAAAiB,EAAc,MAAM,CAAA,EAAAd,CAAA,E"}
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** Styled entirely from design tokens — see npm run lint:tokens. */
|
|
3
|
-
export const helpTextCSS = css `
|
|
4
|
-
:host { display: block; margin-top: var(--form-help-text-default-marginTop); }
|
|
5
|
-
|
|
6
|
-
p {
|
|
7
|
-
margin: 0;
|
|
8
|
-
font-family: var(--form-help-text-default-fontFamily);
|
|
9
|
-
font-size: var(--form-help-text-default-fontSize);
|
|
10
|
-
font-weight: var(--form-help-text-default-fontWeight);
|
|
11
|
-
line-height: var(--form-help-text-default-lineHeight);
|
|
12
|
-
letter-spacing: var(--form-help-text-default-letterSpacing);
|
|
13
|
-
color: var(--form-help-text-default-color);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([tone='error']) p { color: var(--form-help-text-error-color); }
|
|
17
|
-
:host([tone='success']) p { color: var(--form-help-text-success-color); }
|
|
18
|
-
`;
|
|
19
|
-
export default helpTextCSS;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{margin-top:var(--form-help-text-default-marginTop);display:block}p{font-family:var(--form-help-text-default-fontFamily);font-size:var(--form-help-text-default-fontSize);font-weight:var(--form-help-text-default-fontWeight);line-height:var(--form-help-text-default-lineHeight);letter-spacing:var(--form-help-text-default-letterSpacing);color:var(--form-help-text-default-color);margin:0}:host([tone=error]) p{color:var(--form-help-text-error-color)}:host([tone=success]) p{color:var(--form-help-text-success-color)}`;export{t as default,t as helpTextCSS};
|
|
20
2
|
//# sourceMappingURL=help-text.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-text.css.js","
|
|
1
|
+
{"version":3,"file":"help-text.css.js","names":["helpTextCSS"],"sources":["../../../../src/components/help-text/help-text.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const helpTextCSS = css`\n :host { display: block; margin-top: var(--form-help-text-default-marginTop); }\n\n p {\n margin: 0;\n font-family: var(--form-help-text-default-fontFamily);\n font-size: var(--form-help-text-default-fontSize);\n font-weight: var(--form-help-text-default-fontWeight);\n line-height: var(--form-help-text-default-lineHeight);\n letter-spacing: var(--form-help-text-default-letterSpacing);\n color: var(--form-help-text-default-color);\n }\n\n :host([tone='error']) p { color: var(--form-help-text-error-color); }\n :host([tone='success']) p { color: var(--form-help-text-success-color); }\n`;\n\nexport default helpTextCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAc,CAAG,0gB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
3
|
type Tone = 'default' | 'success' | 'error';
|
|
4
4
|
export declare class BdHelpText extends LitElement {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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, nothing } 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 { helpTextCSS } from "./help-text.css.js";
|
|
13
|
-
let BdHelpText = class BdHelpText extends LitElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.tone = 'default';
|
|
17
|
-
}
|
|
18
|
-
static { this.styles = [helpTextCSS]; }
|
|
19
|
-
render() {
|
|
20
|
-
return html `
|
|
21
|
-
<p role=${this.tone === 'error' ? 'alert' : nothing}><slot></slot></p>
|
|
22
|
-
`;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
__decorate([
|
|
26
|
-
property({ type: String, reflect: true })
|
|
27
|
-
], BdHelpText.prototype, "tone", void 0);
|
|
28
|
-
BdHelpText = __decorate([
|
|
29
|
-
defineElement('bd-help-text')
|
|
30
|
-
], BdHelpText);
|
|
31
|
-
export { BdHelpText };
|
|
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 n from"./help-text.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends r{constructor(...e){super(...e),this.tone=`default`}static{this.styles=[n]}render(){return i`
|
|
2
|
+
<p role=${this.tone===`error`?`alert`:a}><slot></slot></p>
|
|
3
|
+
`}};t([o({type:String,reflect:!0})],s.prototype,`tone`,void 0),s=t([e(`bd-help-text`)],s);export{s as BdHelpText};
|
|
32
4
|
//# sourceMappingURL=help-text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-text.js","
|
|
1
|
+
{"version":3,"file":"help-text.js","names":["_decorate","__decorate","helpTextCSS","BdHelpText","LitElement","_args","nothing","property","defineElement"],"sources":["../../../../src/components/help-text/help-text.ts"],"sourcesContent":["import { LitElement, html, nothing } 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 { helpTextCSS } from './help-text.css.ts';\n\ntype Tone = 'default' | 'success' | 'error';\n\n@defineElement('bd-help-text')\nexport class BdHelpText extends LitElement {\n static styles = [helpTextCSS];\n\n @property({ type: String, reflect: true })\n tone: Tone = 'default';\n\n render() {\n return html`\n <p role=${this.tone === 'error' ? 'alert' : nothing}><slot></slot></p>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-help-text': BdHelpText;\n }\n}\n"],"mappings":"A,4SAUO,IAAMG,EAAN,cAAyBC,CAAW,C,8BAI5B,KAAA,KAAA,S,QAHG,KAAA,OAAA,CAACF,CAAW,C,CAK5B,QAAS,CACP,MAAO,EAAI;gBACC,KAAK,OAAS,QAAU,QAAUI,EAAQ;KAExD,CACF,EARGN,EAAA,CAAAO,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAJ,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ1C,EAAAH,EAAA,CAAAQ,EAAc,cAAc,CAAA,EAAAL,CAAA,E"}
|