@s_mart/form 2.8.8 → 2.8.9
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/dist/index.d.ts +20 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -394,12 +394,30 @@ type TimePickerProps = Omit<UseControllerProps, 'control'> & Pick<TextFieldProps
|
|
|
394
394
|
|
|
395
395
|
declare const _default$1: react.MemoExoticComponent<({ rules, defaultValue, shouldUnregister, name, required, label, timePickerProps, placeholder, ...rest }: TimePickerProps) => JSX.Element>;
|
|
396
396
|
|
|
397
|
-
type
|
|
397
|
+
type AutoCompleteOption = {
|
|
398
|
+
key?: string | number;
|
|
399
|
+
label: string;
|
|
400
|
+
value: string | number | readonly string[] | undefined;
|
|
401
|
+
};
|
|
402
|
+
type AutocompleteProps<T = any> = Omit<UseControllerProps, 'control'> & Omit<AutocompleteProps$1<T, any, any, any>, 'renderInput' | 'size' | 'onInputChange' | 'onChange' | 'options'> & {
|
|
403
|
+
/**
|
|
404
|
+
* Opções do autocomplete
|
|
405
|
+
* @default []
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* [
|
|
409
|
+
* { label: 'Opção 1', value: '1' },
|
|
410
|
+
* ]
|
|
411
|
+
*
|
|
412
|
+
* @type {AutoCompleteOption[]}
|
|
413
|
+
* @memberof AutocompleteProps
|
|
414
|
+
*/
|
|
415
|
+
options: AutoCompleteOption[];
|
|
398
416
|
/**
|
|
399
417
|
* Props do textField que é renderizado dentro do autocomplete
|
|
400
418
|
* @default {}
|
|
401
419
|
* @type {TextFieldProps}
|
|
402
|
-
* @memberof
|
|
420
|
+
* @memberof AutocompleteProps
|
|
403
421
|
*/
|
|
404
422
|
textFieldProps?: TextFieldProps$1;
|
|
405
423
|
label?: React.ReactNode;
|