@automattic/jetpack-components 0.72.3 → 0.72.5

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.
Files changed (178) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/build/components/action-button/index.js +1 -1
  3. package/build/components/action-popover/index.d.ts +1 -1
  4. package/build/components/action-popover/index.js +4 -4
  5. package/build/components/admin-page/index.d.ts +1 -1
  6. package/build/components/admin-page/index.js +4 -4
  7. package/build/components/admin-page/types.d.ts +1 -1
  8. package/build/components/admin-section/basic/index.d.ts +1 -1
  9. package/build/components/admin-section/hero/index.d.ts +1 -1
  10. package/build/components/automattic-byline-logo/index.d.ts +1 -1
  11. package/build/components/boost-score-bar/index.d.ts +1 -1
  12. package/build/components/boost-score-bar/index.js +1 -1
  13. package/build/components/boost-score-graph/annotations-plugin.d.ts +1 -1
  14. package/build/components/boost-score-graph/index.js +3 -3
  15. package/build/components/boost-score-graph/tooltips-plugin.d.ts +1 -1
  16. package/build/components/boost-score-graph/tooltips-plugin.js +1 -1
  17. package/build/components/boost-score-graph/uplot-line-chart.d.ts +1 -1
  18. package/build/components/boost-score-graph/uplot-line-chart.js +8 -8
  19. package/build/components/boost-score-graph/use-boost-score-transform.d.ts +1 -1
  20. package/build/components/button/index.d.ts +1 -1
  21. package/build/components/contextual-upgrade-trigger/index.d.ts +1 -1
  22. package/build/components/contextual-upgrade-trigger/index.js +2 -2
  23. package/build/components/copy-to-clipboard/index.d.ts +1 -1
  24. package/build/components/copy-to-clipboard/index.js +2 -2
  25. package/build/components/copy-to-clipboard/types.d.ts +1 -1
  26. package/build/components/decorative-card/index.d.ts +1 -1
  27. package/build/components/dialog/index.js +3 -3
  28. package/build/components/diff-viewer/index.js +2 -2
  29. package/build/components/dot-pager/index.js +1 -1
  30. package/build/components/global-notices/global-notices.js +1 -1
  31. package/build/components/global-notices/index.d.ts +2 -2
  32. package/build/components/global-notices/index.js +2 -2
  33. package/build/components/gridicon/index.d.ts +1 -1
  34. package/build/components/icon-tooltip/index.d.ts +1 -1
  35. package/build/components/icon-tooltip/index.js +2 -2
  36. package/build/components/icons/index.d.ts +1 -1
  37. package/build/components/indeterminate-progress-bar/index.d.ts +1 -1
  38. package/build/components/jetpack-footer/index.d.ts +1 -1
  39. package/build/components/jetpack-footer/index.js +5 -5
  40. package/build/components/jetpack-logo/index.d.ts +1 -1
  41. package/build/components/jetpack-protect-logo/index.d.ts +1 -1
  42. package/build/components/jetpack-search-logo/index.d.ts +1 -1
  43. package/build/components/jetpack-vaultpress-backup-logo/index.d.ts +1 -1
  44. package/build/components/jetpack-videopress-logo/index.d.ts +1 -1
  45. package/build/components/layout/col/index.d.ts +1 -1
  46. package/build/components/layout/container/index.d.ts +1 -1
  47. package/build/components/number-format/index.js +1 -1
  48. package/build/components/number-slider/index.d.ts +1 -1
  49. package/build/components/pricing-card/index.d.ts +1 -1
  50. package/build/components/pricing-card/index.js +1 -1
  51. package/build/components/pricing-table/index.d.ts +1 -1
  52. package/build/components/pricing-table/index.js +4 -4
  53. package/build/components/pricing-table/types.d.ts +1 -1
  54. package/build/components/product-offer/icons-card.d.ts +1 -1
  55. package/build/components/product-offer/icons-card.js +1 -1
  56. package/build/components/product-offer/index.d.ts +2 -2
  57. package/build/components/product-offer/index.js +8 -8
  58. package/build/components/product-offer/product-offer-header.d.ts +1 -1
  59. package/build/components/product-offer/product-offer-header.js +1 -1
  60. package/build/components/product-offer/types.d.ts +2 -2
  61. package/build/components/product-price/index.d.ts +2 -2
  62. package/build/components/product-price/index.js +3 -3
  63. package/build/components/product-price/price.d.ts +1 -1
  64. package/build/components/product-price/price.js +1 -1
  65. package/build/components/progress-bar/index.d.ts +1 -1
  66. package/build/components/record-meter-bar/index.js +1 -1
  67. package/build/components/split-button/index.d.ts +1 -1
  68. package/build/components/stat-card/index.d.ts +1 -1
  69. package/build/components/stat-card/index.js +2 -2
  70. package/build/components/status/index.js +1 -1
  71. package/build/components/terms-of-service/index.d.ts +1 -1
  72. package/build/components/terms-of-service/index.js +4 -3
  73. package/build/components/terms-of-service/types.d.ts +1 -1
  74. package/build/components/testimonials/index.d.ts +1 -1
  75. package/build/components/testimonials/index.js +2 -2
  76. package/build/components/testimonials/testimonial.d.ts +1 -1
  77. package/build/components/text/index.d.ts +2 -2
  78. package/build/components/text/index.js +2 -2
  79. package/build/components/text/types.d.ts +2 -1
  80. package/build/components/theme-provider/index.d.ts +1 -1
  81. package/build/components/upsell-banner/index.d.ts +1 -1
  82. package/build/components/zendesk-chat/index.d.ts +1 -1
  83. package/build/components/zendesk-chat/index.js +1 -1
  84. package/build/index.d.ts +66 -66
  85. package/build/index.js +65 -65
  86. package/build/tools/get-site-admin-url/index.d.ts +3 -1
  87. package/build/tools/get-site-admin-url/index.js +4 -0
  88. package/build/tools/jp-redirect/index.d.ts +1 -1
  89. package/build/tools/jp-redirect/index.js +2 -0
  90. package/build/tools/pricing-utils/index.d.ts +1 -1
  91. package/components/action-button/index.jsx +1 -1
  92. package/components/action-button/style.module.scss +1 -1
  93. package/components/action-popover/index.tsx +5 -5
  94. package/components/admin-page/index.tsx +5 -5
  95. package/components/admin-page/style.module.scss +2 -2
  96. package/components/admin-page/types.ts +1 -1
  97. package/components/admin-section/basic/index.tsx +1 -1
  98. package/components/admin-section/hero/index.tsx +1 -1
  99. package/components/automattic-byline-logo/index.tsx +1 -1
  100. package/components/boost-score-bar/index.tsx +2 -2
  101. package/components/boost-score-graph/annotations-plugin.ts +1 -1
  102. package/components/boost-score-graph/index.tsx +3 -3
  103. package/components/boost-score-graph/style-annotation.scss +2 -3
  104. package/components/boost-score-graph/style-tooltip.scss +2 -3
  105. package/components/boost-score-graph/tooltip.tsx +1 -1
  106. package/components/boost-score-graph/tooltips-plugin.ts +2 -2
  107. package/components/boost-score-graph/uplot-line-chart.tsx +9 -9
  108. package/components/boost-score-graph/use-boost-score-transform.ts +1 -1
  109. package/components/button/index.tsx +1 -1
  110. package/components/contextual-upgrade-trigger/index.tsx +3 -3
  111. package/components/contextual-upgrade-trigger/style.module.scss +2 -2
  112. package/components/copy-to-clipboard/index.tsx +3 -3
  113. package/components/copy-to-clipboard/types.ts +1 -1
  114. package/components/decorative-card/index.tsx +1 -1
  115. package/components/decorative-card/style.scss +7 -5
  116. package/components/dialog/index.tsx +3 -3
  117. package/components/diff-viewer/index.tsx +2 -2
  118. package/components/dot-pager/index.tsx +1 -1
  119. package/components/dot-pager/style.scss +2 -2
  120. package/components/global-notices/global-notices.tsx +1 -1
  121. package/components/global-notices/index.ts +2 -2
  122. package/components/gridicon/index.tsx +1 -1
  123. package/components/icon-tooltip/index.tsx +3 -3
  124. package/components/icon-tooltip/style.scss +8 -8
  125. package/components/icons/index.tsx +1 -1
  126. package/components/icons/style.module.scss +1 -1
  127. package/components/indeterminate-progress-bar/index.tsx +1 -1
  128. package/components/jetpack-footer/index.tsx +6 -6
  129. package/components/jetpack-footer/style.scss +3 -3
  130. package/components/jetpack-logo/index.tsx +1 -1
  131. package/components/jetpack-protect-logo/index.tsx +1 -1
  132. package/components/jetpack-search-logo/index.tsx +1 -1
  133. package/components/jetpack-vaultpress-backup-logo/index.tsx +1 -1
  134. package/components/jetpack-videopress-logo/index.tsx +1 -1
  135. package/components/layout/col/index.tsx +1 -1
  136. package/components/layout/col/style.module.scss +1 -1
  137. package/components/layout/container/index.tsx +1 -1
  138. package/components/layout/container/style.module.scss +1 -1
  139. package/components/notice/style.module.scss +1 -1
  140. package/components/number-format/index.ts +1 -1
  141. package/components/number-slider/index.tsx +1 -1
  142. package/components/number-slider/style.scss +1 -1
  143. package/components/popover/style.scss +2 -2
  144. package/components/pricing-card/index.tsx +2 -2
  145. package/components/pricing-card/style.scss +3 -3
  146. package/components/pricing-table/index.tsx +5 -5
  147. package/components/pricing-table/styles.module.scss +2 -2
  148. package/components/pricing-table/types.ts +1 -1
  149. package/components/product-offer/icons-card.tsx +2 -2
  150. package/components/product-offer/index.tsx +9 -9
  151. package/components/product-offer/product-offer-header.tsx +2 -2
  152. package/components/product-offer/types.ts +2 -2
  153. package/components/product-price/index.tsx +4 -4
  154. package/components/product-price/price.tsx +2 -2
  155. package/components/product-price/style.module.scss +1 -1
  156. package/components/progress-bar/index.tsx +1 -1
  157. package/components/record-meter-bar/index.tsx +1 -1
  158. package/components/spinner/style.scss +3 -3
  159. package/components/split-button/index.tsx +1 -1
  160. package/components/stat-card/index.tsx +3 -3
  161. package/components/stat-card/style.module.scss +1 -1
  162. package/components/status/index.tsx +1 -1
  163. package/components/terms-of-service/index.tsx +6 -10
  164. package/components/terms-of-service/styles.scss +0 -1
  165. package/components/terms-of-service/types.ts +1 -1
  166. package/components/testimonials/index.tsx +3 -3
  167. package/components/testimonials/testimonial.tsx +1 -1
  168. package/components/text/index.tsx +3 -3
  169. package/components/text/types.ts +2 -1
  170. package/components/theme-provider/index.tsx +1 -1
  171. package/components/upsell-banner/index.tsx +1 -1
  172. package/components/upsell-banner/style.scss +1 -1
  173. package/components/zendesk-chat/index.tsx +2 -2
  174. package/index.ts +66 -66
  175. package/package.json +5 -5
  176. package/tools/get-site-admin-url/index.ts +4 -0
  177. package/tools/jp-redirect/index.ts +3 -1
  178. package/tools/pricing-utils/index.ts +1 -1
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
9
9
  * Internal dependencies
