@stenajs-webui/forms 21.3.0 → 21.4.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.
@@ -4,6 +4,7 @@ import * as React from "react";
4
4
  import { ChangeEvent, CSSProperties } from "react";
5
5
  import { MoveDirection } from "../../../hooks/UseKeyboardNavigation";
6
6
  import { FullOnChangeProps } from "../types";
7
+ export type TextInputBorderVariant = "normalBorder" | "onlyTop" | "onlyBottom" | "onlyLeft" | "onlyRight";
7
8
  export type TextInputVariant = "standard" | "loading" | "warning" | "error" | "modified" | "success";
8
9
  interface ExtraContent {
9
10
  /** React node to put to the left. Left icon is ignored if this is set. */
@@ -38,6 +39,7 @@ export interface TextInputProps extends FullOnChangeProps<string, ChangeEvent<HT
38
39
  autoFocus?: boolean;
39
40
  /** onMove callback, triggered when user tries to move outside of field using arrow keys, tab or shift+tab. */
40
41
  onMove?: (direction: MoveDirection) => void;
42
+ borderRadiusVariant?: TextInputBorderVariant;
41
43
  }
42
44
  export declare const TextInput: React.FC<TextInputProps>;
43
45
  export {};