@arc-ui/community-components 3.8.0 → 3.9.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 (71) hide show
  1. package/.turbo/turbo-build.log +12 -12
  2. package/CHANGELOG.md +22 -0
  3. package/lib/ActionTile/ActionTile.cjs +2 -2
  4. package/lib/ActionTile/ActionTile.mjs +2 -2
  5. package/lib/ArticleCarousel/ArticleCarousel.cjs +3 -2
  6. package/lib/ArticleCarousel/ArticleCarousel.mjs +3 -2
  7. package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -1
  8. package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -1
  9. package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.cjs +2 -1
  10. package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.mjs +2 -1
  11. package/lib/CopyLead/CopyLead.cjs +2 -2
  12. package/lib/CopyLead/CopyLead.mjs +2 -2
  13. package/lib/DownloadList/DownloadList.cjs +12 -9
  14. package/lib/DownloadList/DownloadList.mjs +12 -9
  15. package/lib/DownloadList/styles.css +1 -1
  16. package/lib/FAQs/FAQs.cjs +2 -1
  17. package/lib/FAQs/FAQs.mjs +2 -1
  18. package/lib/FeaturePost/FeaturePost.cjs +1 -1
  19. package/lib/FeaturePost/FeaturePost.mjs +1 -1
  20. package/lib/Highlights/Highlights.cjs +2 -1
  21. package/lib/Highlights/Highlights.mjs +2 -1
  22. package/lib/InlineLinkGroup/InlineLinkGroup.cjs +2 -2
  23. package/lib/InlineLinkGroup/InlineLinkGroup.mjs +2 -2
  24. package/lib/ProductNavigation/ProductNavigation.cjs +7 -4
  25. package/lib/ProductNavigation/ProductNavigation.mjs +7 -4
  26. package/lib/PromoListing/PromoListing.cjs +5 -4
  27. package/lib/PromoListing/PromoListing.mjs +5 -4
  28. package/lib/PromoListing/styles.css +1 -1
  29. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +4 -2
  30. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +4 -2
  31. package/lib/SectionHeading/SectionHeading.cjs +2 -1
  32. package/lib/SectionHeading/SectionHeading.mjs +2 -1
  33. package/lib/SectionHeading/styles.css +1 -1
  34. package/lib/Statistics/Statistics.cjs +1 -1
  35. package/lib/Statistics/Statistics.mjs +1 -1
  36. package/lib/Summary/Summary.cjs +1 -1
  37. package/lib/Summary/Summary.mjs +1 -1
  38. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -1
  39. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -1
  40. package/lib/ThumbnailSignpost/styles.css +1 -1
  41. package/lib/_shared/cjs/SectionHeading-XCMdv8eZ.cjs +34 -0
  42. package/lib/_shared/cjs/{ThumbnailSignpost-ja1yxriK.cjs → ThumbnailSignpost-DymZmLlB.cjs} +6 -2
  43. package/lib/_shared/cjs/{index.es-Dg_lyAyh.cjs → index.es-B73RVhhj.cjs} +1 -1
  44. package/lib/_shared/esm/SectionHeading-lyXLUtdr.mjs +32 -0
  45. package/lib/_shared/esm/{ThumbnailSignpost-Cc21FjUJ.mjs → ThumbnailSignpost-D6uye3mm.mjs} +7 -3
  46. package/lib/_shared/esm/{index.es-DtCgfyRV.mjs → index.es-DNGykRl2.mjs} +1 -1
  47. package/lib/index.cjs +45 -35
  48. package/lib/index.cjs.map +1 -1
  49. package/lib/index.d.cts +16 -4
  50. package/lib/index.d.mts +16 -4
  51. package/lib/index.mjs +46 -36
  52. package/lib/index.mjs.map +1 -1
  53. package/lib/styles.css +1 -1
  54. package/package.json +15 -15
  55. package/src/components/ActionTile/ActionTile.tsx +9 -3
  56. package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.tsx +5 -1
  57. package/src/components/BusinessSegmentSwitcher/types/types.ts +6 -3
  58. package/src/components/DownloadList/DownloadList.module.css +11 -3
  59. package/src/components/DownloadList/DownloadList.tsx +33 -17
  60. package/src/components/InlineLinkGroup/InlineLinkGroup.tsx +4 -1
  61. package/src/components/PartnerBrandLogos/components/PartnerLogoSubgroup/PartnerLogoSubgroup.tsx +2 -4
  62. package/src/components/ProductNavigation/ProductNavigation.tsx +6 -5
  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/ThumbnailSignpost/ThumbnailSignpost.module.css +31 -1
  68. package/src/components/ThumbnailSignpost/ThumbnailSignpost.tsx +7 -2
  69. package/versions.json +1 -1
  70. package/lib/_shared/cjs/SectionHeading-DtYzFetD.cjs +0 -31
  71. package/lib/_shared/esm/SectionHeading-RLfs7ete.mjs +0 -29
