@@ -5,28 +5,25 @@ import React from 'react';
55
66import createWithBsPrefix from './createWithBsPrefix' ;
77import { useBootstrapPrefix } from './ThemeProvider' ;
8+ import FormCheckInput from './FormCheckInput' ;
89import {
910 BsPrefixPropsWithChildren ,
1011 BsPrefixRefForwardingComponent ,
1112} from './helpers' ;
1213
13- const InputGroupAppend = createWithBsPrefix ( 'input-group-append' ) ;
14-
15- const InputGroupPrepend = createWithBsPrefix ( 'input-group-prepend' ) ;
16-
1714const InputGroupText = createWithBsPrefix ( 'input-group-text' , {
1815 Component : 'span' ,
1916} ) ;
2017
2118const InputGroupCheckbox = ( props ) => (
2219 < InputGroupText >
23- < input type = "checkbox" { ...props } />
20+ < FormCheckInput type = "checkbox" { ...props } />
2421 </ InputGroupText >
2522) ;
2623
2724const InputGroupRadio = ( props ) => (
2825 < InputGroupText >
29- < input type = "radio" { ...props } />
26+ < FormCheckInput type = "radio" { ...props } />
3027 </ InputGroupText >
3128) ;
3229
@@ -35,8 +32,6 @@ export interface InputGroupProps extends BsPrefixPropsWithChildren {
3532}
3633
3734type InputGroupExtras = {
38- Append : typeof InputGroupAppend ;
39- Prepend : typeof InputGroupPrepend ;
4035 Text : typeof InputGroupText ;
4136 Checkbox : typeof InputGroupCheckbox ;
4237 Radio : typeof InputGroupRadio ;
@@ -60,8 +55,6 @@ const propTypes = {
6055
6156/**
6257 *
63- * @property {InputGroupAppend } Append
64- * @property {InputGroupPrepend } Prepend
6558 * @property {InputGroupText } Text
6659 * @property {InputGroupRadio } Radio
6760 * @property {InputGroupCheckbox } Checkbox
@@ -102,8 +95,6 @@ const InputGroupWithExtras: InputGroup & InputGroupExtras = {
10295 Text : InputGroupText ,
10396 Radio : InputGroupRadio ,
10497 Checkbox : InputGroupCheckbox ,
105- Append : InputGroupAppend ,
106- Prepend : InputGroupPrepend ,
10798} as any ;
10899
109100export default InputGroupWithExtras ;
0 commit comments