10
10
  */
11
11
  import React from 'react';
12
- import Button from '../button/index.js';
12
+ import Button from '../button/index.tsx';
13
13
  import styles from './style.module.scss';
14
14
 
15
15
  /**
@@ -2,7 +2,7 @@
2
2
  color: var( --jp-red );
3
3
  line-height: 25px;
4
4
  padding-left: 25px;
5
- background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDIwQzE2LjQxODMgMjAgMjAgMTYuNDE4MyAyMCAxMkMyMCA3LjU4MTcyIDE2LjQxODMgNCAxMiA0QzcuNTgxNzIgNCA0IDcuNTgxNzIgNCAxMkM0IDE2LjQxODMgNy41ODE3MiAyMCAxMiAyMFoiIHN0cm9rZT0iI0Q2MzYzOSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHBhdGggZD0iTTEzIDdIMTFWMTNIMTNWN1oiIGZpbGw9IiNENjM2MzkiLz4KPHBhdGggZD0iTTEzIDE1SDExVjE3SDEzVjE1WiIgZmlsbD0iI0Q2MzYzOSIvPgo8L3N2Zz4K") no-repeat 0 0;
5
+ background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDIwQzE2LjQxODMgMjAgMjAgMTYuNDE4MyAyMCAxMkMyMCA3LjU4MTcyIDE2LjQxODMgNCAxMiA0QzcuNTgxNzIgNCA0IDcuNTgxNzIgNCAxMkM0IDE2LjQxODMgNy41ODE3MiAyMCAxMiAyMFoiIHN0cm9rZT0iI0Q2MzYzOSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHBhdGggZD0iTTEzIDdIMTFWMTNIMTNWN1oiIGZpbGw9IiNENjM2MzkiLz4KPHBhdGggZD0iTTEzIDE1SDExVjE3SDEzVjE1WiIgZmlsbD0iI0Q2MzYzOSIvPgo8L3N2Zz4K) no-repeat 0 0;
6
6
  }
7
7
 
8
8
  .button {
@@ -4,18 +4,18 @@
4
4
  import { Popover } from '@wordpress/components';
5
5
  import { __, sprintf } from '@wordpress/i18n';
6
6
  import { close } from '@wordpress/icons';
7
- import Button from '../button/index.js';
8
- import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
9
- import Text from '../text/index.js';
7
+ import Button from '../button/index.tsx';
8
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.ts';
9
+ import Text from '../text/index.tsx';
10
10
  /**
11
11
  * Internal dependencies
12
12
  */
