@arc-ui/community-components 3.8.1 → 3.10.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 (70) hide show
  1. package/.turbo/turbo-build.log +17 -16
  2. package/CHANGELOG.md +25 -0
  3. package/generate-versions.js +48 -1
  4. package/lib/ActionTile/ActionTile.cjs +10 -9
  5. package/lib/ActionTile/ActionTile.mjs +10 -9
  6. package/lib/ActionTile/styles.css +1 -1
  7. package/lib/ArticleCarousel/ArticleCarousel.cjs +3 -2
  8. package/lib/ArticleCarousel/ArticleCarousel.mjs +3 -2
  9. package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -1
  10. package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -1
  11. package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.cjs +2 -1
  12. package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.mjs +2 -1
  13. package/lib/CopyLead/CopyLead.cjs +2 -2
  14. package/lib/CopyLead/CopyLead.mjs +2 -2
  15. package/lib/DownloadList/DownloadList.cjs +12 -9
  16. package/lib/DownloadList/DownloadList.mjs +12 -9
  17. package/lib/DownloadList/styles.css +1 -1
  18. package/lib/FAQs/FAQs.cjs +2 -1
  19. package/lib/FAQs/FAQs.mjs +2 -1
  20. package/lib/FeaturePost/FeaturePost.cjs +1 -1
  21. package/lib/FeaturePost/FeaturePost.mjs +1 -1
  22. package/lib/HeaderBarNotification/HeaderBarNotification.cjs +57 -0
  23. package/lib/HeaderBarNotification/HeaderBarNotification.mjs +55 -0
  24. package/lib/HeaderBarNotification/styles.css +1 -0
  25. package/lib/Highlights/Highlights.cjs +2 -1
  26. package/lib/Highlights/Highlights.mjs +2 -1
  27. package/lib/ProductNavigation/ProductNavigation.cjs +20 -19
  28. package/lib/ProductNavigation/ProductNavigation.mjs +20 -19
  29. package/lib/PromoListing/PromoListing.cjs +5 -4
  30. package/lib/PromoListing/PromoListing.mjs +5 -4
  31. package/lib/PromoListing/styles.css +1 -1
  32. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -1
  33. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +2 -1
  34. package/lib/SectionHeading/SectionHeading.cjs +2 -1
  35. package/lib/SectionHeading/SectionHeading.mjs +2 -1
  36. package/lib/SectionHeading/styles.css +1 -1
  37. package/lib/Statistics/Statistics.cjs +1 -1
  38. package/lib/Statistics/Statistics.mjs +1 -1
  39. package/lib/Summary/Summary.cjs +1 -1
  40. package/lib/Summary/Summary.mjs +1 -1
  41. package/lib/_shared/cjs/SectionHeading-XCMdv8eZ.cjs +34 -0
  42. package/lib/_shared/cjs/{index.es-B6sSN_JJ.cjs → index.es-B73RVhhj.cjs} +1 -1
  43. package/lib/_shared/esm/SectionHeading-lyXLUtdr.mjs +32 -0
  44. package/lib/_shared/esm/{index.es-CYN3fovv.mjs → index.es-DNGykRl2.mjs} +1 -1
  45. package/lib/index.cjs +106 -54
  46. package/lib/index.cjs.map +1 -1
  47. package/lib/index.d.cts +61 -7
  48. package/lib/index.d.mts +61 -7
  49. package/lib/index.mjs +107 -56
  50. package/lib/index.mjs.map +1 -1
  51. package/lib/styles.css +1 -1
  52. package/package.json +14 -14
  53. package/src/components/ActionTile/ActionTile.module.css +20 -1
  54. package/src/components/ActionTile/ActionTile.tsx +11 -14
  55. package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.tsx +5 -1
  56. package/src/components/BusinessSegmentSwitcher/types/types.ts +6 -3
  57. package/src/components/DownloadList/DownloadList.module.css +11 -3
  58. package/src/components/DownloadList/DownloadList.tsx +33 -17
  59. package/src/components/HeaderBarNotification/HeaderBarNotification.module.css +51 -0
  60. package/src/components/HeaderBarNotification/HeaderBarNotification.tsx +153 -0
  61. package/src/components/HeaderBarNotification/index.ts +4 -0
  62. package/src/components/ProductNavigation/ProductNavigation.tsx +42 -38
  63. package/src/components/PromoListing/PromoListing.module.css +14 -0
  64. package/src/components/PromoListing/PromoListing.tsx +1 -1
  65. package/src/components/SectionHeading/SectionHeading.module.css +7 -26
  66. package/src/components/SectionHeading/SectionHeading.tsx +35 -33
  67. package/src/components/index.ts +1 -0
  68. package/versions.json +1 -1
  69. package/lib/_shared/cjs/SectionHeading-DtYzFetD.cjs +0 -31
  70. package/lib/_shared/esm/SectionHeading-RLfs7ete.mjs +0 -29
