@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styles from './style.module.scss';
|
|
3
|
-
import type { AdminSectionBaseProps } from '../types.
|
|
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.
|
|
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.
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
.is-error {
|
|
18
18
|
color: var( --jp-red );
|
|
19
|
+
|
|
19
20
|
.icon {
|
|
20
21
|
fill: var( --jp-red );
|
|
21
22
|
}
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
|
|
24
25
|
.is-warning {
|
|
25
26
|
color: var( --jp-yellow-40 );
|
|
27
|
+
|
|
26
28
|
.icon {
|
|
27
29
|
fill: var( --jp-yellow-40 );
|
|
28
30
|
}
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
|
|
31
33
|
.is-info {
|
|
32
34
|
color: var( --jp-blue-40 );
|
|
35
|
+
|
|
33
36
|
.icon {
|
|
34
37
|
fill: var( --jp-blue-40 );
|
|
35
38
|
}
|
|
@@ -37,6 +40,7 @@
|
|
|
37
40
|
|
|
38
41
|
.is-success {
|
|
39
42
|
color: var( --jp-green );
|
|
43
|
+
|
|
40
44
|
.icon {
|
|
41
45
|
fill: var( --jp-green );
|
|
42
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __ } from '@wordpress/i18n';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import Gridicon from '../gridicon/index.
|
|
4
|
-
import type { BoostScoreBarProps } from './types.
|
|
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';
|
|
@@ -25,6 +25,7 @@ $no_boost_score_size: 28px;
|
|
|
25
25
|
|
|
26
26
|
@media (max-width: 767px) {
|
|
27
27
|
flex-direction: column;
|
|
28
|
+
|
|
28
29
|
&__label {
|
|
29
30
|
background-color: transparent;
|
|
30
31
|
}
|
|
@@ -32,6 +33,7 @@ $no_boost_score_size: 28px;
|
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
&__loading {
|
|
36
|
+
|
|
35
37
|
@extend %score-pill;
|
|
36
38
|
width: $bar_height;
|
|
37
39
|
display: flex;
|
|
@@ -40,6 +42,7 @@ $no_boost_score_size: 28px;
|
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
&__label {
|
|
45
|
+
|
|
43
46
|
@extend %score-pill;
|
|
44
47
|
display: grid;
|
|
45
48
|
grid-template-columns: 24px 1fr;
|
|
@@ -57,6 +60,7 @@ $no_boost_score_size: 28px;
|
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
&__score {
|
|
63
|
+
|
|
60
64
|
@extend %score-pill;
|
|
61
65
|
border-radius: 100%;
|
|
62
66
|
font-weight: 700;
|
|
@@ -76,6 +80,7 @@ $no_boost_score_size: 28px;
|
|
|
76
80
|
max-width: 100%;
|
|
77
81
|
position: relative;
|
|
78
82
|
z-index: $label_z_index - 10;
|
|
83
|
+
|
|
79
84
|
@media (min-width: 768px) {
|
|
80
85
|
width: calc(100% + #{math.div($bar-height, 2)});
|
|
81
86
|
margin-left: math.div(-$bar_height, 2) ;
|
|
@@ -91,6 +96,7 @@ $no_boost_score_size: 28px;
|
|
|
91
96
|
will-change: width;
|
|
92
97
|
width: 0;
|
|
93
98
|
position: relative;
|
|
99
|
+
|
|
94
100
|
@media (max-width: 767px) {
|
|
95
101
|
min-width: $bar_height + 1px;
|
|
96
102
|
border-radius: inherit;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type FunctionComponent } from 'react';
|
|
2
|
-
import Text from '../text/index.
|
|
3
|
-
import Background from './background.
|
|
4
|
-
import UplotLineChart from './uplot-line-chart.
|
|
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: #
|
|
2
|
+
$white: #fff;
|
|
3
3
|
|
|
4
4
|
.jb-graph-annotations {
|
|
5
5
|
pointer-events: none;
|
|
@@ -33,6 +33,7 @@ $white: #ffffff;
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&:hover {
|
|
36
|
+
|
|
36
37
|
&::after {
|
|
37
38
|
background: rgba(146, 175, 215, 1);
|
|
38
39
|
}
|
|
@@ -40,6 +41,7 @@ $white: #ffffff;
|
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
&__annotation {
|
|
44
|
+
|
|
43
45
|
&::after {
|
|
44
46
|
content: '';
|
|
45
47
|
width: 0;
|
|
@@ -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.
|
|
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 {
|
|
4
|
-
import {
|
|
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.
|
|
6
|
-
import numberFormat from '../number-format/index.
|
|
7
|
-
import { annotationsPlugin } from './annotations-plugin.
|
|
8
|
-
import { dayHighlightPlugin } from './day-highlight-plugin.
|
|
9
|
-
import getDateFormat from './get-date-format.
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
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 = {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
padding: var( --spacing-base );
|
|
15
15
|
width: calc( var( --spacing-base ) * 5 );
|
|
16
16
|
height: calc( var( --spacing-base ) * 5 );
|
|
17
|
+
|
|
17
18
|
> svg:first-child {
|
|
18
19
|
margin: 0;
|
|
19
20
|
padding: 0;
|
|
@@ -170,6 +171,7 @@
|
|
|
170
171
|
|
|
171
172
|
// Link
|
|
172
173
|
&:global(.is-link) {
|
|
174
|
+
|
|
173
175
|
&:not(:disabled) {
|
|
174
176
|
color: var(--jp-red-50);
|
|
175
177
|
}
|
|
@@ -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.
|
|
4
|
-
import Text from '../text/index.
|
|
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.
|
|
6
|
+
import { CutBaseProps } from './types.ts';
|
|
7
7
|
import type React from 'react';
|
|
8
8
|
|
|
9
9
|
const ContextualUpgradeTrigger: React.FC< CutBaseProps > = ( {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
&:focus-within,
|
|
36
36
|
&:hover {
|
|
37
|
+
|
|
37
38
|
& .icon {
|
|
38
39
|
transform: translateX( calc( var( --spacing-base ) * 2 ) );
|
|
39
40
|
}
|
|
@@ -46,12 +47,12 @@
|
|
|
46
47
|
|
|
47
48
|
// Overwrite styles in Text component
|
|
48
49
|
.cta {
|
|
49
|
-
font-weight:
|
|
50
|
+
font-weight: 700;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
.cta {
|
|
54
|
-
font-weight:
|
|
55
|
+
font-weight: 700;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
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.
|
|
5
|
-
import { ClipboardIcon, CheckmarkIcon } from '../icons/index.
|
|
6
|
-
import { CopyToClipboardProps } from './types.
|
|
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 > = ( {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
background-size: cover;
|
|
23
23
|
position: relative;
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
&::before {
|
|
26
26
|
content: '';
|
|
27
27
|
display: block;
|
|
28
28
|
position: absolute;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&__content {
|
|
38
|
-
background: #
|
|
38
|
+
background: #FFF;
|
|
39
39
|
padding: 2rem;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
top: calc(100% + 16px);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
&::after {
|
|
89
89
|
top: calc(100% + 32px);
|
|
90
90
|
width: 75%;
|
|
91
91
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Col from '../layout/col/index.
|
|
4
|
-
import Container from '../layout/container/index.
|
|
5
|
-
import useBreakpointMatch from '../layout/use-breakpoint-match/index.
|
|
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.
|
|
3
|
-
import parsePatch from './parse-patch.
|
|
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.
|
|
5
|
+
import { Swipeable } from '../swipeable/index.tsx';
|
|
6
6
|
|
|
7
7
|
import './style.scss';
|
|
8
8
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
.dot-pager__page {
|
|
11
11
|
height: 100%;
|
|
12
12
|
transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
|
|
13
|
+
|
|
13
14
|
@include reduce-motion( "transition" );
|
|
14
15
|
opacity: 1;
|
|
15
16
|
visibility: visible;
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
left: 0;
|
|
27
28
|
right: 0;
|
|
28
29
|
z-index: 1;
|
|
30
|
+
|
|
29
31
|
li {
|
|
30
32
|
display: inline-flex;
|
|
31
33
|
margin: 0 4px;
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
&:first-child {
|
|
36
38
|
margin-left: 0;
|
|
37
39
|
}
|
|
40
|
+
|
|
38
41
|
&:last-child {
|
|
39
42
|
margin-right: 0;
|
|
40
43
|
}
|
|
@@ -74,6 +77,7 @@
|
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
.dot-pager {
|
|
80
|
+
|
|
77
81
|
&__button {
|
|
78
82
|
margin-right: 10px;
|
|
79
83
|
}
|
|
@@ -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.
|
|
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.
|
|
2
|
-
export * from './use-global-notices.
|
|
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.
|
|
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.
|
|
5
|
-
import Gridicon from '../gridicon/index.
|
|
6
|
-
import { IconTooltipProps, Placement, Position } from './types.
|
|
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
|
|
|
@@ -9,6 +9,7 @@ $arrow-color: var( --jp-gray );
|
|
|
9
9
|
|
|
10
10
|
// Namespace to avoid overriding global styles
|
|
11
11
|
.icon-tooltip-helper {
|
|
12
|
+
|
|
12
13
|
/*
|
|
13
14
|
* Fix arrow placement - section start
|
|
14
15
|
*/
|
|
@@ -19,6 +20,7 @@ $arrow-color: var( --jp-gray );
|
|
|
19
20
|
.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content {
|
|
20
21
|
margin-left: -62px;
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
/*
|
|
23
25
|
* Fix arrow placement - section end
|
|
24
26
|
*/
|
|
@@ -49,6 +51,7 @@ $arrow-color: var( --jp-gray );
|
|
|
49
51
|
.components-popover:not(.is-without-arrow)[data-y-axis=top]::after {
|
|
50
52
|
bottom: 4px;
|
|
51
53
|
}
|
|
54
|
+
|
|
52
55
|
/*
|
|
53
56
|
* Fix arrow position for legacy position option - section end
|
|
54
57
|
*/
|
|
@@ -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.
|
|
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:
|
|
4
|
+
fill: #000;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.jetpack,
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
.socialIcon {
|
|
13
13
|
fill: $gray-700;
|
|
14
|
+
|
|
14
15
|
&.bluesky {
|
|
15
16
|
fill: var( --color-bluesky );
|
|
16
17
|
}
|
|
18
|
+
|
|
17
19
|
&.facebook {
|
|
18
20
|
fill: var( --color-facebook );
|
|
19
21
|
// Add some specificity to override the border-radius on Jetpack settings page
|
|
@@ -21,24 +23,31 @@
|
|
|
21
23
|
border-radius: 50%;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
&.instagram {
|
|
25
28
|
fill: var( --color-instagram );
|
|
26
29
|
}
|
|
30
|
+
|
|
27
31
|
&.twitter {
|
|
28
32
|
fill: var( --color-twitter );
|
|
29
33
|
}
|
|
34
|
+
|
|
30
35
|
&.linkedin {
|
|
31
36
|
fill: var( --color-linkedin );
|
|
32
37
|
}
|
|
38
|
+
|
|
33
39
|
&.tumblr {
|
|
34
40
|
fill: var( --color-tumblr );
|
|
35
41
|
}
|
|
42
|
+
|
|
36
43
|
&.google {
|
|
37
44
|
fill: var( --color-gplus );
|
|
38
45
|
}
|
|
46
|
+
|
|
39
47
|
&.mastodon {
|
|
40
48
|
fill: var( --color-mastodon );
|
|
41
49
|
}
|
|
50
|
+
|
|
42
51
|
&.nextdoor {
|
|
43
52
|
fill: var( --color-nextdoor );
|
|
44
53
|
// Add some specificity to override the border-radius on Jetpack settings page
|
|
@@ -46,14 +55,18 @@
|
|
|
46
55
|
border-radius: 50%;
|
|
47
56
|
}
|
|
48
57
|
}
|
|
58
|
+
|
|
49
59
|
&.instagram {
|
|
50
60
|
fill: var( --color-instagram );
|
|
51
61
|
}
|
|
62
|
+
|
|
52
63
|
&.whatsapp {
|
|
53
64
|
fill: var( --color-whatsapp );
|
|
54
65
|
}
|
|
66
|
+
|
|
55
67
|
&.threads {
|
|
56
68
|
fill: var( --color-threads );
|
|
69
|
+
|
|
57
70
|
&:global(.social-logo) {
|
|
58
71
|
border-radius: 40%;
|
|
59
72
|
}
|
|
@@ -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.
|
|
10
|
+
import { IndeterminateProgressBarProps } from './types.ts';
|
|
11
11
|
import type React from 'react';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -22,12 +22,14 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@keyframes indeterminate_progress_bar__animation {
|
|
25
|
+
|
|
25
26
|
0% {
|
|
26
27
|
background-position: 136px 0;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
@media (prefers-reduced-motion: no-preference) {
|
|
32
|
+
|
|
31
33
|
.indeterminate-progress-bar {
|
|
32
34
|
animation: indeterminate_progress_bar__animation 2000ms infinite linear;
|
|
33
35
|
}
|
|
@@ -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.
|
|
6
|
-
import getSiteAdminUrl from '../../tools/get-site-admin-url/index.
|
|
7
|
-
import AutomatticBylineLogo from '../automattic-byline-logo/index.
|
|
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.
|
|
10
|
-
import useBreakpointMatch from '../layout/use-breakpoint-match/index.
|
|
11
|
-
import type { JetpackFooterProps, JetpackFooterMenuItem } from './types.
|
|
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" />
|