@luscii-healthtech/web-ui 9.0.0 → 9.0.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.
@@ -1,4 +1,24 @@
1
1
  import React from "react";
2
- import { InputProps } from "./Input";
3
- export type SearchInputProps = Omit<InputProps, "icon" | "withSuffix" | "withPrefix" | "type" | "clearable">;
4
- export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
2
+ import Input from "./Input";
3
+ type InputProps = React.ComponentProps<typeof Input>;
4
+ export type SearchInputProps = Omit<InputProps, "icon" | "type" | "width" | "clearable" | "withSuffix" | "withPrefix" | "asFormField" | "isError"> & {
5
+ /**
6
+ * WARNING: Please note that this value is currently not passed on to the
7
+ * component. It's not deprecated, it will most likely be implemented correctly
8
+ * at a later stage.
9
+ */
10
+ width?: InputProps["width"];
11
+ /**
12
+ * @deprecated
13
+ * A search input should never be used in a form with multiple fields.
14
+ */
15
+ asFormField?: InputProps["asFormField"];
16
+ /**
17
+ * @deprecated
18
+ * A search input should never be in error state, because the
19
+ * user cannot do anything wrong when typing in this field.
20
+ */
21
+ isError?: InputProps["isError"];
22
+ };
23
+ export declare const SearchInput: React.ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
24
+ export {};