@arc-ui/community-components 3.4.0 → 3.6.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 +37 -37
- package/CHANGELOG.md +20 -0
- package/lib/Accordion/Accordion.cjs +3 -2
- package/lib/Accordion/Accordion.mjs +3 -2
- package/lib/ActionTile/ActionTile.cjs +7 -5
- package/lib/ActionTile/ActionTile.mjs +6 -4
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +10 -9
- package/lib/ArticleSidebar/ArticleSidebar.mjs +3 -2
- package/lib/Author/Author.cjs +3 -2
- package/lib/Author/Author.mjs +3 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +6 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +5 -4
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.cjs +81 -0
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.mjs +79 -0
- package/lib/BusinessSegmentSwitcher/styles.css +1 -0
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +4 -3
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +2 -1
- package/lib/CopyLead/CopyLead.cjs +17 -16
- package/lib/CopyLead/CopyLead.mjs +3 -2
- package/lib/DownloadList/DownloadList.cjs +6 -5
- package/lib/DownloadList/DownloadList.mjs +3 -2
- package/lib/FAQs/FAQs.cjs +6 -5
- package/lib/FAQs/FAQs.mjs +4 -3
- package/lib/FeaturePost/FeaturePost.cjs +12 -11
- package/lib/FeaturePost/FeaturePost.mjs +3 -2
- package/lib/Highlights/Highlights.cjs +12 -11
- package/lib/Highlights/Highlights.mjs +4 -3
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +4 -3
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +2 -1
- package/lib/LinkTile/LinkTile.cjs +3 -3
- package/lib/LinkTile/LinkTile.mjs +2 -2
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -5
- package/lib/ProductNavigation/ProductNavigation.mjs +3 -2
- package/lib/PromoListing/PromoListing.cjs +7 -6
- package/lib/PromoListing/PromoListing.mjs +3 -2
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +7 -6
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +4 -3
- package/lib/Quote/Quote.cjs +6 -5
- package/lib/Quote/Quote.mjs +3 -2
- package/lib/SectionHeading/SectionHeading.cjs +3 -2
- package/lib/SectionHeading/SectionHeading.mjs +3 -2
- package/lib/Statistics/Statistics.cjs +6 -5
- package/lib/Statistics/Statistics.mjs +3 -2
- package/lib/Summary/Summary.cjs +4 -3
- package/lib/Summary/Summary.mjs +2 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +3 -2
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +3 -2
- package/lib/VideoHeroCard/VideoHeroCard.cjs +7 -6
- package/lib/VideoHeroCard/VideoHeroCard.mjs +3 -2
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +5 -4
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +3 -2
- package/lib/_shared/cjs/{Accordion-QqDoB3pY.cjs → Accordion-DfNGOjTm.cjs} +9 -8
- package/lib/_shared/cjs/{Author-aL8YXi7C.cjs → Author-D4dKNQem.cjs} +5 -4
- package/lib/_shared/cjs/{SectionHeading-Dj-dJfv3.cjs → SectionHeading-DeSFM0HV.cjs} +5 -4
- package/lib/_shared/cjs/{ThumbnailSignpost-SBnrGooA.cjs → ThumbnailSignpost-GkOiwt-Z.cjs} +5 -4
- package/lib/_shared/cjs/{VideoCardThumbnail-BqYgpk0u.cjs → VideoCardThumbnail-N5iC-cAU.cjs} +7 -6
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +27 -0
- package/lib/_shared/cjs/{filter-attrs-C26zOt4_.cjs → tslib.es6-BxB9I209.cjs} +0 -25
- package/lib/_shared/esm/{Accordion-DtU7jbCv.mjs → Accordion-DSRlkcXi.mjs} +2 -1
- package/lib/_shared/esm/{Author-CJQFrQM9.mjs → Author-CLMgH9ES.mjs} +2 -1
- package/lib/_shared/esm/{SectionHeading-BskdQ2Tt.mjs → SectionHeading-DSwsdNSp.mjs} +2 -1
- package/lib/_shared/esm/{ThumbnailSignpost-CBSdQiHw.mjs → ThumbnailSignpost-BtaHAB0h.mjs} +2 -1
- package/lib/_shared/esm/{VideoCardThumbnail-VfOKmPCv.mjs → VideoCardThumbnail-Tbh7Xi-X.mjs} +2 -1
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +25 -0
- package/lib/_shared/esm/{filter-attrs-D-1kWaCP.mjs → tslib.es6-BVXMhEem.mjs} +1 -25
- package/lib/index.cjs +207 -135
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +66 -4
- package/lib/index.d.mts +66 -4
- package/lib/index.mjs +207 -136
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/ActionTile/ActionTile.module.css +1 -0
- package/src/components/ActionTile/ActionTile.tsx +11 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +7 -0
- package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.module.css +92 -0
- package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.tsx +119 -0
- package/src/components/BusinessSegmentSwitcher/helpers/renderBusinessSegmentSwitcherCarousel.tsx +45 -0
- package/src/components/BusinessSegmentSwitcher/helpers/renderCard.tsx +17 -0
- package/src/components/BusinessSegmentSwitcher/index.ts +9 -0
- package/src/components/BusinessSegmentSwitcher/types/types.ts +45 -0
- package/src/components/Highlights/Highlights.tsx +2 -1
- package/src/components/LinkTile/LinkTile.module.css +8 -4
- package/src/components/LinkTile/LinkTile.tsx +1 -2
- package/src/components/index.ts +1 -0
- package/versions.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
|
|
2
|
-
> @arc-ui/community-components@3.
|
|
2
|
+
> @arc-ui/community-components@3.6.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
|
-
Browserslist: browsers data (caniuse-lite) is
|
|
5
|
+
Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
|
|
6
6
|
npx update-browserslist-db@latest
|
|
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.1s[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
15
|
[1m@arc-ui/components/Avatar[22m (imported by "lib/types/components/Author/Author.d.ts")
|
|
16
|
-
[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/
|
|
16
|
+
[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/BannerWithTabs/BannerWithTabs.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/link-section.d.ts" and "lib/types/components/ArticleSidebar/types/topic.d.ts")
|
|
17
17
|
[1m@arc-ui/components/VideoPlayer[22m (imported by "lib/types/components/CopyLead/CopyLead.d.ts" and "lib/types/components/FeaturePost/FeaturePost.d.ts")
|
|
18
18
|
[1m@arc-ui/components/Download[22m (imported by "lib/types/components/DownloadList/DownloadList.d.ts")
|
|
19
|
-
[1m@arc-ui/components/
|
|
19
|
+
[1m@arc-ui/components/ButtonV2[22m (imported by "lib/types/components/Highlights/Highlights.d.ts" and "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
20
|
+
[1m@arc-ui/components/MediaCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts")
|
|
20
21
|
[1m@arc-ui/components/ImpactCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
21
|
-
[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")
|
|
22
|
-
[1m@arc-ui/components/TypographyCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts")
|
|
23
|
-
[1m@arc-ui/components/ButtonV2[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/Highlights/Highlights.d.ts")
|
|
22
|
+
[1m@arc-ui/components/InformationCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts", "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts" and "lib/types/components/ProductNavigation/types/product-list.d.ts")
|
|
23
|
+
[1m@arc-ui/components/TypographyCard[22m (imported by "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts")
|
|
24
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/ThumbnailSignpost/ThumbnailSignpost.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/
|
|
25
|
+
[1m@arc-ui/components/Image[22m (imported by "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/ThumbnailSignpost/ThumbnailSignpost.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")
|
|
26
26
|
[1m@arc-ui/components/Disclosure[22m (imported by "lib/types/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts")
|
|
27
27
|
[1m@arc-ui/components/Tag[22m (imported by "lib/types/components/ArticleSidebar/types/topic.d.ts")
|
|
28
|
+
[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")
|
|
28
29
|
[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/FeaturePost/types/feature-post-cta-footer.d.ts" and "lib/types/components/CopyLead/types/copy-lead-button.d.ts")
|
|
30
30
|
[1mreact-player/types[22m (imported by "lib/types/internal/VideoCardPlayer/VideoCardPlayer.d.ts" and "lib/types/internal/VideoCardPlayer/types/player-props.d.ts")
|
|
31
31
|
[1m@arc-ui/components/Visible[22m (imported by "lib/types/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.d.ts")
|
|
32
|
-
[32mcreated [1mlib/index.d.mts, lib/index.d.cts[22m in [
|
|
32
|
+
[32mcreated [1mlib/index.d.mts, lib/index.d.cts[22m in [1m199ms[22m[39m
|
|
33
33
|
[36m
|
|
34
|
-
[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/Highlights/index.ts, ./src/components/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts[22m → [1mlib[22m...[39m
|
|
34
|
+
[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/BusinessSegmentSwitcher/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/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts[22m → [1mlib[22m...[39m
|
|
35
35
|
[1m[33m(!) ../../node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_ujikj3aqrwufkk63gma7dosk7u/node_modules/react-player/dist/index.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_ujikj3aqrwufkk63gma7dosk7u/node_modules/react-player/dist/index.js" was ignored.[39m[22m
|
|
36
36
|
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_ujikj3aqrwufkk63gma7dosk7u/node_modules/react-player/dist/index.js:1:0[22m
|
|
37
37
|
[90m1: "use client";
|
|
@@ -44,8 +44,8 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
|
|
|
44
44
|
^
|
|
45
45
|
2:
|
|
46
46
|
3: // dist/react.ts[39m
|
|
47
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
48
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
47
|
+
[1m[33m(!) ../../node_modules/.pnpm/hls-video-element@1.5.10/node_modules/hls-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/hls-video-element@1.5.10/node_modules/hls-video-element/dist/react.js" was ignored.[39m[22m
|
|
48
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/hls-video-element@1.5.10/node_modules/hls-video-element/dist/react.js:1:0[22m
|
|
49
49
|
[90m1: "use client";
|
|
50
50
|
^
|
|
51
51
|
2:
|
|
@@ -56,8 +56,8 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
|
|
|
56
56
|
^
|
|
57
57
|
2:
|
|
58
58
|
3: // dist/react.ts[39m
|
|
59
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
60
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
59
|
+
[1m[33m(!) ../../node_modules/.pnpm/spotify-audio-element@1.0.4/node_modules/spotify-audio-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/spotify-audio-element@1.0.4/node_modules/spotify-audio-element/dist/react.js" was ignored.[39m[22m
|
|
60
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/spotify-audio-element@1.0.4/node_modules/spotify-audio-element/dist/react.js:1:0[22m
|
|
61
61
|
[90m1: "use client";
|
|
62
62
|
^
|
|
63
63
|
2:
|
|
@@ -68,20 +68,20 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
|
|
|
68
68
|
^
|
|
69
69
|
2:
|
|
70
70
|
3: // dist/react.ts[39m
|
|
71
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
72
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
71
|
+
[1m[33m(!) ../../node_modules/.pnpm/tiktok-video-element@0.1.2/node_modules/tiktok-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/tiktok-video-element@0.1.2/node_modules/tiktok-video-element/dist/react.js" was ignored.[39m[22m
|
|
72
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/tiktok-video-element@0.1.2/node_modules/tiktok-video-element/dist/react.js:1:0[22m
|
|
73
73
|
[90m1: "use client";
|
|
74
74
|
^
|
|
75
75
|
2:
|
|
76
76
|
3: // dist/react.ts[39m
|
|
77
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
78
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
77
|
+
[1m[33m(!) ../../node_modules/.pnpm/wistia-video-element@1.3.6/node_modules/wistia-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/wistia-video-element@1.3.6/node_modules/wistia-video-element/dist/react.js" was ignored.[39m[22m
|
|
78
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/wistia-video-element@1.3.6/node_modules/wistia-video-element/dist/react.js:1:0[22m
|
|
79
79
|
[90m1: "use client";
|
|
80
80
|
^
|
|
81
81
|
2:
|
|
82
82
|
3: // dist/react.ts[39m
|
|
83
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
84
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
83
|
+
[1m[33m(!) ../../node_modules/.pnpm/vimeo-video-element@1.7.0/node_modules/vimeo-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/vimeo-video-element@1.7.0/node_modules/vimeo-video-element/dist/react.js" was ignored.[39m[22m
|
|
84
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/vimeo-video-element@1.7.0/node_modules/vimeo-video-element/dist/react.js:1:0[22m
|
|
85
85
|
[90m1: "use client";
|
|
86
86
|
^
|
|
87
87
|
2:
|
|
@@ -91,17 +91,17 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
|
|
|
91
91
|
[90m1: "use client";import m,{useState as pe,useRef as Ee}from"react";import{MaxResolution as Le,MinResolution as Ae,Renditi...
|
|
92
92
|
^
|
|
93
93
|
2: //# sourceMappingURL=index.mjs.map[39m
|
|
94
|
-
[32mcreated [1mlib[22m in [
|
|
94
|
+
[32mcreated [1mlib[22m in [1m10.1s[22m[39m
|
|
95
95
|
[36m
|
|
96
|
-
[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/Highlights/index.ts, ./src/components/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts[22m → [1mlib[22m...[39m
|
|
96
|
+
[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/BusinessSegmentSwitcher/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/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts[22m → [1mlib[22m...[39m
|
|
97
97
|
[1m[33m(!) ../../node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_ujikj3aqrwufkk63gma7dosk7u/node_modules/react-player/dist/index.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_ujikj3aqrwufkk63gma7dosk7u/node_modules/react-player/dist/index.js" was ignored.[39m[22m
|
|
98
98
|
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/react-player@3.4.0_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_ujikj3aqrwufkk63gma7dosk7u/node_modules/react-player/dist/index.js:1:0[22m
|
|
99
99
|
[90m1: "use client";
|
|
100
100
|
^
|
|
101
101
|
2: import players from "./players.js";
|
|
102
102
|
3: import { createReactPlayer } from "./ReactPlayer.js";[39m
|
|
103
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
104
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
103
|
+
[1m[33m(!) ../../node_modules/.pnpm/dash-video-element@0.3.1_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cm_wdp7ojayoebclcyse67qoschgq/node_modules/dash-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/dash-video-element@0.3.1_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cm_wdp7ojayoebclcyse67qoschgq/node_modules/dash-video-element/dist/react.js" was ignored.[39m[22m
|
|
104
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/dash-video-element@0.3.1_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cm_wdp7ojayoebclcyse67qoschgq/node_modules/dash-video-element/dist/react.js:1:0[22m
|
|
105
105
|
[90m1: "use client";
|
|
106
106
|
^
|
|
107
107
|
2:
|
|
@@ -112,26 +112,26 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
|
|
|
112
112
|
^
|
|
113
113
|
2:
|
|
114
114
|
3: // dist/react.ts[39m
|
|
115
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
116
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
115
|
+
[1m[33m(!) ../../node_modules/.pnpm/youtube-video-element@1.9.0/node_modules/youtube-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/youtube-video-element@1.9.0/node_modules/youtube-video-element/dist/react.js" was ignored.[39m[22m
|
|
116
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/youtube-video-element@1.9.0/node_modules/youtube-video-element/dist/react.js:1:0[22m
|
|
117
117
|
[90m1: "use client";
|
|
118
118
|
^
|
|
119
119
|
2:
|
|
120
120
|
3: // dist/react.ts[39m
|
|
121
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
122
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
121
|
+
[1m[33m(!) ../../node_modules/.pnpm/spotify-audio-element@1.0.4/node_modules/spotify-audio-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/spotify-audio-element@1.0.4/node_modules/spotify-audio-element/dist/react.js" was ignored.[39m[22m
|
|
122
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/spotify-audio-element@1.0.4/node_modules/spotify-audio-element/dist/react.js:1:0[22m
|
|
123
123
|
[90m1: "use client";
|
|
124
124
|
^
|
|
125
125
|
2:
|
|
126
126
|
3: // dist/react.ts[39m
|
|
127
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
128
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
127
|
+
[1m[33m(!) ../../node_modules/.pnpm/wistia-video-element@1.3.6/node_modules/wistia-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/wistia-video-element@1.3.6/node_modules/wistia-video-element/dist/react.js" was ignored.[39m[22m
|
|
128
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/wistia-video-element@1.3.6/node_modules/wistia-video-element/dist/react.js:1:0[22m
|
|
129
129
|
[90m1: "use client";
|
|
130
130
|
^
|
|
131
131
|
2:
|
|
132
132
|
3: // dist/react.ts[39m
|
|
133
|
-
[1m[33m(!) ../../node_modules/.pnpm/
|
|
134
|
-
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/
|
|
133
|
+
[1m[33m(!) ../../node_modules/.pnpm/vimeo-video-element@1.7.0/node_modules/vimeo-video-element/dist/react.js (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/vimeo-video-element@1.7.0/node_modules/vimeo-video-element/dist/react.js" was ignored.[39m[22m
|
|
134
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/vimeo-video-element@1.7.0/node_modules/vimeo-video-element/dist/react.js:1:0[22m
|
|
135
135
|
[90m1: "use client";
|
|
136
136
|
^
|
|
137
137
|
2:
|
|
@@ -153,11 +153,11 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
|
|
|
153
153
|
[90m1: "use client";import m,{useState as pe,useRef as Ee}from"react";import{MaxResolution as Le,MinResolution as Ae,Renditi...
|
|
154
154
|
^
|
|
155
155
|
2: //# sourceMappingURL=index.mjs.map[39m
|
|
156
|
-
[32mcreated [1mlib[22m in [
|
|
157
|
-
Browserslist: browsers data (caniuse-lite) is
|
|
156
|
+
[32mcreated [1mlib[22m in [1m9.3s[22m[39m
|
|
157
|
+
Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
|
|
158
158
|
npx update-browserslist-db@latest
|
|
159
159
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
160
160
|
|
|
161
|
-
> @arc-ui/community-components@3.
|
|
161
|
+
> @arc-ui/community-components@3.6.0 build:clean /builds/enterprise/frontend/arc-community/packages/components
|
|
162
162
|
> rimraf ./lib/types ./lib/styles.js ./lib/index.js ./lib/index.js.map
|
|
163
163
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @arc-ui/community-components
|
|
2
2
|
|
|
3
|
+
## 3.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c61d7d8: Added headingLevel to BannerWithTabs
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- c61d7d8: Add `target` to `HighlightsCTAProps` from `ButtonV2Props`, allowing the CTA button to open links in a new tab.
|
|
12
|
+
|
|
13
|
+
## 3.5.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 9a00e8d: feat: add BusinessSegmentSwitcher component
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 1f078fc: Add activeIcon for BrandIcon on active state for ActionTile, added onClick props for LinkTile
|
|
22
|
+
|
|
3
23
|
## 3.4.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Accordion = require('../_shared/cjs/Accordion-
|
|
4
|
-
require('../_shared/cjs/
|
|
3
|
+
var Accordion = require('../_shared/cjs/Accordion-DfNGOjTm.cjs');
|
|
4
|
+
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
5
5
|
require('react');
|
|
6
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
7
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
7
8
|
require('@arc-ui/components/Heading');
|
|
8
9
|
require('@arc-ui/components/Text');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { A as Accordion } from '../_shared/esm/Accordion-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { A as Accordion } from '../_shared/esm/Accordion-DSRlkcXi.mjs';
|
|
2
|
+
import '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
5
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
5
6
|
import '@arc-ui/components/Heading';
|
|
6
7
|
import '@arc-ui/components/Text';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
7
|
var Icon = require('@arc-ui/components/Icon');
|
|
7
8
|
|
|
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"};
|
|
@@ -17,18 +18,19 @@ const BtIconTickAlt2Px =
|
|
|
17
18
|
|
|
18
19
|
var ActionTile = function (_a) {
|
|
19
20
|
var _b;
|
|
20
|
-
var icon = _a.icon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props =
|
|
21
|
+
var icon = _a.icon, activeIcon = _a.activeIcon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = tslib_es6.__rest(_a, ["icon", "activeIcon", "heading", "isActive", "onClick", "className"]);
|
|
21
22
|
var tileClasses = index.classNames(styles["action-tile"], (_b = {},
|
|
22
23
|
_b[styles["action-tile--active"]] = isActive,
|
|
23
24
|
_b), className);
|
|
25
|
+
var displayIcon = isActive && activeIcon ? activeIcon : icon;
|
|
24
26
|
var content = (React.createElement(React.Fragment, null,
|
|
25
27
|
React.createElement("div", { className: styles["action-tile-content"] },
|
|
26
|
-
|
|
27
|
-
React.createElement(Icon.Icon, { icon:
|
|
28
|
+
displayIcon && (React.createElement("div", { className: styles["action-tile-icon"] },
|
|
29
|
+
React.createElement(Icon.Icon, { icon: displayIcon, size: 48 }))),
|
|
28
30
|
React.createElement("h3", { className: styles["action-tile-heading"] }, heading)),
|
|
29
31
|
isActive && (React.createElement("div", { className: styles["action-tile-tick"] },
|
|
30
32
|
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
31
|
-
return (React.createElement("div",
|
|
33
|
+
return (React.createElement("div", tslib_es6.__assign({ className: tileClasses, onClick: onClick }, filterAttrs.filterAttrs(props)), content));
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
exports.ActionTile = ActionTile;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
5
|
import { Icon } from '@arc-ui/components/Icon';
|
|
5
6
|
|
|
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"};
|
|
@@ -15,14 +16,15 @@ const BtIconTickAlt2Px =
|
|
|
15
16
|
|
|
16
17
|
var ActionTile = function (_a) {
|
|
17
18
|
var _b;
|
|
18
|
-
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"]);
|
|
19
|
+
var icon = _a.icon, activeIcon = _a.activeIcon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = __rest(_a, ["icon", "activeIcon", "heading", "isActive", "onClick", "className"]);
|
|
19
20
|
var tileClasses = classNames(styles["action-tile"], (_b = {},
|
|
20
21
|
_b[styles["action-tile--active"]] = isActive,
|
|
21
22
|
_b), className);
|
|
23
|
+
var displayIcon = isActive && activeIcon ? activeIcon : icon;
|
|
22
24
|
var content = (React__default.createElement(React__default.Fragment, null,
|
|
23
25
|
React__default.createElement("div", { className: styles["action-tile-content"] },
|
|
24
|
-
|
|
25
|
-
React__default.createElement(Icon, { icon:
|
|
26
|
+
displayIcon && (React__default.createElement("div", { className: styles["action-tile-icon"] },
|
|
27
|
+
React__default.createElement(Icon, { icon: displayIcon, size: 48 }))),
|
|
26
28
|
React__default.createElement("h3", { className: styles["action-tile-heading"] }, heading)),
|
|
27
29
|
isActive && (React__default.createElement("div", { className: styles["action-tile-tick"] },
|
|
28
30
|
React__default.createElement(Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ActionTile-module_action-tile__JPwGb{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;width:230px;height:164px;padding:var(--sem-space-padding-110);gap:var(--sem-space-padding-70);border-radius:var(--sem-border-radius-xl);border:var(--sem-border-width-xxs) solid var(--sem-color-border-secondary-light-minimal);background:var(--sem-color-bg-secondary-light-default);text-decoration:none;cursor:pointer;transition:border-color 0.2s ease,box-shadow 0.2s ease;position:relative;isolation:isolate;overflow:visible}.ActionTile-module_action-tile-content__ZkgHc{display:flex;flex-direction:column;gap:var(--sem-space-padding-60);flex:1;align-items:flex-start;align-self:stretch}.ActionTile-module_action-tile-icon__PY1EN{display:flex;align-items:center;justify-content:flex-start;width:48px;height:48px;color:var(--sem-color-fg-secondary-light-default);transition:color 0.2s ease}.ActionTile-module_action-tile-heading__Uxdu9{font-family:var(--sem-font-family-heading);font-size:var(--sem-font-size-125);font-weight:var(--sem-font-weight-semi);line-height:var(--sem-line-height-base-scale-m);letter-spacing:0;color:var(--sem-color-fg-secondary-light-default);margin:0;transition:color 0.2s ease;width:100%;word-wrap:break-word;word-wrap:break-word;align-self:stretch;flex-grow:1}.ActionTile-module_action-tile--active__-aWze{background:var(--sem-color-bg-primary-light-subtle-alt);border-color:var(--sem-color-fg-primary-light-minimal);box-shadow:none}.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:var(--sem-color-fg-primary-light-minimal)}.ActionTile-module_action-tile-tick__vhsJE{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--sem-border-radius-l);background:var(--sem-color-fg-primary-light-minimal);color:var(--sem-color-fg-secondary-light-alt);flex-shrink:0;position:absolute;top:-4px;right:-4px;z-index:1}.ActionTile-module_action-tile__JPwGb:hover{border-color:var(--button-v2-colors-light-text-hover);box-shadow:0 0 0 1px var(--button-v2-colors-light-text-hover)}.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:var(--button-v2-colors-light-text-hover)}.ActionTile-module_action-tile--active__-aWze:hover{background:var(--sem-color-bg-primary-light-subtle-alt);border-color:var(--sem-color-fg-primary-light-minimal);box-shadow:0 0 0 1px var(--sem-color-fg-primary-light-minimal)}.ActionTile-module_action-tile--active__-aWze:hover .ActionTile-module_action-tile-heading__Uxdu9,.ActionTile-module_action-tile--active__-aWze:hover .ActionTile-module_action-tile-icon__PY1EN{color:var(--sem-color-fg-primary-light-minimal)}
|
|
1
|
+
.ActionTile-module_action-tile__JPwGb{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;width:230px;height:164px;min-height:132px;padding:var(--sem-space-padding-110);gap:var(--sem-space-padding-70);border-radius:var(--sem-border-radius-xl);border:var(--sem-border-width-xxs) solid var(--sem-color-border-secondary-light-minimal);background:var(--sem-color-bg-secondary-light-default);text-decoration:none;cursor:pointer;transition:border-color 0.2s ease,box-shadow 0.2s ease;position:relative;isolation:isolate;overflow:visible}.ActionTile-module_action-tile-content__ZkgHc{display:flex;flex-direction:column;gap:var(--sem-space-padding-60);flex:1;align-items:flex-start;align-self:stretch}.ActionTile-module_action-tile-icon__PY1EN{display:flex;align-items:center;justify-content:flex-start;width:48px;height:48px;color:var(--sem-color-fg-secondary-light-default);transition:color 0.2s ease}.ActionTile-module_action-tile-heading__Uxdu9{font-family:var(--sem-font-family-heading);font-size:var(--sem-font-size-125);font-weight:var(--sem-font-weight-semi);line-height:var(--sem-line-height-base-scale-m);letter-spacing:0;color:var(--sem-color-fg-secondary-light-default);margin:0;transition:color 0.2s ease;width:100%;word-wrap:break-word;word-wrap:break-word;align-self:stretch;flex-grow:1}.ActionTile-module_action-tile--active__-aWze{background:var(--sem-color-bg-primary-light-subtle-alt);border-color:var(--sem-color-fg-primary-light-minimal);box-shadow:none}.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:var(--sem-color-fg-primary-light-minimal)}.ActionTile-module_action-tile-tick__vhsJE{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--sem-border-radius-l);background:var(--sem-color-fg-primary-light-minimal);color:var(--sem-color-fg-secondary-light-alt);flex-shrink:0;position:absolute;top:-4px;right:-4px;z-index:1}.ActionTile-module_action-tile__JPwGb:hover{border-color:var(--button-v2-colors-light-text-hover);box-shadow:0 0 0 1px var(--button-v2-colors-light-text-hover)}.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:var(--button-v2-colors-light-text-hover)}.ActionTile-module_action-tile--active__-aWze:hover{background:var(--sem-color-bg-primary-light-subtle-alt);border-color:var(--sem-color-fg-primary-light-minimal);box-shadow:0 0 0 1px var(--sem-color-fg-primary-light-minimal)}.ActionTile-module_action-tile--active__-aWze:hover .ActionTile-module_action-tile-heading__Uxdu9,.ActionTile-module_action-tile--active__-aWze:hover .ActionTile-module_action-tile-icon__PY1EN{color:var(--sem-color-fg-primary-light-minimal)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
6
|
var Heading = require('@arc-ui/components/Heading');
|
|
@@ -11,7 +11,8 @@ var Link = require('@arc-ui/components/Link');
|
|
|
11
11
|
var Tag = require('@arc-ui/components/Tag');
|
|
12
12
|
var Toast = require('@arc-ui/components/Toast');
|
|
13
13
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
14
|
-
var Author = require('../_shared/cjs/Author-
|
|
14
|
+
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
15
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
15
16
|
require('@arc-ui/components/Grid');
|
|
16
17
|
require('@arc-ui/components/Avatar');
|
|
17
18
|
|
|
@@ -54,12 +55,12 @@ var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"
|
|
|
54
55
|
*/
|
|
55
56
|
var ArticleSidebar = function (_a) {
|
|
56
57
|
var _b;
|
|
57
|
-
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection, props =
|
|
58
|
+
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection, props = tslib_es6.__rest(_a, ["author", "aboutSection", "topics", "share", "additionalContent", "linkSection"]);
|
|
58
59
|
var id = React.useId();
|
|
59
60
|
var _c = React.useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
60
61
|
var url = location.href;
|
|
61
|
-
var copyTextToClipBoard = function () { return
|
|
62
|
-
return
|
|
62
|
+
var copyTextToClipBoard = function () { return tslib_es6.__awaiter(void 0, void 0, void 0, function () {
|
|
63
|
+
return tslib_es6.__generator(this, function (_a) {
|
|
63
64
|
switch (_a.label) {
|
|
64
65
|
case 0: return [4 /*yield*/, navigator.clipboard.writeText(url)];
|
|
65
66
|
case 1:
|
|
@@ -70,7 +71,7 @@ var ArticleSidebar = function (_a) {
|
|
|
70
71
|
});
|
|
71
72
|
}); };
|
|
72
73
|
var shareButtons = share
|
|
73
|
-
?
|
|
74
|
+
? tslib_es6.__spreadArray(tslib_es6.__spreadArray([
|
|
74
75
|
{
|
|
75
76
|
isButton: true,
|
|
76
77
|
onClick: copyTextToClipBoard,
|
|
@@ -101,12 +102,12 @@ var ArticleSidebar = function (_a) {
|
|
|
101
102
|
: []), true) : [];
|
|
102
103
|
var hasTopContent = Boolean(author || aboutSection || additionalContent);
|
|
103
104
|
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
104
|
-
return (React.createElement("div",
|
|
105
|
+
return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
|
|
105
106
|
React.createElement("div", { className: index.classNames((_b = {},
|
|
106
107
|
_b[styles.textContent] = hasTopContent,
|
|
107
108
|
_b)) },
|
|
108
109
|
author && (React.createElement(React.Fragment, null,
|
|
109
|
-
React.createElement(Author.Author,
|
|
110
|
+
React.createElement(Author.Author, tslib_es6.__assign({}, author, { avatar: tslib_es6.__assign(tslib_es6.__assign({}, author.avatar), { size: "xl" }) })))),
|
|
110
111
|
aboutSection && (React.createElement(React.Fragment, null,
|
|
111
112
|
author && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
112
113
|
React.createElement(Heading.Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
@@ -137,7 +138,7 @@ var ArticleSidebar = function (_a) {
|
|
|
137
138
|
linkSection && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
138
139
|
React.createElement(Heading.Heading, { level: topics.headingLevel }, topics.heading),
|
|
139
140
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
140
|
-
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag.Tag,
|
|
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))); })))),
|
|
141
142
|
share && (React.createElement(React.Fragment, null,
|
|
142
143
|
(linkSection || topics) && (React.createElement("div", { "data-testid": "links-topics-content-rule" },
|
|
143
144
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, b as __spreadArray, a as __assign,
|
|
1
|
+
import { _ as __rest, b as __spreadArray, a as __assign, c as __awaiter, d as __generator } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default, { useId, useState } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
4
|
import { Heading } from '@arc-ui/components/Heading';
|
|
@@ -9,7 +9,8 @@ import { Link } from '@arc-ui/components/Link';
|
|
|
9
9
|
import { Tag } from '@arc-ui/components/Tag';
|
|
10
10
|
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
11
11
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
12
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
12
|
+
import { A as Author } from '../_shared/esm/Author-CLMgH9ES.mjs';
|
|
13
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
13
14
|
import '@arc-ui/components/Grid';
|
|
14
15
|
import '@arc-ui/components/Avatar';
|
|
15
16
|
|
package/lib/Author/Author.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Author = require('../_shared/cjs/Author-
|
|
4
|
-
require('../_shared/cjs/
|
|
3
|
+
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
4
|
+
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
5
5
|
require('react');
|
|
6
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
7
|
require('@arc-ui/components/Grid');
|
|
7
8
|
require('@arc-ui/components/Avatar');
|
|
8
9
|
require('@arc-ui/components/Heading');
|
package/lib/Author/Author.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { A as Author } from '../_shared/esm/Author-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { A as Author } from '../_shared/esm/Author-CLMgH9ES.mjs';
|
|
2
|
+
import '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
5
|
import '@arc-ui/components/Grid';
|
|
5
6
|
import '@arc-ui/components/Avatar';
|
|
6
7
|
import '@arc-ui/components/Heading';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
6
|
var TabbedBanner = require('@arc-ui/components/TabbedBanner');
|
|
7
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
7
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
8
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
8
9
|
require('@arc-ui/components/Text');
|
|
9
10
|
require('@arc-ui/components/VerticalSpace');
|
|
10
11
|
require('@arc-ui/components/Image');
|
|
@@ -14,12 +15,12 @@ var styles = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithT
|
|
|
14
15
|
|
|
15
16
|
var BannerWithTabs = function (_a) {
|
|
16
17
|
var _b;
|
|
17
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM, props =
|
|
18
|
-
return (React.createElement("div",
|
|
18
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM, props = tslib_es6.__rest(_a, ["tabs", "defaultValue", "heading", "headingLevel", "content", "id", "isHeadingWordWrap", "alignTypography", "minHeight", "minHeightM"]);
|
|
19
|
+
return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
|
|
19
20
|
React.createElement("div", { className: index.classNames((_b = {},
|
|
20
21
|
_b[styles.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
21
22
|
_b)) },
|
|
22
|
-
React.createElement(SectionHeading.SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
23
|
+
React.createElement(SectionHeading.SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, headingLevel: headingLevel, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
23
24
|
React.createElement(TabbedBanner.TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
24
25
|
};
|
|
25
26
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
4
|
import { TabbedBanner } from '@arc-ui/components/TabbedBanner';
|
|
5
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
5
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DSwsdNSp.mjs';
|
|
6
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
6
7
|
import '@arc-ui/components/Text';
|
|
7
8
|
import '@arc-ui/components/VerticalSpace';
|
|
8
9
|
import '@arc-ui/components/Image';
|
|
@@ -12,12 +13,12 @@ var styles = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithT
|
|
|
12
13
|
|
|
13
14
|
var BannerWithTabs = function (_a) {
|
|
14
15
|
var _b;
|
|
15
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM, props = __rest(_a, ["tabs", "defaultValue", "heading", "content", "id", "isHeadingWordWrap", "alignTypography", "minHeight", "minHeightM"]);
|
|
16
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM, props = __rest(_a, ["tabs", "defaultValue", "heading", "headingLevel", "content", "id", "isHeadingWordWrap", "alignTypography", "minHeight", "minHeightM"]);
|
|
16
17
|
return (React__default.createElement("div", __assign({}, filterAttrs(props)),
|
|
17
18
|
React__default.createElement("div", { className: classNames((_b = {},
|
|
18
19
|
_b[styles.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
19
20
|
_b)) },
|
|
20
|
-
React__default.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
21
|
+
React__default.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, headingLevel: headingLevel, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
21
22
|
React__default.createElement(TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
22
23
|
};
|
|
23
24
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
|
+
var ContentSwitcher = require('@arc-ui/components/ContentSwitcher');
|
|
7
|
+
var ContentSwitcherDropdown = require('@arc-ui/components/ContentSwitcherDropdown');
|
|
8
|
+
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
9
|
+
var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
10
|
+
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
11
|
+
var Carousel = require('@arc-ui/components/Carousel');
|
|
12
|
+
|
|
13
|
+
var styles = {"contentWrapper":"BusinessSegmentSwitcher-module_contentWrapper__YKEjS","cardWrapper":"BusinessSegmentSwitcher-module_cardWrapper__eGDJ-","cardCol":"BusinessSegmentSwitcher-module_cardCol__jsySH","businessSegmentSwitcherDesktop":"BusinessSegmentSwitcher-module_businessSegmentSwitcherDesktop__oBvzS","businessSegmentSwitcher":"BusinessSegmentSwitcher-module_businessSegmentSwitcher__Sae5K","desktopCarousel":"BusinessSegmentSwitcher-module_desktopCarousel__xW3HN","businessSegmentSwitcherMobile":"BusinessSegmentSwitcher-module_businessSegmentSwitcherMobile__PSFyi"};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Renders either an InformationCard or a contained MediaCard based on the card type.
|
|
17
|
+
*/
|
|
18
|
+
var renderCard = function (card) {
|
|
19
|
+
if (card.type === "information") {
|
|
20
|
+
return React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, card));
|
|
21
|
+
}
|
|
22
|
+
if (card.type === "media") {
|
|
23
|
+
return React.createElement(MediaCard.MediaCard, tslib_es6.__assign({}, card, { isContained: true }));
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Renders a responsive carousel containing the bento grid cards for mobile and tablet viewports.
|
|
30
|
+
*/
|
|
31
|
+
var renderBusinessSegmentSwitcherCarousel = function (_a) {
|
|
32
|
+
var content = _a.content, label = _a.label;
|
|
33
|
+
return (React.createElement(Carousel.Carousel, { overflow: "visible", behavior: "adaptive", responsive: {
|
|
34
|
+
xs: { itemsPerSlide: 1 },
|
|
35
|
+
s: { itemsPerSlide: 2 },
|
|
36
|
+
} },
|
|
37
|
+
React.createElement("div", { className: styles.cardWrapper }, renderCard(content.card1)),
|
|
38
|
+
React.createElement("div", { className: styles.cardWrapper }, renderCard(content.card2)),
|
|
39
|
+
content.card3 && (React.createElement("div", { className: styles.cardWrapper },
|
|
40
|
+
React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, content.card3)))),
|
|
41
|
+
React.createElement("div", { className: styles.cardWrapper },
|
|
42
|
+
React.createElement(TypographyCard.TypographyCard, { heading: "All ".concat(label, " solutions"), label: content.card4.label, url: content.card4.url }))));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* BusinessSegmentSwitcher displays tabbed content with a bento grid layout made up of 3 - 4 cards.
|
|
47
|
+
* Renders as tabs on desktop and a dropdown with carousel on mobile (below 1024px).
|
|
48
|
+
*/
|
|
49
|
+
var BusinessSegmentSwitcher = function (_a) {
|
|
50
|
+
var _b, _c;
|
|
51
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, props = tslib_es6.__rest(_a, ["tabs", "defaultValue"]);
|
|
52
|
+
var initialTab = (_c = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : "";
|
|
53
|
+
var _d = React.useState(initialTab), selectedTab = _d[0], setSelectedTab = _d[1];
|
|
54
|
+
return (React.createElement("div", tslib_es6.__assign({ className: styles.businessSegmentSwitcher }, filterAttrs.filterAttrs(props)),
|
|
55
|
+
React.createElement("div", { className: styles.businessSegmentSwitcherDesktop },
|
|
56
|
+
React.createElement(ContentSwitcher.ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
57
|
+
React.createElement(ContentSwitcher.ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
|
|
58
|
+
var label = _a.label, value = _a.value;
|
|
59
|
+
return (React.createElement(ContentSwitcher.ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
60
|
+
})),
|
|
61
|
+
tabs.map(function (_a, index) {
|
|
62
|
+
var value = _a.value, content = _a.content, label = _a.label;
|
|
63
|
+
return (React.createElement(ContentSwitcher.ContentSwitcherContent, { value: value, key: "".concat(index, "-").concat(value), hidden: value !== selectedTab },
|
|
64
|
+
React.createElement("div", { className: styles.contentWrapper },
|
|
65
|
+
React.createElement("div", { className: styles.desktopCarousel }, renderBusinessSegmentSwitcherCarousel({ content: content, label: label })),
|
|
66
|
+
renderCard(content.card1),
|
|
67
|
+
renderCard(content.card2),
|
|
68
|
+
React.createElement("div", { className: styles.cardCol },
|
|
69
|
+
content.card3 && React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, content.card3)),
|
|
70
|
+
React.createElement("div", null,
|
|
71
|
+
React.createElement(TypographyCard.TypographyCard, { heading: "All ".concat(label.toLowerCase(), " solutions"), text: content.card4.text, label: content.card4.label, url: content.card4.url }))))));
|
|
72
|
+
}))),
|
|
73
|
+
React.createElement("div", { className: styles.businessSegmentSwitcherMobile },
|
|
74
|
+
React.createElement(ContentSwitcherDropdown.ContentSwitcherDropdown, { isInset: true, value: selectedTab, tabs: tabs, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
75
|
+
var value = _a.value, content = _a.content, label = _a.label;
|
|
76
|
+
return (React.createElement(ContentSwitcherDropdown.ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
|
|
77
|
+
React.createElement("div", { className: styles.contentWrapper }, renderBusinessSegmentSwitcherCarousel({ content: content, label: label }))));
|
|
78
|
+
})))));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.BusinessSegmentSwitcher = BusinessSegmentSwitcher;
|