@amboss/design-system 3.19.0 → 3.19.1

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.
@@ -6,6 +6,9 @@ import { type ListItemValue } from "./CategoryList";
6
6
  import { type ButtonProps } from "../Button/Button";
7
7
  import type { PolymorphicComponentPropsWithRef } from "../../types";
8
8
  import type { RoundButtonProps } from "../RoundButton/RoundButton";
9
+ type SendButtonProps = Omit<RoundButtonProps, "icon" | "variant"> & {
10
+ icon?: "arrow-up" | "search" | "arrow-right";
11
+ };
9
12
  export type PromptInputProps = {
10
13
  "data-e2e-test-id"?: string;
11
14
  /** Toolbar elements below text area */
@@ -15,9 +18,7 @@ export type PromptInputProps = {
15
18
  };
16
19
  /** Currently shows send button processing state */
17
20
  isProcessing?: boolean;
18
- sendButtonProps?: Omit<RoundButtonProps, "icon" | "variant"> & {
19
- icon?: "arrow-up" | "search" | "arrow-right";
20
- };
21
+ sendButtonProps?: SendButtonProps;
21
22
  clearButtonAriaLabel?: string;
22
23
  hint?: ReactElement;
23
24
  /** Shows in the clear button space in empty state */
@@ -42,9 +43,7 @@ declare const PromptInputComponent: React.ForwardRefExoticComponent<{
42
43
  };
43
44
  /** Currently shows send button processing state */
44
45
  isProcessing?: boolean;
45
- sendButtonProps?: Omit<RoundButtonProps, "icon" | "variant"> & {
46
- icon?: "arrow-up" | "search" | "arrow-right";
47
- };
46
+ sendButtonProps?: SendButtonProps;
48
47
  clearButtonAriaLabel?: string;
49
48
  hint?: ReactElement;
50
49
  /** Shows in the clear button space in empty state */