@@ -0,0 +1,153 @@
1
+ import React from "react";
2
+ import { useState, useEffect } from "react";
3
+
4
+ import { filterAttrs } from "@arc-ui/community-utils/filter-attrs";
5
+ import {
6
+ NavigationHeaderAction,
7
+ NavigationHeaderActionProps,
8
+ } from "@arc-ui/components/NavigationHeader";
9
+ import { Popover } from "@arc-ui/components/Popover";
10
+ import { Icon } from "@arc-ui/components/Icon";
11
+ import { Image } from "@arc-ui/components/Image";
12
+ import { Heading } from "@arc-ui/components/Heading";
13
+ import { Text } from "@arc-ui/components/Text";
14
+ import { Tooltip } from "@arc-ui/components/Tooltip";
15
+ import { ButtonV2 } from "@arc-ui/components/ButtonV2";
16
+
17
+ import { BtIconCrossAlt } from "@arc-ui/icons/BtIconCrossAlt";
18
+
19
+ import styles from "./HeaderBarNotification.module.css";
20
+
21
+ export const HeaderBarNotification: React.FC<HeaderBarNotificationProps> = ({
22
+ headerActionProps,
23
+ notificationId,
24
+ isPersistant = false,
25
+ icon,
26
+ image,
27
+ heading,
28
+ tagline,
29
+ children,
30
+ button,
31
+ ...props
32
+ }) => {
33
+ const [showNotification, setShowNotification] =
34
+ useState<boolean>(isPersistant);
35
+ const localStorageId = `hide${notificationId.replace(/[^a-zA-Z0-9\-_]/g, "")}`;
36
+
37
+ // Check to see if the notication has been hidden or not and show it if so
38
+ useEffect(() => {
39
+ if (typeof window !== "undefined" && !isPersistant) {
40
+ setShowNotification(!localStorage.getItem(localStorageId));
41
+ }
42
+ }, []);
43
+
44
+ // Handle the closure of the notification, store it in the session so we don't keep showing it.
45
+ const handleClosePopup = () => {
46
+ if (!isPersistant) localStorage.setItem(localStorageId, "true");
47
+ setShowNotification(false);
48
+ };
49
+
50
+ return (
51
+ <Popover
52
+ open={showNotification}
53
+ side={"bottom"}
54
+ sideOffset={12}
55
+ maxWidth={900}
56
+ arrow={true}
57
+ content={
58
+ <div className={styles.container}>
59
+ <div className={styles.content}>
60
+ {(image || icon) && (
61
+ <div className={styles.image}>
62
+ {image && (
63
+ <Image src={image} alt={heading} fit={"cover"} width={55} />
64
+ )}
65
+ {icon && <Icon icon={icon} size={35} />}
66
+ </div>
67
+ )}
68
+
69
+ <div className={styles.details}>
70
+ {tagline && (
71
+ <Text size="m" tone="muted">
72
+ {tagline}
73
+ </Text>
74
+ )}
75
+ <Heading size="s" level={"3"}>
76
+ {heading}
77
+ </Heading>
78
+ {children}
79
+ </div>
80
+ </div>
81
+ {button && (
82
+ <ButtonV2
83
+ onClick={button.handleClick}
84
+ label={button.text}
85
+ buttonStyle="secondary"
86
+ isFullWidth={true}
87
+ />
88
+ )}
89
+ <div className={styles.closeButtonContainer}>
90
+ <Tooltip
91
+ side="bottom"
92
+ title={"Dismiss Notification"}
93
+ asChild={true}
94
+ >
95
+ <ButtonV2
96
+ data-testid={localStorageId}
97
+ buttonStyle="tertiary"
98
+ aria-label={`Close ${notificationId} popup`}
99
+ onClick={handleClosePopup}
100
+ icon={BtIconCrossAlt}
101
+ />
102
+ </Tooltip>
103
+ </div>
104
+ </div>
105
+ }
106
+ {...filterAttrs(props)}
107
+ >
108
+ <NavigationHeaderAction isAttention={true} {...headerActionProps} />
109
+ </Popover>
110
+ );
111
+ };
112
+
113
+ export interface HeaderBarNotificationProps {
114
+ /**
115
+ * Header Element to attach the notifcation too.
116
+ */
117
+ headerActionProps: NavigationHeaderActionProps;
118
+ /**
119
+ * Nofication ID used to store dismissal in users session
120
+ */
121
+ notificationId: string;
122
+ /**
123
+ * Always show on every reload, ignore saving dismissal to users session
124
+ */
125
+ isPersistant?: boolean;
126
+ /**
127
+ * Notification Icon
128
+ */
129
+ icon?: string;
130
+ /**
131
+ * Notification Image
132
+ */
133
+ image?: string;
134
+ /**
135
+ * Notification Heading
136
+ */
137
+ heading: string;
138
+ /**
139
+ * Notification tagline
140
+ */
141
+ tagline?: string;
142
+ /**
143
+ * Notification content
144
+ */
145
+ children?: React.ReactNode;
146
+ /**
147
+ * Data for the button, click events and text
148
+ */
149
+ button?: {
150
+ handleClick: () => void;
151
+ text: string;
152
+ };
153
+ }
@@ -0,0 +1,4 @@
1
+ export {
2
+ HeaderBarNotification,
3
+ type HeaderBarNotificationProps,
4
+ } from "./HeaderBarNotification";
@@ -110,45 +110,49 @@ export const ProductNavigation: React.FC<ProductNavigationProps> = ({
110
110
  </li>
111
111
  ))}
