@automattic/plans-grid-next 1.0.0
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 +4 -0
- package/README.md +3 -0
- package/dist/cjs/__mocks__/wpcom-proxy-request.js +17 -0
- package/dist/cjs/__mocks__/wpcom-proxy-request.js.map +1 -0
- package/dist/cjs/_media-queries.scss +14 -0
- package/dist/cjs/_mixins.scss +15 -0
- package/dist/cjs/_shared.scss +174 -0
- package/dist/cjs/components/comparison-grid/index.js +527 -0
- package/dist/cjs/components/comparison-grid/index.js.map +1 -0
- package/dist/cjs/components/comparison-grid/index.stories.js +74 -0
- package/dist/cjs/components/comparison-grid/index.stories.js.map +1 -0
- package/dist/cjs/components/comparison-grid/style.scss +318 -0
- package/dist/cjs/components/dropdown-option.js +33 -0
- package/dist/cjs/components/dropdown-option.js.map +1 -0
- package/dist/cjs/components/features-grid/billing-timeframes.js +15 -0
- package/dist/cjs/components/features-grid/billing-timeframes.js.map +1 -0
- package/dist/cjs/components/features-grid/client-logo-list/client-list.js +106 -0
- package/dist/cjs/components/features-grid/client-logo-list/client-list.js.map +1 -0
- package/dist/cjs/components/features-grid/client-logo-list/index.js +17 -0
- package/dist/cjs/components/features-grid/client-logo-list/index.js.map +1 -0
- package/dist/cjs/components/features-grid/client-logo-list/style.scss +52 -0
- package/dist/cjs/components/features-grid/enterprise-features.js +41 -0
- package/dist/cjs/components/features-grid/enterprise-features.js.map +1 -0
- package/dist/cjs/components/features-grid/index.js +130 -0
- package/dist/cjs/components/features-grid/index.js.map +1 -0
- package/dist/cjs/components/features-grid/index.stories.js +112 -0
- package/dist/cjs/components/features-grid/index.stories.js.map +1 -0
- package/dist/cjs/components/features-grid/mobile-free-domain.js +25 -0
- package/dist/cjs/components/features-grid/mobile-free-domain.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-features-list.js +56 -0
- package/dist/cjs/components/features-grid/plan-features-list.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-headers.js +15 -0
- package/dist/cjs/components/features-grid/plan-headers.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-logos.js +12 -0
- package/dist/cjs/components/features-grid/plan-logos.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-prices.js +14 -0
- package/dist/cjs/components/features-grid/plan-prices.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-tagline.js +12 -0
- package/dist/cjs/components/features-grid/plan-tagline.js.map +1 -0
- package/dist/cjs/components/features-grid/previous-features-included-title.js +36 -0
- package/dist/cjs/components/features-grid/previous-features-included-title.js.map +1 -0
- package/dist/cjs/components/features-grid/spotlight-plan.js +24 -0
- package/dist/cjs/components/features-grid/spotlight-plan.js.map +1 -0
- package/dist/cjs/components/features-grid/spotlight-plan.scss +5 -0
- package/dist/cjs/components/features-grid/style.scss +630 -0
- package/dist/cjs/components/features-grid/table.js +38 -0
- package/dist/cjs/components/features-grid/table.js.map +1 -0
- package/dist/cjs/components/features-grid/top-buttons.js +15 -0
- package/dist/cjs/components/features-grid/top-buttons.js.map +1 -0
- package/dist/cjs/components/features.js +72 -0
- package/dist/cjs/components/features.js.map +1 -0
- package/dist/cjs/components/item.js +9 -0
- package/dist/cjs/components/item.js.map +1 -0
- package/dist/cjs/components/plan-button/index.js +21 -0
- package/dist/cjs/components/plan-button/index.js.map +1 -0
- package/dist/cjs/components/plan-button/style.scss +179 -0
- package/dist/cjs/components/plan-div-td-container.js +9 -0
- package/dist/cjs/components/plan-div-td-container.js.map +1 -0
- package/dist/cjs/components/plan-logo.js +45 -0
- package/dist/cjs/components/plan-logo.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-dropdown.js +39 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-dropdown.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-selector.js +12 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-selector.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-toggle.js +55 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-toggle.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/popup-messages.js +108 -0
- package/dist/cjs/components/plan-type-selector/components/popup-messages.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-interval-options.js +56 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-interval-options.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discount.js +45 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discount.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js +68 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/index.js +27 -0
- package/dist/cjs/components/plan-type-selector/index.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/style.scss +196 -0
- package/dist/cjs/components/plans-2023-tooltip.js +46 -0
- package/dist/cjs/components/plans-2023-tooltip.js.map +1 -0
- package/dist/cjs/components/popular-badge.js +16 -0
- package/dist/cjs/components/popular-badge.js.map +1 -0
- package/dist/cjs/components/shared/action-button/index.js +91 -0
- package/dist/cjs/components/shared/action-button/index.js.map +1 -0
- package/dist/cjs/components/shared/action-button/style.scss +12 -0
- package/dist/cjs/components/shared/billing-timeframe/index.js +58 -0
- package/dist/cjs/components/shared/billing-timeframe/index.js.map +1 -0
- package/dist/cjs/components/shared/header-price/header-price-context.js +14 -0
- package/dist/cjs/components/shared/header-price/header-price-context.js.map +1 -0
- package/dist/cjs/components/shared/header-price/index.js +102 -0
- package/dist/cjs/components/shared/header-price/index.js.map +1 -0
- package/dist/cjs/components/shared/header-price/style.scss +112 -0
- package/dist/cjs/components/shared/plan-pill/index.js +6 -0
- package/dist/cjs/components/shared/plan-pill/index.js.map +1 -0
- package/dist/cjs/components/shared/plan-pill/style.scss +30 -0
- package/dist/cjs/components/shared/storage/components/plan-storage.js +28 -0
- package/dist/cjs/components/shared/storage/components/plan-storage.js.map +1 -0
- package/dist/cjs/components/shared/storage/components/storage-dropdown.js +96 -0
- package/dist/cjs/components/shared/storage/components/storage-dropdown.js.map +1 -0
- package/dist/cjs/components/shared/storage/components/storage-feature-label.js +40 -0
- package/dist/cjs/components/shared/storage/components/storage-feature-label.js.map +1 -0
- package/dist/cjs/components/shared/storage/constants.js +6 -0
- package/dist/cjs/components/shared/storage/constants.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-default-storage-option.js +26 -0
- package/dist/cjs/components/shared/storage/hooks/use-default-storage-option.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-plan-storage.js +29 -0
- package/dist/cjs/components/shared/storage/hooks/use-plan-storage.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-purchased-storage-add-on.js +51 -0
- package/dist/cjs/components/shared/storage/hooks/use-purchased-storage-add-on.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-storage-string.js +13 -0
- package/dist/cjs/components/shared/storage/hooks/use-storage-string.js.map +1 -0
- package/dist/cjs/components/shared/storage/index.js +14 -0
- package/dist/cjs/components/shared/storage/index.js.map +1 -0
- package/dist/cjs/components/sticky-container.js +74 -0
- package/dist/cjs/components/sticky-container.js.map +1 -0
- package/dist/cjs/constants.js +11 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/css-mixins.js +14 -0
- package/dist/cjs/css-mixins.js.map +1 -0
- package/dist/cjs/fixtures/plans.js +1542 -0
- package/dist/cjs/fixtures/plans.js.map +1 -0
- package/dist/cjs/fixtures/sites-plans.js +458 -0
- package/dist/cjs/fixtures/sites-plans.js.map +1 -0
- package/dist/cjs/fixtures/sites-purchases.js +133 -0
- package/dist/cjs/fixtures/sites-purchases.js.map +1 -0
- package/dist/cjs/grid-context.js +40 -0
- package/dist/cjs/grid-context.js.map +1 -0
- package/dist/cjs/hooks/data-store/is-popular-plan.js +9 -0
- package/dist/cjs/hooks/data-store/is-popular-plan.js.map +1 -0
- package/dist/cjs/hooks/data-store/types.js +3 -0
- package/dist/cjs/hooks/data-store/types.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plan-for-spotlight.js +18 -0
- package/dist/cjs/hooks/data-store/use-grid-plan-for-spotlight.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-comparison-grid.js +55 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-comparison-grid.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-features-grid.js +56 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-features-grid.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plans.js +254 -0
- package/dist/cjs/hooks/data-store/use-grid-plans.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-highlight-labels.js +60 -0
- package/dist/cjs/hooks/data-store/use-highlight-labels.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-highlighted-features.js +35 -0
- package/dist/cjs/hooks/data-store/use-highlighted-features.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-plan-billing-description.js +216 -0
- package/dist/cjs/hooks/data-store/use-plan-billing-description.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-plan-features-for-grid-plans.js +133 -0
- package/dist/cjs/hooks/data-store/use-plan-features-for-grid-plans.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-plans-from-types.js +30 -0
- package/dist/cjs/hooks/data-store/use-plans-from-types.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js +90 -0
- package/dist/cjs/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js.map +1 -0
- package/dist/cjs/hooks/use-grid-size.js +33 -0
- package/dist/cjs/hooks/use-grid-size.js.map +1 -0
- package/dist/cjs/hooks/use-highlight-adjacency-matrix.js +31 -0
- package/dist/cjs/hooks/use-highlight-adjacency-matrix.js.map +1 -0
- package/dist/cjs/hooks/use-is-large-currency.js +69 -0
- package/dist/cjs/hooks/use-is-large-currency.js.map +1 -0
- package/dist/cjs/hooks/use-manage-tooltip-toggle.js +29 -0
- package/dist/cjs/hooks/use-manage-tooltip-toggle.js.map +1 -0
- package/dist/cjs/hooks/use-plan-pricing-info-from-grid-plans.js +17 -0
- package/dist/cjs/hooks/use-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/cjs/index.js +36 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/lib/filter-unused-features-object.js +19 -0
- package/dist/cjs/lib/filter-unused-features-object.js.map +1 -0
- package/dist/cjs/lib/get-plan-features-object.js +11 -0
- package/dist/cjs/lib/get-plan-features-object.js.map +1 -0
- package/dist/cjs/lib/get-plan-pricing-info-from-grid-plans.js +16 -0
- package/dist/cjs/lib/get-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/cjs/lib/is-same-plan.js +12 -0
- package/dist/cjs/lib/is-same-plan.js.map +1 -0
- package/dist/cjs/lib/sort-plan-properties.js +39 -0
- package/dist/cjs/lib/sort-plan-properties.js.map +1 -0
- package/dist/cjs/lib/touch-detect/index.js +20 -0
- package/dist/cjs/lib/touch-detect/index.js.map +1 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/__mocks__/wpcom-proxy-request.js +11 -0
- package/dist/esm/__mocks__/wpcom-proxy-request.js.map +1 -0
- package/dist/esm/_media-queries.scss +14 -0
- package/dist/esm/_mixins.scss +15 -0
- package/dist/esm/_shared.scss +174 -0
- package/dist/esm/components/comparison-grid/index.js +524 -0
- package/dist/esm/components/comparison-grid/index.js.map +1 -0
- package/dist/esm/components/comparison-grid/index.stories.js +71 -0
- package/dist/esm/components/comparison-grid/index.stories.js.map +1 -0
- package/dist/esm/components/comparison-grid/style.scss +318 -0
- package/dist/esm/components/dropdown-option.js +30 -0
- package/dist/esm/components/dropdown-option.js.map +1 -0
- package/dist/esm/components/features-grid/billing-timeframes.js +12 -0
- package/dist/esm/components/features-grid/billing-timeframes.js.map +1 -0
- package/dist/esm/components/features-grid/client-logo-list/client-list.js +104 -0
- package/dist/esm/components/features-grid/client-logo-list/client-list.js.map +1 -0
- package/dist/esm/components/features-grid/client-logo-list/index.js +14 -0
- package/dist/esm/components/features-grid/client-logo-list/index.js.map +1 -0
- package/dist/esm/components/features-grid/client-logo-list/style.scss +52 -0
- package/dist/esm/components/features-grid/enterprise-features.js +38 -0
- package/dist/esm/components/features-grid/enterprise-features.js.map +1 -0
- package/dist/esm/components/features-grid/index.js +127 -0
- package/dist/esm/components/features-grid/index.js.map +1 -0
- package/dist/esm/components/features-grid/index.stories.js +109 -0
- package/dist/esm/components/features-grid/index.stories.js.map +1 -0
- package/dist/esm/components/features-grid/mobile-free-domain.js +23 -0
- package/dist/esm/components/features-grid/mobile-free-domain.js.map +1 -0
- package/dist/esm/components/features-grid/plan-features-list.js +53 -0
- package/dist/esm/components/features-grid/plan-features-list.js.map +1 -0
- package/dist/esm/components/features-grid/plan-headers.js +12 -0
- package/dist/esm/components/features-grid/plan-headers.js.map +1 -0
- package/dist/esm/components/features-grid/plan-logos.js +9 -0
- package/dist/esm/components/features-grid/plan-logos.js.map +1 -0
- package/dist/esm/components/features-grid/plan-prices.js +11 -0
- package/dist/esm/components/features-grid/plan-prices.js.map +1 -0
- package/dist/esm/components/features-grid/plan-tagline.js +9 -0
- package/dist/esm/components/features-grid/plan-tagline.js.map +1 -0
- package/dist/esm/components/features-grid/previous-features-included-title.js +33 -0
- package/dist/esm/components/features-grid/previous-features-included-title.js.map +1 -0
- package/dist/esm/components/features-grid/spotlight-plan.js +21 -0
- package/dist/esm/components/features-grid/spotlight-plan.js.map +1 -0
- package/dist/esm/components/features-grid/spotlight-plan.scss +5 -0
- package/dist/esm/components/features-grid/style.scss +630 -0
- package/dist/esm/components/features-grid/table.js +35 -0
- package/dist/esm/components/features-grid/table.js.map +1 -0
- package/dist/esm/components/features-grid/top-buttons.js +12 -0
- package/dist/esm/components/features-grid/top-buttons.js.map +1 -0
- package/dist/esm/components/features.js +69 -0
- package/dist/esm/components/features.js.map +1 -0
- package/dist/esm/components/item.js +5 -0
- package/dist/esm/components/item.js.map +1 -0
- package/dist/esm/components/plan-button/index.js +18 -0
- package/dist/esm/components/plan-button/index.js.map +1 -0
- package/dist/esm/components/plan-button/style.scss +179 -0
- package/dist/esm/components/plan-div-td-container.js +7 -0
- package/dist/esm/components/plan-div-td-container.js.map +1 -0
- package/dist/esm/components/plan-logo.js +42 -0
- package/dist/esm/components/plan-logo.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-dropdown.js +34 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-dropdown.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-selector.js +8 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-selector.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-toggle.js +50 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-toggle.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/popup-messages.js +105 -0
- package/dist/esm/components/plan-type-selector/components/popup-messages.js.map +1 -0
- package/dist/esm/components/plan-type-selector/hooks/use-interval-options.js +52 -0
- package/dist/esm/components/plan-type-selector/hooks/use-interval-options.js.map +1 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discount.js +42 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discount.js.map +1 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js +65 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js.map +1 -0
- package/dist/esm/components/plan-type-selector/index.js +24 -0
- package/dist/esm/components/plan-type-selector/index.js.map +1 -0
- package/dist/esm/components/plan-type-selector/style.scss +196 -0
- package/dist/esm/components/plans-2023-tooltip.js +41 -0
- package/dist/esm/components/plans-2023-tooltip.js.map +1 -0
- package/dist/esm/components/popular-badge.js +13 -0
- package/dist/esm/components/popular-badge.js.map +1 -0
- package/dist/esm/components/shared/action-button/index.js +88 -0
- package/dist/esm/components/shared/action-button/index.js.map +1 -0
- package/dist/esm/components/shared/action-button/style.scss +12 -0
- package/dist/esm/components/shared/billing-timeframe/index.js +55 -0
- package/dist/esm/components/shared/billing-timeframe/index.js.map +1 -0
- package/dist/esm/components/shared/header-price/header-price-context.js +10 -0
- package/dist/esm/components/shared/header-price/header-price-context.js.map +1 -0
- package/dist/esm/components/shared/header-price/index.js +99 -0
- package/dist/esm/components/shared/header-price/index.js.map +1 -0
- package/dist/esm/components/shared/header-price/style.scss +112 -0
- package/dist/esm/components/shared/plan-pill/index.js +4 -0
- package/dist/esm/components/shared/plan-pill/index.js.map +1 -0
- package/dist/esm/components/shared/plan-pill/style.scss +30 -0
- package/dist/esm/components/shared/storage/components/plan-storage.js +25 -0
- package/dist/esm/components/shared/storage/components/plan-storage.js.map +1 -0
- package/dist/esm/components/shared/storage/components/storage-dropdown.js +93 -0
- package/dist/esm/components/shared/storage/components/storage-dropdown.js.map +1 -0
- package/dist/esm/components/shared/storage/components/storage-feature-label.js +37 -0
- package/dist/esm/components/shared/storage/components/storage-feature-label.js.map +1 -0
- package/dist/esm/components/shared/storage/constants.js +3 -0
- package/dist/esm/components/shared/storage/constants.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-default-storage-option.js +22 -0
- package/dist/esm/components/shared/storage/hooks/use-default-storage-option.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-plan-storage.js +27 -0
- package/dist/esm/components/shared/storage/hooks/use-plan-storage.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-purchased-storage-add-on.js +48 -0
- package/dist/esm/components/shared/storage/hooks/use-purchased-storage-add-on.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-storage-string.js +11 -0
- package/dist/esm/components/shared/storage/hooks/use-storage-string.js.map +1 -0
- package/dist/esm/components/shared/storage/index.js +9 -0
- package/dist/esm/components/shared/storage/index.js.map +1 -0
- package/dist/esm/components/sticky-container.js +69 -0
- package/dist/esm/components/sticky-container.js.map +1 -0
- package/dist/esm/constants.js +8 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/css-mixins.js +10 -0
- package/dist/esm/css-mixins.js.map +1 -0
- package/dist/esm/fixtures/plans.js +1540 -0
- package/dist/esm/fixtures/plans.js.map +1 -0
- package/dist/esm/fixtures/sites-plans.js +456 -0
- package/dist/esm/fixtures/sites-plans.js.map +1 -0
- package/dist/esm/fixtures/sites-purchases.js +131 -0
- package/dist/esm/fixtures/sites-purchases.js.map +1 -0
- package/dist/esm/grid-context.js +36 -0
- package/dist/esm/grid-context.js.map +1 -0
- package/dist/esm/hooks/data-store/is-popular-plan.js +5 -0
- package/dist/esm/hooks/data-store/is-popular-plan.js.map +1 -0
- package/dist/esm/hooks/data-store/types.js +2 -0
- package/dist/esm/hooks/data-store/types.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plan-for-spotlight.js +16 -0
- package/dist/esm/hooks/data-store/use-grid-plan-for-spotlight.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-comparison-grid.js +52 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-comparison-grid.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-features-grid.js +53 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-features-grid.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plans.js +249 -0
- package/dist/esm/hooks/data-store/use-grid-plans.js.map +1 -0
- package/dist/esm/hooks/data-store/use-highlight-labels.js +58 -0
- package/dist/esm/hooks/data-store/use-highlight-labels.js.map +1 -0
- package/dist/esm/hooks/data-store/use-highlighted-features.js +33 -0
- package/dist/esm/hooks/data-store/use-highlighted-features.js.map +1 -0
- package/dist/esm/hooks/data-store/use-plan-billing-description.js +213 -0
- package/dist/esm/hooks/data-store/use-plan-billing-description.js.map +1 -0
- package/dist/esm/hooks/data-store/use-plan-features-for-grid-plans.js +130 -0
- package/dist/esm/hooks/data-store/use-plan-features-for-grid-plans.js.map +1 -0
- package/dist/esm/hooks/data-store/use-plans-from-types.js +27 -0
- package/dist/esm/hooks/data-store/use-plans-from-types.js.map +1 -0
- package/dist/esm/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js +87 -0
- package/dist/esm/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js.map +1 -0
- package/dist/esm/hooks/use-grid-size.js +29 -0
- package/dist/esm/hooks/use-grid-size.js.map +1 -0
- package/dist/esm/hooks/use-highlight-adjacency-matrix.js +29 -0
- package/dist/esm/hooks/use-highlight-adjacency-matrix.js.map +1 -0
- package/dist/esm/hooks/use-is-large-currency.js +66 -0
- package/dist/esm/hooks/use-is-large-currency.js.map +1 -0
- package/dist/esm/hooks/use-manage-tooltip-toggle.js +25 -0
- package/dist/esm/hooks/use-manage-tooltip-toggle.js.map +1 -0
- package/dist/esm/hooks/use-plan-pricing-info-from-grid-plans.js +13 -0
- package/dist/esm/hooks/use-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/filter-unused-features-object.js +17 -0
- package/dist/esm/lib/filter-unused-features-object.js.map +1 -0
- package/dist/esm/lib/get-plan-features-object.js +9 -0
- package/dist/esm/lib/get-plan-features-object.js.map +1 -0
- package/dist/esm/lib/get-plan-pricing-info-from-grid-plans.js +12 -0
- package/dist/esm/lib/get-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/esm/lib/is-same-plan.js +8 -0
- package/dist/esm/lib/is-same-plan.js.map +1 -0
- package/dist/esm/lib/sort-plan-properties.js +35 -0
- package/dist/esm/lib/sort-plan-properties.js.map +1 -0
- package/dist/esm/lib/touch-detect/index.js +16 -0
- package/dist/esm/lib/touch-detect/index.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/tsconfig-cjs.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/__mocks__/wpcom-proxy-request.d.ts +8 -0
- package/dist/types/__mocks__/wpcom-proxy-request.d.ts.map +1 -0
- package/dist/types/components/comparison-grid/index.d.ts +5 -0
- package/dist/types/components/comparison-grid/index.d.ts.map +1 -0
- package/dist/types/components/comparison-grid/index.stories.d.ts +66 -0
- package/dist/types/components/comparison-grid/index.stories.d.ts.map +1 -0
- package/dist/types/components/dropdown-option.d.ts +10 -0
- package/dist/types/components/dropdown-option.d.ts.map +1 -0
- package/dist/types/components/features-grid/billing-timeframes.d.ts +11 -0
- package/dist/types/components/features-grid/billing-timeframes.d.ts.map +1 -0
- package/dist/types/components/features-grid/client-logo-list/client-list.d.ts +11 -0
- package/dist/types/components/features-grid/client-logo-list/client-list.d.ts.map +1 -0
- package/dist/types/components/features-grid/client-logo-list/index.d.ts +4 -0
- package/dist/types/components/features-grid/client-logo-list/index.d.ts.map +1 -0
- package/dist/types/components/features-grid/enterprise-features.d.ts +11 -0
- package/dist/types/components/features-grid/enterprise-features.d.ts.map +1 -0
- package/dist/types/components/features-grid/index.d.ts +5 -0
- package/dist/types/components/features-grid/index.d.ts.map +1 -0
- package/dist/types/components/features-grid/index.stories.d.ts +173 -0
- package/dist/types/components/features-grid/index.stories.d.ts.map +1 -0
- package/dist/types/components/features-grid/mobile-free-domain.d.ts +8 -0
- package/dist/types/components/features-grid/mobile-free-domain.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-features-list.d.ts +31 -0
- package/dist/types/components/features-grid/plan-features-list.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-headers.d.ts +10 -0
- package/dist/types/components/features-grid/plan-headers.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-logos.d.ts +11 -0
- package/dist/types/components/features-grid/plan-logos.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-prices.d.ts +11 -0
- package/dist/types/components/features-grid/plan-prices.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-tagline.d.ts +10 -0
- package/dist/types/components/features-grid/plan-tagline.d.ts.map +1 -0
- package/dist/types/components/features-grid/previous-features-included-title.d.ts +10 -0
- package/dist/types/components/features-grid/previous-features-included-title.d.ts.map +1 -0
- package/dist/types/components/features-grid/spotlight-plan.d.ts +17 -0
- package/dist/types/components/features-grid/spotlight-plan.d.ts.map +1 -0
- package/dist/types/components/features-grid/table.d.ts +26 -0
- package/dist/types/components/features-grid/table.d.ts.map +1 -0
- package/dist/types/components/features-grid/top-buttons.d.ts +14 -0
- package/dist/types/components/features-grid/top-buttons.d.ts.map +1 -0
- package/dist/types/components/features.d.ts +17 -0
- package/dist/types/components/features.d.ts.map +1 -0
- package/dist/types/components/item.d.ts +5 -0
- package/dist/types/components/item.d.ts.map +1 -0
- package/dist/types/components/plan-button/index.d.ts +17 -0
- package/dist/types/components/plan-button/index.d.ts.map +1 -0
- package/dist/types/components/plan-div-td-container.d.ts +7 -0
- package/dist/types/components/plan-div-td-container.d.ts.map +1 -0
- package/dist/types/components/plan-logo.d.ts +12 -0
- package/dist/types/components/plan-logo.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/interval-type-dropdown.d.ts +4 -0
- package/dist/types/components/plan-type-selector/components/interval-type-dropdown.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/interval-type-selector.d.ts +4 -0
- package/dist/types/components/plan-type-selector/components/interval-type-selector.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/interval-type-toggle.d.ts +4 -0
- package/dist/types/components/plan-type-selector/components/interval-type-toggle.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/popup-messages.d.ts +9 -0
- package/dist/types/components/plan-type-selector/components/popup-messages.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/hooks/use-interval-options.d.ts +11 -0
- package/dist/types/components/plan-type-selector/hooks/use-interval-options.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discount.d.ts +4 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discount.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.d.ts +10 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/index.d.ts +6 -0
- package/dist/types/components/plan-type-selector/index.d.ts.map +1 -0
- package/dist/types/components/plans-2023-tooltip.d.ts +11 -0
- package/dist/types/components/plans-2023-tooltip.d.ts.map +1 -0
- package/dist/types/components/popular-badge.d.ts +9 -0
- package/dist/types/components/popular-badge.d.ts.map +1 -0
- package/dist/types/components/shared/action-button/index.d.ts +19 -0
- package/dist/types/components/shared/action-button/index.d.ts.map +1 -0
- package/dist/types/components/shared/billing-timeframe/index.d.ts +8 -0
- package/dist/types/components/shared/billing-timeframe/index.d.ts.map +1 -0
- package/dist/types/components/shared/header-price/header-price-context.d.ts +12 -0
- package/dist/types/components/shared/header-price/header-price-context.d.ts.map +1 -0
- package/dist/types/components/shared/header-price/index.d.ts +11 -0
- package/dist/types/components/shared/header-price/index.d.ts.map +1 -0
- package/dist/types/components/shared/plan-pill/index.d.ts +3 -0
- package/dist/types/components/shared/plan-pill/index.d.ts.map +1 -0
- package/dist/types/components/shared/storage/components/plan-storage.d.ts +13 -0
- package/dist/types/components/shared/storage/components/plan-storage.d.ts.map +1 -0
- package/dist/types/components/shared/storage/components/storage-dropdown.d.ts +9 -0
- package/dist/types/components/shared/storage/components/storage-dropdown.d.ts.map +1 -0
- package/dist/types/components/shared/storage/components/storage-feature-label.d.ts +7 -0
- package/dist/types/components/shared/storage/components/storage-feature-label.d.ts.map +1 -0
- package/dist/types/components/shared/storage/constants.d.ts +2 -0
- package/dist/types/components/shared/storage/constants.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-default-storage-option.d.ts +14 -0
- package/dist/types/components/shared/storage/hooks/use-default-storage-option.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-plan-storage.d.ts +4 -0
- package/dist/types/components/shared/storage/hooks/use-plan-storage.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-purchased-storage-add-on.d.ts +3 -0
- package/dist/types/components/shared/storage/hooks/use-purchased-storage-add-on.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-storage-string.d.ts +4 -0
- package/dist/types/components/shared/storage/hooks/use-storage-string.d.ts.map +1 -0
- package/dist/types/components/shared/storage/index.d.ts +9 -0
- package/dist/types/components/shared/storage/index.d.ts.map +1 -0
- package/dist/types/components/sticky-container.d.ts +33 -0
- package/dist/types/components/sticky-container.d.ts.map +1 -0
- package/dist/types/constants.d.ts +2 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/css-mixins.d.ts +3 -0
- package/dist/types/css-mixins.d.ts.map +1 -0
- package/dist/types/fixtures/plans.d.ts +201 -0
- package/dist/types/fixtures/plans.d.ts.map +1 -0
- package/dist/types/fixtures/sites-plans.d.ts +457 -0
- package/dist/types/fixtures/sites-plans.d.ts.map +1 -0
- package/dist/types/fixtures/sites-purchases.d.ts +96 -0
- package/dist/types/fixtures/sites-purchases.d.ts.map +1 -0
- package/dist/types/grid-context.d.ts +40 -0
- package/dist/types/grid-context.d.ts.map +1 -0
- package/dist/types/hooks/data-store/is-popular-plan.d.ts +2 -0
- package/dist/types/hooks/data-store/is-popular-plan.d.ts.map +1 -0
- package/dist/types/hooks/data-store/types.d.ts +40 -0
- package/dist/types/hooks/data-store/types.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plan-for-spotlight.d.ts +10 -0
- package/dist/types/hooks/data-store/use-grid-plan-for-spotlight.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-comparison-grid.d.ts +5 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-comparison-grid.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-features-grid.d.ts +5 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-features-grid.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plans.d.ts +13 -0
- package/dist/types/hooks/data-store/use-grid-plans.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-highlight-labels.d.ts +20 -0
- package/dist/types/hooks/data-store/use-highlight-labels.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-highlighted-features.d.ts +22 -0
- package/dist/types/hooks/data-store/use-highlighted-features.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-plan-billing-description.d.ts +16 -0
- package/dist/types/hooks/data-store/use-plan-billing-description.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-plan-features-for-grid-plans.d.ts +21 -0
- package/dist/types/hooks/data-store/use-plan-features-for-grid-plans.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-plans-from-types.d.ts +10 -0
- package/dist/types/hooks/data-store/use-plans-from-types.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-restructured-plan-features-for-comparison-grid.d.ts +15 -0
- package/dist/types/hooks/data-store/use-restructured-plan-features-for-comparison-grid.d.ts.map +1 -0
- package/dist/types/hooks/use-grid-size.d.ts +18 -0
- package/dist/types/hooks/use-grid-size.d.ts.map +1 -0
- package/dist/types/hooks/use-highlight-adjacency-matrix.d.ts +15 -0
- package/dist/types/hooks/use-highlight-adjacency-matrix.d.ts.map +1 -0
- package/dist/types/hooks/use-is-large-currency.d.ts +16 -0
- package/dist/types/hooks/use-is-large-currency.d.ts.map +1 -0
- package/dist/types/hooks/use-manage-tooltip-toggle.d.ts +3 -0
- package/dist/types/hooks/use-manage-tooltip-toggle.d.ts.map +1 -0
- package/dist/types/hooks/use-plan-pricing-info-from-grid-plans.d.ts +11 -0
- package/dist/types/hooks/use-plan-pricing-info-from-grid-plans.d.ts.map +1 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/filter-unused-features-object.d.ts +8 -0
- package/dist/types/lib/filter-unused-features-object.d.ts.map +1 -0
- package/dist/types/lib/get-plan-features-object.d.ts +4 -0
- package/dist/types/lib/get-plan-features-object.d.ts.map +1 -0
- package/dist/types/lib/get-plan-pricing-info-from-grid-plans.d.ts +9 -0
- package/dist/types/lib/get-plan-pricing-info-from-grid-plans.d.ts.map +1 -0
- package/dist/types/lib/is-same-plan.d.ts +3 -0
- package/dist/types/lib/is-same-plan.d.ts.map +1 -0
- package/dist/types/lib/sort-plan-properties.d.ts +3 -0
- package/dist/types/lib/sort-plan-properties.d.ts.map +1 -0
- package/dist/types/lib/touch-detect/index.d.ts +11 -0
- package/dist/types/lib/touch-detect/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +225 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +83 -0
- package/src/__mocks__/wpcom-proxy-request.js +13 -0
- package/src/_media-queries.scss +14 -0
- package/src/_mixins.scss +15 -0
- package/src/_shared.scss +174 -0
- package/src/components/comparison-grid/README.md +3 -0
- package/src/components/comparison-grid/index.stories.tsx +91 -0
- package/src/components/comparison-grid/index.tsx +1215 -0
- package/src/components/comparison-grid/style.scss +318 -0
- package/src/components/dropdown-option.tsx +44 -0
- package/src/components/features-grid/README.md +3 -0
- package/src/components/features-grid/billing-timeframes.tsx +37 -0
- package/src/components/features-grid/client-logo-list/client-list.tsx +199 -0
- package/src/components/features-grid/client-logo-list/index.tsx +24 -0
- package/src/components/features-grid/client-logo-list/style.scss +52 -0
- package/src/components/features-grid/enterprise-features.tsx +101 -0
- package/src/components/features-grid/index.stories.tsx +143 -0
- package/src/components/features-grid/index.tsx +442 -0
- package/src/components/features-grid/mobile-free-domain.tsx +51 -0
- package/src/components/features-grid/plan-features-list.tsx +187 -0
- package/src/components/features-grid/plan-headers.tsx +31 -0
- package/src/components/features-grid/plan-logos.tsx +27 -0
- package/src/components/features-grid/plan-prices.tsx +37 -0
- package/src/components/features-grid/plan-tagline.tsx +25 -0
- package/src/components/features-grid/previous-features-included-title.tsx +66 -0
- package/src/components/features-grid/spotlight-plan.scss +5 -0
- package/src/components/features-grid/spotlight-plan.tsx +77 -0
- package/src/components/features-grid/style.scss +630 -0
- package/src/components/features-grid/table.tsx +185 -0
- package/src/components/features-grid/top-buttons.tsx +49 -0
- package/src/components/features.tsx +168 -0
- package/src/components/item.tsx +9 -0
- package/src/components/plan-button/index.tsx +59 -0
- package/src/components/plan-button/style.scss +179 -0
- package/src/components/plan-div-td-container.tsx +15 -0
- package/src/components/plan-logo.tsx +111 -0
- package/src/components/plan-type-selector/components/interval-type-dropdown.tsx +70 -0
- package/src/components/plan-type-selector/components/interval-type-selector.tsx +13 -0
- package/src/components/plan-type-selector/components/interval-type-toggle.tsx +100 -0
- package/src/components/plan-type-selector/components/popup-messages.tsx +128 -0
- package/src/components/plan-type-selector/hooks/use-interval-options.tsx +89 -0
- package/src/components/plan-type-selector/hooks/use-max-discount.ts +64 -0
- package/src/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.ts +99 -0
- package/src/components/plan-type-selector/index.tsx +50 -0
- package/src/components/plan-type-selector/style.scss +196 -0
- package/src/components/plans-2023-tooltip.tsx +85 -0
- package/src/components/popular-badge.tsx +30 -0
- package/src/components/shared/README.md +1 -0
- package/src/components/shared/action-button/index.tsx +205 -0
- package/src/components/shared/action-button/style.scss +12 -0
- package/src/components/shared/billing-timeframe/index.tsx +106 -0
- package/src/components/shared/header-price/header-price-context.tsx +24 -0
- package/src/components/shared/header-price/index.tsx +278 -0
- package/src/components/shared/header-price/style.scss +112 -0
- package/src/components/shared/plan-pill/index.jsx +7 -0
- package/src/components/shared/plan-pill/style.scss +30 -0
- package/src/components/shared/storage/components/plan-storage.tsx +51 -0
- package/src/components/shared/storage/components/storage-dropdown.tsx +187 -0
- package/src/components/shared/storage/components/storage-feature-label.tsx +68 -0
- package/src/components/shared/storage/constants.ts +3 -0
- package/src/components/shared/storage/hooks/use-default-storage-option.ts +34 -0
- package/src/components/shared/storage/hooks/use-plan-storage.ts +41 -0
- package/src/components/shared/storage/hooks/use-purchased-storage-add-on.ts +53 -0
- package/src/components/shared/storage/hooks/use-storage-string.ts +13 -0
- package/src/components/shared/storage/index.ts +9 -0
- package/src/components/sticky-container.tsx +146 -0
- package/src/components/test/actions-button.tsx +397 -0
- package/src/components/test/billing-timeframe.tsx +341 -0
- package/src/components/test/header-price.tsx +189 -0
- package/src/components/test/plan-type-selector.tsx +44 -0
- package/src/constants.ts +13 -0
- package/src/css-mixins.tsx +11 -0
- package/src/fixtures/plans.ts +1539 -0
- package/src/fixtures/sites-plans.ts +455 -0
- package/src/fixtures/sites-purchases.ts +130 -0
- package/src/grid-context.tsx +104 -0
- package/src/hooks/data-store/is-popular-plan.ts +5 -0
- package/src/hooks/data-store/types.ts +41 -0
- package/src/hooks/data-store/use-grid-plan-for-spotlight.ts +35 -0
- package/src/hooks/data-store/use-grid-plans-for-comparison-grid.ts +81 -0
- package/src/hooks/data-store/use-grid-plans-for-features-grid.ts +79 -0
- package/src/hooks/data-store/use-grid-plans.tsx +360 -0
- package/src/hooks/data-store/use-highlight-labels.ts +88 -0
- package/src/hooks/data-store/use-highlighted-features.ts +51 -0
- package/src/hooks/data-store/use-plan-billing-description.tsx +309 -0
- package/src/hooks/data-store/use-plan-features-for-grid-plans.ts +219 -0
- package/src/hooks/data-store/use-plans-from-types.ts +51 -0
- package/src/hooks/data-store/use-restructured-plan-features-for-comparison-grid.ts +158 -0
- package/src/hooks/test/use-is-large-currency.ts +69 -0
- package/src/hooks/use-grid-size.ts +46 -0
- package/src/hooks/use-highlight-adjacency-matrix.ts +48 -0
- package/src/hooks/use-is-large-currency.ts +91 -0
- package/src/hooks/use-manage-tooltip-toggle.ts +30 -0
- package/src/hooks/use-plan-pricing-info-from-grid-plans.ts +36 -0
- package/src/index.tsx +46 -0
- package/src/lib/filter-unused-features-object.ts +31 -0
- package/src/lib/get-plan-features-object.ts +12 -0
- package/src/lib/get-plan-pricing-info-from-grid-plans.ts +31 -0
- package/src/lib/is-same-plan.ts +8 -0
- package/src/lib/sort-plan-properties.ts +46 -0
- package/src/lib/test/filter-plan-features-object.ts +65 -0
- package/src/lib/test/sort-plan-properties.ts +104 -0
- package/src/lib/touch-detect/README.md +11 -0
- package/src/lib/touch-detect/index.js +17 -0
- package/src/types.ts +340 -0
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
@import "../../shared";
|
|
2
|
+
|
|
3
|
+
.plan-features-2023-grid__header {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
padding-inline: 20px 0;
|
|
8
|
+
padding-block: 0 8px;
|
|
9
|
+
background-color: var(--color-surface);
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.plan-features-2023-grid__header-logo {
|
|
15
|
+
padding-left: 20px;
|
|
16
|
+
|
|
17
|
+
@include plans-grid-medium-large {
|
|
18
|
+
margin-top: 36px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.plan-features-2023-grid__table-top & {
|
|
22
|
+
@include plans-grid-large {
|
|
23
|
+
margin-top: 62px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.plan-features-2023-grid__plan-logo {
|
|
29
|
+
margin-bottom: 9px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.plan-features-2023-grid__header-text {
|
|
33
|
+
flex: 1;
|
|
34
|
+
padding: 6px 0 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.plan-features-2023-grid__actions-signup-plan-text {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.plan-features-2023-grid__actions-downgrade-context-mobile {
|
|
42
|
+
font-size: $font-body-extra-small;
|
|
43
|
+
margin-top: 10px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.plans-grid-next-features-grid__mobile-plan-card-foldable-container {
|
|
47
|
+
&.foldable-card.card {
|
|
48
|
+
box-shadow: unset;
|
|
49
|
+
margin-top: 24px;
|
|
50
|
+
|
|
51
|
+
.foldable-card__main {
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
font-size: $font-body-small;
|
|
54
|
+
letter-spacing: -0.24px;
|
|
55
|
+
line-height: 20px;
|
|
56
|
+
|
|
57
|
+
* {
|
|
58
|
+
color: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.foldable-card__expand .gridicon {
|
|
62
|
+
width: 14px;
|
|
63
|
+
fill: currentColor;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.is-compact .foldable-card__header {
|
|
68
|
+
padding: 0 20px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.is-expanded {
|
|
72
|
+
margin-top: 24px;
|
|
73
|
+
|
|
74
|
+
.foldable-card__content {
|
|
75
|
+
border-top: none;
|
|
76
|
+
padding: 12px 0 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.plans-grid-next-features-grid__mobile-plan-card.is-free-plan & {
|
|
81
|
+
.foldable-card__main {
|
|
82
|
+
color: var(--studio-blue-50);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.plans-grid-next-features-grid__mobile-plan-card.is-personal-plan & {
|
|
87
|
+
.foldable-card__main {
|
|
88
|
+
color: var(--studio-blue-60);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.plans-grid-next-features-grid__mobile-plan-card.is-premium-plan & {
|
|
93
|
+
.foldable-card__main {
|
|
94
|
+
color: var(--studio-blue-70);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.plans-grid-next-features-grid__mobile-plan-card.is-business-plan & {
|
|
99
|
+
.foldable-card__main {
|
|
100
|
+
color: var(--studio-woocommerce-purple-50);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.plans-grid-next-features-grid__mobile-plan-card.is-ecommerce-plan & {
|
|
105
|
+
.foldable-card__main {
|
|
106
|
+
color: var(--studio-woocommerce-purple-60);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.plans-grid-next-features-grid__mobile-plan-card.is-wpcom-enterprise-plan & {
|
|
111
|
+
.foldable-card__main {
|
|
112
|
+
color: var(--studio-gray-80);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.plans-grid-next-features-grid__mobile-plan-card-no-foldable-container {
|
|
119
|
+
margin-top: 24px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.plan-features-2023-grid__mobile-view {
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
align-items: stretch;
|
|
126
|
+
gap: 20px;
|
|
127
|
+
margin: 0 auto;
|
|
128
|
+
max-width: $mobile-card-max-width;
|
|
129
|
+
|
|
130
|
+
.plans-grid-next-features-grid__mobile-plan-card {
|
|
131
|
+
background-color: var(--studio-white);
|
|
132
|
+
border: 1px solid #e0e0e0;
|
|
133
|
+
/* stylelint-disable-next-line */
|
|
134
|
+
border-radius: 5px;
|
|
135
|
+
padding: 38px 0 20px 0;
|
|
136
|
+
|
|
137
|
+
/*
|
|
138
|
+
* TODO: Remove/refactor this once we have a better way to handle.
|
|
139
|
+
* .is-section-plans refers to external context.
|
|
140
|
+
*/
|
|
141
|
+
@include plans-grid-medium-large {
|
|
142
|
+
.is-section-plans & {
|
|
143
|
+
margin-left: 0;
|
|
144
|
+
margin-right: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:first-of-type {
|
|
149
|
+
margin-top: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.plan-features-2023-grid__table-item {
|
|
153
|
+
.plans-grid-next-plan-storage {
|
|
154
|
+
padding-top: 0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.plan-features-2023-grid__highlighted-feature .plan-features-2023-grid__item {
|
|
160
|
+
padding-bottom: 24px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.plan-features-2023-grid__table {
|
|
165
|
+
font-size: $font-body-small;
|
|
166
|
+
color: var(--color-text-subtle);
|
|
167
|
+
table-layout: fixed;
|
|
168
|
+
border: 1px solid #e0e0e0;
|
|
169
|
+
border-radius: 5px; /* stylelint-disable-line */
|
|
170
|
+
background-color: #fff;
|
|
171
|
+
margin: 0 auto;
|
|
172
|
+
border-spacing: 0;
|
|
173
|
+
width: 100%;
|
|
174
|
+
|
|
175
|
+
&.has-highlighted-plan {
|
|
176
|
+
// margin (not padding) to not break internal borders/layout
|
|
177
|
+
margin-top: 35px; // enough to cover `plans-grid__popular-badge` repositioning (top: -35px)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.has-1-cols {
|
|
181
|
+
max-width: $table-cell-max-width;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.has-2-cols {
|
|
185
|
+
max-width: $table-cell-max-width * 2;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.has-3-cols {
|
|
189
|
+
max-width: $table-cell-max-width * 3;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.has-4-cols {
|
|
193
|
+
max-width: $table-cell-max-width * 4;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.plan-features-2023-grid__header-title {
|
|
198
|
+
margin-top: 0;
|
|
199
|
+
margin-bottom: 5px;
|
|
200
|
+
font-size: $font-title-large;
|
|
201
|
+
line-height: 0.7;
|
|
202
|
+
color: var(--studio-gray-100);
|
|
203
|
+
font-weight: 400;
|
|
204
|
+
@include onboarding-font-recoleta;
|
|
205
|
+
letter-spacing: 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.plan-features-2023-grid__header-tagline {
|
|
209
|
+
font-size: $font-body;
|
|
210
|
+
line-height: 24px;
|
|
211
|
+
color: var(--studio-gray-80);
|
|
212
|
+
font-weight: 400;
|
|
213
|
+
padding: 0 20px 24px 20px;
|
|
214
|
+
|
|
215
|
+
@include plans-grid-medium-large {
|
|
216
|
+
font-size: $font-body-small;
|
|
217
|
+
line-height: 20px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@include plans-grid-large {
|
|
221
|
+
font-size: 0.813rem; /* stylelint-disable-line */
|
|
222
|
+
line-height: 16px;
|
|
223
|
+
padding-bottom: 8px;
|
|
224
|
+
min-height: 50px;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.plan-features-2023-grid__table-item {
|
|
229
|
+
text-align: left;
|
|
230
|
+
transition: opacity 0.05s;
|
|
231
|
+
border: none;
|
|
232
|
+
background-color: var(--color-surface);
|
|
233
|
+
position: relative;
|
|
234
|
+
vertical-align: top;
|
|
235
|
+
|
|
236
|
+
.is-bold {
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&.is-top-buttons {
|
|
241
|
+
padding: 0 20px;
|
|
242
|
+
@include plans-grid-medium-large {
|
|
243
|
+
padding-top: 16px;
|
|
244
|
+
padding-bottom: 16px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@include plans-grid-medium-large {
|
|
249
|
+
// The .plan-features-2023-grid__table-item is used to render the plan spotlight which doesn't
|
|
250
|
+
// use a table layout, but borders are only appropriate in table layout.
|
|
251
|
+
&:is(td) {
|
|
252
|
+
border-left: solid 1px #e0e0e0;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.plan-features-2023-grid__desktop-view,
|
|
258
|
+
.plan-features-2023-grid__tablet-view {
|
|
259
|
+
.plan-features-2023-grid__table-item {
|
|
260
|
+
max-width: $table-cell-max-width;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.plan-features-2023-grid__plan-spotlight {
|
|
265
|
+
background-color: var(--studio-white);
|
|
266
|
+
position: relative;
|
|
267
|
+
max-width: 100%;
|
|
268
|
+
margin-bottom: 64px;
|
|
269
|
+
border: 1px solid #e0e0e0;
|
|
270
|
+
/* stylelint-disable-next-line scales/radii */
|
|
271
|
+
border-radius: 5px;
|
|
272
|
+
display: flex;
|
|
273
|
+
justify-content: space-between;
|
|
274
|
+
|
|
275
|
+
div.spotlight-plan__buttons {
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
justify-content: center;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
div.plan-features-2023-grid__table-item {
|
|
282
|
+
border: none;
|
|
283
|
+
|
|
284
|
+
&.plan-features-2023-grid__header-billing-info {
|
|
285
|
+
padding-bottom: 16px;
|
|
286
|
+
|
|
287
|
+
@include plans-grid-medium-large {
|
|
288
|
+
padding-bottom: 16px;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&.popular-plan-parent-class .plan-features-2023-grid__popular-badge {
|
|
293
|
+
padding-bottom: 23px;
|
|
294
|
+
@include plans-grid-medium-large {
|
|
295
|
+
position: unset;
|
|
296
|
+
border: none;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.plan-features-2023-grid__header-title {
|
|
301
|
+
margin-top: 24px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.plan-features-2023-grid__header-tagline {
|
|
305
|
+
min-height: 0;
|
|
306
|
+
padding-bottom: 16px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.plan-features-2023-grid__header-logo {
|
|
310
|
+
display: none;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.plans-grid-next-features-grid__feature-group-title {
|
|
316
|
+
font-weight: 600;
|
|
317
|
+
color: var(--studio-gray-80);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.plans-grid-next-features-grid__feature-group-row {
|
|
321
|
+
> .plan-features-2023-grid__table-item {
|
|
322
|
+
padding-top: 24px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* This is only relevant to match the styling for the Enterprise plan's parter logos,
|
|
327
|
+
* which should probably be cleaned-up/refactored instead
|
|
328
|
+
*/
|
|
329
|
+
&.is-first-feature-group-row > .plan-features-2023-grid__table-item {
|
|
330
|
+
@include plans-grid-medium-large {
|
|
331
|
+
padding-top: 14px;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&.is-reduced-feature-group-spacing > .plan-features-2023-grid__table-item {
|
|
336
|
+
padding-top: 0;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.plan-features-2023-grid__item-info {
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
flex: 1 0 0;
|
|
344
|
+
width: 100%;
|
|
345
|
+
|
|
346
|
+
.plan-features-2023-grid__item-title {
|
|
347
|
+
color: var(--studio-gray-80);
|
|
348
|
+
font-size: $font-body-small;
|
|
349
|
+
font-weight: 400;
|
|
350
|
+
line-height: 20px;
|
|
351
|
+
overflow-wrap: break-word;
|
|
352
|
+
margin: 0;
|
|
353
|
+
flex: 1 0 0;
|
|
354
|
+
width: 100%;
|
|
355
|
+
|
|
356
|
+
&.is-bold {
|
|
357
|
+
font-weight: 600;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@include plans-grid-medium-large {
|
|
361
|
+
font-size: $font-body-extra-small;
|
|
362
|
+
line-height: 16px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&:not(.is-available) {
|
|
367
|
+
color: var(--studio-gray-20);
|
|
368
|
+
|
|
369
|
+
.plan-features-2023-grid__item-title {
|
|
370
|
+
text-decoration: line-through;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.plan-features-2023-grid__item-sub-feature-list {
|
|
375
|
+
margin-bottom: 0;
|
|
376
|
+
& > li {
|
|
377
|
+
margin-top: 8px;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.plan-features-2023-grid__row:last-of-type .plan-features-2023-grid__table-item {
|
|
383
|
+
border-bottom: solid 1px var(--color-neutral-5);
|
|
384
|
+
|
|
385
|
+
&.is-last-feature {
|
|
386
|
+
.plan-features-2023-grid__item-info {
|
|
387
|
+
padding-bottom: 30px;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.plan-features-2023-grid__item {
|
|
393
|
+
padding: 0 20px 12px;
|
|
394
|
+
text-align: left;
|
|
395
|
+
|
|
396
|
+
&.plan-features-2023-grid__item-available {
|
|
397
|
+
display: flex;
|
|
398
|
+
flex-direction: column;
|
|
399
|
+
position: relative;
|
|
400
|
+
|
|
401
|
+
& .plan-features-2023-grid__item-info-container {
|
|
402
|
+
display: flex;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.plan-features-2023-grid__common-title + & {
|
|
407
|
+
padding-top: 24px;
|
|
408
|
+
|
|
409
|
+
@include plans-grid-medium-large {
|
|
410
|
+
padding-top: 14px;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.plan-features-2023-grid__item-logos {
|
|
416
|
+
padding-top: 28px;
|
|
417
|
+
|
|
418
|
+
@include plans-grid-medium-large {
|
|
419
|
+
margin-right: -16px;
|
|
420
|
+
padding-top: 18px;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.plan-features-2023-grid__content {
|
|
425
|
+
.plan-features-2023-grid__table-bottom {
|
|
426
|
+
margin-top: 54px;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
432
|
+
.plan-features-2023-grid__table-item {
|
|
433
|
+
.plan-features-2023-grid__common-title {
|
|
434
|
+
@include plans-grid-medium-large {
|
|
435
|
+
margin-top: 20px;
|
|
436
|
+
font-size: $font-body-extra-small;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&.plan-features-2023-grid__header-billing-info {
|
|
441
|
+
@include plans-grid-medium-large {
|
|
442
|
+
padding-bottom: 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.plans-grid-next__billing-timeframe-vip-price {
|
|
446
|
+
@include plans-grid-medium-large {
|
|
447
|
+
font-size: $font-body-small;
|
|
448
|
+
line-height: 20px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@include plans-grid-large {
|
|
452
|
+
font-size: $font-body-extra-small;
|
|
453
|
+
line-height: 16px;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
&.popular-plan-parent-class {
|
|
459
|
+
.plan-features-2023-grid__popular-badge {
|
|
460
|
+
@include plans-grid-medium-large {
|
|
461
|
+
position: absolute;
|
|
462
|
+
top: -35px; // at -35px this covers the top border of the table, including its top-right radius, as intended
|
|
463
|
+
right: -1px;
|
|
464
|
+
border-color: #e0e0e0;
|
|
465
|
+
border-width: 1px 1px 0 1px;
|
|
466
|
+
/* stylelint-disable-next-line scales/radii */
|
|
467
|
+
border-radius: 5px 5px 0 0;
|
|
468
|
+
border-style: solid;
|
|
469
|
+
padding-top: 20px;
|
|
470
|
+
margin-bottom: 0;
|
|
471
|
+
|
|
472
|
+
.plans-grid__plan-pill {
|
|
473
|
+
transform: translate(20px, 0);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* TODO clk consolidate with the rest above
|
|
482
|
+
*/
|
|
483
|
+
.plans-grid-next {
|
|
484
|
+
// insignificant padding important to prevent parent/child margins from collapsing
|
|
485
|
+
// creates a barrier between parent/child elements
|
|
486
|
+
// the alternative (oveflow: auto) would break the sticky behavior on the headers
|
|
487
|
+
padding: 1px;
|
|
488
|
+
|
|
489
|
+
.plan-features-2023-grid__table-item {
|
|
490
|
+
border-right: none;
|
|
491
|
+
background-color: transparent;
|
|
492
|
+
|
|
493
|
+
// The extra `:is(td)` is needed so this rule is at the same specificity as the rule
|
|
494
|
+
// which originally added the border-left, which uses an `:is` selector.
|
|
495
|
+
&:first-of-type:is(td) {
|
|
496
|
+
border-left: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
&.plan-features-2023-grid__header-billing-info {
|
|
500
|
+
color: var(--studio-gray-50);
|
|
501
|
+
font-weight: 400;
|
|
502
|
+
font-size: $font-body-extra-small;
|
|
503
|
+
padding: 0 19px 24px 20px;
|
|
504
|
+
|
|
505
|
+
.plans-grid-next__billing-timeframe-vip-price {
|
|
506
|
+
font-size: $font-body;
|
|
507
|
+
line-height: 24px;
|
|
508
|
+
font-weight: 400;
|
|
509
|
+
color: var(--studio-gray-80);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
&.popular-plan-parent-class {
|
|
514
|
+
position: relative;
|
|
515
|
+
|
|
516
|
+
.plan-features-2023-grid__popular-badge {
|
|
517
|
+
margin-bottom: 24px;
|
|
518
|
+
width: 100%;
|
|
519
|
+
background: #fff;
|
|
520
|
+
color: #fff;
|
|
521
|
+
padding: 0 0 17px;
|
|
522
|
+
|
|
523
|
+
.plans-grid__plan-pill {
|
|
524
|
+
font-family: Inter, $sans;
|
|
525
|
+
font-size: 0.75rem;
|
|
526
|
+
font-weight: 500;
|
|
527
|
+
color: var(--studio-white);
|
|
528
|
+
letter-spacing: 0.2px;
|
|
529
|
+
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
|
|
530
|
+
line-height: 1.25rem;
|
|
531
|
+
padding: 0 9px;
|
|
532
|
+
right: unset;
|
|
533
|
+
left: unset;
|
|
534
|
+
top: unset;
|
|
535
|
+
bottom: 0;
|
|
536
|
+
border-radius: 4px;
|
|
537
|
+
background-color: var(--studio-gray-80);
|
|
538
|
+
transform: translate(20px, -50px);
|
|
539
|
+
text-transform: unset;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
&:not(.with-plan-logo) {
|
|
543
|
+
.plans-grid__plan-pill {
|
|
544
|
+
transform: translate(20px, 0);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
&.is-current-plan {
|
|
549
|
+
color: unset;
|
|
550
|
+
.plans-grid__plan-pill {
|
|
551
|
+
background: #e0e0e0;
|
|
552
|
+
color: var(--studio-gray-100);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
&.is-left-of-highlight {
|
|
558
|
+
&:not(.is-last-in-row) {
|
|
559
|
+
.plan-features-2023-grid__popular-badge {
|
|
560
|
+
border-top-right-radius: 0;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
&.is-right-of-highlight {
|
|
565
|
+
&:not(.is-first-in-row) {
|
|
566
|
+
.plan-features-2023-grid__popular-badge {
|
|
567
|
+
border-top-left-radius: 0;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.plan-features-2023-grid__jp-logo {
|
|
574
|
+
padding: 24px 0 6px 20px;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
&.plans-grid-next-plan-storage {
|
|
578
|
+
padding: 24px 20px 38px 20px;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.plan-features-2023-grid__common-title {
|
|
582
|
+
font-weight: 600;
|
|
583
|
+
font-size: $font-body-small;
|
|
584
|
+
padding: 0 20px;
|
|
585
|
+
|
|
586
|
+
&.is-personal-plan {
|
|
587
|
+
color: var(--studio-blue-60);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
&.is-premium-plan {
|
|
591
|
+
color: var(--studio-blue-70);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
&.is-business-plan {
|
|
595
|
+
color: var(--studio-woocommerce-purple-50);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
&.is-ecommerce-plan {
|
|
599
|
+
color: var(--studio-woocommerce-purple-60);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
&.is-wpcom-enterprise-grid-plan {
|
|
603
|
+
color: var(--studio-gray-80);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.is-sticky-top-buttons-row {
|
|
609
|
+
.is-top-buttons.plan-features-2023-grid__table-item {
|
|
610
|
+
border: none;
|
|
611
|
+
background-color: #f9f9f9;
|
|
612
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.04);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.plan-features-2023-grid__header {
|
|
617
|
+
background-color: transparent;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.plan-features-2023-grid__row:last-of-type .plan-features-2023-grid__table-item {
|
|
621
|
+
border-bottom: none;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.plan-features-2023-grid__item.plan-features-2023-grid__item-available {
|
|
625
|
+
.plan-features-2023-grid__item-annual-plan-container
|
|
626
|
+
.plan-features-2023-grid__item-annual-plan {
|
|
627
|
+
color: var(--studio-orange-40);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const element_1 = require("@wordpress/element");
|
|
6
|
+
const clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
7
|
+
const i18n_calypso_1 = require("i18n-calypso");
|
|
8
|
+
const grid_context_1 = require("../../grid-context");
|
|
9
|
+
const sticky_container_1 = require("../sticky-container");
|
|
10
|
+
const billing_timeframes_1 = tslib_1.__importDefault(require("./billing-timeframes"));
|
|
11
|
+
const enterprise_features_1 = tslib_1.__importDefault(require("./enterprise-features"));
|
|
12
|
+
const plan_features_list_1 = tslib_1.__importDefault(require("./plan-features-list"));
|
|
13
|
+
const plan_headers_1 = tslib_1.__importDefault(require("./plan-headers"));
|
|
14
|
+
const plan_logos_1 = tslib_1.__importDefault(require("./plan-logos"));
|
|
15
|
+
const plan_prices_1 = tslib_1.__importDefault(require("./plan-prices"));
|
|
16
|
+
const plan_tagline_1 = tslib_1.__importDefault(require("./plan-tagline"));
|
|
17
|
+
const previous_features_included_title_1 = tslib_1.__importDefault(require("./previous-features-included-title"));
|
|
18
|
+
const top_buttons_1 = tslib_1.__importDefault(require("./top-buttons"));
|
|
19
|
+
const Table = ({ currentSitePlanSlug, generatedWPComSubdomain, gridPlanForSpotlight, hideUnavailableFeatures, isCustomDomainAllowedOnFreePlan, isInSignup, onStorageAddOnClick, paidDomainName, planActionOverrides, renderedGridPlans, selectedFeature, showRefundPeriod, showUpgradeableStorage, stickyRowOffset, }) => {
|
|
20
|
+
const translate = (0, i18n_calypso_1.useTranslate)();
|
|
21
|
+
const { featureGroupMap, enableCategorisedFeatures, enableLogosOnlyForEnterprisePlan, enableReducedFeatureGroupSpacing, } = (0, grid_context_1.usePlansGridContext)();
|
|
22
|
+
const featureGroups = (0, element_1.useMemo)(() => Object.keys(featureGroupMap), [featureGroupMap]);
|
|
23
|
+
// Do not render the spotlight plan if it exists
|
|
24
|
+
const gridPlansWithoutSpotlight = (0, element_1.useMemo)(() => !gridPlanForSpotlight
|
|
25
|
+
? renderedGridPlans
|
|
26
|
+
: renderedGridPlans.filter(({ planSlug }) => gridPlanForSpotlight.planSlug !== planSlug), [renderedGridPlans, gridPlanForSpotlight]);
|
|
27
|
+
// Search for a plan with a highlight label. Some margin is applied in the stylesheet to cover the badges/labels
|
|
28
|
+
const hasHighlightedPlan = gridPlansWithoutSpotlight.some(({ highlightLabel }) => !!highlightLabel);
|
|
29
|
+
const tableClasses = (0, clsx_1.default)('plan-features-2023-grid__table', `has-${gridPlansWithoutSpotlight.length}-cols`, {
|
|
30
|
+
'has-highlighted-plan': hasHighlightedPlan,
|
|
31
|
+
});
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)("table", { className: tableClasses, children: [(0, jsx_runtime_1.jsx)("caption", { className: "plan-features-2023-grid__screen-reader-text screen-reader-text", children: translate('Available plans to choose from') }), (0, jsx_runtime_1.jsxs)("tbody", { children: [(0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(plan_logos_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, isInSignup: isInSignup, options: { isTableCell: true } }) }), (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(plan_headers_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true } }) }), (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(plan_tagline_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true } }) }), (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(plan_prices_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true }, currentSitePlanSlug: currentSitePlanSlug }) }), (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(billing_timeframes_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, showRefundPeriod: showRefundPeriod, options: { isTableCell: true } }) }), (0, jsx_runtime_1.jsx)(sticky_container_1.StickyContainer, { stickyClass: "is-sticky-top-buttons-row", element: "tr", stickyOffset: stickyRowOffset, zIndex: 2, children: (isStuck) => ((0, jsx_runtime_1.jsx)(top_buttons_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true, isStuck }, isInSignup: isInSignup, currentSitePlanSlug: currentSitePlanSlug, planActionOverrides: planActionOverrides })) }), (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(enterprise_features_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true, isLogosOnly: enableLogosOnlyForEnterprisePlan } }) }), !enableCategorisedFeatures && ((0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(previous_features_included_title_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true } }) })), featureGroups.map((featureGroupSlug, featureGroupIndex) => ((0, jsx_runtime_1.jsx)("tr", { className: (0, clsx_1.default)('plans-grid-next-features-grid__feature-group-row', {
|
|
33
|
+
'is-first-feature-group-row': featureGroupIndex === 0,
|
|
34
|
+
'is-reduced-feature-group-spacing': enableReducedFeatureGroupSpacing,
|
|
35
|
+
}), children: (0, jsx_runtime_1.jsx)(plan_features_list_1.default, { renderedGridPlans: gridPlansWithoutSpotlight, options: { isTableCell: true }, paidDomainName: paidDomainName, hideUnavailableFeatures: hideUnavailableFeatures, selectedFeature: selectedFeature, generatedWPComSubdomain: generatedWPComSubdomain, isCustomDomainAllowedOnFreePlan: isCustomDomainAllowedOnFreePlan, featureGroupSlug: featureGroupSlug, onStorageAddOnClick: onStorageAddOnClick, showUpgradeableStorage: showUpgradeableStorage }) }, featureGroupSlug)))] })] }));
|
|
36
|
+
};
|
|
37
|
+
exports.default = Table;
|
|
38
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/features-grid/table.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
6
|
+
const plan_div_td_container_1 = tslib_1.__importDefault(require("../plan-div-td-container"));
|
|
7
|
+
const action_button_1 = tslib_1.__importDefault(require("../shared/action-button"));
|
|
8
|
+
const TopButtons = ({ currentSitePlanSlug, isInSignup, options, planActionOverrides, renderedGridPlans, }) => {
|
|
9
|
+
return renderedGridPlans.map(({ planSlug, availableForPurchase, isMonthlyPlan }) => {
|
|
10
|
+
const classes = (0, clsx_1.default)('plan-features-2023-grid__table-item', 'is-top-buttons');
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(plan_div_td_container_1.default, { className: classes, isTableCell: options?.isTableCell, children: (0, jsx_runtime_1.jsx)(action_button_1.default, { availableForPurchase: availableForPurchase, isInSignup: isInSignup, isMonthlyPlan: isMonthlyPlan, planSlug: planSlug, currentSitePlanSlug: currentSitePlanSlug, planActionOverrides: planActionOverrides, showMonthlyPrice: true, isStuck: options?.isStuck || false, visibleGridPlans: renderedGridPlans }) }, planSlug));
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
exports.default = TopButtons;
|
|
15
|
+
//# sourceMappingURL=top-buttons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-buttons.js","sourceRoot":"","sources":["../../../../src/components/features-grid/top-buttons.tsx"],"names":[],"mappings":";;;;AAAA,wDAAwB;AAExB,6FAA4D;AAC5D,oFAAmD;AAanD,MAAM,UAAU,GAAG,CAAE,EACpB,mBAAmB,EACnB,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,iBAAiB,GACA,EAAG,EAAE;IACtB,OAAO,iBAAiB,CAAC,GAAG,CAAE,CAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,EAAG,EAAE;QACrF,MAAM,OAAO,GAAG,IAAA,cAAI,EAAE,qCAAqC,EAAE,gBAAgB,CAAE,CAAC;QAEhF,OAAO,CACN,uBAAC,+BAAoB,IAEpB,SAAS,EAAG,OAAO,EACnB,WAAW,EAAG,OAAO,EAAE,WAAW,YAElC,uBAAC,uBAAY,IACZ,oBAAoB,EAAG,oBAAoB,EAC3C,UAAU,EAAG,UAAU,EACvB,aAAa,EAAG,aAAa,EAC7B,QAAQ,EAAG,QAAQ,EACnB,mBAAmB,EAAG,mBAAmB,EACzC,mBAAmB,EAAG,mBAAmB,EACzC,gBAAgB,QAChB,OAAO,EAAG,OAAO,EAAE,OAAO,IAAI,KAAK,EACnC,gBAAgB,EAAG,iBAAiB,GACnC,IAdI,QAAQ,CAeQ,CACvB,CAAC;IACH,CAAC,CAAE,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|