Browse Source

refactor: checkbox (#41117)

* refactor: checkbox

* type: export CheckboxRef

* type: fix
pull/41188/head
MadCcc 2 years ago
committed by GitHub
parent
commit
6f82f41d5c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/checkbox/Checkbox.tsx
  2. 1
      components/checkbox/__tests__/__snapshots__/checkbox.test.tsx.snap
  3. 1
      components/checkbox/index.ts
  4. 42
      components/config-provider/__tests__/__snapshots__/components.test.tsx.snap
  5. 1
      components/form/__tests__/__snapshots__/index.test.tsx.snap
  6. 2
      components/index.ts
  7. 136
      components/locale-provider/__tests__/__snapshots__/index.test.tsx.snap
  8. 2
      components/radio/__tests__/__snapshots__/radio-button.test.tsx.snap
  9. 3
      components/radio/__tests__/__snapshots__/radio.test.tsx.snap
  10. 5
      components/radio/radio.tsx
  11. 4
      components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap
  12. 30
      components/table/__tests__/__snapshots__/Table.rowSelection.test.tsx.snap
  13. 18
      components/transfer/__tests__/__snapshots__/index.test.tsx.snap
  14. 4
      components/transfer/__tests__/__snapshots__/list.test.tsx.snap
  15. 2
      package.json
  16. 4
      typings/custom-typings.d.ts

3
components/checkbox/Checkbox.tsx

@ -1,4 +1,5 @@
import classNames from 'classnames';
import type { CheckboxRef } from 'rc-checkbox';
import RcCheckbox from 'rc-checkbox';
import * as React from 'react';
import { ConfigContext } from '../config-provider';
@ -48,7 +49,7 @@ export interface CheckboxProps extends AbstractCheckboxProps<CheckboxChangeEvent
indeterminate?: boolean;
}
const InternalCheckbox: React.ForwardRefRenderFunction<HTMLInputElement, CheckboxProps> = (
const InternalCheckbox: React.ForwardRefRenderFunction<CheckboxRef, CheckboxProps> = (
{
prefixCls: customizePrefixCls,
className,

1
components/checkbox/__tests__/__snapshots__/checkbox.test.tsx.snap

@ -10,7 +10,6 @@ exports[`Checkbox rtl render component should be rendered correctly in RTL direc
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

1
components/checkbox/index.ts

@ -5,6 +5,7 @@ import Group from './Group';
export type { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
export type { CheckboxGroupProps, CheckboxOptionType } from './Group';
export type { CheckboxRef } from 'rc-checkbox';
type CompoundedComponent = React.ForwardRefExoticComponent<
CheckboxProps & React.RefAttributes<HTMLInputElement>

42
components/config-provider/__tests__/__snapshots__/components.test.tsx.snap

@ -12035,7 +12035,6 @@ exports[`ConfigProvider components Checkbox configProvider 1`] = `
<input
class="config-checkbox-input"
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -12062,7 +12061,6 @@ exports[`ConfigProvider components Checkbox configProvider componentDisabled 1`]
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -12088,7 +12086,6 @@ exports[`ConfigProvider components Checkbox configProvider componentSize large 1
<input
class="config-checkbox-input"
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -12114,7 +12111,6 @@ exports[`ConfigProvider components Checkbox configProvider componentSize middle
<input
class="config-checkbox-input"
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -12140,7 +12136,6 @@ exports[`ConfigProvider components Checkbox configProvider virtual and dropdownM
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -12166,7 +12161,6 @@ exports[`ConfigProvider components Checkbox normal 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -12192,7 +12186,6 @@ exports[`ConfigProvider components Checkbox prefixCls 1`] = `
<input
class="prefix-Checkbox-input"
type="checkbox"
value=""
/>
<span
class="prefix-Checkbox-inner"
@ -21902,7 +21895,6 @@ exports[`ConfigProvider components Radio configProvider 1`] = `
checked=""
class="config-radio-input"
type="radio"
value=""
/>
<span
class="config-radio-inner"
@ -21926,7 +21918,6 @@ exports[`ConfigProvider components Radio configProvider 1`] = `
checked=""
class="config-radio-button-input"
type="radio"
value=""
/>
<span
class="config-radio-button-inner"
@ -21956,7 +21947,6 @@ exports[`ConfigProvider components Radio configProvider componentDisabled 1`] =
class="config-radio-input"
disabled=""
type="radio"
value=""
/>
<span
class="config-radio-inner"
@ -21981,7 +21971,6 @@ exports[`ConfigProvider components Radio configProvider componentDisabled 1`] =
class="config-radio-button-input"
disabled=""
type="radio"
value=""
/>
<span
class="config-radio-button-inner"
@ -22010,7 +21999,6 @@ exports[`ConfigProvider components Radio configProvider componentSize large 1`]
checked=""
class="config-radio-input"
type="radio"
value=""
/>
<span
class="config-radio-inner"
@ -22034,7 +22022,6 @@ exports[`ConfigProvider components Radio configProvider componentSize large 1`]
checked=""
class="config-radio-button-input"
type="radio"
value=""
/>
<span
class="config-radio-button-inner"
@ -22063,7 +22050,6 @@ exports[`ConfigProvider components Radio configProvider componentSize middle 1`]
checked=""
class="config-radio-input"
type="radio"
value=""
/>
<span
class="config-radio-inner"
@ -22087,7 +22073,6 @@ exports[`ConfigProvider components Radio configProvider componentSize middle 1`]
checked=""
class="config-radio-button-input"
type="radio"
value=""
/>
<span
class="config-radio-button-inner"
@ -22116,7 +22101,6 @@ exports[`ConfigProvider components Radio configProvider virtual and dropdownMatc
checked=""
class="ant-radio-input"
type="radio"
value=""
/>
<span
class="ant-radio-inner"
@ -22140,7 +22124,6 @@ exports[`ConfigProvider components Radio configProvider virtual and dropdownMatc
checked=""
class="ant-radio-button-input"
type="radio"
value=""
/>
<span
class="ant-radio-button-inner"
@ -22169,7 +22152,6 @@ exports[`ConfigProvider components Radio normal 1`] = `
checked=""
class="ant-radio-input"
type="radio"
value=""
/>
<span
class="ant-radio-inner"
@ -22193,7 +22175,6 @@ exports[`ConfigProvider components Radio normal 1`] = `
checked=""
class="ant-radio-button-input"
type="radio"
value=""
/>
<span
class="ant-radio-button-inner"
@ -22222,7 +22203,6 @@ exports[`ConfigProvider components Radio prefixCls 1`] = `
checked=""
class="prefix-Radio-input"
type="radio"
value=""
/>
<span
class="prefix-Radio-inner"
@ -22246,7 +22226,6 @@ exports[`ConfigProvider components Radio prefixCls 1`] = `
checked=""
class="prefix-Radio-button-input"
type="radio"
value=""
/>
<span
class="prefix-Radio-button-inner"
@ -26597,7 +26576,6 @@ exports[`ConfigProvider components Table configProvider 1`] = `
<input
class="config-checkbox-input"
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -26905,7 +26883,6 @@ exports[`ConfigProvider components Table configProvider componentDisabled 1`] =
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -27213,7 +27190,6 @@ exports[`ConfigProvider components Table configProvider componentSize large 1`]
<input
class="config-checkbox-input"
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -27520,7 +27496,6 @@ exports[`ConfigProvider components Table configProvider componentSize middle 1`]
<input
class="config-checkbox-input"
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -27827,7 +27802,6 @@ exports[`ConfigProvider components Table configProvider virtual and dropdownMatc
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -28134,7 +28108,6 @@ exports[`ConfigProvider components Table normal 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -28441,7 +28414,6 @@ exports[`ConfigProvider components Table prefixCls 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -38245,7 +38217,6 @@ exports[`ConfigProvider components Transfer configProvider 1`] = `
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -38405,7 +38376,6 @@ exports[`ConfigProvider components Transfer configProvider 1`] = `
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -38518,7 +38488,6 @@ exports[`ConfigProvider components Transfer configProvider componentDisabled 1`]
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -38678,7 +38647,6 @@ exports[`ConfigProvider components Transfer configProvider componentDisabled 1`]
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -38791,7 +38759,6 @@ exports[`ConfigProvider components Transfer configProvider componentSize large 1
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -38951,7 +38918,6 @@ exports[`ConfigProvider components Transfer configProvider componentSize large 1
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -39064,7 +39030,6 @@ exports[`ConfigProvider components Transfer configProvider componentSize middle
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -39224,7 +39189,6 @@ exports[`ConfigProvider components Transfer configProvider componentSize middle
class="config-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="config-checkbox-inner"
@ -39337,7 +39301,6 @@ exports[`ConfigProvider components Transfer configProvider virtual and dropdownM
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -39497,7 +39460,6 @@ exports[`ConfigProvider components Transfer configProvider virtual and dropdownM
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -39610,7 +39572,6 @@ exports[`ConfigProvider components Transfer normal 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -39770,7 +39731,6 @@ exports[`ConfigProvider components Transfer normal 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -39883,7 +39843,6 @@ exports[`ConfigProvider components Transfer prefixCls 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -40043,7 +40002,6 @@ exports[`ConfigProvider components Transfer prefixCls 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

1
components/form/__tests__/__snapshots__/index.test.tsx.snap

@ -138,7 +138,6 @@ exports[`Form form should support disabled 1`] = `
disabled=""
id="disabled"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

2
components/index.ts

@ -27,7 +27,7 @@ export type { CarouselProps } from './carousel';
export { default as Cascader } from './cascader';
export type { CascaderProps } from './cascader';
export { default as Checkbox } from './checkbox';
export type { CheckboxOptionType, CheckboxProps } from './checkbox';
export type { CheckboxOptionType, CheckboxProps, CheckboxRef } from './checkbox';
export { default as Col } from './col';
export type { ColProps } from './col';
export { default as Collapse } from './collapse';

136
components/locale-provider/__tests__/__snapshots__/index.test.tsx.snap

@ -5419,7 +5419,6 @@ exports[`Locale Provider should display the text as ar 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -5645,7 +5644,6 @@ exports[`Locale Provider should display the text as ar 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -10525,7 +10523,6 @@ exports[`Locale Provider should display the text as az 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -10751,7 +10748,6 @@ exports[`Locale Provider should display the text as az 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -15631,7 +15627,6 @@ exports[`Locale Provider should display the text as bg 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -15857,7 +15852,6 @@ exports[`Locale Provider should display the text as bg 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -20737,7 +20731,6 @@ exports[`Locale Provider should display the text as bn-bd 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -20963,7 +20956,6 @@ exports[`Locale Provider should display the text as bn-bd 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -25843,7 +25835,6 @@ exports[`Locale Provider should display the text as by 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -26069,7 +26060,6 @@ exports[`Locale Provider should display the text as by 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -30949,7 +30939,6 @@ exports[`Locale Provider should display the text as ca 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -31175,7 +31164,6 @@ exports[`Locale Provider should display the text as ca 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -36055,7 +36043,6 @@ exports[`Locale Provider should display the text as cs 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -36281,7 +36268,6 @@ exports[`Locale Provider should display the text as cs 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -41161,7 +41147,6 @@ exports[`Locale Provider should display the text as da 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -41387,7 +41372,6 @@ exports[`Locale Provider should display the text as da 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -46267,7 +46251,6 @@ exports[`Locale Provider should display the text as de 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -46493,7 +46476,6 @@ exports[`Locale Provider should display the text as de 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -51373,7 +51355,6 @@ exports[`Locale Provider should display the text as el 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -51599,7 +51580,6 @@ exports[`Locale Provider should display the text as el 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -56479,7 +56459,6 @@ exports[`Locale Provider should display the text as en 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -56705,7 +56684,6 @@ exports[`Locale Provider should display the text as en 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -61585,7 +61563,6 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -61811,7 +61788,6 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -66691,7 +66667,6 @@ exports[`Locale Provider should display the text as es 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -66917,7 +66892,6 @@ exports[`Locale Provider should display the text as es 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -71797,7 +71771,6 @@ exports[`Locale Provider should display the text as et 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -72023,7 +71996,6 @@ exports[`Locale Provider should display the text as et 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -76903,7 +76875,6 @@ exports[`Locale Provider should display the text as eu 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -77129,7 +77100,6 @@ exports[`Locale Provider should display the text as eu 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -82009,7 +81979,6 @@ exports[`Locale Provider should display the text as fa 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -82235,7 +82204,6 @@ exports[`Locale Provider should display the text as fa 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -87115,7 +87083,6 @@ exports[`Locale Provider should display the text as fi 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -87341,7 +87308,6 @@ exports[`Locale Provider should display the text as fi 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -92221,7 +92187,6 @@ exports[`Locale Provider should display the text as fr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -92447,7 +92412,6 @@ exports[`Locale Provider should display the text as fr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -97327,7 +97291,6 @@ exports[`Locale Provider should display the text as fr 2`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -97553,7 +97516,6 @@ exports[`Locale Provider should display the text as fr 2`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -102433,7 +102395,6 @@ exports[`Locale Provider should display the text as fr 3`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -102659,7 +102620,6 @@ exports[`Locale Provider should display the text as fr 3`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -107539,7 +107499,6 @@ exports[`Locale Provider should display the text as ga 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -107765,7 +107724,6 @@ exports[`Locale Provider should display the text as ga 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -112645,7 +112603,6 @@ exports[`Locale Provider should display the text as gl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -112871,7 +112828,6 @@ exports[`Locale Provider should display the text as gl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -117751,7 +117707,6 @@ exports[`Locale Provider should display the text as he 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -117977,7 +117932,6 @@ exports[`Locale Provider should display the text as he 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -122857,7 +122811,6 @@ exports[`Locale Provider should display the text as hi 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -123083,7 +123036,6 @@ exports[`Locale Provider should display the text as hi 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -127963,7 +127915,6 @@ exports[`Locale Provider should display the text as hr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -128189,7 +128140,6 @@ exports[`Locale Provider should display the text as hr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -133069,7 +133019,6 @@ exports[`Locale Provider should display the text as hu 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -133295,7 +133244,6 @@ exports[`Locale Provider should display the text as hu 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -138175,7 +138123,6 @@ exports[`Locale Provider should display the text as hy-am 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -138401,7 +138348,6 @@ exports[`Locale Provider should display the text as hy-am 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -143281,7 +143227,6 @@ exports[`Locale Provider should display the text as id 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -143507,7 +143452,6 @@ exports[`Locale Provider should display the text as id 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -148387,7 +148331,6 @@ exports[`Locale Provider should display the text as is 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -148613,7 +148556,6 @@ exports[`Locale Provider should display the text as is 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -153493,7 +153435,6 @@ exports[`Locale Provider should display the text as it 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -153719,7 +153660,6 @@ exports[`Locale Provider should display the text as it 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -158599,7 +158539,6 @@ exports[`Locale Provider should display the text as ja 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -158825,7 +158764,6 @@ exports[`Locale Provider should display the text as ja 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -163705,7 +163643,6 @@ exports[`Locale Provider should display the text as ka 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -163931,7 +163868,6 @@ exports[`Locale Provider should display the text as ka 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -168811,7 +168747,6 @@ exports[`Locale Provider should display the text as kk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -169037,7 +168972,6 @@ exports[`Locale Provider should display the text as kk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -173917,7 +173851,6 @@ exports[`Locale Provider should display the text as km 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -174142,7 +174075,6 @@ exports[`Locale Provider should display the text as km 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -179021,7 +178953,6 @@ exports[`Locale Provider should display the text as kn 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -179247,7 +179178,6 @@ exports[`Locale Provider should display the text as kn 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -184127,7 +184057,6 @@ exports[`Locale Provider should display the text as ko 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -184353,7 +184282,6 @@ exports[`Locale Provider should display the text as ko 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -189233,7 +189161,6 @@ exports[`Locale Provider should display the text as ku 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -189459,7 +189386,6 @@ exports[`Locale Provider should display the text as ku 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -194339,7 +194265,6 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -194565,7 +194490,6 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -199445,7 +199369,6 @@ exports[`Locale Provider should display the text as lt 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -199671,7 +199594,6 @@ exports[`Locale Provider should display the text as lt 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -204551,7 +204473,6 @@ exports[`Locale Provider should display the text as lv 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -204777,7 +204698,6 @@ exports[`Locale Provider should display the text as lv 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -209657,7 +209577,6 @@ exports[`Locale Provider should display the text as mk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -209883,7 +209802,6 @@ exports[`Locale Provider should display the text as mk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -214763,7 +214681,6 @@ exports[`Locale Provider should display the text as ml 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -214989,7 +214906,6 @@ exports[`Locale Provider should display the text as ml 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -219869,7 +219785,6 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -220095,7 +220010,6 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -224975,7 +224889,6 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -225201,7 +225114,6 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -230081,7 +229993,6 @@ exports[`Locale Provider should display the text as nb 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -230307,7 +230218,6 @@ exports[`Locale Provider should display the text as nb 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -235187,7 +235097,6 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -235413,7 +235322,6 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -240293,7 +240201,6 @@ exports[`Locale Provider should display the text as nl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -240519,7 +240426,6 @@ exports[`Locale Provider should display the text as nl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -245399,7 +245305,6 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -245625,7 +245530,6 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -250505,7 +250409,6 @@ exports[`Locale Provider should display the text as pl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -250731,7 +250634,6 @@ exports[`Locale Provider should display the text as pl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -255611,7 +255513,6 @@ exports[`Locale Provider should display the text as pt 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -255837,7 +255738,6 @@ exports[`Locale Provider should display the text as pt 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -260717,7 +260617,6 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -260943,7 +260842,6 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -265823,7 +265721,6 @@ exports[`Locale Provider should display the text as ro 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -266049,7 +265946,6 @@ exports[`Locale Provider should display the text as ro 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -270929,7 +270825,6 @@ exports[`Locale Provider should display the text as ru 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -271155,7 +271050,6 @@ exports[`Locale Provider should display the text as ru 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -276035,7 +275929,6 @@ exports[`Locale Provider should display the text as si 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -276261,7 +276154,6 @@ exports[`Locale Provider should display the text as si 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -281141,7 +281033,6 @@ exports[`Locale Provider should display the text as sk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -281367,7 +281258,6 @@ exports[`Locale Provider should display the text as sk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -286247,7 +286137,6 @@ exports[`Locale Provider should display the text as sl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -286473,7 +286362,6 @@ exports[`Locale Provider should display the text as sl 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -291353,7 +291241,6 @@ exports[`Locale Provider should display the text as sr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -291579,7 +291466,6 @@ exports[`Locale Provider should display the text as sr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -296459,7 +296345,6 @@ exports[`Locale Provider should display the text as sv 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -296685,7 +296570,6 @@ exports[`Locale Provider should display the text as sv 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -301565,7 +301449,6 @@ exports[`Locale Provider should display the text as ta 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -301791,7 +301674,6 @@ exports[`Locale Provider should display the text as ta 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -306671,7 +306553,6 @@ exports[`Locale Provider should display the text as th 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -306897,7 +306778,6 @@ exports[`Locale Provider should display the text as th 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -311777,7 +311657,6 @@ exports[`Locale Provider should display the text as tk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -312003,7 +311882,6 @@ exports[`Locale Provider should display the text as tk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -316883,7 +316761,6 @@ exports[`Locale Provider should display the text as tr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -317109,7 +316986,6 @@ exports[`Locale Provider should display the text as tr 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -321989,7 +321865,6 @@ exports[`Locale Provider should display the text as uk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -322215,7 +322090,6 @@ exports[`Locale Provider should display the text as uk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -327095,7 +326969,6 @@ exports[`Locale Provider should display the text as ur 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -327321,7 +327194,6 @@ exports[`Locale Provider should display the text as ur 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -332201,7 +332073,6 @@ exports[`Locale Provider should display the text as vi 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -332427,7 +332298,6 @@ exports[`Locale Provider should display the text as vi 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -337307,7 +337177,6 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -337533,7 +337402,6 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -342413,7 +342281,6 @@ exports[`Locale Provider should display the text as zh-hk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -342639,7 +342506,6 @@ exports[`Locale Provider should display the text as zh-hk 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -347519,7 +347385,6 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -347745,7 +347610,6 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

2
components/radio/__tests__/__snapshots__/radio-button.test.tsx.snap

@ -10,7 +10,6 @@ exports[`Radio Button rtl render component should be rendered correctly in RTL d
<input
class="ant-radio-button-input"
type="radio"
value=""
/>
<span
class="ant-radio-button-inner"
@ -29,7 +28,6 @@ exports[`Radio Button should render correctly 1`] = `
<input
class="ant-radio-button-input"
type="radio"
value=""
/>
<span
class="ant-radio-button-inner"

3
components/radio/__tests__/__snapshots__/radio.test.tsx.snap

@ -10,7 +10,6 @@ exports[`Radio rtl render component should be rendered correctly in RTL directio
<input
class="ant-radio-input"
type="radio"
value=""
/>
<span
class="ant-radio-inner"
@ -35,7 +34,6 @@ exports[`Radio rtl render component should be rendered correctly in RTL directio
<input
class="ant-radio-button-input"
type="radio"
value=""
/>
<span
class="ant-radio-button-inner"
@ -54,7 +52,6 @@ exports[`Radio should render correctly 1`] = `
<input
class="ant-radio-input"
type="radio"
value=""
/>
<span
class="ant-radio-inner"

5
components/radio/radio.tsx

@ -1,4 +1,5 @@
import classNames from 'classnames';
import type { CheckboxRef } from 'rc-checkbox';
import RcCheckbox from 'rc-checkbox';
import { composeRef } from 'rc-util/lib/ref';
import * as React from 'react';
@ -11,12 +12,12 @@ import type { RadioChangeEvent, RadioProps } from './interface';
import useStyle from './style';
const InternalRadio: React.ForwardRefRenderFunction<HTMLElement, RadioProps> = (props, ref) => {
const InternalRadio: React.ForwardRefRenderFunction<CheckboxRef, RadioProps> = (props, ref) => {
const groupContext = React.useContext(RadioGroupContext);
const radioOptionTypeContext = React.useContext(RadioOptionTypeContext);
const { getPrefixCls, direction } = React.useContext(ConfigContext);
const innerRef = React.useRef<HTMLElement>();
const innerRef = React.useRef<CheckboxRef>(null);
const mergedRef = composeRef(ref, innerRef);
const { isFormItemInput } = React.useContext(FormItemInputContext);

4
components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap

@ -579,7 +579,6 @@ exports[`Table.filter renders menu correctly 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -609,7 +608,6 @@ exports[`Table.filter renders menu correctly 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -721,7 +719,6 @@ exports[`Table.filter renders radio filter correctly 1`] = `
<input
class="ant-radio-input"
type="radio"
value=""
/>
<span
class="ant-radio-inner"
@ -751,7 +748,6 @@ exports[`Table.filter renders radio filter correctly 1`] = `
<input
class="ant-radio-input"
type="radio"
value=""
/>
<span
class="ant-radio-inner"

30
components/table/__tests__/__snapshots__/Table.rowSelection.test.tsx.snap

@ -57,7 +57,6 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
aria-label="Select all"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -135,7 +134,6 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -177,7 +175,6 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -219,7 +216,6 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -261,7 +257,6 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -414,7 +409,6 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
aria-label="Select all"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -473,7 +467,6 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -504,7 +497,6 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -535,7 +527,6 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -566,7 +557,6 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -719,7 +709,6 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
aria-label="Select all"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -779,7 +768,6 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -811,7 +799,6 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -843,7 +830,6 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -875,7 +861,6 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1082,7 +1067,6 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
aria-label="Custom selection"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1202,7 +1186,6 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1232,7 +1215,6 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1262,7 +1244,6 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1292,7 +1273,6 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1443,7 +1423,6 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
aria-label="Custom selection"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1563,7 +1542,6 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1593,7 +1571,6 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1623,7 +1600,6 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1653,7 +1629,6 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1804,7 +1779,6 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
aria-label="Select all"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1840,7 +1814,6 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1870,7 +1843,6 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1900,7 +1872,6 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1930,7 +1901,6 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

18
components/transfer/__tests__/__snapshots__/index.test.tsx.snap

@ -20,7 +20,6 @@ exports[`Transfer rtl render component should be rendered correctly in RTL direc
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -180,7 +179,6 @@ exports[`Transfer rtl render component should be rendered correctly in RTL direc
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -293,7 +291,6 @@ exports[`Transfer should render correctly 1`] = `
checked=""
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -348,7 +345,6 @@ exports[`Transfer should render correctly 1`] = `
checked=""
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -372,7 +368,6 @@ exports[`Transfer should render correctly 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -454,7 +449,6 @@ exports[`Transfer should render correctly 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -508,7 +502,6 @@ exports[`Transfer should render correctly 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -544,7 +537,6 @@ exports[`Transfer should show sorted targetKey 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -599,7 +591,6 @@ exports[`Transfer should show sorted targetKey 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -684,7 +675,6 @@ exports[`Transfer should show sorted targetKey 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -739,7 +729,6 @@ exports[`Transfer should show sorted targetKey 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -765,7 +754,6 @@ exports[`Transfer should show sorted targetKey 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -803,7 +791,6 @@ exports[`Transfer should support render value and label in item 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -858,7 +845,6 @@ exports[`Transfer should support render value and label in item 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -944,7 +930,6 @@ exports[`Transfer should support render value and label in item 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1056,7 +1041,6 @@ exports[`immutable data dataSource is frozen 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1110,7 +1094,6 @@ exports[`immutable data dataSource is frozen 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -1194,7 +1177,6 @@ exports[`immutable data dataSource is frozen 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

4
components/transfer/__tests__/__snapshots__/list.test.tsx.snap

@ -17,7 +17,6 @@ exports[`Transfer.List should render correctly 1`] = `
aria-checked="mixed"
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -71,7 +70,6 @@ exports[`Transfer.List should render correctly 1`] = `
checked=""
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -94,7 +92,6 @@ exports[`Transfer.List should render correctly 1`] = `
<input
class="ant-checkbox-input"
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"
@ -118,7 +115,6 @@ exports[`Transfer.List should render correctly 1`] = `
class="ant-checkbox-input"
disabled=""
type="checkbox"
value=""
/>
<span
class="ant-checkbox-inner"

2
package.json

@ -121,7 +121,7 @@
"dayjs": "^1.11.1",
"qrcode.react": "^3.1.0",
"rc-cascader": "~3.9.0",
"rc-checkbox": "~2.3.0",
"rc-checkbox": "~3.0.0",
"rc-collapse": "~3.5.2",
"rc-dialog": "~9.0.2",
"rc-drawer": "~6.1.1",

4
typings/custom-typings.d.ts

@ -12,10 +12,6 @@ declare module 'rc-pagination/*';
declare module 'rc-util*';
declare module 'rc-checkbox';
declare module 'rc-rate';
declare module 'jsonml.js/*';
declare module '*.json' {

Loading…
Cancel
Save