@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,81 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import "../badge/badge.js";
|
|
13
|
-
import "../divider/divider-horizontal.js";
|
|
14
|
-
import "../heading/heading.js";
|
|
15
|
-
import "../paragraph/paragraph.js";
|
|
16
|
-
import newHeaderPricingCSS from "../pricing-cards/pricing-card-header.css.js";
|
|
17
|
-
let PricingCardHeader = class PricingCardHeader extends LitElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.title = "";
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [newHeaderPricingCSS]; }
|
|
23
|
-
get parsedBadges() {
|
|
24
|
-
return this.badges ? this.badges.split("|").map((b) => b.trim()) : [];
|
|
25
|
-
}
|
|
26
|
-
/* The title, as one heading: "Bitdefender" on a line of its own when the
|
|
27
|
-
title starts with it, and the word "Plus" in the brand colour.
|
|
28
|
-
|
|
29
|
-
A title without "Plus" used to render the words "Internet Security"
|
|
30
|
-
whatever it said -- every card but Antivirus Plus named the wrong product
|
|
31
|
-
-- inside a <template shadowrootmode> that never attaches when Lit clones
|
|
32
|
-
a template, so it sat in the heading as an inert element. A title with
|
|
33
|
-
"Plus" was split across two <h4>s, which a screen reader announced as two
|
|
34
|
-
headings. */
|
|
35
|
-
renderTitle() {
|
|
36
|
-
if (!this.title)
|
|
37
|
-
return "";
|
|
38
|
-
const match = this.title.match(/^(Bitdefender)\s+(.*)$/i);
|
|
39
|
-
const brand = match ? match[1] : "";
|
|
40
|
-
const rest = match ? match[2] : this.title;
|
|
41
|
-
const highlighted = rest.split(/\b(plus)\b/i).map((part, i) => i % 2 ? html `<span class="plus-text">${part}</span>` : part);
|
|
42
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import"../badge/badge.js";import"../divider/divider-horizontal.js";import n from"./pricing-card-header.css.js";import{LitElement as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends r{constructor(...e){super(...e),this.title=``}static{this.styles=[n]}get parsedBadges(){return this.badges?this.badges.split(`|`).map(e=>e.trim()):[]}renderTitle(){if(!this.title)return``;let e=this.title.match(/^(Bitdefender)\s+(.*)$/i),t=e?e[1]:``,n=(e?e[2]:this.title).split(/\b(plus)\b/i).map((e,t)=>t%2?i`<span class="plus-text">${e}</span>`:e);return i`
|
|
43
2
|
<bd-h as="h4" class="card-title">
|
|
44
|
-
${
|
|
3
|
+
${t?i`<span class="card-title-brand">${t}</span>`:``}${n}
|
|
45
4
|
</bd-h>
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
render() {
|
|
49
|
-
return html `
|
|
5
|
+
`}render(){return i`
|
|
50
6
|
<div class="card-header">
|
|
51
7
|
${this.renderTitle()}
|
|
52
8
|
|
|
53
|
-
${this.parsedBadges.length
|
|
54
|
-
? html `
|
|
9
|
+
${this.parsedBadges.length?i`
|
|
55
10
|
<div class="badge-wrapper multiple">
|
|
56
|
-
${this.parsedBadges.map(
|
|
11
|
+
${this.parsedBadges.map(e=>i`<bd-badge tone="primary" variant="fill">${e}</bd-badge>`)}
|
|
57
12
|
</div>
|
|
58
|
-
|
|
59
|
-
: ""}
|
|
13
|
+
`:``}
|
|
60
14
|
<bd-p variant="small" class="badge-subtitle">${this.subtitle}</bd-p>
|
|
61
15
|
<bd-divider-horizontal></bd-divider-horizontal>
|
|
62
16
|
</div>
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
__decorate([
|
|
67
|
-
property({ type: String })
|
|
68
|
-
], PricingCardHeader.prototype, "title", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
property({ type: String })
|
|
71
|
-
], PricingCardHeader.prototype, "subtitle", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
property({ type: String })
|
|
74
|
-
], PricingCardHeader.prototype, "badges", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
property({ type: Boolean })
|
|
77
|
-
], PricingCardHeader.prototype, "plus", void 0);
|
|
78
|
-
PricingCardHeader = __decorate([
|
|
79
|
-
defineElement("pricing-card-header")
|
|
80
|
-
], PricingCardHeader);
|
|
17
|
+
`}};t([a({type:String})],o.prototype,`title`,void 0),t([a({type:String})],o.prototype,`subtitle`,void 0),t([a({type:String})],o.prototype,`badges`,void 0),t([a({type:Boolean})],o.prototype,`plus`,void 0),o=t([e(`pricing-card-header`)],o);
|
|
81
18
|
//# sourceMappingURL=pricing-card-header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-card-header.js","
|
|
1
|
+
{"version":3,"file":"pricing-card-header.js","names":["newHeaderPricingCSS","_decorate","__decorate","pricing_card_header_css_default","PricingCardHeader","LitElement","_args","b","match","brand","highlighted","i","part","property","defineElement"],"sources":["../../../../src/components/pricing-cards/pricing-card-header.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/badge/badge.ts\";\nimport \"#components/divider/divider-horizontal.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport newHeaderPricingCSS from \"#components/pricing-cards/pricing-card-header.css.ts\";\n\n@defineElement(\"pricing-card-header\")\nclass PricingCardHeader extends LitElement {\n static styles = [newHeaderPricingCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n subtitle?: string;\n @property({ type: String })\n badges?: string;\n @property({ type: Boolean })\n plus?: boolean;\n\n get parsedBadges() {\n return this.badges ? this.badges.split(\"|\").map((b) => b.trim()) : [];\n }\n\n /* The title, as one heading: \"Bitdefender\" on a line of its own when the\n title starts with it, and the word \"Plus\" in the brand colour.\n\n A title without \"Plus\" used to render the words \"Internet Security\"\n whatever it said -- every card but Antivirus Plus named the wrong product\n -- inside a <template shadowrootmode> that never attaches when Lit clones\n a template, so it sat in the heading as an inert element. A title with\n \"Plus\" was split across two <h4>s, which a screen reader announced as two\n headings. */\n renderTitle() {\n if (!this.title) return \"\";\n\n const match = this.title.match(/^(Bitdefender)\\s+(.*)$/i);\n const brand = match ? match[1] : \"\";\n const rest = match ? match[2] : this.title;\n const highlighted = rest.split(/\\b(plus)\\b/i).map((part, i) =>\n i % 2 ? html`<span class=\"plus-text\">${part}</span>` : part);\n\n return html`\n <bd-h as=\"h4\" class=\"card-title\">\n ${brand ? html`<span class=\"card-title-brand\">${brand}</span>` : \"\"}${highlighted}\n </bd-h>\n `;\n }\n\n render() {\n return html`\n <div class=\"card-header\">\n ${this.renderTitle()}\n\n ${this.parsedBadges.length\n ? html`\n <div class=\"badge-wrapper multiple\">\n ${this.parsedBadges.map((b) => html`<bd-badge tone=\"primary\" variant=\"fill\">${b}</bd-badge>`)}\n </div>\n `\n : \"\"}\n <bd-p variant=\"small\" class=\"badge-subtitle\">${this.subtitle}</bd-p>\n <bd-divider-horizontal></bd-divider-horizontal>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"pricing-card-header\": PricingCardHeader;\n }\n}\n"],"mappings":"A,4aAWA,IACMI,EADN,cACgCC,CAAW,C,8BAIjC,KAAA,MAAA,E,QAHQ,KAAA,OAAA,CAACL,CAAmB,C,CAWpC,IAAI,cAAe,CACjB,OAAO,KAAK,OAAS,KAAK,OAAO,MAAM,GAAG,CAAC,CAAC,IAAK,GAAMO,EAAE,KAAK,CAAC,EAAI,CAAC,CACtE,CAWA,aAAc,CACZ,GAAI,CAAC,KAAK,MAAO,MAAO,GAExB,IAAMC,EAAQ,KAAK,MAAM,MAAM,yBAAyB,EAClDC,EAAQD,EAAQA,EAAM,GAAK,GAE3BE,GADOF,EAAQA,EAAM,GAAK,KAAK,MAAA,CACZ,MAAM,aAAa,CAAC,CAAC,KAAK,EAAM,IACvDG,EAAI,EAAI,CAAI,2BAA2BC,EAAK,SAAWA,CAAI,EAE7D,MAAO,EAAI;;UAELH,EAAQ,CAAI,kCAAkCA,EAAM,SAAW,KAAKC,EAAY;;KAGxF,CAEA,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,YAAY,EAAE;;UAEnB,KAAK,aAAa,OAChB,CAAI;;kBAEE,KAAK,aAAa,IAAK,GAAM,CAAI,2CAA2CH,EAAE,YAAY,EAAE;;cAGlG,GAAG;uDACwC,KAAK,SAAS;;;KAInE,CACF,EAvDGN,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAT,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAT,EAAA,UAAA,WAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAT,EAAA,UAAA,SAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAT,EAAA,UAAA,OAAA,IAAA,EAAA,EAV5B,EAAAH,EAAA,CAAAa,EAAc,qBAAqB,CAAA,EAAAV,CAAA"}
|
|
@@ -1,93 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* Adopted by the document (or the shadow root the card sits in) rather than
|
|
3
|
-
copied into each card, so every selector starts at the element: unscoped,
|
|
4
|
-
".price" and ".terms" would style any element of that class on the page. */
|
|
5
|
-
export default css `
|
|
6
|
-
pricing-card-pricing .pricing {
|
|
7
|
-
text-align: start;
|
|
8
|
-
margin-top: var(--spacing-16);
|
|
9
|
-
}
|
|
10
|
-
pricing-card-pricing .pricing-info {
|
|
11
|
-
display: flex;
|
|
12
|
-
gap: var(--spacing-8);
|
|
13
|
-
align-items: baseline;
|
|
14
|
-
margin-top: var(--spacing-16);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
pricing-card-pricing .original-price {
|
|
18
|
-
text-decoration: line-through;
|
|
19
|
-
font-family: var(--typography-fontFamily-sans);
|
|
20
|
-
color: var(--color-text-primary);
|
|
21
|
-
font-size: var(--typography-body-regular-fontSize);
|
|
22
|
-
margin: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
pricing-card-pricing .discount {
|
|
26
|
-
color: var(--color-text-success);
|
|
27
|
-
font-weight: bold;
|
|
28
|
-
/* -surface-strong is the step tokens.ts calls "the heavier tint, badge
|
|
29
|
-
shade", and this pill's ink is already --color-text-success, which is
|
|
30
|
-
the same green-800 --status-success-text resolves to. So the pair now
|
|
31
|
-
matches bd-badge's success variant exactly (badge.css.ts:78-79) and
|
|
32
|
-
measures the 5.93:1 that file records. Value-identical at #d1fadc. */
|
|
33
|
-
background: var(--status-success-surface-strong);
|
|
34
|
-
font-size: var(--typography-body-regular-fontSize);
|
|
35
|
-
padding: 5px;
|
|
36
|
-
border-radius: var(--radius-full);
|
|
37
|
-
font-family: var(--typography-fontFamily-sans);
|
|
38
|
-
margin: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* The price, a paragraph and not a heading: a figure the card states, not
|
|
42
|
-
the title of anything below it. As an <h3> under the card's <h4> it put an
|
|
43
|
-
out-of-order heading on every card. It keeps the look it had by reading
|
|
44
|
-
the heading-h3 role's axes directly, as the hero's final price reads
|
|
45
|
-
heading-h2. The 40px that stood here was on the bd-h host, where the atom
|
|
46
|
-
sets its own size, and never painted. */
|
|
47
|
-
pricing-card-pricing .price {
|
|
48
|
-
margin: 0;
|
|
49
|
-
text-align: start;
|
|
50
|
-
font-family: var(--typography-heading-h3-fontFamily);
|
|
51
|
-
font-size: var(--typography-heading-h3-fontSize);
|
|
52
|
-
font-weight: var(--typography-heading-h3-fontWeight);
|
|
53
|
-
line-height: var(--typography-heading-h3-lineHeight);
|
|
54
|
-
letter-spacing: var(--typography-heading-h3-letterSpacing);
|
|
55
|
-
color: var(--color-text-primary);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
pricing-card-pricing .terms {
|
|
59
|
-
font-family: var(--typography-fontFamily-sans);
|
|
60
|
-
font-size: var(--typography-label-small-fontSize);
|
|
61
|
-
color: var(--color-text-primary);
|
|
62
|
-
text-align: start;
|
|
63
|
-
margin: 0;
|
|
64
|
-
margin-top: var(--spacing-8);
|
|
65
|
-
margin-bottom: var(--spacing-16);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
pricing-card-pricing .terms a {
|
|
69
|
-
font-family: var(--typography-fontFamily-sans);
|
|
70
|
-
font-size: var(--typography-label-small-fontSize);
|
|
71
|
-
color: var(--color-text-primary);
|
|
72
|
-
text-decoration: underline;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* The two radios side by side, as the .toggle-group row they replace, and
|
|
76
|
-
the group's label kept for a screen reader only: the card's layout has
|
|
77
|
-
no line for it. */
|
|
78
|
-
pricing-card-pricing .billing::part(options) {
|
|
79
|
-
flex-direction: row;
|
|
80
|
-
gap: var(--spacing-16);
|
|
81
|
-
}
|
|
82
|
-
pricing-card-pricing .billing::part(label) {
|
|
83
|
-
position: absolute;
|
|
84
|
-
/* no token: 1px is the clip idiom's own measure, as in
|
|
85
|
-
visually-hidden.css.ts */
|
|
86
|
-
width: 1px;
|
|
87
|
-
height: 1px;
|
|
88
|
-
overflow: hidden;
|
|
89
|
-
clip-path: inset(50%);
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
}
|
|
92
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`pricing-card-pricing .pricing{text-align:start;margin-top:var(--spacing-16)}pricing-card-pricing .pricing-info{gap:var(--spacing-8);margin-top:var(--spacing-16);align-items:baseline;display:flex}pricing-card-pricing .original-price{font-family:var(--typography-fontFamily-sans);color:var(--color-text-primary);font-size:var(--typography-body-regular-fontSize);margin:0;text-decoration:line-through}pricing-card-pricing .discount{color:var(--color-text-success);background:var(--status-success-surface-strong);font-weight:700;font-size:var(--typography-body-regular-fontSize);border-radius:var(--radius-full);font-family:var(--typography-fontFamily-sans);margin:0;padding:5px}pricing-card-pricing .price{text-align:start;font-family:var(--typography-heading-h3-fontFamily);font-size:var(--typography-heading-h3-fontSize);font-weight:var(--typography-heading-h3-fontWeight);line-height:var(--typography-heading-h3-lineHeight);letter-spacing:var(--typography-heading-h3-letterSpacing);color:var(--color-text-primary);margin:0}pricing-card-pricing .terms{font-family:var(--typography-fontFamily-sans);font-size:var(--typography-label-small-fontSize);color:var(--color-text-primary);text-align:start;margin:0;margin-top:var(--spacing-8);margin-bottom:var(--spacing-16)}pricing-card-pricing .terms a{font-family:var(--typography-fontFamily-sans);font-size:var(--typography-label-small-fontSize);color:var(--color-text-primary);text-decoration:underline}pricing-card-pricing .billing::part(options){gap:var(--spacing-16);flex-direction:row}pricing-card-pricing .billing::part(label){clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}`;export{t as default};
|
|
93
2
|
//# sourceMappingURL=pricing-card-pricing.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-card-pricing.css.js","
|
|
1
|
+
{"version":3,"file":"pricing-card-pricing.css.js","names":["pricing_card_pricing_css_default"],"sources":["../../../../src/components/pricing-cards/pricing-card-pricing.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* Adopted by the document (or the shadow root the card sits in) rather than\n copied into each card, so every selector starts at the element: unscoped,\n \".price\" and \".terms\" would style any element of that class on the page. */\nexport default css`\n pricing-card-pricing .pricing {\n text-align: start;\n margin-top: var(--spacing-16);\n }\n pricing-card-pricing .pricing-info {\n display: flex;\n gap: var(--spacing-8);\n align-items: baseline;\n margin-top: var(--spacing-16);\n }\n\n pricing-card-pricing .original-price {\n text-decoration: line-through;\n font-family: var(--typography-fontFamily-sans);\n color: var(--color-text-primary);\n font-size: var(--typography-body-regular-fontSize);\n margin: 0;\n }\n\n pricing-card-pricing .discount {\n color: var(--color-text-success);\n font-weight: bold;\n /* -surface-strong is the step tokens.ts calls \"the heavier tint, badge\n shade\", and this pill's ink is already --color-text-success, which is\n the same green-800 --status-success-text resolves to. So the pair now\n matches bd-badge's success variant exactly (badge.css.ts:78-79) and\n measures the 5.93:1 that file records. Value-identical at #d1fadc. */\n background: var(--status-success-surface-strong);\n font-size: var(--typography-body-regular-fontSize);\n padding: 5px;\n border-radius: var(--radius-full);\n font-family: var(--typography-fontFamily-sans);\n margin: 0;\n }\n\n /* The price, a paragraph and not a heading: a figure the card states, not\n the title of anything below it. As an <h3> under the card's <h4> it put an\n out-of-order heading on every card. It keeps the look it had by reading\n the heading-h3 role's axes directly, as the hero's final price reads\n heading-h2. The 40px that stood here was on the bd-h host, where the atom\n sets its own size, and never painted. */\n pricing-card-pricing .price {\n margin: 0;\n text-align: start;\n font-family: var(--typography-heading-h3-fontFamily);\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n color: var(--color-text-primary);\n }\n\n pricing-card-pricing .terms {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n color: var(--color-text-primary);\n text-align: start;\n margin: 0;\n margin-top: var(--spacing-8);\n margin-bottom: var(--spacing-16);\n }\n\n pricing-card-pricing .terms a {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n color: var(--color-text-primary);\n text-decoration: underline;\n }\n\n /* The two radios side by side, as the .toggle-group row they replace, and\n the group's label kept for a screen reader only: the card's layout has\n no line for it. */\n pricing-card-pricing .billing::part(options) {\n flex-direction: row;\n gap: var(--spacing-16);\n }\n pricing-card-pricing .billing::part(label) {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, as in\n visually-hidden.css.ts */\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n`;\n"],"mappings":"A,0BAKA,IAAAA,EAAe,CAAG,0oD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import "../badge/badge.
|
|
4
|
-
import "../paragraph/paragraph.
|
|
5
|
-
import "../link/link.
|
|
6
|
-
import "../radio/radio.
|
|
7
|
-
import "../radio/radio-group.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../badge/badge.js";
|
|
4
|
+
import "../paragraph/paragraph.js";
|
|
5
|
+
import "../link/link.js";
|
|
6
|
+
import "../radio/radio.js";
|
|
7
|
+
import "../radio/radio-group.js";
|
|
8
8
|
declare const PERIODS: {
|
|
9
9
|
monthly: {
|
|
10
10
|
price: string;
|
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property, state } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import "../badge/badge.js";
|
|
13
|
-
import "../paragraph/paragraph.js";
|
|
14
|
-
import "../link/link.js";
|
|
15
|
-
import "../radio/radio.js";
|
|
16
|
-
import "../radio/radio-group.js";
|
|
17
|
-
import newPricingPricingCSS from "../pricing-cards/pricing-card-pricing.css.js";
|
|
18
|
-
import { adoptStyles } from "./adopt-styles.js";
|
|
19
|
-
/* What the store renders for each billing period, and the period it is per.
|
|
20
|
-
The toggle used to change nothing but its own radios: the card showed the
|
|
21
|
-
yearly price, labelled "/month", whichever was selected. */
|
|
22
|
-
const PERIODS = {
|
|
23
|
-
monthly: { price: "discounted-monthly||full-monthly", full: "full-monthly", per: "/month" },
|
|
24
|
-
yearly: { price: "discounted||full", full: "full", per: "/year" }
|
|
25
|
-
};
|
|
26
|
-
let PricingCardPricing = class PricingCardPricing extends LitElement {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.productId = "vsb";
|
|
30
|
-
this.devices = "5";
|
|
31
|
-
this.subscription = "1";
|
|
32
|
-
this.billingPeriod = "monthly";
|
|
33
|
-
this.dataLayerEvent = "info";
|
|
34
|
-
/** Where "terms of use" goes. Without it the words are plain text. */
|
|
35
|
-
this.termsHref = "";
|
|
36
|
-
}
|
|
37
|
-
// FOLOSEȘTE LIGHT DOM
|
|
38
|
-
createRenderRoot() {
|
|
39
|
-
return this;
|
|
40
|
-
}
|
|
41
|
-
connectedCallback() {
|
|
42
|
-
super.connectedCallback();
|
|
43
|
-
adoptStyles(this, newPricingPricingCSS);
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
const isMonthly = this.billingPeriod === "monthly";
|
|
47
|
-
const period = PERIODS[this.billingPeriod];
|
|
48
|
-
/* Each card's pair is its own group. Three cards on a page all named their
|
|
49
|
-
radios "billing", so choosing a period in one card cleared the others. */
|
|
50
|
-
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"../paragraph/paragraph.js";import"../link/link.js";import"../badge/badge.js";import{adoptStyles as n}from"./adopt-styles.js";import r from"./pricing-card-pricing.css.js";import"../radio/radio.js";import"../radio/radio-group.js";import{LitElement as i,html as a}from"lit";import{property as o,state as s}from"lit/decorators.js";var c={monthly:{price:`discounted-monthly||full-monthly`,full:`full-monthly`,per:`/month`},yearly:{price:`discounted||full`,full:`full`,per:`/year`}},l=class extends i{constructor(...e){super(...e),this.productId=`vsb`,this.devices=`5`,this.subscription=`1`,this.billingPeriod=`monthly`,this.dataLayerEvent=`info`,this.termsHref=``}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),n(this,r)}render(){let e=this.billingPeriod===`monthly`,t=c[this.billingPeriod];return a`
|
|
51
2
|
<bd-context ignore-events-parent>
|
|
52
3
|
<bd-product product-id="${this.productId}">
|
|
53
4
|
<bd-option
|
|
@@ -60,20 +11,20 @@ let PricingCardPricing = class PricingCardPricing extends LitElement {
|
|
|
60
11
|
<bd-radio
|
|
61
12
|
value="monthly"
|
|
62
13
|
label="Monthly"
|
|
63
|
-
?checked=${
|
|
14
|
+
?checked=${e}
|
|
64
15
|
@change=${this.onBillingChange}
|
|
65
16
|
></bd-radio>
|
|
66
17
|
<bd-radio
|
|
67
18
|
value="yearly"
|
|
68
19
|
label="Yearly"
|
|
69
|
-
?checked=${!
|
|
20
|
+
?checked=${!e}
|
|
70
21
|
@change=${this.onBillingChange}
|
|
71
22
|
></bd-radio>
|
|
72
23
|
</bd-radio-group>
|
|
73
24
|
|
|
74
25
|
<div class="pricing-info" data-store-hide="!it.option.price.discounted">
|
|
75
26
|
<bd-p variant="small" class="original-price">
|
|
76
|
-
<s data-store-render data-store-price="${
|
|
27
|
+
<s data-store-render data-store-price="${t.full}"></s>
|
|
77
28
|
</bd-p>
|
|
78
29
|
|
|
79
30
|
<bd-badge tone="success" variant="shade">
|
|
@@ -82,48 +33,17 @@ let PricingCardPricing = class PricingCardPricing extends LitElement {
|
|
|
82
33
|
</div>
|
|
83
34
|
|
|
84
35
|
<p class="price">
|
|
85
|
-
<span data-store-render data-store-price="${
|
|
36
|
+
<span data-store-render data-store-price="${t.price}"></span>${t.per}
|
|
86
37
|
</p>
|
|
87
38
|
|
|
88
39
|
<bd-p variant="small" class="terms">
|
|
89
40
|
First year price. Plus applicable sales tax. See
|
|
90
|
-
${this.termsHref
|
|
91
|
-
? html `<bd-link href="${this.termsHref}" font-size="sm" color="strong" underline>terms of use</bd-link>`
|
|
92
|
-
: "terms of use"}
|
|
41
|
+
${this.termsHref?a`<bd-link href="${this.termsHref}" font-size="sm" color="strong" underline>terms of use</bd-link>`:`terms of use`}
|
|
93
42
|
</bd-p>
|
|
94
43
|
</div>
|
|
95
44
|
|
|
96
45
|
</bd-option>
|
|
97
46
|
</bd-product>
|
|
98
47
|
</bd-context>
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
onBillingChange(e) {
|
|
102
|
-
const value = e.target.value;
|
|
103
|
-
if (value === "monthly" || value === "yearly") {
|
|
104
|
-
this.billingPeriod = value;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
__decorate([
|
|
109
|
-
property({ type: String, attribute: "product-id" })
|
|
110
|
-
], PricingCardPricing.prototype, "productId", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
property({ type: String })
|
|
113
|
-
], PricingCardPricing.prototype, "devices", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
property({ type: String })
|
|
116
|
-
], PricingCardPricing.prototype, "subscription", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
state()
|
|
119
|
-
], PricingCardPricing.prototype, "billingPeriod", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
property({ type: String })
|
|
122
|
-
], PricingCardPricing.prototype, "dataLayerEvent", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
property({ type: String, attribute: "terms-href" })
|
|
125
|
-
], PricingCardPricing.prototype, "termsHref", void 0);
|
|
126
|
-
PricingCardPricing = __decorate([
|
|
127
|
-
defineElement("pricing-card-pricing")
|
|
128
|
-
], PricingCardPricing);
|
|
48
|
+
`}onBillingChange(e){let t=e.target.value;(t===`monthly`||t===`yearly`)&&(this.billingPeriod=t)}};t([o({type:String,attribute:`product-id`})],l.prototype,`productId`,void 0),t([o({type:String})],l.prototype,`devices`,void 0),t([o({type:String})],l.prototype,`subscription`,void 0),t([s()],l.prototype,`billingPeriod`,void 0),t([o({type:String})],l.prototype,`dataLayerEvent`,void 0),t([o({type:String,attribute:`terms-href`})],l.prototype,`termsHref`,void 0),l=t([e(`pricing-card-pricing`)],l);
|
|
129
49
|
//# sourceMappingURL=pricing-card-pricing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-card-pricing.js","
|
|
1
|
+
{"version":3,"file":"pricing-card-pricing.js","names":["newPricingPricingCSS","_decorate","__decorate","pricing_card_pricing_css_default","PERIODS","PricingCardPricing","LitElement","_args","adoptStyles","isMonthly","period","value","property","state","defineElement"],"sources":["../../../../src/components/pricing-cards/pricing-card-pricing.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/badge/badge.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/radio/radio.ts\";\nimport \"#components/radio/radio-group.ts\";\nimport newPricingPricingCSS from \"#components/pricing-cards/pricing-card-pricing.css.ts\";\nimport { adoptStyles } from \"./adopt-styles.ts\";\n\n/* What the store renders for each billing period, and the period it is per.\n The toggle used to change nothing but its own radios: the card showed the\n yearly price, labelled \"/month\", whichever was selected. */\nconst PERIODS = {\n monthly: { price: \"discounted-monthly||full-monthly\", full: \"full-monthly\", per: \"/month\" },\n yearly : { price: \"discounted||full\", full: \"full\", per: \"/year\" }\n};\n\ntype BillingPeriod = keyof typeof PERIODS;\n\n@defineElement(\"pricing-card-pricing\")\nclass PricingCardPricing extends LitElement {\n @property({ type: String, attribute: \"product-id\" })\n productId = \"vsb\";\n @property({ type: String })\n devices = \"5\";\n @property({ type: String })\n subscription = \"1\";\n @state()\n billingPeriod: BillingPeriod = \"monthly\";\n @property({ type: String })\n dataLayerEvent = \"info\";\n /** Where \"terms of use\" goes. Without it the words are plain text. */\n @property({ type: String, attribute: \"terms-href\" })\n termsHref = \"\";\n\n // FOLOSEȘTE LIGHT DOM\n createRenderRoot() {\n return this;\n }\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, newPricingPricingCSS);\n }\n\n render() {\n const isMonthly = this.billingPeriod === \"monthly\";\n const period = PERIODS[this.billingPeriod];\n\n /* Each card's pair is its own group. Three cards on a page all named their\n radios \"billing\", so choosing a period in one card cleared the others. */\n return html`\n <bd-context ignore-events-parent>\n <bd-product product-id=\"${this.productId}\">\n <bd-option\n devices=\"${this.devices}\"\n subscription=\"${this.subscription}\"\n data-layer-event=\"${this.dataLayerEvent}\">\n\n <div class=\"pricing\">\n <bd-radio-group class=\"billing\" label=\"Billing period\" name=\"billing\">\n <bd-radio\n value=\"monthly\"\n label=\"Monthly\"\n ?checked=${isMonthly}\n @change=${this.onBillingChange}\n ></bd-radio>\n <bd-radio\n value=\"yearly\"\n label=\"Yearly\"\n ?checked=${!isMonthly}\n @change=${this.onBillingChange}\n ></bd-radio>\n </bd-radio-group>\n\n <div class=\"pricing-info\" data-store-hide=\"!it.option.price.discounted\">\n <bd-p variant=\"small\" class=\"original-price\">\n <s data-store-render data-store-price=\"${period.full}\"></s>\n </bd-p>\n\n <bd-badge tone=\"success\" variant=\"shade\">\n Save <span data-store-render data-store-discount=\"percentage\"></span>\n </bd-badge>\n</div>\n\n <p class=\"price\">\n <span data-store-render data-store-price=\"${period.price}\"></span>${period.per}\n </p>\n\n <bd-p variant=\"small\" class=\"terms\">\n First year price. Plus applicable sales tax. See\n ${this.termsHref\n ? html`<bd-link href=\"${this.termsHref}\" font-size=\"sm\" color=\"strong\" underline>terms of use</bd-link>`\n : \"terms of use\"}\n </bd-p>\n </div>\n\n </bd-option>\n </bd-product>\n </bd-context>\n `;\n }\n\n onBillingChange(e: Event) {\n const value = (e.target as HTMLElementTagNameMap[\"bd-radio\"]).value;\n if (value === \"monthly\" || value === \"yearly\") {\n this.billingPeriod = value;\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"pricing-card-pricing\": PricingCardPricing;\n }\n}\n"],"mappings":"A,mfAgBA,IAAMI,EAAU,CACd,QAAS,CAAE,MAAO,mCAAoC,KAAM,eAAgB,IAAK,QAAS,EAC1F,OAAS,CAAE,MAAO,mBAAoB,KAAM,OAAQ,IAAK,OAAQ,CACnE,EAKMC,EADN,cACiCC,CAAW,C,8BAE9B,KAAA,UAAA,MAEF,KAAA,QAAA,IAEK,KAAA,aAAA,IAEgB,KAAA,cAAA,UAEd,KAAA,eAAA,OAGL,KAAA,UAAA,E,CAGZ,kBAAmB,CACjB,OAAO,IACT,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EACxBE,EAAY,KAAMR,CAAoB,CACxC,CAEA,QAAS,CACP,IAAMS,EAAY,KAAK,gBAAkB,UACnCC,EAASN,EAAQ,KAAK,eAI5B,MAAO,EAAI;;kCAEmB,KAAK,UAAU;;uBAE1B,KAAK,QAAQ;4BACR,KAAK,aAAa;gCACd,KAAK,eAAe;;;;;;;6BAOvBK,EAAU;4BACX,KAAK,gBAAgB;;;;;6BAKpB,CAACA,EAAU;4BACZ,KAAK,gBAAgB;;;;;;6CAMJC,EAAO,KAAK;;;;;;;;;4DASGA,EAAO,MAAM,WAAWA,EAAO,IAAI;;;;;kBAK7E,KAAK,UACH,CAAI,kBAAkB,KAAK,UAAU,kEACrC,eAAe;;;;;;;KAQjC,CAEA,gBAAgB,EAAU,CACxB,IAAMC,EAAS,EAAE,OAA6C,OAC1DA,IAAU,WAAaA,IAAU,YACnC,KAAK,cAAgBA,EAEzB,CACF,EAxFGV,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAP,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDJ,EAAA,CAAAW,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAW,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,eAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAY,EAAM,CAAA,EAAAR,EAAA,UAAA,gBAAA,IAAA,EAAA,EAENJ,EAAA,CAAAW,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,iBAAA,IAAA,EAAA,EAGzBJ,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAP,EAAA,UAAA,YAAA,IAAA,EAAA,EAbpD,EAAAJ,EAAA,CAAAa,EAAc,sBAAsB,CAAA,EAAAT,CAAA"}
|
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
.show-more-toggle {
|
|
4
|
-
/* flex, not block, because the + and - are icon atoms now rather than
|
|
5
|
-
characters in the label. A glyph sat on the text baseline and was
|
|
6
|
-
centred by text-align; an atom is an inline-flex box of its own, so the
|
|
7
|
-
button aligns it against the label instead. gap replaces the space that
|
|
8
|
-
used to be part of the string. */
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
gap: var(--spacing-8);
|
|
13
|
-
background: none;
|
|
14
|
-
border: none;
|
|
15
|
-
color: var(--color-text-brand);
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
font-size: var(--typography-fontSize-lg);
|
|
18
|
-
text-align: center;
|
|
19
|
-
margin: 1rem auto;
|
|
20
|
-
font-family: var(--typography-fontFamily-sans);
|
|
21
|
-
font-weight: var(--typography-fontWeight-semibold);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.feature-items {
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
gap: 0.5rem;
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`.show-more-toggle{justify-content:center;align-items:center;gap:var(--spacing-8);color:var(--color-text-brand);cursor:pointer;font-size:var(--typography-fontSize-lg);text-align:center;font-family:var(--typography-fontFamily-sans);font-weight:var(--typography-fontWeight-semibold);background:0 0;border:none;margin:1rem auto;display:flex}.feature-items{flex-direction:column;gap:.5rem;display:flex}`;export{t as default};
|
|
30
2
|
//# sourceMappingURL=pricing-card-show-more.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-card-show-more.css.js","
|
|
1
|
+
{"version":3,"file":"pricing-card-show-more.css.js","names":["pricing_card_show_more_css_default"],"sources":["../../../../src/components/pricing-cards/pricing-card-show-more.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n .show-more-toggle {\n /* flex, not block, because the + and - are icon atoms now rather than\n characters in the label. A glyph sat on the text baseline and was\n centred by text-align; an atom is an inline-flex box of its own, so the\n button aligns it against the label instead. gap replaces the space that\n used to be part of the string. */\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-8);\n background: none;\n border: none;\n color: var(--color-text-brand);\n cursor: pointer;\n font-size: var(--typography-fontSize-lg);\n text-align: center;\n margin: 1rem auto;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-fontWeight-semibold);\n }\n\n .feature-items {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n`;\n"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,gZ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import "../icons/plus-icon.
|
|
4
|
-
import "../icons/minus-icon.
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../icons/plus-icon.js";
|
|
4
|
+
import "../icons/minus-icon.js";
|
|
5
5
|
declare class PricingCardShowMore extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
7
7
|
expanded: boolean;
|
|
@@ -1,48 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from 'lit';
|
|
8
|
-
import { property } from 'lit/decorators.js';
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import newShowMorePricingCSS from "../pricing-cards/pricing-card-show-more.css.js";
|
|
13
|
-
import "../icons/plus-icon.js";
|
|
14
|
-
import "../icons/minus-icon.js";
|
|
15
|
-
let PricingCardShowMore = class PricingCardShowMore extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.expanded = false;
|
|
19
|
-
}
|
|
20
|
-
static { this.styles = [newShowMorePricingCSS]; }
|
|
21
|
-
toggleFeatures() {
|
|
22
|
-
this.expanded = !this.expanded;
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
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"../icons/minus-icon.js";import"../icons/plus-icon.js";import n from"./pricing-card-show-more.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends r{constructor(...e){super(...e),this.expanded=!1}static{this.styles=[n]}toggleFeatures(){this.expanded=!this.expanded}render(){return i`
|
|
26
2
|
<button
|
|
27
3
|
@click="${this.toggleFeatures}"
|
|
28
4
|
class="show-more-toggle"
|
|
29
5
|
aria-expanded="${this.expanded}"
|
|
30
|
-
aria-controls="${this.expanded
|
|
6
|
+
aria-controls="${this.expanded?`feature-items`:a}"
|
|
31
7
|
>
|
|
32
|
-
${this.expanded
|
|
33
|
-
? html `<bd-minus-icon aria-hidden="true"></bd-minus-icon>Hide features`
|
|
34
|
-
: html `<bd-plus-icon aria-hidden="true"></bd-plus-icon>Show more features`}
|
|
8
|
+
${this.expanded?i`<bd-minus-icon aria-hidden="true"></bd-minus-icon>Hide features`:i`<bd-plus-icon aria-hidden="true"></bd-plus-icon>Show more features`}
|
|
35
9
|
</button>
|
|
36
|
-
${this.expanded
|
|
37
|
-
|
|
38
|
-
: ''}
|
|
39
|
-
`;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
__decorate([
|
|
43
|
-
property({ type: Boolean })
|
|
44
|
-
], PricingCardShowMore.prototype, "expanded", void 0);
|
|
45
|
-
PricingCardShowMore = __decorate([
|
|
46
|
-
defineElement('pricing-card-show-more')
|
|
47
|
-
], PricingCardShowMore);
|
|
10
|
+
${this.expanded?i`<div id="feature-items" class="feature-items"><slot></slot></div>`:``}
|
|
11
|
+
`}};t([o({type:Boolean})],s.prototype,`expanded`,void 0),s=t([e(`pricing-card-show-more`)],s);
|
|
48
12
|
//# sourceMappingURL=pricing-card-show-more.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-card-show-more.js","
|
|
1
|
+
{"version":3,"file":"pricing-card-show-more.js","names":["newShowMorePricingCSS","_decorate","__decorate","pricing_card_show_more_css_default","PricingCardShowMore","LitElement","_args","nothing","property","defineElement"],"sources":["../../../../src/components/pricing-cards/pricing-card-show-more.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport newShowMorePricingCSS from \"#components/pricing-cards/pricing-card-show-more.css.ts\";\nimport \"#components/icons/plus-icon.ts\";\nimport \"#components/icons/minus-icon.ts\";\n\n@defineElement('pricing-card-show-more')\nclass PricingCardShowMore extends LitElement {\n static styles = [newShowMorePricingCSS];\n\n @property({ type: Boolean })\n expanded = false;\n\n\n toggleFeatures() {\n this.expanded = !this.expanded;\n }\n\n render() {\n return html`\n <button\n @click=\"${this.toggleFeatures}\"\n class=\"show-more-toggle\"\n aria-expanded=\"${this.expanded}\"\n aria-controls=\"${this.expanded ? \"feature-items\" : nothing}\"\n >\n ${this.expanded\n ? html`<bd-minus-icon aria-hidden=\"true\"></bd-minus-icon>Hide features`\n : html`<bd-plus-icon aria-hidden=\"true\"></bd-plus-icon>Show more features`}\n </button>\n ${this.expanded\n ? html`<div id=\"feature-items\" class=\"feature-items\"><slot></slot></div>`\n : ''}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'pricing-card-show-more': PricingCardShowMore;\n }\n}\n"],"mappings":"A,sXASA,IACMI,EADN,cACkCC,CAAW,C,8BAIhC,KAAA,SAAA,E,QAHK,KAAA,OAAA,CAACL,CAAqB,C,CAMtC,gBAAiB,CACf,KAAK,SAAW,CAAC,KAAK,QACxB,CAEA,QAAS,CACP,MAAO,EAAI;;kBAEG,KAAK,eAAe;;yBAEb,KAAK,SAAS;yBACd,KAAK,SAAW,gBAAkBO,EAAQ;;UAEzD,KAAK,SACH,CAAI,kEACJ,CAAI,qEAAqE;;QAE7E,KAAK,SACH,CAAI,oEACJ,GAAG;KAEX,CACF,EAzBGN,EAAA,CAAAO,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAJ,EAAA,UAAA,WAAA,IAAA,EAAA,EAJ5B,EAAAH,EAAA,CAAAQ,EAAc,wBAAwB,CAAA,EAAAL,CAAA"}
|