@arc-ui/community-components 3.7.1 → 3.8.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @arc-ui/community-components@3.7.1 build /builds/enterprise/frontend/arc-community/packages/components
2
+ > @arc-ui/community-components@3.8.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 8 months old. Please run:
@@ -7,39 +7,40 @@ Browserslist: browsers data (caniuse-lite) is 8 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 7.6s
10
+ created lib/index.cjs, lib/index.mjs in 6.3s
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/Avatar (imported by "lib/types/components/Author/Author.d.ts")
16
- @arc-ui/components/MediaCard (imported by "lib/types/components/ArticleCarousel/ArticleCarousel.d.ts", "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts")
17
- @arc-ui/components/Download (imported by "lib/types/components/DownloadList/DownloadList.d.ts")
18
- @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/BannerWithTabs/BannerWithTabs.d.ts", "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/ArticleSidebar/types/text-section.d.ts", "lib/types/components/ArticleSidebar/types/share.d.ts", "lib/types/components/ArticleSidebar/types/link-section.d.ts" and "lib/types/components/ArticleSidebar/types/topic.d.ts")
15
+ @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/BannerWithTabs/BannerWithTabs.d.ts", "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/PartnerBrandLogos/PartnerBrandLogos.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/ArticleSidebar/types/link-section.d.ts", "lib/types/components/ArticleSidebar/types/share.d.ts", "lib/types/components/ArticleSidebar/types/text-section.d.ts", "lib/types/components/ArticleSidebar/types/topic.d.ts" and "lib/types/components/PartnerBrandLogos/components/PartnerLogoSubgroup/PartnerLogoSubgroup.d.ts")
19
16
  @arc-ui/components/VideoPlayer (imported by "lib/types/components/CopyLead/CopyLead.d.ts" and "lib/types/components/FeaturePost/FeaturePost.d.ts")
20
- @arc-ui/components/ButtonV2 (imported by "lib/types/components/Highlights/Highlights.d.ts" and "lib/types/components/PromoListing/PromoListing.d.ts")
17
+ @arc-ui/components/MediaCard (imported by "lib/types/components/ArticleCarousel/ArticleCarousel.d.ts", "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts")
18
+ @arc-ui/components/Avatar (imported by "lib/types/components/Author/Author.d.ts")
21
19
  @arc-ui/components/ImpactCard (imported by "lib/types/components/PromoListing/PromoListing.d.ts")
22
20
  @arc-ui/components/InformationCard (imported by "lib/types/components/PromoListing/PromoListing.d.ts", "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts" and "lib/types/components/ProductNavigation/types/product-list.d.ts")
23
21
  @arc-ui/components/TypographyCard (imported by "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/BusinessSegmentSwitcher/types/types.d.ts")
22
+ @arc-ui/components/ButtonV2 (imported by "lib/types/components/PromoListing/PromoListing.d.ts" and "lib/types/components/Highlights/Highlights.d.ts")
23
+ @arc-ui/components/Download (imported by "lib/types/components/DownloadList/DownloadList.d.ts")
24
24
  @arc-ui/components/TemplateBanner (imported by "lib/types/components/BannerWithTabs/BannerWithTabs.d.ts")
25
25
  @arc-ui/components/Image (imported by "lib/types/components/SectionHeading/SectionHeading.d.ts", "lib/types/components/ThumbnailSignpost/ThumbnailSignpost.d.ts", "lib/types/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts", "lib/types/components/CopyLead/types/copy-lead-image.d.ts" and "lib/types/components/FeaturePost/types/feature-post-image.d.ts")
26
+ @arc-ui/components/VerticalSpace (imported by "lib/types/components/PartnerBrandLogos/PartnerBrandLogos.d.ts")
26
27
  @arc-ui/components/Disclosure (imported by "lib/types/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts")
27
28
  @arc-ui/components/Tag (imported by "lib/types/components/ArticleSidebar/types/topic.d.ts")
28
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")
29
30
  @arc-ui/components/AppButton (imported by "lib/types/components/FeaturePost/types/feature-post-app-button-footer.d.ts")
30
31
  react-player/types (imported by "lib/types/internal/VideoCardPlayer/VideoCardPlayer.d.ts" and "lib/types/internal/VideoCardPlayer/types/player-props.d.ts")
31
32
  @arc-ui/components/Visible (imported by "lib/types/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.d.ts")
32
- created lib/index.d.mts, lib/index.d.cts in 193ms
33
+ created lib/index.d.mts, lib/index.d.cts in 175ms
33
34
  
