Skip to content

Commit e3c4fc8

Browse files
committed
chore: Bump package version to 1.0.229 and update Badge and Card component styles
- Updated package version in package.json to 1.0.229 - Enhanced Badge component styles for better visual consistency - Adjusted Card component styles for improved text visibility and layout - Updated snapshots to reflect changes in Badge and Card components
1 parent 49a84df commit e3c4fc8

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

src/Components/Badge/__snapshots__/Badge.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`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>

src/Components/Badge/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { BadgeVariantEnum, IBadgeProps } from "./types";
66
const 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";

src/Components/Card/Components/CardAuthor.tsx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff 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
};

src/Components/Card/Components/CardHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
>

src/Components/Card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
>

0 commit comments

Comments
 (0)