-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A4A Plugin: Add ConnectedCard component for site connected state (#36747
- Loading branch information
1 parent
b9c9fad
commit 90f18d1
Showing
18 changed files
with
463 additions
and
169 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: removed | ||
|
||
Removed automattic brand colors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,4 @@ | |
--jp-gap: 16px; | ||
|
||
--jp-highlight: #3858e9; | ||
|
||
--automattic-blue-60: #0088BF; | ||
--automattic-blue-80: #021A23; | ||
} |
4 changes: 4 additions & 0 deletions
4
projects/js-packages/components/changelog/add-a4a-connected-card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: added | ||
|
||
Added connected card to the A4A plugin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/plugins/automattic-for-agencies-client/changelog/add-connected-state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: added | ||
|
||
Added connected state content and site disconnection flow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
...ts/plugins/automattic-for-agencies-client/src/js/components/admin-page/styles.module.scss
This file was deleted.
Oops, something went wrong.
57 changes: 56 additions & 1 deletion
57
.../plugins/automattic-for-agencies-client/src/js/components/branded-card/styles.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ects/plugins/automattic-for-agencies-client/src/js/components/check-circle-icon/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Path, SVG, Rect } from '@wordpress/components'; | ||
import React from 'react'; | ||
|
||
/** | ||
* Checkmark Circle icon component | ||
* | ||
* @param {object} props - Component props | ||
* @param {string} props.color - Color code for the checkmark | ||
* @returns {React.ReactElement} Component template | ||
*/ | ||
export default function CheckCircleIcon( { color = '#008A20' } ) { | ||
return ( | ||
<SVG | ||
clipRule="evenodd" | ||
fillRule="evenodd" | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<Rect width="20" height="20" rx="10" fill={ color } /> | ||
<Path d="M15.2011 5.49999L8.52564 14.4777L4.65482 11.5996" stroke="white" strokeWidth="1.5" /> | ||
</SVG> | ||
); | ||
} |
31 changes: 31 additions & 0 deletions
31
...ects/plugins/automattic-for-agencies-client/src/js/components/close-circle-icon/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Path, Rect, SVG } from '@wordpress/components'; | ||
import React from 'react'; | ||
|
||
/** | ||
* Close circle icon component | ||
* | ||
* @param {object} props - Component props | ||
* @param {string} props.color - Color code for the icon | ||
* @returns {React.ReactElement} Component template | ||
*/ | ||
export default function CloseCircleIcon( { color = '#D63638' } ) { | ||
return ( | ||
<SVG | ||
clipRule="evenodd" | ||
fillRule="evenodd" | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<Rect width="20" height="20" rx="10" fill={ color } /> | ||
<Path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M9.9999 10.7956L12.7841 13.5799L13.5796 12.7844L10.7954 10.0001L13.5796 7.21591L12.7841 6.42042L9.9999 9.20465L7.21566 6.42041L6.42017 7.21591L9.20441 10.0001L6.42017 12.7844L7.21567 13.5799L9.9999 10.7956Z" | ||
fill="white" | ||
/> | ||
</SVG> | ||
); | ||
} |
Oops, something went wrong.