@arc-ui/community-components 0.1.0 → 1.0.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 +127 -7
- package/CHANGELOG.md +22 -0
- package/dist/Accordion/Accordion.cjs.js +9 -9
- package/dist/Accordion/Accordion.esm.js +7 -7
- package/dist/ArticleSidebar/ArticleSidebar.cjs.js +185 -0
- package/dist/ArticleSidebar/ArticleSidebar.esm.js +183 -0
- package/dist/ArticleSidebar/styles.css +1 -0
- package/dist/Author/Author.cjs.js +6 -7
- package/dist/Author/Author.esm.js +6 -7
- package/dist/BannerWithTabs/BannerWithTabs.cjs.js +15 -25
- package/dist/BannerWithTabs/BannerWithTabs.esm.js +16 -26
- package/dist/BannerWithTabs/styles.css +1 -1
- package/dist/CopyLead/CopyLead.cjs.js +25 -27
- package/dist/CopyLead/CopyLead.esm.js +15 -17
- package/dist/DownloadList/DownloadList.cjs.js +10 -9
- package/dist/DownloadList/DownloadList.esm.js +9 -8
- package/dist/FeaturePost/FeaturePost.cjs.js +28 -31
- package/dist/FeaturePost/FeaturePost.esm.js +21 -24
- package/dist/Highlights/Highlights.cjs.js +10 -10
- package/dist/Highlights/Highlights.esm.js +10 -10
- package/dist/ProductNavigation/ProductNavigation.cjs.js +86 -0
- package/dist/ProductNavigation/ProductNavigation.esm.js +84 -0
- package/dist/ProductNavigation/styles.css +1 -0
- package/dist/PromoListing/PromoListing.cjs.js +17 -17
- package/dist/PromoListing/PromoListing.esm.js +13 -13
- package/dist/Quote/Quote.cjs.js +8 -9
- package/dist/Quote/Quote.esm.js +6 -7
- package/dist/SectionHeading/SectionHeading.cjs.js +6 -6
- package/dist/SectionHeading/SectionHeading.esm.js +6 -6
- package/dist/SectionHeading/styles.css +1 -1
- package/dist/Statistics/Statistics.cjs.js +14 -14
- package/dist/Statistics/Statistics.esm.js +13 -13
- package/dist/Summary/Summary.cjs.js +7 -7
- package/dist/Summary/Summary.esm.js +7 -7
- package/dist/_shared/cjs/{Author-CAo-qryZ.js → Author-BXxxwh6E.js} +11 -12
- package/dist/_shared/cjs/SectionHeading-7IxNz67p.js +29 -0
- package/dist/_shared/cjs/filter-data-attrs-DlS_Fyr9.js +112 -0
- package/dist/_shared/cjs/{index.es-X428Cm3N.js → index.es-HAMLJhPd.js} +1 -1
- package/dist/_shared/esm/{Author-Bx-cE9Pz.js → Author-B8tJxqB8.js} +8 -9
- package/dist/_shared/esm/SectionHeading-Dz0GfXsP.js +27 -0
- package/dist/_shared/esm/filter-data-attrs-DAx-HNG5.js +106 -0
- package/dist/_shared/esm/{index.es-BzmvPxje.js → index.es-BI7la-9v.js} +2 -2
- package/dist/index.es.js +399 -127
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +400 -125
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/{components → cjs/components}/Accordion/Accordion.d.ts +1 -1
- package/dist/types/{components → cjs/components}/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +1 -1
- package/dist/types/cjs/components/ArticleSidebar/ArticleSidebar.d.ts +36 -0
- package/dist/types/cjs/components/ArticleSidebar/index.d.ts +1 -0
- package/dist/types/cjs/components/ArticleSidebar/types/link-section.d.ts +11 -0
- package/dist/types/cjs/components/ArticleSidebar/types/share-button.d.ts +8 -0
- package/dist/types/cjs/components/ArticleSidebar/types/share.d.ts +8 -0
- package/dist/types/cjs/components/ArticleSidebar/types/sidebar-author.d.ts +4 -0
- package/dist/types/cjs/components/ArticleSidebar/types/text-section.d.ts +6 -0
- package/dist/types/cjs/components/ArticleSidebar/types/topic.d.ts +7 -0
- package/dist/types/{components → cjs/components}/Author/Author.d.ts +1 -1
- package/dist/types/cjs/components/BannerWithTabs/BannerWithTabs.d.ts +42 -0
- package/dist/types/{components → cjs/components}/CopyLead/components/MediaContent/MediaContent.d.ts +1 -1
- package/dist/types/{components → cjs/components}/CopyLead/templates/Media/Media.d.ts +2 -2
- package/dist/types/cjs/components/CopyLead/types/copy-lead-list-item.d.ts +6 -0
- package/dist/types/cjs/components/DownloadList/DownloadList.d.ts +7 -0
- package/dist/types/{components → cjs/components}/FeaturePost/FeaturePost.d.ts +2 -2
- package/dist/types/{components → cjs/components}/FeaturePost/components/MediaContent/MediaContent.d.ts +1 -1
- package/dist/types/{components → cjs/components}/Highlights/Highlights.d.ts +1 -1
- package/dist/types/{components → cjs/components}/Highlights/components/HighlightItem/HighlightItem.d.ts +3 -5
- package/dist/types/cjs/components/Highlights/types/highlight-link.d.ts +5 -0
- package/dist/types/cjs/components/Highlights/types/highlight-list-item.d.ts +8 -0
- package/dist/types/{components → cjs/components}/Highlights/types/index.d.ts +1 -0
- package/dist/types/cjs/components/ProductNavigation/ProductNavigation.d.ts +49 -0
- package/dist/types/cjs/components/ProductNavigation/index.d.ts +2 -0
- package/dist/types/cjs/components/ProductNavigation/types/index.d.ts +1 -0
- package/dist/types/cjs/components/ProductNavigation/types/product-list.d.ts +6 -0
- package/dist/types/{components → cjs/components}/PromoListing/PromoListing.d.ts +5 -5
- package/dist/types/{components → cjs/components}/SectionHeading/SectionHeading.d.ts +6 -1
- package/dist/types/{components → cjs/components}/Summary/Summary.d.ts +1 -1
- package/dist/types/cjs/components/index.d.ts +14 -0
- package/dist/types/cjs/types/arc-icon.d.ts +2 -0
- package/dist/types/esm/components/Accordion/Accordion.d.ts +9 -0
- package/dist/types/esm/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +9 -0
- package/dist/types/esm/components/Accordion/index.d.ts +1 -0
- package/dist/types/esm/components/ArticleSidebar/ArticleSidebar.d.ts +36 -0
- package/dist/types/esm/components/ArticleSidebar/index.d.ts +1 -0
- package/dist/types/esm/components/ArticleSidebar/types/link-section.d.ts +11 -0
- package/dist/types/esm/components/ArticleSidebar/types/share-button.d.ts +8 -0
- package/dist/types/esm/components/ArticleSidebar/types/share.d.ts +8 -0
- package/dist/types/esm/components/ArticleSidebar/types/sidebar-author.d.ts +4 -0
- package/dist/types/esm/components/ArticleSidebar/types/text-section.d.ts +6 -0
- package/dist/types/esm/components/ArticleSidebar/types/topic.d.ts +7 -0
- package/dist/types/esm/components/Author/Author.d.ts +17 -0
- package/dist/types/esm/components/Author/index.d.ts +1 -0
- package/dist/types/esm/components/BannerWithTabs/BannerWithTabs.d.ts +42 -0
- package/dist/types/esm/components/BannerWithTabs/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/CopyLead.d.ts +42 -0
- package/dist/types/esm/components/CopyLead/components/Button/Button.d.ts +3 -0
- package/dist/types/esm/components/CopyLead/components/Button/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/Column/Column.d.ts +6 -0
- package/dist/types/esm/components/CopyLead/components/Column/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/Container/Container.d.ts +9 -0
- package/dist/types/esm/components/CopyLead/components/Container/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/IconList/IconList.d.ts +8 -0
- package/dist/types/esm/components/CopyLead/components/IconList/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/Image/Image.d.ts +3 -0
- package/dist/types/esm/components/CopyLead/components/Image/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/MediaContent/MediaContent.d.ts +9 -0
- package/dist/types/esm/components/CopyLead/components/MediaContent/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/templates/Content/Content.d.ts +10 -0
- package/dist/types/esm/components/CopyLead/templates/Content/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/templates/Media/Media.d.ts +16 -0
- package/dist/types/esm/components/CopyLead/templates/Media/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-button.d.ts +2 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-image.d.ts +4 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-list-item.d.ts +6 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-transcript-link.d.ts +6 -0
- package/dist/types/esm/components/CopyLead/types/index.d.ts +4 -0
- package/dist/types/esm/components/DownloadList/DownloadList.d.ts +7 -0
- package/dist/types/esm/components/DownloadList/index.d.ts +1 -0
- package/dist/types/esm/components/FeaturePost/FeaturePost.d.ts +45 -0
- package/dist/types/esm/components/FeaturePost/components/Image/Image.d.ts +3 -0
- package/dist/types/esm/components/FeaturePost/components/Image/index.d.ts +1 -0
- package/dist/types/esm/components/FeaturePost/components/MediaContent/MediaContent.d.ts +15 -0
- package/dist/types/esm/components/FeaturePost/index.d.ts +1 -0
- package/dist/types/esm/components/FeaturePost/types/feature-post-app-button-footer.d.ts +6 -0
- package/dist/types/esm/components/FeaturePost/types/feature-post-cta-footer.d.ts +7 -0
- package/dist/types/esm/components/FeaturePost/types/feature-post-image.d.ts +4 -0
- package/dist/types/esm/components/FeaturePost/types/index.d.ts +3 -0
- package/dist/types/esm/components/Highlights/Highlights.d.ts +17 -0
- package/dist/types/esm/components/Highlights/components/HighlightItem/HighlightItem.d.ts +12 -0
- package/dist/types/esm/components/Highlights/components/HighlightList/HighlightList.d.ts +9 -0
- package/dist/types/esm/components/Highlights/index.d.ts +1 -0
- package/dist/types/esm/components/Highlights/types/highlight-link.d.ts +5 -0
- package/dist/types/esm/components/Highlights/types/highlight-list-item.d.ts +8 -0
- package/dist/types/esm/components/Highlights/types/index.d.ts +2 -0
- package/dist/types/esm/components/ProductNavigation/ProductNavigation.d.ts +49 -0
- package/dist/types/esm/components/ProductNavigation/index.d.ts +2 -0
- package/dist/types/esm/components/ProductNavigation/types/index.d.ts +1 -0
- package/dist/types/esm/components/ProductNavigation/types/product-list.d.ts +6 -0
- package/dist/types/esm/components/PromoListing/PromoListing.d.ts +38 -0
- package/dist/types/esm/components/PromoListing/index.d.ts +1 -0
- package/dist/types/esm/components/Quote/Quote.d.ts +11 -0
- package/dist/types/esm/components/Quote/index.d.ts +1 -0
- package/dist/types/esm/components/SectionHeading/SectionHeading.d.ts +30 -0
- package/dist/types/esm/components/SectionHeading/index.d.ts +1 -0
- package/dist/types/esm/components/Statistics/Statistics.d.ts +7 -0
- package/dist/types/esm/components/Statistics/helpers/get-link-props.d.ts +2 -0
- package/dist/types/esm/components/Statistics/index.d.ts +1 -0
- package/dist/types/esm/components/Statistics/types/statistic-link.d.ts +6 -0
- package/dist/types/esm/components/Statistics/types/statistic.d.ts +8 -0
- package/dist/types/esm/components/Summary/Summary.d.ts +18 -0
- package/dist/types/esm/components/Summary/index.d.ts +1 -0
- package/dist/types/esm/components/index.d.ts +14 -0
- package/dist/types/esm/index.d.ts +1 -0
- package/dist/types/esm/types/arc-icon.d.ts +2 -0
- package/generate-versions.js +19 -0
- package/package.json +37 -34
- package/rollup.config.js +15 -1
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
- package/src/components/ArticleSidebar/ArticleSidebar.module.css +35 -0
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +219 -0
- package/src/components/ArticleSidebar/index.ts +1 -0
- package/src/components/ArticleSidebar/types/link-section.ts +12 -0
- package/src/components/ArticleSidebar/types/share-button.ts +9 -0
- package/src/components/ArticleSidebar/types/share.ts +9 -0
- package/src/components/ArticleSidebar/types/sidebar-author.ts +5 -0
- package/src/components/ArticleSidebar/types/text-section.ts +7 -0
- package/src/components/ArticleSidebar/types/topic.ts +8 -0
- package/src/components/Author/Author.tsx +10 -10
- package/src/components/BannerWithTabs/BannerWithTabs.module.css +22 -0
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +65 -51
- package/src/components/CopyLead/CopyLead.tsx +1 -1
- package/src/components/CopyLead/components/Button/Button.tsx +1 -1
- package/src/components/CopyLead/components/IconList/IconList.tsx +4 -4
- package/src/components/CopyLead/components/Image/Image.tsx +2 -4
- package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +3 -3
- package/src/components/CopyLead/templates/Content/Content.tsx +1 -1
- package/src/components/CopyLead/templates/Media/Media.tsx +7 -7
- package/src/components/CopyLead/types/copy-lead-list-item.ts +2 -2
- package/src/components/DownloadList/DownloadList.tsx +10 -13
- package/src/components/FeaturePost/FeaturePost.tsx +20 -20
- package/src/components/FeaturePost/components/Image/Image.tsx +2 -4
- package/src/components/FeaturePost/components/MediaContent/MediaContent.tsx +2 -2
- package/src/components/Highlights/Highlights.tsx +2 -2
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +11 -11
- package/src/components/Highlights/types/highlight-link.ts +5 -0
- package/src/components/Highlights/types/highlight-list-item.ts +3 -5
- package/src/components/Highlights/types/index.ts +1 -0
- package/src/components/ProductNavigation/ProductNavigation.module.css +51 -0
- package/src/components/ProductNavigation/ProductNavigation.tsx +200 -0
- package/src/components/ProductNavigation/index.ts +5 -0
- package/src/components/ProductNavigation/types/index.ts +1 -0
- package/src/components/ProductNavigation/types/product-list.ts +10 -0
- package/src/components/PromoListing/PromoListing.tsx +8 -10
- package/src/components/SectionHeading/SectionHeading.module.css +13 -1
- package/src/components/SectionHeading/SectionHeading.tsx +24 -7
- package/src/components/Statistics/Statistics.tsx +14 -14
- package/src/components/Summary/Summary.tsx +6 -6
- package/src/components/index.ts +14 -11
- package/src/types/arc-icon.ts +2 -0
- package/versions.json +1 -0
- package/dist/_shared/cjs/SectionHeading-L2EpTQ79.js +0 -25
- package/dist/_shared/cjs/filter-data-attrs-ajtUvDAC.js +0 -15
- package/dist/_shared/cjs/tslib.es6-DBA0GFPJ.js +0 -48
- package/dist/_shared/esm/SectionHeading-C70XNhqJ.js +0 -23
- package/dist/_shared/esm/filter-data-attrs-V7cbJuwS.js +0 -13
- package/dist/_shared/esm/tslib.es6-Cv15O4Nx.js +0 -46
- package/dist/types/components/BannerWithTabs/BannerWithTabs.d.ts +0 -17
- package/dist/types/components/CopyLead/types/copy-lead-list-item.d.ts +0 -6
- package/dist/types/components/DownloadList/DownloadList.d.ts +0 -10
- package/dist/types/components/Highlights/types/highlight-list-item.d.ts +0 -10
- package/dist/types/components/index.d.ts +0 -11
- /package/dist/types/{components → cjs/components}/Accordion/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Author/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/BannerWithTabs/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/CopyLead.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Button/Button.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Button/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Column/Column.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Column/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Container/Container.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Container/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/IconList/IconList.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/IconList/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Image/Image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Image/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/MediaContent/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/templates/Content/Content.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/templates/Content/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/templates/Media/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/copy-lead-button.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/copy-lead-image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/copy-lead-transcript-link.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/DownloadList/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/components/Image/Image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/components/Image/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/feature-post-app-button-footer.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/feature-post-cta-footer.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/feature-post-image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Highlights/components/HighlightList/HighlightList.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Highlights/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/PromoListing/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Quote/Quote.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Quote/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/SectionHeading/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/Statistics.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/helpers/get-link-props.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/types/statistic-link.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/types/statistic.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Summary/index.d.ts +0 -0
- /package/dist/types/{index.d.ts → cjs/index.d.ts} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,136 @@
|
|
|
1
1
|
|
|
2
|
-
> @arc-ui/community-components@
|
|
2
|
+
> @arc-ui/community-components@1.0.0 build /builds/enterprise/frontend/arc-community/packages/components
|
|
3
3
|
> rimraf dist && rollup -c && generate-subpath-css
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1msrc/index.ts[22m → [1mdist[22m...[39m
|
|
7
|
-
[
|
|
7
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs" was ignored.[39m[22m
|
|
8
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs:1:0[22m
|
|
9
|
+
[90m1: "use client";
|
|
10
|
+
^
|
|
11
|
+
2:
|
|
12
|
+
3: import React from "react";[39m
|
|
13
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs" was ignored.[39m[22m
|
|
14
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs:1:0[22m
|
|
15
|
+
[90m1: "use client";
|
|
16
|
+
^
|
|
17
|
+
2:
|
|
18
|
+
3: import React from "react";[39m
|
|
19
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs" was ignored.[39m[22m
|
|
20
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs:1:0[22m
|
|
21
|
+
[90m1: "use client";
|
|
22
|
+
^
|
|
23
|
+
2:
|
|
24
|
+
3: import React from "react";[39m
|
|
25
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs" was ignored.[39m[22m
|
|
26
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs:1:0[22m
|
|
27
|
+
[90m1: "use client";
|
|
28
|
+
^
|
|
29
|
+
2:
|
|
30
|
+
3: import React from "react";[39m
|
|
31
|
+
[1m[33m(!) [plugin typescript] src/components/ProductNavigation/ProductNavigation.tsx (53:22): @rollup/plugin-typescript TS2339: Property 'focus' does not exist on type 'never'.[39m[22m
|
|
32
|
+
[1m/builds/enterprise/frontend/arc-community/packages/components/src/components/ProductNavigation/ProductNavigation.tsx:53:22[22m
|
|
33
|
+
[90m
|
|
34
|
+
[7m53[0m cardRef.current?.focus();
|
|
35
|
+
[7m [0m [91m ~~~~~[0m
|
|
36
|
+
[39m
|
|
37
|
+
[32mcreated [1mdist[22m in [1m4.5s[22m[39m
|
|
8
38
|
[36m
|
|
9
39
|
[1msrc/index.ts[22m → [1mdist/index.es.js[22m...[39m
|
|
10
|
-
[
|
|
40
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs" was ignored.[39m[22m
|
|
41
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs:1:0[22m
|
|
42
|
+
[90m1: "use client";
|
|
43
|
+
^
|
|
44
|
+
2:
|
|
45
|
+
3: import React from "react";[39m
|
|
46
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs" was ignored.[39m[22m
|
|
47
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs:1:0[22m
|
|
48
|
+
[90m1: "use client";
|
|
49
|
+
^
|
|
50
|
+
2:
|
|
51
|
+
3: import React from "react";[39m
|
|
52
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs" was ignored.[39m[22m
|
|
53
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs:1:0[22m
|
|
54
|
+
[90m1: "use client";
|
|
55
|
+
^
|
|
56
|
+
2:
|
|
57
|
+
3: import React from "react";[39m
|
|
58
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs" was ignored.[39m[22m
|
|
59
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs:1:0[22m
|
|
60
|
+
[90m1: "use client";
|
|
61
|
+
^
|
|
62
|
+
2:
|
|
63
|
+
3: import React from "react";[39m
|
|
64
|
+
[1m[33m(!) [plugin typescript] src/components/ProductNavigation/ProductNavigation.tsx (53:22): @rollup/plugin-typescript TS2339: Property 'focus' does not exist on type 'never'.[39m[22m
|
|
65
|
+
[1m/builds/enterprise/frontend/arc-community/packages/components/src/components/ProductNavigation/ProductNavigation.tsx:53:22[22m
|
|
66
|
+
[90m
|
|
67
|
+
[7m53[0m cardRef.current?.focus();
|
|
68
|
+
[7m [0m [91m ~~~~~[0m
|
|
69
|
+
[39m
|
|
70
|
+
[32mcreated [1mdist/index.es.js[22m in [1m3.2s[22m[39m
|
|
11
71
|
[36m
|
|
12
|
-
[1m./src/components/Accordion/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/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 → [1mdist[22m...[39m
|
|
13
|
-
[
|
|
72
|
+
[1m./src/components/Accordion/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/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 → [1mdist[22m...[39m
|
|
73
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs" was ignored.[39m[22m
|
|
74
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs:1:0[22m
|
|
75
|
+
[90m1: "use client";
|
|
76
|
+
^
|
|
77
|
+
2:
|
|
78
|
+
3: import React from "react";[39m
|
|
79
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs" was ignored.[39m[22m
|
|
80
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs:1:0[22m
|
|
81
|
+
[90m1: "use client";
|
|
82
|
+
^
|
|
83
|
+
2:
|
|
84
|
+
3: import React from "react";[39m
|
|
85
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs" was ignored.[39m[22m
|
|
86
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs:1:0[22m
|
|
87
|
+
[90m1: "use client";
|
|
88
|
+
^
|
|
89
|
+
2:
|
|
90
|
+
3: import React from "react";[39m
|
|
91
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs" was ignored.[39m[22m
|
|
92
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs:1:0[22m
|
|
93
|
+
[90m1: "use client";
|
|
94
|
+
^
|
|
95
|
+
2:
|
|
96
|
+
3: import React from "react";[39m
|
|
97
|
+
[1m[33m(!) [plugin typescript] src/components/ProductNavigation/ProductNavigation.tsx (53:22): @rollup/plugin-typescript TS2339: Property 'focus' does not exist on type 'never'.[39m[22m
|
|
98
|
+
[1m/builds/enterprise/frontend/arc-community/packages/components/src/components/ProductNavigation/ProductNavigation.tsx:53:22[22m
|
|
99
|
+
[90m
|
|
100
|
+
[7m53[0m cardRef.current?.focus();
|
|
101
|
+
[7m [0m [91m ~~~~~[0m
|
|
102
|
+
[39m
|
|
103
|
+
[32mcreated [1mdist[22m in [1m2.8s[22m[39m
|
|
14
104
|
[36m
|
|
15
|
-
[1m./src/components/Accordion/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/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 → [1mdist[22m...[39m
|
|
16
|
-
[
|
|
105
|
+
[1m./src/components/Accordion/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/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 → [1mdist[22m...[39m
|
|
106
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs" was ignored.[39m[22m
|
|
107
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialX/ArcIconSocialX.mjs:1:0[22m
|
|
108
|
+
[90m1: "use client";
|
|
109
|
+
^
|
|
110
|
+
2:
|
|
111
|
+
3: import React from "react";[39m
|
|
112
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs" was ignored.[39m[22m
|
|
113
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconLink/BtIconLink.mjs:1:0[22m
|
|
114
|
+
[90m1: "use client";
|
|
115
|
+
^
|
|
116
|
+
2:
|
|
117
|
+
3: import React from "react";[39m
|
|
118
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs" was ignored.[39m[22m
|
|
119
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/ArcIconSocialLinkedin/ArcIconSocialLinkedin.mjs:1:0[22m
|
|
120
|
+
[90m1: "use client";
|
|
121
|
+
^
|
|
122
|
+
2:
|
|
123
|
+
3: import React from "react";[39m
|
|
124
|
+
[1m[33m(!) ../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs" was ignored.[39m[22m
|
|
125
|
+
[1m/builds/enterprise/frontend/arc-community/node_modules/.pnpm/@arc-ui+icons@12.0.0-beta.16/node_modules/@arc-ui/icons/lib/icons/BtIconEmailUnread/BtIconEmailUnread.mjs:1:0[22m
|
|
126
|
+
[90m1: "use client";
|
|
127
|
+
^
|
|
128
|
+
2:
|
|
129
|
+
3: import React from "react";[39m
|
|
130
|
+
[1m[33m(!) [plugin typescript] src/components/ProductNavigation/ProductNavigation.tsx (53:22): @rollup/plugin-typescript TS2339: Property 'focus' does not exist on type 'never'.[39m[22m
|
|
131
|
+
[1m/builds/enterprise/frontend/arc-community/packages/components/src/components/ProductNavigation/ProductNavigation.tsx:53:22[22m
|
|
132
|
+
[90m
|
|
133
|
+
[7m53[0m cardRef.current?.focus();
|
|
134
|
+
[7m [0m [91m ~~~~~[0m
|
|
135
|
+
[39m
|
|
136
|
+
[32mcreated [1mdist[22m in [1m2.7s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -4,4 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
+
- b860730: Update community repo to use the arc repo changes, dot notation removed, theme and icon packages flattened, pkg paths updated
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 60a7218: Allow Icon prop to accept custom svgs types for copylead and articlesidebar
|
|
12
|
+
- 6bbb300: Add new alignTypography and isInverted props to BannerWithTabs
|
|
13
|
+
- 233531a: Remove illustrations package and references
|
|
14
|
+
- 3030de7: Add script to generate json file containing all versions from changelog
|
|
15
|
+
- da5f2b0: Add optional image to sectionheading component
|
|
16
|
+
- 7de6006: Create new ProductNavigation component
|
|
17
|
+
- 1e6d75f: Add component generator and ArticleSidebar component.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 1eccea8: Update BannerWithTabs story copy and fix dark background bug
|
|
22
|
+
- 1e6d75f: Update SectionHeading component to use prop elementType p
|
|
23
|
+
- df655c9: Refactor ProductNavigation component to remove js DOM manipulation
|
|
24
|
+
|
|
25
|
+
## 0.1.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
7
29
|
- initial version
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-DlS_Fyr9.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var Disclosure = require('@arc-ui/components/dist/Disclosure');
|
|
5
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-7IxNz67p.js');
|
|
6
|
+
var Disclosure = require('@arc-ui/components/Disclosure');
|
|
8
7
|
require('../_shared/cjs/index-Bp6Dd2i1.js');
|
|
9
|
-
require('@arc-ui/components/
|
|
10
|
-
require('@arc-ui/components/
|
|
11
|
-
require('@arc-ui/components/
|
|
8
|
+
require('@arc-ui/components/Heading');
|
|
9
|
+
require('@arc-ui/components/Text');
|
|
10
|
+
require('@arc-ui/components/VerticalSpace');
|
|
11
|
+
require('@arc-ui/components/Image');
|
|
12
12
|
|
|
13
13
|
var AccordionDisclosureList = function (_a) {
|
|
14
14
|
var disclosureList = _a.disclosureList;
|
|
@@ -22,8 +22,8 @@ var AccordionDisclosureList = function (_a) {
|
|
|
22
22
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
23
23
|
*/
|
|
24
24
|
var Accordion = function (_a) {
|
|
25
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, disclosureList = _a.disclosureList, props =
|
|
26
|
-
return (React.createElement("div",
|
|
25
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, disclosureList = _a.disclosureList, props = filterDataAttrs.__rest(_a, ["heading", "headingLevel", "content", "disclosureList"]);
|
|
26
|
+
return (React.createElement("div", filterDataAttrs.__assign({}, filterDataAttrs.filterDataAttrs(props)),
|
|
27
27
|
React.createElement(SectionHeading.SectionHeading, { isPadded: true, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
28
28
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
29
29
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-DAx-HNG5.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Disclosure } from '@arc-ui/components/dist/Disclosure';
|
|
3
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-Dz0GfXsP.js';
|
|
4
|
+
import { Disclosure } from '@arc-ui/components/Disclosure';
|
|
6
5
|
import '../_shared/esm/index-BfTCfPZ1.js';
|
|
7
|
-
import '@arc-ui/components/
|
|
8
|
-
import '@arc-ui/components/
|
|
9
|
-
import '@arc-ui/components/
|
|
6
|
+
import '@arc-ui/components/Heading';
|
|
7
|
+
import '@arc-ui/components/Text';
|
|
8
|
+
import '@arc-ui/components/VerticalSpace';
|
|
9
|
+
import '@arc-ui/components/Image';
|
|
10
10
|
|
|
11
11
|
var AccordionDisclosureList = function (_a) {
|
|
12
12
|
var disclosureList = _a.disclosureList;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-DlS_Fyr9.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var Heading = require('@arc-ui/components/Heading');
|
|
6
|
+
var Icon = require('@arc-ui/components/Icon');
|
|
7
|
+
var Text = require('@arc-ui/components/Text');
|
|
8
|
+
var Rule = require('@arc-ui/components/Rule');
|
|
9
|
+
var Link = require('@arc-ui/components/Link');
|
|
10
|
+
var Tag = require('@arc-ui/components/Tag');
|
|
11
|
+
var Toast = require('@arc-ui/components/Toast');
|
|
12
|
+
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
13
|
+
var Author = require('../_shared/cjs/Author-BXxxwh6E.js');
|
|
14
|
+
require('@arc-ui/components/Grid');
|
|
15
|
+
require('@arc-ui/components/Avatar');
|
|
16
|
+
|
|
17
|
+
const ArcIconSocialLinkedin = (props) =>
|
|
18
|
+
/*#__PURE__*/ React.createElement(
|
|
19
|
+
"svg",
|
|
20
|
+
Object.assign(
|
|
21
|
+
{
|
|
22
|
+
viewBox: "0 0 32 32",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
},
|
|
25
|
+
props,
|
|
26
|
+
),
|
|
27
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
28
|
+
d: "M25.856 25.86H21.71v-6.496c0-1.55-.032-3.544-2.161-3.544-2.162 0-2.492 1.686-2.492 3.43v6.61H12.91V12.5h3.983v1.821h.053c.557-1.05 1.91-2.158 3.932-2.158 4.201 0 4.978 2.765 4.978 6.364v7.334zM8.226 10.673a2.406 2.406 0 01-2.406-2.41 2.408 2.408 0 112.407 2.41zm2.08 15.189H6.148V12.5h4.158v13.36zM27.929 2H4.066C2.924 2 2 2.903 2 4.017v23.966C2 29.098 2.924 30 4.066 30h23.86c1.14 0 2.074-.902 2.074-2.017V4.017C30 2.903 29.067 2 27.926 2h.003z",
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const ArcIconSocialX = (props) =>
|
|
34
|
+
/*#__PURE__*/ React.createElement(
|
|
35
|
+
"svg",
|
|
36
|
+
Object.assign(
|
|
37
|
+
{
|
|
38
|
+
viewBox: "0 0 32 32",
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
+
},
|
|
41
|
+
props,
|
|
42
|
+
),
|
|
43
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
44
|
+
d: "M24.0342 3H28.3116L18.9688 13.6389L30 28.1034H21.3608L14.5789 19.3354L6.8402 28.1034H2.56281L12.5809 16.7385L2 3H10.8643L16.9709 11.0141L24.0342 3ZM22.5427 25.5624H24.9065L9.56985 5.40144H7.00905L22.5427 25.5624Z",
|
|
45
|
+
fill: "currentColor",
|
|
46
|
+
}),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const BtIconLink = (props) =>
|
|
50
|
+
/*#__PURE__*/ React.createElement(
|
|
51
|
+
"svg",
|
|
52
|
+
Object.assign(
|
|
53
|
+
{
|
|
54
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
55
|
+
viewBox: "0 0 32 32",
|
|
56
|
+
},
|
|
57
|
+
props,
|
|
58
|
+
),
|
|
59
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
60
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
61
|
+
d: "M9.959,10.0127h2.417a5.99044,5.99044,0,0,1,5.22558,8.91552.5.5,0,1,0,.87207.48926A6.99034,6.99034,0,0,0,12.376,9.0127H9.959a6.98853,6.98853,0,0,0,0,13.97705h1.54a.5.5,0,1,0,0-1H9.959a5.98853,5.98853,0,0,1,0-11.977Z",
|
|
62
|
+
fill: "currentColor",
|
|
63
|
+
}),
|
|
64
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
65
|
+
d: "M22.0625,9.0127h-1.54a.5.5,0,0,0,0,1h1.54a5.98853,5.98853,0,0,1,0,11.97705h-2.417a5.99145,5.99145,0,0,1-5.22656-8.915.49955.49955,0,1,0-.8711-.48926,6.99,6.99,0,0,0,6.09766,10.4043h2.417a6.98853,6.98853,0,0,0,0-13.977Z",
|
|
66
|
+
fill: "currentColor",
|
|
67
|
+
}),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
const BtIconEmailUnread = (props) =>
|
|
71
|
+
/*#__PURE__*/ React.createElement(
|
|
72
|
+
"svg",
|
|
73
|
+
Object.assign(
|
|
74
|
+
{
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
76
|
+
viewBox: "0 0 32 32",
|
|
77
|
+
},
|
|
78
|
+
props,
|
|
79
|
+
),
|
|
80
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
81
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
82
|
+
d: "M29,6H3A1,1,0,0,0,2,7V25a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V7A1,1,0,0,0,29,6Zm0,1V8.71649L18.00049,16.33154a3.5158,3.5158,0,0,1-3.98438,0L3,8.70532V7Zm0,2.93292V22.08368l-8.77545-6.07544Zm-17.20819,6.0752L3,22.09485V9.92175ZM3,25V23.31128l9.67035-6.695.77643.53754a4.52223,4.52223,0,0,0,5.123,0l.77619-.53735L29,23.30011V25Z",
|
|
83
|
+
fill: "currentColor",
|
|
84
|
+
}),
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Use `ArticleSidebar` to provide additional information about the article.
|
|
91
|
+
*/
|
|
92
|
+
var ArticleSidebar = function (_a) {
|
|
93
|
+
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
94
|
+
var id = React.useId();
|
|
95
|
+
var _b = React.useState(false), showToast = _b[0], setShowToast = _b[1];
|
|
96
|
+
var url = location.href;
|
|
97
|
+
var copyTextToClipBoard = function () { return filterDataAttrs.__awaiter(void 0, void 0, void 0, function () {
|
|
98
|
+
return filterDataAttrs.__generator(this, function (_a) {
|
|
99
|
+
switch (_a.label) {
|
|
100
|
+
case 0: return [4 /*yield*/, navigator.clipboard.writeText(url)];
|
|
101
|
+
case 1:
|
|
102
|
+
_a.sent();
|
|
103
|
+
setShowToast(true);
|
|
104
|
+
return [2 /*return*/];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}); };
|
|
108
|
+
var shareButtons = filterDataAttrs.__spreadArray(filterDataAttrs.__spreadArray([
|
|
109
|
+
{
|
|
110
|
+
isButton: true,
|
|
111
|
+
label: "Copy url to clipboard",
|
|
112
|
+
onClick: copyTextToClipBoard,
|
|
113
|
+
icon: BtIconLink,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "Share by email",
|
|
117
|
+
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
118
|
+
icon: BtIconEmailUnread,
|
|
119
|
+
}
|
|
120
|
+
], (share.linkedin
|
|
121
|
+
? [
|
|
122
|
+
{
|
|
123
|
+
label: "Share on LinkedIn",
|
|
124
|
+
href: "https://www.linkedin.com/sharing/share-offsite/?url=".concat(url),
|
|
125
|
+
icon: ArcIconSocialLinkedin,
|
|
126
|
+
},
|
|
127
|
+
]
|
|
128
|
+
: []), true), (share.x
|
|
129
|
+
? [
|
|
130
|
+
{
|
|
131
|
+
label: "Share on x",
|
|
132
|
+
href: "https://twitter.com/intent/tweet?url=".concat(url),
|
|
133
|
+
icon: ArcIconSocialX,
|
|
134
|
+
},
|
|
135
|
+
]
|
|
136
|
+
: []), true);
|
|
137
|
+
return (React.createElement(React.Fragment, null,
|
|
138
|
+
React.createElement("div", { className: styles.textContent },
|
|
139
|
+
author && (React.createElement(React.Fragment, null,
|
|
140
|
+
React.createElement(Author.Author, filterDataAttrs.__assign({}, author, { avatar: filterDataAttrs.__assign(filterDataAttrs.__assign({}, author.avatar), { size: "xl" }) })))),
|
|
141
|
+
aboutSection && (React.createElement(React.Fragment, null,
|
|
142
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
143
|
+
React.createElement(Heading.Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
144
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
145
|
+
React.createElement(Text.Text, { size: "s" }, aboutSection.content))),
|
|
146
|
+
additionalContent &&
|
|
147
|
+
additionalContent.map(function (_a) {
|
|
148
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
149
|
+
return (React.createElement(React.Fragment, null,
|
|
150
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
151
|
+
React.createElement(Heading.Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
152
|
+
React.createElement(Text.Text, { size: "s" }, content)));
|
|
153
|
+
})),
|
|
154
|
+
(author || aboutSection || additionalContent) && (React.createElement("div", { "data-testid": "content-rule" },
|
|
155
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
156
|
+
React.createElement(Rule.Rule, null),
|
|
157
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
158
|
+
React.createElement(Heading.Heading, { level: linkSection.headingLevel }, linkSection.heading),
|
|
159
|
+
linkSection.links.map(function (_a) {
|
|
160
|
+
var text = _a.text, url = _a.url;
|
|
161
|
+
return (React.createElement(React.Fragment, null,
|
|
162
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
163
|
+
React.createElement("div", { key: "".concat(id, "-").concat(url) },
|
|
164
|
+
React.createElement(Link.Link, { size: "s", href: url }, text))));
|
|
165
|
+
}),
|
|
166
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
167
|
+
topics && (React.createElement(React.Fragment, null,
|
|
168
|
+
React.createElement(Heading.Heading, { level: topics.headingLevel }, topics.heading),
|
|
169
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
170
|
+
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag.Tag, filterDataAttrs.__assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })),
|
|
171
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
172
|
+
React.createElement(Rule.Rule, null),
|
|
173
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
174
|
+
React.createElement(Heading.Heading, { level: share.headingLevel }, share.heading),
|
|
175
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
176
|
+
React.createElement("div", { className: styles.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
177
|
+
var isButton = _a.isButton, label = _a.label, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
178
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(label), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles.shareButton, "aria-label": label, href: href, onClick: onClick },
|
|
179
|
+
React.createElement(Icon.Icon, { icon: icon, size: 24 })));
|
|
180
|
+
})),
|
|
181
|
+
React.createElement(Toast.Toast, null,
|
|
182
|
+
React.createElement(Toast.ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
exports.ArticleSidebar = ArticleSidebar;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { b as __spreadArray, a as __assign, c as __awaiter, d as __generator } from '../_shared/esm/filter-data-attrs-DAx-HNG5.js';
|
|
2
|
+
import React, { useId, useState } from 'react';
|
|
3
|
+
import { Heading } from '@arc-ui/components/Heading';
|
|
4
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
5
|
+
import { Text } from '@arc-ui/components/Text';
|
|
6
|
+
import { Rule } from '@arc-ui/components/Rule';
|
|
7
|
+
import { Link } from '@arc-ui/components/Link';
|
|
8
|
+
import { Tag } from '@arc-ui/components/Tag';
|
|
9
|
+
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
10
|
+
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
11
|
+
import { A as Author } from '../_shared/esm/Author-B8tJxqB8.js';
|
|
12
|
+
import '@arc-ui/components/Grid';
|
|
13
|
+
import '@arc-ui/components/Avatar';
|
|
14
|
+
|
|
15
|
+
const ArcIconSocialLinkedin = (props) =>
|
|
16
|
+
/*#__PURE__*/ React.createElement(
|
|
17
|
+
"svg",
|
|
18
|
+
Object.assign(
|
|
19
|
+
{
|
|
20
|
+
viewBox: "0 0 32 32",
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
},
|
|
23
|
+
props,
|
|
24
|
+
),
|
|
25
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
26
|
+
d: "M25.856 25.86H21.71v-6.496c0-1.55-.032-3.544-2.161-3.544-2.162 0-2.492 1.686-2.492 3.43v6.61H12.91V12.5h3.983v1.821h.053c.557-1.05 1.91-2.158 3.932-2.158 4.201 0 4.978 2.765 4.978 6.364v7.334zM8.226 10.673a2.406 2.406 0 01-2.406-2.41 2.408 2.408 0 112.407 2.41zm2.08 15.189H6.148V12.5h4.158v13.36zM27.929 2H4.066C2.924 2 2 2.903 2 4.017v23.966C2 29.098 2.924 30 4.066 30h23.86c1.14 0 2.074-.902 2.074-2.017V4.017C30 2.903 29.067 2 27.926 2h.003z",
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const ArcIconSocialX = (props) =>
|
|
32
|
+
/*#__PURE__*/ React.createElement(
|
|
33
|
+
"svg",
|
|
34
|
+
Object.assign(
|
|
35
|
+
{
|
|
36
|
+
viewBox: "0 0 32 32",
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
},
|
|
39
|
+
props,
|
|
40
|
+
),
|
|
41
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
42
|
+
d: "M24.0342 3H28.3116L18.9688 13.6389L30 28.1034H21.3608L14.5789 19.3354L6.8402 28.1034H2.56281L12.5809 16.7385L2 3H10.8643L16.9709 11.0141L24.0342 3ZM22.5427 25.5624H24.9065L9.56985 5.40144H7.00905L22.5427 25.5624Z",
|
|
43
|
+
fill: "currentColor",
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
const BtIconLink = (props) =>
|
|
48
|
+
/*#__PURE__*/ React.createElement(
|
|
49
|
+
"svg",
|
|
50
|
+
Object.assign(
|
|
51
|
+
{
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
viewBox: "0 0 32 32",
|
|
54
|
+
},
|
|
55
|
+
props,
|
|
56
|
+
),
|
|
57
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
58
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
59
|
+
d: "M9.959,10.0127h2.417a5.99044,5.99044,0,0,1,5.22558,8.91552.5.5,0,1,0,.87207.48926A6.99034,6.99034,0,0,0,12.376,9.0127H9.959a6.98853,6.98853,0,0,0,0,13.97705h1.54a.5.5,0,1,0,0-1H9.959a5.98853,5.98853,0,0,1,0-11.977Z",
|
|
60
|
+
fill: "currentColor",
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
63
|
+
d: "M22.0625,9.0127h-1.54a.5.5,0,0,0,0,1h1.54a5.98853,5.98853,0,0,1,0,11.97705h-2.417a5.99145,5.99145,0,0,1-5.22656-8.915.49955.49955,0,1,0-.8711-.48926,6.99,6.99,0,0,0,6.09766,10.4043h2.417a6.98853,6.98853,0,0,0,0-13.977Z",
|
|
64
|
+
fill: "currentColor",
|
|
65
|
+
}),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const BtIconEmailUnread = (props) =>
|
|
69
|
+
/*#__PURE__*/ React.createElement(
|
|
70
|
+
"svg",
|
|
71
|
+
Object.assign(
|
|
72
|
+
{
|
|
73
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
74
|
+
viewBox: "0 0 32 32",
|
|
75
|
+
},
|
|
76
|
+
props,
|
|
77
|
+
),
|
|
78
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
79
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
80
|
+
d: "M29,6H3A1,1,0,0,0,2,7V25a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V7A1,1,0,0,0,29,6Zm0,1V8.71649L18.00049,16.33154a3.5158,3.5158,0,0,1-3.98438,0L3,8.70532V7Zm0,2.93292V22.08368l-8.77545-6.07544Zm-17.20819,6.0752L3,22.09485V9.92175ZM3,25V23.31128l9.67035-6.695.77643.53754a4.52223,4.52223,0,0,0,5.123,0l.77619-.53735L29,23.30011V25Z",
|
|
81
|
+
fill: "currentColor",
|
|
82
|
+
}),
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
var styles = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Use `ArticleSidebar` to provide additional information about the article.
|
|
89
|
+
*/
|
|
90
|
+
var ArticleSidebar = function (_a) {
|
|
91
|
+
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
92
|
+
var id = useId();
|
|
93
|
+
var _b = useState(false), showToast = _b[0], setShowToast = _b[1];
|
|
94
|
+
var url = location.href;
|
|
95
|
+
var copyTextToClipBoard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
|
+
case 0: return [4 /*yield*/, navigator.clipboard.writeText(url)];
|
|
99
|
+
case 1:
|
|
100
|
+
_a.sent();
|
|
101
|
+
setShowToast(true);
|
|
102
|
+
return [2 /*return*/];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}); };
|
|
106
|
+
var shareButtons = __spreadArray(__spreadArray([
|
|
107
|
+
{
|
|
108
|
+
isButton: true,
|
|
109
|
+
label: "Copy url to clipboard",
|
|
110
|
+
onClick: copyTextToClipBoard,
|
|
111
|
+
icon: BtIconLink,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: "Share by email",
|
|
115
|
+
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
116
|
+
icon: BtIconEmailUnread,
|
|
117
|
+
}
|
|
118
|
+
], (share.linkedin
|
|
119
|
+
? [
|
|
120
|
+
{
|
|
121
|
+
label: "Share on LinkedIn",
|
|
122
|
+
href: "https://www.linkedin.com/sharing/share-offsite/?url=".concat(url),
|
|
123
|
+
icon: ArcIconSocialLinkedin,
|
|
124
|
+
},
|
|
125
|
+
]
|
|
126
|
+
: []), true), (share.x
|
|
127
|
+
? [
|
|
128
|
+
{
|
|
129
|
+
label: "Share on x",
|
|
130
|
+
href: "https://twitter.com/intent/tweet?url=".concat(url),
|
|
131
|
+
icon: ArcIconSocialX,
|
|
132
|
+
},
|
|
133
|
+
]
|
|
134
|
+
: []), true);
|
|
135
|
+
return (React.createElement(React.Fragment, null,
|
|
136
|
+
React.createElement("div", { className: styles.textContent },
|
|
137
|
+
author && (React.createElement(React.Fragment, null,
|
|
138
|
+
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
139
|
+
aboutSection && (React.createElement(React.Fragment, null,
|
|
140
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
141
|
+
React.createElement(Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
142
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
143
|
+
React.createElement(Text, { size: "s" }, aboutSection.content))),
|
|
144
|
+
additionalContent &&
|
|
145
|
+
additionalContent.map(function (_a) {
|
|
146
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
147
|
+
return (React.createElement(React.Fragment, null,
|
|
148
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
149
|
+
React.createElement(Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
150
|
+
React.createElement(Text, { size: "s" }, content)));
|
|
151
|
+
})),
|
|
152
|
+
(author || aboutSection || additionalContent) && (React.createElement("div", { "data-testid": "content-rule" },
|
|
153
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
154
|
+
React.createElement(Rule, null),
|
|
155
|
+
React.createElement(VerticalSpace, { size: "32" }))),
|
|
156
|
+
React.createElement(Heading, { level: linkSection.headingLevel }, linkSection.heading),
|
|
157
|
+
linkSection.links.map(function (_a) {
|
|
158
|
+
var text = _a.text, url = _a.url;
|
|
159
|
+
return (React.createElement(React.Fragment, null,
|
|
160
|
+
React.createElement(VerticalSpace, { size: "8" }),
|
|
161
|
+
React.createElement("div", { key: "".concat(id, "-").concat(url) },
|
|
162
|
+
React.createElement(Link, { size: "s", href: url }, text))));
|
|
163
|
+
}),
|
|
164
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
165
|
+
topics && (React.createElement(React.Fragment, null,
|
|
166
|
+
React.createElement(Heading, { level: topics.headingLevel }, topics.heading),
|
|
167
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
168
|
+
React.createElement("div", { className: styles.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })),
|
|
169
|
+
React.createElement(VerticalSpace, { size: "32" }))),
|
|
170
|
+
React.createElement(Rule, null),
|
|
171
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
172
|
+
React.createElement(Heading, { level: share.headingLevel }, share.heading),
|
|
173
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
174
|
+
React.createElement("div", { className: styles.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
175
|
+
var isButton = _a.isButton, label = _a.label, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
176
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(label), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles.shareButton, "aria-label": label, href: href, onClick: onClick },
|
|
177
|
+
React.createElement(Icon, { icon: icon, size: 24 })));
|
|
178
|
+
})),
|
|
179
|
+
React.createElement(Toast, null,
|
|
180
|
+
React.createElement(ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export { ArticleSidebar };
|
|
@@ -0,0 +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,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Author = require('../_shared/cjs/Author-
|
|
4
|
-
require('../_shared/cjs/
|
|
3
|
+
var Author = require('../_shared/cjs/Author-BXxxwh6E.js');
|
|
4
|
+
require('../_shared/cjs/filter-data-attrs-DlS_Fyr9.js');
|
|
5
5
|
require('react');
|
|
6
|
-
require('
|
|
7
|
-
require('@arc-ui/components/
|
|
8
|
-
require('@arc-ui/components/
|
|
9
|
-
require('@arc-ui/components/
|
|
10
|
-
require('@arc-ui/components/dist/Text');
|
|
6
|
+
require('@arc-ui/components/Grid');
|
|
7
|
+
require('@arc-ui/components/Avatar');
|
|
8
|
+
require('@arc-ui/components/Heading');
|
|
9
|
+
require('@arc-ui/components/Text');
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
|