@tidbcloud/uikit 2.0.0-beta.63 → 2.0.0-beta.64
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/CHANGELOG.md +6 -0
- package/dist/biz/Form/PhoneInput/index.cjs +1 -1
- package/dist/biz/Form/PhoneInput/index.d.cts +1 -1
- package/dist/biz/Form/PhoneInput/index.d.ts +1 -1
- package/dist/biz/Form/PhoneInput/index.js +1 -1
- package/dist/theme/theme.cjs +1 -2
- package/dist/theme/theme.js +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -87,7 +87,7 @@ const FormPhoneInputV2 = ({
|
|
|
87
87
|
...rest
|
|
88
88
|
}) => {
|
|
89
89
|
const { watch, formState, getFieldState } = reactHookForm.useFormContext();
|
|
90
|
-
const {
|
|
90
|
+
const { filterData: onFilter, ...restProps } = selectProps;
|
|
91
91
|
const { error: countryError } = getFieldState(countryKey, formState);
|
|
92
92
|
const { error: phoneError } = getFieldState(phoneKey, formState);
|
|
93
93
|
const country = watch(countryKey, "");
|
|
@@ -17,7 +17,7 @@ export interface FormPhoneInputV2Props extends Omit<PhoneInputProps, 'onSelect'>
|
|
|
17
17
|
countryRules?: RegisterOptions;
|
|
18
18
|
onSelect?: (value: string, country: CountryData | {}) => void;
|
|
19
19
|
selectProps: Omit<SelectProps, 'data'> & {
|
|
20
|
-
|
|
20
|
+
filterData?: (data: {
|
|
21
21
|
value: string;
|
|
22
22
|
label: string;
|
|
23
23
|
}, index: number, array: {
|
|
@@ -17,7 +17,7 @@ export interface FormPhoneInputV2Props extends Omit<PhoneInputProps, 'onSelect'>
|
|
|
17
17
|
countryRules?: RegisterOptions;
|
|
18
18
|
onSelect?: (value: string, country: CountryData | {}) => void;
|
|
19
19
|
selectProps: Omit<SelectProps, 'data'> & {
|
|
20
|
-
|
|
20
|
+
filterData?: (data: {
|
|
21
21
|
value: string;
|
|
22
22
|
label: string;
|
|
23
23
|
}, index: number, array: {
|
|
@@ -85,7 +85,7 @@ const FormPhoneInputV2 = ({
|
|
|
85
85
|
...rest
|
|
86
86
|
}) => {
|
|
87
87
|
const { watch, formState, getFieldState } = useFormContext();
|
|
88
|
-
const {
|
|
88
|
+
const { filterData: onFilter, ...restProps } = selectProps;
|
|
89
89
|
const { error: countryError } = getFieldState(countryKey, formState);
|
|
90
90
|
const { error: phoneError } = getFieldState(phoneKey, formState);
|
|
91
91
|
const country = watch(countryKey, "");
|
package/dist/theme/theme.cjs
CHANGED
package/dist/theme/theme.js
CHANGED