@automattic/jetpack-connection 1.2.12 → 1.2.14
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 +10 -0
- package/components/connect-screen/basic/style.scss +2 -2
- package/components/connect-screen/layout/style.scss +14 -12
- package/components/connect-screen/required-plan/style.scss +2 -2
- package/components/connection-error-notice/styles.module.scss +23 -17
- package/components/disconnect-card/style.scss +2 -2
- package/components/disconnect-dialog/style.scss +32 -32
- package/components/disconnect-survey/_jp-connect_disconnect-survey-card.scss +10 -10
- package/components/in-place-connection/style.scss +6 -2
- package/components/manage-connection-dialog/style.scss +34 -33
- package/components/owner-disconnect-dialog/style.scss +12 -12
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Connection Component releases.
|
|
4
4
|
|
|
5
|
+
## [1.2.14] - 2025-07-21
|
|
6
|
+
### Changed
|
|
7
|
+
- Update package dependencies. [#44356]
|
|
8
|
+
|
|
9
|
+
## [1.2.13] - 2025-07-10
|
|
10
|
+
### Changed
|
|
11
|
+
- Update package dependencies. [#44219]
|
|
12
|
+
|
|
5
13
|
## [1.2.12] - 2025-07-08
|
|
6
14
|
### Changed
|
|
7
15
|
- Update dependencies.
|
|
@@ -1100,6 +1108,8 @@
|
|
|
1100
1108
|
- `Main` and `ConnectUser` components added.
|
|
1101
1109
|
- `JetpackRestApiClient` API client added.
|
|
1102
1110
|
|
|
1111
|
+
[1.2.14]: https://github.com/Automattic/jetpack-connection-js/compare/v1.2.13...v1.2.14
|
|
1112
|
+
[1.2.13]: https://github.com/Automattic/jetpack-connection-js/compare/v1.2.12...v1.2.13
|
|
1103
1113
|
[1.2.12]: https://github.com/Automattic/jetpack-connection-js/compare/v1.2.11...v1.2.12
|
|
1104
1114
|
[1.2.11]: https://github.com/Automattic/jetpack-connection-js/compare/v1.2.10...v1.2.11
|
|
1105
1115
|
[1.2.10]: https://github.com/Automattic/jetpack-connection-js/compare/v1.2.9...v1.2.10
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
max-width: 100%;
|
|
30
30
|
|
|
31
31
|
&:disabled {
|
|
32
|
-
color: hsla(
|
|
32
|
+
color: hsla(0, 0%, 100%, 0.4);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@media ( max-width: breakpoints.$break-medium ) {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
height: 1px;
|
|
49
49
|
width: 1px;
|
|
50
50
|
overflow: hidden;
|
|
51
|
-
white-space: nowrap;
|
|
51
|
+
white-space: nowrap;
|
|
52
52
|
|
|
53
53
|
&:empty {
|
|
54
54
|
display: none;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use '@automattic/jetpack-base-styles/style';
|
|
3
3
|
|
|
4
4
|
.jp-connection__connect-screen-layout {
|
|
5
|
-
background: var(
|
|
5
|
+
background: var(--jp-white);
|
|
6
6
|
box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
|
|
7
7
|
border-radius: 4px;
|
|
8
8
|
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
display: none;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
&__left,
|
|
13
|
+
&__left,
|
|
14
|
+
&__right {
|
|
14
15
|
box-sizing: border-box;
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
font-weight: 700;
|
|
31
32
|
font-size: 36px;
|
|
32
33
|
line-height: 40px;
|
|
33
|
-
color: var(
|
|
34
|
+
color: var(--jp-black);
|
|
34
35
|
margin-top: 32px;
|
|
35
36
|
margin-bottom: 0;
|
|
36
37
|
}
|
|
@@ -40,12 +41,13 @@
|
|
|
40
41
|
font-weight: 500;
|
|
41
42
|
font-size: 24px;
|
|
42
43
|
line-height: 32px;
|
|
43
|
-
color: var(
|
|
44
|
+
color: var(--jp-black);
|
|
44
45
|
margin-top: 32px;
|
|
45
46
|
margin-bottom: 0;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
p,
|
|
49
|
+
p,
|
|
50
|
+
li {
|
|
49
51
|
font-style: normal;
|
|
50
52
|
font-weight: 400;
|
|
51
53
|
font-size: 16px;
|
|
@@ -58,19 +60,19 @@
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
a {
|
|
61
|
-
color: var(
|
|
63
|
+
color: var(--jp-black);
|
|
62
64
|
text-decoration: underline;
|
|
63
65
|
height: auto;
|
|
64
66
|
font: inherit;
|
|
65
67
|
padding: 0;
|
|
66
68
|
|
|
67
69
|
&:hover {
|
|
68
|
-
color: var(
|
|
69
|
-
text-decoration-thickness: var(
|
|
70
|
+
color: var(--jp-black);
|
|
71
|
+
text-decoration-thickness: var(--jp-underline-thickness);
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
&:focus {
|
|
73
|
-
color: var(
|
|
75
|
+
color: var(--jp-black);
|
|
74
76
|
box-shadow: none !important;
|
|
75
77
|
}
|
|
76
78
|
}
|
|
@@ -84,7 +86,7 @@
|
|
|
84
86
|
background-size: 24px;
|
|
85
87
|
padding-left: 30px;
|
|
86
88
|
margin-bottom: 9px;
|
|
87
|
-
color: var(
|
|
89
|
+
color: var(--jp-black);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
@@ -99,7 +101,7 @@
|
|
|
99
101
|
|
|
100
102
|
&__two-columns {
|
|
101
103
|
display: flex;
|
|
102
|
-
|
|
104
|
+
flex-wrap: wrap;
|
|
103
105
|
|
|
104
106
|
.jp-connection__connect-screen-layout__left {
|
|
105
107
|
flex-grow: 1;
|
|
@@ -191,7 +193,7 @@
|
|
|
191
193
|
height: 677px;
|
|
192
194
|
z-index: 1;
|
|
193
195
|
|
|
194
|
-
clip-path: polygon(
|
|
196
|
+
clip-path: polygon(100% 0, 100% 100%, 0 0, 0 0);
|
|
195
197
|
|
|
196
198
|
&__blue,
|
|
197
199
|
&__yellow,
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
.notice {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
margin: 0;
|
|
8
|
-
padding: calc(
|
|
8
|
+
padding: calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3) calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3); // 16px | 24px | 16px | 24px
|
|
9
9
|
font-size: 16px;
|
|
10
10
|
line-height: 22px;
|
|
11
|
-
color: var(
|
|
12
|
-
border: 1px solid var(
|
|
13
|
-
border-left: 6px solid var(
|
|
14
|
-
border-radius: var(
|
|
11
|
+
color: var(--jp-gray-80);
|
|
12
|
+
border: 1px solid var(--jp-gray);
|
|
13
|
+
border-left: 6px solid var(--jp-red-50);
|
|
14
|
+
border-radius: var(--jp-border-radius);
|
|
15
15
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
16
16
|
|
|
17
17
|
// notice itself on error status
|
|
18
18
|
&:global(.is-error) {
|
|
19
|
-
background-color: var(
|
|
19
|
+
background-color: var(--jp-white);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// notice content
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
// action button
|
|
32
32
|
:global(.is-link) {
|
|
33
|
-
color: var(
|
|
33
|
+
color: var(--jp-black);
|
|
34
34
|
font-size: 16px;
|
|
35
35
|
font-weight: 600;
|
|
36
36
|
}
|
|
@@ -40,8 +40,11 @@
|
|
|
40
40
|
align-self: center;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.button,
|
|
44
|
-
|
|
43
|
+
.button,
|
|
44
|
+
.button:visited,
|
|
45
|
+
.button:active,
|
|
46
|
+
.button:hover {
|
|
47
|
+
color: var(--jp-white);
|
|
45
48
|
font-weight: 600;
|
|
46
49
|
font-size: 16px;
|
|
47
50
|
line-height: 24px;
|
|
@@ -51,25 +54,28 @@
|
|
|
51
54
|
justify-content: center;
|
|
52
55
|
align-items: center;
|
|
53
56
|
padding: 8px 24px;
|
|
54
|
-
margin-left: calc(
|
|
57
|
+
margin-left: calc(var(--spacing-base) * 2 + 24px); // 40px
|
|
55
58
|
margin-top: 24px;
|
|
56
59
|
background: #000;
|
|
57
|
-
border-radius: var(
|
|
60
|
+
border-radius: var(--jp-border-radius);
|
|
58
61
|
|
|
59
62
|
&.primary {
|
|
60
|
-
background: var(
|
|
63
|
+
background: var(--jp-green-50);
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
.actions {
|
|
65
68
|
display: flex;
|
|
66
|
-
gap: calc(
|
|
69
|
+
gap: calc(var(--spacing-base) * 2); // 16px
|
|
67
70
|
flex-wrap: wrap;
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
&.bigger-than-medium {
|
|
71
74
|
|
|
72
|
-
.button,
|
|
75
|
+
.button,
|
|
76
|
+
.button:visited,
|
|
77
|
+
.button:active,
|
|
78
|
+
.button:hover {
|
|
73
79
|
margin-left: 0;
|
|
74
80
|
margin-top: 0;
|
|
75
81
|
white-space: nowrap;
|
|
@@ -87,7 +93,7 @@
|
|
|
87
93
|
}
|
|
88
94
|
|
|
89
95
|
.message {
|
|
90
|
-
margin-right: var(
|
|
96
|
+
margin-right: var(--spacing-base); // 8px
|
|
91
97
|
flex-grow: 1;
|
|
92
98
|
display: flex;
|
|
93
99
|
|
|
@@ -95,10 +101,10 @@
|
|
|
95
101
|
> svg {
|
|
96
102
|
flex-shrink: 0;
|
|
97
103
|
align-self: flex-start;
|
|
98
|
-
margin-right: calc(
|
|
104
|
+
margin-right: calc(var(--spacing-base) * 2); // 16px
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
:global(.jp-components-spinner) {
|
|
102
|
-
margin-right: calc(
|
|
108
|
+
margin-right: calc(var(--spacing-base) * 2); // 16px
|
|
103
109
|
}
|
|
104
110
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
// Used to show cards in the disconnection flow for active plugins and site benefits.
|
|
4
4
|
.jp-connection__disconnect-card {
|
|
5
|
-
background-color: var(
|
|
5
|
+
background-color: var(--jp-white);
|
|
6
6
|
width: 800px;
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
padding: 1rem 2rem;
|
|
9
9
|
border: none;
|
|
10
10
|
border-radius: 3px;
|
|
11
|
-
box-shadow: 0 0 15px var(
|
|
11
|
+
box-shadow: 0 0 15px var(--jp-gray-off);
|
|
12
12
|
margin-left: auto;
|
|
13
13
|
margin-right: auto;
|
|
14
14
|
margin-top: 0;
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
h1 {
|
|
6
6
|
margin-top: 0;
|
|
7
7
|
line-height: 1.2;
|
|
8
|
-
font-size: var(
|
|
8
|
+
font-size: var(--font-title-small);
|
|
9
9
|
font-weight: 600;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
h2 {
|
|
13
13
|
margin: 0;
|
|
14
14
|
line-height: 1.2;
|
|
15
|
-
font-size: var(
|
|
15
|
+
font-size: var(--font-title-small);
|
|
16
16
|
font-weight: 400;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
p {
|
|
20
20
|
margin-top: 0;
|
|
21
|
-
font-size: var(
|
|
21
|
+
font-size: var(--font-body);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&__large-text,
|
|
@@ -28,36 +28,36 @@
|
|
|
28
28
|
|
|
29
29
|
&__link,
|
|
30
30
|
.jp-connection__disconnect-dialog__link {
|
|
31
|
-
color: var(
|
|
31
|
+
color: var(--jp-black);
|
|
32
32
|
text-decoration: underline;
|
|
33
33
|
height: auto;
|
|
34
34
|
font: inherit;
|
|
35
35
|
padding: 0;
|
|
36
36
|
|
|
37
37
|
&:hover {
|
|
38
|
-
color: var(
|
|
39
|
-
text-decoration-thickness: var(
|
|
38
|
+
color: var(--jp-black);
|
|
39
|
+
text-decoration-thickness: var(--jp-underline-thickness);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&:focus {
|
|
43
|
-
color: var(
|
|
43
|
+
color: var(--jp-black);
|
|
44
44
|
box-shadow: none !important;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&--bold {
|
|
48
|
-
|
|
48
|
+
font-weight: 700;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.components-button{
|
|
52
|
+
.components-button {
|
|
53
53
|
height: 40px;
|
|
54
|
-
font-size: var(
|
|
54
|
+
font-size: var(--font-body-small);
|
|
55
55
|
border-radius: 4px;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.components-modal{
|
|
58
|
+
.components-modal {
|
|
59
59
|
|
|
60
|
-
&__content{
|
|
60
|
+
&__content {
|
|
61
61
|
padding: 0;
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
&__header{
|
|
72
|
+
&__header {
|
|
73
73
|
display: none;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
width: calc(100% - 48px); // Help with the margin on the row.
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
&__actions{
|
|
83
|
-
background: var(
|
|
82
|
+
&__actions {
|
|
83
|
+
background: var(--jp-white);
|
|
84
84
|
padding: 2rem 0;
|
|
85
85
|
position: sticky;
|
|
86
86
|
bottom: 0;
|
|
87
|
-
border-top: 1px solid var(
|
|
87
|
+
border-top: 1px solid var(--jp-gray);
|
|
88
88
|
|
|
89
89
|
p {
|
|
90
90
|
margin-bottom: 0;
|
|
@@ -96,27 +96,27 @@
|
|
|
96
96
|
width: 100%;
|
|
97
97
|
position: absolute;
|
|
98
98
|
height: 80px;
|
|
99
|
-
background: linear-gradient(to bottom, rgba(
|
|
100
|
-
bottom: calc(
|
|
99
|
+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--jp-white-off));
|
|
100
|
+
bottom: calc(100% + 1px);
|
|
101
101
|
left: 0;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&__btn-dismiss,
|
|
106
|
-
&__btn-dismiss.components-button{ // override the components-button class
|
|
107
|
-
background: var(
|
|
106
|
+
&__btn-dismiss.components-button { // override the components-button class
|
|
107
|
+
background: var(--jp-black) !important;
|
|
108
108
|
margin-right: 10px;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
&__btn-disconnect{
|
|
112
|
-
background: var(
|
|
111
|
+
&__btn-disconnect {
|
|
112
|
+
background: var(--jp-red) !important;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
&__btn-back-to-wp{
|
|
116
|
-
background: var(
|
|
115
|
+
&__btn-back-to-wp {
|
|
116
|
+
background: var(--jp-black) !important;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
&__button-wrap{
|
|
119
|
+
&__button-wrap {
|
|
120
120
|
text-align: left;
|
|
121
121
|
|
|
122
122
|
@media (min-width: 960px) {
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
&__error{
|
|
128
|
-
color: var(
|
|
127
|
+
&__error {
|
|
128
|
+
color: var(--jp-red);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
&__survey {
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.jp-connection__disconnect-dialog__content {
|
|
148
|
-
background: var(
|
|
148
|
+
background: var(--jp-white-off);
|
|
149
149
|
margin: 0;
|
|
150
150
|
padding: 2rem 1rem;
|
|
151
151
|
border-radius: 4px;
|
|
@@ -165,12 +165,12 @@
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
@media (min-width: 600px){
|
|
168
|
+
@media (min-width: 600px) {
|
|
169
169
|
|
|
170
170
|
.jp-connection__disconnect-dialog,
|
|
171
171
|
.jp-connection__disconnect-dialog.components-modal__frame {
|
|
172
172
|
width: 100%;
|
|
173
|
-
max-width: calc(
|
|
173
|
+
max-width: calc(100% - 32px);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.jp-connection__disconnect-dialog {
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
@media (min-width: 960px){
|
|
189
|
+
@media (min-width: 960px) {
|
|
190
190
|
|
|
191
191
|
.jp-connection__disconnect-dialog,
|
|
192
192
|
.jp-connection__disconnect-dialog.components-modal__frame {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
.jp-connection__disconnect-dialog {
|
|
200
200
|
|
|
201
201
|
h1 {
|
|
202
|
-
font-size: var(
|
|
202
|
+
font-size: var(--font-title-large);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&__large-text,
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
text-align: left;
|
|
11
11
|
padding: 1rem;
|
|
12
12
|
position: relative;
|
|
13
|
-
box-shadow: 0 0 15px var(
|
|
13
|
+
box-shadow: 0 0 15px var(--jp-gray-off);
|
|
14
14
|
|
|
15
15
|
&--selected {
|
|
16
|
-
border-color: var(
|
|
17
|
-
background: var(
|
|
16
|
+
border-color: var(--jp-black);
|
|
17
|
+
background: var(--jp-gray-off);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&::after {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
position: absolute;
|
|
26
26
|
top: 50%;
|
|
27
27
|
right: 1.5rem;
|
|
28
|
-
border-top: 2px solid var(
|
|
29
|
-
border-right: 2px solid var(
|
|
30
|
-
transform: translateY(
|
|
28
|
+
border-top: 2px solid var(--jp-black);
|
|
29
|
+
border-right: 2px solid var(--jp-black);
|
|
30
|
+
transform: translateY(-50%) rotate(45deg);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&:hover {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
&:hover,
|
|
38
38
|
&:focus {
|
|
39
39
|
|
|
40
|
-
&:not(
|
|
41
|
-
border-color: var(
|
|
40
|
+
&:not(.jp-disconnect-survey-card--selected) {
|
|
41
|
+
border-color: var(--jp-black-80)
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -54,8 +54,8 @@ input.jp-connect__disconnect-survey-card__input {
|
|
|
54
54
|
-webkit-appearance: none;
|
|
55
55
|
border: none;
|
|
56
56
|
background-color: transparent;
|
|
57
|
-
color: var(
|
|
57
|
+
color: var(--jp-black-80);
|
|
58
58
|
flex-grow: 1;
|
|
59
59
|
padding-right: 40px;
|
|
60
|
-
max-width: calc(
|
|
60
|
+
max-width: calc(100% - 40px);
|
|
61
61
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
width: 1200px;
|
|
7
7
|
border-radius: 3px;
|
|
8
8
|
|
|
9
|
-
&__content{
|
|
10
|
-
background: var(
|
|
9
|
+
&__content {
|
|
10
|
+
background: var(--jp-white-off);
|
|
11
11
|
padding: 80px;
|
|
12
12
|
text-align: center;
|
|
13
13
|
display: flex;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
h1 {
|
|
19
19
|
margin: 0;
|
|
20
|
-
font-size: var(
|
|
20
|
+
font-size: var(--font-title-large);
|
|
21
21
|
font-weight: 700;
|
|
22
22
|
line-height: 1.2;
|
|
23
23
|
}
|
|
@@ -25,63 +25,63 @@
|
|
|
25
25
|
|
|
26
26
|
// shorthand intentionally not used here for overriding the .reset class
|
|
27
27
|
.jp-connection__manage-dialog__large-text {
|
|
28
|
-
margin-top: calc(
|
|
29
|
-
margin-bottom: calc(
|
|
28
|
+
margin-top: calc(var(--spacing-base) * 3);
|
|
29
|
+
margin-bottom: calc(var(--spacing-base) * 4);
|
|
30
30
|
max-width: 60%;
|
|
31
31
|
font-weight: 600;
|
|
32
32
|
font-size: 1.25rem;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
&__actions{
|
|
36
|
-
background: var(
|
|
37
|
-
margin:0 !important;
|
|
38
|
-
border-top: 1px solid var(
|
|
35
|
+
&__actions {
|
|
36
|
+
background: var(--jp-white);
|
|
37
|
+
margin: 0 !important;
|
|
38
|
+
border-top: 1px solid var(--jp-gray);
|
|
39
39
|
max-width: 1200px !important;
|
|
40
|
-
padding: calc(
|
|
41
|
-
align-items:center;
|
|
40
|
+
padding: calc(var(--spacing-base) * 4) calc(var(--spacing-base) * 5);
|
|
41
|
+
align-items: center;
|
|
42
42
|
position: sticky;
|
|
43
43
|
bottom: 0;
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__link {
|
|
48
|
-
color: var(
|
|
48
|
+
color: var(--jp-black);
|
|
49
49
|
|
|
50
50
|
&:hover {
|
|
51
|
-
color: var(
|
|
52
|
-
text-decoration-thickness: var(
|
|
51
|
+
color: var(--jp-black);
|
|
52
|
+
text-decoration-thickness: var(--jp-underline-thickness);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:focus {
|
|
56
|
-
color: var(
|
|
56
|
+
color: var(--jp-black);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
&__button-wrap button{
|
|
61
|
-
float:right;
|
|
60
|
+
&__button-wrap button {
|
|
61
|
+
float: right;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&__action-card {
|
|
65
|
-
background-color: var(
|
|
65
|
+
background-color: var(--jp-white);
|
|
66
66
|
width: 750px;
|
|
67
67
|
max-width: 100%;
|
|
68
68
|
padding: 1rem 2rem;
|
|
69
69
|
border-radius: 3px;
|
|
70
|
-
box-shadow: 0 0 15px var(
|
|
71
|
-
margin: var(
|
|
70
|
+
box-shadow: 0 0 15px var(--jp-gray-off);
|
|
71
|
+
margin: var(--spacing-base) auto;
|
|
72
72
|
text-align: left;
|
|
73
73
|
border: none;
|
|
74
74
|
position: relative;
|
|
75
75
|
|
|
76
76
|
&__card-headline {
|
|
77
|
-
font-size: var(
|
|
77
|
+
font-size: var(--font-body);
|
|
78
78
|
font-weight: 600;
|
|
79
79
|
text-decoration: none;
|
|
80
|
-
line-height: calc(
|
|
80
|
+
line-height: calc(var(--spacing-base) * 3);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&__icon {
|
|
84
|
-
float:right;
|
|
84
|
+
float: right;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&.disabled::before {
|
|
@@ -94,22 +94,23 @@
|
|
|
94
94
|
height: 100%;
|
|
95
95
|
opacity: 25%;
|
|
96
96
|
border-radius: 3px;
|
|
97
|
-
background: var(
|
|
97
|
+
background: var(--jp-black);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.transfer,
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
.transfer,
|
|
101
|
+
.unlink {
|
|
102
|
+
color: var(--jp-black);
|
|
103
|
+
fill: var(--jp-black);
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.disconnect {
|
|
106
|
-
color: var(
|
|
107
|
-
fill: var(
|
|
107
|
+
color: var(--jp-red);
|
|
108
|
+
fill: var(--jp-red);
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
.check-users {
|
|
111
|
-
color: var(
|
|
112
|
-
fill: var(
|
|
112
|
+
color: var(--jp-black);
|
|
113
|
+
fill: var(--jp-black);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
}
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
.components-notice {
|
|
118
119
|
width: 750px;
|
|
119
120
|
max-width: 100%;
|
|
120
|
-
margin: var(
|
|
121
|
+
margin: var(--spacing-base) auto;
|
|
121
122
|
text-align: left;
|
|
122
123
|
}
|
|
123
124
|
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
|
|
130
131
|
&__content {
|
|
131
132
|
margin: 0;
|
|
132
|
-
padding:0;
|
|
133
|
+
padding: 0;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.jp-connection__disconnect-dialog {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
// Add !important to override WordPress styles
|
|
3
|
+
.components-button.jp-connection__disconnect-dialog__btn-dismiss {
|
|
4
|
+
background: var(--jp-black) !important;
|
|
5
|
+
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
.jp-connection__disconnect-dialog__content {
|
|
8
|
+
--spacing-base: 8px;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
.components-modal__content > div:not(.components-modal__header) {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-connection",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"description": "Jetpack Connection Component",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@automattic/jetpack-analytics": "^1.0.3",
|
|
18
18
|
"@automattic/jetpack-api": "^1.0.5",
|
|
19
|
-
"@automattic/jetpack-components": "^1.1.
|
|
19
|
+
"@automattic/jetpack-components": "^1.1.14",
|
|
20
20
|
"@automattic/jetpack-config": "^1.0.3",
|
|
21
21
|
"@automattic/jetpack-script-data": "^0.5.0",
|
|
22
22
|
"@wordpress/base-styles": "6.2.0",
|
|
@@ -31,10 +31,9 @@
|
|
|
31
31
|
"prop-types": "^15.7.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@automattic/jetpack-base-styles": "^1.0.
|
|
35
|
-
"@babel/core": "7.
|
|
34
|
+
"@automattic/jetpack-base-styles": "^1.0.5",
|
|
35
|
+
"@babel/core": "7.28.0",
|
|
36
36
|
"@babel/preset-react": "7.27.1",
|
|
37
|
-
"@storybook/addon-actions": "8.6.7",
|
|
38
37
|
"@testing-library/dom": "10.4.0",
|
|
39
38
|
"@testing-library/react": "16.3.0",
|
|
40
39
|
"@testing-library/user-event": "14.6.1",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"jest-environment-jsdom": "30.0.4",
|
|
44
43
|
"react": "18.3.1",
|
|
45
44
|
"react-dom": "18.3.1",
|
|
46
|
-
"storybook": "
|
|
45
|
+
"storybook": "9.0.15"
|
|
47
46
|
},
|
|
48
47
|
"peerDependencies": {
|
|
49
48
|
"react": "^18.0.0",
|