@arc-ui/community-components 3.0.1 → 3.1.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/.turbo/turbo-build.log +17 -20
- package/CHANGELOG.md +18 -0
- package/lib/Accordion/Accordion.cjs +2 -2
- package/lib/Accordion/Accordion.mjs +2 -2
- package/lib/ActionTile/ActionTile.cjs +35 -0
- package/lib/ActionTile/ActionTile.mjs +33 -0
- package/lib/ActionTile/styles.css +1 -0
- package/lib/ArticleSidebar/ArticleSidebar.cjs +68 -58
- package/lib/ArticleSidebar/ArticleSidebar.mjs +68 -58
- package/lib/ArticleSidebar/styles.css +1 -1
- package/lib/Author/Author.cjs +2 -2
- package/lib/Author/Author.mjs +2 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +5 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +5 -5
- package/lib/CopyLead/CopyLead.cjs +12 -12
- package/lib/CopyLead/CopyLead.mjs +12 -12
- package/lib/DownloadList/DownloadList.cjs +5 -5
- package/lib/DownloadList/DownloadList.mjs +5 -5
- package/lib/FAQs/FAQs.cjs +6 -6
- package/lib/FAQs/FAQs.mjs +6 -6
- package/lib/FeaturePost/FeaturePost.cjs +6 -6
- package/lib/FeaturePost/FeaturePost.mjs +6 -6
- package/lib/HeroLink/HeroLink.cjs +35 -0
- package/lib/HeroLink/HeroLink.mjs +33 -0
- package/lib/HeroLink/styles.css +1 -0
- package/lib/Highlights/Highlights.cjs +9 -16
- package/lib/Highlights/Highlights.mjs +7 -14
- package/lib/LinkTile/LinkTile.cjs +21 -0
- package/lib/LinkTile/LinkTile.mjs +19 -0
- package/lib/LinkTile/styles.css +1 -0
- package/lib/ProductNavigation/ProductNavigation.cjs +10 -13
- package/lib/ProductNavigation/ProductNavigation.mjs +10 -13
- package/lib/PromoListing/PromoListing.cjs +17 -9
- package/lib/PromoListing/PromoListing.mjs +17 -9
- package/lib/Quote/Quote.cjs +3 -3
- package/lib/Quote/Quote.mjs +3 -3
- package/lib/SectionHeading/SectionHeading.cjs +3 -3
- package/lib/SectionHeading/SectionHeading.mjs +3 -3
- package/lib/Statistics/Statistics.cjs +6 -6
- package/lib/Statistics/Statistics.mjs +6 -6
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/_shared/cjs/{Accordion-D5fpUJzm.cjs → Accordion-BCJIm1Gq.cjs} +4 -4
- package/lib/_shared/cjs/{Author-X47pv31V.cjs → Author-D4dKNQem.cjs} +2 -2
- package/lib/_shared/cjs/BtIconArrowAltRight-CLQdP61r.cjs +11 -0
- package/lib/_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs +11 -0
- package/lib/_shared/cjs/{SectionHeading-DepTV4JA.cjs → SectionHeading-DeSFM0HV.cjs} +5 -5
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +27 -0
- package/lib/_shared/cjs/{index.es-D11PdokQ.cjs → index.es-DzI6hGjj.cjs} +1 -1
- package/lib/_shared/esm/{Accordion-LLwNdzax.mjs → Accordion-BN_lZk6L.mjs} +4 -4
- package/lib/_shared/esm/{Author-CydDYCma.mjs → Author-HnYsFTPT.mjs} +2 -2
- package/lib/_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs +9 -0
- package/lib/_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs +9 -0
- package/lib/_shared/esm/{SectionHeading-BayinGP_.mjs → SectionHeading-CpDLCndw.mjs} +5 -5
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +25 -0
- package/lib/_shared/esm/{index.es-C4PyYMjI.mjs → index.es-B6Bolkcx.mjs} +1 -1
- package/lib/index.cjs +315 -217
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +155 -26
- package/lib/index.d.mts +155 -26
- package/lib/index.mjs +313 -218
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +13 -13
- package/src/components/Accordion/Accordion.tsx +3 -2
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +2 -2
- package/src/components/Accordion/components/AccordionHeading/AccordionHeading.tsx +3 -4
- package/src/components/ActionTile/ActionTile.module.css +89 -0
- package/src/components/ActionTile/ActionTile.tsx +70 -0
- package/src/components/ActionTile/index.ts +1 -0
- package/src/components/ArticleSidebar/ArticleSidebar.module.css +6 -0
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +115 -85
- package/src/components/ArticleSidebar/types/link-section.ts +2 -1
- package/src/components/ArticleSidebar/types/share-button.ts +1 -1
- package/src/components/ArticleSidebar/types/share.ts +5 -1
- package/src/components/ArticleSidebar/types/text-section.ts +3 -2
- package/src/components/ArticleSidebar/types/topic.ts +2 -2
- package/src/components/Author/Author.tsx +2 -2
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +9 -3
- package/src/components/CopyLead/CopyLead.tsx +21 -5
- package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +10 -1
- package/src/components/CopyLead/templates/Content/Content.tsx +4 -0
- package/src/components/CopyLead/templates/Media/Media.tsx +10 -1
- package/src/components/CopyLead/types/copy-lead-button.ts +1 -1
- package/src/components/CopyLead/types/copy-lead-image.ts +1 -1
- package/src/components/DownloadList/DownloadList.tsx +4 -0
- package/src/components/FAQs/FAQs.tsx +7 -3
- package/src/components/FeaturePost/FeaturePost.tsx +22 -5
- package/src/components/FeaturePost/types/feature-post-app-button-footer.ts +1 -1
- package/src/components/FeaturePost/types/feature-post-cta-footer.ts +2 -1
- package/src/components/FeaturePost/types/feature-post-image.ts +1 -1
- package/src/components/HeroLink/HeroLink.module.css +44 -0
- package/src/components/HeroLink/HeroLink.tsx +136 -0
- package/src/components/HeroLink/index.ts +2 -0
- package/src/components/Highlights/Highlights.tsx +6 -1
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +1 -0
- package/src/components/Highlights/types/highlight-link.ts +1 -0
- package/src/components/LinkTile/LinkTile.module.css +57 -0
- package/src/components/LinkTile/LinkTile.tsx +38 -0
- package/src/components/LinkTile/index.ts +1 -0
- package/src/components/ProductNavigation/ProductNavigation.tsx +10 -11
- package/src/components/ProductNavigation/types/product-list.ts +1 -8
- package/src/components/PromoListing/PromoListing.tsx +67 -3
- package/src/components/Quote/Quote.tsx +2 -2
- package/src/components/SectionHeading/SectionHeading.tsx +17 -7
- package/src/components/Statistics/Statistics.tsx +6 -2
- package/src/components/index.ts +3 -0
- package/versions.json +1 -1
- package/lib/_shared/cjs/filter-data-attrs-ajtUvDAC.cjs +0 -15
- package/lib/_shared/esm/filter-data-attrs-V7cbJuwS.mjs +0 -13
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @arc-ui/community-components@3.0
|
|
2
|
+
> @arc-ui/community-components@3.1.0 build /builds/enterprise/frontend/arc-community/packages/components
|
|
3
3
|
> rimraf lib dist && rollup -c && generate-subpath-css && pnpm run build:clean
|
|
4
4
|
|
|
5
5
|
Browserslist: browsers data (caniuse-lite) is 6 months old. Please run:
|
|
@@ -7,40 +7,37 @@ Browserslist: browsers data (caniuse-lite) is 6 months old. Please run:
|
|
|
7
7
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
8
8
|
[36m
|
|
9
9
|
[1msrc/index.ts[22m → [1mlib/index.cjs, lib/index.mjs[22m...[39m
|
|
10
|
-
[32mcreated [1mlib/index.cjs, lib/index.mjs[22m in [
|
|
10
|
+
[32mcreated [1mlib/index.cjs, lib/index.mjs[22m in [1m8.9s[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./lib/types/index.d.ts[22m → [1mlib/index.d.mts, lib/index.d.cts[22m...[39m
|
|
13
13
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
14
14
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
15
|
-
[1m@arc-ui/components/dist/Heading[22m (imported by "lib/types/components/CopyLead/CopyLead.d.ts", "lib/types/components/ArticleSidebar/types/text-section.d.ts", "lib/types/components/ArticleSidebar/types/link-section.d.ts", "lib/types/components/ArticleSidebar/types/share.d.ts" and "lib/types/components/ArticleSidebar/types/topic.d.ts")
|
|
16
|
-
[1m@arc-ui/components/dist/VideoPlayer[22m (imported by "lib/types/components/CopyLead/CopyLead.d.ts")
|
|
17
15
|
[1m@arc-ui/components/Avatar[22m (imported by "lib/types/components/Author/Author.d.ts")
|
|
18
|
-
[1m@arc-ui/components/
|
|
19
|
-
[1m@arc-ui/components/
|
|
20
|
-
[1m@arc-ui/components/
|
|
16
|
+
[1m@arc-ui/components/Download[22m (imported by "lib/types/components/DownloadList/DownloadList.d.ts")
|
|
17
|
+
[1m@arc-ui/components/Heading[22m (imported by "lib/types/components/CopyLead/CopyLead.d.ts", "lib/types/components/FeaturePost/FeaturePost.d.ts", "lib/types/components/PromoListing/PromoListing.d.ts", "lib/types/components/Summary/Summary.d.ts", "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/ArticleSidebar/types/text-section.d.ts", "lib/types/components/ArticleSidebar/types/share.d.ts", "lib/types/components/ArticleSidebar/types/topic.d.ts" and "lib/types/components/ArticleSidebar/types/link-section.d.ts")
|
|
18
|
+
[1m@arc-ui/components/VideoPlayer[22m (imported by "lib/types/components/CopyLead/CopyLead.d.ts" and "lib/types/components/FeaturePost/FeaturePost.d.ts")
|
|
19
|
+
[1m@arc-ui/components/ButtonV2[22m (imported by "lib/types/components/Highlights/Highlights.d.ts" and "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
21
20
|
[1m@arc-ui/components/MediaCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
22
21
|
[1m@arc-ui/components/ImpactCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
23
22
|
[1m@arc-ui/components/InformationCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/ProductNavigation/types/product-list.d.ts")
|
|
24
23
|
[1m@arc-ui/components/TypographyCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
25
|
-
[1m@arc-ui/components/
|
|
26
|
-
[1m@arc-ui/components/
|
|
27
|
-
[1m@arc-ui/components/dist/types/components/Image/Image[22m (imported by "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/CopyLead/types/copy-lead-image.d.ts" and "lib/types/components/FeaturePost/types/feature-post-image.d.ts")
|
|
24
|
+
[1m@arc-ui/components/TemplateBanner[22m (imported by "lib/types/components/BannerWithTabs/BannerWithTabs.d.ts")
|
|
25
|
+
[1m@arc-ui/components/Image[22m (imported by "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/CopyLead/types/copy-lead-image.d.ts" and "lib/types/components/FeaturePost/types/feature-post-image.d.ts")
|
|
28
26
|
[1m@arc-ui/components/Disclosure[22m (imported by "lib/types/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts")
|
|
29
|
-
[1m@arc-ui/components/
|
|
30
|
-
[1m@arc-ui/components/
|
|
31
|
-
[1m@arc-ui/components/
|
|
32
|
-
[
|
|
33
|
-
[32mcreated [1mlib/index.d.mts, lib/index.d.cts[22m in [1m116ms[22m[39m
|
|
27
|
+
[1m@arc-ui/components/Tag[22m (imported by "lib/types/components/ArticleSidebar/types/topic.d.ts")
|
|
28
|
+
[1m@arc-ui/components/AppButton[22m (imported by "lib/types/components/FeaturePost/types/feature-post-app-button-footer.d.ts")
|
|
29
|
+
[1m@arc-ui/components/Button[22m (imported by "lib/types/components/CopyLead/types/copy-lead-button.d.ts" and "lib/types/components/FeaturePost/types/feature-post-cta-footer.d.ts")
|
|
30
|
+
[32mcreated [1mlib/index.d.mts, lib/index.d.cts[22m in [1m175ms[22m[39m
|
|
34
31
|
[36m
|
|
35
|
-
[1m./src/components/Accordion/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts[22m → [1mlib[22m...[39m
|
|
36
|
-
[32mcreated [1mlib[22m in [
|
|
32
|
+
[1m./src/components/Accordion/index.ts, ./src/components/ActionTile/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/HeroLink/index.ts, ./src/components/Highlights/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts[22m → [1mlib[22m...[39m
|
|
33
|
+
[32mcreated [1mlib[22m in [1m6.1s[22m[39m
|
|
37
34
|
[36m
|
|
38
|
-
[1m./src/components/Accordion/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts[22m → [1mlib[22m...[39m
|
|
39
|
-
[32mcreated [1mlib[22m in [
|
|
35
|
+
[1m./src/components/Accordion/index.ts, ./src/components/ActionTile/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/HeroLink/index.ts, ./src/components/Highlights/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts[22m → [1mlib[22m...[39m
|
|
36
|
+
[32mcreated [1mlib[22m in [1m5.6s[22m[39m
|
|
40
37
|
Browserslist: browsers data (caniuse-lite) is 6 months old. Please run:
|
|
41
38
|
npx update-browserslist-db@latest
|
|
42
39
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
43
40
|
|
|
44
|
-
> @arc-ui/community-components@3.0
|
|
41
|
+
> @arc-ui/community-components@3.1.0 build:clean /builds/enterprise/frontend/arc-community/packages/components
|
|
45
42
|
> rimraf ./lib/types ./lib/styles.js ./lib/index.js ./lib/index.js.map
|
|
46
43
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @arc-ui/community-components
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 901e62d: exposed props for various components following audit from cms team
|
|
8
|
+
- 7bbacc1: - refactor the ProductNavigation.tsx file so the InformationCard can accept all InformationCard props
|
|
9
|
+
- fix test coverage for FAQs:
|
|
10
|
+
- remove default type="list" from FAQs
|
|
11
|
+
- change the describe(...) title from <Accordion /> to <FAQs />
|
|
12
|
+
- add a test that headingLevel defaults to h2
|
|
13
|
+
- 901e62d: update import paths from arc, updated to arc 13.4.0
|
|
14
|
+
- 8bf8500: Added overline and button props to promo listing
|
|
15
|
+
- 16d4b41: Swapped filterDataAttrs for filterAttrs
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- b4b1464: Added ActionTile, LinkTile, and HeroLink components for Help & Support page (ARC-1490)
|
|
20
|
+
|
|
3
21
|
## 3.0.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Accordion = require('../_shared/cjs/Accordion-
|
|
3
|
+
var Accordion = require('../_shared/cjs/Accordion-BCJIm1Gq.cjs');
|
|
4
4
|
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
5
5
|
require('react');
|
|
6
|
-
require('../_shared/cjs/filter-
|
|
6
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
7
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
8
8
|
require('@arc-ui/components/Heading');
|
|
9
9
|
require('@arc-ui/components/Text');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as Accordion } from '../_shared/esm/Accordion-
|
|
1
|
+
export { A as Accordion } from '../_shared/esm/Accordion-BN_lZk6L.mjs';
|
|
2
2
|
import '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../_shared/esm/filter-
|
|
4
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
5
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
6
6
|
import '@arc-ui/components/Heading';
|
|
7
7
|
import '@arc-ui/components/Text';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
|
+
var Icon = require('@arc-ui/components/Icon');
|
|
8
|
+
|
|
9
|
+
var styles = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Do not edit directly
|
|
13
|
+
* Generated file
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const BtIconTickAlt2Px =
|
|
17
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m13.5 21.914-4.707-4.707a1 1 0 0 1 0-1.414 1.024 1.024 0 0 1 1.414 0l3.293 3.293 8.293-8.293a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
|
|
18
|
+
|
|
19
|
+
var ActionTile = function (_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var icon = _a.icon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = tslib_es6.__rest(_a, ["icon", "heading", "isActive", "onClick", "className"]);
|
|
22
|
+
var tileClasses = index.classNames(styles["action-tile"], (_b = {},
|
|
23
|
+
_b[styles["action-tile--active"]] = isActive,
|
|
24
|
+
_b), className);
|
|
25
|
+
var content = (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement("div", { className: styles["action-tile-content"] },
|
|
27
|
+
icon && (React.createElement("div", { className: styles["action-tile-icon"] },
|
|
28
|
+
React.createElement(Icon.Icon, { icon: icon, size: 48 }))),
|
|
29
|
+
React.createElement("h3", { className: styles["action-tile-heading"] }, heading)),
|
|
30
|
+
isActive && (React.createElement("div", { className: styles["action-tile-tick"] },
|
|
31
|
+
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size: 20 })))));
|
|
32
|
+
return (React.createElement("div", tslib_es6.__assign({ className: tileClasses, onClick: onClick }, filterAttrs.filterAttrs(props)), content));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.ActionTile = ActionTile;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { a as __rest, _ as __assign } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
6
|
+
|
|
7
|
+
var styles = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Do not edit directly
|
|
11
|
+
* Generated file
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const BtIconTickAlt2Px =
|
|
15
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m13.5 21.914-4.707-4.707a1 1 0 0 1 0-1.414 1.024 1.024 0 0 1 1.414 0l3.293 3.293 8.293-8.293a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
|
|
16
|
+
|
|
17
|
+
var ActionTile = function (_a) {
|
|
18
|
+
var _b;
|
|
19
|
+
var icon = _a.icon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = __rest(_a, ["icon", "heading", "isActive", "onClick", "className"]);
|
|
20
|
+
var tileClasses = classNames(styles["action-tile"], (_b = {},
|
|
21
|
+
_b[styles["action-tile--active"]] = isActive,
|
|
22
|
+
_b), className);
|
|
23
|
+
var content = (React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement("div", { className: styles["action-tile-content"] },
|
|
25
|
+
icon && (React.createElement("div", { className: styles["action-tile-icon"] },
|
|
26
|
+
React.createElement(Icon, { icon: icon, size: 48 }))),
|
|
27
|
+
React.createElement("h3", { className: styles["action-tile-heading"] }, heading)),
|
|
28
|
+
isActive && (React.createElement("div", { className: styles["action-tile-tick"] },
|
|
29
|
+
React.createElement(Icon, { icon: BtIconTickAlt2Px, size: 20 })))));
|
|
30
|
+
return (React.createElement("div", __assign({ className: tileClasses, onClick: onClick }, filterAttrs(props)), content));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { ActionTile };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ActionTile-module_action-tile__JPwGb{display:flex;flex-direction:horizontal;align-items:center;justify-content:space-between;width:230px;height:164px;padding:24px;gap:16px;border-radius:16px;border:1px solid #c8c8c8;background:transparent;text-decoration:none;cursor:pointer;transition:all 0.2s ease;position:relative}.ActionTile-module_action-tile-content__ZkgHc{display:flex;flex-direction:column;gap:12px;flex:1;align-items:flex-start}.ActionTile-module_action-tile-icon__PY1EN{display:flex;align-items:center;justify-content:flex-start;width:48px;height:48px;color:#2a2a2a;transition:color 0.2s ease}.ActionTile-module_action-tile-heading__Uxdu9{font-family:"BT Curve",sans-serif;font-size:20px;font-weight:500;line-height:28px;letter-spacing:0;color:#2a2a2a;margin:0;transition:color 0.2s ease;width:100%;word-wrap:break-word;word-wrap:break-word;margin-left:-12px}.ActionTile-module_action-tile--active__-aWze{background:#efe5f7;border-color:#2a1c4a}.ActionTile-module_action-tile--active__-aWze .ActionTile-module_action-tile-heading__Uxdu9,.ActionTile-module_action-tile--active__-aWze .ActionTile-module_action-tile-icon__PY1EN{color:#2a1c4a}.ActionTile-module_action-tile--active__-aWze:hover{background:#efe5f7;border-color:#2a1c4a}.ActionTile-module_action-tile__JPwGb:hover{border-color:#3f187f}.ActionTile-module_action-tile__JPwGb:hover .ActionTile-module_action-tile-heading__Uxdu9,.ActionTile-module_action-tile__JPwGb:hover .ActionTile-module_action-tile-icon__PY1EN{color:#3f187f}.ActionTile-module_action-tile-tick__vhsJE{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:24px;background:#2a1c4a;color:#ffffff;flex-shrink:0;position:absolute;top:-8px;right:-8px}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
5
6
|
var Heading = require('@arc-ui/components/Heading');
|
|
6
7
|
var Icon = require('@arc-ui/components/Icon');
|
|
7
8
|
var Text = require('@arc-ui/components/Text');
|
|
@@ -10,8 +11,8 @@ var Link = require('@arc-ui/components/Link');
|
|
|
10
11
|
var Tag = require('@arc-ui/components/Tag');
|
|
11
12
|
var Toast = require('@arc-ui/components/Toast');
|
|
12
13
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
13
|
-
var Author = require('../_shared/cjs/Author-
|
|
14
|
-
require('../_shared/cjs/filter-
|
|
14
|
+
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
15
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
15
16
|
require('@arc-ui/components/Grid');
|
|
16
17
|
require('@arc-ui/components/Avatar');
|
|
17
18
|
|
|
@@ -47,15 +48,16 @@ const BtIconLink =
|
|
|
47
48
|
const BtIconEmailUnread =
|
|
48
49
|
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M29 6H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0 1v1.716l-11 7.616a3.52 3.52 0 0 1-3.984 0L3 8.705V7Zm0 2.933v12.15l-8.775-6.075Zm-17.208 6.075L3 22.095V9.922ZM3 25v-1.689l9.67-6.695.777.538a4.52 4.52 0 0 0 5.123 0l.776-.538L29 23.3V25Z'/%3e%3c/svg%3e";
|
|
49
50
|
|
|
50
|
-
var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
51
|
+
var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","additionalContentContainer":"ArticleSidebar-module_additionalContentContainer__91L4n","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
51
52
|
|
|
52
53
|
/**
|
|
53
54
|
* Use `ArticleSidebar` to provide additional information about the article.
|
|
54
55
|
*/
|
|
55
56
|
var ArticleSidebar = function (_a) {
|
|
57
|
+
var _b;
|
|
56
58
|
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
57
59
|
var id = React.useId();
|
|
58
|
-
var
|
|
60
|
+
var _c = React.useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
59
61
|
var url = location.href;
|
|
60
62
|
var copyTextToClipBoard = function () { return tslib_es6.__awaiter(void 0, void 0, void 0, function () {
|
|
61
63
|
return tslib_es6.__generator(this, function (_a) {
|
|
@@ -68,79 +70,87 @@ var ArticleSidebar = function (_a) {
|
|
|
68
70
|
}
|
|
69
71
|
});
|
|
70
72
|
}); };
|
|
71
|
-
var shareButtons =
|
|
72
|
-
|
|
73
|
-
isButton: true,
|
|
74
|
-
label: "Copy url to clipboard",
|
|
75
|
-
onClick: copyTextToClipBoard,
|
|
76
|
-
icon: BtIconLink,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: "Share by email",
|
|
80
|
-
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
81
|
-
icon: BtIconEmailUnread,
|
|
82
|
-
}
|
|
83
|
-
], (share.linkedin
|
|
84
|
-
? [
|
|
73
|
+
var shareButtons = share
|
|
74
|
+
? tslib_es6.__spreadArray(tslib_es6.__spreadArray([
|
|
85
75
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
icon:
|
|
76
|
+
isButton: true,
|
|
77
|
+
onClick: copyTextToClipBoard,
|
|
78
|
+
icon: BtIconLink,
|
|
79
|
+
ariaLabel: share.clipboardAriaLabel || "Copy url to clipboard",
|
|
89
80
|
},
|
|
90
|
-
]
|
|
91
|
-
: []), true), (share.x
|
|
92
|
-
? [
|
|
93
81
|
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
|
|
82
|
+
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
83
|
+
icon: BtIconEmailUnread,
|
|
84
|
+
ariaLabel: share.emailAriaLabel || "Share by email",
|
|
85
|
+
}
|
|
86
|
+
], (share.linkedin
|
|
87
|
+
? [
|
|
88
|
+
{
|
|
89
|
+
href: "https://www.linkedin.com/sharing/share-offsite/?url=".concat(url),
|
|
90
|
+
icon: ArcIconSocialLinkedin,
|
|
91
|
+
ariaLabel: share.linkedInAriaLabel || "Share on LinkedIn",
|
|
92
|
+
},
|
|
93
|
+
]
|
|
94
|
+
: []), true), (share.x
|
|
95
|
+
? [
|
|
96
|
+
{
|
|
97
|
+
href: "https://twitter.com/intent/tweet?url=".concat(url),
|
|
98
|
+
icon: ArcIconSocialX,
|
|
99
|
+
ariaLabel: share.xAriaLabel || "Share on x",
|
|
100
|
+
},
|
|
101
|
+
]
|
|
102
|
+
: []), true) : [];
|
|
103
|
+
var hasTopContent = Boolean(author || aboutSection || additionalContent);
|
|
104
|
+
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
100
105
|
return (React.createElement(React.Fragment, null,
|
|
101
|
-
React.createElement("div", { className:
|
|
106
|
+
React.createElement("div", { className: index.classNames((_b = {},
|
|
107
|
+
_b[styles.textContent] = hasTopContent,
|
|
108
|
+
_b)) },
|
|
102
109
|
author && (React.createElement(React.Fragment, null,
|
|
103
110
|
React.createElement(Author.Author, tslib_es6.__assign({}, author, { avatar: tslib_es6.__assign(tslib_es6.__assign({}, author.avatar), { size: "xl" }) })))),
|
|
104
111
|
aboutSection && (React.createElement(React.Fragment, null,
|
|
105
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
112
|
+
author && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
106
113
|
React.createElement(Heading.Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
107
114
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
108
115
|
React.createElement(Text.Text, { size: "s" }, aboutSection.content))),
|
|
109
|
-
additionalContent &&
|
|
110
|
-
|
|
116
|
+
additionalContent && (React.createElement(React.Fragment, null,
|
|
117
|
+
(author || aboutSection) && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
118
|
+
React.createElement("div", { className: styles.additionalContentContainer }, additionalContent.map(function (_a) {
|
|
111
119
|
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
112
|
-
return (React.createElement(
|
|
113
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
120
|
+
return (React.createElement("div", { key: "".concat(id, "-").concat(heading) },
|
|
114
121
|
React.createElement(Heading.Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
115
122
|
React.createElement(Text.Text, { size: "s" }, content)));
|
|
116
|
-
})),
|
|
117
|
-
|
|
123
|
+
}))))),
|
|
124
|
+
hasTopContent && hasBottomContent && (React.createElement("div", { "data-testid": "text-content-rule" },
|
|
118
125
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
119
126
|
React.createElement(Rule.Rule, null),
|
|
120
127
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
121
|
-
React.createElement(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
React.createElement(
|
|
126
|
-
|
|
127
|
-
React.createElement(
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
linkSection && (React.createElement(React.Fragment, null,
|
|
129
|
+
React.createElement(Heading.Heading, { level: linkSection.headingLevel }, linkSection.heading),
|
|
130
|
+
linkSection.links.map(function (_a) {
|
|
131
|
+
var text = _a.text, url = _a.url, ariaLabel = _a.ariaLabel;
|
|
132
|
+
return (React.createElement(React.Fragment, null,
|
|
133
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
134
|
+
React.createElement("div", { key: "".concat(id, "-").concat(url) },
|
|
135
|
+
React.createElement(Link.Link, { "aria-label": ariaLabel, size: "s", href: url }, text))));
|
|
136
|
+
}))),
|
|
130
137
|
topics && (React.createElement(React.Fragment, null,
|
|
138
|
+
linkSection && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
131
139
|
React.createElement(Heading.Heading, { level: topics.headingLevel }, topics.heading),
|
|
132
140
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
133
|
-
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag.Tag, tslib_es6.__assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag.Tag, tslib_es6.__assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })))),
|
|
142
|
+
share && (React.createElement(React.Fragment, null,
|
|
143
|
+
(linkSection || topics) && (React.createElement("div", { "data-testid": "links-topics-content-rule" },
|
|
144
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
145
|
+
React.createElement(Rule.Rule, null),
|
|
146
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
147
|
+
React.createElement(Heading.Heading, { level: share.headingLevel }, share.heading),
|
|
148
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
149
|
+
React.createElement("div", { className: styles.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
150
|
+
var isButton = _a.isButton, ariaLabel = _a.ariaLabel, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
151
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles.shareButton, "aria-label": ariaLabel, href: href, onClick: isButton ? onClick : undefined },
|
|
152
|
+
React.createElement(Icon.Icon, { icon: icon, size: 24 })));
|
|
153
|
+
})))),
|
|
144
154
|
React.createElement(Toast.Toast, null,
|
|
145
155
|
React.createElement(Toast.ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
146
156
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { b as __spreadArray, _ as __assign, c as __awaiter, d as __generator } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
2
|
import React, { useId, useState } from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
3
4
|
import { Heading } from '@arc-ui/components/Heading';
|
|
4
5
|
import { Icon } from '@arc-ui/components/Icon';
|
|
5
6
|
import { Text } from '@arc-ui/components/Text';
|
|
@@ -8,8 +9,8 @@ import { Link } from '@arc-ui/components/Link';
|
|
|
8
9
|
import { Tag } from '@arc-ui/components/Tag';
|
|
9
10
|
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
10
11
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
11
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
12
|
-
import '../_shared/esm/filter-
|
|
12
|
+
import { A as Author } from '../_shared/esm/Author-HnYsFTPT.mjs';
|
|
13
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
13
14
|
import '@arc-ui/components/Grid';
|
|
14
15
|
import '@arc-ui/components/Avatar';
|
|
15
16
|
|
|
@@ -45,15 +46,16 @@ const BtIconLink =
|
|
|
45
46
|
const BtIconEmailUnread =
|
|
46
47
|
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M29 6H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0 1v1.716l-11 7.616a3.52 3.52 0 0 1-3.984 0L3 8.705V7Zm0 2.933v12.15l-8.775-6.075Zm-17.208 6.075L3 22.095V9.922ZM3 25v-1.689l9.67-6.695.777.538a4.52 4.52 0 0 0 5.123 0l.776-.538L29 23.3V25Z'/%3e%3c/svg%3e";
|
|
47
48
|
|
|
48
|
-
var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
49
|
+
var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","additionalContentContainer":"ArticleSidebar-module_additionalContentContainer__91L4n","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
52
|
* Use `ArticleSidebar` to provide additional information about the article.
|
|
52
53
|
*/
|
|
53
54
|
var ArticleSidebar = function (_a) {
|
|
55
|
+
var _b;
|
|
54
56
|
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
55
57
|
var id = useId();
|
|
56
|
-
var
|
|
58
|
+
var _c = useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
57
59
|
var url = location.href;
|
|
58
60
|
var copyTextToClipBoard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
59
61
|
return __generator(this, function (_a) {
|
|
@@ -66,79 +68,87 @@ var ArticleSidebar = function (_a) {
|
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
}); };
|
|
69
|
-
var shareButtons =
|
|
70
|
-
|
|
71
|
-
isButton: true,
|
|
72
|
-
label: "Copy url to clipboard",
|
|
73
|
-
onClick: copyTextToClipBoard,
|
|
74
|
-
icon: BtIconLink,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
label: "Share by email",
|
|
78
|
-
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
79
|
-
icon: BtIconEmailUnread,
|
|
80
|
-
}
|
|
81
|
-
], (share.linkedin
|
|
82
|
-
? [
|
|
71
|
+
var shareButtons = share
|
|
72
|
+
? __spreadArray(__spreadArray([
|
|
83
73
|
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
icon:
|
|
74
|
+
isButton: true,
|
|
75
|
+
onClick: copyTextToClipBoard,
|
|
76
|
+
icon: BtIconLink,
|
|
77
|
+
ariaLabel: share.clipboardAriaLabel || "Copy url to clipboard",
|
|
87
78
|
},
|
|
88
|
-
]
|
|
89
|
-
: []), true), (share.x
|
|
90
|
-
? [
|
|
91
79
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
|
|
80
|
+
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
81
|
+
icon: BtIconEmailUnread,
|
|
82
|
+
ariaLabel: share.emailAriaLabel || "Share by email",
|
|
83
|
+
}
|
|
84
|
+
], (share.linkedin
|
|
85
|
+
? [
|
|
86
|
+
{
|
|
87
|
+
href: "https://www.linkedin.com/sharing/share-offsite/?url=".concat(url),
|
|
88
|
+
icon: ArcIconSocialLinkedin,
|
|
89
|
+
ariaLabel: share.linkedInAriaLabel || "Share on LinkedIn",
|
|
90
|
+
},
|
|
91
|
+
]
|
|
92
|
+
: []), true), (share.x
|
|
93
|
+
? [
|
|
94
|
+
{
|
|
95
|
+
href: "https://twitter.com/intent/tweet?url=".concat(url),
|
|
96
|
+
icon: ArcIconSocialX,
|
|
97
|
+
ariaLabel: share.xAriaLabel || "Share on x",
|
|
98
|
+
},
|
|
99
|
+
]
|
|
100
|
+
: []), true) : [];
|
|
101
|
+
var hasTopContent = Boolean(author || aboutSection || additionalContent);
|
|
102
|
+
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
98
103
|
return (React.createElement(React.Fragment, null,
|
|
99
|
-
React.createElement("div", { className:
|
|
104
|
+
React.createElement("div", { className: classNames((_b = {},
|
|
105
|
+
_b[styles.textContent] = hasTopContent,
|
|
106
|
+
_b)) },
|
|
100
107
|
author && (React.createElement(React.Fragment, null,
|
|
101
108
|
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
102
109
|
aboutSection && (React.createElement(React.Fragment, null,
|
|
103
|
-
React.createElement(VerticalSpace, { size: "32" }),
|
|
110
|
+
author && React.createElement(VerticalSpace, { size: "32" }),
|
|
104
111
|
React.createElement(Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
105
112
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
106
113
|
React.createElement(Text, { size: "s" }, aboutSection.content))),
|
|
107
|
-
additionalContent &&
|
|
108
|
-
|
|
114
|
+
additionalContent && (React.createElement(React.Fragment, null,
|
|
115
|
+
(author || aboutSection) && React.createElement(VerticalSpace, { size: "16" }),
|
|
116
|
+
React.createElement("div", { className: styles.additionalContentContainer }, additionalContent.map(function (_a) {
|
|
109
117
|
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
110
|
-
return (React.createElement(
|
|
111
|
-
React.createElement(VerticalSpace, { size: "16" }),
|
|
118
|
+
return (React.createElement("div", { key: "".concat(id, "-").concat(heading) },
|
|
112
119
|
React.createElement(Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
113
120
|
React.createElement(Text, { size: "s" }, content)));
|
|
114
|
-
})),
|
|
115
|
-
|
|
121
|
+
}))))),
|
|
122
|
+
hasTopContent && hasBottomContent && (React.createElement("div", { "data-testid": "text-content-rule" },
|
|
116
123
|
React.createElement(VerticalSpace, { size: "32" }),
|
|
117
124
|
React.createElement(Rule, null),
|
|
118
125
|
React.createElement(VerticalSpace, { size: "32" }))),
|
|
119
|
-
React.createElement(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
React.createElement(
|
|
124
|
-
|
|
125
|
-
React.createElement(
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
linkSection && (React.createElement(React.Fragment, null,
|
|
127
|
+
React.createElement(Heading, { level: linkSection.headingLevel }, linkSection.heading),
|
|
128
|
+
linkSection.links.map(function (_a) {
|
|
129
|
+
var text = _a.text, url = _a.url, ariaLabel = _a.ariaLabel;
|
|
130
|
+
return (React.createElement(React.Fragment, null,
|
|
131
|
+
React.createElement(VerticalSpace, { size: "8" }),
|
|
132
|
+
React.createElement("div", { key: "".concat(id, "-").concat(url) },
|
|
133
|
+
React.createElement(Link, { "aria-label": ariaLabel, size: "s", href: url }, text))));
|
|
134
|
+
}))),
|
|
128
135
|
topics && (React.createElement(React.Fragment, null,
|
|
136
|
+
linkSection && React.createElement(VerticalSpace, { size: "32" }),
|
|
129
137
|
React.createElement(Heading, { level: topics.headingLevel }, topics.heading),
|
|
130
138
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
131
|
-
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })))),
|
|
140
|
+
share && (React.createElement(React.Fragment, null,
|
|
141
|
+
(linkSection || topics) && (React.createElement("div", { "data-testid": "links-topics-content-rule" },
|
|
142
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
143
|
+
React.createElement(Rule, null),
|
|
144
|
+
React.createElement(VerticalSpace, { size: "32" }))),
|
|
145
|
+
React.createElement(Heading, { level: share.headingLevel }, share.heading),
|
|
146
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
147
|
+
React.createElement("div", { className: styles.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
148
|
+
var isButton = _a.isButton, ariaLabel = _a.ariaLabel, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
149
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles.shareButton, "aria-label": ariaLabel, href: href, onClick: isButton ? onClick : undefined },
|
|
150
|
+
React.createElement(Icon, { icon: icon, size: 24 })));
|
|
151
|
+
})))),
|
|
142
152
|
React.createElement(Toast, null,
|
|
143
153
|
React.createElement(ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
144
154
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ArticleSidebar-module_tagGroup__rIPQc{display:flex;gap:16px;flex-wrap:wrap}.ArticleSidebar-module_textContent__3nCfG{padding-right:16px}.ArticleSidebar-module_shareButtonContainer__iAfHL{display:flex;gap:8px}.arc a.ArticleSidebar-module_shareButton__rb-1E{color:var(--sem-color-fg-secondary-light-default);background:var(--sem-color-bg-secondary-light-default);border:1px solid var(--sem-color-border-secondary-light-subtle);cursor:pointer;border-radius:50%;padding:12px;display:block;transition:0.4s ease color,0.4s ease border-color}.arc a.ArticleSidebar-module_shareButton__rb-1E:hover{color:var(--sem-color-bg-primary-light-strong);border-color:var(--sem-color-bg-primary-light-strong)}
|
|
1
|
+
.ArticleSidebar-module_tagGroup__rIPQc{display:flex;gap:16px;flex-wrap:wrap}.ArticleSidebar-module_textContent__3nCfG{padding-right:16px}.ArticleSidebar-module_additionalContentContainer__91L4n{display:flex;flex-direction:column;gap:16px}.ArticleSidebar-module_shareButtonContainer__iAfHL{display:flex;gap:8px}.arc a.ArticleSidebar-module_shareButton__rb-1E{color:var(--sem-color-fg-secondary-light-default);background:var(--sem-color-bg-secondary-light-default);border:1px solid var(--sem-color-border-secondary-light-subtle);cursor:pointer;border-radius:50%;padding:12px;display:block;transition:0.4s ease color,0.4s ease border-color}.arc a.ArticleSidebar-module_shareButton__rb-1E:hover{color:var(--sem-color-bg-primary-light-strong);border-color:var(--sem-color-bg-primary-light-strong)}
|
package/lib/Author/Author.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Author = require('../_shared/cjs/Author-
|
|
3
|
+
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
4
4
|
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
5
5
|
require('react');
|
|
6
|
-
require('../_shared/cjs/filter-
|
|
6
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
7
|
require('@arc-ui/components/Grid');
|
|
8
8
|
require('@arc-ui/components/Avatar');
|
|
9
9
|
require('@arc-ui/components/Heading');
|
package/lib/Author/Author.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as Author } from '../_shared/esm/Author-
|
|
1
|
+
export { A as Author } from '../_shared/esm/Author-HnYsFTPT.mjs';
|
|
2
2
|
import '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../_shared/esm/filter-
|
|
4
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
5
|
import '@arc-ui/components/Grid';
|
|
6
6
|
import '@arc-ui/components/Avatar';
|
|
7
7
|
import '@arc-ui/components/Heading';
|