@automattic/jetpack-components 1.12.0 → 1.12.1

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Components package releases.
4
4
 
5
+ ## [1.12.1] - 2026-06-01
6
+ ### Changed
7
+ - Update package dependencies. [#48404]
8
+
9
+ ### Fixed
10
+ - PricingCard: Render the CTA with the @wordpress/ui Button (solid variant) so it shows correct button styling instead of unstyled text. [#49197]
11
+
5
12
  ## [1.12.0] - 2026-05-25
6
13
  ### Added
7
14
  - Add subpath exports for `Button`, `PricingTable`, and `ProductPrice` so they can be imported directly from bundles that cannot import the package barrel. [#49063]
@@ -1806,6 +1813,7 @@
1806
1813
  ### Changed
1807
1814
  - Update node version requirement to 14.16.1
1808
1815
 
1816
+ [1.12.1]: https://github.com/Automattic/jetpack-components/compare/1.12.0...1.12.1
1809
1817
  [1.12.0]: https://github.com/Automattic/jetpack-components/compare/1.11.3...1.12.0
1810
1818
  [1.11.3]: https://github.com/Automattic/jetpack-components/compare/1.11.2...1.11.3
1811
1819
  [1.11.2]: https://github.com/Automattic/jetpack-components/compare/1.11.1...1.11.2
package/SECURITY.md CHANGED
@@ -13,7 +13,6 @@ Our HackerOne program covers the below plugin software, as well as a variety of
13
13
  * [Jetpack](https://jetpack.com/)
14
14
  * Jetpack Backup
15
15
  * Jetpack Boost
16
- * Jetpack CRM
17
16
  * Jetpack Protect
18
17
  * Jetpack Search
19
18
  * Jetpack Social
@@ -1,7 +1,7 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getCurrencyObject } from '@automattic/number-formatters';
3
- import { Button } from '@wordpress/components';
4
3
  import { sprintf, __ } from '@wordpress/i18n';
4
+ import { Button } from '@wordpress/ui';
5
5
  import LoadingPlaceholder from '../loading-placeholder/index.js';
6
6
  import TermsOfService from '../terms-of-service/index.js';
7
7
  import './style.scss';
@@ -32,7 +32,7 @@ const PricingCard = ({ currencyCode = 'USD', priceDetails = __('/month, paid yea
32
32
  ] })), props.priceAfter > 0 && (_jsxs(_Fragment, { children: [
33
33
  _jsxs("div", { className: "jp-components__pricing-card__price-after", children: [
34
34
  _jsx("span", { className: "jp-components__pricing-card__currency", children: currencyObjectAfter.symbol }), _jsx("span", { className: "jp-components__pricing-card__price", children: currencyObjectAfter.integer }), showPriceDecimals(currencyObjectAfter) && (_jsx("span", { className: "jp-components__pricing-card__price-decimal", children: currencyObjectAfter.fraction }))] }), _jsx("span", { className: "jp-components__pricing-card__price-details", children: priceDetails })
35
- ] }))] }), props.children && (_jsx("div", { className: "jp-components__pricing-card__extra-content-wrapper", children: props.children })), props.tosText && _jsx("div", { className: "jp-components__pricing-card__tos", children: props.tosText }), props.ctaText && (_jsxs(_Fragment, { children: [!props.tosText && (_jsx("div", { className: "jp-components__pricing-card__tos", children: _jsx(TermsOfService, { agreeButtonLabel: props.ctaText }) })), _jsx("div", { className: "jp-components__pricing-card__cta", children: _jsx(Button, { className: "jp-components__pricing-card__button", label: props.ctaText, onClick: props.onCtaClick, children: props.ctaText }) })
35
+ ] }))] }), props.children && (_jsx("div", { className: "jp-components__pricing-card__extra-content-wrapper", children: props.children })), props.tosText && _jsx("div", { className: "jp-components__pricing-card__tos", children: props.tosText }), props.ctaText && (_jsxs(_Fragment, { children: [!props.tosText && (_jsx("div", { className: "jp-components__pricing-card__tos", children: _jsx(TermsOfService, { agreeButtonLabel: props.ctaText }) })), _jsx("div", { className: "jp-components__pricing-card__cta", children: _jsx(Button, { variant: "solid", className: "jp-components__pricing-card__button", onClick: props.onCtaClick, children: props.ctaText }) })
36
36
  ] })), props.infoText && (_jsx("div", { className: "jp-components__pricing-card__info", children: props.infoText }))] }));
