diff --git a/src/components/20-molecules/top-content-bar/CHANGELOG.md b/src/components/20-molecules/top-content-bar/CHANGELOG.md index 718c892f93..9b8c1fb2fe 100644 --- a/src/components/20-molecules/top-content-bar/CHANGELOG.md +++ b/src/components/20-molecules/top-content-bar/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.2.1 +- Add missing values for variant type definition. +- Add missing type definition for onClose. + ## 6.2.0 Update package scope, registry and repository URL. #2423 diff --git a/src/components/20-molecules/top-content-bar/README.md b/src/components/20-molecules/top-content-bar/README.md index d3903e873e..8ae9844ba9 100644 --- a/src/components/20-molecules/top-content-bar/README.md +++ b/src/components/20-molecules/top-content-bar/README.md @@ -9,9 +9,11 @@ There is also the possibility to add child elements. ### Variant -| Attribute | Details | -| ------------------- | ---------------------------------------------- | -| `variant="warning"` | Show a red top content bar as a warning banner | +| Attribute | Details | +| ------------------- | ---------------------------------------------- | +| `variant="warning"` | Show a red top content bar as a warning banner | +| `variant="success"` | Show a green top content bar as a success banner | +| `variant="attention"` | Show a yellow top content bar as a attention banner | ### ctatext diff --git a/src/components/20-molecules/top-content-bar/index.react.d.ts b/src/components/20-molecules/top-content-bar/index.react.d.ts index 8fcd470d5c..be641b0e44 100644 --- a/src/components/20-molecules/top-content-bar/index.react.d.ts +++ b/src/components/20-molecules/top-content-bar/index.react.d.ts @@ -1,6 +1,6 @@ import React from 'react'; -export type Variant = 'warning'; +export type Variant = 'default' | 'warning' | 'success' | 'attention'; export interface AXATopContentBarProps { variant?: Variant; @@ -13,6 +13,7 @@ export interface AXATopContentBarProps { className?: string; children?: React.ReactNode; onClick?: () => void; + onClose?: () => void; } declare function createAXATopContentBar(