@stenajs-webui/elements 21.42.1 → 21.43.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,9 +1,9 @@
1
1
  import * as React from "react";
2
- import { ReactNode } from "react";
2
+ import { AriaAttributes, ReactNode } from "react";
3
3
  import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
4
- import { HeadingVariant } from "@stenajs-webui/core";
4
+ import { DivProps, HeadingVariant } from "@stenajs-webui/core";
5
5
  export type BannerVariant = "standard" | "info" | "success" | "warning" | "error";
6
- export interface BannerProps {
6
+ export interface BannerProps extends AriaAttributes {
7
7
  icon?: IconDefinition;
8
8
  headerText?: string;
9
9
  headingLevel?: HeadingVariant;
@@ -12,5 +12,10 @@ export interface BannerProps {
12
12
  contentRight?: ReactNode;
13
13
  variant?: BannerVariant;
14
14
  children?: ReactNode;
15
+ /**
16
+ * The role prop of the element, used for accessibility.
17
+ * If not set, it will default to "status" when variant is success, error or warning, otherwise not set.
18
+ */
19
+ role?: DivProps["role"];
15
20
  }
16
21
  export declare const Banner: React.FC<BannerProps>;