@spscommerce/ds-react 8.0.7 → 8.1.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/lib/autocomplete/SpsAutocomplete.d.ts +4 -1
- package/lib/datepicker/utils.d.ts +2 -0
- package/lib/index.cjs.js +190 -190
- package/lib/index.es.js +6742 -6660
- package/package.json +12 -12
|
@@ -11,6 +11,7 @@ export declare type SpsAutocompleteProps = React.PropsWithChildren<SpsGlobalProp
|
|
|
11
11
|
formMeta?: SpsFormFieldMeta<string>;
|
|
12
12
|
icon?: SpsIcon;
|
|
13
13
|
onChange?: React.ChangeEventHandler;
|
|
14
|
+
onSelectionChange?: (newValue?: string) => void;
|
|
14
15
|
placeholder?: string;
|
|
15
16
|
suggestions: string[] | Promise<string[]> | ((filter?: string) => Eventually<string[]>);
|
|
16
17
|
tallOptionList?: boolean;
|
|
@@ -20,5 +21,7 @@ export declare type SpsAutocompleteProps = React.PropsWithChildren<SpsGlobalProp
|
|
|
20
21
|
maxHeightOptionListPx?: number;
|
|
21
22
|
maxHeightOptionListRem?: number;
|
|
22
23
|
disableOptionsMemoization?: boolean;
|
|
24
|
+
inputNotClearable?: boolean;
|
|
25
|
+
autoFocusOnSelection?: boolean;
|
|
23
26
|
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
24
|
-
export declare function SpsAutocomplete({ className, debounce, disabled, formControl, formMeta, onChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, tallOptionList, value, zeroState, loading, maxHeightOptionListPx, maxHeightOptionListRem, disableOptionsMemoization, "data-testid": testId, ...rest }: SpsAutocompleteProps): JSX.Element;
|
|
27
|
+
export declare function SpsAutocomplete({ className, debounce, disabled, formControl, formMeta, onChange, onSelectionChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, tallOptionList, value, zeroState, loading, maxHeightOptionListPx, maxHeightOptionListRem, disableOptionsMemoization, inputNotClearable, autoFocusOnSelection, "data-testid": testId, ...rest }: SpsAutocompleteProps): JSX.Element;
|
|
@@ -31,3 +31,5 @@ export declare const SimpleDateUtils: Readonly<{
|
|
|
31
31
|
validateTimeString(timeString?: string, twentyFourHourFormat?: boolean): boolean;
|
|
32
32
|
padIncompleteTimeString(timeString?: string, twentyFourHourFormat?: boolean): string;
|
|
33
33
|
}>;
|
|
34
|
+
export declare const twelveHourTimes: string[];
|
|
35
|
+
export declare const twentyFourHourTimes: string[];
|