@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,215 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { keyed } from "lit/directives/keyed.js";
|
|
10
|
-
import { defineElement } from "../shared/define-element.js";
|
|
11
|
-
import "../shared/events.js";
|
|
12
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
13
|
-
import "../../tokens/tokens.js";
|
|
14
|
-
import { formFieldCSS } from "../shared/form-field.css.js";
|
|
15
|
-
import inputCSS from "./input.css.js";
|
|
16
|
-
import { resolveSize } from "../shared/prop-vocabulary.js";
|
|
17
|
-
import { ValueControl, omitEmpty } from "../shared/form-control.js";
|
|
18
|
-
// ids are scoped to the shadow root, so fixed ones are safe here
|
|
19
|
-
const INPUT_ID = "custom-input";
|
|
20
|
-
const HELP_ID = "custom-input-help";
|
|
21
|
-
let CustomInput = class CustomInput extends ValueControl(LitElement) {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
|
-
/* No default copy. A field that ships "Default Label" to production
|
|
25
|
-
when a consumer forgets the prop is worse than one that ships no label,
|
|
26
|
-
and the string cannot be translated. Empty means the label element is
|
|
27
|
-
not rendered at all — see render(). */
|
|
28
|
-
this.label = "";
|
|
29
|
-
this.type = "text";
|
|
30
|
-
this.size = "md";
|
|
31
|
-
/** @deprecated pass `size`. It named the size, not the kind. */
|
|
32
|
-
this.kind = "";
|
|
33
|
-
this.placeholder = "";
|
|
34
|
-
this.required = false;
|
|
35
|
-
this.focused = false;
|
|
36
|
-
this.tooltip = "";
|
|
37
|
-
this.invalid = false;
|
|
38
|
-
this.validated = false;
|
|
39
|
-
this.disabled = false;
|
|
40
|
-
/* The current value. The value ATTRIBUTE is the default a form reset
|
|
41
|
-
returns to, as on a native input: the property does not reflect, so the
|
|
42
|
-
attribute keeps what the page wrote. See ValueControl. */
|
|
43
|
-
this.value = "";
|
|
44
|
-
// reflected, because a form reads the name off the element
|
|
45
|
-
this.name = "";
|
|
46
|
-
// mobile keyboard controls — see the story
|
|
47
|
-
this.inputmode = "";
|
|
48
|
-
this.autocomplete = "";
|
|
49
|
-
this.enterkeyhint = "";
|
|
50
|
-
}
|
|
51
|
-
static { this.styles = [formFieldCSS, inputCSS]; }
|
|
52
|
-
get _control() {
|
|
53
|
-
return this.renderRoot?.querySelector?.("input");
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* The value used to be unreachable. The native input event escapes the
|
|
57
|
-
* shadow root, but it retargets to the host, and the host had no value
|
|
58
|
-
* property — so `e.target.value` was undefined and the only way to read what
|
|
59
|
-
* someone typed was to reach through the shadow root.
|
|
60
|
-
*/
|
|
61
|
-
_onInput(e) {
|
|
62
|
-
this.value = e.target.value;
|
|
63
|
-
// before the event, so a handler asking the form about it gets the answer
|
|
64
|
-
// for what was just typed
|
|
65
|
-
this._sync();
|
|
66
|
-
this.dispatchEvent(new CustomEvent("bd-input", {
|
|
67
|
-
detail: { value: this.value, name: this.name },
|
|
68
|
-
bubbles: true,
|
|
69
|
-
composed: true
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
_onChange(e) {
|
|
73
|
-
this.value = e.target.value;
|
|
74
|
-
this.dispatchEvent(new CustomEvent("bd-change", {
|
|
75
|
-
detail: { value: this.value, name: this.name },
|
|
76
|
-
bubbles: true,
|
|
77
|
-
composed: true
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
willUpdate(changed) {
|
|
81
|
-
// kind said "size" on these three and nothing else in the system,
|
|
82
|
-
// so it moved; see shared/prop-vocabulary.ts
|
|
83
|
-
if (changed.has("kind") && this.kind)
|
|
84
|
-
this.size = this.kind;
|
|
85
|
-
if (changed.has("size") || changed.has("kind"))
|
|
86
|
-
this.size = resolveSize(this.size);
|
|
87
|
-
}
|
|
88
|
-
/* focused is the field's real focus, both ways. Setting it moves keyboard
|
|
89
|
-
focus into the <input> and clearing it blurs the field; focusing or
|
|
90
|
-
leaving the field by hand sets it, and it reflects, so the attribute says
|
|
91
|
-
whether the field has focus. It used to add a .focused class that painted
|
|
92
|
-
the focus ring on a field that did not have focus -- a second, false
|
|
93
|
-
indicator on any page that set it. The ring is now only the browser's
|
|
94
|
-
:focus-visible, which a text field shows whenever it is focused. */
|
|
95
|
-
updated(changed) {
|
|
96
|
-
this._sync();
|
|
97
|
-
this._followFocused(changed);
|
|
98
|
-
}
|
|
99
|
-
_followFocused(changed) {
|
|
100
|
-
if (!changed.has('focused'))
|
|
101
|
-
return;
|
|
102
|
-
const input = this.shadowRoot.querySelector('input');
|
|
103
|
-
const has = this.shadowRoot.activeElement === input;
|
|
104
|
-
if (this.focused && !has)
|
|
105
|
-
input?.focus();
|
|
106
|
-
if (!this.focused && has)
|
|
107
|
-
input?.blur();
|
|
108
|
-
}
|
|
109
|
-
render() {
|
|
110
|
-
const inputClass = { sm: "input-sm", md: "input-md", lg: "input-lg" }[this.size];
|
|
111
|
-
const labelClass = { sm: "label-sm", md: "label-md", lg: "label-lg" }[this.size];
|
|
112
|
-
const disabled = this.disabled || this._formDisabled;
|
|
113
|
-
const inputStateClass = disabled
|
|
114
|
-
? "form-input--disabled"
|
|
115
|
-
: this.invalid
|
|
116
|
-
? "form-input--error"
|
|
117
|
-
: this.validated
|
|
118
|
-
? "form-input--success"
|
|
119
|
-
: "";
|
|
120
|
-
const helpTextClass = this.invalid
|
|
121
|
-
? "form-help-text--error"
|
|
122
|
-
: this.validated
|
|
123
|
-
? "form-help-text--success"
|
|
124
|
-
: "form-help-text--default";
|
|
125
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{resolveSize as n}from"../shared/prop-vocabulary.js";import{ValueControl as r,omitEmpty as i}from"../shared/form-control.js";import a from"../shared/form-field.css.js";import o from"./input.css.js";import{LitElement as s,html as c,nothing as l}from"lit";import{property as u}from"lit/decorators.js";import{keyed as d}from"lit/directives/keyed.js";var f=`custom-input`,p=`custom-input-help`,m=class extends r(s){constructor(...e){super(...e),this.label=``,this.type=`text`,this.size=`md`,this.kind=``,this.placeholder=``,this.required=!1,this.focused=!1,this.tooltip=``,this.invalid=!1,this.validated=!1,this.disabled=!1,this.value=``,this.name=``,this.inputmode=``,this.autocomplete=``,this.enterkeyhint=``}static{this.styles=[a,o]}get _control(){return this.renderRoot?.querySelector?.(`input`)}_onInput(e){this.value=e.target.value,this._sync(),this.dispatchEvent(new CustomEvent(`bd-input`,{detail:{value:this.value,name:this.name},bubbles:!0,composed:!0}))}_onChange(e){this.value=e.target.value,this.dispatchEvent(new CustomEvent(`bd-change`,{detail:{value:this.value,name:this.name},bubbles:!0,composed:!0}))}willUpdate(e){e.has(`kind`)&&this.kind&&(this.size=this.kind),(e.has(`size`)||e.has(`kind`))&&(this.size=n(this.size))}updated(e){this._sync(),this._followFocused(e)}_followFocused(e){if(!e.has(`focused`))return;let t=this.shadowRoot.querySelector(`input`),n=this.shadowRoot.activeElement===t;this.focused&&!n&&t?.focus(),!this.focused&&n&&t?.blur()}render(){let e={sm:`input-sm`,md:`input-md`,lg:`input-lg`}[this.size],t={sm:`label-sm`,md:`label-md`,lg:`label-lg`}[this.size],n=this.disabled||this._formDisabled,r=n?`form-input--disabled`:this.invalid?`form-input--error`:this.validated?`form-input--success`:``,i=this.invalid?`form-help-text--error`:this.validated?`form-help-text--success`:`form-help-text--default`;return c`
|
|
126
2
|
<div class="input-container">
|
|
127
|
-
${this.label
|
|
128
|
-
? html `<label for="${INPUT_ID}" class="form-label ${labelClass}">
|
|
3
|
+
${this.label?c`<label for="${f}" class="form-label ${t}">
|
|
129
4
|
${this.label}
|
|
130
|
-
${this.required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
${keyed(this._resets, html `<input
|
|
136
|
-
id="${INPUT_ID}"
|
|
137
|
-
class="form-input-bd ${inputClass} ${inputStateClass} ${this._attempted ? "form-input--attempted" : ""}"
|
|
5
|
+
${this.required?c`<span class="form-label__required" aria-hidden="true">*</span>`:``}
|
|
6
|
+
</label>`:l}
|
|
7
|
+
${d(this._resets,c`<input
|
|
8
|
+
id="${f}"
|
|
9
|
+
class="form-input-bd ${e} ${r} ${this._attempted?`form-input--attempted`:``}"
|
|
138
10
|
type="${this.type}"
|
|
139
|
-
name="${this.name
|
|
11
|
+
name="${this.name||l}"
|
|
140
12
|
placeholder="${this.placeholder}"
|
|
141
13
|
.value="${this.value}"
|
|
142
|
-
inputmode="${this.inputmode
|
|
143
|
-
autocomplete="${this.autocomplete
|
|
144
|
-
enterkeyhint="${this.enterkeyhint
|
|
14
|
+
inputmode="${this.inputmode||l}"
|
|
15
|
+
autocomplete="${this.autocomplete||l}"
|
|
16
|
+
enterkeyhint="${this.enterkeyhint||l}"
|
|
145
17
|
?required="${this.required}"
|
|
146
|
-
?disabled="${
|
|
147
|
-
aria-invalid="${this.invalid
|
|
148
|
-
aria-describedby="${this.tooltip
|
|
149
|
-
@focus="${()
|
|
150
|
-
@blur="${()
|
|
18
|
+
?disabled="${n}"
|
|
19
|
+
aria-invalid="${this.invalid?`true`:l}"
|
|
20
|
+
aria-describedby="${this.tooltip?p:l}"
|
|
21
|
+
@focus="${()=>{this.focused=!0}}"
|
|
22
|
+
@blur="${()=>{this.focused=!1}}"
|
|
151
23
|
@input="${this._onInput}"
|
|
152
24
|
@change="${this._onChange}"
|
|
153
25
|
@keydown="${this._onFieldKeydown}"
|
|
154
26
|
/>`)}
|
|
155
|
-
${this.tooltip
|
|
156
|
-
? html `<div id="${HELP_ID}" class="form-help-text ${helpTextClass}">
|
|
27
|
+
${this.tooltip?c`<div id="${p}" class="form-help-text ${i}">
|
|
157
28
|
${this.tooltip}
|
|
158
|
-
</div
|
|
159
|
-
: ""}
|
|
29
|
+
</div>`:``}
|
|
160
30
|
</div>
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
__decorate([
|
|
165
|
-
property({ type: String })
|
|
166
|
-
], CustomInput.prototype, "label", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
property({ type: String })
|
|
169
|
-
], CustomInput.prototype, "type", void 0);
|
|
170
|
-
__decorate([
|
|
171
|
-
property({ type: String, reflect: true })
|
|
172
|
-
], CustomInput.prototype, "size", void 0);
|
|
173
|
-
__decorate([
|
|
174
|
-
property({ type: String })
|
|
175
|
-
], CustomInput.prototype, "kind", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
property({ type: String })
|
|
178
|
-
], CustomInput.prototype, "placeholder", void 0);
|
|
179
|
-
__decorate([
|
|
180
|
-
property({ type: Boolean })
|
|
181
|
-
], CustomInput.prototype, "required", void 0);
|
|
182
|
-
__decorate([
|
|
183
|
-
property({ type: Boolean, reflect: true })
|
|
184
|
-
], CustomInput.prototype, "focused", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
property({ type: String })
|
|
187
|
-
], CustomInput.prototype, "tooltip", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
property({ type: Boolean })
|
|
190
|
-
], CustomInput.prototype, "invalid", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
property({ type: Boolean, reflect: true })
|
|
193
|
-
], CustomInput.prototype, "validated", void 0);
|
|
194
|
-
__decorate([
|
|
195
|
-
property({ type: Boolean, reflect: true })
|
|
196
|
-
], CustomInput.prototype, "disabled", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
property({ type: String })
|
|
199
|
-
], CustomInput.prototype, "value", void 0);
|
|
200
|
-
__decorate([
|
|
201
|
-
property({ type: String, reflect: true, converter: omitEmpty })
|
|
202
|
-
], CustomInput.prototype, "name", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
property({ type: String })
|
|
205
|
-
], CustomInput.prototype, "inputmode", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
property({ type: String })
|
|
208
|
-
], CustomInput.prototype, "autocomplete", void 0);
|
|
209
|
-
__decorate([
|
|
210
|
-
property({ type: String })
|
|
211
|
-
], CustomInput.prototype, "enterkeyhint", void 0);
|
|
212
|
-
CustomInput = __decorate([
|
|
213
|
-
defineElement("bd-custom-input")
|
|
214
|
-
], CustomInput);
|
|
31
|
+
`}};t([u({type:String})],m.prototype,`label`,void 0),t([u({type:String})],m.prototype,`type`,void 0),t([u({type:String,reflect:!0})],m.prototype,`size`,void 0),t([u({type:String})],m.prototype,`kind`,void 0),t([u({type:String})],m.prototype,`placeholder`,void 0),t([u({type:Boolean})],m.prototype,`required`,void 0),t([u({type:Boolean,reflect:!0})],m.prototype,`focused`,void 0),t([u({type:String})],m.prototype,`tooltip`,void 0),t([u({type:Boolean})],m.prototype,`invalid`,void 0),t([u({type:Boolean,reflect:!0})],m.prototype,`validated`,void 0),t([u({type:Boolean,reflect:!0})],m.prototype,`disabled`,void 0),t([u({type:String})],m.prototype,`value`,void 0),t([u({type:String,reflect:!0,converter:i})],m.prototype,`name`,void 0),t([u({type:String})],m.prototype,`inputmode`,void 0),t([u({type:String})],m.prototype,`autocomplete`,void 0),t([u({type:String})],m.prototype,`enterkeyhint`,void 0),m=t([e(`bd-custom-input`)],m);
|
|
215
32
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../../src/components/input/input.ts"],"names":[],"mappings":";;;;;;AAAA,OA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f;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACT;AAElB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACT;AA5Cd,WAAW;IADhB,aAAa,CAAC,iBAAiB,CAAC;GAC3B,WAAW,CAiKhB","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { keyed } from \"lit/directives/keyed.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\nimport \"../shared/events.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport { formFieldCSS } from \"../shared/form-field.css.ts\";\nimport inputCSS from \"./input.css.ts\";\nimport { resolveSize, type Size } from '../shared/prop-vocabulary.ts';\nimport { ValueControl, omitEmpty } from \"../shared/form-control.ts\";\n\n// ids are scoped to the shadow root, so fixed ones are safe here\nconst INPUT_ID = \"custom-input\";\nconst HELP_ID = \"custom-input-help\";\n\n@defineElement(\"bd-custom-input\")\nclass CustomInput extends ValueControl(LitElement) {\n static styles = [formFieldCSS, inputCSS];\n\n /* No default copy. A field that ships \"Default Label\" to production\n when a consumer forgets the prop is worse than one that ships no label,\n and the string cannot be translated. Empty means the label element is\n not rendered at all — see render(). */\n @property({ type: String })\n label = \"\";\n @property({ type: String })\n type = \"text\";\n @property({ type: String, reflect: true })\n size: Size = \"md\";\n /** @deprecated pass `size`. It named the size, not the kind. */\n @property({ type: String })\n kind = \"\";\n @property({ type: String })\n placeholder = \"\";\n @property({ type: Boolean })\n required = false;\n @property({ type: Boolean, reflect: true })\n focused = false;\n @property({ type: String })\n tooltip = \"\";\n @property({ type: Boolean })\n invalid = false;\n @property({ type: Boolean, reflect: true })\n validated = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n /* The current value. The value ATTRIBUTE is the default a form reset\n returns to, as on a native input: the property does not reflect, so the\n attribute keeps what the page wrote. See ValueControl. */\n @property({ type: String })\n value = \"\";\n // reflected, because a form reads the name off the element\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n // mobile keyboard controls — see the story\n @property({ type: String })\n inputmode = \"\";\n @property({ type: String })\n autocomplete = \"\";\n @property({ type: String })\n enterkeyhint = \"\";\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.(\"input\");\n }\n\n /**\n * The value used to be unreachable. The native input event escapes the\n * shadow root, but it retargets to the host, and the host had no value\n * property — so `e.target.value` was undefined and the only way to read what\n * someone typed was to reach through the shadow root.\n */\n _onInput(e: Event & { target: HTMLInputElement }) {\n this.value = e.target.value;\n // before the event, so a handler asking the form about it gets the answer\n // for what was just typed\n this._sync();\n this.dispatchEvent(new CustomEvent(\"bd-input\", {\n detail : { value: this.value, name: this.name },\n bubbles : true,\n composed: true\n }));\n }\n\n _onChange(e: Event & { target: HTMLInputElement }) {\n this.value = e.target.value;\n this.dispatchEvent(new CustomEvent(\"bd-change\", {\n detail : { value: this.value, name: this.name },\n bubbles : true,\n composed: true\n }));\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // kind said \"size\" on these three and nothing else in the system,\n // so it moved; see shared/prop-vocabulary.ts\n if (changed.has(\"kind\") && this.kind) this.size = this.kind as Size;\n if (changed.has(\"size\") || changed.has(\"kind\")) this.size = resolveSize(this.size);\n }\n\n /* focused is the field's real focus, both ways. Setting it moves keyboard\n focus into the <input> and clearing it blurs the field; focusing or\n leaving the field by hand sets it, and it reflects, so the attribute says\n whether the field has focus. It used to add a .focused class that painted\n the focus ring on a field that did not have focus -- a second, false\n indicator on any page that set it. The ring is now only the browser's\n :focus-visible, which a text field shows whenever it is focused. */\n updated(changed: PropertyValues<this>) {\n this._sync();\n this._followFocused(changed);\n }\n\n _followFocused(changed: PropertyValues<this>) {\n if (!changed.has('focused')) return;\n const input = this.shadowRoot!.querySelector('input');\n const has = this.shadowRoot!.activeElement === input;\n if (this.focused && !has) input?.focus();\n if (!this.focused && has) input?.blur();\n }\n\n render() {\n const inputClass = { sm: \"input-sm\", md: \"input-md\", lg: \"input-lg\" }[this.size];\n const labelClass = { sm: \"label-sm\", md: \"label-md\", lg: \"label-lg\" }[this.size];\n\n const disabled = this.disabled || this._formDisabled;\n const inputStateClass = disabled\n ? \"form-input--disabled\"\n : this.invalid\n ? \"form-input--error\"\n : this.validated\n ? \"form-input--success\"\n : \"\";\n\n const helpTextClass = this.invalid\n ? \"form-help-text--error\"\n : this.validated\n ? \"form-help-text--success\"\n : \"form-help-text--default\";\n\n return html`\n <div class=\"input-container\">\n ${this.label\n ? html`<label for=\"${INPUT_ID}\" class=\"form-label ${labelClass}\">\n ${this.label}\n ${this.required\n ? html`<span class=\"form-label__required\" aria-hidden=\"true\">*</span>`\n : \"\"}\n </label>`\n : nothing}\n ${keyed(this._resets, html`<input\n id=\"${INPUT_ID}\"\n class=\"form-input-bd ${inputClass} ${inputStateClass} ${this._attempted ? \"form-input--attempted\" : \"\"}\"\n type=\"${this.type}\"\n name=\"${this.name || nothing}\"\n placeholder=\"${this.placeholder}\"\n .value=\"${this.value}\"\n inputmode=\"${this.inputmode || nothing}\"\n autocomplete=\"${this.autocomplete || nothing}\"\n enterkeyhint=\"${this.enterkeyhint || nothing}\"\n ?required=\"${this.required}\"\n ?disabled=\"${disabled}\"\n aria-invalid=\"${this.invalid ? \"true\" : nothing}\"\n aria-describedby=\"${this.tooltip ? HELP_ID : nothing}\"\n @focus=\"${() => { this.focused = true; }}\"\n @blur=\"${() => { this.focused = false; }}\"\n @input=\"${this._onInput}\"\n @change=\"${this._onChange}\"\n @keydown=\"${this._onFieldKeydown}\"\n />`)}\n ${this.tooltip\n ? html`<div id=\"${HELP_ID}\" class=\"form-help-text ${helpTextClass}\">\n ${this.tooltip}\n </div>`\n : \"\"}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-custom-input\": CustomInput;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"input.js","names":["inputCSS","_decorate","__decorate","formFieldCSS","input_css_default","INPUT_ID","HELP_ID","CustomInput","ValueControl","LitElement","_args","changed","resolveSize","input","has","inputClass","labelClass","disabled","inputStateClass","helpTextClass","nothing","keyed","property","omitEmpty","defineElement"],"sources":["../../../../src/components/input/input.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { keyed } from \"lit/directives/keyed.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport \"#shared/events.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { formFieldCSS } from \"#shared/form-field.css.ts\";\nimport inputCSS from \"./input.css.ts\";\nimport { resolveSize, type Size } from '#shared/prop-vocabulary.ts';\nimport { ValueControl, omitEmpty } from \"#shared/form-control.ts\";\n\n// ids are scoped to the shadow root, so fixed ones are safe here\nconst INPUT_ID = \"custom-input\";\nconst HELP_ID = \"custom-input-help\";\n\n@defineElement(\"bd-custom-input\")\nclass CustomInput extends ValueControl(LitElement) {\n static styles = [formFieldCSS, inputCSS];\n\n /* No default copy. A field that ships \"Default Label\" to production\n when a consumer forgets the prop is worse than one that ships no label,\n and the string cannot be translated. Empty means the label element is\n not rendered at all — see render(). */\n @property({ type: String })\n label = \"\";\n @property({ type: String })\n type = \"text\";\n @property({ type: String, reflect: true })\n size: Size = \"md\";\n /** @deprecated pass `size`. It named the size, not the kind. */\n @property({ type: String })\n kind = \"\";\n @property({ type: String })\n placeholder = \"\";\n @property({ type: Boolean })\n required = false;\n @property({ type: Boolean, reflect: true })\n focused = false;\n @property({ type: String })\n tooltip = \"\";\n @property({ type: Boolean })\n invalid = false;\n @property({ type: Boolean, reflect: true })\n validated = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n /* The current value. The value ATTRIBUTE is the default a form reset\n returns to, as on a native input: the property does not reflect, so the\n attribute keeps what the page wrote. See ValueControl. */\n @property({ type: String })\n value = \"\";\n // reflected, because a form reads the name off the element\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n // mobile keyboard controls — see the story\n @property({ type: String })\n inputmode = \"\";\n @property({ type: String })\n autocomplete = \"\";\n @property({ type: String })\n enterkeyhint = \"\";\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.(\"input\");\n }\n\n /**\n * The value used to be unreachable. The native input event escapes the\n * shadow root, but it retargets to the host, and the host had no value\n * property — so `e.target.value` was undefined and the only way to read what\n * someone typed was to reach through the shadow root.\n */\n _onInput(e: Event & { target: HTMLInputElement }) {\n this.value = e.target.value;\n // before the event, so a handler asking the form about it gets the answer\n // for what was just typed\n this._sync();\n this.dispatchEvent(new CustomEvent(\"bd-input\", {\n detail : { value: this.value, name: this.name },\n bubbles : true,\n composed: true\n }));\n }\n\n _onChange(e: Event & { target: HTMLInputElement }) {\n this.value = e.target.value;\n this.dispatchEvent(new CustomEvent(\"bd-change\", {\n detail : { value: this.value, name: this.name },\n bubbles : true,\n composed: true\n }));\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // kind said \"size\" on these three and nothing else in the system,\n // so it moved; see shared/prop-vocabulary.ts\n if (changed.has(\"kind\") && this.kind) this.size = this.kind as Size;\n if (changed.has(\"size\") || changed.has(\"kind\")) this.size = resolveSize(this.size);\n }\n\n /* focused is the field's real focus, both ways. Setting it moves keyboard\n focus into the <input> and clearing it blurs the field; focusing or\n leaving the field by hand sets it, and it reflects, so the attribute says\n whether the field has focus. It used to add a .focused class that painted\n the focus ring on a field that did not have focus -- a second, false\n indicator on any page that set it. The ring is now only the browser's\n :focus-visible, which a text field shows whenever it is focused. */\n updated(changed: PropertyValues<this>) {\n this._sync();\n this._followFocused(changed);\n }\n\n _followFocused(changed: PropertyValues<this>) {\n if (!changed.has('focused')) return;\n const input = this.shadowRoot!.querySelector('input');\n const has = this.shadowRoot!.activeElement === input;\n if (this.focused && !has) input?.focus();\n if (!this.focused && has) input?.blur();\n }\n\n render() {\n const inputClass = { sm: \"input-sm\", md: \"input-md\", lg: \"input-lg\" }[this.size];\n const labelClass = { sm: \"label-sm\", md: \"label-md\", lg: \"label-lg\" }[this.size];\n\n const disabled = this.disabled || this._formDisabled;\n const inputStateClass = disabled\n ? \"form-input--disabled\"\n : this.invalid\n ? \"form-input--error\"\n : this.validated\n ? \"form-input--success\"\n : \"\";\n\n const helpTextClass = this.invalid\n ? \"form-help-text--error\"\n : this.validated\n ? \"form-help-text--success\"\n : \"form-help-text--default\";\n\n return html`\n <div class=\"input-container\">\n ${this.label\n ? html`<label for=\"${INPUT_ID}\" class=\"form-label ${labelClass}\">\n ${this.label}\n ${this.required\n ? html`<span class=\"form-label__required\" aria-hidden=\"true\">*</span>`\n : \"\"}\n </label>`\n : nothing}\n ${keyed(this._resets, html`<input\n id=\"${INPUT_ID}\"\n class=\"form-input-bd ${inputClass} ${inputStateClass} ${this._attempted ? \"form-input--attempted\" : \"\"}\"\n type=\"${this.type}\"\n name=\"${this.name || nothing}\"\n placeholder=\"${this.placeholder}\"\n .value=\"${this.value}\"\n inputmode=\"${this.inputmode || nothing}\"\n autocomplete=\"${this.autocomplete || nothing}\"\n enterkeyhint=\"${this.enterkeyhint || nothing}\"\n ?required=\"${this.required}\"\n ?disabled=\"${disabled}\"\n aria-invalid=\"${this.invalid ? \"true\" : nothing}\"\n aria-describedby=\"${this.tooltip ? HELP_ID : nothing}\"\n @focus=\"${() => { this.focused = true; }}\"\n @blur=\"${() => { this.focused = false; }}\"\n @input=\"${this._onInput}\"\n @change=\"${this._onChange}\"\n @keydown=\"${this._onFieldKeydown}\"\n />`)}\n ${this.tooltip\n ? html`<div id=\"${HELP_ID}\" class=\"form-help-text ${helpTextClass}\">\n ${this.tooltip}\n </div>`\n : \"\"}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-custom-input\": CustomInput;\n }\n}\n"],"mappings":"A,sgBAaA,IAAMK,EAAW,eACXC,EAAU,oBAGVC,EADN,cAC0BC,EAAaC,CAAU,CAAC,AAA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qB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAf,EAAA,UAAA,YAAA,IAAA,EAAA,EAEzBN,EAAA,CAAAqB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAf,EAAA,UAAA,eAAA,IAAA,EAAA,EAEzBN,EAAA,CAAAqB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAf,EAAA,UAAA,eAAA,IAAA,EAAA,EA5C3B,EAAAN,EAAA,CAAAuB,EAAc,iBAAiB,CAAA,EAAAjB,CAAA"}
|
|
@@ -1,309 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { below } from "../shared/token-scales.js";
|
|
3
|
-
export default css `
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
font-family: var(--typography-fontFamily-sans);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.bd-installoptions-container {
|
|
10
|
-
background: var(--status-brand-surface);
|
|
11
|
-
/* the band is full-bleed; the column inside it is bd-ensemble */
|
|
12
|
-
padding-block: var(--spacing-64);
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.bd-installoptions-eyebrow {
|
|
17
|
-
color: var(--color-text-brand);
|
|
18
|
-
margin: 0 0 var(--spacing-24);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.bd-installoptions-title {
|
|
22
|
-
margin: 0 0 var(--spacing-16);
|
|
23
|
-
color: var(--color-text-primary);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.bd-installoptions-description {
|
|
27
|
-
color: var(--color-text-secondary);
|
|
28
|
-
max-width: var(--content-width-readable);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.bd-installoptions-worksin {
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
flex-wrap: wrap;
|
|
35
|
-
gap: var(--spacing-16);
|
|
36
|
-
margin: 0 0 var(--spacing-40);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.bd-installoptions-worksin-label {
|
|
40
|
-
color: var(--color-text-subtle);
|
|
41
|
-
font-family: var(--typography-fontFamily-mono);
|
|
42
|
-
font-size: var(--typography-body-xsmall-fontSize);
|
|
43
|
-
text-transform: uppercase;
|
|
44
|
-
letter-spacing: 0.06em;
|
|
45
|
-
flex-shrink: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.bd-installoptions-pills {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-wrap: wrap;
|
|
51
|
-
gap: var(--spacing-12);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.bd-installoptions-pill {
|
|
55
|
-
display: inline-flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
gap: var(--spacing-8);
|
|
58
|
-
padding: var(--spacing-8) var(--spacing-16);
|
|
59
|
-
background: var(--color-surface-default);
|
|
60
|
-
border: var(--border-width-1) solid var(--color-border-subtle);
|
|
61
|
-
border-radius: var(--radius-full);
|
|
62
|
-
font-family: var(--typography-label-default-fontFamily);
|
|
63
|
-
font-size: var(--typography-label-default-fontSize);
|
|
64
|
-
font-weight: var(--typography-label-default-fontWeight);
|
|
65
|
-
line-height: var(--typography-label-default-lineHeight);
|
|
66
|
-
letter-spacing: var(--typography-label-default-letterSpacing);
|
|
67
|
-
color: var(--color-text-primary);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
Placeholder brand marks: these render an initial letter on a solid
|
|
72
|
-
background because the real Claude Code / Codex / OpenClaw / opencode /
|
|
73
|
-
Hermes Agent logos are not in this icon set. Swap the initial+color pairs
|
|
74
|
-
for real <img>/<svg> marks as soon as brand assets are available.
|
|
75
|
-
*/
|
|
76
|
-
.bd-installoptions-pill-icon {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
width: var(--dimension-20);
|
|
81
|
-
height: var(--dimension-20);
|
|
82
|
-
border-radius: var(--shape-radius-md);
|
|
83
|
-
color: var(--color-text-inverse);
|
|
84
|
-
/* no role: a glyph, not text -- an initial standing in for a brand mark
|
|
85
|
-
until the real logos exist (see above). */
|
|
86
|
-
font-size: var(--typography-fontSize-xxs);
|
|
87
|
-
/* no role: the weight of the same glyph. */
|
|
88
|
-
font-weight: var(--typography-fontWeight-bold);
|
|
89
|
-
flex-shrink: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.bd-installoptions-grid {
|
|
93
|
-
display: grid;
|
|
94
|
-
grid-template-columns: repeat(3, 1fr);
|
|
95
|
-
gap: var(--spacing-24);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.bd-installoptions-card {
|
|
99
|
-
background: var(--color-surface-default);
|
|
100
|
-
border: var(--border-width-1) solid var(--color-border-container);
|
|
101
|
-
border-radius: var(--shape-radius-xl);
|
|
102
|
-
padding: var(--spacing-24);
|
|
103
|
-
box-sizing: border-box;
|
|
104
|
-
display: flex;
|
|
105
|
-
flex-direction: column;
|
|
106
|
-
gap: var(--spacing-12);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.bd-installoptions-card-head {
|
|
110
|
-
display: flex;
|
|
111
|
-
align-items: flex-start;
|
|
112
|
-
justify-content: space-between;
|
|
113
|
-
gap: var(--spacing-12);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.bd-installoptions-card-title {
|
|
117
|
-
margin: 0;
|
|
118
|
-
color: var(--color-text-primary);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.bd-installoptions-badge {
|
|
122
|
-
flex-shrink: 0;
|
|
123
|
-
padding: var(--spacing-4) var(--spacing-8);
|
|
124
|
-
background: var(--status-brand-surface);
|
|
125
|
-
color: var(--status-brand-text);
|
|
126
|
-
border-radius: var(--shape-radius-md);
|
|
127
|
-
font-family: var(--typography-label-extra-small-fontFamily);
|
|
128
|
-
font-size: var(--typography-label-extra-small-fontSize);
|
|
129
|
-
font-weight: var(--typography-label-extra-small-fontWeight);
|
|
130
|
-
line-height: var(--typography-label-extra-small-lineHeight);
|
|
131
|
-
letter-spacing: var(--typography-label-extra-small-letterSpacing);
|
|
132
|
-
text-transform: uppercase;
|
|
133
|
-
white-space: nowrap;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.bd-installoptions-card-description {
|
|
137
|
-
color: var(--color-text-muted);
|
|
138
|
-
margin: 0;
|
|
139
|
-
flex-grow: 1;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.bd-installoptions-code {
|
|
143
|
-
position: relative;
|
|
144
|
-
background: var(--color-surface-inverse);
|
|
145
|
-
border-radius: var(--shape-radius-md);
|
|
146
|
-
padding: var(--spacing-16);
|
|
147
|
-
box-sizing: border-box;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.bd-installoptions-code-text {
|
|
151
|
-
margin: 0;
|
|
152
|
-
color: var(--color-text-inverse);
|
|
153
|
-
font-family: var(--typography-code-block-fontFamily);
|
|
154
|
-
font-size: var(--typography-code-block-fontSize);
|
|
155
|
-
font-weight: var(--typography-code-block-fontWeight);
|
|
156
|
-
line-height: var(--typography-code-block-lineHeight);
|
|
157
|
-
letter-spacing: var(--typography-code-block-letterSpacing);
|
|
158
|
-
white-space: pre-wrap;
|
|
159
|
-
overflow-wrap: anywhere;
|
|
160
|
-
padding-inline-end: var(--spacing-56);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/* The live region "Copied" is said through; see _say() in
|
|
164
|
-
install-options.ts. Out of view, in the accessibility tree. */
|
|
165
|
-
.bd-installoptions-status {
|
|
166
|
-
position: absolute;
|
|
167
|
-
/* no token: 1px is the clip idiom's own measure, not a border -- the same
|
|
168
|
-
sanctioned literal as visually-hidden.css.ts. */
|
|
169
|
-
width: 1px;
|
|
170
|
-
height: 1px;
|
|
171
|
-
margin: -1px;
|
|
172
|
-
overflow: hidden;
|
|
173
|
-
clip-path: inset(50%);
|
|
174
|
-
white-space: nowrap;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.bd-installoptions-copy {
|
|
178
|
-
position: absolute;
|
|
179
|
-
top: var(--spacing-12);
|
|
180
|
-
inset-inline-end: var(--spacing-12);
|
|
181
|
-
padding: var(--spacing-4) var(--spacing-10);
|
|
182
|
-
/* no role: a control fill on an inverse ground -- the vocabulary gap
|
|
183
|
-
button.css.ts's SURFACE block records. Mixed from the inverse ink so
|
|
184
|
-
it follows the code block if the ground ever flips. */
|
|
185
|
-
background: color-mix(in srgb, var(--color-text-inverse) 12%, transparent);
|
|
186
|
-
color: var(--color-text-inverse);
|
|
187
|
-
border: none;
|
|
188
|
-
border-radius: var(--shape-radius-sm);
|
|
189
|
-
font-family: var(--typography-control-label-small-fontFamily);
|
|
190
|
-
font-size: var(--typography-control-label-small-fontSize);
|
|
191
|
-
font-weight: var(--typography-control-label-small-fontWeight);
|
|
192
|
-
line-height: var(--typography-control-label-small-lineHeight);
|
|
193
|
-
letter-spacing: var(--typography-control-label-small-letterSpacing);
|
|
194
|
-
cursor: pointer;
|
|
195
|
-
transition: background var(--transition-duration-fast) var(--transition-easing-smooth);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.bd-installoptions-copy:hover {
|
|
199
|
-
/* no role: as the resting fill above, one step stronger. */
|
|
200
|
-
background: color-mix(in srgb, var(--color-text-inverse) 20%, transparent);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.bd-installoptions-copy:focus-visible {
|
|
204
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
205
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
206
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
207
|
-
outer band. It was outline: none, the one ring in the package with
|
|
208
|
-
nothing left in High Contrast. */
|
|
209
|
-
outline: var(--border-width-2) solid transparent;
|
|
210
|
-
outline-offset: var(--focus-outline-offset);
|
|
211
|
-
box-shadow: var(--focus-outline-primary);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.bd-installoptions-card-link {
|
|
215
|
-
margin-top: auto;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* === "Then just ask" prompt panel (prompt-panel attribute) === */
|
|
219
|
-
|
|
220
|
-
.bd-installoptions-promptpanel {
|
|
221
|
-
margin: var(--spacing-64) 0 0;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.bd-installoptions-prompt-title {
|
|
225
|
-
margin: 0 0 var(--spacing-16);
|
|
226
|
-
color: var(--color-text-primary);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.bd-installoptions-prompt-description {
|
|
230
|
-
color: var(--color-text-secondary);
|
|
231
|
-
max-width: var(--content-width-readable);
|
|
232
|
-
margin: 0 0 var(--spacing-24);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.bd-installoptions-prompt-label {
|
|
236
|
-
display: block;
|
|
237
|
-
color: var(--color-text-subtle);
|
|
238
|
-
font-family: var(--typography-fontFamily-mono);
|
|
239
|
-
font-size: var(--typography-body-xsmall-fontSize);
|
|
240
|
-
text-transform: uppercase;
|
|
241
|
-
letter-spacing: 0.06em;
|
|
242
|
-
margin-bottom: var(--spacing-8);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.bd-installoptions-prompt-code {
|
|
246
|
-
position: relative;
|
|
247
|
-
background: var(--color-surface-inverse);
|
|
248
|
-
border: var(--border-width-2) solid var(--color-border-brand);
|
|
249
|
-
border-radius: var(--shape-radius-md);
|
|
250
|
-
padding: var(--spacing-16);
|
|
251
|
-
padding-inline-end: var(--spacing-64);
|
|
252
|
-
box-sizing: border-box;
|
|
253
|
-
margin-bottom: var(--spacing-24);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.bd-installoptions-prompt-code-text {
|
|
257
|
-
color: var(--color-text-inverse);
|
|
258
|
-
font-family: var(--typography-code-block-fontFamily);
|
|
259
|
-
font-size: var(--typography-code-block-fontSize);
|
|
260
|
-
font-weight: var(--typography-code-block-fontWeight);
|
|
261
|
-
line-height: var(--typography-code-block-lineHeight);
|
|
262
|
-
letter-spacing: var(--typography-code-block-letterSpacing);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.bd-installoptions-prompt-code-text ::slotted(*) {
|
|
266
|
-
margin: 0;
|
|
267
|
-
font: inherit;
|
|
268
|
-
color: inherit;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.bd-installoptions-copy--prompt {
|
|
272
|
-
top: var(--spacing-12);
|
|
273
|
-
inset-inline-end: var(--spacing-12);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.bd-installoptions-prompt-note {
|
|
277
|
-
background: var(--status-warning-surface);
|
|
278
|
-
border: var(--border-width-1) solid var(--status-warning-border);
|
|
279
|
-
border-radius: var(--shape-radius-md);
|
|
280
|
-
padding: var(--spacing-16) var(--spacing-20);
|
|
281
|
-
color: var(--status-warning-text);
|
|
282
|
-
font-family: var(--typography-body-small-fontFamily);
|
|
283
|
-
font-size: var(--typography-body-small-fontSize);
|
|
284
|
-
font-weight: var(--typography-body-small-fontWeight);
|
|
285
|
-
line-height: var(--typography-body-small-lineHeight);
|
|
286
|
-
letter-spacing: var(--typography-body-small-letterSpacing);
|
|
287
|
-
margin-bottom: var(--spacing-24);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.bd-installoptions-prompt-note ::slotted(*) {
|
|
291
|
-
margin: 0;
|
|
292
|
-
font: inherit;
|
|
293
|
-
color: inherit;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.bd-installoptions-prompt-footer {
|
|
297
|
-
color: var(--color-text-muted);
|
|
298
|
-
margin: 0;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/* below lg, not the 899px main shipped: three cards with code blocks need
|
|
302
|
-
the room, so they stack across 900-991 as well. */
|
|
303
|
-
@media ${unsafeCSS(below('lg'))} {
|
|
304
|
-
.bd-installoptions-grid {
|
|
305
|
-
grid-template-columns: 1fr;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}.bd-installoptions-container{background:var(--status-brand-surface);padding-block:var(--spacing-64);box-sizing:border-box}.bd-installoptions-eyebrow{color:var(--color-text-brand);margin:0 0 var(--spacing-24)}.bd-installoptions-title{margin:0 0 var(--spacing-16);color:var(--color-text-primary)}.bd-installoptions-description{color:var(--color-text-secondary);max-width:var(--content-width-readable)}.bd-installoptions-worksin{align-items:center;gap:var(--spacing-16);margin:0 0 var(--spacing-40);flex-wrap:wrap;display:flex}.bd-installoptions-worksin-label{color:var(--color-text-subtle);font-family:var(--typography-fontFamily-mono);font-size:var(--typography-body-xsmall-fontSize);text-transform:uppercase;letter-spacing:.06em;flex-shrink:0}.bd-installoptions-pills{gap:var(--spacing-12);flex-wrap:wrap;display:flex}.bd-installoptions-pill{align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-16);background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-subtle);border-radius:var(--radius-full);font-family:var(--typography-label-default-fontFamily);font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);color:var(--color-text-primary);display:inline-flex}.bd-installoptions-pill-icon{width:var(--dimension-20);height:var(--dimension-20);border-radius:var(--shape-radius-md);color:var(--color-text-inverse);font-size:var(--typography-fontSize-xxs);font-weight:var(--typography-fontWeight-bold);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.bd-installoptions-grid{gap:var(--spacing-24);grid-template-columns:repeat(3,1fr);display:grid}.bd-installoptions-card{background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--shape-radius-xl);padding:var(--spacing-24);box-sizing:border-box;gap:var(--spacing-12);flex-direction:column;display:flex}.bd-installoptions-card-head{justify-content:space-between;align-items:flex-start;gap:var(--spacing-12);display:flex}.bd-installoptions-card-title{color:var(--color-text-primary);margin:0}.bd-installoptions-badge{padding:var(--spacing-4) var(--spacing-8);background:var(--status-brand-surface);color:var(--status-brand-text);border-radius:var(--shape-radius-md);font-family:var(--typography-label-extra-small-fontFamily);font-size:var(--typography-label-extra-small-fontSize);font-weight:var(--typography-label-extra-small-fontWeight);line-height:var(--typography-label-extra-small-lineHeight);letter-spacing:var(--typography-label-extra-small-letterSpacing);text-transform:uppercase;white-space:nowrap;flex-shrink:0}.bd-installoptions-card-description{color:var(--color-text-muted);flex-grow:1;margin:0}.bd-installoptions-code{background:var(--color-surface-inverse);border-radius:var(--shape-radius-md);padding:var(--spacing-16);box-sizing:border-box;position:relative}.bd-installoptions-code-text{color:var(--color-text-inverse);font-family:var(--typography-code-block-fontFamily);font-size:var(--typography-code-block-fontSize);font-weight:var(--typography-code-block-fontWeight);line-height:var(--typography-code-block-lineHeight);letter-spacing:var(--typography-code-block-letterSpacing);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding-inline-end:var(--spacing-56)}.bd-installoptions-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.bd-installoptions-copy{top:var(--spacing-12);padding:var(--spacing-4) var(--spacing-10);background:color-mix(in srgb, var(--color-text-inverse) 12%, transparent);color:var(--color-text-inverse);border-radius:var(--shape-radius-sm);font-family:var(--typography-control-label-small-fontFamily);font-size:var(--typography-control-label-small-fontSize);font-weight:var(--typography-control-label-small-fontWeight);line-height:var(--typography-control-label-small-lineHeight);letter-spacing:var(--typography-control-label-small-letterSpacing);cursor:pointer;transition:background var(--transition-duration-fast) var(--transition-easing-smooth);border:none;position:absolute;inset-inline-end:var(--spacing-12)}.bd-installoptions-copy:hover{background:color-mix(in srgb, var(--color-text-inverse) 20%, transparent)}.bd-installoptions-copy:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}.bd-installoptions-card-link{margin-top:auto}.bd-installoptions-promptpanel{margin:var(--spacing-64) 0 0}.bd-installoptions-prompt-title{margin:0 0 var(--spacing-16);color:var(--color-text-primary)}.bd-installoptions-prompt-description{color:var(--color-text-secondary);max-width:var(--content-width-readable);margin:0 0 var(--spacing-24)}.bd-installoptions-prompt-label{color:var(--color-text-subtle);font-family:var(--typography-fontFamily-mono);font-size:var(--typography-body-xsmall-fontSize);text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--spacing-8);display:block}.bd-installoptions-prompt-code{background:var(--color-surface-inverse);border:var(--border-width-2) solid var(--color-border-brand);border-radius:var(--shape-radius-md);padding:var(--spacing-16);box-sizing:border-box;margin-bottom:var(--spacing-24);padding-inline-end:var(--spacing-64);position:relative}.bd-installoptions-prompt-code-text{color:var(--color-text-inverse);font-family:var(--typography-code-block-fontFamily);font-size:var(--typography-code-block-fontSize);font-weight:var(--typography-code-block-fontWeight);line-height:var(--typography-code-block-lineHeight);letter-spacing:var(--typography-code-block-letterSpacing)}.bd-installoptions-prompt-code-text ::slotted(*){font:inherit;color:inherit;margin:0}.bd-installoptions-copy--prompt{top:var(--spacing-12);inset-inline-end:var(--spacing-12)}.bd-installoptions-prompt-note{background:var(--status-warning-surface);border:var(--border-width-1) solid var(--status-warning-border);border-radius:var(--shape-radius-md);padding:var(--spacing-16) var(--spacing-20);color:var(--status-warning-text);font-family:var(--typography-body-small-fontFamily);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);margin-bottom:var(--spacing-24)}.bd-installoptions-prompt-note ::slotted(*){font:inherit;color:inherit;margin:0}.bd-installoptions-prompt-footer{color:var(--color-text-muted);margin:0}@media (width<992px){.bd-installoptions-grid{grid-template-columns:1fr}}`;export{t as default};
|
|
309
2
|
//# sourceMappingURL=install-options.css.js.map
|