File tree Expand file tree Collapse file tree 17 files changed +39
-66
lines changed Expand file tree Collapse file tree 17 files changed +39
-66
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import AccordionContext from './AccordionContext';
11
11
import AccordionHeader from './AccordionHeader' ;
12
12
import AccordionItem from './AccordionItem' ;
13
13
import {
14
- BsPrefixPropsWithChildren ,
14
+ BsPrefixProps ,
15
15
BsPrefixRefForwardingComponent ,
16
16
SelectCallback ,
17
17
} from './helpers' ;
18
18
19
19
export interface AccordionProps
20
20
extends Omit < React . HTMLAttributes < HTMLElement > , 'onSelect' > ,
21
- BsPrefixPropsWithChildren {
21
+ BsPrefixProps {
22
22
activeKey ?: string ;
23
23
defaultActiveKey ?: string ;
24
24
onSelect ?: SelectCallback ;
Original file line number Diff line number Diff line change @@ -5,13 +5,10 @@ import PropTypes from 'prop-types';
5
5
import { useBootstrapPrefix } from './ThemeProvider' ;
6
6
import AccordionCollapse from './AccordionCollapse' ;
7
7
import AccordionItemContext from './AccordionItemContext' ;
8
- import {
9
- BsPrefixRefForwardingComponent ,
10
- BsPrefixPropsWithChildren ,
11
- } from './helpers' ;
8
+ import { BsPrefixRefForwardingComponent , BsPrefixProps } from './helpers' ;
12
9
13
10
export interface AccordionBodyProps
14
- extends BsPrefixPropsWithChildren ,
11
+ extends BsPrefixProps ,
15
12
React . HTMLAttributes < HTMLElement > { }
16
13
17
14
const propTypes = {
Original file line number Diff line number Diff line change @@ -4,17 +4,14 @@ import classNames from 'classnames';
4
4
import PropTypes from 'prop-types' ;
5
5
import AccordionContext from './AccordionContext' ;
6
6
import AccordionItemContext from './AccordionItemContext' ;
7
- import {
8
- BsPrefixPropsWithChildren ,
9
- BsPrefixRefForwardingComponent ,
10
- } from './helpers' ;
7
+ import { BsPrefixProps , BsPrefixRefForwardingComponent } from './helpers' ;
11
8
import { useBootstrapPrefix } from './ThemeProvider' ;
12
9
13
10
type EventHandler = React . EventHandler < React . SyntheticEvent > ;
14
11
15
12
export interface AccordionButtonProps
16
13
extends React . ButtonHTMLAttributes < HTMLButtonElement > ,
17
- BsPrefixPropsWithChildren { }
14
+ BsPrefixProps { }
18
15
19
16
const propTypes = {
20
17
/** Set a custom element for this component */
Original file line number Diff line number Diff line change @@ -6,13 +6,10 @@ import { Transition } from 'react-transition-group';
6
6
import { useBootstrapPrefix } from './ThemeProvider' ;
7
7
import Collapse , { CollapseProps } from './Collapse' ;
8
8
import AccordionContext from './AccordionContext' ;
9
- import {
10
- BsPrefixRefForwardingComponent ,
11
- BsPrefixAndClassNameOnlyProps ,
12
- } from './helpers' ;
9
+ import { BsPrefixRefForwardingComponent , BsPrefixOnlyProps } from './helpers' ;
13
10
14
11
export interface AccordionCollapseProps
15
- extends BsPrefixAndClassNameOnlyProps ,
12
+ extends BsPrefixOnlyProps ,
16
13
CollapseProps {
17
14
eventKey : string ;
18
15
}
Original file line number Diff line number Diff line change @@ -3,13 +3,10 @@ import * as React from 'react';
3
3
import PropTypes from 'prop-types' ;
4
4
import { useBootstrapPrefix } from './ThemeProvider' ;
5
5
import AccordionButton from './AccordionButton' ;
6
- import {
7
- BsPrefixRefForwardingComponent ,
8
- BsPrefixPropsWithChildren ,
9
- } from './helpers' ;
6
+ import { BsPrefixRefForwardingComponent , BsPrefixProps } from './helpers' ;
10
7
11
8
export interface AccordionHeaderProps
12
- extends BsPrefixPropsWithChildren ,
9
+ extends BsPrefixProps ,
13
10
React . HTMLAttributes < HTMLElement > { }
14
11
15
12
const propTypes = {
Original file line number Diff line number Diff line change @@ -6,13 +6,10 @@ import { useBootstrapPrefix } from './ThemeProvider';
6
6
import AccordionItemContext , {
7
7
AccordionItemContextValue ,
8
8
} from './AccordionItemContext' ;
9
- import {
10
- BsPrefixRefForwardingComponent ,
11
- BsPrefixPropsWithChildren ,
12
- } from './helpers' ;
9
+ import { BsPrefixRefForwardingComponent , BsPrefixProps } from './helpers' ;
13
10
14
11
export interface AccordionItemProps
15
- extends BsPrefixPropsWithChildren ,
12
+ extends BsPrefixProps ,
16
13
React . HTMLAttributes < HTMLElement > {
17
14
eventKey : string ;
18
15
}
Original file line number Diff line number Diff line change @@ -4,17 +4,14 @@ import PropTypes from 'prop-types';
4
4
5
5
import { useBootstrapPrefix } from './ThemeProvider' ;
6
6
import SafeAnchor from './SafeAnchor' ;
7
- import {
8
- BsPrefixPropsWithChildren ,
9
- BsPrefixRefForwardingComponent ,
10
- } from './helpers' ;
7
+ import { BsPrefixProps , BsPrefixRefForwardingComponent } from './helpers' ;
11
8
import { ButtonVariant } from './types' ;
12
9
13
10
export type ButtonType = 'button' | 'reset' | 'submit' | string ;
14
11
15
12
export interface ButtonProps
16
13
extends React . HTMLAttributes < HTMLElement > ,
17
- BsPrefixPropsWithChildren {
14
+ BsPrefixProps {
18
15
active ?: boolean ;
19
16
variant ?: ButtonVariant ;
20
17
size ?: 'sm' | 'lg' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ import PropTypes from 'prop-types';
5
5
import { useBootstrapPrefix } from './ThemeProvider' ;
6
6
import { BsPrefixProps , BsPrefixRefForwardingComponent } from './helpers' ;
7
7
8
- export interface CardImgProps extends BsPrefixProps {
8
+ export interface CardImgProps
9
+ extends BsPrefixProps ,
10
+ React . ImgHTMLAttributes < HTMLImageElement > {
9
11
variant ?: 'top' | 'bottom' ;
10
12
}
11
13
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import classNames from 'classnames';
2
2
import PropTypes from 'prop-types' ;
3
3
import * as React from 'react' ;
4
4
import { useBootstrapPrefix } from './ThemeProvider' ;
5
- import { BsPrefixAndClassNameOnlyProps } from './helpers' ;
5
+ import { BsPrefixOnlyProps } from './helpers' ;
6
6
7
7
export interface FormRangeProps
8
- extends BsPrefixAndClassNameOnlyProps ,
8
+ extends BsPrefixOnlyProps ,
9
9
Omit < React . InputHTMLAttributes < HTMLInputElement > , 'type' > { }
10
10
11
11
const propTypes = {
Original file line number Diff line number Diff line change @@ -2,13 +2,10 @@ import classNames from 'classnames';
2
2
import PropTypes from 'prop-types' ;
3
3
import * as React from 'react' ;
4
4
import { useBootstrapPrefix } from './ThemeProvider' ;
5
- import {
6
- BsPrefixAndClassNameOnlyProps ,
7
- BsPrefixRefForwardingComponent ,
8
- } from './helpers' ;
5
+ import { BsPrefixOnlyProps , BsPrefixRefForwardingComponent } from './helpers' ;
9
6
10
7
export interface FormSelectProps
11
- extends BsPrefixAndClassNameOnlyProps ,
8
+ extends BsPrefixOnlyProps ,
12
9
React . HTMLAttributes < HTMLSelectElement > {
13
10
htmlSize ?: number ;
14
11
size ?: 'sm' | 'lg' ;
You can’t perform that action at this time.
0 commit comments