@foundationui/smart-input
Advanced tools
Comparing version 1.0.81 to 1.0.82
@@ -55,7 +55,7 @@ import React, { HTMLAttributes, MutableRefObject } from 'react'; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is shown to the user. | ||
*/ | ||
onShowCompletion?: (completion: string) => void; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is accepted by the user. | ||
*/ | ||
@@ -62,0 +62,0 @@ onAcceptCompletion?: (completion: string) => void; |
@@ -55,7 +55,7 @@ import React, { HTMLAttributes, MutableRefObject } from 'react'; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is shown to the user. | ||
*/ | ||
onShowCompletion?: (completion: string) => void; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is accepted by the user. | ||
*/ | ||
@@ -62,0 +62,0 @@ onAcceptCompletion?: (completion: string) => void; |
@@ -56,7 +56,7 @@ import React, { HTMLAttributes, MutableRefObject } from 'react'; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is shown to the user. | ||
*/ | ||
onShowCompletion?: (completion: string) => void; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is accepted by the user. | ||
*/ | ||
@@ -63,0 +63,0 @@ onAcceptCompletion?: (completion: string) => void; |
@@ -55,7 +55,7 @@ import React, { HTMLAttributes, MutableRefObject } from 'react'; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is shown to the user. | ||
*/ | ||
onShowCompletion?: (completion: string) => void; | ||
/** | ||
* Called when the input loses focus. | ||
* Called when a non-empty completion is accepted by the user. | ||
*/ | ||
@@ -62,0 +62,0 @@ onAcceptCompletion?: (completion: string) => void; |
{ | ||
"name": "@foundationui/smart-input", | ||
"version": "1.0.81", | ||
"version": "1.0.82", | ||
"description": "Smart input/textarea component for React. Learns to provide inline, tab-completeable suggestions.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -204,3 +204,3 @@ # `<SmartInput>` | ||
#### `renderPlaceholder: undefined | (props: any) => React.ReactElement` | ||
#### `renderPlaceholder: ((props: any) => React.ReactElement) | undefined` | ||
@@ -229,2 +229,10 @@ Invoked to display placeholder text, returns a React element. You should use an inline display element (e.g. `span`) and spread props, like so: | ||
#### `onShowCompletion: ((completion: string) => void) | undefined` | ||
Called when a non-empty completion is shown to the user. | ||
#### `onAcceptCompletion: ((completion: string) => void) | undefined` | ||
Called when a non-empty completion is accepted by the user. | ||
#### `onBlur: React.FocusEventHandler<HTMLElement> | undefined` | ||
@@ -231,0 +239,0 @@ |
Sorry, the diff of this file is not supported yet
598593
265