Skip to content

Commit

Permalink
Protect: Use js-packages/components IconTooltip (#39867)
Browse files Browse the repository at this point in the history
* Components: add hoverShow prop to IconTooltip

* changelog

* Add ThreatsDataView

changelog

* Protect: use IconTooltip component from package

* Update projects/plugins/protect/src/js/components/paid-accordion/styles.module.scss

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Update projects/plugins/protect/src/js/routes/firewall/styles.module.scss

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* changelog

* Update lock file

* Remove unintended additions

* Revert lock file changes

* Fix typo in selector

---------

Co-authored-by: Nate Weller <hello@nateweller.com>
Co-authored-by: Nate Weller <nate.weller@automattic.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11865166045

Upstream-Ref: Automattic/jetpack@afe4ad8
  • Loading branch information
dkmyta authored and matticbot committed Nov 16, 2024
1 parent 0b79c7e commit 9968fa3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

### This is a list detailing changes for the Jetpack RNA Components package releases.

## [0.61.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Added
- Gridicon Component: Add support for help-outline icon.

## [0.60.0] - 2024-11-14
### Added
- Adds tooltips for each ThreatFixerButton state [#40111]
Expand Down Expand Up @@ -1221,6 +1228,7 @@
### Changed
- Update node version requirement to 14.16.1

[0.61.0-alpha]: https://github.com/Automattic/jetpack-components/compare/0.60.0...0.61.0-alpha
[0.60.0]: https://github.com/Automattic/jetpack-components/compare/0.59.0...0.60.0
[0.59.0]: https://github.com/Automattic/jetpack-components/compare/0.58.1...0.59.0
[0.58.1]: https://github.com/Automattic/jetpack-components/compare/0.58.0...0.58.1
Expand Down
9 changes: 9 additions & 0 deletions components/gridicon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Gridicon extends Component< GridiconProps > {
'gridicons-calendar',
'gridicons-cart',
'gridicons-folder',
'gridicons-help-outline',
'gridicons-info',
'gridicons-info-outline',
'gridicons-posts',
Expand Down Expand Up @@ -66,6 +67,8 @@ class Gridicon extends Component< GridiconProps > {
return __( 'Toggle search filters.', 'jetpack' );
case 'gridicons-folder':
return __( 'Category', 'jetpack' );
case 'gridicons-help-outline':
return __( 'Help', 'jetpack' );
case 'gridicons-info':
case 'gridicons-info-outline':
return __( 'Information.', 'jetpack' );
Expand Down Expand Up @@ -181,6 +184,12 @@ class Gridicon extends Component< GridiconProps > {
<path d="M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z" />
</g>
);
case 'gridicons-help-outline':
return (
<g>
<path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z" />
</g>
);
case 'gridicons-image':
return (
<g>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-components",
"version": "0.60.0",
"version": "0.61.0-alpha",
"description": "Jetpack Components Package",
"author": "Automattic",
"license": "GPL-2.0-or-later",
Expand Down

0 comments on commit 9968fa3

Please sign in to comment.