@arc-ui/community-components 12.0.0-beta.8 → 12.0.0-beta.9
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/dist/Accordion/Accordion.cjs.js +2 -2
- package/dist/Accordion/Accordion.esm.js +2 -2
- package/dist/Author/Author.cjs.js +2 -2
- package/dist/Author/Author.esm.js +2 -2
- package/dist/BannerWithTabs/BannerWithTabs.cjs.js +42 -0
- package/dist/BannerWithTabs/BannerWithTabs.esm.js +34 -0
- package/dist/BannerWithTabs/package.json +7 -0
- package/dist/BannerWithTabs/styles.css +1 -0
- package/dist/CopyLead/CopyLead.cjs.js +3 -3
- package/dist/CopyLead/CopyLead.esm.js +3 -3
- package/dist/FeaturePost/FeaturePost.cjs.js +44 -6
- package/dist/FeaturePost/FeaturePost.esm.js +27 -7
- package/dist/Highlights/Highlights.cjs.js +2 -2
- package/dist/Highlights/Highlights.esm.js +2 -2
- package/dist/PromoListing/PromoListing.cjs.js +3 -3
- package/dist/PromoListing/PromoListing.esm.js +3 -3
- package/dist/Quote/Quote.cjs.js +2 -2
- package/dist/Quote/Quote.esm.js +2 -2
- package/dist/SectionHeading/SectionHeading.cjs.js +2 -2
- package/dist/SectionHeading/SectionHeading.esm.js +2 -2
- package/dist/SectionHeading/styles.css +1 -1
- package/dist/Statistics/Statistics.cjs.js +65 -0
- package/dist/Statistics/Statistics.esm.js +57 -0
- package/dist/Statistics/package.json +7 -0
- package/dist/Statistics/styles.css +1 -0
- package/dist/Summary/Summary.cjs.js +1 -1
- package/dist/Summary/Summary.esm.js +1 -1
- package/dist/_shared/cjs/{Author-93fba107.js → Author-5d1a94f0.js} +1 -1
- package/dist/_shared/cjs/{SectionHeading-10f89118.js → SectionHeading-e77798e4.js} +1 -1
- package/dist/_shared/cjs/{index.es-1ded90eb.js → index.es-10e780ce.js} +1 -1
- package/dist/_shared/cjs/{index.es-a9e01247.js → index.es-f32d97a8.js} +12 -0
- package/dist/_shared/cjs/{index.es-91c02d85.js → index.es-fb3955a3.js} +1 -1
- package/dist/_shared/esm/{Author-fcee7f8d.js → Author-ed0214c7.js} +1 -1
- package/dist/_shared/esm/{SectionHeading-b7bf7434.js → SectionHeading-4af705a6.js} +1 -1
- package/dist/_shared/esm/{index.es-2d97e9e5.js → index.es-73f15cd8.js} +1 -1
- package/dist/_shared/esm/{index.es-cb56e19f.js → index.es-777f866b.js} +1 -1
- package/dist/_shared/esm/{index.es-33860780.js → index.es-78a8c110.js} +12 -0
- package/dist/index.es.js +105 -52
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +105 -51
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/BannerWithTabs/BannerWithTabs.d.ts +17 -0
- package/dist/types/components/BannerWithTabs/index.d.ts +1 -0
- package/dist/types/components/FeaturePost/FeaturePost.d.ts +6 -1
- package/dist/types/components/FeaturePost/components/MediaContent/MediaContent.d.ts +15 -0
- package/dist/types/components/Statistics/Statistics.d.ts +8 -0
- package/dist/types/components/Statistics/helpers/get-link-props.d.ts +3 -0
- package/dist/types/components/Statistics/index.d.ts +1 -0
- package/dist/types/components/Statistics/types/statistic-link.d.ts +6 -0
- package/dist/types/components/Statistics/types/statistic.d.ts +8 -0
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +26 -26
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
8
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
7
|
+
var index_es = require('../_shared/cjs/index.es-f32d97a8.js');
|
|
8
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-e77798e4.js');
|
|
9
9
|
var Disclosure = require('@arc-ui/components/dist/Disclosure');
|
|
10
10
|
require('../_shared/cjs/index-9947ac13.js');
|
|
11
11
|
require('@arc-ui/components/dist/Heading');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { f as filterDataAttrs } from '../_shared/esm/index.es-
|
|
4
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
3
|
+
import { f as filterDataAttrs } from '../_shared/esm/index.es-78a8c110.js';
|
|
4
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-4af705a6.js';
|
|
5
5
|
import { Disclosure } from '@arc-ui/components/dist/Disclosure';
|
|
6
6
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
7
7
|
import '@arc-ui/components/dist/Heading';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Author = require('../_shared/cjs/Author-
|
|
5
|
+
var Author = require('../_shared/cjs/Author-5d1a94f0.js');
|
|
6
6
|
require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
7
7
|
require('react');
|
|
8
|
-
require('../_shared/cjs/index.es-
|
|
8
|
+
require('../_shared/cjs/index.es-f32d97a8.js');
|
|
9
9
|
require('@arc-ui/components/dist/Grid');
|
|
10
10
|
require('@arc-ui/components/dist/Avatar');
|
|
11
11
|
require('@arc-ui/components/dist/Heading');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as Author } from '../_shared/esm/Author-
|
|
1
|
+
export { A as Author } from '../_shared/esm/Author-ed0214c7.js';
|
|
2
2
|
import '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../_shared/esm/index.es-
|
|
4
|
+
import '../_shared/esm/index.es-78a8c110.js';
|
|
5
5
|
import '@arc-ui/components/dist/Grid';
|
|
6
6
|
import '@arc-ui/components/dist/Avatar';
|
|
7
7
|
import '@arc-ui/components/dist/Heading';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var HeroBanner = require('@arc-ui/components/dist/HeroBanner');
|
|
8
|
+
var ContentSwitcher = require('@arc-ui/components/dist/ContentSwitcher');
|
|
9
|
+
var ContentSwitcherDropdown = require('@arc-ui/components/dist/ContentSwitcherDropdown');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
|
|
15
|
+
var styles = {"contentSwitcherWrapper":"BannerWithTabs-module_contentSwitcherWrapper__xvz39","contentSwitcherDropdownWrapper":"BannerWithTabs-module_contentSwitcherDropdownWrapper__eT5zq"};
|
|
16
|
+
|
|
17
|
+
var BannerWithTabs = function (_a) {
|
|
18
|
+
var _b;
|
|
19
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue;
|
|
20
|
+
var initialTab = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value;
|
|
21
|
+
var _c = React.useState(initialTab), selectedTab = _c[0], setSelectedTab = _c[1];
|
|
22
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
23
|
+
React__default["default"].createElement("div", { className: styles.contentSwitcherWrapper },
|
|
24
|
+
React__default["default"].createElement(ContentSwitcher.ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
25
|
+
React__default["default"].createElement(ContentSwitcher.ContentSwitcher.List, { isInset: true }, tabs.map(function (_a, index) {
|
|
26
|
+
var label = _a.label, value = _a.value;
|
|
27
|
+
return (React__default["default"].createElement(ContentSwitcher.ContentSwitcher.Tab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
28
|
+
})),
|
|
29
|
+
tabs.map(function (_a, index) {
|
|
30
|
+
var value = _a.value, content = _a.content;
|
|
31
|
+
return (React__default["default"].createElement(ContentSwitcher.ContentSwitcher.Content, { value: value, key: index },
|
|
32
|
+
React__default["default"].createElement(HeroBanner.HeroBanner, tslib_es6.__assign({}, content))));
|
|
33
|
+
}))),
|
|
34
|
+
React__default["default"].createElement("div", { className: styles.contentSwitcherDropdownWrapper },
|
|
35
|
+
React__default["default"].createElement(ContentSwitcherDropdown.ContentSwitcherDropdown, { value: selectedTab, tabs: tabs, isInset: true, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
36
|
+
var value = _a.value, content = _a.content;
|
|
37
|
+
return (React__default["default"].createElement(ContentSwitcherDropdown.ContentSwitcherDropdown.Content, { value: value, key: "".concat(index, "-").concat(value) },
|
|
38
|
+
React__default["default"].createElement(HeroBanner.HeroBanner, tslib_es6.__assign({}, content))));
|
|
39
|
+
})))));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.BannerWithTabs = BannerWithTabs;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { HeroBanner } from '@arc-ui/components/dist/HeroBanner';
|
|
4
|
+
import { ContentSwitcher } from '@arc-ui/components/dist/ContentSwitcher';
|
|
5
|
+
import { ContentSwitcherDropdown } from '@arc-ui/components/dist/ContentSwitcherDropdown';
|
|
6
|
+
|
|
7
|
+
var styles = {"contentSwitcherWrapper":"BannerWithTabs-module_contentSwitcherWrapper__xvz39","contentSwitcherDropdownWrapper":"BannerWithTabs-module_contentSwitcherDropdownWrapper__eT5zq"};
|
|
8
|
+
|
|
9
|
+
var BannerWithTabs = function (_a) {
|
|
10
|
+
var _b;
|
|
11
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue;
|
|
12
|
+
var initialTab = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value;
|
|
13
|
+
var _c = useState(initialTab), selectedTab = _c[0], setSelectedTab = _c[1];
|
|
14
|
+
return (React.createElement(React.Fragment, null,
|
|
15
|
+
React.createElement("div", { className: styles.contentSwitcherWrapper },
|
|
16
|
+
React.createElement(ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
17
|
+
React.createElement(ContentSwitcher.List, { isInset: true }, tabs.map(function (_a, index) {
|
|
18
|
+
var label = _a.label, value = _a.value;
|
|
19
|
+
return (React.createElement(ContentSwitcher.Tab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
20
|
+
})),
|
|
21
|
+
tabs.map(function (_a, index) {
|
|
22
|
+
var value = _a.value, content = _a.content;
|
|
23
|
+
return (React.createElement(ContentSwitcher.Content, { value: value, key: index },
|
|
24
|
+
React.createElement(HeroBanner, __assign({}, content))));
|
|
25
|
+
}))),
|
|
26
|
+
React.createElement("div", { className: styles.contentSwitcherDropdownWrapper },
|
|
27
|
+
React.createElement(ContentSwitcherDropdown, { value: selectedTab, tabs: tabs, isInset: true, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
28
|
+
var value = _a.value, content = _a.content;
|
|
29
|
+
return (React.createElement(ContentSwitcherDropdown.Content, { value: value, key: "".concat(index, "-").concat(value) },
|
|
30
|
+
React.createElement(HeroBanner, __assign({}, content))));
|
|
31
|
+
})))));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { BannerWithTabs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.BannerWithTabs-module_contentSwitcherWrapper__xvz39{display:none}.BannerWithTabs-module_contentSwitcherDropdownWrapper__eT5zq{display:block}@media (min-width:636px){.BannerWithTabs-module_contentSwitcherWrapper__xvz39{display:block}.BannerWithTabs-module_contentSwitcherDropdownWrapper__eT5zq{display:none}}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var index_es$1 = require('../_shared/cjs/index.es-
|
|
8
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
7
|
+
var index_es$1 = require('../_shared/cjs/index.es-f32d97a8.js');
|
|
8
|
+
var index_es = require('../_shared/cjs/index.es-fb3955a3.js');
|
|
9
9
|
var Columns = require('@arc-ui/components/dist/Columns');
|
|
10
10
|
var useMediaQuery = require('@arc-ui/components/dist/use-media-query');
|
|
11
11
|
var Heading = require('@arc-ui/components/dist/Heading');
|
|
@@ -15,7 +15,7 @@ var Image$1 = require('@arc-ui/components/dist/Image');
|
|
|
15
15
|
var Icon = require('@arc-ui/components/dist/Icon');
|
|
16
16
|
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
17
17
|
var ButtonV2 = require('@arc-ui/components/dist/ButtonV2');
|
|
18
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
18
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-e77798e4.js');
|
|
19
19
|
|
|
20
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
21
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
2
|
import React, { useState, useEffect, Suspense } from 'react';
|
|
3
|
-
import { f as filterDataAttrs } from '../_shared/esm/index.es-
|
|
4
|
-
import { S as SemSizeBreakpointsL, a as SemSizeBreakpointsXl, b as SemSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
3
|
+
import { f as filterDataAttrs } from '../_shared/esm/index.es-78a8c110.js';
|
|
4
|
+
import { S as SemSizeBreakpointsL, a as SemSizeBreakpointsXl, b as SemSizeBreakpointsM } from '../_shared/esm/index.es-777f866b.js';
|
|
5
5
|
import { Columns } from '@arc-ui/components/dist/Columns';
|
|
6
6
|
import { useMediaQuery } from '@arc-ui/components/dist/use-media-query';
|
|
7
7
|
import { Heading } from '@arc-ui/components/dist/Heading';
|
|
@@ -11,7 +11,7 @@ import { Image as Image$1 } from '@arc-ui/components/dist/Image';
|
|
|
11
11
|
import { Icon } from '@arc-ui/components/dist/Icon';
|
|
12
12
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
13
13
|
import { ButtonV2 } from '@arc-ui/components/dist/ButtonV2';
|
|
14
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
14
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-4af705a6.js';
|
|
15
15
|
|
|
16
16
|
var styles = {"buttonContainer":"CopyLead-module_buttonContainer__3OaRG","col":"CopyLead-module_col__0Da5H","container":"CopyLead-module_container__I91ym","container--content":"CopyLead-module_container--content__e8LxG","container--media":"CopyLead-module_container--media__QcMWi","container--align-center":"CopyLead-module_container--align-center__Fh1Sd","container--align-top":"CopyLead-module_container--align-top__UIXOZ","list":"CopyLead-module_list__arnJd","listItem":"CopyLead-module_listItem__NscHE","listItemCentered":"CopyLead-module_listItemCentered__Kwdab","listItemIconContainer":"CopyLead-module_listItemIconContainer__dgnhJ","listItemTextContainer":"CopyLead-module_listItemTextContainer__Dl9lw","imgWrapper":"CopyLead-module_imgWrapper__HYP3w","mediaContainer":"CopyLead-module_mediaContainer__PxTnm","content":"CopyLead-module_content__Bja1D","container--reverse":"CopyLead-module_container--reverse__Gq9u8"};
|
|
17
17
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
-
var index_es$1 = require('../_shared/cjs/index.es-
|
|
8
|
+
var index_es$1 = require('../_shared/cjs/index.es-f32d97a8.js');
|
|
9
9
|
var AppButton = require('@arc-ui/components/dist/AppButton');
|
|
10
10
|
var Grid = require('@arc-ui/components/dist/Grid');
|
|
11
11
|
var ButtonV2 = require('@arc-ui/components/dist/ButtonV2');
|
|
@@ -13,13 +13,31 @@ var Heading = require('@arc-ui/components/dist/Heading');
|
|
|
13
13
|
var Text = require('@arc-ui/components/dist/Text');
|
|
14
14
|
var VerticalSpace = require('@arc-ui/components/dist/VerticalSpace');
|
|
15
15
|
var useMediaQuery = require('@arc-ui/components/dist/use-media-query');
|
|
16
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
17
|
-
var Author = require('../_shared/cjs/Author-
|
|
16
|
+
var index_es = require('../_shared/cjs/index.es-fb3955a3.js');
|
|
17
|
+
var Author = require('../_shared/cjs/Author-5d1a94f0.js');
|
|
18
18
|
var Image$1 = require('@arc-ui/components/dist/Image');
|
|
19
19
|
require('@arc-ui/components/dist/Avatar');
|
|
20
20
|
|
|
21
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
22
|
|
|
23
|
+
function _interopNamespace(e) {
|
|
24
|
+
if (e && e.__esModule) return e;
|
|
25
|
+
var n = Object.create(null);
|
|
26
|
+
if (e) {
|
|
27
|
+
Object.keys(e).forEach(function (k) {
|
|
28
|
+
if (k !== 'default') {
|
|
29
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
30
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return e[k]; }
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
n["default"] = e;
|
|
38
|
+
return Object.freeze(n);
|
|
39
|
+
}
|
|
40
|
+
|
|
23
41
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
24
42
|
|
|
25
43
|
function _typeof(o) {
|
|
@@ -2227,12 +2245,32 @@ var Image = function (_a) {
|
|
|
2227
2245
|
sources.map(function (source) { return (React__default["default"].createElement(Image$1.Image.Source, tslib_es6.__assign({ key: source.srcSet }, source))); }))));
|
|
2228
2246
|
};
|
|
2229
2247
|
|
|
2248
|
+
var VideoPlayer = React__default["default"].lazy(function () {
|
|
2249
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arc-ui/components/dist/VideoPlayer')); }).then(function (_a) {
|
|
2250
|
+
var VideoPlayer = _a.VideoPlayer;
|
|
2251
|
+
return ({
|
|
2252
|
+
"default": VideoPlayer
|
|
2253
|
+
});
|
|
2254
|
+
});
|
|
2255
|
+
});
|
|
2256
|
+
var MediaContent = function (_a) {
|
|
2257
|
+
var image = _a.image, video = _a.video;
|
|
2258
|
+
var _b = React.useState(false), isClient = _b[0], setIsClient = _b[1];
|
|
2259
|
+
React.useEffect(function () {
|
|
2260
|
+
setIsClient(true);
|
|
2261
|
+
}, []);
|
|
2262
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
2263
|
+
image && !video && React__default["default"].createElement(Image, tslib_es6.__assign({}, image)),
|
|
2264
|
+
video && isClient && (React__default["default"].createElement(React.Suspense, { fallback: null },
|
|
2265
|
+
React__default["default"].createElement(VideoPlayer, tslib_es6.__assign({}, video))))));
|
|
2266
|
+
};
|
|
2267
|
+
|
|
2230
2268
|
/**
|
|
2231
2269
|
* Use `FeaturePost` to direct traffic towards an article, case study, or product information page, or to a 3rd part App Store provider. Where the component links to an article page, the author attribution can be given here. The `FeaturePost` must be supported by an image, and in future, the component will support embedded video as well.
|
|
2232
2270
|
* */
|
|
2233
2271
|
var FeaturePost = function (_a) {
|
|
2234
2272
|
var _b;
|
|
2235
|
-
var heading = _a.heading, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = tslib_es6.__rest(_a, ["heading", "headingLevel", "label", "image", "content", "footer", "isReverseOrder"]);
|
|
2273
|
+
var heading = _a.heading, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = tslib_es6.__rest(_a, ["heading", "headingLevel", "label", "image", "content", "footer", "video", "isReverseOrder"]);
|
|
2236
2274
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.SemSizeBreakpointsM, ")"));
|
|
2237
2275
|
return (React__default["default"].createElement("div", tslib_es6.__assign({ "data-testid": "feature-post", className: index.classNames(styles.featurePost, (_b = {},
|
|
2238
2276
|
_b[styles.featurePostReversed] = isReverseOrder,
|
|
@@ -2250,7 +2288,7 @@ var FeaturePost = function (_a) {
|
|
|
2250
2288
|
React__default["default"].createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
2251
2289
|
!isMinWidthArcBreakpointM && (React__default["default"].createElement("div", { "data-testid": "mobile-img" },
|
|
2252
2290
|
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2253
|
-
React__default["default"].createElement(
|
|
2291
|
+
React__default["default"].createElement(MediaContent, { image: image, video: video }))),
|
|
2254
2292
|
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2255
2293
|
React__default["default"].createElement(Text.Text, { size: "l" }, content),
|
|
2256
2294
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
@@ -2270,7 +2308,7 @@ var FeaturePost = function (_a) {
|
|
|
2270
2308
|
React__default["default"].createElement(AppButton.AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2271
2309
|
isMinWidthArcBreakpointM && (React__default["default"].createElement("div", { className: styles.col },
|
|
2272
2310
|
React__default["default"].createElement("div", { "data-testid": "desktop-img", className: styles.imgContainer },
|
|
2273
|
-
React__default["default"].createElement(
|
|
2311
|
+
React__default["default"].createElement(MediaContent, { image: image, video: video }))))));
|
|
2274
2312
|
};
|
|
2275
2313
|
|
|
2276
2314
|
exports.FeaturePost = FeaturePost;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { useState, useEffect, Suspense } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
-
import { f as filterDataAttrs } from '../_shared/esm/index.es-
|
|
4
|
+
import { f as filterDataAttrs } from '../_shared/esm/index.es-78a8c110.js';
|
|
5
5
|
import { AppButton } from '@arc-ui/components/dist/AppButton';
|
|
6
6
|
import { Grid } from '@arc-ui/components/dist/Grid';
|
|
7
7
|
import { ButtonV2 } from '@arc-ui/components/dist/ButtonV2';
|
|
@@ -9,8 +9,8 @@ import { Heading } from '@arc-ui/components/dist/Heading';
|
|
|
9
9
|
import { Text } from '@arc-ui/components/dist/Text';
|
|
10
10
|
import { VerticalSpace } from '@arc-ui/components/dist/VerticalSpace';
|
|
11
11
|
import { useMediaQuery } from '@arc-ui/components/dist/use-media-query';
|
|
12
|
-
import { b as SemSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
13
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
12
|
+
import { b as SemSizeBreakpointsM } from '../_shared/esm/index.es-777f866b.js';
|
|
13
|
+
import { A as Author } from '../_shared/esm/Author-ed0214c7.js';
|
|
14
14
|
import { Image as Image$1 } from '@arc-ui/components/dist/Image';
|
|
15
15
|
import '@arc-ui/components/dist/Avatar';
|
|
16
16
|
|
|
@@ -2219,12 +2219,32 @@ var Image = function (_a) {
|
|
|
2219
2219
|
sources.map(function (source) { return (React.createElement(Image$1.Source, __assign({ key: source.srcSet }, source))); }))));
|
|
2220
2220
|
};
|
|
2221
2221
|
|
|
2222
|
+
var VideoPlayer = React.lazy(function () {
|
|
2223
|
+
return import('@arc-ui/components/dist/VideoPlayer').then(function (_a) {
|
|
2224
|
+
var VideoPlayer = _a.VideoPlayer;
|
|
2225
|
+
return ({
|
|
2226
|
+
"default": VideoPlayer
|
|
2227
|
+
});
|
|
2228
|
+
});
|
|
2229
|
+
});
|
|
2230
|
+
var MediaContent = function (_a) {
|
|
2231
|
+
var image = _a.image, video = _a.video;
|
|
2232
|
+
var _b = useState(false), isClient = _b[0], setIsClient = _b[1];
|
|
2233
|
+
useEffect(function () {
|
|
2234
|
+
setIsClient(true);
|
|
2235
|
+
}, []);
|
|
2236
|
+
return (React.createElement(React.Fragment, null,
|
|
2237
|
+
image && !video && React.createElement(Image, __assign({}, image)),
|
|
2238
|
+
video && isClient && (React.createElement(Suspense, { fallback: null },
|
|
2239
|
+
React.createElement(VideoPlayer, __assign({}, video))))));
|
|
2240
|
+
};
|
|
2241
|
+
|
|
2222
2242
|
/**
|
|
2223
2243
|
* Use `FeaturePost` to direct traffic towards an article, case study, or product information page, or to a 3rd part App Store provider. Where the component links to an article page, the author attribution can be given here. The `FeaturePost` must be supported by an image, and in future, the component will support embedded video as well.
|
|
2224
2244
|
* */
|
|
2225
2245
|
var FeaturePost = function (_a) {
|
|
2226
2246
|
var _b;
|
|
2227
|
-
var heading = _a.heading, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "headingLevel", "label", "image", "content", "footer", "isReverseOrder"]);
|
|
2247
|
+
var heading = _a.heading, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "headingLevel", "label", "image", "content", "footer", "video", "isReverseOrder"]);
|
|
2228
2248
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsM, ")"));
|
|
2229
2249
|
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles.featurePost, (_b = {},
|
|
2230
2250
|
_b[styles.featurePostReversed] = isReverseOrder,
|
|
@@ -2242,7 +2262,7 @@ var FeaturePost = function (_a) {
|
|
|
2242
2262
|
React.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
|
|
2243
2263
|
!isMinWidthArcBreakpointM && (React.createElement("div", { "data-testid": "mobile-img" },
|
|
2244
2264
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
2245
|
-
React.createElement(
|
|
2265
|
+
React.createElement(MediaContent, { image: image, video: video }))),
|
|
2246
2266
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
2247
2267
|
React.createElement(Text, { size: "l" }, content),
|
|
2248
2268
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React.createElement(React.Fragment, null,
|
|
@@ -2262,7 +2282,7 @@ var FeaturePost = function (_a) {
|
|
|
2262
2282
|
React.createElement(AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2263
2283
|
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles.col },
|
|
2264
2284
|
React.createElement("div", { "data-testid": "desktop-img", className: styles.imgContainer },
|
|
2265
|
-
React.createElement(
|
|
2285
|
+
React.createElement(MediaContent, { image: image, video: video }))))));
|
|
2266
2286
|
};
|
|
2267
2287
|
|
|
2268
2288
|
export { FeaturePost };
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var useMediaQuery = require('@arc-ui/components/dist/use-media-query');
|
|
7
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
7
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-e77798e4.js');
|
|
8
8
|
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
9
9
|
var Heading = require('@arc-ui/components/dist/Heading');
|
|
10
10
|
var Icon = require('@arc-ui/components/dist/Icon');
|
|
@@ -12,7 +12,7 @@ var Text = require('@arc-ui/components/dist/Text');
|
|
|
12
12
|
var Link = require('@arc-ui/components/dist/Link');
|
|
13
13
|
var VerticalSpace = require('@arc-ui/components/dist/VerticalSpace');
|
|
14
14
|
require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
15
|
-
require('../_shared/cjs/index.es-
|
|
15
|
+
require('../_shared/cjs/index.es-f32d97a8.js');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useMediaQuery } from '@arc-ui/components/dist/use-media-query';
|
|
3
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
3
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-4af705a6.js';
|
|
4
4
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
5
5
|
import { Heading } from '@arc-ui/components/dist/Heading';
|
|
6
6
|
import { Icon } from '@arc-ui/components/dist/Icon';
|
|
@@ -8,7 +8,7 @@ import { Text } from '@arc-ui/components/dist/Text';
|
|
|
8
8
|
import { Link } from '@arc-ui/components/dist/Link';
|
|
9
9
|
import { VerticalSpace } from '@arc-ui/components/dist/VerticalSpace';
|
|
10
10
|
import '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
11
|
-
import '../_shared/esm/index.es-
|
|
11
|
+
import '../_shared/esm/index.es-78a8c110.js';
|
|
12
12
|
|
|
13
13
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
14
14
|
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
8
|
+
var index_es = require('../_shared/cjs/index.es-10e780ce.js');
|
|
9
9
|
var Carousel = require('@arc-ui/components/dist/Carousel');
|
|
10
10
|
var useMediaQuery = require('@arc-ui/components/dist/use-media-query');
|
|
11
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
11
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-e77798e4.js');
|
|
12
12
|
var MediaCard = require('@arc-ui/components/dist/MediaCard');
|
|
13
13
|
var ImpactCard = require('@arc-ui/components/dist/ImpactCard');
|
|
14
14
|
var InformationCard = require('@arc-ui/components/dist/InformationCard');
|
|
15
15
|
var TypographyCard = require('@arc-ui/components/dist/TypographyCard');
|
|
16
|
-
require('../_shared/cjs/index.es-
|
|
16
|
+
require('../_shared/cjs/index.es-f32d97a8.js');
|
|
17
17
|
require('@arc-ui/components/dist/Heading');
|
|
18
18
|
require('@arc-ui/components/dist/Text');
|
|
19
19
|
require('@arc-ui/components/dist/VerticalSpace');
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
-
import { A as ArcSizeBreakpointsL } from '../_shared/esm/index.es-
|
|
4
|
+
import { A as ArcSizeBreakpointsL } from '../_shared/esm/index.es-73f15cd8.js';
|
|
5
5
|
import { Carousel } from '@arc-ui/components/dist/Carousel';
|
|
6
6
|
import { useMediaQuery } from '@arc-ui/components/dist/use-media-query';
|
|
7
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
7
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-4af705a6.js';
|
|
8
8
|
import { MediaCard } from '@arc-ui/components/dist/MediaCard';
|
|
9
9
|
import { ImpactCard } from '@arc-ui/components/dist/ImpactCard';
|
|
10
10
|
import { InformationCard } from '@arc-ui/components/dist/InformationCard';
|
|
11
11
|
import { TypographyCard } from '@arc-ui/components/dist/TypographyCard';
|
|
12
|
-
import '../_shared/esm/index.es-
|
|
12
|
+
import '../_shared/esm/index.es-78a8c110.js';
|
|
13
13
|
import '@arc-ui/components/dist/Heading';
|
|
14
14
|
import '@arc-ui/components/dist/Text';
|
|
15
15
|
import '@arc-ui/components/dist/VerticalSpace';
|
package/dist/Quote/Quote.cjs.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
9
|
-
var Author = require('../_shared/cjs/Author-
|
|
8
|
+
var index_es = require('../_shared/cjs/index.es-f32d97a8.js');
|
|
9
|
+
var Author = require('../_shared/cjs/Author-5d1a94f0.js');
|
|
10
10
|
require('@arc-ui/components/dist/Grid');
|
|
11
11
|
require('@arc-ui/components/dist/Avatar');
|
|
12
12
|
require('@arc-ui/components/dist/Heading');
|
package/dist/Quote/Quote.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
-
import { f as filterDataAttrs } from '../_shared/esm/index.es-
|
|
5
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
4
|
+
import { f as filterDataAttrs } from '../_shared/esm/index.es-78a8c110.js';
|
|
5
|
+
import { A as Author } from '../_shared/esm/Author-ed0214c7.js';
|
|
6
6
|
import '@arc-ui/components/dist/Grid';
|
|
7
7
|
import '@arc-ui/components/dist/Avatar';
|
|
8
8
|
import '@arc-ui/components/dist/Heading';
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
5
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-e77798e4.js');
|
|
6
6
|
require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/index-9947ac13.js');
|
|
9
|
-
require('../_shared/cjs/index.es-
|
|
9
|
+
require('../_shared/cjs/index.es-f32d97a8.js');
|
|
10
10
|
require('@arc-ui/components/dist/Heading');
|
|
11
11
|
require('@arc-ui/components/dist/Text');
|
|
12
12
|
require('@arc-ui/components/dist/VerticalSpace');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
1
|
+
export { S as SectionHeading } from '../_shared/esm/SectionHeading-4af705a6.js';
|
|
2
2
|
import '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
-
import '../_shared/esm/index.es-
|
|
5
|
+
import '../_shared/esm/index.es-78a8c110.js';
|
|
6
6
|
import '@arc-ui/components/dist/Heading';
|
|
7
7
|
import '@arc-ui/components/dist/Text';
|
|
8
8
|
import '@arc-ui/components/dist/VerticalSpace';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.SectionHeading-module_section-header--padded__0FXP2{padding-bottom:40px;width:auto}@media (
|
|
1
|
+
.SectionHeading-module_section-header--padded__0FXP2{padding-bottom:40px;width:auto}@media (min-width:636px){.SectionHeading-module_section-header--padded__0FXP2{min-width:588px;width:auto}}@media (min-width:768px){.SectionHeading-module_section-header--padded__0FXP2{min-width:720px;padding:0 186px 40px 0}}@media (min-width:1024px){.SectionHeading-module_section-header--padded__0FXP2{min-width:960px;padding:0 246px 40px 0}}@media (min-width:1280px){.SectionHeading-module_section-header--padded__0FXP2{min-width:1216px;padding:0 312px 40px 0}}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var Columns = require('@arc-ui/components/dist/Columns');
|
|
8
|
+
var Rule = require('@arc-ui/components/dist/Rule');
|
|
9
|
+
var Text = require('@arc-ui/components/dist/Text');
|
|
10
|
+
var Align = require('@arc-ui/components/dist/Align');
|
|
11
|
+
var Heading = require('@arc-ui/components/dist/Heading');
|
|
12
|
+
var VerticalSpace = require('@arc-ui/components/dist/VerticalSpace');
|
|
13
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-e77798e4.js');
|
|
14
|
+
require('../_shared/cjs/index-9947ac13.js');
|
|
15
|
+
require('../_shared/cjs/index.es-f32d97a8.js');
|
|
16
|
+
|
|
17
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
|
+
|
|
21
|
+
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
22
|
+
|
|
23
|
+
var getLinkProps = function (link) {
|
|
24
|
+
return link.openInNewTab
|
|
25
|
+
? {
|
|
26
|
+
rel: "noreferrer",
|
|
27
|
+
target: "_blank"
|
|
28
|
+
}
|
|
29
|
+
: {};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var Statistics = function (_a) {
|
|
33
|
+
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
34
|
+
return (React__default["default"].createElement(Columns.Columns, null,
|
|
35
|
+
React__default["default"].createElement(Columns.Columns.Col, { spanM: 9 },
|
|
36
|
+
React__default["default"].createElement(SectionHeading.SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
37
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "16" })),
|
|
38
|
+
React__default["default"].createElement(Columns.Columns.Col, { spanL: 9 },
|
|
39
|
+
React__default["default"].createElement("ul", { className: styles.list }, statistics.map(function (_a, i) {
|
|
40
|
+
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
41
|
+
return (React__default["default"].createElement("li", null,
|
|
42
|
+
i !== 0 && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
43
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }),
|
|
44
|
+
React__default["default"].createElement(Rule.Rule, null),
|
|
45
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }))),
|
|
46
|
+
React__default["default"].createElement(Columns.Columns, null,
|
|
47
|
+
React__default["default"].createElement(Columns.Columns.Col, { spanS: 6, spanM: 8 },
|
|
48
|
+
React__default["default"].createElement(Align.Align, { vertical: "center" },
|
|
49
|
+
React__default["default"].createElement("div", { className: styles.statWrapper },
|
|
50
|
+
React__default["default"].createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat)))),
|
|
51
|
+
React__default["default"].createElement(Columns.Columns.Col, { spanS: 6, spanM: 4 },
|
|
52
|
+
React__default["default"].createElement(Text.Text, null, copy),
|
|
53
|
+
link && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
54
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
55
|
+
React__default["default"].createElement("a", tslib_es6.__assign({ href: link.href, "aria-label": link.ariaLabel }, getLinkProps(link)), link.text))),
|
|
56
|
+
source && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
57
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
58
|
+
React__default["default"].createElement(Text.Text, { size: "xs" },
|
|
59
|
+
React__default["default"].createElement("span", { className: styles.mutedText }, source)))),
|
|
60
|
+
sourceUrl && (React__default["default"].createElement(Text.Text, { size: "xs" },
|
|
61
|
+
React__default["default"].createElement("a", { className: styles.mutedText, href: sourceUrl }, sourceUrl)))))));
|
|
62
|
+
})))));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.Statistics = Statistics;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Columns } from '@arc-ui/components/dist/Columns';
|
|
4
|
+
import { Rule } from '@arc-ui/components/dist/Rule';
|
|
5
|
+
import { Text } from '@arc-ui/components/dist/Text';
|
|
6
|
+
import { Align } from '@arc-ui/components/dist/Align';
|
|
7
|
+
import { Heading } from '@arc-ui/components/dist/Heading';
|
|
8
|
+
import { VerticalSpace } from '@arc-ui/components/dist/VerticalSpace';
|
|
9
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-4af705a6.js';
|
|
10
|
+
import '../_shared/esm/index-2e73c2e9.js';
|
|
11
|
+
import '../_shared/esm/index.es-78a8c110.js';
|
|
12
|
+
|
|
13
|
+
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
14
|
+
|
|
15
|
+
var getLinkProps = function (link) {
|
|
16
|
+
return link.openInNewTab
|
|
17
|
+
? {
|
|
18
|
+
rel: "noreferrer",
|
|
19
|
+
target: "_blank"
|
|
20
|
+
}
|
|
21
|
+
: {};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var Statistics = function (_a) {
|
|
25
|
+
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
26
|
+
return (React.createElement(Columns, null,
|
|
27
|
+
React.createElement(Columns.Col, { spanM: 9 },
|
|
28
|
+
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
29
|
+
React.createElement(VerticalSpace, { size: "16" })),
|
|
30
|
+
React.createElement(Columns.Col, { spanL: 9 },
|
|
31
|
+
React.createElement("ul", { className: styles.list }, statistics.map(function (_a, i) {
|
|
32
|
+
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
33
|
+
return (React.createElement("li", null,
|
|
34
|
+
i !== 0 && (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }),
|
|
36
|
+
React.createElement(Rule, null),
|
|
37
|
+
React.createElement(VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }))),
|
|
38
|
+
React.createElement(Columns, null,
|
|
39
|
+
React.createElement(Columns.Col, { spanS: 6, spanM: 8 },
|
|
40
|
+
React.createElement(Align, { vertical: "center" },
|
|
41
|
+
React.createElement("div", { className: styles.statWrapper },
|
|
42
|
+
React.createElement(Heading, { color: "brand", size: "xxl" }, stat)))),
|
|
43
|
+
React.createElement(Columns.Col, { spanS: 6, spanM: 4 },
|
|
44
|
+
React.createElement(Text, null, copy),
|
|
45
|
+
link && (React.createElement(React.Fragment, null,
|
|
46
|
+
React.createElement(VerticalSpace, { size: "12" }),
|
|
47
|
+
React.createElement("a", __assign({ href: link.href, "aria-label": link.ariaLabel }, getLinkProps(link)), link.text))),
|
|
48
|
+
source && (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(VerticalSpace, { size: "12" }),
|
|
50
|
+
React.createElement(Text, { size: "xs" },
|
|
51
|
+
React.createElement("span", { className: styles.mutedText }, source)))),
|
|
52
|
+
sourceUrl && (React.createElement(Text, { size: "xs" },
|
|
53
|
+
React.createElement("a", { className: styles.mutedText, href: sourceUrl }, sourceUrl)))))));
|
|
54
|
+
})))));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { Statistics };
|