34
- ./src/components/Accordion/index.ts, ./src/components/ActionTile/index.ts, ./src/components/ArticleCarousel/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/BusinessSegmentSwitcher/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/index.ts, ./src/components/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts → lib...
35
- created lib in 10.1s
35
+ ./src/components/Accordion/index.ts, ./src/components/ActionTile/index.ts, ./src/components/ArticleCarousel/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/BusinessSegmentSwitcher/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/index.ts, ./src/components/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/PartnerBrandLogos/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts → lib...
36
+ created lib in 8.1s
36
37
  
37
- ./src/components/Accordion/index.ts, ./src/components/ActionTile/index.ts, ./src/components/ArticleCarousel/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/BusinessSegmentSwitcher/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/index.ts, ./src/components/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts → lib...
38
- created lib in 9s
38
+ ./src/components/Accordion/index.ts, ./src/components/ActionTile/index.ts, ./src/components/ArticleCarousel/index.ts, ./src/components/ArticleSidebar/index.ts, ./src/components/Author/index.ts, ./src/components/BannerWithTabs/index.ts, ./src/components/BusinessSegmentSwitcher/index.ts, ./src/components/ContentInfoWidget/index.ts, ./src/components/CopyLead/index.ts, ./src/components/DownloadList/index.ts, ./src/components/FAQs/index.ts, ./src/components/FeaturePost/index.ts, ./src/components/Highlights/index.ts, ./src/components/InlineLinkGroup/index.ts, ./src/components/LinkTile/index.ts, ./src/components/PartnerBrandLogos/index.ts, ./src/components/ProductNavigation/index.ts, ./src/components/PromoListing/index.ts, ./src/components/PromoListingThumbnailSignpost/index.ts, ./src/components/Quote/index.ts, ./src/components/SectionHeading/index.ts, ./src/components/Statistics/index.ts, ./src/components/Summary/index.ts, ./src/components/ThumbnailSignpost/index.ts, ./src/components/VideoHeroCard/index.ts, ./src/components/VideoPortraitCard/index.ts → lib...
39
+ created lib in 6.4s
39
40
  Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
40
41
  npx update-browserslist-db@latest
41
42
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
42
43
 
43
- > @arc-ui/community-components@3.7.1 build:clean /builds/enterprise/frontend/arc-community/packages/components
44
+ > @arc-ui/community-components@3.8.0 build:clean /builds/enterprise/frontend/arc-community/packages/components
44
45
  > rimraf ./lib/types ./lib/styles.js ./lib/index.js ./lib/index.js.map
45
46
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @arc-ui/community-components
2
2
 