37
37
  };
38
38
  export default PricingCard;
@@ -87,13 +87,11 @@
87
87
  }
88
88
 
89
89
  &__button {
90
+ // Full-width CTA; the @wordpress/ui Button owns the rest of its chrome
91
+ // (fill, padding, radius) via its `solid` variant.
90
92
  width: 100%;
91
- height: auto;
92
- font-size: 18px;
93
- padding: 14px 24px;
94
93
  margin: 24px 0 32px;
95
- justify-content: center;
96
- align-items: center;
94
+
97
95
  }
98
96
 
99
97
  &__info,
@@ -1,6 +1,6 @@
1
1
  import { getCurrencyObject } from '@automattic/number-formatters';
2
- import { Button } from '@wordpress/components';
3
2
  import { sprintf, __ } from '@wordpress/i18n';
3
+ import { Button } from '@wordpress/ui';
4
4
  import LoadingPlaceholder from '../loading-placeholder/index.tsx';
5
5
  import TermsOfService from '../terms-of-service/index.tsx';
6
6
  import type { PricingCardProps } from './types.ts';
@@ -113,8 +113,8 @@ const PricingCard: FC< PricingCardProps > = ( {
113
113
  ) }
114
114
  <div className="jp-components__pricing-card__cta">
115
115
  <Button
116
+ variant="solid"
116
117
  className="jp-components__pricing-card__button"
117
- label={ props.ctaText }
118
118
  onClick={ props.onCtaClick }
119
119
  >
120
120
  { props.ctaText }
@@ -87,13 +87,11 @@
87
87
  }
88
88
 
89
89
  &__button {
90
+ // Full-width CTA; the @wordpress/ui Button owns the rest of its chrome
91
+ // (fill, padding, radius) via its `solid` variant.
90
92
  width: 100%;
91
- height: auto;
92
- font-size: 18px;
93
- padding: 14px 24px;
94
93
  margin: 24px 0 32px;
95
- justify-content: center;
96
- align-items: center;
94
+
97
95
  }
98
96
 
99
97
  &__info,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-components",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Jetpack Components Package",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/components/#readme",
6
6
  "bugs": {
@@ -87,10 +87,10 @@
87
87
  "@wordpress/date": "5.46.0",
88
88
  "@wordpress/element": "6.46.0",
89
89
  "@wordpress/i18n": "6.19.0",
90
- "@wordpress/icons": "12.2.0",
90
+ "@wordpress/icons": "13.1.0",
91
91
  "@wordpress/notices": "5.46.0",
92
92
  "@wordpress/theme": "0.13.0",
93
- "@wordpress/ui": "0.11.0",
93
+ "@wordpress/ui": "0.13.0",
94
94
  "clsx": "2.1.1",
95
95
  "js-sha256": "0.11.1",
96
96
  "prop-types": "^15.7.2",
@@ -101,7 +101,7 @@
101
101
  "uplot-react": "1.1.4"
102
102
  },
103
103
  "devDependencies": {
104
- "@automattic/jetpack-base-styles": "^1.2.4",
104
+ "@automattic/jetpack-base-styles": "^1.2.5",
105
105
  "@babel/core": "7.29.0",
106
106
  "@babel/preset-react": "7.28.5",
107
107
  "@jest/globals": "30.4.1",