112
112
  </ul>
113
- <VerticalSpace size="40" />
114
- <div style={{ display: "flex" }}>
115
- {!hideButton && !hideLessButton && (
116
- <ButtonV2
117
- label={
118
- displayList.length < productList.length
119
- ? "Show more"
120
- : "Show less"
121
- }
122
- buttonStyle="secondary"
123
- onClick={clickController}
124
- isFullWidth={isMinWidthArcBreakpointS ? false : true}
125
- isLoading={isLoading}
126
- />
127
- )}
128
- {hideButton ||
129
- (displaySkipButton && displayList.length > cardsToDisplay && (
130
- <div
131
- id="skip-link"
132
- className={classNames(styles["productNavigation-skipLink"])}
133
- tabIndex={-1}
134
- >
135
- <ButtonV2
136
- label="Move to first new card"
137
- buttonStyle="primary"
138
- onClick={moveFocus}
139
- isFullWidth={isMinWidthArcBreakpointS ? false : true}
140
- />
113
+ {!hideButton &&
114
+ !(defaultExpanded && displayList.length === productList.length) && (
115
+ <>
116
+ <VerticalSpace size="40" />
117
+ <div style={{ display: "flex" }}>
118
+ {!hideLessButton && (
119
+ <ButtonV2
120
+ label={
121
+ displayList.length < productList.length
122
+ ? "Show more"
123
+ : "Show less"
124
+ }
125
+ buttonStyle="secondary"
126
+ onClick={clickController}
127
+ isFullWidth={isMinWidthArcBreakpointS ? false : true}
128
+ isLoading={isLoading}
129
+ />
130
+ )}
131
+ {displaySkipButton && displayList.length > cardsToDisplay && (
132
+ <div
133
+ id="skip-link"
134
+ className={classNames(styles["productNavigation-skipLink"])}
135
+ tabIndex={-1}
136
+ >
137
+ <ButtonV2
138
+ label="Move to first new card"
139
+ buttonStyle="primary"
140
+ onClick={moveFocus}
141
+ isFullWidth={isMinWidthArcBreakpointS ? false : true}
142
+ />
143
+ </div>
144
+ )}
145
+ <VisuallyHidden>
146
+ <div aria-live="polite" id="aria-live-region" aria-atomic>
147
+ <p>
148
+ Total products listed {displayList.length}. Total products
149
+ hidden {productList.length - displayList.length}.
150
+ </p>
151
+ </div>
152
+ </VisuallyHidden>
141
153
  </div>
142
- ))}
143
- <VisuallyHidden>
144
- <div aria-live="polite" id="aria-live-region" aria-atomic>
145
- <p>
146
- Total products listed {displayList.length}. Total products hidden{" "}
147
- {productList.length - displayList.length}.
148
- </p>
149
- </div>
150
- </VisuallyHidden>
151
- </div>
154
+ </>
155
+ )}
152
156
  </div>
