@stenajs-webui/elements 23.13.0 → 23.13.2

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,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { AriaAttributes, ReactNode } from "react";
3
3
  import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
4
- import { DivProps, HeadingVariant } from "@stenajs-webui/core";
4
+ import { BoxProps, DivProps, HeadingVariant } from "@stenajs-webui/core";
5
5
  export type BannerVariant = "standard" | "info" | "success" | "warning" | "error";
6
6
  export interface BannerProps extends AriaAttributes {
7
7
  icon?: IconDefinition;
@@ -12,6 +12,7 @@ export interface BannerProps extends AriaAttributes {
12
12
  contentRight?: ReactNode;
13
13
  variant?: BannerVariant;
14
14
  children?: ReactNode;
15
+ contentFlex?: BoxProps["flex"];
15
16
  /**
16
17
  * The role prop of the element, used for accessibility.
17
18
  * If not set, it will default to "status" when variant is success, error or warning, otherwise not set.
@@ -2,5 +2,9 @@ import * as React from "react";
2
2
  import { AnchorElementProps } from "@stenajs-webui/core";
3
3
  import { CommonButtonProps } from "../../buttons/common/ButtonCommon";
4
4
  export interface BaseButtonLinkProps extends CommonButtonProps, AnchorElementProps {
5
+ /** Merges styles onto the child element instead of rendering an <a>.
6
+ * Use this to integrate with router link components (e.g. React Router, Next.js).
7
+ * When using asChild, content props (label, leftIcon, etc.) are ignored — the child controls its own content. */
8
+ asChild?: boolean;
5
9
  }
6
10
  export declare const BaseButtonLink: React.ForwardRefExoticComponent<BaseButtonLinkProps & React.RefAttributes<HTMLAnchorElement>>;