@automattic/jetpack-components 0.72.2 → 0.72.4
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 +18 -0
- package/build/components/action-button/index.js +1 -1
- package/build/components/action-popover/index.d.ts +1 -1
- package/build/components/action-popover/index.js +4 -4
- package/build/components/admin-page/index.d.ts +1 -1
- package/build/components/admin-page/index.js +4 -4
- package/build/components/admin-page/types.d.ts +1 -1
- package/build/components/admin-section/basic/index.d.ts +1 -1
- package/build/components/admin-section/hero/index.d.ts +1 -1
- package/build/components/automattic-byline-logo/index.d.ts +1 -1
- package/build/components/boost-score-bar/index.d.ts +1 -1
- package/build/components/boost-score-bar/index.js +1 -1
- package/build/components/boost-score-graph/annotations-plugin.d.ts +1 -1
- package/build/components/boost-score-graph/index.js +3 -3
- package/build/components/boost-score-graph/tooltips-plugin.d.ts +1 -1
- package/build/components/boost-score-graph/tooltips-plugin.js +1 -1
- package/build/components/boost-score-graph/uplot-line-chart.d.ts +1 -1
- package/build/components/boost-score-graph/uplot-line-chart.js +8 -8
- package/build/components/boost-score-graph/use-boost-score-transform.d.ts +1 -1
- package/build/components/button/index.d.ts +1 -1
- package/build/components/contextual-upgrade-trigger/index.d.ts +1 -1
- package/build/components/contextual-upgrade-trigger/index.js +2 -2
- package/build/components/copy-to-clipboard/index.d.ts +1 -1
- package/build/components/copy-to-clipboard/index.js +2 -2
- package/build/components/copy-to-clipboard/types.d.ts +1 -1
- package/build/components/decorative-card/index.d.ts +1 -1
- package/build/components/dialog/index.js +3 -3
- package/build/components/diff-viewer/index.js +2 -2
- package/build/components/dot-pager/index.js +1 -1
- package/build/components/global-notices/global-notices.js +1 -1
- package/build/components/global-notices/index.d.ts +2 -2
- package/build/components/global-notices/index.js +2 -2
- package/build/components/gridicon/index.d.ts +1 -1
- package/build/components/icon-tooltip/index.d.ts +1 -1
- package/build/components/icon-tooltip/index.js +2 -2
- package/build/components/icons/index.d.ts +1 -1
- package/build/components/indeterminate-progress-bar/index.d.ts +1 -1
- package/build/components/jetpack-footer/index.d.ts +1 -1
- package/build/components/jetpack-footer/index.js +5 -5
- package/build/components/jetpack-logo/index.d.ts +1 -1
- package/build/components/jetpack-protect-logo/index.d.ts +1 -1
- package/build/components/jetpack-search-logo/index.d.ts +1 -1
- package/build/components/jetpack-vaultpress-backup-logo/index.d.ts +1 -1
- package/build/components/jetpack-videopress-logo/index.d.ts +1 -1
- package/build/components/layout/col/index.d.ts +1 -1
- package/build/components/layout/container/index.d.ts +1 -1
- package/build/components/number-format/index.js +1 -1
- package/build/components/number-slider/index.d.ts +1 -1
- package/build/components/pricing-card/index.d.ts +1 -1
- package/build/components/pricing-card/index.js +1 -1
- package/build/components/pricing-table/index.d.ts +1 -1
- package/build/components/pricing-table/index.js +4 -4
- package/build/components/pricing-table/types.d.ts +1 -1
- package/build/components/product-offer/icons-card.d.ts +1 -1
- package/build/components/product-offer/icons-card.js +1 -1
- package/build/components/product-offer/index.d.ts +2 -2
- package/build/components/product-offer/index.js +8 -8
- package/build/components/product-offer/product-offer-header.d.ts +1 -1
- package/build/components/product-offer/product-offer-header.js +1 -1
- package/build/components/product-offer/types.d.ts +2 -2
- package/build/components/product-price/index.d.ts +2 -2
- package/build/components/product-price/index.js +3 -3
- package/build/components/product-price/price.d.ts +1 -1
- package/build/components/product-price/price.js +1 -1
- package/build/components/progress-bar/index.d.ts +1 -1
- package/build/components/record-meter-bar/index.js +1 -1
- package/build/components/split-button/index.d.ts +1 -1
- package/build/components/stat-card/index.d.ts +1 -1
- package/build/components/stat-card/index.js +2 -2
- package/build/components/status/index.js +1 -1
- package/build/components/terms-of-service/index.d.ts +1 -1
- package/build/components/terms-of-service/index.js +2 -2
- package/build/components/terms-of-service/types.d.ts +1 -1
- package/build/components/testimonials/index.d.ts +1 -1
- package/build/components/testimonials/index.js +2 -2
- package/build/components/testimonials/testimonial.d.ts +1 -1
- package/build/components/text/index.d.ts +2 -2
- package/build/components/text/index.js +2 -2
- package/build/components/text/types.d.ts +1 -1
- package/build/components/theme-provider/index.d.ts +1 -1
- package/build/components/upsell-banner/index.d.ts +1 -1
- package/build/components/zendesk-chat/index.d.ts +1 -1
- package/build/components/zendesk-chat/index.js +1 -1
- package/build/index.d.ts +66 -66
- package/build/index.js +65 -65
- package/build/tools/jp-redirect/index.d.ts +1 -1
- package/build/tools/pricing-utils/index.d.ts +1 -1
- package/components/action-button/index.jsx +1 -1
- package/components/action-popover/index.tsx +5 -5
- package/components/admin-page/index.tsx +5 -5
- package/components/admin-page/style.module.scss +2 -2
- package/components/admin-page/types.ts +1 -1
- package/components/admin-section/basic/index.tsx +1 -1
- package/components/admin-section/hero/index.tsx +1 -1
- package/components/alert/style.module.scss +4 -0
- package/components/automattic-byline-logo/index.tsx +1 -1
- package/components/boost-score-bar/index.tsx +2 -2
- package/components/boost-score-bar/style.scss +6 -0
- package/components/boost-score-graph/annotations-plugin.ts +1 -1
- package/components/boost-score-graph/index.tsx +3 -3
- package/components/boost-score-graph/style-annotation.scss +3 -1
- package/components/boost-score-graph/style-tooltip.scss +1 -1
- package/components/boost-score-graph/tooltip.tsx +1 -1
- package/components/boost-score-graph/tooltips-plugin.ts +2 -2
- package/components/boost-score-graph/uplot-line-chart.tsx +9 -9
- package/components/boost-score-graph/use-boost-score-transform.ts +1 -1
- package/components/button/index.tsx +1 -1
- package/components/button/style.module.scss +2 -0
- package/components/contextual-upgrade-trigger/index.tsx +3 -3
- package/components/contextual-upgrade-trigger/style.module.scss +3 -2
- package/components/copy-to-clipboard/index.tsx +3 -3
- package/components/copy-to-clipboard/types.ts +1 -1
- package/components/decorative-card/index.tsx +1 -1
- package/components/decorative-card/style.scss +3 -3
- package/components/dialog/index.tsx +3 -3
- package/components/dialog/style.module.scss +1 -0
- package/components/diff-viewer/index.tsx +2 -2
- package/components/donut-meter/style.scss +3 -0
- package/components/dot-pager/index.tsx +1 -1
- package/components/dot-pager/style.scss +4 -0
- package/components/global-notices/global-notices.tsx +1 -1
- package/components/global-notices/index.ts +2 -2
- package/components/global-notices/styles.module.scss +1 -0
- package/components/gridicon/index.tsx +1 -1
- package/components/icon-tooltip/index.tsx +3 -3
- package/components/icon-tooltip/style.scss +3 -0
- package/components/icons/index.tsx +1 -1
- package/components/icons/style.module.scss +14 -1
- package/components/indeterminate-progress-bar/index.tsx +1 -1
- package/components/indeterminate-progress-bar/style.module.scss +2 -0
- package/components/jetpack-footer/index.tsx +6 -6
- package/components/jetpack-footer/style.scss +3 -0
- package/components/jetpack-logo/index.tsx +1 -1
- package/components/jetpack-protect-logo/index.tsx +1 -1
- package/components/jetpack-search-logo/index.tsx +1 -1
- package/components/jetpack-vaultpress-backup-logo/index.tsx +1 -1
- package/components/jetpack-videopress-logo/index.tsx +1 -1
- package/components/layout/breakpoints.module.scss +1 -0
- package/components/layout/col/index.tsx +1 -1
- package/components/layout/col/style.module.scss +3 -1
- package/components/layout/container/index.tsx +1 -1
- package/components/layout/container/style.module.scss +1 -1
- package/components/loading-placeholder/style.module.scss +3 -0
- package/components/notice/style.module.scss +3 -0
- package/components/number-format/index.ts +1 -1
- package/components/number-slider/index.tsx +1 -1
- package/components/number-slider/style.scss +3 -1
- package/components/popover/style.scss +1 -1
- package/components/pricing-card/index.tsx +2 -2
- package/components/pricing-card/style.scss +1 -0
- package/components/pricing-table/index.tsx +5 -5
- package/components/pricing-table/styles.module.scss +3 -1
- package/components/pricing-table/types.ts +1 -1
- package/components/product-offer/icons-card.tsx +2 -2
- package/components/product-offer/index.tsx +9 -9
- package/components/product-offer/product-offer-header.tsx +2 -2
- package/components/product-offer/types.ts +2 -2
- package/components/product-price/index.tsx +4 -4
- package/components/product-price/price.tsx +2 -2
- package/components/product-price/style.module.scss +2 -1
- package/components/progress-bar/index.tsx +1 -1
- package/components/radio-control/styles.module.scss +4 -0
- package/components/record-meter-bar/index.tsx +1 -1
- package/components/record-meter-bar/style.scss +5 -0
- package/components/spinner/style.scss +4 -3
- package/components/split-button/index.tsx +1 -1
- package/components/stat-card/index.tsx +3 -3
- package/components/status/index.tsx +1 -1
- package/components/status/style.module.scss +5 -0
- package/components/terms-of-service/index.tsx +3 -3
- package/components/terms-of-service/types.ts +1 -1
- package/components/testimonials/index.tsx +3 -3
- package/components/testimonials/style.scss +1 -0
- package/components/testimonials/testimonial.tsx +1 -1
- package/components/text/index.tsx +3 -3
- package/components/text/style.module.scss +2 -0
- package/components/text/types.ts +1 -1
- package/components/theme-provider/globals.module.scss +1 -0
- package/components/theme-provider/index.tsx +1 -1
- package/components/toggle-control/styles.module.scss +3 -0
- package/components/upsell-banner/index.tsx +1 -1
- package/components/upsell-banner/style.scss +2 -1
- package/components/zendesk-chat/index.tsx +2 -2
- package/index.ts +66 -66
- package/package.json +7 -6
- package/tools/jp-redirect/index.ts +1 -1
- package/tools/pricing-utils/index.ts +1 -1
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&.is-sm {
|
|
41
|
+
|
|
41
42
|
> ul {
|
|
42
43
|
flex-direction: column;
|
|
43
44
|
align-items: flex-start;
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
.jp-dashboard-footer__a8c-item {
|
|
104
|
+
|
|
103
105
|
.jp-dashboard-footer.is-lg & {
|
|
104
106
|
margin-inline-start: auto;
|
|
105
107
|
}
|
|
@@ -111,6 +113,7 @@
|
|
|
111
113
|
|
|
112
114
|
.jp-dashboard-footer__jp-item,
|
|
113
115
|
.jp-dashboard-footer__a8c-item {
|
|
116
|
+
|
|
114
117
|
> a {
|
|
115
118
|
text-decoration: none; // Logos typically have no hover effect
|
|
116
119
|
}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
4
|
+
import { JetpackLogoProps } from './types.tsx';
|
|
5
5
|
|
|
6
6
|
const JetpackVideoPressLogo: React.FC< JetpackLogoProps > = ( {
|
|
7
7
|
showText = true,
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
border: none;
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
outline: none;
|
|
27
|
+
|
|
27
28
|
svg {
|
|
28
29
|
display: block;
|
|
29
30
|
}
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
|
|
32
33
|
// Mobile layout differences.
|
|
33
34
|
@media screen and ( max-width: 600px ) {
|
|
35
|
+
|
|
34
36
|
.container {
|
|
35
37
|
position: relative;
|
|
36
38
|
padding-top: 68px;
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
a {
|
|
76
|
+
|
|
74
77
|
&, &:hover, &:active, &:focus {
|
|
75
78
|
color: var( --jp-black );
|
|
76
79
|
}
|
|
@@ -10,6 +10,7 @@ $track-height: 8px;
|
|
|
10
10
|
|
|
11
11
|
// On holding thumb styling
|
|
12
12
|
.jp-components-number-slider--is-holding {
|
|
13
|
+
|
|
13
14
|
.jp-components-number-slider__thumb {
|
|
14
15
|
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(6, 158, 8, 0.25);
|
|
15
16
|
}
|
|
@@ -22,6 +23,7 @@ $track-height: 8px;
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.jp-components-number-slider__track {
|
|
26
|
+
|
|
25
27
|
@include adjust-track-rail-styles;
|
|
26
28
|
top: calc(($thumb-height / 2) - ($track-height / 2));
|
|
27
29
|
background: var(--jp-gray);
|
|
@@ -46,7 +48,7 @@ $track-height: 8px;
|
|
|
46
48
|
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
47
49
|
border-radius: 4px;
|
|
48
50
|
color: var(--jp-black);
|
|
49
|
-
font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
51
|
+
font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
50
52
|
font-style: normal;
|
|
51
53
|
font-weight: 600;
|
|
52
54
|
font-size: var(--font-body);
|
|
@@ -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",
|
|
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.
|
|
6
|
-
import type { PricingCardProps } from './types.
|
|
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
|
|
|
@@ -10,17 +10,17 @@ import React, {
|
|
|
10
10
|
ReactElement,
|
|
11
11
|
CSSProperties,
|
|
12
12
|
} from 'react';
|
|
13
|
-
import IconTooltip from '../icon-tooltip/index.
|
|
14
|
-
import useBreakpointMatch from '../layout/use-breakpoint-match/index.
|
|
15
|
-
import TermsOfService from '../terms-of-service/index.
|
|
16
|
-
import Text from '../text/index.
|
|
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.
|
|
23
|
+
} from './types.ts';
|
|
24
24
|
|
|
25
25
|
const INCLUDED_TEXT = __( 'Included', 'jetpack-components' );
|
|
26
26
|
const NOT_INCLUDED_TEXT = __( 'Not included', 'jetpack-components' );
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&.is-primary {
|
|
28
|
+
|
|
28
29
|
> * {
|
|
29
30
|
background: var(--jp-white);
|
|
30
31
|
position: relative;
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
left: var(--padding);
|
|
79
80
|
right: var(--padding);
|
|
80
81
|
height: 1px;
|
|
82
|
+
|
|
81
83
|
.is-viewport-large & {
|
|
82
84
|
width: calc(100% + var(--gap));
|
|
83
85
|
left: 0;
|
|
@@ -140,7 +142,7 @@
|
|
|
140
142
|
width: fit-content;
|
|
141
143
|
|
|
142
144
|
> a {
|
|
143
|
-
color:
|
|
145
|
+
color: #000;
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
.is-viewport-large & {
|
|
@@ -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.
|
|
3
|
+
import { getIconBySlug } from '../icons/index.tsx';
|
|
4
4
|
import styles from './style.module.scss';
|
|
5
|
-
import { IconsCardProps } from './types.
|
|
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.
|
|
5
|
-
import Button from '../button/index.
|
|
6
|
-
import { CheckmarkIcon } from '../icons/index.
|
|
7
|
-
import ProductPrice from '../product-price/index.
|
|
8
|
-
import Text, { H3, Title } from '../text/index.
|
|
9
|
-
import { IconsCard } from './icons-card.
|
|
10
|
-
import { ProductOfferHeader } from './product-offer-header.
|
|
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.
|
|
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.
|
|
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.
|
|
3
|
+
import Text from '../text/index.tsx';
|
|
4
4
|
import styles from './style.module.scss';
|
|
5
|
-
import { ProductOfferHeaderProps } from './types.
|
|
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.
|
|
2
|
-
import type { JetpackIconSlug } from '../icons/index.
|
|
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.
|
|
10
|
-
import { Price } from './price.
|
|
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.
|
|
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.
|
|
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.
|
|
3
|
+
import Text from '../text/index.tsx';
|
|
4
4
|
import styles from './style.module.scss';
|
|
5
|
-
import type { PriceProps } from './types.
|
|
5
|
+
import type { PriceProps } from './types.ts';
|
|
6
6
|
import type React from 'react';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
/// @link https://github.com/WordPress/gutenberg/tree/trunk/packages/components/src/radio-control
|
|
5
5
|
|
|
6
6
|
.radio {
|
|
7
|
+
|
|
7
8
|
:global {
|
|
9
|
+
|
|
8
10
|
.components-radio-control {
|
|
11
|
+
|
|
9
12
|
&__input[type="radio"] {
|
|
13
|
+
|
|
10
14
|
&:checked {
|
|
11
15
|
background: var( --jp-green-40 );
|
|
12
16
|
border-color: var( --jp-green-40 );
|
|
@@ -11,16 +11,19 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&__legend {
|
|
14
|
+
|
|
14
15
|
&--items {
|
|
15
16
|
display: flex;
|
|
16
17
|
margin: 0;
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
&--item {
|
|
19
21
|
display: flex;
|
|
20
22
|
margin: 0;
|
|
21
23
|
margin-inline-end: 1em;
|
|
22
24
|
align-items: center;
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
&--item-circle {
|
|
25
28
|
width: 1rem;
|
|
26
29
|
height: 1rem;
|
|
@@ -28,9 +31,11 @@
|
|
|
28
31
|
margin-inline-end: 0.4em;
|
|
29
32
|
border-radius: 100%;
|
|
30
33
|
}
|
|
34
|
+
|
|
31
35
|
&--item-count {
|
|
32
36
|
margin-inline-end: 0.4em;
|
|
33
37
|
}
|
|
38
|
+
|
|
34
39
|
&--item-label-first {
|
|
35
40
|
margin-inline-end: 0.4em;
|
|
36
41
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@keyframes rotate-spinner {
|
|
2
|
+
|
|
2
3
|
100% {
|
|
3
4
|
transform: rotate( 360deg );
|
|
4
5
|
}
|
|
@@ -19,13 +20,13 @@
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.jp-components-spinner__outer {
|
|
22
|
-
border-top-color:
|
|
23
|
+
border-top-color: #fff;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.jp-components-spinner__inner {
|
|
26
27
|
width: 100%;
|
|
27
28
|
height: 100%;
|
|
28
|
-
border-top-color:
|
|
29
|
-
border-right-color:
|
|
29
|
+
border-top-color: #fff;
|
|
30
|
+
border-right-color: #fff;
|
|
30
31
|
opacity: 0.4;
|
|
31
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.
|
|
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.
|
|
10
|
-
import Text from '../text/index.
|
|
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.
|
|
12
|
+
import { StatCardProps } from './types.ts';
|
|
13
13
|
import type React from 'react';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&.is-active {
|
|
24
|
+
|
|
24
25
|
span, a {
|
|
25
26
|
color: var(--jp-green-50);
|
|
26
27
|
}
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
&.is-inactive {
|
|
35
|
+
|
|
34
36
|
span, a {
|
|
35
37
|
color: var(--jp-gray-50);
|
|
36
38
|
}
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
&.is-error {
|
|
46
|
+
|
|
44
47
|
span, a {
|
|
45
48
|
color: var(--jp-red-50);
|
|
46
49
|
}
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
&.is-action {
|
|
57
|
+
|
|
54
58
|
span, a {
|
|
55
59
|
color: var(--jp-yellow-30);
|
|
56
60
|
}
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
&.is-initializing {
|
|
68
|
+
|
|
64
69
|
span, a {
|
|
65
70
|
color: var(--jp-blue-40);
|
|
66
71
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createInterpolateElement } from '@wordpress/element';
|
|
2
2
|
import { __, sprintf } from '@wordpress/i18n';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { getRedirectUrl } from '
|
|
5
|
-
import Text from '../text/index.
|
|
6
|
-
import type { TermsOfServiceProps } from './types.
|
|
4
|
+
import { getRedirectUrl } from '../../index.ts';
|
|
5
|
+
import Text from '../text/index.tsx';
|
|
6
|
+
import type { TermsOfServiceProps } from './types.ts';
|
|
7
7
|
import './styles.scss';
|
|
8
8
|
|
|
9
9
|
const TermsOfService: React.FC< TermsOfServiceProps > = ( {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useCallback } from '@wordpress/element';
|
|
2
|
-
import Gridicon from '../gridicon/index.
|
|
3
|
-
import { Testimonial } from './testimonial.
|
|
4
|
-
import { TestimonialsType } from './types.
|
|
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,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.
|
|
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.
|
|
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.
|
|
90
|
+
export * from './constants.ts';
|
|
@@ -98,6 +98,7 @@ $sides: (
|
|
|
98
98
|
$sizes: ( 0, 1, 2, 3, 4, 5, 6, 7, 8 );
|
|
99
99
|
|
|
100
100
|
@each $size in $sizes {
|
|
101
|
+
|
|
101
102
|
/* m, p */
|
|
102
103
|
.#{$p}-#{$size} {
|
|
103
104
|
#{$prop}: calc( var( --spacing-base ) * #{$size} );
|
|
@@ -115,6 +116,7 @@ $sides: (
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
/* mt, mr, mb, ml */
|
|
119
|
+
|
|
118
120
|
/* pt, pr, pb, pl */
|
|
119
121
|
@each $side, $s in $sides {
|
|
120
122
|
.#{$p}#{$s}-#{$size} {
|