153
157
  );
154
158
  };
@@ -4,6 +4,20 @@
4
4
  max-width: 1280px;
5
5
  }
6
6
 
7
+ /* margins for overflowing cards */
8
+ .CarouselWrapper {
9
+ overflow: hidden;
10
+ margin: 0 calc(-1 * var(--arc-size-section-margin-16));
11
+ padding: 6px var(--arc-size-section-margin-16);
12
+ }
13
+
14
+ @media (--arc-custom-media-min-width-s-px) {
15
+ .CarouselWrapper {
16
+ margin: 0 calc(-1 * var(--arc-size-section-margin-24));
17
+ padding: 6px var(--arc-size-section-margin-24);
18
+ }
19
+ }
20
+
7
21
  .carouselSlide {
8
22
  height: 100%;
9
23
  padding: 6px;
@@ -126,7 +126,7 @@ export const PromoListing: React.FC<PromoListingProps> = ({
126
126
  </>
127
127
  )}
128
128
  {isCarousel && !isMinWidthArcBreakpointL ? (
129
- <div className={styles.promolistingCarouselWrapper}>
129
+ <div className={styles.CarouselWrapper}>
130
130
  <Carousel
131
131
  overflow="visible"
132
132
  itemsPerSlide={1}
@@ -1,27 +1,17 @@
1
1
  @import url("@arc-ui/tokens-arc/dist/custom-media.css");
2
2
 
3
- .section-header {
4
- padding-bottom: 40px;
5
- width: auto;
6
- }
7
-
8
- .section-header--hasImage {
3
+ .sectionHeading--hasImage {
9
4
  display: flex;
10
5
  flex-direction: column;
11
6
  gap: 16px;
12
7
  }
13
8
 
14
- .section-header--isCentered {
9
+ .sectionHeading--isCentered {
15
10
  text-align: center;
16
11
  }
17
12
 
18
13
  @media (--arc-custom-media-min-width-s-px) {
19
- .section-header--padded {
20
- min-width: 588px;
21
- width: auto;
22
- }
23
-
24
- .section-header--hasImage {
14
+ .sectionHeading--hasImage {
25
15
  align-items: center;
26
16
  flex-direction: row;
27
17
  gap: 32px;
@@ -29,22 +19,13 @@
29
19
  }
30
20
 
31
21
  @media (--arc-custom-media-min-width-m-px) {
32
- .section-header--padded {
33
- min-width: 720px;
34
- padding: 0 186px 40px 0;
35
- }
36
- }
37
-
38
- @media (--arc-custom-media-min-width-l-px) {
39
- .section-header--padded {
40
- min-width: 960px;
41
- padding: 0 246px 40px 0;
22
+ .sectionHeading-content {
23
+ padding-right: 10px;
42
24
  }
43
25
  }
44
26
 
45
27
  @media (--arc-custom-media-min-width-xl-px) {
46
- .section-header--padded {
47
- min-width: 1216px;
48
- padding: 0 312px 40px 0;
28
+ .sectionHeading-content {
29
+ padding-right: unset;
49
30
  }
50
31
  }
@@ -7,6 +7,7 @@ import { Text } from "@arc-ui/components/Text";
7
7
  import { VerticalSpace } from "@arc-ui/components/VerticalSpace";
8
8
  import { Image, type ImageProps } from "@arc-ui/components/Image";
9
9
  import { Heading, type HeadingLevel } from "@arc-ui/components/Heading";
10
+ import { Columns, ColumnsCol } from "@arc-ui/components/Columns";
10
11
 
11
12
  import styles from "./SectionHeading.module.css";
12
13
 
@@ -21,40 +22,41 @@ export const SectionHeading: React.FC<SectionHeadingProps> = ({
21
22
  isCentered = false,
22
23
  ...props
23
24
  }) => (
24
- <div
25
- className={classNames({
26
- [styles["section-header"]]: true,
27
- [styles["section-header--padded"]]: isPadded,
28
- [styles["section-header--isCentered"]]: isCentered,
29
- })}
30
- {...filterAttrs(props)}
31
- >
32
- <div
33
- className={classNames({ [styles["section-header--hasImage"]]: image })}
34
- >
35
- {image && (
36
- <div>
37
- <Image {...image} width={68} fit="cover" />
38
- </div>
39
- )}
40
- <Heading
41
- level={headingLevel}
42
- id={id}
43
- size="xl"
44
- isWordWrap={isHeadingWordWrap}
25
+ <Columns>
26
+ <ColumnsCol spanM={isPadded ? 9 : 12}>
27
+ <div
28
+ className={classNames({
29
+ [styles["sectionHeading--isCentered"]]: isCentered,
30
+ })}
31
+ {...filterAttrs(props)}
45
32
  >
46
- {heading}
47
- </Heading>
48
- </div>
49
- {content && (
50
- <>
51
- <VerticalSpace size="24" />
52
- <Text size="l" elementType="p">
53
- {content}
54
- </Text>
55
- </>
56
- )}
57
- </div>
33
+ <div
34
+ className={classNames({
35
+ [styles["sectionHeading--hasImage"]]: image,
36
+ })}
37
+ >
38
+ {image && <Image {...image} width={68} fit="cover" />}
39
+ <Heading
40
+ level={headingLevel}
41
+ id={id}
42
+ size="xl"
43
+ isWordWrap={isHeadingWordWrap}
44
+ >
45
+ {heading}
46
+ </Heading>
47
+ </div>
48
+ {content && (
49
+ <div className={styles[`sectionHeading-content`]}>
50
+ <VerticalSpace size="24" />
51
+ <Text size="l" elementType="p">
52
+ {content}
53
+ </Text>
54
+ </div>
55
+ )}
56
+ <VerticalSpace size="40" />
57
+ </div>
58
+ </ColumnsCol>
59
+ </Columns>
58
60
  );
59
61
 
60
62
  export interface SectionHeadingProps {
@@ -1,3 +1,4 @@
1
+ export * from "./HeaderBarNotification";
1
2
  export * from "./Accordion";
2
3
  export * from "./ArticleCarousel";
3
4
  export * from "./Author";
package/versions.json CHANGED
@@ -1 +1 @@
1
- ["v3.8.1","v3.8.0","v3.7.1","v3.7.0","v3.6.0","v3.5.0","v3.4.0","v3.3.0","v3.2.0","v3.1.0","v3.0.1","v3.0.0","v2.0.0","v1.1.0","v1.0.2","v1.0.1","v1.0.0","v0.1.0"]
1
+ [{"version":"v3.10.0","date":null},{"version":"v3.9.0","date":"2026-05-22"},{"version":"v3.8.1","date":"2026-05-13"},{"version":"v3.8.0","date":"2026-04-29"},{"version":"v3.7.1","date":"2026-04-22"},{"version":"v3.7.0","date":"2026-04-17"},{"version":"v3.6.0","date":"2026-04-10"},{"version":"v3.5.0","date":"2026-04-02"},{"version":"v3.4.0","date":"2026-03-26"},{"version":"v3.3.0","date":"2026-03-20"},{"version":"v3.2.0","date":"2026-03-09"},{"version":"v3.1.0","date":"2026-02-26"},{"version":"v3.0.1","date":"2026-02-18"},{"version":"v3.0.0","date":null},{"version":"v2.0.0","date":"2026-01-21"},{"version":"v1.1.0","date":"2025-11-19"},{"version":"v1.0.2","date":"2025-08-18"},{"version":"v1.0.1","date":"2025-08-05"},{"version":"v1.0.0","date":"2025-04-29"},{"version":"v0.1.0","date":null}]
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib_es6 = require('./tslib.es6-BxB9I209.cjs');
4
- var React = require('react');
5
- var index = require('./index-B7Z7sgRq.cjs');
6
- var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
7
- var Text = require('@arc-ui/components/Text');
8
- var VerticalSpace = require('@arc-ui/components/VerticalSpace');
9
- var Image = require('@arc-ui/components/Image');
10
- var Heading = require('@arc-ui/components/Heading');
11
-
12
- var styles = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--isCentered":"SectionHeading-module_section-header--isCentered__pz0V9","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
13
-
14
- var SectionHeading = function (_a) {
15
- var _b, _c;
16
- var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.isCentered, isCentered = _f === void 0 ? false : _f, props = tslib_es6.__rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel", "isCentered"]);
17
- return (React.createElement("div", tslib_es6.__assign({ className: index.classNames((_b = {},
18
- _b[styles["section-header"]] = true,
19
- _b[styles["section-header--padded"]] = isPadded,
20
- _b[styles["section-header--isCentered"]] = isCentered,
21
- _b)) }, filterAttrs.filterAttrs(props)),
22
- React.createElement("div", { className: index.classNames((_c = {}, _c[styles["section-header--hasImage"]] = image, _c)) },
23
- image && (React.createElement("div", null,
24
- React.createElement(Image.Image, tslib_es6.__assign({}, image, { width: 68, fit: "cover" })))),
25
- React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
26
- content && (React.createElement(React.Fragment, null,
27
- React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
28
- React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
29
- };
30
-
31
- exports.SectionHeading = SectionHeading;
@@ -1,29 +0,0 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-BVXMhEem.mjs';
2
- import React__default from 'react';
3
- import { c as classNames } from './index-BSO2EFem.mjs';
4
- import { f as filterAttrs } from './filter-attrs-DZ7RCEZm.mjs';
5
- import { Text } from '@arc-ui/components/Text';
6
- import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
7
- import { Image } from '@arc-ui/components/Image';
8
- import { Heading } from '@arc-ui/components/Heading';
9
-
10
- var styles = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--isCentered":"SectionHeading-module_section-header--isCentered__pz0V9","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
11
-
12
- var SectionHeading = function (_a) {
13
- var _b, _c;
14
- var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.isCentered, isCentered = _f === void 0 ? false : _f, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel", "isCentered"]);
15
- return (React__default.createElement("div", __assign({ className: classNames((_b = {},
16
- _b[styles["section-header"]] = true,
17
- _b[styles["section-header--padded"]] = isPadded,
18
- _b[styles["section-header--isCentered"]] = isCentered,
19
- _b)) }, filterAttrs(props)),
20
- React__default.createElement("div", { className: classNames((_c = {}, _c[styles["section-header--hasImage"]] = image, _c)) },
21
- image && (React__default.createElement("div", null,
22
- React__default.createElement(Image, __assign({}, image, { width: 68, fit: "cover" })))),
23
- React__default.createElement(Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
24
- content && (React__default.createElement(React__default.Fragment, null,
25
- React__default.createElement(VerticalSpace, { size: "24" }),
26
- React__default.createElement(Text, { size: "l", elementType: "p" }, content)))));
27
- };
28
-
29
- export { SectionHeading as S };