@@ -3,27 +3,18 @@ import * as React from 'react';
3
3
import PropTypes from 'prop-types' ;
4
4
5
5
import { useBootstrapPrefix } from './ThemeProvider' ;
6
- import createWithBsPrefix from './createWithBsPrefix' ;
7
- import divWithClassName from './divWithClassName' ;
8
- import CardImg from './CardImg' ;
6
+ import CardBody from './CardBody' ;
7
+ import CardFooter from './CardFooter' ;
9
8
import CardHeader from './CardHeader' ;
9
+ import CardImg from './CardImg' ;
10
+ import CardImgOverlay from './CardImgOverlay' ;
11
+ import CardLink from './CardLink' ;
12
+ import CardSubtitle from './CardSubtitle' ;
13
+ import CardText from './CardText' ;
14
+ import CardTitle from './CardTitle' ;
10
15
import { BsPrefixProps , BsPrefixRefForwardingComponent } from './helpers' ;
11
16
import { Color , Variant } from './types' ;
12
17
13
- const DivStyledAsH5 = divWithClassName ( 'h5' ) ;
14
- const DivStyledAsH6 = divWithClassName ( 'h6' ) ;
15
- const CardBody = createWithBsPrefix ( 'card-body' ) ;
16
- const CardTitle = createWithBsPrefix ( 'card-title' , {
17
- Component : DivStyledAsH5 ,
18
- } ) ;
19
- const CardSubtitle = createWithBsPrefix ( 'card-subtitle' , {
20
- Component : DivStyledAsH6 ,
21
- } ) ;
22
- const CardLink = createWithBsPrefix ( 'card-link' , { Component : 'a' } ) ;
23
- const CardText = createWithBsPrefix ( 'card-text' , { Component : 'p' } ) ;
24
- const CardFooter = createWithBsPrefix ( 'card-footer' ) ;
25
- const CardImgOverlay = createWithBsPrefix ( 'card-img-overlay' ) ;
26
-
27
18
export interface CardProps
28
19
extends BsPrefixProps ,
29
20
React . HTMLAttributes < HTMLElement > {
0 commit comments