@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
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import { createElement } from 'react';
3
- import { ColProps } from '../types.js';
3
+ import { ColProps } from '../types.ts';
4
4
  import styles from './style.module.scss';
5
5
  import type React from 'react';
6
6
 
@@ -1,5 +1,5 @@
1
1
  @use "sass:map";
2
- @import "../breakpoints.module.scss";
2
+ @import "../breakpoints.module";
3
3
 
4
4
  @mixin cols($size) {
5
5
 
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import { createElement, forwardRef, useMemo } from 'react';
3
- import { ContainerProps } from '../types.js';
3
+ import { ContainerProps } from '../types.ts';
4
4
  import styles from './style.module.scss';
5
5
  import type React from 'react';
6
6
 
@@ -1,5 +1,5 @@
1
1
  @use "sass:map";
2
- @import "../breakpoints.module.scss";
2
+ @import "../breakpoints.module";
3
3
 
4
4
  @mixin container($size) {
5
5
  $paddings: ("sm": "16px", "md": "18px", "lg": "24px");
@@ -36,7 +36,7 @@
36
36
  .container {
37
37
  position: relative;
38
38
  padding-top: 68px;
39
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.06);
39
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
40
40
  }
41
41
 
42
42
  .icon-wrapper {
@@ -1,4 +1,4 @@
1
- import { getUserLocale } from '../../lib/locale/index.js';
1
+ import { getUserLocale } from '../../lib/locale/index.ts';
2
2
 
3
3
  /**
4
4
  * Format a number using the locale in use by the user viewing the page.
@@ -1,7 +1,7 @@
1
1
  import clsx from 'clsx';
2
2
  import React from 'react';
3
3
  import ReactSlider, { ReactSliderProps } from 'react-slider';
4
- import { NumberSliderProps } from './types.js';
4
+ import { NumberSliderProps } from './types.ts';
5
5
  import './style.scss';
6
6
 
7
7
  /**
@@ -48,7 +48,7 @@ $track-height: 8px;
48
48
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
49
49
  border-radius: 4px;
50
50
  color: var(--jp-black);
51
- font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
51
+ font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
52
52
  font-style: normal;
53
53
  font-weight: 600;
54
54
  font-size: var(--font-body);
@@ -3,7 +3,7 @@
3
3
  max-width: calc( 100% - 32px );
4
4
  padding: 16px;
5
5
  background-color: #fff;
6
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 4px 8px 0px rgba(0, 0, 0, 0.03);
6
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 4px 8px 0 rgba(0, 0, 0, 0.03);
7
7
  border: 1px solid rgba(220, 220, 222, 1);
8
8
  border-radius: 4px;
9
9
  text-align: center;
@@ -20,6 +20,6 @@
20
20
  &__body p {
21
21
  font-weight: 400;
22
22
  line-height: 1.6em;
23
- font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
23
+ font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
24
24
  }
25
25
  }
@@ -2,8 +2,8 @@ import { getCurrencyObject } from '@automattic/format-currency';
2
2
  import { Button } from '@wordpress/components';
3
3
  import { sprintf, __ } from '@wordpress/i18n';
4
4
  import { LoadingPlaceholder } from '@automattic/jetpack-components';
5
- import TermsOfService from '../terms-of-service/index.js';
6
- import type { PricingCardProps } from './types.js';
5
+ import TermsOfService from '../terms-of-service/index.tsx';
6
+ import type { PricingCardProps } from './types.ts';
7
7
  import type { CurrencyObject } from '@automattic/format-currency/src/types.js';
8
8
  import type React from 'react';
9
9
 
@@ -6,7 +6,7 @@
6
6
  max-width: 384px;
7
7
  padding: 24px 24px 32px;
8
8
  background:var( --jp-white );
9
- box-shadow: 0px 10px 40px rgba( 0, 0, 0, 0.08 );
9
+ box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.08 );
10
10
  border-radius: var( --jp-border-radius );
11
11
 
12
12
  @media screen and ( min-width: 600px ) {
@@ -53,7 +53,7 @@
53
53
  position: absolute;
54
54
  width: 100%;
55
55
  height: 3px;
56
- left: 0px;
56
+ left: 0;
57
57
  top: 20px;
58
58
  background: var( --jp-pink );
59
59
  border-radius: 1.5px;
@@ -94,7 +94,7 @@
94
94
  color: var( --jp-white ) !important;
95
95
  border-radius: var( --jp-border-radius );
96
96
  padding: 14px 24px;
97
- margin: 24px 0px 32px;
97
+ margin: 24px 0 32px;
98
98
  justify-content: center;
99
99
  align-items: center;
100
100
  }
@@ -10,17 +10,17 @@ import React, {
10
10
  ReactElement,
11
11
  CSSProperties,
12
12
  } from 'react';
13
- import IconTooltip from '../icon-tooltip/index.js';
14
- import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
15
- import TermsOfService from '../terms-of-service/index.js';
16
- import Text from '../text/index.js';
13
+ import IconTooltip from '../icon-tooltip/index.tsx';
14
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.ts';
15
+ import TermsOfService from '../terms-of-service/index.tsx';
16
+ import Text from '../text/index.tsx';
17
17
  import styles from './styles.module.scss';
18
18
  import {
19
19
  PricingTableProps,
20
20
  PricingTableColumnProps,
21
21
  PricingTableHeaderProps,
22
22
  PricingTableItemProps,
23
- } from './types.js';
23
+ } from './types.ts';
24
24
 
25
25
  const INCLUDED_TEXT = __( 'Included', 'jetpack-components' );
26
26
  const NOT_INCLUDED_TEXT = __( 'Not included', 'jetpack-components' );
@@ -38,7 +38,7 @@
38
38
  right: 0;
39
39
  bottom: 0;
40
40
  z-index: -1;
41
- box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.05);
41
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
42
42
  }
43
43
  }
44
44
  }
@@ -142,7 +142,7 @@
142
142
  width: fit-content;
143
143
 
144
144
  > a {
145
- color: black;
145
+ color: #000;
146
146
  }
147
147
 
148
148
  .is-viewport-large & {
@@ -1,4 +1,4 @@
1
- import type { Placement } from '../icon-tooltip/types.js';
1
+ import type { Placement } from '../icon-tooltip/types.ts';
2
2
 
3
3
  export type PricingTableProps = {
4
4
  /**
@@ -1,8 +1,8 @@
1
1
  import { Icon, plus } from '@wordpress/icons';
2
2
  import React, { Fragment } from 'react';
3
- import { getIconBySlug } from '../icons/index.js';
3
+ import { getIconBySlug } from '../icons/index.tsx';
4
4
  import styles from './style.module.scss';
5
- import { IconsCardProps } from './types.js';
5
+ import { IconsCardProps } from './types.ts';
6
6
 
7
7
  /**
8
8
  * Icons composition for a bundle product,
@@ -1,15 +1,15 @@
1
1
  import { __, sprintf } from '@wordpress/i18n';
2
2
  import { Icon, check } from '@wordpress/icons';
3
3
  import clsx from 'clsx';
4
- import Alert from '../alert/index.js';
5
- import Button from '../button/index.js';
6
- import { CheckmarkIcon } from '../icons/index.js';
7
- import ProductPrice from '../product-price/index.js';
8
- import Text, { H3, Title } from '../text/index.js';
9
- import { IconsCard } from './icons-card.js';
10
- import { ProductOfferHeader } from './product-offer-header.js';
4
+ import Alert from '../alert/index.tsx';
5
+ import Button from '../button/index.tsx';
6
+ import { CheckmarkIcon } from '../icons/index.tsx';
7
+ import ProductPrice from '../product-price/index.tsx';
8
+ import Text, { H3, Title } from '../text/index.tsx';
9
+ import { IconsCard } from './icons-card.tsx';
10
+ import { ProductOfferHeader } from './product-offer-header.tsx';
11
11
  import styles from './style.module.scss';
12
- import { ProductOfferProps } from './types.js';
12
+ import { ProductOfferProps } from './types.ts';
13
13
  import type React from 'react';
14
14
 
15
15
  /**
@@ -112,4 +112,4 @@ const ProductOffer: React.FC< ProductOfferProps > = ( {
112
112
  };
113
113
 
114
114
  export default ProductOffer;
115
- export * from './icons-card.js';
115
+ export * from './icons-card.tsx';
@@ -1,8 +1,8 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import { Icon, starFilled as star } from '@wordpress/icons';
3
- import Text from '../text/index.js';
3
+ import Text from '../text/index.tsx';
4
4
  import styles from './style.module.scss';
5
- import { ProductOfferHeaderProps } from './types.js';
5
+ import { ProductOfferHeaderProps } from './types.ts';
6
6
  import type React from 'react';
7
7
 
8
8
  /**
@@ -1,5 +1,5 @@
1
- import { ProductPriceProps } from '../product-price/types.js';
2
- import type { JetpackIconSlug } from '../icons/index.js';
1
+ import { ProductPriceProps } from '../product-price/types.ts';
2
+ import type { JetpackIconSlug } from '../icons/index.tsx';
3
3
 
4
4
  export type ProductOfferProps = {
5
5
  /**
@@ -6,10 +6,10 @@ import clsx from 'clsx';
6
6
  /*
7
7
  * Internal dependencies
8
8
  */
9
- import Text from '../text/index.js';
10
- import { Price } from './price.js';
9
+ import Text from '../text/index.tsx';
10
+ import { Price } from './price.tsx';
11
11
  import styles from './style.module.scss';
12
- import type { ProductPriceProps } from './types.js';
12
+ import type { ProductPriceProps } from './types.ts';
13
13
  import type React from 'react';
14
14
 
15
15
  /**
@@ -87,4 +87,4 @@ const ProductPrice: React.FC< ProductPriceProps > = ( {
87
87
  };
88
88
 
89
89
  export default ProductPrice;
90
- export * from './price.js';
90
+ export * from './price.tsx';
@@ -1,8 +1,8 @@
1
1
  import { getCurrencyObject } from '@automattic/format-currency';
2
2
  import clsx from 'clsx';
3
- import Text from '../text/index.js';
3
+ import Text from '../text/index.tsx';
4
4
  import styles from './style.module.scss';
5
- import type { PriceProps } from './types.js';
5
+ import type { PriceProps } from './types.ts';
6
6
  import type React from 'react';
7
7
 
8
8
  /**
@@ -29,7 +29,7 @@
29
29
  &.is-not-off-price {
30
30
  color: var( --jp-gray-20);
31
31
 
32
- &:after {
32
+ &::after {
33
33
  content: " ";
34
34
  display: block;
35
35
  width: 100%;
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  * Internal dependencies
7
7
  */
8
8
  import styles from './style.module.scss';
9
- import { ProgressBarProps } from './types.js';
9
+ import { ProgressBarProps } from './types.ts';
10
10
  import type React from 'react';
11
11
 
12
12
  /**
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React, { useMemo } from 'react';
4
- import numberFormat from '../number-format/index.js';
4
+ import numberFormat from '../number-format/index.ts';
5
5
 
6
6
  import './style.scss';
7
7
 
@@ -20,13 +20,13 @@
20
20
  }
21
21
 
22
22
  .jp-components-spinner__outer {
23
- border-top-color: white;
23
+ border-top-color: #fff;
24
24
  }
25
25
 
26
26
  .jp-components-spinner__inner {
27
27
  width: 100%;
28
28
  height: 100%;
29
- border-top-color: white;
30
- border-right-color: white;
29
+ border-top-color: #fff;
30
+ border-right-color: #fff;
31
31
  opacity: 0.4;
32
32
  }
@@ -1,6 +1,6 @@
1
1
  import { Button, Flex, DropdownMenu } from '@wordpress/components';
2
2
  import styles from './style.module.scss';
3
- import { SplitButtonProps } from './types.js';
3
+ import { SplitButtonProps } from './types.ts';
4
4
  import type React from 'react';
5
5
 
6
6
  const DownIcon = () => (
@@ -6,10 +6,10 @@ import clsx from 'clsx';
6
6
  /**
7
7
  * Internal dependencies
8
8
  */
9
- import numberFormat from '../number-format/index.js';
10
- import Text from '../text/index.js';
9
+ import numberFormat from '../number-format/index.ts';
10
+ import Text from '../text/index.tsx';
11
11
  import styles from './style.module.scss';
12
- import { StatCardProps } from './types.js';
12
+ import { StatCardProps } from './types.ts';
13
13
  import type React from 'react';
14
14
 
15
15
  /**
@@ -1,6 +1,6 @@
1
1
  .wrapper {
2
2
  background-color: var( --jp-white );
3
- box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.08);
3
+ box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
4
4
  border-radius: calc( var( --jp-border-radius ) * 2 ); // 8px;
5
5
  display: flex;
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
- import Text from '../text/index.js';
3
+ import Text from '../text/index.tsx';
4
4
  import styles from './style.module.scss';
5
5
 
6
6
  interface StatusProps {
@@ -1,9 +1,10 @@
1
+ import { ExternalLink } from '@wordpress/components';
1
2
  import { createInterpolateElement } from '@wordpress/element';
2
3
  import { __, sprintf } from '@wordpress/i18n';
3
4
  import clsx from 'clsx';
4
- import { getRedirectUrl } from '../../../components/index.js';
5
- import Text from '../text/index.js';
6
- import type { TermsOfServiceProps } from './types.js';
5
+ import { getRedirectUrl } from '../../index.ts';
6
+ import Text from '../text/index.tsx';
7
+ import type { TermsOfServiceProps } from './types.ts';
7
8
  import './styles.scss';
8
9
 
9
10
  const TermsOfService: React.FC< TermsOfServiceProps > = ( {
@@ -92,14 +93,9 @@ const TermsOfServiceTextOnly = () =>
92
93
  );
93
94
 
94
95
  const Link: React.FC< { slug: string; children?: React.ReactNode } > = ( { slug, children } ) => (
95
- <a
96
- className="terms-of-service__link"
97
- href={ getRedirectUrl( slug ) }
98
- rel="noopener noreferrer"
99
- target="_blank"
100
- >
96
+ <ExternalLink className="terms-of-service__link" href={ getRedirectUrl( slug ) }>
101
97
  { children }
102
- </a>
98
+ </ExternalLink>
103
99
  );
104
100
 
105
101
  export default TermsOfService;
@@ -5,6 +5,5 @@
5
5
  .terms-of-service__link {
6
6
  color: var(--jp-green-50);
7
7
  white-space: nowrap;
8
- text-decoration: underline;
9
8
  }
10
9
  }
@@ -1,4 +1,4 @@
1
- import { TextProps } from '../text/types.js';
1
+ import { TextProps } from '../text/types.ts';
2
2
 
3
3
  type MultipleButtonsProps = {
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { useState, useCallback } from '@wordpress/element';
2
- import Gridicon from '../gridicon/index.js';
3
- import { Testimonial } from './testimonial.js';
4
- import { TestimonialsType } from './types.js';
2
+ import Gridicon from '../gridicon/index.tsx';
3
+ import { Testimonial } from './testimonial.tsx';
4
+ import { TestimonialsType } from './types.ts';
5
5
 
6
6
  const Testimonials: TestimonialsType = ( { testimonials } ) => {
7
7
  const [ currentTestimonialIndex, setcurrentTestimonialIndex ] = useState( 0 );
@@ -1,5 +1,5 @@
1
1
  import clsx from 'clsx';
2
- import type { TestimonialType } from './types.js';
2
+ import type { TestimonialType } from './types.ts';
3
3
 
4
4
  import './style.scss';
5
5
 
@@ -1,8 +1,8 @@
1
1
  import clsx from 'clsx';
2
2
  import React, { forwardRef, useMemo } from 'react';
3
- import { BOX_MODEL_VALUES, VARIANTS_MAPPING } from './constants.js';
3
+ import { BOX_MODEL_VALUES, VARIANTS_MAPPING } from './constants.ts';
4
4
  import styles from './style.module.scss';
5
- import type { H3Props, TextProps, TitleProps } from './types.js';
5
+ import type { H3Props, TextProps, TitleProps } from './types.ts';
6
6
 
7
7
  /**
8
8
  * Text component.
@@ -87,4 +87,4 @@ export const Title: React.FC< TitleProps > = ( {
87
87
  </Text>
88
88
  );
89
89
 
90
- export * from './constants.js';
90
+ export * from './constants.ts';
@@ -1,4 +1,4 @@
1
- import { VARIANTS_MAPPING } from './constants.js';
1
+ import { VARIANTS_MAPPING } from './constants.ts';
2
2
  import type React from 'react';
3
3
 
4
4
  export type SpacingValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
@@ -39,6 +39,7 @@ export type TextProps = {
39
39
  children: React.ReactNode;
40
40
  /** Force an specific tag (span, div) or use a custom component that will receive className and children */
41
41
  component?: React.FC< { [ prop: string ]: unknown } > | React.ElementType;
42
+ style?: React.CSSProperties;
42
43
  };
43
44
 
44
45
  export type H3Props = TextProps & {
@@ -1,6 +1,6 @@
1
1
  import React, { useLayoutEffect, useRef } from 'react';
2
2
  import styles from './globals.module.scss';
3
- import { ThemeInstance, ThemeProviderProps } from './types.js';
3
+ import { ThemeInstance, ThemeProviderProps } from './types.ts';
4
4
 
5
5
  export const typography = {
6
6
  // Headline
@@ -2,7 +2,7 @@ import { Card, CardBody } from '@wordpress/components';
2
2
  import { createInterpolateElement } from '@wordpress/element';
3
3
  import React from 'react';
4
4
  import { Button } from '@automattic/jetpack-components';
5
- import { UpsellBannerProps } from './types.js';
5
+ import { UpsellBannerProps } from './types.ts';
6
6
 
7
7
  import './style.scss';
8
8
 
@@ -75,7 +75,7 @@
75
75
  .upsell-banner--content-cta-button {
76
76
  white-space: nowrap;
77
77
  box-shadow: inset 0 0 0 1.5px rgb(0, 0, 0);
78
- font-weight: normal;
78
+ font-weight: 400;
79
79
  padding: 8px 16px;
80
80
 
81
81
  &.secondary {
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useCallback } from 'react';
2
- import { chatKey } from './constants.js';
3
- import type { ZendeskChatType } from './types.js';
2
+ import { chatKey } from './constants.ts';
3
+ import type { ZendeskChatType } from './types.ts';
4
4
 
5
5
  export const ZendeskChat: ZendeskChatType = ( { jwt_token } ) => {
6
6
  const authenticateUser = useCallback( () => {