@amboss/design-system 4.11.0 → 4.12.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,5 +1,6 @@
1
1
  import React, { type ReactElement } from "react";
2
2
  import type { IconName } from "../../../components/Icon/Icon";
3
+ import type { PolymorphicComponentPropsWithRef } from "../../../types";
3
4
  import { type LinkProps } from "../../Link/Link";
4
5
  import { type HeaderProps } from "../../Typography/Header";
5
6
  import { type ButtonGroupProps } from "../ButtonGroup/ButtonGroup";
@@ -24,7 +25,8 @@ export declare namespace EmptyState {
24
25
  export { EmptyStateLink as Link };
25
26
  }
26
27
  declare function EmptyStateButtonGroup<C extends React.ElementType = "button">({ ...rest }: Omit<ButtonGroupProps<C>, "buttonSize">): React.ReactElement;
27
- declare function EmptyStateLink({ children, ...rest }: Omit<LinkProps, "size" | "color" | "weight"> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
28
+ type EmptyStateLinkProps<C extends React.ElementType> = Omit<PolymorphicComponentPropsWithRef<C, LinkProps>, "size" | "color" | "weight" | "ref"> & {
28
29
  children: React.ReactNode;
29
- }): React.ReactElement;
30
+ };
31
+ declare function EmptyStateLink<C extends React.ElementType = "a">({ children, ...rest }: EmptyStateLinkProps<C>): React.ReactElement;
30
32
  export {};
@@ -1,5 +1,6 @@
1
1
  import React, { type ReactElement } from "react";
2
2
  import type { IconName } from "../../../components/Icon/Icon";
3
+ import type { PolymorphicComponentPropsWithRef } from "../../../types";
3
4
  import { type LinkProps } from "../../Link/Link";
4
5
  import { type HeaderProps } from "../../Typography/Header";
5
6
  import { type ButtonGroupProps } from "../ButtonGroup/ButtonGroup";
@@ -24,7 +25,8 @@ export declare namespace EmptyState {
24
25
  export { EmptyStateLink as Link };
25
26
  }
26
27
  declare function EmptyStateButtonGroup<C extends React.ElementType = "button">({ ...rest }: Omit<ButtonGroupProps<C>, "buttonSize">): React.ReactElement;
27
- declare function EmptyStateLink({ children, ...rest }: Omit<LinkProps, "size" | "color" | "weight"> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
28
+ type EmptyStateLinkProps<C extends React.ElementType> = Omit<PolymorphicComponentPropsWithRef<C, LinkProps>, "size" | "color" | "weight" | "ref"> & {
28
29
  children: React.ReactNode;
29
- }): React.ReactElement;
30
+ };
31
+ declare function EmptyStateLink<C extends React.ElementType = "a">({ children, ...rest }: EmptyStateLinkProps<C>): React.ReactElement;
30
32
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboss/design-system",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
4
4
  "description": "the design system for AMBOSS products",
5
5
  "author": "AMBOSS",
6
6
  "license": "ISC",