13
- import ThemeProvider from '../theme-provider/index.js';
13
+ import ThemeProvider from '../theme-provider/index.tsx';
14
14
  import styles from './styles.module.scss';
15
15
  /**
16
16
  * Types
17
17
  */
18
- import { ActionPopoverProps } from './types.js';
18
+ import { ActionPopoverProps } from './types.ts';
19
19
  import type React from 'react';
20
20
 
21
21
  const ActionPopover = ( {
@@ -2,12 +2,12 @@ import restApi from '@automattic/jetpack-api';
2
2
  import { __, sprintf } from '@wordpress/i18n';
3
3
  import clsx from 'clsx';
4
4
  import { useEffect, useCallback } from 'react';
5
- import JetpackFooter from '../jetpack-footer/index.js';
6
- import JetpackLogo from '../jetpack-logo/index.js';
7
- import Col from '../layout/col/index.js';
8
- import Container from '../layout/container/index.js';
5
+ import JetpackFooter from '../jetpack-footer/index.tsx';
6
+ import JetpackLogo from '../jetpack-logo/index.tsx';
7
+ import Col from '../layout/col/index.tsx';
8
+ import Container from '../layout/container/index.tsx';
9
9
  import styles from './style.module.scss';
10
- import type { AdminPageProps } from './types.js';
10
+ import type { AdminPageProps } from './types.ts';
11
11
  import type React from 'react';
12
12
 
13
13
  /**
@@ -21,8 +21,8 @@
21
21
  letter-spacing: 0.2em;
22
22
  text-shadow: none;
23
23
  font-size: 9px;
24
- font-weight: bold;
24
+ font-weight: 700;
25
25
  cursor: pointer;
26
- color: #ffffff;
26
+ color: #fff;
27
27
  }
28
28
  }
@@ -1,4 +1,4 @@
1
- import type { JetpackFooterMenuItem } from '../jetpack-footer/types.js';
1
+ import type { JetpackFooterMenuItem } from '../jetpack-footer/types.ts';
2
2
 
3
3
  export type AdminPageProps = {
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styles from './style.module.scss';
3
- import type { AdminSectionBaseProps } from '../types.js';
3
+ import type { AdminSectionBaseProps } from '../types.ts';
4
4
 
5
5
  /**
6
6
  * This is the wrapper component to build sections within your admin page.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styles from './style.module.scss';
3
- import type { AdminSectionBaseProps } from '../types.js';
3
+ import type { AdminSectionBaseProps } from '../types.ts';
4
4
 
5
5
  /**
6
6
  * The wrapper component for a Hero Section to be used in admin pages.
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { AutomatticBylineLogoProps } from './types.js';
4
+ import { AutomatticBylineLogoProps } from './types.ts';
5
5
 
6
6
  /**
7
7
  * Automattic "By line" Logo component.
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
- import Gridicon from '../gridicon/index.js';
4
- import type { BoostScoreBarProps } from './types.js';
3
+ import Gridicon from '../gridicon/index.tsx';
4
+ import type { BoostScoreBarProps } from './types.ts';
5
5
  import type { FunctionComponent } from 'react';
6
6
 
7
7
  import './style.scss';
@@ -1,5 +1,5 @@
1
1
  import uPlot from 'uplot';
2
- import { Annotation } from './index.js';
2
+ import { Annotation } from './index.tsx';
3
3
 
4
4
  import './style-annotation.scss';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import React, { type FunctionComponent } from 'react';
2
- import Text from '../text/index.js';
3
- import Background from './background.js';
4
- import UplotLineChart from './uplot-line-chart.js';
2
+ import Text from '../text/index.tsx';
3
+ import Background from './background.tsx';
4
+ import UplotLineChart from './uplot-line-chart.tsx';
5
5
  import './style.scss';
6
6
 
7
7
  export interface Period {
@@ -1,5 +1,5 @@
1
1
  $black: #101517;
2
- $white: #ffffff;
2
+ $white: #fff;
3
3
 
4
4
  .jb-graph-annotations {
5
5
  pointer-events: none;
@@ -12,7 +12,6 @@ $white: #ffffff;
12
12
 
13
13
  &__line {
14
14
  position: absolute;
15
- width: 10px;
16
15
  height: 100%;
17
16
  transform: translateX(-50%);
18
17
  pointer-events: all;
@@ -65,7 +64,7 @@ $white: #ffffff;
65
64
  border-radius: 4px;
66
65
  font-size: 14px;
67
66
  position: absolute;
68
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
67
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
69
68
  text-align: center;
70
69
  transform: translateX(-50%);
71
70
  z-index: 2;
@@ -1,6 +1,6 @@
1
1
  $grey: #8e8e8e;
2
2
  $black: #101517;
3
- $white: #ffffff;
3
+ $white: #fff;
4
4
 
5
5
  .jb-score-tooltips-container {
6
6
  width: 100%;
@@ -21,13 +21,12 @@ $white: #ffffff;
21
21
  .jb-score-tooltip {
22
22
  background-color: $black;
23
23
  color: $white;
24
- width: fit-content;
25
24
  padding: 16px 24px;
26
25
  border-radius: 4px;
27
26
  font-size: 14px;
28
27
  width: 20em;
29
28
  position: relative;
30
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
29
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
31
30
  display: none;
32
31
 
33
32
  .visible &, &:hover {
@@ -3,7 +3,7 @@ import { dateI18n } from '@wordpress/date';
3
3
  import { __, sprintf } from '@wordpress/i18n';
4
4
  import { type FunctionComponent } from 'react';
5
5
  import './style-tooltip.scss';
6
- import { Period } from './index.js';
6
+ import { Period } from './index.tsx';
7
7
 
8
8
  export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) => {
9
9
  if ( ! period || ! period.dimensions || ! period.timestamp ) {
@@ -1,7 +1,7 @@
1
1
  import ReactDOM from 'react-dom/client';
2
2
  import uPlot from 'uplot';
3
- import { Tooltip } from './tooltip.js';
4
- import { Period } from './index.js';
3
+ import { Period } from './index.tsx';
4
+ import { Tooltip } from './tooltip.tsx';
5
5
 
6
6
  /**
7
7
  * Custom tooltips plugin for uPlot.
@@ -2,15 +2,15 @@ import { __ } from '@wordpress/i18n';
2
2
  import React, { useMemo, useRef, useCallback } from 'react';
3
3
  import uPlot from 'uplot';
4
4
  import UplotReact from 'uplot-react';
5
- import { getUserLocale } from '../../lib/locale/index.js';
6
- import numberFormat from '../number-format/index.js';
7
- import { annotationsPlugin } from './annotations-plugin.js';
8
- import { dayHighlightPlugin } from './day-highlight-plugin.js';
9
- import getDateFormat from './get-date-format.js';
10
- import { tooltipsPlugin } from './tooltips-plugin.js';
11
- import { useBoostScoreTransform } from './use-boost-score-transform.js';
12
- import useResize from './use-resize.js';
13
- import { type Annotation, Period } from './index.js';
5
+ import { getUserLocale } from '../../lib/locale/index.ts';
6
+ import numberFormat from '../number-format/index.ts';
7
+ import { annotationsPlugin } from './annotations-plugin.ts';
8
+ import { dayHighlightPlugin } from './day-highlight-plugin.ts';
9
+ import getDateFormat from './get-date-format.ts';
10
+ import { type Annotation, Period } from './index.tsx';
11
+ import { tooltipsPlugin } from './tooltips-plugin.ts';
12
+ import { useBoostScoreTransform } from './use-boost-score-transform.ts';
13
+ import useResize from './use-resize.ts';
14
14
  import './style-uplot.scss';
15
15
 
16
16
  const DEFAULT_DIMENSIONS = {
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from 'react';
2
- import { Period } from './index.js';
2
+ import { Period } from './index.tsx';
3
3
 
4
4
  type ScoreGraphAlignedData = [
5
5
  number[], // timestamps
@@ -10,7 +10,7 @@ import React, { forwardRef } from 'react';
10
10
  * Internal dependencies
11
11
  */
12
12
  import styles from './style.module.scss';
13
- import type { ButtonProps } from './types.js';
13
+ import type { ButtonProps } from './types.ts';
14
14
 
15
15
  /**
16
16
  * Button component
@@ -1,9 +1,9 @@
1
1
  import { Icon, arrowRight } from '@wordpress/icons';
2
2
  import clsx from 'clsx';
3
- import IconTooltip from '../icon-tooltip/index.js';
4
- import Text from '../text/index.js';
3
+ import IconTooltip from '../icon-tooltip/index.tsx';
4
+ import Text from '../text/index.tsx';
5
5
  import styles from './style.module.scss';
6
- import { CutBaseProps } from './types.js';
6
+ import { CutBaseProps } from './types.ts';
7
7
  import type React from 'react';
8
8
 
9
9
  const ContextualUpgradeTrigger: React.FC< CutBaseProps > = ( {
@@ -47,12 +47,12 @@
47
47
 
48
48
  // Overwrite styles in Text component
49
49
  .cta {
50
- font-weight: bold;
50
+ font-weight: 700;
51
51
  }
52
52
  }
53
53
 
54
54
  .cta {
55
- font-weight: bold;
55
+ font-weight: 700;
56
56
  }
57
57
 
58
58
  .icon {
@@ -1,9 +1,9 @@
1
1
  import { useCopyToClipboard } from '@wordpress/compose';
2
2
  import { useState, useRef, useEffect } from '@wordpress/element';
3
3
  import { __ } from '@wordpress/i18n';
4
- import Button from '../button/index.js';
5
- import { ClipboardIcon, CheckmarkIcon } from '../icons/index.js';
6
- import { CopyToClipboardProps } from './types.js';
4
+ import Button from '../button/index.tsx';
5
+ import { ClipboardIcon, CheckmarkIcon } from '../icons/index.tsx';
6
+ import { CopyToClipboardProps } from './types.ts';
7
7
  import type React from 'react';
8
8
 
9
9
  export const CopyToClipboard: React.FC< CopyToClipboardProps > = ( {
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from '../button/types.js';
1
+ import { ButtonProps } from '../button/types.ts';
2
2
 
3
3
  export type CopyToClipboardProps = ButtonProps & {
4
4
  buttonStyle?: 'icon' | 'text' | 'icon-text';
@@ -1,4 +1,4 @@
1
- import type { DecorativeCardProps } from './types.js';
1
+ import type { DecorativeCardProps } from './types.ts';
2
2
  import type React from 'react';
3
3
  import './style.scss';
4
4
 
@@ -22,7 +22,7 @@
22
22
  background-size: cover;
23
23
  position: relative;
24
24
 
25
- &:before {
25
+ &::before {
26
26
  content: '';
27
27
  display: block;
28
28
  position: absolute;
@@ -30,12 +30,13 @@
30
30
  left: 24px;
31
31
  width: 38px;
32
32
  height: 8px;
33
- background-image: url('data:image/svg+xml;uf8,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');
33
+ // stylelint-disable-next-line function-url-quotes -- quotes are required here. Bug report: https://github.com/stylelint/stylelint/issues/8544
34
+ background-image: url('data:image/svg+xml,<svg width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 7C1 7 2.37087 1 6.89831 1C11.4257 1 14.3709 7 18.8983 7C23.4257 7 26.7777 1 31.3051 1C35.912 1 37 7 37 7" stroke="white" stroke-width="1.5" stroke-linejoin="round"/></svg>');
34
35
  }
35
36
  }
36
37
 
37
38
  &__content {
38
- background: #FFFFFF;
39
+ background: #FFF;
39
40
  padding: 2rem;
40
41
  }
41
42
 
@@ -61,7 +62,8 @@
61
62
  background-repeat: no-repeat;
62
63
 
63
64
  &--unlink {
64
- background-image: url('data:image/svg+xml;uf8,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')
65
+ // stylelint-disable-next-line function-url-quotes -- quotes are required here. Bug report: https://github.com/stylelint/stylelint/issues/8544
66
+ background-image: url('data:image/svg+xml,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')
65
67
  }
66
68
  }
67
69
 
@@ -85,7 +87,7 @@
85
87
  top: calc(100% + 16px);
86
88
  }
87
89
 
88
- &:after {
90
+ &::after {
89
91
  top: calc(100% + 32px);
90
92
  width: 75%;
91
93
  }
@@ -1,8 +1,8 @@
1
1
  import clsx from 'clsx';
2
2
  import React from 'react';
3
- import Col from '../layout/col/index.js';
4
- import Container from '../layout/container/index.js';
5
- import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
3
+ import Col from '../layout/col/index.tsx';
4
+ import Container from '../layout/container/index.tsx';
5
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.ts';
6
6
  import styles from './style.module.scss';
7
7
 
8
8
  type DialogProps = {
@@ -1,6 +1,6 @@
1
1
  import { Fragment } from 'react';
2
- import parseFilename from './parse-filename.js';
3
- import parsePatch from './parse-patch.js';
2
+ import parseFilename from './parse-filename.ts';
3
+ import parsePatch from './parse-patch.ts';
4
4
  import styles from './styles.module.scss';
5
5
 
6
6
  const filename = ( {
@@ -2,7 +2,7 @@ import { Button } from '@wordpress/components';
2
2
  import { __, sprintf } from '@wordpress/i18n';
3
3
  import clsx from 'clsx';
4
4
  import React, { Children, useState, useEffect, ReactNode, useCallback, useMemo } from 'react';
5
- import { Swipeable } from '../swipeable/index.js';
5
+ import { Swipeable } from '../swipeable/index.tsx';
6
6
 
7
7
  import './style.scss';
8
8
 
@@ -23,7 +23,7 @@
23
23
  display: flex;
24
24
  justify-content: center;
25
25
  position: absolute;
26
- bottom: 0px;
26
+ bottom: 0;
27
27
  left: 0;
28
28
  right: 0;
29
29
  z-index: 1;
@@ -64,7 +64,7 @@
64
64
  border-radius: 50%;
65
65
  width: 6px;
66
66
  height: 6px;
67
- padding: 0px;
67
+ padding: 0;
68
68
  background-color: var(--jp-white-off);
69
69
 
70
70
  &:hover {
@@ -1,6 +1,6 @@
1
1
  import { SnackbarList } from '@wordpress/components';
2
2
  import styles from './styles.module.scss';
3
- import { useGlobalNotices } from './use-global-notices.js';
3
+ import { useGlobalNotices } from './use-global-notices.ts';
4
4
 
5
5
  export type GlobalNoticesProps = {
6
6
  maxVisibleNotices?: number;
@@ -1,3 +1,3 @@
1
- export * from './global-notices.js';
2
- export * from './use-global-notices.js';
1
+ export * from './global-notices.tsx';
2
+ export * from './use-global-notices.ts';
3
3
  export { store as globalNoticesStore } from '@wordpress/notices';
@@ -9,7 +9,7 @@ import { __ } from '@wordpress/i18n';
9
9
  import clsx from 'clsx';
10
10
  import { Component } from 'react';
11
11
  import './style.scss';
12
- import { GridiconProps } from './types.js';
12
+ import { GridiconProps } from './types.ts';
13
13
 
14
14
  class Gridicon extends Component< GridiconProps > {
15
15
  static defaultProps = {
@@ -1,9 +1,9 @@
1
1
  import { Popover } from '@wordpress/components';
2
2
  import clsx from 'clsx';
3
3
  import React, { useCallback, useState } from 'react';
4
- import Button from '../button/index.js';
5
- import Gridicon from '../gridicon/index.js';
6
- import { IconTooltipProps, Placement, Position } from './types.js';
4
+ import Button from '../button/index.tsx';
5
+ import Gridicon from '../gridicon/index.tsx';
6
+ import { IconTooltipProps, Placement, Position } from './types.ts';
7
7
 
8
8
  import './style.scss';
9
9
 
@@ -13,11 +13,11 @@ $arrow-color: var( --jp-gray );
13
13
  /*
14
14
  * Fix arrow placement - section start
15
15
  */
16
- .components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content {
16
+ .components-popover:not([data-y-axis="middle"])[data-x-axis="left"] .components-popover__content {
17
17
  margin-right: -62px;
18
18
  }
19
19
 
20
- .components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content {
20
+ .components-popover:not([data-y-axis="middle"])[data-x-axis="right"] .components-popover__content {
21
21
  margin-left: -62px;
22
22
  }
23
23
 
@@ -28,27 +28,27 @@ $arrow-color: var( --jp-gray );
28
28
  /*
29
29
  * Fix arrow position for legacy position option - section start
30
30
  */
31
- .components-popover[data-y-axis=bottom] .components-popover__content {
31
+ .components-popover[data-y-axis="bottom"] .components-popover__content {
32
32
  top: 2px !important;
33
33
  }
34
34
 
35
- .components-popover:not(.is-without-arrow)[data-y-axis=bottom]::before {
35
+ .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::before {
36
36
  top: -6px !important;
37
37
  }
38
38
 
39
- .components-popover:not(.is-without-arrow)[data-y-axis=bottom]::after {
39
+ .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::after {
40
40
  top: -4px !important;
41
41
  }
42
42
 
43
- .components-popover[data-y-axis=top] .components-popover__content {
43
+ .components-popover[data-y-axis="top"] .components-popover__content {
44
44
  bottom: 10px !important;
45
45
  }
46
46
 
47
- .components-popover:not(.is-without-arrow)[data-y-axis=top]::before {
47
+ .components-popover:not(.is-without-arrow)[data-y-axis="top"]::before {
48
48
  bottom: 3px;
49
49
  }
50
50
 
51
- .components-popover:not(.is-without-arrow)[data-y-axis=top]::after {
51
+ .components-popover:not(.is-without-arrow)[data-y-axis="top"]::after {
52
52
  bottom: 4px;
53
53
  }
54
54
 
@@ -2,7 +2,7 @@ import { Path, SVG, G, Polygon } from '@wordpress/components';
2
2
  import clsx from 'clsx';
3
3
  import { SocialLogo } from 'social-logos';
4
4
  import styles from './style.module.scss';
5
- import { BaseIconProps } from './types.js';
5
+ import { BaseIconProps } from './types.ts';
6
6
  import type React from 'react';
7
7
 
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  @import '@automattic/jetpack-base-styles/gutenberg-base-styles';
2
2
 
3
3
  .star-icon {
4
- fill: black;
4
+ fill: #000;
5
5
  }
6
6
 
7
7
  .jetpack,
@@ -7,7 +7,7 @@ import clsx from 'clsx';
7
7
  * Internal dependencies
8
8
  */
9
9
  import styles from './style.module.scss';
10
- import { IndeterminateProgressBarProps } from './types.js';
10
+ import { IndeterminateProgressBarProps } from './types.ts';
11
11
  import type React from 'react';
12
12
 
13
13
  /**
@@ -2,13 +2,13 @@ import { __, _x } from '@wordpress/i18n';
2
2
  import { Icon, external } from '@wordpress/icons';
3
3
  import clsx from 'clsx';
4
4
  import React from 'react';
5
- import { getRedirectUrl } from '../../index.js';
6
- import getSiteAdminUrl from '../../tools/get-site-admin-url/index.js';
7
- import AutomatticBylineLogo from '../automattic-byline-logo/index.js';
5
+ import { getRedirectUrl } from '../../index.ts';
6
+ import getSiteAdminUrl from '../../tools/get-site-admin-url/index.ts';
7
+ import AutomatticBylineLogo from '../automattic-byline-logo/index.tsx';
8
8
  import './style.scss';
9
- import JetpackLogo from '../jetpack-logo/index.js';
10
- import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
11
- import type { JetpackFooterProps, JetpackFooterMenuItem } from './types.js';
9
+ import JetpackLogo from '../jetpack-logo/index.tsx';
10
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.ts';
11
+ import type { JetpackFooterProps, JetpackFooterMenuItem } from './types.ts';
12
12
 
13
13
  const JetpackIcon: React.FC = () => (
14
14
  <JetpackLogo logoColor="#000" showText={ false } height={ 16 } aria-hidden="true" />
@@ -15,7 +15,7 @@
15
15
  text-decoration: none;
16
16
 
17
17
  &:any-link,
18
- &[role=button] {
18
+ &[role="button"] {
19
19
  color: inherit;
20
20
  }
21
21
 
@@ -78,13 +78,13 @@
78
78
  }
79
79
 
80
80
  .jp-dashboard-footer__accessible-external-link {
81
- border: 0px;
81
+ border: 0;
82
82
  clip: rect(1px, 1px, 1px, 1px);
83
83
  clip-path: inset(50%);
84
84
  height: 1px;
85
85
  margin: -1px;
86
86
  overflow: hidden;
87
- padding: 0px;
87
+ padding: 0;
88
88
  position: absolute;
89
89
  width: 1px;
90
90
  overflow-wrap: normal;
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackLogoProps } from './types.js';
4
+ import { JetpackLogoProps } from './types.ts';
5
5
 
6
6
  const JetpackLogo: React.FC< JetpackLogoProps > = ( {
7
7
  logoColor = '#069e08',
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackProtectLogoProps } from './types.js';
4
+ import { JetpackProtectLogoProps } from './types.ts';
5
5
 
6
6
  const JetpackProtectLogo: React.FC< JetpackProtectLogoProps > = ( {
7
7
  logoColor = '#069e08',
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackSearchLogoProps } from './types.js';
4
+ import { JetpackSearchLogoProps } from './types.ts';
5
5
 
6
6
  const JetpackSearchLogo: React.FC< JetpackSearchLogoProps > = ( {
7
7
  logoColor = '#069e08',
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackLogoProps } from './types.js';
4
+ import { JetpackLogoProps } from './types.ts';
5
5
 
6
6
  const JetpackVaultPressBackupLogo: React.FC< JetpackLogoProps > = ( {
7
7
  showText = true,
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackLogoProps } from './types.js';
4
+ import { JetpackLogoProps } from './types.tsx';
5
5
 
6
6
  const JetpackVideoPressLogo: React.FC< JetpackLogoProps > = ( {
7
7
  showText = true,