File tree Expand file tree Collapse file tree 6 files changed +32
-32
lines changed
Expand file tree Collapse file tree 6 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @programmer_network/yail" ,
3- "version" : " 1.0.228 " ,
3+ "version" : " 1.0.229 " ,
44 "description" : " Programmer Network's official UI library for React" ,
55 "author" : " Aleksandar Grbic - (https://programmer.network)" ,
66 "publishConfig" : {
Original file line number Diff line number Diff line change 33exports [` Badge component > renders correctly - snapshot test 1` ] = `
44<DocumentFragment >
55 <span
6- class = " yl:rounded yl:px-2 yl:py-1 yl:text-sm yl:font-medium yl:bg-primary yl:text-background yl:border-2 yl:border-background/50 "
6+ class = " yl:rounded yl:px-2 yl:py-1 yl:text-sm yl:font-medium yl:bg-primary yl:text-background yl:border-2 yl:border-background/80 "
77 >
88 Test Badge
99 </span >
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import { BadgeVariantEnum, IBadgeProps } from "./types";
66const Badge : FC < IBadgeProps > = ( { title, className, variant } ) => {
77 const variants = {
88 [ BadgeVariantEnum . FILLED ] :
9- "yl:bg-primary yl:text-background yl:border-2 yl:border-background/50 " ,
9+ "yl:bg-primary yl:text-background yl:border-2 yl:border-background/80 " ,
1010 [ BadgeVariantEnum . OUTLINE ] :
11- "yl:bg-transparent yl:border-primary yl:text-primary yl:border-2 yl:border-primary/50 "
11+ "yl:bg-transparent yl:border-primary yl:text-primary yl:border-2 yl:border-primary/80 "
1212 } ;
1313
1414 const baseClassNames = "yl:rounded yl:px-2 yl:py-1 yl:text-sm yl:font-medium" ;
Original file line number Diff line number Diff line change @@ -23,34 +23,34 @@ const CardAuthor: FC<ICardAuthor> = ({
2323 if ( ! author && ! date ) return null ;
2424
2525 return (
26- < div className = 'yl:flex yl:items-center yl:mb-4' >
27- < div className = 'yl:flex yl:flex-1 yl:justify-between yl:gap-2' >
28- < div className = 'yl:flex yl:flex-col yl:md:flex-row yl:md:items-center yl:md:gap-2' >
29- { author && (
30- < >
31- { author . url ? (
32- < NavLink
33- to = { author . url }
34- onClick = { onAuthorClick }
35- className = 'yl:flex yl:items-center yl:gap-2 yl:text-primary yl:hover:text-primary yl:hover:underline yl:transition-colors'
36- >
37- < Avatar src = { author . avatarUrl } size = { 24 } />
38- { author . name }
39- </ NavLink >
40- ) : (
41- < span className = 'yl:flex yl:items-center yl:gap-2 yl:text-muted' >
42- < Avatar src = { author . avatarUrl } size = { 24 } />
43- { author . name }
44- </ span >
45- ) }
46- </ >
26+ < div className = 'yl:flex yl:items-center yl:mb-4 yl:gap-2 yl:flex-wrap' >
27+ { author && (
28+ < >
29+ { author . url ? (
30+ < NavLink
31+ to = { author . url }
32+ onClick = { onAuthorClick }
33+ className = 'yl:flex yl:items-center yl:gap-2 yl:text-primary yl:hover:text-primary yl:hover:underline yl:transition-colors'
34+ >
35+ < Avatar src = { author . avatarUrl } size = { 24 } />
36+ < span className = 'yl:text-sm yl:md:text-base' > { author . name } </ span >
37+ </ NavLink >
38+ ) : (
39+ < span className = 'yl:flex yl:items-center yl:gap-2 yl:text-muted' >
40+ < Avatar src = { author . avatarUrl } size = { 24 } />
41+ < span className = 'yl:text-sm yl:md:text-base' > { author . name } </ span >
42+ </ span >
4743 ) }
44+ </ >
45+ ) }
4846
49- { author && date && < span className = 'yl:text-muted' > |</ span > }
47+ { author && date && (
48+ < span className = 'yl:text-muted yl:text-xs yl:md:text-sm' > •</ span >
49+ ) }
5050
51- { date && < time className = 'yl:text-muted' > { date } </ time > }
52- </ div >
53- </ div >
51+ { date && (
52+ < time className = 'yl:text-muted yl:text-xs yl:md:text-sm' > { date } </ time >
53+ ) }
5454 </ div >
5555 ) ;
5656} ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const CardHeader: FC<ICardHeader> = ({
3535 < h3
3636 id = { `card-title-${ cardId } ` }
3737 className = { classNames (
38- "yl:flex yl:items-center yl:justify-start yl:gap-2 yl:text-lg yl:font-semibold yl:m-0 yl:text-text" ,
38+ "yl:flex yl:items-center yl:justify-start yl:gap-2 yl:text-xl yl:md:text- lg yl:font-semibold yl:m-0 yl:text-text" ,
3939 getLineClampClass ( maxTitleLines )
4040 ) }
4141 >
@@ -55,7 +55,7 @@ const CardHeader: FC<ICardHeader> = ({
5555 < h3
5656 id = { `card-title-${ cardId } ` }
5757 className = { classNames (
58- "yl:text-lg yl:font-semibold yl:m-0 yl:group-hover:text-primary yl:transition-colors yl:text-text" ,
58+ "yl:text-xl yl:md:text- lg yl:font-semibold yl:m-0 yl:group-hover:text-primary yl:transition-colors yl:text-text" ,
5959 getLineClampClass ( maxTitleLines )
6060 ) }
6161 >
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ const Card: FC<ICard> = memo(
172172 < p
173173 id = { `card-description-${ cardId } ` }
174174 className = { classNames (
175- "yl:flex-1 yl:text-muted yl:m-0" ,
175+ "yl:flex-1 yl:text-text/80 yl:m-0" ,
176176 getLineClampClass ( maxDescriptionLines )
177177 ) }
178178 >
You can’t perform that action at this time.
0 commit comments