3
+ ## 3.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9f20f3f: Partner Logo Section component created to list out partners
8
+
3
9
  ## 3.7.1
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
4
+ var React = require('react');
5
+ var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
6
+ var Heading = require('@arc-ui/components/Heading');
7
+ var Text = require('@arc-ui/components/Text');
8
+ var Rule = require('@arc-ui/components/Rule');
9
+ var VerticalSpace = require('@arc-ui/components/VerticalSpace');
10
+ var Columns = require('@arc-ui/components/Columns');
11
+
12
+ var styles$1 = {"subgroupHeader":"PartnerLogoSubgroup-module_subgroupHeader__rXAai","logoGroup":"PartnerLogoSubgroup-module_logoGroup__RYsTN","logoWrapper":"PartnerLogoSubgroup-module_logoWrapper__tyxVI","logoImage":"PartnerLogoSubgroup-module_logoImage__h7DJd"};
13
+
14
+ var PartnerLogoSubgroup = function (_a) {
15
+ var subheading = _a.subheading, text = _a.text, headingLevel = _a.headingLevel, logos = _a.logos, _b = _a.tileHeight, tileHeight = _b === void 0 ? 72 : _b;
16
+ var hasHeader = subheading || text;
17
+ var id = React.useId();
18
+ return (React.createElement(React.Fragment, null,
19
+ hasHeader && (React.createElement("div", { className: styles$1.subgroupHeader },
20
+ React.createElement(Columns.Columns, { isGutterless: true },
21
+ React.createElement(Columns.ColumnsCol, { spanL: 9, spanXL: 8 },
22
+ subheading && (React.createElement(Heading.Heading, { level: headingLevel, size: "s", isResponsive: false }, subheading)),
23
+ subheading && text && React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
24
+ text && (React.createElement(Text.Text, { size: "m", tone: "supporting" }, text)))))),
25
+ React.createElement("div", { className: styles$1.logoGroup }, logos.map(function (logo, j) { return (React.createElement("div", { key: "".concat(id, "-logo-").concat(j), className: styles$1.logoWrapper, style: { height: tileHeight } },
26
+ React.createElement("img", { src: logo.src, alt: logo.alt, className: styles$1.logoImage }))); }))));
27
+ };
28
+
29
+ var styles = {"subgroupList":"PartnerBrandLogos-module_subgroupList__4e1kv"};
30
+
31
+ var getSubheadingLevel = function (parentLevel, subLevel) {
32
+ return subLevel !== null && subLevel !== void 0 ? subLevel : String(Math.min(Number(parentLevel) + 1, 6));
33
+ };
34
+ var PartnerBrandLogos = function (_a) {
35
+ var heading = _a.heading, headingProps = _a.headingProps, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, content = _a.content, id = _a.id, _c = _a.rulerTopPadding, rulerTopPadding = _c === void 0 ? { size: "32" } : _c, _d = _a.rulerBottomPadding, rulerBottomPadding = _d === void 0 ? { size: "32" } : _d, subgroups = _a.subgroups, props = tslib_es6.__rest(_a, ["heading", "headingProps", "headingLevel", "content", "id", "rulerTopPadding", "rulerBottomPadding", "subgroups"]);
36
+ var componentId = React.useId();
37
+ var _e = headingProps !== null && headingProps !== void 0 ? headingProps : {}, _f = _e.size, headingSize = _f === void 0 ? "l" : _f, _g = _e.isResponsive, headingIsResponsive = _g === void 0 ? true : _g, restHeadingProps = tslib_es6.__rest(_e, ["size", "isResponsive"]);
38
+ return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
39
+ React.createElement(Columns.Columns, { isGutterless: true },
40
+ React.createElement(Columns.ColumnsCol, { spanL: 9, spanXL: 8 },
41
+ React.createElement(Heading.Heading, tslib_es6.__assign({ level: headingLevel, id: id, size: headingSize, isResponsive: headingIsResponsive }, restHeadingProps), heading),
42
+ content && (React.createElement(React.Fragment, null,
43
+ React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
44
+ content
45
+ .split(/\\n|\n/)
46
+ .filter(function (p) { return p.trim(); })
47
+ .map(function (paragraph, i) { return (React.createElement(React.Fragment, { key: "content-".concat(componentId, "-").concat(i) },
48
+ i > 0 && React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
49
+ React.createElement(Text.Text, { size: "m", elementType: "p" }, paragraph))); }))))),
50
+ React.createElement(VerticalSpace.VerticalSpace, tslib_es6.__assign({}, rulerTopPadding)),
51
+ React.createElement(Rule.Rule, null),
52
+ React.createElement(VerticalSpace.VerticalSpace, tslib_es6.__assign({}, rulerBottomPadding)),
53
+ React.createElement("ul", { className: styles.subgroupList }, subgroups.map(function (subgroup, i) { return (React.createElement("li", { key: "subgroup-".concat(componentId, "-").concat(i) },
54
+ React.createElement(PartnerLogoSubgroup, { subheading: subgroup.subheading, text: subgroup.text, headingLevel: getSubheadingLevel(headingLevel, subgroup.subheadingLevel), logos: subgroup.logos, tileHeight: subgroup.tileHeight }))); }))));
55
+ };
56
+
57
+ exports.PartnerBrandLogos = PartnerBrandLogos;
@@ -0,0 +1,55 @@
1
+ import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
2
+ import React__default, { useId } from 'react';
3
+ import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
4
+ import { Heading } from '@arc-ui/components/Heading';
5
+ import { Text } from '@arc-ui/components/Text';
6
+ import { Rule } from '@arc-ui/components/Rule';
7
+ import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
8
+ import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
9
+
10
+ var styles$1 = {"subgroupHeader":"PartnerLogoSubgroup-module_subgroupHeader__rXAai","logoGroup":"PartnerLogoSubgroup-module_logoGroup__RYsTN","logoWrapper":"PartnerLogoSubgroup-module_logoWrapper__tyxVI","logoImage":"PartnerLogoSubgroup-module_logoImage__h7DJd"};
11
+
12
+ var PartnerLogoSubgroup = function (_a) {
13
+ var subheading = _a.subheading, text = _a.text, headingLevel = _a.headingLevel, logos = _a.logos, _b = _a.tileHeight, tileHeight = _b === void 0 ? 72 : _b;
14
+ var hasHeader = subheading || text;
15
+ var id = useId();
16
+ return (React__default.createElement(React__default.Fragment, null,
17
+ hasHeader && (React__default.createElement("div", { className: styles$1.subgroupHeader },
18
+ React__default.createElement(Columns, { isGutterless: true },
19
+ React__default.createElement(ColumnsCol, { spanL: 9, spanXL: 8 },
20
+ subheading && (React__default.createElement(Heading, { level: headingLevel, size: "s", isResponsive: false }, subheading)),
21
+ subheading && text && React__default.createElement(VerticalSpace, { size: "8" }),
22
+ text && (React__default.createElement(Text, { size: "m", tone: "supporting" }, text)))))),
23
+ React__default.createElement("div", { className: styles$1.logoGroup }, logos.map(function (logo, j) { return (React__default.createElement("div", { key: "".concat(id, "-logo-").concat(j), className: styles$1.logoWrapper, style: { height: tileHeight } },
24
+ React__default.createElement("img", { src: logo.src, alt: logo.alt, className: styles$1.logoImage }))); }))));
25
+ };
26
+
27
+ var styles = {"subgroupList":"PartnerBrandLogos-module_subgroupList__4e1kv"};
28
+
29
+ var getSubheadingLevel = function (parentLevel, subLevel) {
30
+ return subLevel !== null && subLevel !== void 0 ? subLevel : String(Math.min(Number(parentLevel) + 1, 6));
31
+ };
32
+ var PartnerBrandLogos = function (_a) {
33
+ var heading = _a.heading, headingProps = _a.headingProps, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, content = _a.content, id = _a.id, _c = _a.rulerTopPadding, rulerTopPadding = _c === void 0 ? { size: "32" } : _c, _d = _a.rulerBottomPadding, rulerBottomPadding = _d === void 0 ? { size: "32" } : _d, subgroups = _a.subgroups, props = __rest(_a, ["heading", "headingProps", "headingLevel", "content", "id", "rulerTopPadding", "rulerBottomPadding", "subgroups"]);
34
+ var componentId = useId();
35
+ var _e = headingProps !== null && headingProps !== void 0 ? headingProps : {}, _f = _e.size, headingSize = _f === void 0 ? "l" : _f, _g = _e.isResponsive, headingIsResponsive = _g === void 0 ? true : _g, restHeadingProps = __rest(_e, ["size", "isResponsive"]);
36
+ return (React__default.createElement("div", __assign({}, filterAttrs(props)),
37
+ React__default.createElement(Columns, { isGutterless: true },
38
+ React__default.createElement(ColumnsCol, { spanL: 9, spanXL: 8 },
39
+ React__default.createElement(Heading, __assign({ level: headingLevel, id: id, size: headingSize, isResponsive: headingIsResponsive }, restHeadingProps), heading),
40
+ content && (React__default.createElement(React__default.Fragment, null,
41
+ React__default.createElement(VerticalSpace, { size: "16" }),
42
+ content
43
+ .split(/\\n|\n/)
44
+ .filter(function (p) { return p.trim(); })
45
+ .map(function (paragraph, i) { return (React__default.createElement(React__default.Fragment, { key: "content-".concat(componentId, "-").concat(i) },
46
+ i > 0 && React__default.createElement(VerticalSpace, { size: "8" }),
47
+ React__default.createElement(Text, { size: "m", elementType: "p" }, paragraph))); }))))),
48
+ React__default.createElement(VerticalSpace, __assign({}, rulerTopPadding)),
49
+ React__default.createElement(Rule, null),
50
+ React__default.createElement(VerticalSpace, __assign({}, rulerBottomPadding)),
51
+ React__default.createElement("ul", { className: styles.subgroupList }, subgroups.map(function (subgroup, i) { return (React__default.createElement("li", { key: "subgroup-".concat(componentId, "-").concat(i) },
52
+ React__default.createElement(PartnerLogoSubgroup, { subheading: subgroup.subheading, text: subgroup.text, headingLevel: getSubheadingLevel(headingLevel, subgroup.subheadingLevel), logos: subgroup.logos, tileHeight: subgroup.tileHeight }))); }))));
53
+ };
54
+
55
+ export { PartnerBrandLogos };
@@ -0,0 +1 @@
1
+ .PartnerBrandLogos-module_subgroupList__4e1kv{display:flex;flex-direction:column;gap:32px;list-style:none;margin:0;padding:0}