@automattic/jetpack-components 0.72.3 → 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 +11 -1
- 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/automattic-byline-logo/index.tsx +1 -1
- package/components/boost-score-bar/index.tsx +2 -2
- 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 +1 -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/contextual-upgrade-trigger/index.tsx +3 -3
- package/components/contextual-upgrade-trigger/style.module.scss +2 -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/diff-viewer/index.tsx +2 -2
- package/components/dot-pager/index.tsx +1 -1
- package/components/global-notices/global-notices.tsx +1 -1
- package/components/global-notices/index.ts +2 -2
- package/components/gridicon/index.tsx +1 -1
- package/components/icon-tooltip/index.tsx +3 -3
- package/components/icons/index.tsx +1 -1
- package/components/icons/style.module.scss +1 -1
- package/components/indeterminate-progress-bar/index.tsx +1 -1
- package/components/jetpack-footer/index.tsx +6 -6
- 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/col/index.tsx +1 -1
- package/components/layout/col/style.module.scss +1 -1
- package/components/layout/container/index.tsx +1 -1
- package/components/layout/container/style.module.scss +1 -1
- package/components/number-format/index.ts +1 -1
- package/components/number-slider/index.tsx +1 -1
- package/components/number-slider/style.scss +1 -1
- package/components/popover/style.scss +1 -1
- package/components/pricing-card/index.tsx +2 -2
- package/components/pricing-table/index.tsx +5 -5
- package/components/pricing-table/styles.module.scss +1 -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 +1 -1
- package/components/progress-bar/index.tsx +1 -1
- package/components/record-meter-bar/index.tsx +1 -1
- package/components/spinner/style.scss +3 -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/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/testimonial.tsx +1 -1
- package/components/text/index.tsx +3 -3
- package/components/text/types.ts +1 -1
- package/components/theme-provider/index.tsx +1 -1
- package/components/upsell-banner/index.tsx +1 -1
- package/components/upsell-banner/style.scss +1 -1
- package/components/zendesk-chat/index.tsx +2 -2
- package/index.ts +66 -66
- package/package.json +5 -5
- package/tools/jp-redirect/index.ts +1 -1
- package/tools/pricing-utils/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.72.4] - 2025-04-14
|
|
6
|
+
### Changed
|
|
7
|
+
- Adjust relative imports in TypeScript sources to use correct extensions after enabling TypeScript's new `rewriteRelativeImportExtensions` option. [#42990]
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Linting: Update stylesheets to use WordPress rules for fonts and colors. [#42920] [#42928]
|
|
11
|
+
- Linting: Format SCSS imports consistently. [#43018]
|
|
12
|
+
- Linting: Use double colon notation for pseudo-element selectors. [#43019]
|
|
13
|
+
|
|
5
14
|
## [0.72.3] - 2025-04-07
|
|
6
15
|
### Changed
|
|
7
|
-
-
|
|
16
|
+
- Linting: First pass of style coding standards. [#42734]
|
|
8
17
|
|
|
9
18
|
### Fixed
|
|
10
19
|
- Fix TypeScript type checking in the monorepo. [#42817]
|
|
@@ -1358,6 +1367,7 @@
|
|
|
1358
1367
|
### Changed
|
|
1359
1368
|
- Update node version requirement to 14.16.1
|
|
1360
1369
|
|
|
1370
|
+
[0.72.4]: https://github.com/Automattic/jetpack-components/compare/0.72.3...0.72.4
|
|
1361
1371
|
[0.72.3]: https://github.com/Automattic/jetpack-components/compare/0.72.2...0.72.3
|
|
1362
1372
|
[0.72.2]: https://github.com/Automattic/jetpack-components/compare/0.72.1...0.72.2
|
|
1363
1373
|
[0.72.1]: https://github.com/Automattic/jetpack-components/compare/0.72.0...0.72.1
|
|
@@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
* Internal dependencies
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import Button from
|
|
13
|
+
import Button from "../button/index.js";
|
|
14
14
|
import styles from './style.module.scss';
|
|
15
15
|
/**
|
|
16
16
|
* The Jetpack Action button.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types
|
|
3
3
|
*/
|
|
4
|
-
import { ActionPopoverProps } from './types.
|
|
4
|
+
import { ActionPopoverProps } from './types.ts';
|
|
5
5
|
declare const ActionPopover: ({ hideCloseButton, title, children, step, totalSteps, buttonContent, buttonDisabled, buttonHref, buttonExternalLink, offset, onClose, onClick, ...otherPopoverProps }: ActionPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default ActionPopover;
|
|
@@ -5,13 +5,13 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
import { Popover } from '@wordpress/components';
|
|
6
6
|
import { __, sprintf } from '@wordpress/i18n';
|
|
7
7
|
import { close } from '@wordpress/icons';
|
|
8
|
-
import Button from
|
|
9
|
-
import useBreakpointMatch from
|
|
10
|
-
import Text from
|
|
8
|
+
import Button from "../button/index.js";
|
|
9
|
+
import useBreakpointMatch from "../layout/use-breakpoint-match/index.js";
|
|
10
|
+
import Text from "../text/index.js";
|
|
11
11
|
/**
|
|
12
12
|
* Internal dependencies
|
|
13
13
|
*/
|
|
14
|
-
import ThemeProvider from
|
|
14
|
+
import ThemeProvider from "../theme-provider/index.js";
|
|
15
15
|
import styles from './styles.module.scss';
|
|
16
16
|
const ActionPopover = ({ hideCloseButton = false, title, children, step = null, totalSteps = null, buttonContent = null, buttonDisabled = false, buttonHref = null, buttonExternalLink = false, offset = 32, onClose, onClick, ...otherPopoverProps }) => {
|
|
17
17
|
const [isSm] = useBreakpointMatch('sm');
|
|
@@ -3,10 +3,10 @@ import restApi from '@automattic/jetpack-api';
|
|
|
3
3
|
import { __, sprintf } from '@wordpress/i18n';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useEffect, useCallback } from 'react';
|
|
6
|
-
import JetpackFooter from
|
|
7
|
-
import JetpackLogo from
|
|
8
|
-
import Col from
|
|
9
|
-
import Container from
|
|
6
|
+
import JetpackFooter from "../jetpack-footer/index.js";
|
|
7
|
+
import JetpackLogo from "../jetpack-logo/index.js";
|
|
8
|
+
import Col from "../layout/col/index.js";
|
|
9
|
+
import Container from "../layout/container/index.js";
|
|
10
10
|
import styles from './style.module.scss';
|
|
11
11
|
/**
|
|
12
12
|
* This is the base structure for any admin page. It comes with Header and Footer.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import Gridicon from
|
|
4
|
+
import Gridicon from "../gridicon/index.js";
|
|
5
5
|
import './style.scss';
|
|
6
6
|
export const BoostScoreBar = ({ score, isLoading, showPrevScores, active, prevScore = 0, scoreBarType, noBoostScoreTooltip, }) => {
|
|
7
7
|
if (!active) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Text from
|
|
3
|
-
import Background from
|
|
4
|
-
import UplotLineChart from
|
|
2
|
+
import Text from "../text/index.js";
|
|
3
|
+
import Background from "./background.js";
|
|
4
|
+
import UplotLineChart from "./uplot-line-chart.js";
|
|
5
5
|
import './style.scss';
|
|
6
6
|
/**
|
|
7
7
|
* BoostScoreGraph component composed by the chart and the legend.
|
|
@@ -3,14 +3,14 @@ import { __ } from '@wordpress/i18n';
|
|
|
3
3
|
import { useMemo, useRef, useCallback } from 'react';
|
|
4
4
|
import uPlot from 'uplot';
|
|
5
5
|
import UplotReact from 'uplot-react';
|
|
6
|
-
import { getUserLocale } from
|
|
7
|
-
import numberFormat from
|
|
8
|
-
import { annotationsPlugin } from
|
|
9
|
-
import { dayHighlightPlugin } from
|
|
10
|
-
import getDateFormat from
|
|
11
|
-
import { tooltipsPlugin } from
|
|
12
|
-
import { useBoostScoreTransform } from
|
|
13
|
-
import useResize from
|
|
6
|
+
import { getUserLocale } from "../../lib/locale/index.js";
|
|
7
|
+
import numberFormat from "../number-format/index.js";
|
|
8
|
+
import { annotationsPlugin } from "./annotations-plugin.js";
|
|
9
|
+
import { dayHighlightPlugin } from "./day-highlight-plugin.js";
|
|
10
|
+
import getDateFormat from "./get-date-format.js";
|
|
11
|
+
import { tooltipsPlugin } from "./tooltips-plugin.js";
|
|
12
|
+
import { useBoostScoreTransform } from "./use-boost-score-transform.js";
|
|
13
|
+
import useResize from "./use-resize.js";
|
|
14
14
|
import './style-uplot.scss';
|
|
15
15
|
const DEFAULT_DIMENSIONS = {
|
|
16
16
|
height: 300,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Icon, arrowRight } from '@wordpress/icons';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import IconTooltip from
|
|
5
|
-
import Text from
|
|
4
|
+
import IconTooltip from "../icon-tooltip/index.js";
|
|
5
|
+
import Text from "../text/index.js";
|
|
6
6
|
import styles from './style.module.scss';
|
|
7
7
|
const ContextualUpgradeTrigger = ({ description, cta, onClick, href, openInNewTab = false, className, tooltipText = '', }) => {
|
|
8
8
|
const Tag = href !== undefined ? 'a' : 'button';
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCopyToClipboard } from '@wordpress/compose';
|
|
3
3
|
import { useState, useRef, useEffect } from '@wordpress/element';
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import Button from
|
|
6
|
-
import { ClipboardIcon, CheckmarkIcon } from
|
|
5
|
+
import Button from "../button/index.js";
|
|
6
|
+
import { ClipboardIcon, CheckmarkIcon } from "../icons/index.js";
|
|
7
7
|
export const CopyToClipboard = ({ buttonStyle = 'icon', textToCopy, onCopy, ...buttonProps }) => {
|
|
8
8
|
const [hasCopied, setHasCopied] = useState(false);
|
|
9
9
|
const copyTimer = useRef();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import Col from
|
|
4
|
-
import Container from
|
|
5
|
-
import useBreakpointMatch from
|
|
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";
|
|
6
6
|
import styles from './style.module.scss';
|
|
7
7
|
/**
|
|
8
8
|
* Dialog component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import parseFilename from
|
|
4
|
-
import parsePatch from
|
|
3
|
+
import parseFilename from "./parse-filename.js";
|
|
4
|
+
import parsePatch from "./parse-patch.js";
|
|
5
5
|
import styles from './styles.module.scss';
|
|
6
6
|
const filename = ({ oldFileName, newFileName, }) => {
|
|
7
7
|
const { prev, next } = parseFilename(oldFileName, newFileName);
|
|
@@ -3,7 +3,7 @@ import { Button } from '@wordpress/components';
|
|
|
3
3
|
import { __, sprintf } from '@wordpress/i18n';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { Children, useState, useEffect, useCallback, useMemo } from 'react';
|
|
6
|
-
import { Swipeable } from
|
|
6
|
+
import { Swipeable } from "../swipeable/index.js";
|
|
7
7
|
import './style.scss';
|
|
8
8
|
const Controls = ({ currentPage, numberOfPages, setCurrentPage, tracksPrefix, tracksFn, }) => {
|
|
9
9
|
// Create a map of memoized handlers for each page
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SnackbarList } from '@wordpress/components';
|
|
3
3
|
import styles from './styles.module.scss';
|
|
4
|
-
import { useGlobalNotices } from
|
|
4
|
+
import { useGlobalNotices } from "./use-global-notices.js";
|
|
5
5
|
/**
|
|
6
6
|
* Renders the global notices.
|
|
7
7
|
*
|
|
@@ -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';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./global-notices.js";
|
|
2
|
+
export * from "./use-global-notices.js";
|
|
3
3
|
export { store as globalNoticesStore } from '@wordpress/notices';
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Popover } from '@wordpress/components';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useCallback, useState } from 'react';
|
|
5
|
-
import Button from
|
|
6
|
-
import Gridicon from
|
|
5
|
+
import Button from "../button/index.js";
|
|
6
|
+
import Gridicon from "../gridicon/index.js";
|
|
7
7
|
import './style.scss';
|
|
8
8
|
const placementsToPositions = (placement) => {
|
|
9
9
|
const mapping = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialLogo } from 'social-logos';
|
|
2
|
-
import { BaseIconProps } from './types.
|
|
2
|
+
import { BaseIconProps } from './types.ts';
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
export declare const AntiSpamIcon: React.FC<BaseIconProps>;
|
|
5
5
|
export declare const BackupIcon: React.FC<BaseIconProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.scss';
|
|
3
|
-
import type { JetpackFooterProps } from './types.
|
|
3
|
+
import type { JetpackFooterProps } from './types.ts';
|
|
4
4
|
/**
|
|
5
5
|
* JetpackFooter component displays a tiny Jetpack logo with the product name on the left and the Automattic Airline "by line" on the right.
|
|
6
6
|
*
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { __, _x } from '@wordpress/i18n';
|
|
3
3
|
import { Icon, external } from '@wordpress/icons';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { getRedirectUrl } from
|
|
6
|
-
import getSiteAdminUrl from
|
|
7
|
-
import AutomatticBylineLogo from
|
|
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";
|
|
8
8
|
import './style.scss';
|
|
9
|
-
import JetpackLogo from
|
|
10
|
-
import useBreakpointMatch from
|
|
9
|
+
import JetpackLogo from "../jetpack-logo/index.js";
|
|
10
|
+
import useBreakpointMatch from "../layout/use-breakpoint-match/index.js";
|
|
11
11
|
const JetpackIcon = () => (_jsx(JetpackLogo, { logoColor: "#000", showText: false, height: 16, "aria-hidden": "true" }));
|
|
12
12
|
const ExternalIcon = () => (_jsxs(_Fragment, { children: [_jsx(Icon, { icon: external, size: 16 }), _jsx("span", { className: "jp-dashboard-footer__accessible-external-link", children:
|
|
13
13
|
/* translators: accessibility text */
|
|
@@ -3,7 +3,7 @@ import { getCurrencyObject } from '@automattic/format-currency';
|
|
|
3
3
|
import { Button } from '@wordpress/components';
|
|
4
4
|
import { sprintf, __ } from '@wordpress/i18n';
|
|
5
5
|
import { LoadingPlaceholder } from '@automattic/jetpack-components';
|
|
6
|
-
import TermsOfService from
|
|
6
|
+
import TermsOfService from "../terms-of-service/index.js";
|
|
7
7
|
import './style.scss';
|
|
8
8
|
/**
|
|
9
9
|
* Whether or not to display a price's decimal part in the UI.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PricingTableProps, PricingTableColumnProps, PricingTableHeaderProps, PricingTableItemProps } from './types.
|
|
2
|
+
import { PricingTableProps, PricingTableColumnProps, PricingTableHeaderProps, PricingTableItemProps } from './types.ts';
|
|
3
3
|
export declare const PricingTableItem: React.FC<PricingTableItemProps>;
|
|
4
4
|
export declare const PricingTableHeader: React.FC<PricingTableHeaderProps>;
|
|
5
5
|
export declare const PricingTableColumn: React.FC<PricingTableColumnProps>;
|
|
@@ -3,10 +3,10 @@ import { __, sprintf } from '@wordpress/i18n';
|
|
|
3
3
|
import { Icon, check, closeSmall } from '@wordpress/icons';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { createContext, useContext, Children, cloneElement, } from 'react';
|
|
6
|
-
import IconTooltip from
|
|
7
|
-
import useBreakpointMatch from
|
|
8
|
-
import TermsOfService from
|
|
9
|
-
import Text from
|
|
6
|
+
import IconTooltip from "../icon-tooltip/index.js";
|
|
7
|
+
import useBreakpointMatch from "../layout/use-breakpoint-match/index.js";
|
|
8
|
+
import TermsOfService from "../terms-of-service/index.js";
|
|
9
|
+
import Text from "../text/index.js";
|
|
10
10
|
import styles from './styles.module.scss';
|
|
11
11
|
const INCLUDED_TEXT = __('Included', 'jetpack-components');
|
|
12
12
|
const NOT_INCLUDED_TEXT = __('Not included', 'jetpack-components');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Icon, plus } from '@wordpress/icons';
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
|
-
import { getIconBySlug } from
|
|
4
|
+
import { getIconBySlug } from "../icons/index.js";
|
|
5
5
|
import styles from './style.module.scss';
|
|
6
6
|
/**
|
|
7
7
|
* Icons composition for a bundle product,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductOfferProps } from './types.
|
|
1
|
+
import { ProductOfferProps } from './types.ts';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Product Detail component.
|
|
@@ -8,4 +8,4 @@ import type React from 'react';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const ProductOffer: React.FC<ProductOfferProps>;
|
|
10
10
|
export default ProductOffer;
|
|
11
|
-
export * from './icons-card.
|
|
11
|
+
export * from './icons-card.tsx';
|
|
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { __, sprintf } from '@wordpress/i18n';
|
|
3
3
|
import { Icon, check } from '@wordpress/icons';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import Alert from
|
|
6
|
-
import Button from
|
|
7
|
-
import { CheckmarkIcon } from
|
|
8
|
-
import ProductPrice from
|
|
9
|
-
import Text, { H3, Title } from
|
|
10
|
-
import { IconsCard } from
|
|
11
|
-
import { ProductOfferHeader } from
|
|
5
|
+
import Alert from "../alert/index.js";
|
|
6
|
+
import Button from "../button/index.js";
|
|
7
|
+
import { CheckmarkIcon } from "../icons/index.js";
|
|
8
|
+
import ProductPrice from "../product-price/index.js";
|
|
9
|
+
import Text, { H3, Title } from "../text/index.js";
|
|
10
|
+
import { IconsCard } from "./icons-card.js";
|
|
11
|
+
import { ProductOfferHeader } from "./product-offer-header.js";
|
|
12
12
|
import styles from './style.module.scss';
|
|
13
13
|
/**
|
|
14
14
|
* Product Detail component.
|
|
@@ -28,4 +28,4 @@ const ProductOffer = ({ addProductUrl, buttonDisclaimer, buttonText = '', classN
|
|
|
28
28
|
}), children: [isBundle && _jsx(ProductOfferHeader, {}), _jsxs("div", { className: styles['card-container'], children: [_jsx(IconsCard, { icon: icon, products: supportedProducts?.length ? supportedProducts : [slug], size: 32 }), _jsx(H3, { children: title }), subTitle && _jsx(Title, { mb: 3, children: subTitle }), description && _jsx(Text, { mb: 3, children: description }), _jsx("ul", { className: styles.features, children: features.map((feature, id) => (_jsxs(Text, { component: "li", variant: "body", children: [_jsx(Icon, { icon: check, size: 24, className: styles.check }), feature] }, `feature-${id}`))) }), needsPurchase && (_jsx(ProductPrice, { price: price, offPrice: offPrice, currency: currency })), isFree && _jsx(H3, { children: __('Free', 'jetpack-components') }), _jsx(Alert, { level: "error", showIcon: !!error, children: error }), buttonDisclaimer, (!isBundle || (isBundle && !hasRequiredPlan)) && (_jsx(Button, { onClick: addProductUrl ? null : onAdd, isLoading: isLoading, disabled: isLoading, variant: isLoading || !isBundle ? 'primary' : 'secondary', className: styles['add-button'], ...(addProductUrl ? { href: addProductUrl } : {}), children: buttonText || defautlButtonText })), isBundle && hasRequiredPlan && (_jsxs("div", { className: styles['product-has-required-plan'], children: [_jsx(CheckmarkIcon, { size: 36 }), _jsx(Text, { children: __('Active on your site', 'jetpack-components') })] }))] })] }));
|
|
29
29
|
};
|
|
30
30
|
export default ProductOffer;
|
|
31
|
-
export * from
|
|
31
|
+
export * from "./icons-card.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
import { Icon, starFilled as star } from '@wordpress/icons';
|
|
4
|
-
import Text from
|
|
4
|
+
import Text from "../text/index.js";
|
|
5
5
|
import styles from './style.module.scss';
|
|
6
6
|
/**
|
|
7
7
|
* Product Detail Card Header component.
|