Skip to content

Commit 5149b21

Browse files
authored
Merge pull request #102 from Xenial-Devil/i-branch-41
i-branch-41
2 parents f52f64a + dceb2d3 commit 5149b21

File tree

134 files changed

+1649
-574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+1649
-574
lines changed

README.md

Lines changed: 129 additions & 96 deletions
Large diffs are not rendered by default.

src/components/Alert/Alert.styles.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const alertVariants = cva(
55
{
66
variants: {
77
variant: {
8+
default: "bg-background text-foreground border border-border",
89
solid:
910
"shadow-lg shadow-current/20 before:absolute before:inset-0 before:bg-gradient-to-br before:from-white/10 before:to-transparent before:opacity-50 after:absolute after:inset-0 after:bg-gradient-to-t after:from-black/5 after:to-transparent hover:shadow-current/30",
1011
subtle:
@@ -159,9 +160,9 @@ export const alertVariants = cva(
159160
},
160161
],
161162
defaultVariants: {
162-
variant: "solid",
163+
variant: "default",
163164
status: "info",
164165
rounded: true,
165166
},
166-
},
167+
}
167168
);

src/components/Alert/Alert.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22

33
// Explicit types for better type safety
44
export type AlertVariant =
5+
| "default"
56
| "solid"
67
| "subtle"
78
| "left-accent"
@@ -13,7 +14,7 @@ export type AlertStatus = "success" | "danger" | "warning" | "info";
1314
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
1415
/**
1516
* Visual style variant of the alert
16-
* @default "solid"
17+
* @default "default"
1718
*/
1819
variant?: AlertVariant;
1920

src/components/Alert/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const StatusIcon: React.FC<{
8686
const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
8787
(
8888
{
89-
variant = "solid",
89+
variant = "default",
9090
message = "",
9191
title,
9292
status = "info",

src/components/Autocomplete/Autocomplete.styles.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ const inputWrapperVariants = cva(
2929
error: "bg-danger/10 border border-danger rounded-lg",
3030
},
3131
size: {
32+
xs: "h-6 px-1.5 text-xs",
3233
sm: "h-8 px-2 text-sm",
3334
md: "h-10 px-3 text-sm",
3435
lg: "h-12 px-4 text-base",
36+
xl: "h-14 px-5 text-lg",
37+
"2xl": "h-16 px-6 text-xl",
38+
"3xl": "h-20 px-8 text-2xl",
39+
"4xl": "h-24 px-10 text-3xl",
3540
},
3641
focused: {
3742
true: "",
@@ -82,9 +87,14 @@ const inputVariants = cva(
8287
{
8388
variants: {
8489
size: {
90+
xs: "text-xs",
8591
sm: "text-sm",
8692
md: "text-sm",
8793
lg: "text-base",
94+
xl: "text-lg",
95+
"2xl": "text-xl",
96+
"3xl": "text-2xl",
97+
"4xl": "text-3xl",
8898
},
8999
disabled: {
90100
true: "cursor-not-allowed",
@@ -137,9 +147,14 @@ const optionVariants = cva(
137147
error: "",
138148
},
139149
size: {
150+
xs: "px-1.5 py-1 text-[10px]",
140151
sm: "px-2 py-1.5 text-xs",
141152
md: "px-3 py-2 text-sm",
142153
lg: "px-4 py-2.5 text-base",
154+
xl: "px-5 py-3 text-lg",
155+
"2xl": "px-6 py-3.5 text-xl",
156+
"3xl": "px-8 py-4 text-2xl",
157+
"4xl": "px-10 py-5 text-3xl",
143158
},
144159
highlighted: {
145160
true: "",
@@ -297,9 +312,14 @@ const optionVariants = cva(
297312
const labelVariants = cva("block mb-1.5 font-medium text-foreground", {
298313
variants: {
299314
size: {
315+
xs: "text-[10px]",
300316
sm: "text-xs",
301317
md: "text-sm",
302318
lg: "text-base",
319+
xl: "text-lg",
320+
"2xl": "text-xl",
321+
"3xl": "text-2xl",
322+
"4xl": "text-3xl",
303323
},
304324
required: {
305325
true: "after:content-['*'] after:ml-1 after:text-danger",

src/components/Autocomplete/Autocomplete.types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
export type AutocompleteSize = "sm" | "md" | "lg";
1+
export type AutocompleteSize =
2+
| "xs"
3+
| "sm"
4+
| "md"
5+
| "lg"
6+
| "xl"
7+
| "2xl"
8+
| "3xl"
9+
| "4xl";
210

311
export type AutocompleteVariant =
412
| "default"

src/components/Avatar/Avatar.styles.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const avatarVariants = cva(
1111
lg: "w-12 h-12 text-base",
1212
xl: "w-16 h-16 text-lg",
1313
"2xl": "w-20 h-20 text-xl",
14+
"3xl": "w-24 h-24 text-2xl",
15+
"4xl": "w-28 h-28 text-3xl",
1416
},
1517
shape: {
1618
circle: "rounded-full",
@@ -47,6 +49,8 @@ const statusVariants = cva(
4749
lg: "w-3 h-3",
4850
xl: "w-3.5 h-3.5",
4951
"2xl": "w-4 h-4",
52+
"3xl": "w-5 h-5",
53+
"4xl": "w-6 h-6",
5054
},
5155
status: {
5256
online:
@@ -63,4 +67,4 @@ const statusVariants = cva(
6367
},
6468
}
6569
);
66-
export { avatarVariants, statusVariants };
70+
export { avatarVariants, statusVariants };

src/components/Avatar/Avatar.types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
import React from "react";
22

33
// Explicit types for better type safety
4-
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
4+
export type AvatarSize =
5+
| "xs"
6+
| "sm"
7+
| "md"
8+
| "lg"
9+
| "xl"
10+
| "2xl"
11+
| "3xl"
12+
| "4xl";
513
export type AvatarShape = "circle" | "square" | "rounded";
614
export type AvatarStatus = "online" | "offline" | "away" | "busy" | "none";
715

src/components/AvatarGroup/AvatarGroup.styles.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const avatarWrapperVariants = cva(
3030
lg: "ring-0",
3131
xl: "ring-0",
3232
"2xl": "ring-0",
33+
"3xl": "ring-0",
34+
"4xl": "ring-0",
3335
},
3436
},
3537
defaultVariants: {
@@ -52,6 +54,8 @@ const moreIndicatorVariants = cva(
5254
lg: "text-base",
5355
xl: "text-lg",
5456
"2xl": "text-xl",
57+
"3xl": "text-2xl",
58+
"4xl": "text-3xl",
5559
},
5660
variant: {
5761
stack:
@@ -68,8 +72,4 @@ const moreIndicatorVariants = cva(
6872
},
6973
}
7074
);
71-
export {
72-
avatarGroupVariants,
73-
avatarWrapperVariants,
74-
moreIndicatorVariants,
75-
};
75+
export { avatarGroupVariants, avatarWrapperVariants, moreIndicatorVariants };

src/components/AvatarGroup/AvatarGroup.types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import { ReactNode } from "react";
33
/**
44
* Size options for AvatarGroup
55
*/
6-
export type AvatarGroupSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
6+
export type AvatarGroupSize =
7+
| "xs"
8+
| "sm"
9+
| "md"
10+
| "lg"
11+
| "xl"
12+
| "2xl"
13+
| "3xl"
14+
| "4xl";
715

816
/**
917
* Variant options for AvatarGroup layout

0 commit comments

Comments
 (0)