@hexure/ui 1.8.17 → 1.9.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.
- package/README.md +6 -1
- package/dist/cjs/index.js +190 -89
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Theme.d.ts +6 -0
- package/dist/cjs/types/components/Input/Input.d.ts +4 -0
- package/dist/esm/index.js +190 -89
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Theme.d.ts +6 -0
- package/dist/esm/types/components/Input/Input.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -24,6 +24,8 @@ export interface InputProps extends AccessibleProps {
|
|
|
24
24
|
onChange?: (e?: any) => void;
|
|
25
25
|
/** A method to be called when the use presses a key */
|
|
26
26
|
onKeyDown?: (e?: any) => void;
|
|
27
|
+
/** A method to be called when a suggested value is selected */
|
|
28
|
+
onSuggestedSelect?: (e?: any) => void;
|
|
27
29
|
/** Display placeholder text in the input */
|
|
28
30
|
placeholder?: string;
|
|
29
31
|
/** Display the input as read only, preventing the user from inteacting with it */
|
|
@@ -36,6 +38,8 @@ export interface InputProps extends AccessibleProps {
|
|
|
36
38
|
type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
|
|
37
39
|
/** Set the value of the input. This should be used by the parent component to control the input's value. */
|
|
38
40
|
value?: string;
|
|
41
|
+
/** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
|
|
42
|
+
suggestedValues?: string[];
|
|
39
43
|
}
|
|
40
44
|
declare const Input: FC<InputProps>;
|
|
41
45
|
export default Input;
|
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,8 @@ interface InputProps extends AccessibleProps {
|
|
|
319
319
|
onChange?: (e?: any) => void;
|
|
320
320
|
/** A method to be called when the use presses a key */
|
|
321
321
|
onKeyDown?: (e?: any) => void;
|
|
322
|
+
/** A method to be called when a suggested value is selected */
|
|
323
|
+
onSuggestedSelect?: (e?: any) => void;
|
|
322
324
|
/** Display placeholder text in the input */
|
|
323
325
|
placeholder?: string;
|
|
324
326
|
/** Display the input as read only, preventing the user from inteacting with it */
|
|
@@ -331,6 +333,8 @@ interface InputProps extends AccessibleProps {
|
|
|
331
333
|
type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
|
|
332
334
|
/** Set the value of the input. This should be used by the parent component to control the input's value. */
|
|
333
335
|
value?: string;
|
|
336
|
+
/** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
|
|
337
|
+
suggestedValues?: string[];
|
|
334
338
|
}
|
|
335
339
|
declare const Input: FC<InputProps>;
|
|
336
340
|
|