@repobit/dex-system-design 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +16 -5
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.css.js","sourceRoot":"","sources":["../../../../src/components/button/button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;;;;;;;;GASG;AACH,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAwSP,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAuItB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+YhC,CAAC","sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"../shared/token-scales.ts\";\n\n/**\n * Styled entirely from src/tokens/tokens.ts — see CLAUDE.md, \"The foundation\n * rule\". Every measurement was matched to the token that already carries the\n * ds-button value; nothing was copied across as a literal.\n *\n * The --button-* properties below are component-local semantic aliases, not\n * design tokens. Declaring them on :host is deliberate: outer-tree rules beat\n * :host, so a page can still theme a button with\n * `bd-button { --bd-button-primary-bg: … }`.\n */\nexport default css`\n :host {\n display: inline-flex;\n\n /* Component-local aliases, not design tokens. Each defaults to the\n --button-* token that carries the system-wide answer, so there are two\n places to change a button and they do different jobs: set the token on\n :root to move every button in the document, or set the alias on the\n bd-button element to move one.\n\n The alias is also what surface=\"dark\" switches further down, which is\n why it stays even now that the tokens behind it are live. */\n\n /* ---- primary: blue fill ------------------------------------------- */\n --bd-button-primary-bg: var(--button-primary-background-default);\n --bd-button-primary-bg-hover: var(--button-primary-background-hover);\n --bd-button-primary-bg-active: var(--button-primary-background-active);\n --bd-button-primary-text: var(--button-primary-text-default);\n\n /* ---- secondary: near-black fill ----------------------------------- */\n --bd-button-secondary-bg: var(--button-secondary-background-default);\n --bd-button-secondary-bg-hover: var(--button-secondary-background-hover);\n --bd-button-secondary-bg-active: var(--button-secondary-background-active);\n --bd-button-secondary-text: var(--button-secondary-text-default);\n\n /* ---- tertiary: blue outline --------------------------------------- */\n --bd-button-tertiary-text: var(--button-tertiary-text-default);\n --bd-button-tertiary-border: var(--button-tertiary-border-default);\n --bd-button-tertiary-bg-hover: var(--button-tertiary-background-hover);\n --bd-button-tertiary-text-hover: var(--button-tertiary-text-hover);\n --bd-button-tertiary-border-hover: var(--button-tertiary-border-hover);\n --bd-button-tertiary-bg-active: var(--button-tertiary-background-active);\n --bd-button-tertiary-text-active: var(--button-tertiary-text-active);\n\n /* ---- ghost: dark outline ------------------------------------------ */\n --bd-button-ghost-text: var(--button-ghost-text-default);\n --bd-button-ghost-border: var(--button-ghost-border-default);\n --bd-button-ghost-bg-hover: var(--button-ghost-background-hover);\n --bd-button-ghost-text-hover: var(--button-ghost-text-hover);\n --bd-button-ghost-bg-active: var(--button-ghost-background-active);\n --bd-button-ghost-text-active: var(--button-ghost-text-active);\n\n /* ---- accent: red fill --------------------------------------------- */\n --bd-button-accent-bg: var(--button-accent-background-default);\n --bd-button-accent-bg-hover: var(--button-accent-background-hover);\n --bd-button-accent-bg-active: var(--button-accent-background-active);\n --bd-button-accent-text: var(--button-accent-text-default);\n\n /* ---- white and outline-white: fixed presets for a coloured banner --\n They ignore surface on purpose; see the note on VARIANTS in button.ts. */\n --bd-button-white-bg: var(--button-white-background-default);\n --bd-button-white-bg-hover: var(--button-white-background-hover);\n --bd-button-white-bg-active: var(--button-white-background-active);\n --bd-button-white-text: var(--button-white-text-default);\n\n --bd-button-outline-white-text: var(--button-outline-white-text-default);\n --bd-button-outline-white-border: var(--button-outline-white-border-default);\n --bd-button-outline-white-bg-hover: var(--button-outline-white-background-hover);\n --bd-button-outline-white-bg-active: var(--button-outline-white-background-active);\n\n /* ---- disabled, shared across every variant ----------------------- */\n --bd-button-disabled-bg: var(--button-disabled-backgroundColor);\n --bd-button-disabled-text: var(--button-disabled-color);\n --bd-button-disabled-border: var(--button-disabled-borderColor);\n\n /* accent carries no ring on a light page; on a dark one it needs a\n boundary, so the value is switched rather than the rule */\n --bd-button-accent-ring: var(--button-accent-ring-default);\n\n /* the focus ring is switched the same way: surface=\"dark\" swaps the blue\n outline for a white one. white and outline-white do not read this; see\n FOCUS. */\n --bd-button-focus-ring: var(--button-shared-focus-outline);\n\n --bd-button-border-width: var(--border-width-2);\n }\n\n /* ============================================\n WIDTH\n --bd-button-width is how wide the button is, and it is the container's\n to set: on the element, or from a ::slotted() rule, which is the one\n thing a component holding a slotted button can reach. bd-anchor-nav and\n bd-bento-item run their CTA full width on a phone this way, where they\n used to listen to the window and write fullwidth on the page's own\n element. Unset, the button hugs its label as before. fullwidth and align\n still win -- :where() gives the inner rule no weight -- and an icon-only\n circle ignores it, as it ignores fullwidth.\n ============================================ */\n :host(:not([icon-only])) {\n width: var(--bd-button-width, auto);\n }\n\n :where(.button:not(.button--icon-only)) {\n width: var(--bd-button-width, auto);\n }\n\n /* ============================================\n ALIGNMENT\n ============================================ */\n :host([align=\"center\"]) {\n display: flex;\n justify-content: center;\n width: 100%;\n }\n\n :host([align=\"right\"]) {\n display: flex;\n justify-content: flex-end;\n width: 100%;\n }\n\n :host([align=\"left\"]) {\n display: inline-flex;\n justify-content: flex-start;\n }\n\n :host([fullwidth]) {\n display: block;\n width: 100%;\n }\n\n :host([align=\"center\"][fullwidth]) .button,\n :host([align=\"right\"][fullwidth]) .button {\n width: 100%;\n }\n\n .max--width {\n width: 100%;\n display: flex;\n }\n\n /* ============================================\n FOCUS\n The design specifies no focus state, but 2.4.7 requires one.\n\n The ring is an outline held 2px off the control, and the 2px between is\n left transparent, so it is whatever surface the button sits on. That is\n the one thing code can do here that Figma cannot, and it is why the two\n differ. Figma builds a ring from spread shadows, every band of which is a\n painted colour, so its library paints the gap and keeps one ring per\n surface: focus/ring-primary on light, focus/ring-inverse on dark and\n brand. Painted in code, that gap is what went wrong twice: a white band\n merged into a white fill on surface=\"dark\", and the neutral-900 band\n that replaced it drew a black outline round every button on a brand\n hero. A transparent gap cannot do either, on any surface.\n\n So only the colour switches: blue on light, white under surface=\"dark\",\n which covers a brand hero and a neutral one alike; the numbers are on\n --focus-outline-traditional. Every variant takes the same ring, ghost\n included. An outline is also kept in forced-colors mode, where a\n box-shadow ring is not drawn at all.\n\n The rule leaves box-shadow alone, so an outlined variant's own boundary\n in --bd-button-edge stays put while focused.\n\n This used to be driven from JavaScript: two requestAnimationFrame hops\n checked :focus-visible and set a data attribute the CSS then styled.\n :focus-visible does that natively. There is no :focus { outline: none }\n beside it: the browser's own ring is a :focus-visible ring too, so a\n pointer focus never drew one, and the rule below replaces it.\n ============================================ */\n .button:focus-visible {\n outline: var(--bd-button-focus-ring);\n outline-offset: var(--button-shared-focus-outlineOffset);\n }\n\n /* white and outline-white are presets for a coloured banner and ignore\n surface, so they take the white ring on their own: 4.53:1 on blue-500,\n 7.95:1 at the light end of the banner gradient. A blue ring there was\n 2.38:1, and 1.75:1 at that end. */\n .button--white:focus-visible,\n .button--outline-white:focus-visible {\n outline: var(--focus-outline-traditional-inverse);\n }\n\n a.button {\n text-decoration: none;\n }\n\n /* ============================================\n SHARED\n ============================================ */\n .button,\n .bd-contact-btn {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n text-decoration: none;\n border: none;\n cursor: pointer;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-control-label-large-fontWeight);\n line-height: var(--typography-control-label-large-lineHeight);\n vertical-align: middle;\n box-sizing: border-box;\n\n /* The variant's own boundary, held in a custom property so each state can\n switch it. It was introduced while the focus ring was a box-shadow, so\n the ring could COMPOSE with it: box-shadow is a single list, not\n additive, and .button:focus-visible (0,2,0) outranks .button--ghost\n (0,1,0) -- so a focus rule that declared box-shadow directly erased the\n border of every outlined variant, and a focused ghost button read as a\n tertiary one. The ring is an outline now and does not touch box-shadow;\n a focus rule that goes back to declaring it brings that defect back. */\n --bd-button-edge: 0 0 0 0 transparent;\n box-shadow: var(--bd-button-edge);\n\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth),\n box-shadow var(--transition-duration-normal) var(--transition-easing-smooth),\n color var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n /* bd-contact-button has no variant, so it would inherit no colour at all */\n .button.bd-contact-btn {\n background-color: transparent;\n color: var(--color-text-brand);\n gap: var(--spacing-8);\n\n /* Same inset bd-back carries, and for the same reason. Without it this\n control was a bare line box measuring 159x20 -- a 20px tall target\n against the 24x24 WCAG 2.5.8 asks of anything that is not inline in a\n sentence, so 4px short, and a standalone CTA has no exception to claim.\n It also left the focus ring sitting on the glyphs' ascenders.\n\n bd-back is the same shape of control -- text, a trailing mark, no fill --\n and already answers this with 12px 16px, which takes a 16px line to about\n 44px: the same height bd-button reaches through its own padding. Reading\n the inset off the sibling rather than picking a number is what keeps the\n two text CTAs in step. */\n padding: var(--spacing-12) var(--spacing-16);\n\n /* This control takes no size class -- it is a text CTA with a trailing\n arrow, not a filled button -- so it arrived with no radius at all, and\n the shared ring drew SQUARE corners around a bare line box while every\n other button's ring followed a curve.\n\n --button-medium-borderRadius, not --focus-outline-radius. The focus\n token is the documented default for an element with NO radius, and that\n is what this rule used first -- but with the inset above the control is\n now a 44px box standing next to bd-button at the same height, and the\n focus token is --radius-sm where medium buttons are --radius-md. Four\n pixels against six is small, and it is visible when they sit in a row.\n Matching the size band this control actually occupies is the better\n answer than matching the rule for controls that occupy none.\n\n Declared unconditionally rather than under :focus-visible because the\n control draws no background and no border at rest, so the radius is\n invisible until the ring needs it. */\n border-radius: var(--button-medium-borderRadius);\n }\n\n /* ============================================\n SIZE\n Height is left to padding and line-height rather than pinned with a\n min-height, which lands within half a pixel of the design: 33.5 / 44 /\n 54.5 against 34 / 45 / 55. The previous rules also carried hardcoded\n min-widths (115px, 150px) that the design does not ask for at all.\n\n The radius comes from --button-*-borderRadius rather than --radius-*\n directly. Same values, so nothing moves here — but a button and a field\n of the same size sit in the same form row, and reading both from their\n own size-matched alias is what keeps them in step. Spelled as raw scale\n steps on one side and aliases on the other, they had drifted a step apart\n at sm and md without either side looking wrong on its own.\n ============================================ */\n .button--small {\n padding: var(--button-small-padding);\n font-size: var(--button-small-fontSize);\n border-radius: var(--button-small-borderRadius);\n gap: var(--button-small-gap);\n }\n\n .button--medium {\n padding: var(--button-medium-padding);\n font-size: var(--button-medium-fontSize);\n border-radius: var(--button-medium-borderRadius);\n gap: var(--button-medium-gap);\n }\n\n .button--large {\n padding: var(--button-large-padding);\n font-size: var(--button-large-fontSize);\n border-radius: var(--button-large-borderRadius);\n gap: var(--button-large-gap);\n }\n\n /* No size attribute: md on phone and tablet, lg on desktop. The same\n declarations as the two bands above, switched at lg so it lands on the\n grid's own desktop step rather than a width of its own. */\n .button--responsive {\n padding: var(--button-medium-padding);\n font-size: var(--button-medium-fontSize);\n border-radius: var(--button-medium-borderRadius);\n gap: var(--button-medium-gap);\n }\n @media ${unsafeCSS(above(\"lg\"))} {\n .button--responsive {\n padding: var(--button-large-padding);\n font-size: var(--button-large-fontSize);\n border-radius: var(--button-large-borderRadius);\n gap: var(--button-large-gap);\n }\n }\n\n .button--bold {\n /* no role: the class is the semantic. .button--bold says what this\n declaration does, so a role naming it would only restate the class --\n there is no text-content type here for a role to describe, just an\n emphasis the caller asked for by name. The same holds for a weight\n driven by an active or selected state: that is a UI state, the category\n CLAUDE.md keeps apart from type when it says a focus ring is never\n expressed by swapping a border colour. This is the argument for every\n \"no role: state or modifier\" marker in the package -- the others point\n here rather than restating it. */\n font-weight: var(--typography-fontWeight-semibold);\n }\n\n /* shape=\"rounded\". After the size rules on purpose: same specificity, so\n source order is what lets the shape replace the size band's corner. */\n .button--rounded {\n border-radius: var(--shape-radius-3xl);\n }\n\n /* ============================================\n HOVER ARROW — accent, unless no-arrow\n The button keeps its width: the label slides toward the inline start\n and the arrow, absolutely positioned at the end, fades in where the\n label was. --_dir turns both slides round on a right-to-left page, the\n multiplier bd-pagination-dots uses; the arrow itself mirrors there (see\n icon-element.ts), so it still points the way the label moved from.\n ============================================ */\n .button__label {\n display: inline-block;\n }\n\n .button--with-arrow {\n --_dir: 1;\n position: relative;\n overflow: hidden;\n }\n\n :host(:dir(rtl)) .button--with-arrow {\n --_dir: -1;\n }\n\n .button--with-arrow .button__label {\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n .button--with-arrow .button__arrow {\n position: absolute;\n top: 50%;\n inset-inline-end: var(--spacing-12);\n opacity: 0;\n transform: translate(calc(-1 * var(--_dir) * var(--spacing-8)), -50%);\n transition:\n opacity var(--transition-duration-normal) var(--transition-easing-smooth),\n transform var(--transition-duration-normal) var(--transition-easing-smooth);\n pointer-events: none;\n }\n\n .button--with-arrow:focus-visible .button__label {\n transform: translateX(calc(-1 * var(--_dir) * var(--spacing-12)));\n }\n\n .button--with-arrow:focus-visible .button__arrow {\n opacity: 1;\n transform: translate(var(--spacing-0), -50%);\n }\n\n /* Only where a pointer can hover. A touch screen has no real hover, and a\n tap left the arrow stuck out; this was a (hover: none) block undoing the\n hover rules after the fact, and asking first is the same thing said once. */\n @media (hover: hover) {\n .button--with-arrow:hover .button__label {\n transform: translateX(calc(-1 * var(--_dir) * var(--spacing-12)));\n }\n\n .button--with-arrow:hover .button__arrow {\n opacity: 1;\n transform: translate(var(--spacing-0), -50%);\n }\n }\n\n /* ============================================\n SHAPE — icon-only\n A circle around one icon. The diameter is not pinned, for the same reason\n the labelled height is not: equal padding on every side plus the icon step\n gives 8+16+8 = 32, 12+20+12 = 44 and 16+24+16 = 56. Only md sits level\n with a labelled button beside it: the labelled heights are 33.5, 44 and\n 54.5, so sm is 1.5px shorter and lg 1.5px taller. Both differences come\n from the label's line box, which an icon does not have, and closing them\n would need an off-scale padding. sm is below the 44px target, exactly as\n the labelled sm is.\n\n The padding stays on the spacing scale, which is rem, while the icon is on\n the icon scale, which is px. So when a reader enlarges their text the\n circle grows and the glyph does not -- the target gets bigger for the\n reader a bigger target helps, and the shape stays round because the\n padding is equal on both axes.\n\n The compound selectors outrank the size classes whatever the source\n order, and they carry the radius too, so a size class can never put\n its own corner back. The slotted rule sizes a caller's icon to the step\n even if it was given a size of its own: a 20px glyph in a 56px circle\n reads as the wrong control, not as a choice.\n ============================================ */\n .button--icon-only {\n line-height: var(--typography-lineHeight-none);\n }\n .button--icon-only.button--small {\n --bd-button-icon-size: var(--icon-sm-size);\n padding: var(--spacing-8);\n border-radius: var(--radius-full);\n }\n .button--icon-only.button--medium {\n --bd-button-icon-size: var(--icon-md-size);\n padding: var(--spacing-12);\n border-radius: var(--radius-full);\n }\n .button--icon-only.button--large {\n --bd-button-icon-size: var(--icon-lg-size);\n padding: var(--spacing-16);\n border-radius: var(--radius-full);\n }\n .button--icon-only.button--responsive {\n --bd-button-icon-size: var(--icon-md-size);\n padding: var(--spacing-12);\n border-radius: var(--radius-full);\n }\n @media ${unsafeCSS(above(\"lg\"))} {\n .button--icon-only.button--responsive {\n --bd-button-icon-size: var(--icon-lg-size);\n padding: var(--spacing-16);\n }\n }\n /* the default arrow is fallback content, not slotted, so ::slotted below\n never reaches it; it takes the step through bd-icon's own property */\n .button__icon {\n --bd-icon-size: var(--bd-button-icon-size);\n }\n .button--icon-only > ::slotted(*) {\n height: var(--bd-button-icon-size);\n }\n /* loading swaps the icon for the spinner, so the spinner takes the icon's\n box rather than its em size, and the circle does not shrink while busy */\n .button--icon-only .spinner {\n width: var(--bd-button-icon-size);\n height: var(--bd-button-icon-size);\n }\n\n /* ============================================\n VARIANT — primary\n ============================================ */\n .button--primary {\n background-color: var(--bd-button-primary-bg);\n color: var(--bd-button-primary-text);\n }\n .button--primary:hover {\n background-color: var(--bd-button-primary-bg-hover);\n }\n .button--primary:active {\n background-color: var(--bd-button-primary-bg-active);\n }\n\n /* ============================================\n VARIANT — secondary\n ============================================ */\n .button--secondary {\n background-color: var(--bd-button-secondary-bg);\n color: var(--bd-button-secondary-text);\n }\n .button--secondary:hover {\n background-color: var(--bd-button-secondary-bg-hover);\n }\n .button--secondary:active {\n background-color: var(--bd-button-secondary-bg-active);\n }\n\n /* ============================================\n VARIANT — tertiary (blue outline)\n ============================================ */\n .button--tertiary {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-tertiary-border);\n color: var(--bd-button-tertiary-text);\n }\n .button--tertiary:hover {\n background-color: var(--bd-button-tertiary-bg-hover);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-tertiary-border-hover);\n color: var(--bd-button-tertiary-text-hover);\n }\n .button--tertiary:active {\n background-color: var(--bd-button-tertiary-bg-active);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-tertiary-bg-active);\n color: var(--bd-button-tertiary-text-active);\n }\n\n /* ============================================\n VARIANT — ghost (dark outline)\n ============================================ */\n .button--ghost {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-ghost-border);\n color: var(--bd-button-ghost-text);\n }\n .button--ghost:hover {\n background-color: var(--bd-button-ghost-bg-hover);\n color: var(--bd-button-ghost-text-hover);\n }\n .button--ghost:active {\n background-color: var(--bd-button-ghost-bg-active);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-ghost-bg-active);\n color: var(--bd-button-ghost-text-active);\n }\n\n /* ============================================\n VARIANT — accent\n ============================================ */\n .button--accent {\n background-color: var(--bd-button-accent-bg);\n color: var(--bd-button-accent-text);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-accent-ring);\n }\n .button--accent:hover {\n background-color: var(--bd-button-accent-bg-hover);\n }\n .button--accent:active {\n background-color: var(--bd-button-accent-bg-active);\n }\n\n /* ============================================\n SURFACE — dark\n\n For a hero or any panel with a full background colour. On a light page\n every variant passes; on a coloured one 21 of 25 variant/surface pairings\n failed, because tertiary and ghost put their ink straight onto the page\n and primary is literally the same colour as a blue-500 hero (1.00:1).\n\n The design carries no on-dark set — its axes are Size, Variant and State\n only — so these values are derived from our own palette rather than read\n off a spec, and every one is measured against blue-500, blue-600,\n blue-700, neutral-900 and neutral-950. They need a designer's sign-off.\n\n Two notes on what changed shape rather than just colour: ghost drops its\n ring here, because a white ring would make it identical to tertiary, and\n dropping it is what \"ghost\" conventionally means anyway. accent keeps its\n red so the conversion signal survives, and gains a white ring to give it\n a boundary against blue.\n\n WHY THE INK IS A ROLE AND THE GROUNDS ARE NOT, which is what the inline\n no role: markers below point at. check:color-coverage gained sight of\n these declarations on 2026-09-15 and classified twenty-three of them; a\n role of the right CATEGORY exists at the value for nineteen, and exactly\n nine survive the second question, which is whether the role's JOB is this\n declaration's job.\n\n The nine that do are all ink, and each one matches a role's own words.\n tertiary and ghost put their label straight onto the hero, and\n --color-text-inverse is defined as the high-emphasis ink on an inverse\n ground. Once a variant inverts and the label sits on the button's own\n light fill, it is ordinary ink again -- --color-text-primary -- or brand\n ink, --color-text-brand. disabled's label is a control the user cannot\n operate, which is --color-text-disabled's whole definition rather than a\n step on the hierarchy. Every one is value-identical, so nothing here\n renders differently.\n\n The grounds and hairlines have no role, and the reason is not scarcity.\n --color-surface-default carries this exact white, and its own theme\n clause in Foundations/Surfaces reads \"On dark it is the dark ground, not\n white\" -- so adopting it here would assert the opposite of what the\n declaration means. surface-subtle is a wash behind a group, not a press\n fill. surface-muted is a state surface and would fit primary's pressed\n step on value and nearly on job, but these three values are one ramp\n measured against the hero rather than three independent choices, and\n binding its last step to a role that can move on its own would break the\n relationship the measurement established. At neutral-700 and neutral-600\n there is no surface or border role at all, and there is no solid white\n border role anywhere: --color-border-container-inverse is white at 12%.\n\n So the missing vocabulary is nameable, and it is two entries: a control\n fill on an inverse ground, and a solid hairline on an inverse ground.\n Adding either is a vocabulary decision for the same designer pass this\n block is already waiting on, and token-scales.ts is explicit that one\n consumer is not enough to name a role. Recorded, not taken.\n ============================================ */\n :host([surface='dark']) {\n /* white fill, brand label — the strongest thing on a coloured hero */\n --bd-button-primary-bg: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-primary-bg-hover: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-primary-bg-active: var(--color-neutral-100); /* no role: on-dark ground; see the block note */\n --bd-button-primary-text: var(--color-text-brand);\n\n /* neutral-100 rather than a lighter step: it is the lightest fill that\n still clears 3:1 against a blue-500 hero while staying distinguishable\n from primary's pure white */\n --bd-button-secondary-bg: var(--color-neutral-100); /* no role: on-dark ground; see the block note */\n --bd-button-secondary-bg-hover: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-secondary-bg-active: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-secondary-text: var(--color-text-primary);\n\n /* the outlined one: white ring, white label, inverting on hover */\n --bd-button-tertiary-text: var(--color-text-inverse);\n --bd-button-tertiary-border: var(--color-neutral-0); /* no role: on-dark hairline; see the block note */\n --bd-button-tertiary-bg-hover: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-tertiary-text-hover: var(--color-text-brand);\n --bd-button-tertiary-border-hover: var(--color-neutral-0); /* no role: on-dark hairline; see the block note */\n --bd-button-tertiary-bg-active: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-tertiary-text-active: var(--color-text-brand);\n\n /* no ring at all, so it stays distinct from tertiary */\n --bd-button-ghost-text: var(--color-text-inverse);\n --bd-button-ghost-border: transparent;\n --bd-button-ghost-bg-hover: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-ghost-text-hover: var(--color-text-primary);\n --bd-button-ghost-bg-active: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-ghost-text-active: var(--color-text-primary);\n\n /* unchanged red, plus a boundary against the hero */\n --bd-button-accent-ring: var(--color-neutral-0);\n\n /* a white ring, the one colour that clears 3:1 on a brand hero and a\n neutral one alike, which this surface has to cover without knowing\n which it is on. The gap inside it is the hero itself; see FOCUS. */\n --bd-button-focus-ring: var(--focus-outline-traditional-inverse);\n\n /* muted downward instead of upward: a neutral-100 fill would read as an\n active control on a dark hero. Exempt from contrast under WCAG 1.4.3. */\n --bd-button-disabled-bg: var(--color-neutral-700); /* no role: on-dark ground; see the block note */\n --bd-button-disabled-text: var(--color-text-disabled);\n --bd-button-disabled-border: var(--color-neutral-600); /* no role: on-dark hairline; see the block note */\n\n }\n\n /* ============================================\n SURFACE — brand\n\n For a band filled with the brand itself, --color-surface-brand. On\n Bitdefender that band is blue and surface=\"dark\" already reads; on a\n partner whose brand is light, dark's white fills and white rings are\n exactly what cannot be seen.\n\n So this surface is built from one pair only: the brand's ink,\n --color-brand-on-fill, and the brand fill, --color-action-primary. A theme\n must clear 4.5:1 between those two (verify-brands' ink floor), so every\n label and every boundary below inherits that floor whichever way the\n brand runs -- white ink on a dark brand, dark ink on a light one. Nothing\n here may mix the two into a third colour: a tint moves toward one of them\n and loses contrast against it, and which one depends on the brand.\n\n That is also why the states swap the pair rather than tint it. primary\n is the ink fill with the brand as its label, and on hover and press it\n becomes the ink outline; tertiary is the ink outline and inverts to the\n ink fill. ghost has no ring and inverts the same way. secondary and\n accent keep their own fills, whose labels are not the brand's to move,\n and gain a ring in the ink so their edge against the band is the same\n floor. Disabled is exempt from contrast (WCAG 1.4.3) and is the ink at\n reduced strength.\n\n On Bitdefender this differs from surface=\"dark\" on purpose in two places:\n primary's label is the band's blue-500 (4.53:1 on white) rather than\n brand text, and its hover is the outline rather than a neutral-50 fill.\n Both are what a theme-independent surface can promise; dark's choices\n only hold while the brand is dark.\n ============================================ */\n :host([surface='brand']) {\n --bd-button-primary-bg: var(--color-brand-on-fill);\n --bd-button-primary-text: var(--color-action-primary);\n\n --bd-button-tertiary-text: var(--color-brand-on-fill);\n --bd-button-tertiary-border: var(--color-brand-on-fill);\n --bd-button-tertiary-bg-hover: var(--color-brand-on-fill);\n --bd-button-tertiary-text-hover: var(--color-action-primary);\n --bd-button-tertiary-border-hover: var(--color-brand-on-fill);\n --bd-button-tertiary-bg-active: var(--color-brand-on-fill);\n --bd-button-tertiary-text-active: var(--color-action-primary);\n\n --bd-button-ghost-text: var(--color-brand-on-fill);\n --bd-button-ghost-border: transparent;\n --bd-button-ghost-bg-hover: var(--color-brand-on-fill);\n --bd-button-ghost-text-hover: var(--color-action-primary);\n --bd-button-ghost-bg-active: var(--color-brand-on-fill);\n --bd-button-ghost-text-active: var(--color-action-primary);\n\n --bd-button-accent-ring: var(--color-brand-on-fill);\n\n --bd-button-focus-ring: var(--focus-outline-traditional-on-brand);\n\n --bd-button-disabled-bg: color-mix(in srgb, var(--color-brand-on-fill) 20%, transparent);\n --bd-button-disabled-text: color-mix(in srgb, var(--color-brand-on-fill) 55%, transparent);\n --bd-button-disabled-border: color-mix(in srgb, var(--color-brand-on-fill) 40%, transparent);\n }\n\n :host([surface='brand']) .button--primary:hover,\n :host([surface='brand']) .button--primary:active {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--color-brand-on-fill);\n color: var(--color-brand-on-fill);\n }\n\n /* not when disabled: the state rule clears the edge, and this is heavier */\n :host([surface='brand']) .button--secondary:not(:disabled, [aria-disabled=\"true\"]) {\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--color-brand-on-fill);\n }\n\n /* ============================================\n STATE — disabled\n Filled variants go grey; outlined ones keep a transparent fill and take\n the subtle border. Contrast is exempt here under WCAG 1.4.3.\n ============================================ */\n .button:disabled,\n .button[aria-disabled=\"true\"] {\n cursor: not-allowed;\n pointer-events: none;\n background-color: var(--bd-button-disabled-bg);\n --bd-button-edge: 0 0 0 0 transparent;\n color: var(--bd-button-disabled-text);\n }\n\n .button--tertiary:disabled,\n .button--ghost:disabled,\n .button--tertiary[aria-disabled=\"true\"],\n .button--ghost[aria-disabled=\"true\"] {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-disabled-border);\n color: var(--bd-button-disabled-text);\n }\n\n /* ============================================\n STATE — loading\n The variant keeps its own colours, so the spinner is drawn in\n currentColor and sized in em to track the type scale — which is what the\n design's loading widths imply (they exceed the default by exactly one\n font-size plus the gap).\n ============================================ */\n .button--loading {\n cursor: progress;\n pointer-events: none;\n }\n\n .spinner {\n width: 1em;\n height: 1em;\n flex: none;\n box-sizing: border-box;\n border: var(--border-width-2) solid currentColor;\n border-top-color: transparent;\n border-radius: var(--radius-full);\n animation: bd-button-spin var(--transition-duration-slower)\n var(--transition-easing-linear) infinite;\n }\n\n @keyframes bd-button-spin {\n to { transform: rotate(360deg); }\n }\n\n /* The slot sits inside .button__label now, not directly in .button. */\n .button__label > ::slotted(*) {\n display: inline-block;\n text-align: center;\n }\n\n /* box-shadow is not rendered in forced-colors mode, which would leave the\n outlined variants with no visible boundary at all, so a real border comes\n back there. It costs 4px of height, which does not matter when the user\n agent is repainting everything anyway. */\n @media (forced-colors: active) {\n .button--tertiary,\n .button--ghost {\n border: var(--bd-button-border-width) solid currentColor;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .button,\n .bd-contact-btn,\n .button__label,\n .button__arrow {\n transition: none !important;\n }\n\n /* a spinner that cannot spin should still read as busy, so it pulses\n rather than freezing into a static broken ring */\n .spinner {\n animation: bd-button-pulse var(--transition-duration-slower)\n var(--transition-easing-smooth) infinite alternate;\n border-top-color: currentColor;\n }\n\n @keyframes bd-button-pulse {\n to { opacity: var(--opacity-pulse); }\n }\n }\n /* ============================================\n VARIANT — white and outline-white\n\n Fixed presets for a solid-colour banner, where even a surface=\"dark\"\n primary would sit too close in tone. They ignore surface on purpose —\n see the note on VARIANTS in button.ts.\n\n These two were appended below the stylesheet's last rule and unindented,\n and they hardcoded their colours instead of going through the aliases\n every other variant uses: 1.5px against the 2px border width the docs\n describe, #ffffff8c, and two rgba() whites. None of it could be rethemed\n and none of it was visible to the lint, which does not read 8-digit hex\n or rgba().\n ============================================ */\n .button--white {\n background-color: var(--bd-button-white-bg);\n color: var(--bd-button-white-text);\n }\n .button--white:hover {\n background-color: var(--bd-button-white-bg-hover);\n }\n .button--white:active {\n background-color: var(--bd-button-white-bg-active);\n }\n\n .button--outline-white {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-outline-white-border);\n color: var(--bd-button-outline-white-text);\n }\n .button--outline-white:hover {\n background-color: var(--bd-button-outline-white-bg-hover);\n }\n .button--outline-white:active {\n background-color: var(--bd-button-outline-white-bg-active);\n }\n`;\n"]}
|
|
1
|
+
{"version":3,"file":"button.css.js","names":["button_css_default"],"sources":["../../../../src/components/button/button.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/**\n * Styled entirely from src/tokens/tokens.ts — see CLAUDE.md, \"The foundation\n * rule\". Every measurement was matched to the token that already carries the\n * ds-button value; nothing was copied across as a literal.\n *\n * The --button-* properties below are component-local semantic aliases, not\n * design tokens. Declaring them on :host is deliberate: outer-tree rules beat\n * :host, so a page can still theme a button with\n * `bd-button { --bd-button-primary-bg: … }`.\n */\nexport default css`\n :host {\n display: inline-flex;\n\n /* Component-local aliases, not design tokens. Each defaults to the\n --button-* token that carries the system-wide answer, so there are two\n places to change a button and they do different jobs: set the token on\n :root to move every button in the document, or set the alias on the\n bd-button element to move one.\n\n The alias is also what surface=\"dark\" switches further down, which is\n why it stays even now that the tokens behind it are live. */\n\n /* ---- primary: blue fill ------------------------------------------- */\n --bd-button-primary-bg: var(--button-primary-background-default);\n --bd-button-primary-bg-hover: var(--button-primary-background-hover);\n --bd-button-primary-bg-active: var(--button-primary-background-active);\n --bd-button-primary-text: var(--button-primary-text-default);\n\n /* ---- secondary: near-black fill ----------------------------------- */\n --bd-button-secondary-bg: var(--button-secondary-background-default);\n --bd-button-secondary-bg-hover: var(--button-secondary-background-hover);\n --bd-button-secondary-bg-active: var(--button-secondary-background-active);\n --bd-button-secondary-text: var(--button-secondary-text-default);\n\n /* ---- tertiary: blue outline --------------------------------------- */\n --bd-button-tertiary-text: var(--button-tertiary-text-default);\n --bd-button-tertiary-border: var(--button-tertiary-border-default);\n --bd-button-tertiary-bg-hover: var(--button-tertiary-background-hover);\n --bd-button-tertiary-text-hover: var(--button-tertiary-text-hover);\n --bd-button-tertiary-border-hover: var(--button-tertiary-border-hover);\n --bd-button-tertiary-bg-active: var(--button-tertiary-background-active);\n --bd-button-tertiary-text-active: var(--button-tertiary-text-active);\n\n /* ---- ghost: dark outline ------------------------------------------ */\n --bd-button-ghost-text: var(--button-ghost-text-default);\n --bd-button-ghost-border: var(--button-ghost-border-default);\n --bd-button-ghost-bg-hover: var(--button-ghost-background-hover);\n --bd-button-ghost-text-hover: var(--button-ghost-text-hover);\n --bd-button-ghost-bg-active: var(--button-ghost-background-active);\n --bd-button-ghost-text-active: var(--button-ghost-text-active);\n\n /* ---- accent: red fill --------------------------------------------- */\n --bd-button-accent-bg: var(--button-accent-background-default);\n --bd-button-accent-bg-hover: var(--button-accent-background-hover);\n --bd-button-accent-bg-active: var(--button-accent-background-active);\n --bd-button-accent-text: var(--button-accent-text-default);\n\n /* ---- white and outline-white: fixed presets for a coloured banner --\n They ignore surface on purpose; see the note on VARIANTS in button.ts. */\n --bd-button-white-bg: var(--button-white-background-default);\n --bd-button-white-bg-hover: var(--button-white-background-hover);\n --bd-button-white-bg-active: var(--button-white-background-active);\n --bd-button-white-text: var(--button-white-text-default);\n\n --bd-button-outline-white-text: var(--button-outline-white-text-default);\n --bd-button-outline-white-border: var(--button-outline-white-border-default);\n --bd-button-outline-white-bg-hover: var(--button-outline-white-background-hover);\n --bd-button-outline-white-bg-active: var(--button-outline-white-background-active);\n\n /* ---- disabled, shared across every variant ----------------------- */\n --bd-button-disabled-bg: var(--button-disabled-backgroundColor);\n --bd-button-disabled-text: var(--button-disabled-color);\n --bd-button-disabled-border: var(--button-disabled-borderColor);\n\n /* accent carries no ring on a light page; on a dark one it needs a\n boundary, so the value is switched rather than the rule */\n --bd-button-accent-ring: var(--button-accent-ring-default);\n\n /* the focus ring is switched the same way: surface=\"dark\" swaps the blue\n outline for a white one. white and outline-white do not read this; see\n FOCUS. */\n --bd-button-focus-ring: var(--button-shared-focus-outline);\n\n --bd-button-border-width: var(--border-width-2);\n }\n\n /* ============================================\n WIDTH\n --bd-button-width is how wide the button is, and it is the container's\n to set: on the element, or from a ::slotted() rule, which is the one\n thing a component holding a slotted button can reach. bd-anchor-nav and\n bd-bento-item run their CTA full width on a phone this way, where they\n used to listen to the window and write fullwidth on the page's own\n element. Unset, the button hugs its label as before. fullwidth and align\n still win -- :where() gives the inner rule no weight -- and an icon-only\n circle ignores it, as it ignores fullwidth.\n ============================================ */\n :host(:not([icon-only])) {\n width: var(--bd-button-width, auto);\n }\n\n :where(.button:not(.button--icon-only)) {\n width: var(--bd-button-width, auto);\n }\n\n /* ============================================\n ALIGNMENT\n ============================================ */\n :host([align=\"center\"]) {\n display: flex;\n justify-content: center;\n width: 100%;\n }\n\n :host([align=\"right\"]) {\n display: flex;\n justify-content: flex-end;\n width: 100%;\n }\n\n :host([align=\"left\"]) {\n display: inline-flex;\n justify-content: flex-start;\n }\n\n :host([fullwidth]) {\n display: block;\n width: 100%;\n }\n\n :host([align=\"center\"][fullwidth]) .button,\n :host([align=\"right\"][fullwidth]) .button {\n width: 100%;\n }\n\n .max--width {\n width: 100%;\n display: flex;\n }\n\n /* ============================================\n FOCUS\n The design specifies no focus state, but 2.4.7 requires one.\n\n The ring is an outline held 2px off the control, and the 2px between is\n left transparent, so it is whatever surface the button sits on. That is\n the one thing code can do here that Figma cannot, and it is why the two\n differ. Figma builds a ring from spread shadows, every band of which is a\n painted colour, so its library paints the gap and keeps one ring per\n surface: focus/ring-primary on light, focus/ring-inverse on dark and\n brand. Painted in code, that gap is what went wrong twice: a white band\n merged into a white fill on surface=\"dark\", and the neutral-900 band\n that replaced it drew a black outline round every button on a brand\n hero. A transparent gap cannot do either, on any surface.\n\n So only the colour switches: blue on light, white under surface=\"dark\",\n which covers a brand hero and a neutral one alike; the numbers are on\n --focus-outline-traditional. Every variant takes the same ring, ghost\n included. An outline is also kept in forced-colors mode, where a\n box-shadow ring is not drawn at all.\n\n The rule leaves box-shadow alone, so an outlined variant's own boundary\n in --bd-button-edge stays put while focused.\n\n This used to be driven from JavaScript: two requestAnimationFrame hops\n checked :focus-visible and set a data attribute the CSS then styled.\n :focus-visible does that natively. There is no :focus { outline: none }\n beside it: the browser's own ring is a :focus-visible ring too, so a\n pointer focus never drew one, and the rule below replaces it.\n ============================================ */\n .button:focus-visible {\n outline: var(--bd-button-focus-ring);\n outline-offset: var(--button-shared-focus-outlineOffset);\n }\n\n /* white and outline-white are presets for a coloured banner and ignore\n surface, so they take the white ring on their own: 4.53:1 on blue-500,\n 7.95:1 at the light end of the banner gradient. A blue ring there was\n 2.38:1, and 1.75:1 at that end. */\n .button--white:focus-visible,\n .button--outline-white:focus-visible {\n outline: var(--focus-outline-traditional-inverse);\n }\n\n a.button {\n text-decoration: none;\n }\n\n /* ============================================\n SHARED\n ============================================ */\n .button,\n .bd-contact-btn {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n text-decoration: none;\n border: none;\n cursor: pointer;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-control-label-large-fontWeight);\n line-height: var(--typography-control-label-large-lineHeight);\n vertical-align: middle;\n box-sizing: border-box;\n\n /* The variant's own boundary, held in a custom property so each state can\n switch it. It was introduced while the focus ring was a box-shadow, so\n the ring could COMPOSE with it: box-shadow is a single list, not\n additive, and .button:focus-visible (0,2,0) outranks .button--ghost\n (0,1,0) -- so a focus rule that declared box-shadow directly erased the\n border of every outlined variant, and a focused ghost button read as a\n tertiary one. The ring is an outline now and does not touch box-shadow;\n a focus rule that goes back to declaring it brings that defect back. */\n --bd-button-edge: 0 0 0 0 transparent;\n box-shadow: var(--bd-button-edge);\n\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth),\n box-shadow var(--transition-duration-normal) var(--transition-easing-smooth),\n color var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n /* bd-contact-button has no variant, so it would inherit no colour at all */\n .button.bd-contact-btn {\n background-color: transparent;\n color: var(--color-text-brand);\n gap: var(--spacing-8);\n\n /* Same inset bd-back carries, and for the same reason. Without it this\n control was a bare line box measuring 159x20 -- a 20px tall target\n against the 24x24 WCAG 2.5.8 asks of anything that is not inline in a\n sentence, so 4px short, and a standalone CTA has no exception to claim.\n It also left the focus ring sitting on the glyphs' ascenders.\n\n bd-back is the same shape of control -- text, a trailing mark, no fill --\n and already answers this with 12px 16px, which takes a 16px line to about\n 44px: the same height bd-button reaches through its own padding. Reading\n the inset off the sibling rather than picking a number is what keeps the\n two text CTAs in step. */\n padding: var(--spacing-12) var(--spacing-16);\n\n /* This control takes no size class -- it is a text CTA with a trailing\n arrow, not a filled button -- so it arrived with no radius at all, and\n the shared ring drew SQUARE corners around a bare line box while every\n other button's ring followed a curve.\n\n --button-medium-borderRadius, not --focus-outline-radius. The focus\n token is the documented default for an element with NO radius, and that\n is what this rule used first -- but with the inset above the control is\n now a 44px box standing next to bd-button at the same height, and the\n focus token is --radius-sm where medium buttons are --radius-md. Four\n pixels against six is small, and it is visible when they sit in a row.\n Matching the size band this control actually occupies is the better\n answer than matching the rule for controls that occupy none.\n\n Declared unconditionally rather than under :focus-visible because the\n control draws no background and no border at rest, so the radius is\n invisible until the ring needs it. */\n border-radius: var(--button-medium-borderRadius);\n }\n\n /* ============================================\n SIZE\n Height is left to padding and line-height rather than pinned with a\n min-height, which lands within half a pixel of the design: 33.5 / 44 /\n 54.5 against 34 / 45 / 55. The previous rules also carried hardcoded\n min-widths (115px, 150px) that the design does not ask for at all.\n\n The radius comes from --button-*-borderRadius rather than --radius-*\n directly. Same values, so nothing moves here — but a button and a field\n of the same size sit in the same form row, and reading both from their\n own size-matched alias is what keeps them in step. Spelled as raw scale\n steps on one side and aliases on the other, they had drifted a step apart\n at sm and md without either side looking wrong on its own.\n ============================================ */\n .button--small {\n padding: var(--button-small-padding);\n font-size: var(--button-small-fontSize);\n border-radius: var(--button-small-borderRadius);\n gap: var(--button-small-gap);\n }\n\n .button--medium {\n padding: var(--button-medium-padding);\n font-size: var(--button-medium-fontSize);\n border-radius: var(--button-medium-borderRadius);\n gap: var(--button-medium-gap);\n }\n\n .button--large {\n padding: var(--button-large-padding);\n font-size: var(--button-large-fontSize);\n border-radius: var(--button-large-borderRadius);\n gap: var(--button-large-gap);\n }\n\n /* No size attribute: md on phone and tablet, lg on desktop. The same\n declarations as the two bands above, switched at lg so it lands on the\n grid's own desktop step rather than a width of its own. */\n .button--responsive {\n padding: var(--button-medium-padding);\n font-size: var(--button-medium-fontSize);\n border-radius: var(--button-medium-borderRadius);\n gap: var(--button-medium-gap);\n }\n @media ${unsafeCSS(above(\"lg\"))} {\n .button--responsive {\n padding: var(--button-large-padding);\n font-size: var(--button-large-fontSize);\n border-radius: var(--button-large-borderRadius);\n gap: var(--button-large-gap);\n }\n }\n\n .button--bold {\n /* no role: the class is the semantic. .button--bold says what this\n declaration does, so a role naming it would only restate the class --\n there is no text-content type here for a role to describe, just an\n emphasis the caller asked for by name. The same holds for a weight\n driven by an active or selected state: that is a UI state, the category\n CLAUDE.md keeps apart from type when it says a focus ring is never\n expressed by swapping a border colour. This is the argument for every\n \"no role: state or modifier\" marker in the package -- the others point\n here rather than restating it. */\n font-weight: var(--typography-fontWeight-semibold);\n }\n\n /* shape=\"rounded\". After the size rules on purpose: same specificity, so\n source order is what lets the shape replace the size band's corner. */\n .button--rounded {\n border-radius: var(--shape-radius-3xl);\n }\n\n /* ============================================\n HOVER ARROW — accent, unless no-arrow\n The button keeps its width: the label slides toward the inline start\n and the arrow, absolutely positioned at the end, fades in where the\n label was. --_dir turns both slides round on a right-to-left page, the\n multiplier bd-pagination-dots uses; the arrow itself mirrors there (see\n icon-element.ts), so it still points the way the label moved from.\n ============================================ */\n .button__label {\n display: inline-block;\n }\n\n .button--with-arrow {\n --_dir: 1;\n position: relative;\n overflow: hidden;\n }\n\n :host(:dir(rtl)) .button--with-arrow {\n --_dir: -1;\n }\n\n .button--with-arrow .button__label {\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n .button--with-arrow .button__arrow {\n position: absolute;\n top: 50%;\n inset-inline-end: var(--spacing-12);\n opacity: 0;\n transform: translate(calc(-1 * var(--_dir) * var(--spacing-8)), -50%);\n transition:\n opacity var(--transition-duration-normal) var(--transition-easing-smooth),\n transform var(--transition-duration-normal) var(--transition-easing-smooth);\n pointer-events: none;\n }\n\n .button--with-arrow:focus-visible .button__label {\n transform: translateX(calc(-1 * var(--_dir) * var(--spacing-12)));\n }\n\n .button--with-arrow:focus-visible .button__arrow {\n opacity: 1;\n transform: translate(var(--spacing-0), -50%);\n }\n\n /* Only where a pointer can hover. A touch screen has no real hover, and a\n tap left the arrow stuck out; this was a (hover: none) block undoing the\n hover rules after the fact, and asking first is the same thing said once. */\n @media (hover: hover) {\n .button--with-arrow:hover .button__label {\n transform: translateX(calc(-1 * var(--_dir) * var(--spacing-12)));\n }\n\n .button--with-arrow:hover .button__arrow {\n opacity: 1;\n transform: translate(var(--spacing-0), -50%);\n }\n }\n\n /* ============================================\n SHAPE — icon-only\n A circle around one icon. The diameter is not pinned, for the same reason\n the labelled height is not: equal padding on every side plus the icon step\n gives 8+16+8 = 32, 12+20+12 = 44 and 16+24+16 = 56. Only md sits level\n with a labelled button beside it: the labelled heights are 33.5, 44 and\n 54.5, so sm is 1.5px shorter and lg 1.5px taller. Both differences come\n from the label's line box, which an icon does not have, and closing them\n would need an off-scale padding. sm is below the 44px target, exactly as\n the labelled sm is.\n\n The padding stays on the spacing scale, which is rem, while the icon is on\n the icon scale, which is px. So when a reader enlarges their text the\n circle grows and the glyph does not -- the target gets bigger for the\n reader a bigger target helps, and the shape stays round because the\n padding is equal on both axes.\n\n The compound selectors outrank the size classes whatever the source\n order, and they carry the radius too, so a size class can never put\n its own corner back. The slotted rule sizes a caller's icon to the step\n even if it was given a size of its own: a 20px glyph in a 56px circle\n reads as the wrong control, not as a choice.\n ============================================ */\n .button--icon-only {\n line-height: var(--typography-lineHeight-none);\n }\n .button--icon-only.button--small {\n --bd-button-icon-size: var(--icon-sm-size);\n padding: var(--spacing-8);\n border-radius: var(--radius-full);\n }\n .button--icon-only.button--medium {\n --bd-button-icon-size: var(--icon-md-size);\n padding: var(--spacing-12);\n border-radius: var(--radius-full);\n }\n .button--icon-only.button--large {\n --bd-button-icon-size: var(--icon-lg-size);\n padding: var(--spacing-16);\n border-radius: var(--radius-full);\n }\n .button--icon-only.button--responsive {\n --bd-button-icon-size: var(--icon-md-size);\n padding: var(--spacing-12);\n border-radius: var(--radius-full);\n }\n @media ${unsafeCSS(above(\"lg\"))} {\n .button--icon-only.button--responsive {\n --bd-button-icon-size: var(--icon-lg-size);\n padding: var(--spacing-16);\n }\n }\n /* the default arrow is fallback content, not slotted, so ::slotted below\n never reaches it; it takes the step through bd-icon's own property */\n .button__icon {\n --bd-icon-size: var(--bd-button-icon-size);\n }\n .button--icon-only > ::slotted(*) {\n height: var(--bd-button-icon-size);\n }\n /* loading swaps the icon for the spinner, so the spinner takes the icon's\n box rather than its em size, and the circle does not shrink while busy */\n .button--icon-only .spinner {\n width: var(--bd-button-icon-size);\n height: var(--bd-button-icon-size);\n }\n\n /* ============================================\n VARIANT — primary\n ============================================ */\n .button--primary {\n background-color: var(--bd-button-primary-bg);\n color: var(--bd-button-primary-text);\n }\n .button--primary:hover {\n background-color: var(--bd-button-primary-bg-hover);\n }\n .button--primary:active {\n background-color: var(--bd-button-primary-bg-active);\n }\n\n /* ============================================\n VARIANT — secondary\n ============================================ */\n .button--secondary {\n background-color: var(--bd-button-secondary-bg);\n color: var(--bd-button-secondary-text);\n }\n .button--secondary:hover {\n background-color: var(--bd-button-secondary-bg-hover);\n }\n .button--secondary:active {\n background-color: var(--bd-button-secondary-bg-active);\n }\n\n /* ============================================\n VARIANT — tertiary (blue outline)\n ============================================ */\n .button--tertiary {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-tertiary-border);\n color: var(--bd-button-tertiary-text);\n }\n .button--tertiary:hover {\n background-color: var(--bd-button-tertiary-bg-hover);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-tertiary-border-hover);\n color: var(--bd-button-tertiary-text-hover);\n }\n .button--tertiary:active {\n background-color: var(--bd-button-tertiary-bg-active);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-tertiary-bg-active);\n color: var(--bd-button-tertiary-text-active);\n }\n\n /* ============================================\n VARIANT — ghost (dark outline)\n ============================================ */\n .button--ghost {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-ghost-border);\n color: var(--bd-button-ghost-text);\n }\n .button--ghost:hover {\n background-color: var(--bd-button-ghost-bg-hover);\n color: var(--bd-button-ghost-text-hover);\n }\n .button--ghost:active {\n background-color: var(--bd-button-ghost-bg-active);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-ghost-bg-active);\n color: var(--bd-button-ghost-text-active);\n }\n\n /* ============================================\n VARIANT — accent\n ============================================ */\n .button--accent {\n background-color: var(--bd-button-accent-bg);\n color: var(--bd-button-accent-text);\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-accent-ring);\n }\n .button--accent:hover {\n background-color: var(--bd-button-accent-bg-hover);\n }\n .button--accent:active {\n background-color: var(--bd-button-accent-bg-active);\n }\n\n /* ============================================\n SURFACE — dark\n\n For a hero or any panel with a full background colour. On a light page\n every variant passes; on a coloured one 21 of 25 variant/surface pairings\n failed, because tertiary and ghost put their ink straight onto the page\n and primary is literally the same colour as a blue-500 hero (1.00:1).\n\n The design carries no on-dark set — its axes are Size, Variant and State\n only — so these values are derived from our own palette rather than read\n off a spec, and every one is measured against blue-500, blue-600,\n blue-700, neutral-900 and neutral-950. They need a designer's sign-off.\n\n Two notes on what changed shape rather than just colour: ghost drops its\n ring here, because a white ring would make it identical to tertiary, and\n dropping it is what \"ghost\" conventionally means anyway. accent keeps its\n red so the conversion signal survives, and gains a white ring to give it\n a boundary against blue.\n\n WHY THE INK IS A ROLE AND THE GROUNDS ARE NOT, which is what the inline\n no role: markers below point at. check:color-coverage gained sight of\n these declarations on 2026-09-15 and classified twenty-three of them; a\n role of the right CATEGORY exists at the value for nineteen, and exactly\n nine survive the second question, which is whether the role's JOB is this\n declaration's job.\n\n The nine that do are all ink, and each one matches a role's own words.\n tertiary and ghost put their label straight onto the hero, and\n --color-text-inverse is defined as the high-emphasis ink on an inverse\n ground. Once a variant inverts and the label sits on the button's own\n light fill, it is ordinary ink again -- --color-text-primary -- or brand\n ink, --color-text-brand. disabled's label is a control the user cannot\n operate, which is --color-text-disabled's whole definition rather than a\n step on the hierarchy. Every one is value-identical, so nothing here\n renders differently.\n\n The grounds and hairlines have no role, and the reason is not scarcity.\n --color-surface-default carries this exact white, and its own theme\n clause in Foundations/Surfaces reads \"On dark it is the dark ground, not\n white\" -- so adopting it here would assert the opposite of what the\n declaration means. surface-subtle is a wash behind a group, not a press\n fill. surface-muted is a state surface and would fit primary's pressed\n step on value and nearly on job, but these three values are one ramp\n measured against the hero rather than three independent choices, and\n binding its last step to a role that can move on its own would break the\n relationship the measurement established. At neutral-700 and neutral-600\n there is no surface or border role at all, and there is no solid white\n border role anywhere: --color-border-container-inverse is white at 12%.\n\n So the missing vocabulary is nameable, and it is two entries: a control\n fill on an inverse ground, and a solid hairline on an inverse ground.\n Adding either is a vocabulary decision for the same designer pass this\n block is already waiting on, and token-scales.ts is explicit that one\n consumer is not enough to name a role. Recorded, not taken.\n ============================================ */\n :host([surface='dark']) {\n /* white fill, brand label — the strongest thing on a coloured hero */\n --bd-button-primary-bg: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-primary-bg-hover: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-primary-bg-active: var(--color-neutral-100); /* no role: on-dark ground; see the block note */\n --bd-button-primary-text: var(--color-text-brand);\n\n /* neutral-100 rather than a lighter step: it is the lightest fill that\n still clears 3:1 against a blue-500 hero while staying distinguishable\n from primary's pure white */\n --bd-button-secondary-bg: var(--color-neutral-100); /* no role: on-dark ground; see the block note */\n --bd-button-secondary-bg-hover: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-secondary-bg-active: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-secondary-text: var(--color-text-primary);\n\n /* the outlined one: white ring, white label, inverting on hover */\n --bd-button-tertiary-text: var(--color-text-inverse);\n --bd-button-tertiary-border: var(--color-neutral-0); /* no role: on-dark hairline; see the block note */\n --bd-button-tertiary-bg-hover: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-tertiary-text-hover: var(--color-text-brand);\n --bd-button-tertiary-border-hover: var(--color-neutral-0); /* no role: on-dark hairline; see the block note */\n --bd-button-tertiary-bg-active: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-tertiary-text-active: var(--color-text-brand);\n\n /* no ring at all, so it stays distinct from tertiary */\n --bd-button-ghost-text: var(--color-text-inverse);\n --bd-button-ghost-border: transparent;\n --bd-button-ghost-bg-hover: var(--color-neutral-0); /* no role: on-dark ground; see the block note */\n --bd-button-ghost-text-hover: var(--color-text-primary);\n --bd-button-ghost-bg-active: var(--color-neutral-50); /* no role: on-dark ground; see the block note */\n --bd-button-ghost-text-active: var(--color-text-primary);\n\n /* unchanged red, plus a boundary against the hero */\n --bd-button-accent-ring: var(--color-neutral-0);\n\n /* a white ring, the one colour that clears 3:1 on a brand hero and a\n neutral one alike, which this surface has to cover without knowing\n which it is on. The gap inside it is the hero itself; see FOCUS. */\n --bd-button-focus-ring: var(--focus-outline-traditional-inverse);\n\n /* muted downward instead of upward: a neutral-100 fill would read as an\n active control on a dark hero. Exempt from contrast under WCAG 1.4.3. */\n --bd-button-disabled-bg: var(--color-neutral-700); /* no role: on-dark ground; see the block note */\n --bd-button-disabled-text: var(--color-text-disabled);\n --bd-button-disabled-border: var(--color-neutral-600); /* no role: on-dark hairline; see the block note */\n\n }\n\n /* ============================================\n SURFACE — brand\n\n For a band filled with the brand itself, --color-surface-brand. On\n Bitdefender that band is blue and surface=\"dark\" already reads; on a\n partner whose brand is light, dark's white fills and white rings are\n exactly what cannot be seen.\n\n So this surface is built from one pair only: the brand's ink,\n --color-brand-on-fill, and the brand fill, --color-action-primary. A theme\n must clear 4.5:1 between those two (verify-brands' ink floor), so every\n label and every boundary below inherits that floor whichever way the\n brand runs -- white ink on a dark brand, dark ink on a light one. Nothing\n here may mix the two into a third colour: a tint moves toward one of them\n and loses contrast against it, and which one depends on the brand.\n\n That is also why the states swap the pair rather than tint it. primary\n is the ink fill with the brand as its label, and on hover and press it\n becomes the ink outline; tertiary is the ink outline and inverts to the\n ink fill. ghost has no ring and inverts the same way. secondary and\n accent keep their own fills, whose labels are not the brand's to move,\n and gain a ring in the ink so their edge against the band is the same\n floor. Disabled is exempt from contrast (WCAG 1.4.3) and is the ink at\n reduced strength.\n\n On Bitdefender this differs from surface=\"dark\" on purpose in two places:\n primary's label is the band's blue-500 (4.53:1 on white) rather than\n brand text, and its hover is the outline rather than a neutral-50 fill.\n Both are what a theme-independent surface can promise; dark's choices\n only hold while the brand is dark.\n ============================================ */\n :host([surface='brand']) {\n --bd-button-primary-bg: var(--color-brand-on-fill);\n --bd-button-primary-text: var(--color-action-primary);\n\n --bd-button-tertiary-text: var(--color-brand-on-fill);\n --bd-button-tertiary-border: var(--color-brand-on-fill);\n --bd-button-tertiary-bg-hover: var(--color-brand-on-fill);\n --bd-button-tertiary-text-hover: var(--color-action-primary);\n --bd-button-tertiary-border-hover: var(--color-brand-on-fill);\n --bd-button-tertiary-bg-active: var(--color-brand-on-fill);\n --bd-button-tertiary-text-active: var(--color-action-primary);\n\n --bd-button-ghost-text: var(--color-brand-on-fill);\n --bd-button-ghost-border: transparent;\n --bd-button-ghost-bg-hover: var(--color-brand-on-fill);\n --bd-button-ghost-text-hover: var(--color-action-primary);\n --bd-button-ghost-bg-active: var(--color-brand-on-fill);\n --bd-button-ghost-text-active: var(--color-action-primary);\n\n --bd-button-accent-ring: var(--color-brand-on-fill);\n\n --bd-button-focus-ring: var(--focus-outline-traditional-on-brand);\n\n --bd-button-disabled-bg: color-mix(in srgb, var(--color-brand-on-fill) 20%, transparent);\n --bd-button-disabled-text: color-mix(in srgb, var(--color-brand-on-fill) 55%, transparent);\n --bd-button-disabled-border: color-mix(in srgb, var(--color-brand-on-fill) 40%, transparent);\n }\n\n :host([surface='brand']) .button--primary:hover,\n :host([surface='brand']) .button--primary:active {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--color-brand-on-fill);\n color: var(--color-brand-on-fill);\n }\n\n /* not when disabled: the state rule clears the edge, and this is heavier */\n :host([surface='brand']) .button--secondary:not(:disabled, [aria-disabled=\"true\"]) {\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--color-brand-on-fill);\n }\n\n /* ============================================\n STATE — disabled\n Filled variants go grey; outlined ones keep a transparent fill and take\n the subtle border. Contrast is exempt here under WCAG 1.4.3.\n ============================================ */\n .button:disabled,\n .button[aria-disabled=\"true\"] {\n cursor: not-allowed;\n pointer-events: none;\n background-color: var(--bd-button-disabled-bg);\n --bd-button-edge: 0 0 0 0 transparent;\n color: var(--bd-button-disabled-text);\n }\n\n .button--tertiary:disabled,\n .button--ghost:disabled,\n .button--tertiary[aria-disabled=\"true\"],\n .button--ghost[aria-disabled=\"true\"] {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-disabled-border);\n color: var(--bd-button-disabled-text);\n }\n\n /* ============================================\n STATE — loading\n The variant keeps its own colours, so the spinner is drawn in\n currentColor and sized in em to track the type scale — which is what the\n design's loading widths imply (they exceed the default by exactly one\n font-size plus the gap).\n ============================================ */\n .button--loading {\n cursor: progress;\n pointer-events: none;\n }\n\n .spinner {\n width: 1em;\n height: 1em;\n flex: none;\n box-sizing: border-box;\n border: var(--border-width-2) solid currentColor;\n border-top-color: transparent;\n border-radius: var(--radius-full);\n animation: bd-button-spin var(--transition-duration-slower)\n var(--transition-easing-linear) infinite;\n }\n\n @keyframes bd-button-spin {\n to { transform: rotate(360deg); }\n }\n\n /* The slot sits inside .button__label now, not directly in .button. */\n .button__label > ::slotted(*) {\n display: inline-block;\n text-align: center;\n }\n\n /* box-shadow is not rendered in forced-colors mode, which would leave the\n outlined variants with no visible boundary at all, so a real border comes\n back there. It costs 4px of height, which does not matter when the user\n agent is repainting everything anyway. */\n @media (forced-colors: active) {\n .button--tertiary,\n .button--ghost {\n border: var(--bd-button-border-width) solid currentColor;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .button,\n .bd-contact-btn,\n .button__label,\n .button__arrow {\n transition: none !important;\n }\n\n /* a spinner that cannot spin should still read as busy, so it pulses\n rather than freezing into a static broken ring */\n .spinner {\n animation: bd-button-pulse var(--transition-duration-slower)\n var(--transition-easing-smooth) infinite alternate;\n border-top-color: currentColor;\n }\n\n @keyframes bd-button-pulse {\n to { opacity: var(--opacity-pulse); }\n }\n }\n /* ============================================\n VARIANT — white and outline-white\n\n Fixed presets for a solid-colour banner, where even a surface=\"dark\"\n primary would sit too close in tone. They ignore surface on purpose —\n see the note on VARIANTS in button.ts.\n\n These two were appended below the stylesheet's last rule and unindented,\n and they hardcoded their colours instead of going through the aliases\n every other variant uses: 1.5px against the 2px border width the docs\n describe, #ffffff8c, and two rgba() whites. None of it could be rethemed\n and none of it was visible to the lint, which does not read 8-digit hex\n or rgba().\n ============================================ */\n .button--white {\n background-color: var(--bd-button-white-bg);\n color: var(--bd-button-white-text);\n }\n .button--white:hover {\n background-color: var(--bd-button-white-bg-hover);\n }\n .button--white:active {\n background-color: var(--bd-button-white-bg-active);\n }\n\n .button--outline-white {\n background-color: transparent;\n --bd-button-edge: inset 0 0 0 var(--bd-button-border-width) var(--bd-button-outline-white-border);\n color: var(--bd-button-outline-white-text);\n }\n .button--outline-white:hover {\n background-color: var(--bd-button-outline-white-bg-hover);\n }\n .button--outline-white:active {\n background-color: var(--bd-button-outline-white-bg-active);\n }\n`;\n"],"mappings":"A,4DAaA,IAAAA,EAAe,CAAG,kvb"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement, nothing, type PropertyValues } from "lit";
|
|
2
|
-
import { type Size } from "../shared/prop-vocabulary.
|
|
3
|
-
import "../../tokens/tokens.
|
|
4
|
-
import { type FontSizeStep, type FontWeightStep } from "../shared/token-scales.
|
|
5
|
-
import "../icons/arrow-icon.
|
|
2
|
+
import { type Size } from "../shared/prop-vocabulary.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
import { type FontSizeStep, type FontWeightStep } from "../shared/token-scales.js";
|
|
5
|
+
import "../icons/arrow-icon.js";
|
|
6
6
|
declare const VARIANTS: readonly ["primary", "secondary", "tertiary", "ghost", "accent", "white", "outline-white"];
|
|
7
7
|
declare const SURFACES: readonly ["light", "dark", "brand"];
|
|
8
8
|
declare const SHAPES: readonly ["default", "rounded"];
|
|
@@ -76,7 +76,7 @@ declare class BdButtonBase extends LitElement {
|
|
|
76
76
|
get _iconContent(): import("lit-html").TemplateResult<1>;
|
|
77
77
|
_handleClick(e: MouseEvent): void;
|
|
78
78
|
}
|
|
79
|
-
declare const Button_base: (new (...args: any[]) => import("../shared/form-control.
|
|
79
|
+
declare const Button_base: (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof BdButtonBase;
|
|
80
80
|
/**
|
|
81
81
|
* Performs an action in place -- and, with type="submit" or "reset", that
|
|
82
82
|
* action is the form it sits in.
|