@automattic/jetpack-components 0.68.2 → 0.69.0
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 +5 -0
- package/build/components/action-button/index.d.ts +25 -0
- package/build/components/action-button/index.js +48 -0
- package/build/components/action-popover/index.d.ts +6 -0
- package/build/components/action-popover/index.js +38 -0
- package/build/components/action-popover/types.d.ts +20 -0
- package/build/components/action-popover/types.js +1 -0
- package/build/components/admin-page/index.d.ts +12 -0
- package/build/components/admin-page/index.js +44 -0
- package/build/components/admin-page/types.d.ts +56 -0
- package/build/components/admin-page/types.js +1 -0
- package/build/components/admin-section/basic/index.d.ts +10 -0
- package/build/components/admin-section/basic/index.js +12 -0
- package/build/components/admin-section/hero/index.d.ts +10 -0
- package/build/components/admin-section/hero/index.js +12 -0
- package/build/components/admin-section/types.d.ts +8 -0
- package/build/components/admin-section/types.js +1 -0
- package/build/components/alert/index.d.ts +23 -0
- package/build/components/alert/index.js +33 -0
- package/build/components/automattic-byline-logo/index.d.ts +10 -0
- package/build/components/automattic-byline-logo/index.js +13 -0
- package/build/components/automattic-byline-logo/types.d.ts +15 -0
- package/build/components/automattic-byline-logo/types.js +1 -0
- package/build/components/automattic-for-agencies-logo/index.d.ts +11 -0
- package/build/components/automattic-for-agencies-logo/index.js +12 -0
- package/build/components/automattic-icon-logo/index.d.ts +13 -0
- package/build/components/automattic-icon-logo/index.js +13 -0
- package/build/components/badge/index.d.ts +19 -0
- package/build/components/badge/index.js +22 -0
- package/build/components/boost-score-bar/index.d.ts +5 -0
- package/build/components/boost-score-bar/index.js +35 -0
- package/build/components/boost-score-bar/types.d.ts +9 -0
- package/build/components/boost-score-bar/types.js +1 -0
- package/build/components/boost-score-graph/annotations-plugin.d.ts +16 -0
- package/build/components/boost-score-graph/annotations-plugin.js +58 -0
- package/build/components/boost-score-graph/background.d.ts +3 -0
- package/build/components/boost-score-graph/background.js +5 -0
- package/build/components/boost-score-graph/day-highlight-plugin.d.ts +13 -0
- package/build/components/boost-score-graph/day-highlight-plugin.js +69 -0
- package/build/components/boost-score-graph/get-date-format.d.ts +9 -0
- package/build/components/boost-score-graph/get-date-format.js +52 -0
- package/build/components/boost-score-graph/index.d.ts +44 -0
- package/build/components/boost-score-graph/index.js +42 -0
- package/build/components/boost-score-graph/tooltip.d.ts +3 -0
- package/build/components/boost-score-graph/tooltip.js +22 -0
- package/build/components/boost-score-graph/tooltips-plugin.d.ts +15 -0
- package/build/components/boost-score-graph/tooltips-plugin.js +78 -0
- package/build/components/boost-score-graph/uplot-line-chart.d.ts +27 -0
- package/build/components/boost-score-graph/uplot-line-chart.js +187 -0
- package/build/components/boost-score-graph/use-boost-score-transform.d.ts +14 -0
- package/build/components/boost-score-graph/use-boost-score-transform.js +26 -0
- package/build/components/boost-score-graph/use-resize.d.ts +9 -0
- package/build/components/boost-score-graph/use-resize.js +31 -0
- package/build/components/button/index.d.ts +10 -0
- package/build/components/button/index.js +45 -0
- package/build/components/button/types.d.ts +19 -0
- package/build/components/button/types.js +1 -0
- package/build/components/chip/index.d.ts +15 -0
- package/build/components/chip/index.js +16 -0
- package/build/components/contextual-upgrade-trigger/index.d.ts +4 -0
- package/build/components/contextual-upgrade-trigger/index.js +12 -0
- package/build/components/contextual-upgrade-trigger/types.d.ts +9 -0
- package/build/components/contextual-upgrade-trigger/types.js +1 -0
- package/build/components/copy-to-clipboard/index.d.ts +4 -0
- package/build/components/copy-to-clipboard/index.js +40 -0
- package/build/components/copy-to-clipboard/types.d.ts +6 -0
- package/build/components/copy-to-clipboard/types.js +1 -0
- package/build/components/decorative-card/index.d.ts +11 -0
- package/build/components/decorative-card/index.js +13 -0
- package/build/components/decorative-card/types.d.ts +14 -0
- package/build/components/decorative-card/types.js +1 -0
- package/build/components/dialog/index.d.ts +20 -0
- package/build/components/dialog/index.js +31 -0
- package/build/components/diff-viewer/index.d.ts +4 -0
- package/build/components/diff-viewer/index.js +33 -0
- package/build/components/diff-viewer/parse-filename.d.ts +29 -0
- package/build/components/diff-viewer/parse-filename.js +61 -0
- package/build/components/diff-viewer/parse-patch.d.ts +9 -0
- package/build/components/diff-viewer/parse-patch.js +148 -0
- package/build/components/donut-meter/index.d.ts +58 -0
- package/build/components/donut-meter/index.js +36 -0
- package/build/components/global-notices/global-notices.d.ts +11 -0
- package/build/components/global-notices/global-notices.js +19 -0
- package/build/components/global-notices/index.d.ts +3 -0
- package/build/components/global-notices/index.js +3 -0
- package/build/components/global-notices/use-global-notices.d.ts +10 -0
- package/build/components/global-notices/use-global-notices.js +30 -0
- package/build/components/gridicon/index.d.ts +14 -0
- package/build/components/gridicon/index.js +167 -0
- package/build/components/gridicon/types.d.ts +39 -0
- package/build/components/gridicon/types.js +1 -0
- package/build/components/icon-tooltip/index.d.ts +11 -0
- package/build/components/icon-tooltip/index.js +75 -0
- package/build/components/icon-tooltip/types.d.ts +69 -0
- package/build/components/icon-tooltip/types.js +1 -0
- package/build/components/icons/index.d.ts +70 -0
- package/build/components/icons/index.js +86 -0
- package/build/components/icons/types.d.ts +27 -0
- package/build/components/icons/types.js +1 -0
- package/build/components/indeterminate-progress-bar/index.d.ts +10 -0
- package/build/components/indeterminate-progress-bar/index.js +20 -0
- package/build/components/indeterminate-progress-bar/types.d.ts +6 -0
- package/build/components/indeterminate-progress-bar/types.js +1 -0
- package/build/components/jetpack-footer/index.d.ts +11 -0
- package/build/components/jetpack-footer/index.js +71 -0
- package/build/components/jetpack-footer/types.d.ts +47 -0
- package/build/components/jetpack-footer/types.js +1 -0
- package/build/components/jetpack-logo/index.d.ts +4 -0
- package/build/components/jetpack-logo/index.js +10 -0
- package/build/components/jetpack-logo/types.d.ts +7 -0
- package/build/components/jetpack-logo/types.js +1 -0
- package/build/components/jetpack-protect-logo/index.d.ts +4 -0
- package/build/components/jetpack-protect-logo/index.js +10 -0
- package/build/components/jetpack-protect-logo/types.d.ts +7 -0
- package/build/components/jetpack-protect-logo/types.js +1 -0
- package/build/components/jetpack-search-logo/index.d.ts +4 -0
- package/build/components/jetpack-search-logo/index.js +7 -0
- package/build/components/jetpack-search-logo/types.d.ts +7 -0
- package/build/components/jetpack-search-logo/types.js +1 -0
- package/build/components/jetpack-vaultpress-backup-logo/index.d.ts +4 -0
- package/build/components/jetpack-vaultpress-backup-logo/index.js +8 -0
- package/build/components/jetpack-vaultpress-backup-logo/types.d.ts +6 -0
- package/build/components/jetpack-vaultpress-backup-logo/types.js +1 -0
- package/build/components/jetpack-videopress-logo/index.d.ts +4 -0
- package/build/components/jetpack-videopress-logo/index.js +8 -0
- package/build/components/jetpack-videopress-logo/types.d.ts +6 -0
- package/build/components/jetpack-videopress-logo/types.js +1 -0
- package/build/components/layout/col/index.d.ts +10 -0
- package/build/components/layout/col/index.js +42 -0
- package/build/components/layout/container/index.d.ts +4 -0
- package/build/components/layout/container/index.js +30 -0
- package/build/components/layout/types.d.ts +58 -0
- package/build/components/layout/types.js +1 -0
- package/build/components/layout/use-breakpoint-match/index.d.ts +19 -0
- package/build/components/layout/use-breakpoint-match/index.js +50 -0
- package/build/components/loading-placeholder/index.d.ts +8 -0
- package/build/components/loading-placeholder/index.js +7 -0
- package/build/components/marked-lines/index.d.ts +4 -0
- package/build/components/marked-lines/index.js +50 -0
- package/build/components/notice/index.d.ts +29 -0
- package/build/components/notice/index.js +35 -0
- package/build/components/number-control/index.d.ts +10 -0
- package/build/components/number-control/index.js +16 -0
- package/build/components/number-format/index.d.ts +9 -0
- package/build/components/number-format/index.js +13 -0
- package/build/components/number-slider/index.d.ts +12 -0
- package/build/components/number-slider/index.js +43 -0
- package/build/components/number-slider/types.d.ts +50 -0
- package/build/components/number-slider/types.js +1 -0
- package/build/components/popover/index.d.ts +9 -0
- package/build/components/popover/index.js +6 -0
- package/build/components/pricing-card/index.d.ts +11 -0
- package/build/components/pricing-card/index.js +32 -0
- package/build/components/pricing-card/types.d.ts +51 -0
- package/build/components/pricing-card/types.js +1 -0
- package/build/components/pricing-table/index.d.ts +7 -0
- package/build/components/pricing-table/index.js +66 -0
- package/build/components/pricing-table/types.d.ts +68 -0
- package/build/components/pricing-table/types.js +1 -0
- package/build/components/product-offer/icons-card.d.ts +10 -0
- package/build/components/product-offer/icons-card.js +23 -0
- package/build/components/product-offer/index.d.ts +11 -0
- package/build/components/product-offer/index.js +31 -0
- package/build/components/product-offer/product-offer-header.d.ts +9 -0
- package/build/components/product-offer/product-offer-header.js +14 -0
- package/build/components/product-offer/types.d.ts +102 -0
- package/build/components/product-offer/types.js +1 -0
- package/build/components/product-price/index.d.ts +11 -0
- package/build/components/product-price/index.js +32 -0
- package/build/components/product-price/price.d.ts +9 -0
- package/build/components/product-price/price.js +19 -0
- package/build/components/product-price/types.d.ts +61 -0
- package/build/components/product-price/types.js +1 -0
- package/build/components/progress-bar/index.d.ts +10 -0
- package/build/components/progress-bar/index.js +26 -0
- package/build/components/progress-bar/types.d.ts +18 -0
- package/build/components/progress-bar/types.js +1 -0
- package/build/components/qr-code/index.d.ts +46 -0
- package/build/components/qr-code/index.js +21 -0
- package/build/components/radio-control/index.d.ts +24 -0
- package/build/components/radio-control/index.js +8 -0
- package/build/components/record-meter-bar/index.d.ts +62 -0
- package/build/components/record-meter-bar/index.js +40 -0
- package/build/components/spinner/index.d.ts +13 -0
- package/build/components/spinner/index.js +27 -0
- package/build/components/split-button/index.d.ts +4 -0
- package/build/components/split-button/index.js +8 -0
- package/build/components/split-button/types.d.ts +8 -0
- package/build/components/split-button/types.js +1 -0
- package/build/components/stat-card/index.d.ts +9 -0
- package/build/components/stat-card/index.js +27 -0
- package/build/components/stat-card/types.d.ts +29 -0
- package/build/components/stat-card/types.js +1 -0
- package/build/components/status/index.d.ts +8 -0
- package/build/components/status/index.js +18 -0
- package/build/components/terms-of-service/index.d.ts +5 -0
- package/build/components/terms-of-service/index.js +32 -0
- package/build/components/terms-of-service/types.d.ts +23 -0
- package/build/components/terms-of-service/types.js +1 -0
- package/build/components/testimonials/index.d.ts +3 -0
- package/build/components/testimonials/index.js +18 -0
- package/build/components/testimonials/testimonial.d.ts +4 -0
- package/build/components/testimonials/testimonial.js +7 -0
- package/build/components/testimonials/types.d.ts +13 -0
- package/build/components/testimonials/types.js +1 -0
- package/build/components/text/constants.d.ts +14 -0
- package/build/components/text/constants.js +29 -0
- package/build/components/text/index.d.ts +32 -0
- package/build/components/text/index.js +53 -0
- package/build/components/text/types.d.ts +50 -0
- package/build/components/text/types.js +1 -0
- package/build/components/theme-provider/index.d.ts +80 -0
- package/build/components/theme-provider/index.js +129 -0
- package/build/components/theme-provider/types.d.ts +23 -0
- package/build/components/theme-provider/types.js +1 -0
- package/build/components/threat-fixer-button/index.d.ts +17 -0
- package/build/components/threat-fixer-button/index.js +56 -0
- package/build/components/threat-severity-badge/index.d.ts +4 -0
- package/build/components/threat-severity-badge/index.js +13 -0
- package/build/components/threats-data-views/constants.d.ts +33 -0
- package/build/components/threats-data-views/constants.js +37 -0
- package/build/components/threats-data-views/index.d.ts +30 -0
- package/build/components/threats-data-views/index.js +413 -0
- package/build/components/threats-data-views/threats-status-toggle-group-control.d.ts +16 -0
- package/build/components/threats-data-views/threats-status-toggle-group-control.js +95 -0
- package/build/components/toggle-control/index.d.ts +21 -0
- package/build/components/toggle-control/index.js +21 -0
- package/build/components/upsell-banner/index.d.ts +14 -0
- package/build/components/upsell-banner/index.js +21 -0
- package/build/components/upsell-banner/types.d.ts +13 -0
- package/build/components/upsell-banner/types.js +1 -0
- package/build/components/zendesk-chat/constants.d.ts +1 -0
- package/build/components/zendesk-chat/constants.js +2 -0
- package/build/components/zendesk-chat/index.d.ts +3 -0
- package/build/components/zendesk-chat/index.js +27 -0
- package/build/components/zendesk-chat/types.d.ts +11 -0
- package/build/components/zendesk-chat/types.js +1 -0
- package/build/index.d.ts +67 -0
- package/build/index.js +81 -0
- package/build/lib/locale/index.d.ts +13 -0
- package/build/lib/locale/index.js +34 -0
- package/build/tools/get-product-checkout-url/index.d.ts +10 -0
- package/build/tools/get-product-checkout-url/index.js +22 -0
- package/build/tools/get-site-admin-url/index.d.ts +6 -0
- package/build/tools/get-site-admin-url/index.js +13 -0
- package/build/tools/jp-redirect/index.d.ts +20 -0
- package/build/tools/jp-redirect/index.js +50 -0
- package/build/tools/jp-redirect/types.d.ts +39 -0
- package/build/tools/jp-redirect/types.js +1 -0
- package/build/tools/pricing-utils/index.d.ts +8 -0
- package/build/tools/pricing-utils/index.js +9 -0
- package/build/tools/pricing-utils/types.d.ts +12 -0
- package/build/tools/pricing-utils/types.js +1 -0
- package/components/boost-score-graph/uplot-line-chart.tsx +16 -1
- package/components/jetpack-footer/style.scss +5 -0
- package/components/number-slider/index.tsx +8 -2
- package/package.json +12 -5
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Popover } from '@wordpress/components';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useCallback, useState } from 'react';
|
|
5
|
+
import Button from '../button/index.js';
|
|
6
|
+
import Gridicon from '../gridicon/index.js';
|
|
7
|
+
import './style.scss';
|
|
8
|
+
const placementsToPositions = (placement) => {
|
|
9
|
+
const mapping = {
|
|
10
|
+
'top-end': 'top left',
|
|
11
|
+
top: 'top center',
|
|
12
|
+
'top-start': 'top right',
|
|
13
|
+
'bottom-end': 'bottom left',
|
|
14
|
+
bottom: 'bottom center',
|
|
15
|
+
'bottom-start': 'bottom right',
|
|
16
|
+
};
|
|
17
|
+
return mapping[placement];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Generate Icon Tooltip
|
|
21
|
+
*
|
|
22
|
+
* @param {IconTooltipProps} props - Props
|
|
23
|
+
* @return {React.ReactElement} - JSX element
|
|
24
|
+
*/
|
|
25
|
+
const IconTooltip = ({ className = '', iconClassName = '', placement = 'bottom-end', animate = true, iconCode = 'info-outline', iconSize = 18, offset = 10, title, children, popoverAnchorStyle = 'icon', forceShow = false, hoverShow = false, wide = false, inline = true, shift = false, }) => {
|
|
26
|
+
const POPOVER_HELPER_WIDTH = 124;
|
|
27
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
28
|
+
const [hoverTimeout, setHoverTimeout] = useState(null);
|
|
29
|
+
const hideTooltip = useCallback(() => setIsVisible(false), [setIsVisible]);
|
|
30
|
+
const toggleTooltip = useCallback(e => {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
setIsVisible(!isVisible);
|
|
33
|
+
}, [isVisible, setIsVisible]);
|
|
34
|
+
const args = {
|
|
35
|
+
// To be compatible with deprecating prop `position`.
|
|
36
|
+
position: placementsToPositions(placement),
|
|
37
|
+
placement,
|
|
38
|
+
animate,
|
|
39
|
+
noArrow: false,
|
|
40
|
+
resize: false,
|
|
41
|
+
flip: false,
|
|
42
|
+
offset,
|
|
43
|
+
focusOnMount: 'container',
|
|
44
|
+
onClose: hideTooltip,
|
|
45
|
+
className: 'icon-tooltip-container',
|
|
46
|
+
inline,
|
|
47
|
+
shift,
|
|
48
|
+
};
|
|
49
|
+
const isAnchorWrapper = popoverAnchorStyle === 'wrapper';
|
|
50
|
+
const wrapperClassNames = clsx('icon-tooltip-wrapper', className);
|
|
51
|
+
const iconShiftBySize = {
|
|
52
|
+
left: isAnchorWrapper ? 0 : -(POPOVER_HELPER_WIDTH / 2 - iconSize / 2) + 'px',
|
|
53
|
+
};
|
|
54
|
+
const isForcedToShow = isAnchorWrapper && forceShow;
|
|
55
|
+
const handleMouseEnter = useCallback(() => {
|
|
56
|
+
if (hoverShow) {
|
|
57
|
+
if (hoverTimeout) {
|
|
58
|
+
clearTimeout(hoverTimeout);
|
|
59
|
+
setHoverTimeout(null);
|
|
60
|
+
}
|
|
61
|
+
setIsVisible(true);
|
|
62
|
+
}
|
|
63
|
+
}, [hoverShow, hoverTimeout]);
|
|
64
|
+
const handleMouseLeave = useCallback(() => {
|
|
65
|
+
if (hoverShow) {
|
|
66
|
+
const id = setTimeout(() => {
|
|
67
|
+
setIsVisible(false);
|
|
68
|
+
setHoverTimeout(null);
|
|
69
|
+
}, 100);
|
|
70
|
+
setHoverTimeout(id);
|
|
71
|
+
}
|
|
72
|
+
}, [hoverShow]);
|
|
73
|
+
return (_jsxs("div", { className: wrapperClassNames, "data-testid": "icon-tooltip_wrapper", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [!isAnchorWrapper && (_jsx(Button, { variant: "link", onMouseDown: toggleTooltip, children: _jsx(Gridicon, { className: iconClassName, icon: iconCode, size: iconSize }) })), _jsx("div", { className: clsx('icon-tooltip-helper', { 'is-wide': wide }), style: iconShiftBySize, children: (isForcedToShow || isVisible) && (_jsx(Popover, { ...args, children: _jsxs("div", { children: [title && _jsx("div", { className: "icon-tooltip-title", children: title }), _jsx("div", { className: "icon-tooltip-content", children: children })] }) })) })] }));
|
|
74
|
+
};
|
|
75
|
+
export default IconTooltip;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
export type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
3
|
+
export type Position = 'top left' | 'top center' | 'top right' | 'bottom left' | 'bottom center' | 'bottom right';
|
|
4
|
+
export type IconTooltipProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The wrapper class name of this IconTooltip component.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The class name applied to Gridicon.
|
|
11
|
+
*/
|
|
12
|
+
iconClassName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The deprecated position of Popover.
|
|
15
|
+
*/
|
|
16
|
+
position?: Position;
|
|
17
|
+
/**
|
|
18
|
+
* The placement of Popover.
|
|
19
|
+
*/
|
|
20
|
+
placement?: Placement;
|
|
21
|
+
/**
|
|
22
|
+
* The animation for Popover appears.
|
|
23
|
+
*/
|
|
24
|
+
animate?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The icon code for Gridicon.
|
|
27
|
+
*/
|
|
28
|
+
iconCode?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The title of Popover.
|
|
31
|
+
*/
|
|
32
|
+
title?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The main body content of Popover.
|
|
35
|
+
*/
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The icon square width and height size (in px) also calculate the Popover shift.
|
|
39
|
+
*/
|
|
40
|
+
iconSize?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The distance (in px) between the anchor and the Popover.
|
|
43
|
+
*/
|
|
44
|
+
offset?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Set the Popover anchor for its alignment with placement.
|
|
47
|
+
*/
|
|
48
|
+
popoverAnchorStyle?: 'icon' | 'wrapper';
|
|
49
|
+
/**
|
|
50
|
+
* Force the Popover to show without an event trigger.
|
|
51
|
+
*/
|
|
52
|
+
forceShow?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Enables the Popover to show on hover.
|
|
55
|
+
*/
|
|
56
|
+
hoverShow?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Uses a wider content area when enabled.
|
|
59
|
+
*/
|
|
60
|
+
wide?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Whether to render the popover inline or as a portal.
|
|
63
|
+
*/
|
|
64
|
+
inline?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Enables the Popover to shift in order to stay in view when meeting the viewport edges.
|
|
67
|
+
*/
|
|
68
|
+
shift?: boolean;
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { SocialLogo } from 'social-logos';
|
|
2
|
+
import { BaseIconProps } from './types.js';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
export declare const AntiSpamIcon: React.FC<BaseIconProps>;
|
|
5
|
+
export declare const BackupIcon: React.FC<BaseIconProps>;
|
|
6
|
+
export declare const BoostIcon: React.FC<BaseIconProps>;
|
|
7
|
+
export declare const CrmIcon: React.FC<BaseIconProps>;
|
|
8
|
+
export declare const ExtrasIcon: React.FC<BaseIconProps>;
|
|
9
|
+
export declare const ProtectIcon: React.FC<BaseIconProps>;
|
|
10
|
+
export declare const ScanIcon: React.FC<BaseIconProps>;
|
|
11
|
+
export declare const SearchIcon: React.FC<BaseIconProps>;
|
|
12
|
+
export declare const SocialIcon: React.FC<BaseIconProps>;
|
|
13
|
+
export declare const VideopressIcon: React.FC<BaseIconProps>;
|
|
14
|
+
export declare const StarIcon: React.FC<BaseIconProps>;
|
|
15
|
+
export declare const CheckmarkIcon: React.FC<BaseIconProps>;
|
|
16
|
+
export declare const ClipboardIcon: React.FC<BaseIconProps>;
|
|
17
|
+
export declare const JetpackIcon: React.FC<BaseIconProps>;
|
|
18
|
+
export declare const ShareIcon: React.FC<BaseIconProps>;
|
|
19
|
+
export declare const AiIcon: React.FC<BaseIconProps>;
|
|
20
|
+
export declare const StatsIcon: React.FC<BaseIconProps>;
|
|
21
|
+
declare const jetpackIcons: {
|
|
22
|
+
'anti-spam': React.FC<BaseIconProps>;
|
|
23
|
+
backup: React.FC<BaseIconProps>;
|
|
24
|
+
boost: React.FC<BaseIconProps>;
|
|
25
|
+
crm: React.FC<BaseIconProps>;
|
|
26
|
+
extras: React.FC<BaseIconProps>;
|
|
27
|
+
protect: React.FC<BaseIconProps>;
|
|
28
|
+
scan: React.FC<BaseIconProps>;
|
|
29
|
+
search: React.FC<BaseIconProps>;
|
|
30
|
+
social: React.FC<BaseIconProps>;
|
|
31
|
+
star: React.FC<BaseIconProps>;
|
|
32
|
+
videopress: React.FC<BaseIconProps>;
|
|
33
|
+
jetpack: React.FC<BaseIconProps>;
|
|
34
|
+
share: React.FC<BaseIconProps>;
|
|
35
|
+
ai: React.FC<BaseIconProps>;
|
|
36
|
+
stats: React.FC<BaseIconProps>;
|
|
37
|
+
};
|
|
38
|
+
declare const iconsMap: {
|
|
39
|
+
'anti-spam': React.FC<BaseIconProps>;
|
|
40
|
+
backup: React.FC<BaseIconProps>;
|
|
41
|
+
boost: React.FC<BaseIconProps>;
|
|
42
|
+
crm: React.FC<BaseIconProps>;
|
|
43
|
+
extras: React.FC<BaseIconProps>;
|
|
44
|
+
protect: React.FC<BaseIconProps>;
|
|
45
|
+
scan: React.FC<BaseIconProps>;
|
|
46
|
+
search: React.FC<BaseIconProps>;
|
|
47
|
+
social: React.FC<BaseIconProps>;
|
|
48
|
+
star: React.FC<BaseIconProps>;
|
|
49
|
+
videopress: React.FC<BaseIconProps>;
|
|
50
|
+
jetpack: React.FC<BaseIconProps>;
|
|
51
|
+
share: React.FC<BaseIconProps>;
|
|
52
|
+
ai: React.FC<BaseIconProps>;
|
|
53
|
+
stats: React.FC<BaseIconProps>;
|
|
54
|
+
};
|
|
55
|
+
export type JetpackIconSlug = keyof typeof jetpackIcons;
|
|
56
|
+
export type IconsMap = typeof iconsMap;
|
|
57
|
+
export type IconSlug = keyof IconsMap;
|
|
58
|
+
/**
|
|
59
|
+
* Return icon component by slug.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} slug - Icon slug.
|
|
62
|
+
* @return {React.ComponentType<BaseIconProps>} Icon component.
|
|
63
|
+
*/
|
|
64
|
+
export declare function getIconBySlug<Slug extends IconSlug>(slug: Slug): IconsMap[Slug];
|
|
65
|
+
export declare const SocialServiceIcon: React.FC<{
|
|
66
|
+
serviceName: React.ComponentProps<typeof SocialLogo>['icon'];
|
|
67
|
+
className?: string;
|
|
68
|
+
iconSize?: number;
|
|
69
|
+
}>;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Path, SVG, G, Polygon } from '@wordpress/components';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { SocialLogo } from 'social-logos';
|
|
5
|
+
import styles from './style.module.scss';
|
|
6
|
+
/**
|
|
7
|
+
* Icon Wrapper component.
|
|
8
|
+
*
|
|
9
|
+
* @param {BaseIconProps} props - Component props.
|
|
10
|
+
* @return {React.ReactNode} Icon Wrapper component.
|
|
11
|
+
*/
|
|
12
|
+
const IconWrapper = ({ className, size = 24, viewBox = '0 0 24 24', opacity = 1, color = '#2C3338', children, }) => {
|
|
13
|
+
const iconProps = {
|
|
14
|
+
className: clsx(styles.iconWrapper, className),
|
|
15
|
+
width: size,
|
|
16
|
+
height: size,
|
|
17
|
+
viewBox,
|
|
18
|
+
opacity,
|
|
19
|
+
fill: undefined,
|
|
20
|
+
};
|
|
21
|
+
if (color) {
|
|
22
|
+
iconProps.fill = color;
|
|
23
|
+
}
|
|
24
|
+
return (_jsx(SVG, { ...iconProps, fillRule: "evenodd", clipRule: "evenodd", xmlns: "http://www.w3.org/2000/svg", children: _jsx(G, { opacity: opacity, children: children }) }));
|
|
25
|
+
};
|
|
26
|
+
export const AntiSpamIcon = ({ opacity = 1, size, color }) => (_jsxs(IconWrapper, { size: size, opacity: opacity, color: color, children: [_jsx(Path, { d: "M13.2,4.7l4.7,12.8c0.4,1.1,1,1.5,2.1,1.6c0.1,0,0.1,0,0.1,0l0.1,0.1l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1\n\t\ts0,0.1-0.1,0.1c-0.1,0-0.1,0.1-0.1,0.1s-0.1,0-0.2,0h-5.1c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1\n\t\tc0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1l0.1-0.1c0,0,0.1,0,0.2,0c0.5,0,1.1-0.2,1.1-0.8c0-0.3-0.1-0.5-0.2-0.8l-1.1-3.1\n\t\tc-0.1-0.2-0.1-0.2-0.2-0.2h-4.3c-0.7,0-1.5,0-1.9,0.9l-1.1,2.4C7.1,17.6,7,17.8,7,18.1c0,0.8,1,0.9,1.6,0.9c0.1,0,0.1,0,0.2,0\n\t\tL8.8,19l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1s-0.1,0.1-0.1,0.1l-0.1,0.1c-0.1,0-0.1,0-0.2,0H4.1c-0.1,0-0.1,0-0.1,0\n\t\tc-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1L4,19c0,0,0.1,0,0.1,0C5.2,19,5.5,18.5,6,17.5\n\t\tl5.4-12.4c0.2-0.5,0.8-1,1.3-1C13,4.2,13.1,4.4,13.2,4.7z M9.1,13.1c0,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.1,0.1h4.4\n\t\tc0.3,0,0.4-0.1,0.4-0.3c0-0.1,0-0.2-0.1-0.3l-1.2-3.5c-0.3-0.8-0.8-1.9-0.8-2.7c0-0.1,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0.1\n\t\tc-0.1,0.6-0.4,1.2-0.7,1.7L9.1,13.1z" }), _jsx(Path, { d: "M13.2,4.7l4.7,12.8c0.4,1.1,1,1.5,2.1,1.6c0.1,0,0.1,0,0.1,0l0.1,0.1l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1\n\t\t\ts0,0.1-0.1,0.1c-0.1,0-0.1,0.1-0.1,0.1s-0.1,0-0.2,0h-5.1c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1\n\t\t\tc0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1l0.1-0.1c0,0,0.1,0,0.2,0c0.5,0,1.1-0.2,1.1-0.8c0-0.3-0.1-0.5-0.2-0.8l-1.1-3.1\n\t\t\tc-0.1-0.2-0.1-0.2-0.2-0.2h-4.3c-0.7,0-1.5,0-1.9,0.9l-1.1,2.4C7.1,17.6,7,17.8,7,18.1c0,0.8,1,0.9,1.6,0.9c0.1,0,0.1,0,0.2,0\n\t\t\tL8.8,19l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1s-0.1,0.1-0.1,0.1l-0.1,0.1c-0.1,0-0.1,0-0.2,0H4.1c-0.1,0-0.1,0-0.1,0\n\t\t\tc-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1L4,19c0,0,0.1,0,0.1,0C5.2,19,5.5,18.5,6,17.5\n\t\t\tl5.4-12.4c0.2-0.5,0.8-1,1.3-1C13,4.2,13.1,4.4,13.2,4.7z M9.1,13.1c0,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.1,0.1h4.4\n\t\t\tc0.3,0,0.4-0.1,0.4-0.3c0-0.1,0-0.2-0.1-0.3l-1.2-3.5c-0.3-0.8-0.8-1.9-0.8-2.7c0-0.1,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0.1\n\t\t\tc-0.1,0.6-0.4,1.2-0.7,1.7L9.1,13.1z" }), _jsx(Path, { d: "M21.6,12.5c0,0.6-0.3,1-0.9,1c-0.6,0-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1C21.3,11.7,21.6,12.1,21.6,12.5z" }), _jsx(Path, { d: "M4.1,12.5c0,0.6-0.3,1-0.9,1s-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1S4.1,12.1,4.1,12.5z" })] }));
|
|
27
|
+
export const BackupIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { d: "M2.1,5.8c0-0.1,0-0.1,0-0.2c0-0.2,0.1-0.5,0.1-0.7c0.1-0.4,0.4-0.6,0.7-0.8l8.3-2.9c0.1-0.1,0.3-0.1,0.4-0.1l0.5,0.1\n\t\t\tl8.3,2.9c0.3,0.2,0.5,0.4,0.7,0.7c0.2,0.2,0.2,0.4,0.2,0.7c0,0.1,0,0.1,0,0.2v0.1c-0.1,0.5-0.2,0.9-0.3,1.4\n\t\t\tc-0.2,0.4-0.3,1.2-0.7,2.2c-0.3,1-0.7,2.1-1.1,3.1c-0.5,1-1,2.1-1.6,3.3s-1.4,2.3-2.2,3.5c-0.9,1.1-1.8,2.2-2.8,3.1\n\t\t\tc-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4c-1.2-1.1-2.4-2.4-3.5-4c-1-1.6-1.9-3-2.5-4.3c-0.6-1.3-1.1-2.7-1.6-4\n\t\t\tC2.8,8.7,2.5,7.6,2.3,7C2.3,6.5,2.1,6.1,2.1,5.8z M2.9,5.9c0,0.2,0.1,0.4,0.1,0.8C3.1,7,3.2,7.5,3.5,8.2C3.7,9,3.9,9.7,4.2,10.6\n\t\t\tc0.3,0.7,0.7,1.7,1.1,2.7c0.4,1,1,2,1.5,2.9c0.5,1,1.2,1.9,1.9,2.9c0.8,1,1.6,1.9,2.4,2.6c0.2,0.2,0.4,0.2,0.5,0.2\n\t\t\tc0.2,0,0.4-0.1,0.5-0.2c1.2-1,2.2-2.3,3.2-3.8c1-1.5,1.8-2.8,2.3-4c0.6-1.3,1.1-2.5,1.5-3.9c0.4-1.3,0.7-2.2,0.9-2.8\n\t\t\tc0.1-0.5,0.2-1,0.3-1.3c0-0.1,0-0.1,0-0.1c0-0.2,0-0.3-0.1-0.4C20.3,5.2,20.2,5.1,20,5L12,2.1c0,0-0.1,0-0.2,0s-0.1,0-0.1,0h-0.2\n\t\t\tl-8,2.8C3.2,5,3.1,5.2,3,5.3C2.9,5.5,2.9,5.6,2.9,5.8C2.9,5.8,2.9,5.8,2.9,5.9z M5.9,6.7h3l2.8,7l2.8-7h3c-0.1,0.1-0.2,0.5-0.3,0.8\n\t\t\tC17,7.8,17,8.2,16.8,8.4c-0.1,0.3-0.2,0.5-0.4,0.8c0,0.1-0.1,0.1-0.1,0.1s-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.1,0\n\t\t\tc-0.1,0-0.2,0.1-0.2,0.2c0,0-0.1,0.1-0.1,0.1s-0.1,0.1-0.1,0.1c0,0,0,0.1-0.1,0.2c0,0.1-0.1,0.1-0.1,0.1l-0.4,1.1\n\t\t\tc-1.3,3.3-2.1,5.2-2.3,5.8h-2.2l-1-2.4c-0.1-0.3-0.3-0.8-0.5-1.3c-0.1-0.3-0.3-0.8-0.5-1.3L8,10.8c-0.1-0.1-0.1-0.2-0.1-0.4\n\t\t\tC7.8,10.2,7.7,10,7.7,9.8C7.6,9.7,7.5,9.5,7.4,9.4C7.3,9.3,7.3,9.3,7.3,9.3c-0.1,0-0.2,0-0.2,0s-0.1,0-0.1,0\n\t\t\tC6.6,8.5,6.3,7.6,5.9,6.7z" }) }));
|
|
28
|
+
export const BoostIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M4.19505 16.2545C4.47368 16.561 4.94802 16.5836 5.25451 16.3049L10.2595 11.7549L14.2842 15.2765L19 10.5607V13.75H20.5V9.5V8.75239V8.7476V8H19.7529H19.7471H19H14.75V9.5H17.9393L14.2158 13.2235L10.2405 9.74507L4.2455 15.195C3.93901 15.4737 3.91642 15.948 4.19505 16.2545Z" }) }));
|
|
29
|
+
export const CrmIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { d: "M15.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm-2.25 6v-2a2.75 2.75 0 0 0-2.75-2.75h-4A2.75 2.75 0 0 0 3.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5Zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0 1 20.25 15ZM9.5 8.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z" }) }));
|
|
30
|
+
export const ExtrasIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { d: "M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5ZM12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6h-1.5v6a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h6V4Z" }) }));
|
|
31
|
+
export const ProtectIcon = ({ opacity = 1, size, className, color, }) => (_jsxs(IconWrapper, { className: className, size: size, opacity: opacity, color: color, children: [_jsx(Path, { d: "M12 3.17627L18.75 6.24445V10.8183C18.75 14.7173 16.2458 18.4089 12.7147 19.5735C12.2507 19.7265 11.7493 19.7265 11.2853 19.5735C7.75416 18.4089 5.25 14.7173 5.25 10.8183V6.24445L12 3.17627ZM6.75 7.21032V10.8183C6.75 14.1312 8.89514 17.2057 11.7551 18.149C11.914 18.2014 12.086 18.2014 12.2449 18.149C15.1049 17.2057 17.25 14.1312 17.25 10.8183V7.21032L12 4.82396L6.75 7.21032Z" }), _jsx(Path, { d: "M15.5291 10.0315L11.1818 14.358L8.47095 11.66L9.52907 10.5968L11.1818 12.2417L14.4709 8.96826L15.5291 10.0315Z" })] }));
|
|
32
|
+
export const ScanIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { d: "m12 3.176 6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 0 1-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176ZM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21Z" }) }));
|
|
33
|
+
export const SearchIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { d: "M17.5 11.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm1.5 0a5.5 5.5 0 0 1-9.142 4.121l-3.364 2.943-.988-1.128 3.373-2.952A5.5 5.5 0 1 1 19 11.5Z" }) }));
|
|
34
|
+
export const SocialIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { d: "M15.5 3.97809V18.0219L7.5 15.5977V20H6V15.1431L3.27498 14.3173C2.22086 13.9979 1.5 13.0262 1.5 11.9248V10.0752C1.5 8.97375 2.22087 8.00207 3.27498 7.68264L15.5 3.97809ZM14 16L7.5 14.0303L7.5 7.96969L14 5.99999V16ZM6 8.42423L6 13.5757L3.70999 12.8818C3.28835 12.754 3 12.3654 3 11.9248V10.0752C3 9.63462 3.28835 9.24595 3.70999 9.11818L6 8.42423ZM17.5 11.75H21.5V10.25H17.5V11.75ZM21.5 16L17.5 15V13.5L21.5 14.5V16ZM17.5 8.5L21.5 7.5V6L17.5 7V8.5Z" }) }));
|
|
35
|
+
export const VideopressIcon = ({ opacity = 1, size, color }) => (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M4.3,6.2c0.8,0,1.6,0.6,1.8,1.4l2.3,7.9c0,0,0,0,0,0l2.7-9.3h1.5h4.2c2.9,0,4.9,1.9,4.9,4.7c0,2.9-2,4.7-5,4.7\n\t\t\th-2h-2.5l-0.5,1.5c-0.4,1.4-1.7,2.3-3.2,2.3c-1.4,0-2.7-0.9-3.2-2.3L2.5,8.7C2.1,7.4,3,6.2,4.3,6.2z M13,12.8h2.9c1.3,0,2-0.7,2-1.9\n\t\t\tc0-1.2-0.8-1.8-2-1.8h-1.7L13,12.8z" }) }));
|
|
36
|
+
export const StarIcon = ({ size, className = styles['star-icon'], color, }) => (_jsx(IconWrapper, { className: className, size: size, color: color, children: _jsx(Path, { d: "M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304" }) }));
|
|
37
|
+
export const CheckmarkIcon = ({ size, className = styles['checkmark-icon'], color, }) => (_jsx(IconWrapper, { className: className, size: size, color: color, children: _jsx(Path, { d: "M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z" }) }));
|
|
38
|
+
export const ClipboardIcon = ({ size, className = styles['clipboard-icon'], color, }) => (_jsx(IconWrapper, { className: className, size: size, color: color, children: _jsx(Path, { d: "M5.625 5.5H15.375C15.444 5.5 15.5 5.55596 15.5 5.625V15.375C15.5 15.444 15.444 15.5 15.375 15.5H5.625C5.55596 15.5 5.5 15.444 5.5 15.375V5.625C5.5 5.55596 5.55596 5.5 5.625 5.5ZM4 5.625C4 4.72754 4.72754 4 5.625 4H15.375C16.2725 4 17 4.72754 17 5.625V10V15.375C17 16.2725 16.2725 17 15.375 17C15.375 17 6.52246 17 5.625 17C4.72754 17 4 16.2725 4 15.375V5.625ZM18.5 17.2812V8.28125H20V17.2812C20 18.7995 18.7704 20 17.2511 20H6.25V18.5H17.2511C17.9409 18.5 18.5 17.9721 18.5 17.2812Z" }) }));
|
|
39
|
+
export const JetpackIcon = ({ size, className = styles.jetpack, color, }) => {
|
|
40
|
+
return (_jsxs(IconWrapper, { className: className, size: size, color: color, viewBox: "0 0 32 32", children: [_jsx(Path, { className: "jetpack-logo__icon-circle", d: "M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z" }), _jsx(Polygon, { fill: "#fff", points: "15,19 7,19 15,3" }), _jsx(Polygon, { fill: "#fff", points: "17,29 17,13 25,13" })] }));
|
|
41
|
+
};
|
|
42
|
+
export const ShareIcon = ({ size = 16, className, color }) => {
|
|
43
|
+
return (_jsx(IconWrapper, { className: className, size: size, color: color, viewBox: "0 0 16 16", children: _jsx(Path, { fill: "#161722", fillRule: "evenodd", d: "M8.3 4.66C3.85 5.308.727 9.75.034 13.69l-.02.117c-.137.842.809 1.232 1.446.68 2.013-1.745 3.648-2.475 5.318-2.719a10.482 10.482 0 011.524-.103v2.792c0 .694.82 1.041 1.3.55l6.176-6.307a.79.79 0 00.012-1.088L9.614 1.004C9.14.496 8.301.84 8.301 1.542v3.117zm1.525-1.175v1.85a.773.773 0 01-.654.77l-.655.096c-2.133.311-3.987 1.732-5.295 3.672-.472.7-.854 1.44-1.143 2.18a12.32 12.32 0 011.675-.972c1.58-.75 3.048-.972 4.548-.972h.762a.77.77 0 01.762.779v1.69l4.347-4.44-4.347-4.653z", clipRule: "evenodd" }) }));
|
|
44
|
+
};
|
|
45
|
+
export const AiIcon = ({ size = 24, color = '#069e08', // JP green
|
|
46
|
+
}) => {
|
|
47
|
+
return (_jsxs(IconWrapper, { color: color, size: size, viewBox: '0 0 32 32', children: [_jsx(Path, { className: "spark-first", d: "M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z" }), _jsx(Path, { className: "spark-second", d: "M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z" }), _jsx(Path, { className: "spark-third", d: "M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z" })] }));
|
|
48
|
+
};
|
|
49
|
+
export const StatsIcon = ({ opacity = 1, size, color }) => {
|
|
50
|
+
return (_jsx(IconWrapper, { size: size, opacity: opacity, color: color, children: _jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M11.25 5H12.75V20H11.25V5ZM6 10H7.5V20H6V10ZM18 14H16.5V20H18V14Z" }) }));
|
|
51
|
+
};
|
|
52
|
+
const jetpackIcons = {
|
|
53
|
+
'anti-spam': AntiSpamIcon,
|
|
54
|
+
backup: BackupIcon,
|
|
55
|
+
boost: BoostIcon,
|
|
56
|
+
crm: CrmIcon,
|
|
57
|
+
extras: ExtrasIcon,
|
|
58
|
+
protect: ProtectIcon,
|
|
59
|
+
scan: ScanIcon,
|
|
60
|
+
search: SearchIcon,
|
|
61
|
+
social: SocialIcon,
|
|
62
|
+
star: StarIcon,
|
|
63
|
+
videopress: VideopressIcon,
|
|
64
|
+
jetpack: JetpackIcon,
|
|
65
|
+
share: ShareIcon,
|
|
66
|
+
ai: AiIcon,
|
|
67
|
+
stats: StatsIcon,
|
|
68
|
+
};
|
|
69
|
+
const iconsMap = {
|
|
70
|
+
...jetpackIcons,
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Return icon component by slug.
|
|
74
|
+
*
|
|
75
|
+
* @param {string} slug - Icon slug.
|
|
76
|
+
* @return {React.ComponentType<BaseIconProps>} Icon component.
|
|
77
|
+
*/
|
|
78
|
+
export function getIconBySlug(slug) {
|
|
79
|
+
if (!iconsMap[slug]) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return iconsMap[slug];
|
|
83
|
+
}
|
|
84
|
+
export const SocialServiceIcon = ({ serviceName, className, iconSize }) => {
|
|
85
|
+
return (_jsx(SocialLogo, { className: clsx(styles.socialIcon, styles[serviceName], className), icon: serviceName, size: iconSize || 24 }));
|
|
86
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type BaseIconProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Icon size.
|
|
5
|
+
*/
|
|
6
|
+
size?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Opacity for SVG shapes
|
|
9
|
+
*/
|
|
10
|
+
opacity?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Icon viewBox.
|
|
13
|
+
*/
|
|
14
|
+
viewBox?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Icon component children.
|
|
17
|
+
*/
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Icon class name. Optional.
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* RGB Icon color. Optional.
|
|
25
|
+
*/
|
|
26
|
+
color?: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IndeterminateProgressBarProps } from './types.js';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Indeterminate Progress Bar component
|
|
5
|
+
*
|
|
6
|
+
* @param {IndeterminateProgressBarProps} props - Component props.
|
|
7
|
+
* @return {React.ReactNode} - IndeterminateProgressBar react component.
|
|
8
|
+
*/
|
|
9
|
+
declare const IndeterminateProgressBar: React.FC<IndeterminateProgressBarProps>;
|
|
10
|
+
export default IndeterminateProgressBar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* External dependencies
|
|
4
|
+
*/
|
|
5
|
+
import { __ } from '@wordpress/i18n';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
/**
|
|
8
|
+
* Internal dependencies
|
|
9
|
+
*/
|
|
10
|
+
import styles from './style.module.scss';
|
|
11
|
+
/**
|
|
12
|
+
* Indeterminate Progress Bar component
|
|
13
|
+
*
|
|
14
|
+
* @param {IndeterminateProgressBarProps} props - Component props.
|
|
15
|
+
* @return {React.ReactNode} - IndeterminateProgressBar react component.
|
|
16
|
+
*/
|
|
17
|
+
const IndeterminateProgressBar = ({ className }) => {
|
|
18
|
+
return (_jsx("div", { className: clsx(className, styles['indeterminate-progress-bar']), "aria-label": __('Indeterminate Progress Bar', 'jetpack-components') }));
|
|
19
|
+
};
|
|
20
|
+
export default IndeterminateProgressBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
import type { JetpackFooterProps } from './types.js';
|
|
4
|
+
/**
|
|
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
|
+
*
|
|
7
|
+
* @param {JetpackFooterProps} props - Component properties.
|
|
8
|
+
* @return {React.ReactNode} JetpackFooter component.
|
|
9
|
+
*/
|
|
10
|
+
declare const JetpackFooter: React.FC<JetpackFooterProps>;
|
|
11
|
+
export default JetpackFooter;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { __, _x } from '@wordpress/i18n';
|
|
3
|
+
import { Icon, external } from '@wordpress/icons';
|
|
4
|
+
import clsx from 'clsx';
|
|
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
|
+
import './style.scss';
|
|
9
|
+
import JetpackLogo from '../jetpack-logo/index.js';
|
|
10
|
+
import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
|
|
11
|
+
const JetpackIcon = () => (_jsx(JetpackLogo, { logoColor: "#000", showText: false, height: 16, "aria-hidden": "true" }));
|
|
12
|
+
const ExternalIcon = () => (_jsxs(_Fragment, { children: [_jsx(Icon, { icon: external, size: 16 }), _jsx("span", { className: "jp-dashboard-footer__accessible-external-link", children:
|
|
13
|
+
/* translators: accessibility text */
|
|
14
|
+
__('(opens in a new tab)', 'jetpack-components') })] }));
|
|
15
|
+
/**
|
|
16
|
+
* JetpackFooter component displays a tiny Jetpack logo with the product name on the left and the Automattic Airline "by line" on the right.
|
|
17
|
+
*
|
|
18
|
+
* @param {JetpackFooterProps} props - Component properties.
|
|
19
|
+
* @return {React.ReactNode} JetpackFooter component.
|
|
20
|
+
*/
|
|
21
|
+
const JetpackFooter = ({ moduleName = __('Jetpack', 'jetpack-components'), className, moduleNameHref = 'https://jetpack.com', menu, useInternalLinks, onAboutClick, onPrivacyClick, onTermsClick, ...otherProps }) => {
|
|
22
|
+
const [isSm] = useBreakpointMatch('sm', '<=');
|
|
23
|
+
const [isMd] = useBreakpointMatch('md', '<=');
|
|
24
|
+
const [isLg] = useBreakpointMatch('lg', '>');
|
|
25
|
+
const siteAdminUrl = getSiteAdminUrl();
|
|
26
|
+
let items = [
|
|
27
|
+
{
|
|
28
|
+
label: _x('About', 'Link to learn more about Jetpack.', 'jetpack-components'),
|
|
29
|
+
title: __('About Jetpack', 'jetpack-components'),
|
|
30
|
+
href: useInternalLinks
|
|
31
|
+
? new URL('admin.php?page=jetpack_about', siteAdminUrl).href
|
|
32
|
+
: getRedirectUrl('jetpack-about'),
|
|
33
|
+
target: useInternalLinks ? '_self' : '_blank',
|
|
34
|
+
onClick: onAboutClick,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: _x('Privacy', 'Shorthand for Privacy Policy.', 'jetpack-components'),
|
|
38
|
+
title: __("Automattic's Privacy Policy", 'jetpack-components'),
|
|
39
|
+
href: useInternalLinks
|
|
40
|
+
? new URL('admin.php?page=jetpack#/privacy', siteAdminUrl).href
|
|
41
|
+
: getRedirectUrl('a8c-privacy'),
|
|
42
|
+
target: useInternalLinks ? '_self' : '_blank',
|
|
43
|
+
onClick: onPrivacyClick,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: _x('Terms', 'Shorthand for Terms of Service.', 'jetpack-components'),
|
|
47
|
+
title: __('WordPress.com Terms of Service', 'jetpack-components'),
|
|
48
|
+
href: getRedirectUrl('wpcom-tos'),
|
|
49
|
+
target: '_blank',
|
|
50
|
+
onClick: onTermsClick,
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
if (menu) {
|
|
54
|
+
items = [...items, ...menu];
|
|
55
|
+
}
|
|
56
|
+
const jetpackItemContent = (_jsxs(_Fragment, { children: [_jsx(JetpackIcon, {}), moduleName] }));
|
|
57
|
+
return (_jsx("footer", { className: clsx('jp-dashboard-footer', {
|
|
58
|
+
'is-sm': isSm,
|
|
59
|
+
'is-md': isMd,
|
|
60
|
+
'is-lg': isLg,
|
|
61
|
+
}, className), "aria-label": __('Jetpack', 'jetpack-components'), role: "contentinfo", ...otherProps, children: _jsxs("ul", { children: [_jsx("li", { className: "jp-dashboard-footer__jp-item", children: moduleNameHref ? (_jsx("a", { href: moduleNameHref, children: jetpackItemContent })) : (jetpackItemContent) }), items.map(item => {
|
|
62
|
+
const isButton = item.role === 'button';
|
|
63
|
+
const isExternalLink = !isButton && item.target === '_blank';
|
|
64
|
+
return (_jsx("li", { children: _jsxs("a", { href: item.href, title: item.title, target: item.target, onClick: item.onClick, onKeyDown: item.onKeyDown, className: clsx('jp-dashboard-footer__menu-item', {
|
|
65
|
+
'is-external': isExternalLink,
|
|
66
|
+
}), role: item.role, rel: isExternalLink ? 'noopener noreferrer' : undefined, tabIndex: isButton ? 0 : undefined, children: [item.label, isExternalLink && _jsx(ExternalIcon, {})] }) }, item.label));
|
|
67
|
+
}), _jsx("li", { className: "jp-dashboard-footer__a8c-item", children: _jsx("a", { href: useInternalLinks
|
|
68
|
+
? new URL('admin.php?page=jetpack_about', siteAdminUrl).href
|
|
69
|
+
: getRedirectUrl('a8c-about'), "aria-label": __('An Automattic Airline', 'jetpack-components'), children: _jsx(AutomatticBylineLogo, { "aria-hidden": "true" }) }) })] }) }));
|
|
70
|
+
};
|
|
71
|
+
export default JetpackFooter;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type JetpackFooterMenuItem = {
|
|
2
|
+
href: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
onKeyDown?: () => void;
|
|
6
|
+
target?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
};
|
|
10
|
+
export type JetpackFooterProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Name of the module, e.g. 'Jetpack Search'.
|
|
13
|
+
*/
|
|
14
|
+
moduleName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* additional className of the wrapper, `jp-dashboard-footer` always included.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Link that the Module name will link to (optional).
|
|
21
|
+
*/
|
|
22
|
+
moduleNameHref?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Navigation menu to display in the footer.
|
|
25
|
+
*/
|
|
26
|
+
menu?: JetpackFooterMenuItem[];
|
|
27
|
+
/**
|
|
28
|
+
* Whether to enable Jetpack admin links.
|
|
29
|
+
*/
|
|
30
|
+
useInternalLinks?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* URL of the site WP Admin.
|
|
33
|
+
*/
|
|
34
|
+
siteAdminUrl?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Function called when the About link is clicked.
|
|
37
|
+
*/
|
|
38
|
+
onAboutClick?: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Function called when the Privacy link is clicked.
|
|
41
|
+
*/
|
|
42
|
+
onPrivacyClick?: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Function called when the Terms link is clicked.
|
|
45
|
+
*/
|
|
46
|
+
onTermsClick?: () => void;
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { __ } from '@wordpress/i18n';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
const JetpackLogo = ({ logoColor = '#069e08', showText = true, className, height = 32, ...otherProps }) => {
|
|
5
|
+
const viewBox = showText ? '0 0 118 32' : '0 0 32 32';
|
|
6
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: viewBox, className: clsx('jetpack-logo', className), "aria-labelledby": "jetpack-logo-title", height: height, ...otherProps,
|
|
7
|
+
// role="img" is required to prevent VoiceOver on Safari reading the content of the SVG
|
|
8
|
+
role: "img", children: [_jsx("title", { id: "jetpack-logo-title", children: __('Jetpack Logo', 'jetpack-components') }), _jsx("path", { fill: logoColor, d: "M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z" }), showText && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z" }), _jsx("path", { d: "M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z" }), _jsx("path", { d: "M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z" }), _jsx("path", { d: "M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z" }), _jsx("path", { d: "M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z" }), _jsx("path", { d: "M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z" }), _jsx("path", { d: "M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z" })] }))] }));
|
|
9
|
+
};
|
|
10
|
+
export default JetpackLogo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { __ } from '@wordpress/i18n';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
const JetpackProtectLogo = ({ logoColor = '#069e08', showText = true, className, height = 42, ...otherProps }) => {
|
|
5
|
+
const viewBox = showText ? '0 0 245 41' : '0 0 41 41';
|
|
6
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: viewBox, className: clsx('jetpack-logo', className), "aria-labelledby": "jetpack-logo-title", height: height, ...otherProps,
|
|
7
|
+
// role="img" is required to prevent VoiceOver on Safari reading the content of the SVG
|
|
8
|
+
role: "img", children: [_jsx("title", { id: "jetpack-logo-title", children: __('Jetpack Protect Logo', 'jetpack-components') }), _jsx("path", { d: "M20.1063 40.2111C31.2106 40.2111 40.2126 31.2091 40.2126 20.1048C40.2126 9.00048 31.2106 0 20.1063 0C9.00197 0 0 9.00197 0 20.1063C0 31.2106 9.00197 40.2111 20.1063 40.2111Z", fill: logoColor }), _jsx("path", { d: "M21.104 16.7295V36.2209L31.1571 16.7295H21.104Z", fill: "white" }), _jsx("path", { d: "M19.0701 23.4444V3.99023L9.05566 23.4444H19.0701Z", fill: "white" }), showText && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M159.347 27.3605H156.978V7.9082H162.371C163.176 7.9082 163.917 7.95666 164.596 8.05359C165.284 8.15051 165.914 8.30074 166.486 8.50428C167.649 8.92104 168.531 9.54619 169.132 10.3797C169.733 11.2036 170.033 12.2213 170.033 13.4328C170.033 14.4214 169.834 15.2937 169.437 16.0497C169.049 16.796 168.482 17.4211 167.736 17.9251C166.99 18.4291 166.079 18.812 165.003 19.0737C163.937 19.3257 162.725 19.4517 161.368 19.4517C160.719 19.4517 160.045 19.4226 159.347 19.3644V27.3605ZM159.347 17.1982C159.667 17.237 160.002 17.2661 160.35 17.2854C160.699 17.3048 161.029 17.3145 161.339 17.3145C162.454 17.3145 163.403 17.2273 164.189 17.0528C164.974 16.8784 165.613 16.6264 166.108 16.2968C166.602 15.9576 166.961 15.5505 167.183 15.0756C167.406 14.591 167.518 14.0434 167.518 13.4328C167.518 12.6768 167.334 12.0565 166.965 11.5719C166.607 11.0873 166.093 10.719 165.424 10.467C165.008 10.3119 164.528 10.2053 163.985 10.1471C163.442 10.0793 162.812 10.0453 162.095 10.0453H159.347V17.1982Z" }), _jsx("path", { d: "M181.093 15.3809H180.919C180.386 15.3809 179.862 15.4294 179.349 15.5263C178.835 15.6232 178.35 15.7735 177.895 15.977C177.449 16.1708 177.042 16.4131 176.674 16.7039C176.315 16.9947 176.014 17.3388 175.772 17.7361V27.3605H173.519V13.5491H175.263L175.699 15.7444H175.743C175.966 15.3858 176.237 15.0514 176.557 14.7412C176.887 14.4311 177.255 14.1597 177.662 13.9271C178.069 13.6945 178.515 13.5152 179 13.3892C179.484 13.2535 179.993 13.1856 180.526 13.1856C180.623 13.1856 180.72 13.1905 180.817 13.2002C180.924 13.2002 181.016 13.205 181.093 13.2147V15.3809Z" }), _jsx("path", { d: "M193.302 20.4694C193.302 19.6164 193.195 18.8604 192.982 18.2014C192.779 17.5326 192.488 16.9705 192.11 16.5149C191.741 16.0497 191.3 15.7008 190.787 15.4682C190.273 15.2258 189.711 15.1047 189.1 15.1047C188.49 15.1047 187.928 15.2258 187.414 15.4682C186.9 15.7008 186.454 16.0497 186.076 16.5149C185.708 16.9705 185.417 17.5326 185.204 18.2014C185.001 18.8604 184.899 19.6164 184.899 20.4694C184.899 21.3126 185.001 22.0686 185.204 22.7373C185.417 23.3964 185.713 23.9537 186.091 24.4092C186.469 24.8648 186.915 25.2137 187.428 25.456C187.942 25.6886 188.504 25.8049 189.115 25.8049C189.725 25.8049 190.283 25.6886 190.787 25.456C191.3 25.2137 191.741 24.8648 192.11 24.4092C192.488 23.9537 192.779 23.3964 192.982 22.7373C193.195 22.0686 193.302 21.3126 193.302 20.4694ZM195.657 20.4694C195.657 21.5549 195.502 22.5435 195.192 23.4352C194.882 24.3269 194.441 25.0926 193.869 25.7322C193.307 26.3622 192.623 26.8517 191.819 27.2006C191.015 27.5495 190.113 27.724 189.115 27.724C188.088 27.724 187.167 27.5495 186.353 27.2006C185.548 26.8517 184.86 26.3622 184.288 25.7322C183.726 25.0926 183.295 24.3269 182.994 23.4352C182.694 22.5435 182.544 21.5549 182.544 20.4694C182.544 19.3741 182.699 18.3807 183.009 17.489C183.319 16.5973 183.755 15.8316 184.317 15.1919C184.889 14.5522 185.577 14.0579 186.382 13.709C187.196 13.3601 188.102 13.1856 189.1 13.1856C190.118 13.1856 191.034 13.3601 191.848 13.709C192.662 14.0579 193.35 14.5522 193.913 15.1919C194.475 15.8316 194.906 16.5973 195.206 17.489C195.507 18.3807 195.657 19.3741 195.657 20.4694Z" }), _jsx("path", { d: "M206.354 27.3896C206.16 27.4672 205.864 27.5398 205.467 27.6077C205.07 27.6755 204.595 27.7143 204.042 27.724C203.315 27.724 202.685 27.6319 202.152 27.4478C201.619 27.2733 201.173 27.0213 200.815 26.6918C200.466 26.3525 200.204 25.9455 200.03 25.4705C199.855 24.9956 199.768 24.4674 199.768 23.8859V15.4827H197.107V13.5491H199.768V9.76911H202.021V13.5491H206.15V15.4827H202.021V23.5369C202.021 23.8568 202.065 24.1524 202.152 24.4238C202.249 24.6952 202.395 24.9326 202.588 25.1362C202.792 25.33 203.049 25.4851 203.359 25.6014C203.669 25.708 204.042 25.7613 204.478 25.7613C204.779 25.7613 205.094 25.7371 205.423 25.6886C205.763 25.6402 206.073 25.5772 206.354 25.4996V27.3896Z" }), _jsx("path", { d: "M214.681 15.1192C214.167 15.1192 213.687 15.221 213.242 15.4245C212.805 15.6281 212.423 15.9043 212.093 16.2532C211.764 16.6021 211.497 17.0141 211.293 17.489C211.09 17.9542 210.964 18.4534 210.915 18.9864H217.894C217.894 18.4437 217.821 17.9397 217.676 17.4744C217.54 16.9995 217.337 16.5876 217.065 16.2387C216.794 15.8898 216.459 15.6184 216.062 15.4245C215.665 15.221 215.204 15.1192 214.681 15.1192ZM215.917 25.7613C216.663 25.7613 217.341 25.7032 217.952 25.5869C218.572 25.4609 219.188 25.2864 219.798 25.0635V26.9389C219.304 27.1812 218.693 27.3702 217.967 27.5059C217.24 27.6513 216.459 27.724 215.626 27.724C214.637 27.724 213.707 27.598 212.835 27.346C211.972 27.094 211.216 26.6869 210.567 26.1248C209.917 25.5626 209.403 24.8309 209.025 23.9295C208.657 23.0184 208.473 21.9232 208.473 20.6438C208.473 19.3838 208.647 18.2934 208.996 17.3727C209.345 16.4422 209.811 15.6668 210.392 15.0465C210.974 14.4262 211.642 13.961 212.398 13.6509C213.154 13.3407 213.944 13.1856 214.768 13.1856C215.544 13.1856 216.266 13.3165 216.934 13.5782C217.613 13.8302 218.199 14.2324 218.693 14.7849C219.188 15.3373 219.575 16.0497 219.857 16.922C220.147 17.7943 220.293 18.8411 220.293 20.0623C220.293 20.1786 220.293 20.2804 220.293 20.3676C220.293 20.4451 220.288 20.6293 220.278 20.92H210.799C210.799 21.802 210.93 22.5532 211.192 23.1735C211.463 23.7841 211.827 24.2832 212.282 24.6709C212.747 25.0489 213.29 25.3252 213.91 25.4996C214.531 25.6741 215.199 25.7613 215.917 25.7613Z" }), _jsx("path", { d: "M229.885 13.1856C230.553 13.1856 231.193 13.2583 231.804 13.4037C232.414 13.5394 232.938 13.7332 233.374 13.9852V15.8607C232.763 15.6281 232.201 15.4536 231.687 15.3373C231.174 15.221 230.65 15.1628 230.117 15.1628C229.555 15.1628 228.998 15.2549 228.445 15.4391C227.893 15.6232 227.398 15.9285 226.962 16.355C226.526 16.7718 226.172 17.3291 225.901 18.0269C225.639 18.7151 225.508 19.5728 225.508 20.6002C225.508 21.3465 225.605 22.0346 225.799 22.6646C226.003 23.2946 226.298 23.8423 226.686 24.3075C227.083 24.763 227.578 25.1216 228.169 25.3833C228.76 25.6353 229.444 25.7613 230.219 25.7613C230.781 25.7613 231.348 25.7032 231.92 25.5869C232.492 25.4609 233.049 25.2864 233.592 25.0635V26.9389C233.427 27.0358 233.209 27.1328 232.938 27.2297C232.676 27.3266 232.385 27.409 232.065 27.4768C231.745 27.5544 231.406 27.6125 231.048 27.6513C230.689 27.6998 230.33 27.724 229.972 27.724C229.041 27.724 228.159 27.5835 227.326 27.3024C226.502 27.0213 225.78 26.59 225.16 26.0085C224.539 25.4269 224.05 24.6903 223.691 23.7986C223.333 22.907 223.153 21.8505 223.153 20.6293C223.153 19.7182 223.245 18.8992 223.429 18.1723C223.623 17.4454 223.885 16.8057 224.215 16.2532C224.544 15.7008 224.927 15.2307 225.363 14.843C225.809 14.4553 226.279 14.1403 226.773 13.898C227.277 13.646 227.796 13.4667 228.329 13.3601C228.862 13.2438 229.381 13.1856 229.885 13.1856Z" }), _jsx("path", { d: "M244.143 27.3896C243.949 27.4672 243.654 27.5398 243.256 27.6077C242.859 27.6755 242.384 27.7143 241.832 27.724C241.105 27.724 240.475 27.6319 239.942 27.4478C239.409 27.2733 238.963 27.0213 238.604 26.6918C238.255 26.3525 237.993 25.9455 237.819 25.4705C237.645 24.9956 237.557 24.4674 237.557 23.8859V15.4827H234.897V13.5491H237.557V9.76911H239.811V13.5491H243.94V15.4827H239.811V23.5369C239.811 23.8568 239.854 24.1524 239.942 24.4238C240.039 24.6952 240.184 24.9326 240.378 25.1362C240.581 25.33 240.838 25.4851 241.148 25.6014C241.458 25.708 241.832 25.7613 242.268 25.7613C242.568 25.7613 242.883 25.7371 243.213 25.6886C243.552 25.6402 243.862 25.5772 244.143 25.4996V27.3896Z" }), _jsx("path", { d: "M51.9141 33.3819C51.3379 32.499 50.8019 31.6176 50.2644 30.7733C53.1038 29.0462 54.0626 27.666 54.0626 25.0559V9.97619H50.7245V7.09961H57.8236V24.2891C57.8236 28.6635 56.558 31.1188 51.9141 33.3819Z" }), _jsx("path", { d: "M81.6522 23.0994C81.6522 24.557 82.6885 24.7104 83.3793 24.7104C84.0702 24.7104 85.0677 24.4796 85.8345 24.2503V26.9363C84.7595 27.2817 83.6473 27.5497 82.1122 27.5497C80.2705 27.5497 78.122 26.8589 78.122 23.6354V15.7307H76.1655V13.006H78.122V8.97852H81.6522V13.0075H86.1025V15.7322H81.6522V23.0994Z" }), _jsx("path", { d: "M89.0193 34.7251V12.9691H92.3961V14.2734C93.7391 13.2371 95.2355 12.585 97.0773 12.585C100.262 12.585 102.795 14.8109 102.795 19.6067C102.795 24.3652 100.033 27.5113 95.4663 27.5113C94.3541 27.5113 93.4711 27.358 92.5495 27.1659V34.6864H89.0193V34.7251ZM96.1557 15.5017C95.1194 15.5017 93.8151 16.0005 92.5867 17.0755V24.4814C93.3535 24.6347 94.1605 24.7494 95.234 24.7494C97.7279 24.7494 99.1484 23.1756 99.1484 19.8762C99.1484 16.8447 98.1121 15.5017 96.1557 15.5017Z" }), _jsx("path", { d: "M116.683 27.2051H113.384V25.6313H113.306C112.155 26.5142 110.735 27.4731 108.625 27.4731C106.783 27.4731 104.788 26.1301 104.788 23.4054C104.788 19.7605 107.896 19.0696 110.083 18.7629L113.19 18.3416V17.9202C113.19 16.001 112.423 15.3876 110.619 15.3876C109.736 15.3876 107.665 15.6556 105.976 16.3464L105.67 13.5071C107.205 12.9696 109.315 12.5869 111.08 12.5869C114.533 12.5869 116.759 13.9686 116.759 18.0736V27.2051H116.683ZM113.153 20.5675L110.236 21.0276C109.353 21.1422 108.433 21.6797 108.433 22.984C108.433 24.1349 109.085 24.7871 110.044 24.7871C111.08 24.7871 112.193 24.1736 113.152 23.4828V20.5675H113.153Z" }), _jsx("path", { d: "M131.264 26.745C129.806 27.2438 128.502 27.5505 126.851 27.5505C121.556 27.5505 119.445 24.5191 119.445 20.1074C119.445 15.465 122.362 12.5869 127.08 12.5869C128.845 12.5869 129.92 12.8936 131.109 13.2778V16.2705C130.073 15.8863 128.577 15.465 127.119 15.465C124.97 15.465 123.129 16.6159 123.129 19.9153C123.129 23.5602 124.97 24.6739 127.311 24.6739C128.423 24.6739 129.652 24.4431 131.301 23.791V26.745H131.264Z" }), _jsx("path", { d: "M137.941 19.1093C138.247 18.7639 138.478 18.4185 142.928 13.0077H147.532L141.776 19.7615L148.068 27.2432H143.464L137.978 20.4895V27.2432H134.449V7.09973H137.979V19.1093H137.941Z" }), _jsx("path", { d: "M73.5167 26.7445C71.6749 27.3207 70.1011 27.55 68.2593 27.55C63.7316 27.55 60.9309 25.2869 60.9309 19.9908C60.9309 16.1152 63.3102 12.585 67.8752 12.585C72.403 12.585 73.9768 15.731 73.9768 18.7238C73.9768 19.7213 73.8993 20.2588 73.8621 20.8335H64.7306C64.808 23.9409 66.5724 24.6705 69.2197 24.6705C70.6773 24.6705 71.9816 24.325 73.4795 23.7875V26.7416H73.5167V26.7445ZM70.2947 18.4945C70.2947 16.7673 69.7185 15.271 67.8395 15.271C66.0751 15.271 65.0001 16.5365 64.7693 18.4945H70.2947Z" })] }))] }));
|
|
9
|
+
};
|
|
10
|
+
export default JetpackProtectLogo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|