11import React from 'react' ;
22import MultiContentCard from "@patternfly/react-component-groups/dist/dynamic/MultiContentCard" ;
33import { EllipsisVIcon } from '@patternfly/react-icons' ;
4- import { Button , Card , CardHeader , CardBody , CardFooter , Text , TextContent , TextVariants , Icon , TextList , TextListItem , Divider , Dropdown , DropdownItem , DropdownList , MenuToggle , MenuToggleElement } from '@patternfly/react-core' ;
4+ import { Button , Card , CardHeader , CardBody , CardFooter , Content , ContentVariants , List , ListItem , Icon , Divider , Dropdown , DropdownItem , DropdownList , MenuToggle , MenuToggleElement } from '@patternfly/react-core' ;
55import { ArrowRightIcon , BellIcon , CogIcon , LockIcon } from '@patternfly/react-icons' ;
66import { createUseStyles } from 'react-jss' ;
77import clsx from 'clsx' ;
88
99const useStyles = createUseStyles ( {
1010 action : {
11- color : 'var(--pf-t--color--blue--60 )' ,
11+ color : 'var(--pf-t--global--text-- color--brand--default )' ,
1212 fontSize : 'var(--pf-t--global--font--size--200)' ,
13- } ,
13+ } ,
14+ actionIcon : {
15+ color : 'var(--pf-t--global--color--brand--default)' ,
16+ } ,
1417 bulletPoints : {
1518 color : 'var(--pf-t--global--color--brand--default)' ,
1619 } ,
@@ -23,92 +26,80 @@ export const BasicExample: React.FunctionComponent = () => {
2326 const cards = [
2427 < Card isFullHeight isPlain key = "card-1" >
2528 < CardHeader >
26- < TextContent >
27- < Text component = { TextVariants . h4 } > Getting Started</ Text >
28- </ TextContent >
29+ < Content component = { ContentVariants . h4 } > Getting Started</ Content >
2930 </ CardHeader >
3031 < CardBody >
31- < TextContent >
32- < Text className = { clsx ( classes . action , 'pf-v6-u-font-weight-bold' , 'pf-v6-u-mb-sm' ) } >
33- < Icon size = "md" className = "pf-v6-u-pl-sm pf-v6-u-pr-md" >
34- < CogIcon />
35- </ Icon >
32+ < Content className = { clsx ( classes . action , 'pf-v6-u-font-weight-bold' , 'pf-v6-u-mb-sm' ) } >
33+ < Icon size = "md" className = "pf-v6-u-pl-sm pf-v6-u-pr-md" >
34+ < CogIcon className = { classes . actionIcon } />
35+ </ Icon >
3636 Configure application
37- </ Text >
38- < Text className = "pf-v6-u-font-size-sm" >
37+ </ Content >
38+ < Content className = "pf-v6-u-font-size-sm" >
3939 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
40- </ Text >
41- </ TextContent >
40+ </ Content >
4241 </ CardBody >
4342 < CardFooter >
44- < TextContent >
45- < TextList className = { clsx ( classes . bulletPoints , 'pf-v6-u-font-size-sm' , 'pf-v6-u-ml-0' ) } >
46- < TextListItem >
47- < Button variant = "link" isInline > First link</ Button >
48- </ TextListItem >
49- < TextListItem >
50- < Button variant = "link" isInline > Second link</ Button >
51- </ TextListItem >
52- < TextListItem >
53- < Button variant = "link" isInline > Another link</ Button >
54- </ TextListItem >
55- </ TextList >
56- </ TextContent >
43+ < List className = { clsx ( classes . bulletPoints , 'pf-v6-u-font-size-sm' , 'pf-v6-u-ml-0' ) } >
44+ < ListItem >
45+ < Button variant = "link" isInline > First link</ Button >
46+ </ ListItem >
47+ < ListItem >
48+ < Button variant = "link" isInline > Second link</ Button >
49+ </ ListItem >
50+ < ListItem >
51+ < Button variant = "link" isInline > Another link</ Button >
52+ </ ListItem >
53+ </ List >
5754 </ CardFooter >
5855 </ Card > ,
5956 < Card isFullHeight isPlain key = "card-2" >
6057 < CardBody className = "pf-v6-u-pt-3xl-on-md" >
61- < TextContent >
62- < Text className = { clsx ( classes . action , 'pf-v6-u-font-weight-bold' , 'pf-v6-u-mb-sm' ) } >
63- < Icon size = "md" className = "pf-v6-u-pl-sm pf-v6-u-pr-md" >
64- < LockIcon />
65- </ Icon >
58+ < Content className = { clsx ( classes . action , 'pf-v6-u-font-weight-bold' , 'pf-v6-u-mb-sm' ) } >
59+ < Icon size = "md" className = "pf-v6-u-pl-sm pf-v6-u-pr-md" >
60+ < LockIcon className = { classes . actionIcon } />
61+ </ Icon >
6662 Configure access
67- </ Text >
68- < Text className = "pf-v6-u-font-size-sm" >
63+ </ Content >
64+ < Content className = "pf-v6-u-font-size-sm" >
6965 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
70- </ Text >
71- </ TextContent >
66+ </ Content >
7267 </ CardBody >
7368 < CardFooter >
74- < Text >
69+ < Content >
7570 < Button variant = "link" isInline >
7671 Learn more
7772 < Icon className = "pf-v6-u-ml-sm" isInline >
7873 < ArrowRightIcon />
7974 </ Icon >
8075 </ Button >
81- </ Text >
76+ </ Content >
8277 </ CardFooter >
8378 </ Card > ,
8479 < Card isFullHeight isPlain key = "card-3" >
8580 < CardHeader >
86- < TextContent >
87- < Text component = { TextVariants . h4 } > Next Steps</ Text >
88- </ TextContent >
81+ < Content component = { ContentVariants . h4 } > Next Steps</ Content >
8982 </ CardHeader >
9083 < CardBody >
91- < TextContent >
92- < Text className = { clsx ( classes . action , 'pf-v6-u-font-weight-bold' , 'pf-v6-u-mb-sm' ) } >
93- < Icon size = "md" className = "pf-v6-u-pl-sm pf-v6-u-pr-md" >
94- < BellIcon />
95- </ Icon >
84+ < Content className = { clsx ( classes . action , 'pf-v6-u-font-weight-bold' , 'pf-v6-u-mb-sm' ) } >
85+ < Icon size = "md" className = "pf-v6-u-pl-sm pf-v6-u-pr-md" >
86+ < BellIcon className = { classes . actionIcon } />
87+ </ Icon >
9688 Configure notifications
97- </ Text >
98- < Text className = "pf-v6-u-font-size-sm" >
89+ </ Content >
90+ < Content className = "pf-v6-u-font-size-sm" >
9991 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
100- </ Text >
101- </ TextContent >
92+ </ Content >
10293 </ CardBody >
10394 < CardFooter >
104- < Text >
95+ < Content >
10596 < Button variant = "link" isInline >
10697 Learn more
10798 < Icon className = "pf-v6-u-ml-sm" isInline >
10899 < ArrowRightIcon />
109100 </ Icon >
110101 </ Button >
111- </ Text >
102+ </ Content >
112103 </ CardFooter >
113104 </ Card >
114105 ] ;
0 commit comments