@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.64
4
+
5
+ ### Patch Changes
6
+
7
+ - fix phone input filter conflict
8
+
3
9
  ## 2.0.0-beta.63
4
10
 
5
11
  ### Patch Changes
@@ -87,7 +87,7 @@ const FormPhoneInputV2 = ({
87
87
  ...rest
88
88
  }) => {
89
89
  const { watch, formState, getFieldState } = reactHookForm.useFormContext();
90
- const { filter: onFilter, ...restProps } = selectProps;
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
- filter?: (data: {
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
- filter?: (data: {
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 { filter: onFilter, ...restProps } = selectProps;
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, "");
@@ -313,8 +313,7 @@ const theme = createTheme.createTheme({
313
313
  },
314
314
  "&:hover": {
315
315
  color: themeColor(theme2, "carbon", 9)
316
- },
317
- "&:focus": { outlineColor: "transparent" }
316
+ }
318
317
  }
319
318
  };
320
319
  }
@@ -311,8 +311,7 @@ const theme = createTheme({
311
311
  },
312
312
  "&:hover": {
313
313
  color: themeColor(theme2, "carbon", 9)
314
- },
315
- "&:focus": { outlineColor: "transparent" }
314
+ }
316
315
  }
317
316
  };
318
317
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.63",
3
+ "version": "2.0.0-beta.64",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",