@arc-ui/community-components 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +30 -30
- package/CHANGELOG.md +10 -0
- package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -2
- package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -2
- package/lib/Highlights/Highlights.cjs +1 -1
- package/lib/Highlights/Highlights.mjs +1 -1
- package/lib/index.cjs +3 -3
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +5 -1
- package/lib/index.d.mts +5 -1
- package/lib/index.mjs +3 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +7 -0
- package/src/components/Highlights/Highlights.tsx +2 -1
- package/versions.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/community-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
6
6
|
"author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"tslib": "^2.8.1",
|
|
78
78
|
"typescript": "^5.6.3",
|
|
79
79
|
"@arc-ui/community-build-utils": "^0.1.0",
|
|
80
|
-
"@arc-ui/community-eslint-config": "^0.1.1",
|
|
81
80
|
"@arc-ui/community-css-config": "^0.1.1",
|
|
82
|
-
"@arc-ui/community-
|
|
83
|
-
"@arc-ui/community-typescript-config": "^0.1.0"
|
|
81
|
+
"@arc-ui/community-eslint-config": "^0.1.1",
|
|
82
|
+
"@arc-ui/community-typescript-config": "^0.1.0",
|
|
83
|
+
"@arc-ui/community-utils": "^0.2.0"
|
|
84
84
|
},
|
|
85
85
|
"browserslist": [
|
|
86
86
|
"defaults",
|
|
@@ -2,6 +2,7 @@ import React, { FC } from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { TabbedBanner } from "@arc-ui/components/TabbedBanner";
|
|
4
4
|
import { TemplateBannerProps } from "@arc-ui/components/TemplateBanner";
|
|
5
|
+
import { type HeadingLevel } from "@arc-ui/components/Heading";
|
|
5
6
|
import { SectionHeading, SectionHeadingProps } from "../SectionHeading";
|
|
6
7
|
import styles from "./BannerWithTabs.module.css";
|
|
7
8
|
import { filterAttrs } from "@arc-ui/community-utils/filter-attrs";
|
|
@@ -10,6 +11,7 @@ export const BannerWithTabs: FC<BannerWithTabsProps> = ({
|
|
|
10
11
|
tabs,
|
|
11
12
|
defaultValue,
|
|
12
13
|
heading,
|
|
14
|
+
headingLevel,
|
|
13
15
|
content,
|
|
14
16
|
id,
|
|
15
17
|
isHeadingWordWrap,
|
|
@@ -29,6 +31,7 @@ export const BannerWithTabs: FC<BannerWithTabsProps> = ({
|
|
|
29
31
|
id={id}
|
|
30
32
|
isHeadingWordWrap={isHeadingWordWrap}
|
|
31
33
|
heading={heading}
|
|
34
|
+
headingLevel={headingLevel}
|
|
32
35
|
content={content}
|
|
33
36
|
isPadded={alignTypography === "left" ? true : false}
|
|
34
37
|
/>
|
|
@@ -78,6 +81,10 @@ export interface BannerWithTabsProps
|
|
|
78
81
|
* heading for `SectionHeading`.
|
|
79
82
|
*/
|
|
80
83
|
heading: string;
|
|
84
|
+
/**
|
|
85
|
+
* Heading level for `SectionHeading`.
|
|
86
|
+
*/
|
|
87
|
+
headingLevel?: HeadingLevel;
|
|
81
88
|
/**
|
|
82
89
|
* Text content for `SectionHeading`.
|
|
83
90
|
*/
|
|
@@ -53,6 +53,7 @@ export const Highlights: React.FC<HighlightsProps> = ({
|
|
|
53
53
|
label={cta.label}
|
|
54
54
|
href={cta.href}
|
|
55
55
|
onClick={cta.onClick}
|
|
56
|
+
target={cta.target}
|
|
56
57
|
size="m"
|
|
57
58
|
ariaLabel={cta.ariaLabel}
|
|
58
59
|
buttonStyle={cta.buttonStyle}
|
|
@@ -98,7 +99,7 @@ export interface HighlightsProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
|
98
99
|
*/
|
|
99
100
|
export type HighlightsCTAProps = Pick<
|
|
100
101
|
ButtonV2Props,
|
|
101
|
-
"label" | "href" | "onClick" | "iconPosition" | "ariaLabel"
|
|
102
|
+
"label" | "href" | "onClick" | "iconPosition" | "ariaLabel" | "target"
|
|
102
103
|
> & {
|
|
103
104
|
/**
|
|
104
105
|
* Allowed button styles only.
|
package/versions.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
["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.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"]
|