@nuskin/foundation-ui-components 1.23.0 → 1.24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/foundation-ui-components",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "It is a foundation library written in react, that provides common components to all UI pages",
5
5
  "main": "src/common/index.ts",
6
6
  "repository": {
@@ -34,6 +34,7 @@ const NsAutocomplete = ({
34
34
  noOptionsText,
35
35
  onInputChange,
36
36
  onChange,
37
+ onFocus,
37
38
  clear,
38
39
  seeMore,
39
40
  placeholder,
@@ -124,6 +125,7 @@ const NsAutocomplete = ({
124
125
  onChange={onChange}
125
126
  onInputChange={onInputChange}
126
127
  value={value}
128
+ onFocus={onFocus ?? noop}
127
129
  inputValue={inputValue}
128
130
  filterOptions={
129
131
  isFilterEnabled
@@ -28,6 +28,7 @@ export type NsAutocompleteProps = {
28
28
  reason: AutocompleteChangeReason,
29
29
  details?: AutocompleteChangeDetails<OptionsProps> | undefined
30
30
  ): void;
31
+ onFocus?:() => void;
31
32
  clear?: {
32
33
  text?: string;
33
34
  show?: boolean; //default to false