@@ -8,7 +8,7 @@
8
8
  .thumbnailSignpost {
9
9
  display: inline-flex;
10
10
  flex-direction: row;
11
- gap: var(--arc-size-grid-gutter-s);
11
+ gap: var(--arc-size-grid-gutter-m);
12
12
  max-width: 720px;
13
13
  }
14
14
 
@@ -20,6 +20,10 @@
20
20
  border-radius: calc(var(--thumbnail-signpost-border-radius-s) + 2px);
21
21
  }
22
22
 
23
+ .onDarkSurface.isLink:focus {
24
+ outline-color: var(--focus-colors-dark-border-subtle);
25
+ }
26
+
23
27
  .isLink:hover {
24
28
  cursor: pointer;
25
29
  }
@@ -44,6 +48,12 @@
44
48
  text-decoration: underline;
45
49
  }
46
50
 
51
+ .onDarkSurface.isLink:hover .heading,
52
+ .onDarkSurface.isLink:focus .heading {
53
+ color: var(--surface-colors-bg-light-white);
54
+ text-decoration: underline;
55
+ }
56
+
47
57
  .image {
48
58
  width: calc(
49
59
  (((100% + var(--arc-size-grid-gutter-s)) / 12) * 6) -
@@ -99,14 +109,34 @@
99
109
  width: 100%;
100
110
  }
101
111
 
112
+ .onDarkSurface .buttonIcon {
113
+ background: var(--surface-colors-bg-light-white);
114
+ }
115
+
116
+ .onDarkSurface .thumbnailButton {
117
+ color: var(--surface-colors-bg-light-white);
118
+ }
119
+
102
120
  .isLink:focus .buttonIcon,
103
121
  .isLink:hover .buttonIcon {
104
122
  background: var(--button-v2-colors-light-text-hover);
105
123
  }
106
124
 
125
+ .onDarkSurface.isLink:focus .buttonIcon,
126
+ .onDarkSurface.isLink:hover .buttonIcon {
127
+ background: var(--button-v2-colors-dark-text-hover);
128
+ }
129
+
107
130
  .isLink:hover .thumbnailButton,
108
131
  .isLink:focus .thumbnailButton {
109
132
  background: none;
110
133
  color: var(--button-v2-colors-light-text-hover);
111
134
  text-decoration: var(--sem-underline);
112
135
  }
136
+
137
+ .onDarkSurface.isLink:hover .thumbnailButton,
138
+ .onDarkSurface.isLink:focus .thumbnailButton {
139
+ background: none;
140
+ color: var(--button-v2-colors-dark-text-hover);
141
+ text-decoration: var(--sem-underline);
142
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { useContext } from "react";
2
2
 
3
3
  import classNames from "classnames";
4
4
  import styles from "./ThumbnailSignpost.module.css";
@@ -10,6 +10,7 @@ import { BtIconArrowRightFill } from "@arc-ui/icons/BtIconArrowRightFill";
10
10
  import { Image, type ImageProps } from "@arc-ui/components/Image";
11
11
  import { VerticalSpace } from "@arc-ui/components/VerticalSpace";
12
12
  import { Heading } from "@arc-ui/components/Heading";
13
+ import { SurfaceContext } from "@arc-ui/components/Surface";
13
14
 
14
15
  /** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
15
16
  export const ThumbnailSignpost = ({
@@ -20,10 +21,14 @@ export const ThumbnailSignpost = ({
20
21
  buttonLabel,
21
22
  ...props
22
23
  }: ThumbnailSignpostProps) => {
24
+ const { surface } = useContext(SurfaceContext);
25
+ const isDarkSurface = surface === "dark";
26
+
23
27
  return (
24
28
  <div
25
29
  className={classNames(styles.thumbnailSignpost, {
26
30
  [styles.isLink]: onClick,
31
+ [styles.onDarkSurface]: isDarkSurface,
27
32
  })}
28
33
  onClick={onClick}
29
34
  aria-label={title}
@@ -42,7 +47,7 @@ export const ThumbnailSignpost = ({
42
47
  {text}
43
48
  {buttonLabel && onClick && (
44
49
  <>
45
- <VerticalSpace size="8" />
50
+ <VerticalSpace size="32" />
46
51
  <div className={styles.thumbnailButton}>
47
52
  <span
48
53
  className={styles.buttonIcon}
package/versions.json CHANGED
@@ -1 +1 @@
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
+ ["v3.9.0","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,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 };