@arc-ui/community-components 3.0.1 → 3.1.0

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