@automattic/jetpack-components 1.12.14 → 1.12.17
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 +20 -0
- package/build/components/action-popover/index.js +1 -5
- package/build/components/admin-page/style.module.scss +2 -2
- package/build/components/alert/index.js +1 -2
- package/build/components/automattic-byline-logo/index.js +1 -3
- package/build/components/automattic-for-agencies-logo/index.d.ts +1 -1
- package/build/components/automattic-icon-logo/index.d.ts +1 -1
- package/build/components/automattic-icon-logo/index.js +1 -3
- package/build/components/boost-score-bar/index.js +1 -6
- package/build/components/boost-score-graph/background.js +1 -13
- package/build/components/boost-score-graph/tooltip.js +3 -23
- package/build/components/button/index.js +2 -4
- package/build/components/contextual-upgrade-trigger/index.js +1 -6
- package/build/components/decorative-card/index.js +1 -2
- package/build/components/details-viewer/index.js +2 -4
- package/build/components/dialog/index.js +1 -3
- package/build/components/diff-viewer/index.js +4 -10
- package/build/components/donut-meter/index.js +2 -4
- package/build/components/dot-pager/index.js +1 -3
- package/build/components/gravatar/index.d.ts +1 -1
- package/build/components/icon-tooltip/index.js +1 -3
- package/build/components/icons/index.d.ts +1 -0
- package/build/components/icons/index.js +5 -12
- package/build/components/icons/style.module.scss +12 -12
- package/build/components/jetpack-footer/index.js +2 -6
- package/build/components/jetpack-footer/style.scss +3 -2
- package/build/components/jetpack-logo/index.js +1 -4
- package/build/components/jetpack-protect-logo/index.js +1 -4
- package/build/components/jetpack-search-logo/index.js +1 -5
- package/build/components/jetpack-vaultpress-backup-logo/index.js +1 -6
- package/build/components/jetpack-videopress-logo/index.js +1 -4
- package/build/components/loading-placeholder/index.d.ts +1 -1
- package/build/components/marked-lines/index.js +2 -4
- package/build/components/navigator-modal/footer.js +1 -2
- package/build/components/navigator-modal/header.d.ts +1 -1
- package/build/components/navigator-modal/header.js +1 -3
- package/build/components/navigator-modal/screen.js +1 -3
- package/build/components/notice/index.js +1 -2
- package/build/components/popover/index.js +1 -3
- package/build/components/pricing-card/index.js +1 -7
- package/build/components/pricing-table/index.js +10 -18
- package/build/components/pricing-table/styles.module.scss +1 -7
- package/build/components/pricing-table/types.d.ts +8 -0
- package/build/components/product-offer/icons-card.js +1 -2
- package/build/components/product-offer/index.js +1 -6
- package/build/components/product-offer/product-offer-header.js +1 -3
- package/build/components/product-price/index.js +3 -11
- package/build/components/product-price/price.js +1 -2
- package/build/components/record-meter-bar/index.js +5 -20
- package/build/components/split-button/index.js +1 -3
- package/build/components/stat-card/index.js +1 -4
- package/build/components/status/index.d.ts +1 -1
- package/build/components/status/index.js +2 -4
- package/build/components/swipeable/index.js +3 -7
- package/build/components/testimonials/testimonial.js +1 -11
- package/build/components/text/constants.d.ts +12 -12
- package/build/components/upsell-banner/index.js +2 -7
- package/components/admin-page/style.module.scss +2 -2
- package/components/icons/index.tsx +1 -0
- package/components/icons/style.module.scss +12 -12
- package/components/jetpack-footer/style.scss +3 -2
- package/components/pricing-table/index.tsx +5 -4
- package/components/pricing-table/styles.module.scss +1 -7
- package/components/pricing-table/types.ts +9 -0
- package/components/status/index.tsx +1 -1
- package/package.json +21 -21
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
fill: gb.$gray-700;
|
|
14
14
|
|
|
15
15
|
&.bluesky {
|
|
16
|
-
fill: var(--color-bluesky);
|
|
16
|
+
fill: var(--jetpack-social-logo-color-bluesky);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&.facebook {
|
|
20
|
-
fill: var(--color-facebook);
|
|
20
|
+
fill: var(--jetpack-social-logo-color-facebook);
|
|
21
21
|
// Add some specificity to override the border-radius on Jetpack settings page
|
|
22
22
|
&:global(.social-logo) {
|
|
23
23
|
border-radius: 50%;
|
|
@@ -25,27 +25,27 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&.twitter {
|
|
28
|
-
fill: var(--color-twitter);
|
|
28
|
+
fill: var(--jetpack-social-logo-color-twitter);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&.linkedin {
|
|
32
|
-
fill: var(--color-linkedin);
|
|
32
|
+
fill: var(--jetpack-social-logo-color-linkedin);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&.tumblr {
|
|
36
|
-
fill: var(--color-tumblr);
|
|
36
|
+
fill: var(--jetpack-social-logo-color-tumblr);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&.google {
|
|
40
|
-
fill: var(--color-
|
|
40
|
+
fill: var(--jetpack-social-logo-color-google-plus);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&.mastodon {
|
|
44
|
-
fill: var(--color-mastodon);
|
|
44
|
+
fill: var(--jetpack-social-logo-color-mastodon);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&.nextdoor {
|
|
48
|
-
fill: var(--color-nextdoor);
|
|
48
|
+
fill: var(--jetpack-social-logo-color-nextdoor);
|
|
49
49
|
// Add some specificity to override the border-radius on Jetpack settings page
|
|
50
50
|
&:global(.social-logo) {
|
|
51
51
|
border-radius: 50%;
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&.instagram {
|
|
56
|
-
fill: var(--color-instagram);
|
|
56
|
+
fill: var(--jetpack-social-logo-color-instagram);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&.whatsapp {
|
|
60
|
-
fill: var(--color-whatsapp);
|
|
60
|
+
fill: var(--jetpack-social-logo-color-whatsapp);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&.threads {
|
|
64
|
-
fill: var(--color-threads);
|
|
64
|
+
fill: var(--jetpack-social-logo-color-threads);
|
|
65
65
|
|
|
66
66
|
&:global(.social-logo) {
|
|
67
67
|
border-radius: 40%;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&.x {
|
|
72
|
-
fill: var(--color-x);
|
|
72
|
+
fill: var(--jetpack-social-logo-color-x);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
8
8
|
padding: var(--wpds-dimension-padding-xl) var(--wpds-dimension-padding-2xl);
|
|
9
9
|
width: 100%;
|
|
10
|
+
display: flex;
|
|
10
11
|
|
|
11
12
|
.jetpack-footer__menu-item {
|
|
12
13
|
|
|
13
14
|
&:any-link,
|
|
14
15
|
&[role="button"] {
|
|
15
|
-
color: var(--wpds-color-
|
|
16
|
+
color: var(--wpds-color-foreground-interactive-neutral-weak);
|
|
16
17
|
cursor: pointer;
|
|
17
18
|
text-decoration: none;
|
|
18
19
|
}
|
|
@@ -44,6 +45,6 @@ a.jetpack-footer__a8c {
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
svg {
|
|
47
|
-
fill: var(--wpds-color-
|
|
48
|
+
fill: var(--wpds-color-foreground-interactive-neutral-weak);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -59,8 +59,8 @@ export const PricingTableItem: FC< PricingTableItemProps > = ( {
|
|
|
59
59
|
tooltipTitle,
|
|
60
60
|
tooltipClassName = '',
|
|
61
61
|
} ) => {
|
|
62
|
-
const isLg =
|
|
63
|
-
const item =
|
|
62
|
+
const { items, isLg } = useContext( PricingTableContext );
|
|
63
|
+
const item = items[ index ];
|
|
64
64
|
const isExplicitlyEmpty = label === '';
|
|
65
65
|
const showTick = isComingSoon || isIncluded;
|
|
66
66
|
|
|
@@ -157,11 +157,12 @@ const PricingTable: FC< PricingTableProps > = ( {
|
|
|
157
157
|
items,
|
|
158
158
|
children,
|
|
159
159
|
showIntroOfferDisclaimer = false,
|
|
160
|
+
breakpoint = 'large',
|
|
160
161
|
} ) => {
|
|
161
|
-
const isLg = useViewportMatch(
|
|
162
|
+
const isLg = useViewportMatch( breakpoint );
|
|
162
163
|
|
|
163
164
|
return (
|
|
164
|
-
<PricingTableContext.Provider value={ items }>
|
|
165
|
+
<PricingTableContext.Provider value={ { items, isLg } }>
|
|
165
166
|
<div
|
|
166
167
|
className={ clsx( styles.container, { [ styles[ 'is-viewport-large' ] ]: isLg } ) }
|
|
167
168
|
style={
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
|
|
2
|
-
|
|
3
1
|
.container {
|
|
4
2
|
--padding: calc(var(--spacing-base) * 4);
|
|
5
3
|
--padding-horizontal: calc(var(--spacing-base) * 3);
|
|
@@ -98,11 +96,7 @@
|
|
|
98
96
|
background-image: url(./gradient.svg);
|
|
99
97
|
background-repeat: no-repeat;
|
|
100
98
|
background-size: 450px;
|
|
101
|
-
background-position-x:
|
|
102
|
-
|
|
103
|
-
@media (max-width: gb.$break-large) {
|
|
104
|
-
background-position-x: right;
|
|
105
|
-
}
|
|
99
|
+
background-position-x: right;
|
|
106
100
|
}
|
|
107
101
|
|
|
108
102
|
> :last-child {
|
|
@@ -31,6 +31,15 @@ export type PricingTableProps = {
|
|
|
31
31
|
* Whether to show the intro offer disclaimer text with the ToS.
|
|
32
32
|
*/
|
|
33
33
|
showIntroOfferDisclaimer?: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Viewport breakpoint at or above which the table renders as columns
|
|
37
|
+
* (below it, offers stack into blocks). Defaults to 'large' (960px).
|
|
38
|
+
* Interstitials hosting 3 offers can pass 'xlarge' (1080px) to stack
|
|
39
|
+
* earlier and avoid cramped columns. Accepts any `@wordpress/compose`
|
|
40
|
+
* viewport-match breakpoint name.
|
|
41
|
+
*/
|
|
42
|
+
breakpoint?: 'mobile' | 'small' | 'medium' | 'large' | 'xlarge' | 'wide' | 'huge' | 'xhuge';
|
|
34
43
|
};
|
|
35
44
|
|
|
36
45
|
export type PricingTableColumnProps = {
|
|
@@ -13,7 +13,7 @@ export interface StatusProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Status component.
|
|
15
15
|
*
|
|
16
|
-
* @deprecated Inline the equivalent JSX using `Text` from `@wordpress/ui` and a small color-coded indicator span. The wrapper renders a flex container at `body-sm` size with `font-weight: 600` and a `0.666em` round indicator coloured by status using WPDS design tokens (`var(--wpds-color-
|
|
16
|
+
* @deprecated Inline the equivalent JSX using `Text` from `@wordpress/ui` and a small color-coded indicator span. The wrapper renders a flex container at `body-sm` size with `font-weight: 600` and a `0.666em` round indicator coloured by status using WPDS design tokens (`var(--wpds-color-foreground-content-success-weak)` for `active`, `--wpds-color-foreground-content-error-weak` for `error`, `--wpds-color-foreground-content-neutral-weak` for `inactive`, `--wpds-color-foreground-content-warning-weak` for `action`, `--wpds-color-foreground-content-info-weak` for `initializing`). Include a fallback hex for surfaces that don't load `@wordpress/theme/design-tokens.css` (e.g. the legacy Jetpack settings dashboard).
|
|
17
17
|
*
|
|
18
18
|
* @param {StatusProps} props - The component properties.
|
|
19
19
|
* @param {string} props.className - Optional className forwarded to the outer element.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.17",
|
|
4
4
|
"description": "Jetpack Components Package",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/components/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -73,35 +73,35 @@
|
|
|
73
73
|
],
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@automattic/format-currency": "1.0.1",
|
|
76
|
-
"@automattic/jetpack-api": "^1.0.
|
|
77
|
-
"@automattic/jetpack-boost-score-api": "^1.0.
|
|
78
|
-
"@automattic/jetpack-script-data": "^0.6.
|
|
79
|
-
"@automattic/number-formatters": "^1.2.
|
|
76
|
+
"@automattic/jetpack-api": "^1.0.32",
|
|
77
|
+
"@automattic/jetpack-boost-score-api": "^1.0.55",
|
|
78
|
+
"@automattic/jetpack-script-data": "^0.6.6",
|
|
79
|
+
"@automattic/number-formatters": "^1.2.7",
|
|
80
80
|
"@babel/runtime": "^7",
|
|
81
81
|
"@gravatar-com/hovercards": "0.16.0",
|
|
82
|
-
"@wordpress/admin-ui": "2.
|
|
83
|
-
"@wordpress/browserslist-config": "6.
|
|
84
|
-
"@wordpress/components": "
|
|
85
|
-
"@wordpress/compose": "8.
|
|
86
|
-
"@wordpress/data": "10.
|
|
87
|
-
"@wordpress/date": "5.
|
|
88
|
-
"@wordpress/element": "8.
|
|
89
|
-
"@wordpress/i18n": "6.
|
|
90
|
-
"@wordpress/icons": "
|
|
91
|
-
"@wordpress/notices": "5.
|
|
92
|
-
"@wordpress/theme": "0.
|
|
93
|
-
"@wordpress/ui": "0.
|
|
82
|
+
"@wordpress/admin-ui": "2.5.0",
|
|
83
|
+
"@wordpress/browserslist-config": "6.51.0",
|
|
84
|
+
"@wordpress/components": "37.0.0",
|
|
85
|
+
"@wordpress/compose": "8.4.0",
|
|
86
|
+
"@wordpress/data": "10.51.0",
|
|
87
|
+
"@wordpress/date": "5.51.0",
|
|
88
|
+
"@wordpress/element": "8.3.0",
|
|
89
|
+
"@wordpress/i18n": "6.24.0",
|
|
90
|
+
"@wordpress/icons": "15.1.0",
|
|
91
|
+
"@wordpress/notices": "5.51.0",
|
|
92
|
+
"@wordpress/theme": "0.17.0",
|
|
93
|
+
"@wordpress/ui": "0.17.0",
|
|
94
94
|
"clsx": "2.1.1",
|
|
95
95
|
"js-sha256": "0.11.1",
|
|
96
96
|
"prop-types": "^15.7.2",
|
|
97
97
|
"qrcode.react": "4.2.0",
|
|
98
98
|
"react-slider": "2.0.5",
|
|
99
|
-
"social-logos": "^3.3.
|
|
99
|
+
"social-logos": "^3.3.18",
|
|
100
100
|
"uplot": "1.6.31",
|
|
101
101
|
"uplot-react": "1.1.4"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@automattic/jetpack-base-styles": "^1.2.
|
|
104
|
+
"@automattic/jetpack-base-styles": "^1.2.10",
|
|
105
105
|
"@babel/core": "7.29.7",
|
|
106
106
|
"@jest/globals": "30.4.1",
|
|
107
107
|
"@storybook/addon-docs": "10.4.6",
|
|
@@ -113,14 +113,14 @@
|
|
|
113
113
|
"@types/react": "18.3.28",
|
|
114
114
|
"@types/react-dom": "18.3.7",
|
|
115
115
|
"@types/react-slider": "1.3.6",
|
|
116
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
116
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
117
117
|
"jest": "30.4.2",
|
|
118
118
|
"react": "18.3.1",
|
|
119
119
|
"react-dom": "18.3.1",
|
|
120
120
|
"require-from-string": "2.0.2",
|
|
121
121
|
"storybook": "10.4.6",
|
|
122
122
|
"ts-dedent": "2.2.0",
|
|
123
|
-
"typescript": "
|
|
123
|
+
"typescript": "6.0.3",
|
|
124
124
|
"webpack": "5.107.2",
|
|
125
125
|
"webpack-cli": "6.0.1"
|
|
126
126
|
},
|