@kopexa/theme 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BIRJNNEY.mjs → chunk-3M5JSM7Y.mjs} +5 -5
- package/dist/chunk-5BIGFSZK.mjs +48 -0
- package/dist/chunk-CDTKWCOH.mjs +120 -0
- package/dist/{chunk-7CM52H5K.mjs → chunk-CQDTDA47.mjs} +1 -1
- package/dist/chunk-GNYTZGE5.mjs +48 -0
- package/dist/chunk-HAVJ6EQ6.mjs +39 -0
- package/dist/{chunk-Q5DCJR2X.mjs → chunk-I2NMD23O.mjs} +16 -3
- package/dist/chunk-KPOZFVP6.mjs +13 -0
- package/dist/chunk-NWKBPO37.mjs +21 -0
- package/dist/chunk-VNQEJU4P.mjs +9 -0
- package/dist/chunk-XCLEKBCJ.mjs +17 -0
- package/dist/components/avatar-group.d.mts +29 -0
- package/dist/components/avatar-group.d.ts +29 -0
- package/dist/components/avatar-group.js +41 -0
- package/dist/components/avatar-group.mjs +6 -0
- package/dist/components/avatar.d.mts +30 -0
- package/dist/components/avatar.d.ts +30 -0
- package/dist/components/avatar.js +16 -3
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/button.js +5 -5
- package/dist/components/button.mjs +1 -1
- package/dist/components/checkbox.d.mts +43 -0
- package/dist/components/checkbox.d.ts +43 -0
- package/dist/components/checkbox.js +37 -0
- package/dist/components/checkbox.mjs +6 -0
- package/dist/components/code.d.mts +70 -0
- package/dist/components/code.d.ts +70 -0
- package/dist/components/code.js +120 -0
- package/dist/components/code.mjs +7 -0
- package/dist/components/data-table.d.mts +121 -0
- package/dist/components/data-table.d.ts +121 -0
- package/dist/components/data-table.js +72 -0
- package/dist/components/data-table.mjs +6 -0
- package/dist/components/heading.d.mts +34 -0
- package/dist/components/heading.d.ts +34 -0
- package/dist/components/heading.js +45 -0
- package/dist/components/heading.mjs +6 -0
- package/dist/components/index.d.mts +8 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +352 -36
- package/dist/components/index.mjs +51 -19
- package/dist/components/input.js +1 -1
- package/dist/components/input.mjs +1 -1
- package/dist/components/page-header.d.mts +85 -0
- package/dist/components/page-header.d.ts +85 -0
- package/dist/components/page-header.js +63 -0
- package/dist/components/page-header.mjs +6 -0
- package/dist/components/skeleton.d.mts +5 -0
- package/dist/components/skeleton.d.ts +5 -0
- package/dist/components/skeleton.js +33 -0
- package/dist/components/skeleton.mjs +6 -0
- package/dist/components/table.d.mts +215 -0
- package/dist/components/table.d.ts +215 -0
- package/dist/components/table.js +144 -0
- package/dist/components/table.mjs +6 -0
- package/dist/index.css +131 -26
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +352 -36
- package/dist/index.mjs +51 -19
- package/package.json +3 -3
- /package/dist/{chunk-PWBTAIYS.mjs → chunk-FWB233VZ.mjs} +0 -0
|
@@ -24,13 +24,13 @@ var button = tv({
|
|
|
24
24
|
variant: {
|
|
25
25
|
solid: "shadow-xs",
|
|
26
26
|
ghost: "",
|
|
27
|
-
outline: "border-
|
|
27
|
+
outline: "border-1 bg-transparent",
|
|
28
28
|
link: ""
|
|
29
29
|
},
|
|
30
30
|
size: {
|
|
31
|
-
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
32
|
-
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3",
|
|
33
|
-
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4"
|
|
31
|
+
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5 [&_svg]:size-3",
|
|
32
|
+
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3 [&_svg]:size-4",
|
|
33
|
+
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4 [&_svg]:size-4"
|
|
34
34
|
},
|
|
35
35
|
color: {
|
|
36
36
|
primary: "",
|
|
@@ -49,7 +49,7 @@ var button = tv({
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
defaultVariants: {
|
|
52
|
-
size: "
|
|
52
|
+
size: "sm",
|
|
53
53
|
variant: "solid",
|
|
54
54
|
color: "primary",
|
|
55
55
|
fullWidth: false,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-67PPUTSS.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/code.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var code = tv({
|
|
8
|
+
base: [
|
|
9
|
+
"px-2",
|
|
10
|
+
"py-1",
|
|
11
|
+
"h-fit",
|
|
12
|
+
"font-mono",
|
|
13
|
+
"font-normal",
|
|
14
|
+
"inline-block",
|
|
15
|
+
"whitespace-nowrap"
|
|
16
|
+
],
|
|
17
|
+
variants: {
|
|
18
|
+
color: {
|
|
19
|
+
default: colorVariants.flat.default,
|
|
20
|
+
primary: colorVariants.flat.primary,
|
|
21
|
+
secondary: colorVariants.flat.secondary,
|
|
22
|
+
success: colorVariants.flat.success,
|
|
23
|
+
warning: colorVariants.flat.warning,
|
|
24
|
+
destructive: colorVariants.flat.destructive
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
sm: "text-xs",
|
|
28
|
+
md: "text-sm",
|
|
29
|
+
lg: "text-base"
|
|
30
|
+
},
|
|
31
|
+
radius: {
|
|
32
|
+
none: "rounded-none",
|
|
33
|
+
sm: "rounded-sm",
|
|
34
|
+
md: "rounded-md",
|
|
35
|
+
lg: "rounded-lg",
|
|
36
|
+
full: "rounded-full"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
color: "default",
|
|
41
|
+
size: "sm",
|
|
42
|
+
radius: "sm"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
code
|
|
48
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// src/components/table.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var table = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
table: "min-w-full h-auto",
|
|
6
|
+
thead: "",
|
|
7
|
+
tbody: "after:block divide-y",
|
|
8
|
+
tr: [
|
|
9
|
+
"group/tr outline-hidden",
|
|
10
|
+
"[&_td:last-child]:pr-4 [&_th:last-child]:pr-4",
|
|
11
|
+
"[&_td:first-child]:pl-4 [&_th:first-child]:pl-4"
|
|
12
|
+
],
|
|
13
|
+
th: [
|
|
14
|
+
"group/th px-3 py-3.5 text-start text-xs font-semibold whitespace-normal",
|
|
15
|
+
"text-foreground border-b"
|
|
16
|
+
],
|
|
17
|
+
td: [
|
|
18
|
+
"py-2 px-3 text-xs font-normal whitespace-normal relative",
|
|
19
|
+
"[&>*]:z-[1]",
|
|
20
|
+
"[&>*]:relative",
|
|
21
|
+
// after content for selection
|
|
22
|
+
"after:pointer-events-none",
|
|
23
|
+
"after:content-['']",
|
|
24
|
+
"after:absolute",
|
|
25
|
+
"after:-z-[1]",
|
|
26
|
+
"after:inset-0",
|
|
27
|
+
"after:opacity-0",
|
|
28
|
+
"group-aria-[selected=true]/tr:after:opacity-100",
|
|
29
|
+
// before content for selection
|
|
30
|
+
"before:pointer-events-none",
|
|
31
|
+
"before:content-['']",
|
|
32
|
+
"before:absolute",
|
|
33
|
+
"before:-z-[1]",
|
|
34
|
+
"before:inset-y-0",
|
|
35
|
+
"before:start-0",
|
|
36
|
+
"before:w-0.5",
|
|
37
|
+
"before:opacity-0",
|
|
38
|
+
"group-aria-[selected=true]/tr:first:before:opacity-100"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
overscroll: {
|
|
43
|
+
horizontal: {
|
|
44
|
+
th: "whitespace-nowrap",
|
|
45
|
+
td: "whitespace-nowrap"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
color: {
|
|
49
|
+
default: {
|
|
50
|
+
td: [
|
|
51
|
+
"first:before:bg-primary group-aria-[selected=true]/tr:text-accent-foreground"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
primary: {
|
|
55
|
+
td: [
|
|
56
|
+
"before:bg-primary group-aria-[selected=true]/tr:text-primary dark:group-aria-[selected=true]/tr:text-primary-foreground",
|
|
57
|
+
"after:bg-primary/10 dark:after:bg-primary/20"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
layout: {
|
|
62
|
+
auto: {
|
|
63
|
+
table: "table-auto"
|
|
64
|
+
},
|
|
65
|
+
fixed: {
|
|
66
|
+
table: "table-fixed"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
isSelectable: {
|
|
70
|
+
true: {
|
|
71
|
+
tr: "cursor-default",
|
|
72
|
+
td: [
|
|
73
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:bg-muted/30"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
hasSelect: {
|
|
78
|
+
true: {
|
|
79
|
+
tr: "[&_th:first-of-type]:w-[1%] [&_th:first-of-type]:whitespace-nowrap"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
hasActions: {
|
|
83
|
+
true: {
|
|
84
|
+
tr: "[&_th:last-of-type]:w-[1%] [&_th:last-of-type]:whitespace-nowrap"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
isStickyCell: {
|
|
88
|
+
true: {
|
|
89
|
+
th: "sticky bg-background z-[2]",
|
|
90
|
+
td: "sticky h-full bg-background z-[2]"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
isSelectCell: {
|
|
94
|
+
true: {
|
|
95
|
+
td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
isActionCell: {
|
|
99
|
+
true: {
|
|
100
|
+
td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
fullWidth: {
|
|
104
|
+
true: {
|
|
105
|
+
base: "w-full",
|
|
106
|
+
wrapper: "w-full",
|
|
107
|
+
table: "w-full"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
defaultVariants: {
|
|
112
|
+
layout: "auto",
|
|
113
|
+
color: "default",
|
|
114
|
+
fullWidth: true
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
export {
|
|
119
|
+
table
|
|
120
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/components/data-table.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var dataTable = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "relative flex min-h-0 flex-1 flex-col",
|
|
6
|
+
toolbarWrapper: "flex flex-col gap-2 divide-y pb-2",
|
|
7
|
+
toolbar: "flex items-center py-4",
|
|
8
|
+
wrapper: "min-h-0 w-full flex-1 overflow-auto overscroll-none",
|
|
9
|
+
th: "",
|
|
10
|
+
td: ""
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
isFirstColumn: {
|
|
14
|
+
true: {
|
|
15
|
+
th: "after:absolute after:inset-y-0 after:right-0 after:h-full after:w-px after:bg-transparent after:content-['']",
|
|
16
|
+
td: "after:absolute after:inset-y-0 after:right-0 after:h-full after:w-px after:bg-transparent after:content-['']"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
showStickyBorder: {
|
|
20
|
+
true: {
|
|
21
|
+
th: "after:bg-border",
|
|
22
|
+
td: "after:bg-border"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
isSelect: {
|
|
26
|
+
true: {
|
|
27
|
+
th: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]",
|
|
28
|
+
td: "w-[calc(20px+24px+24px)] min-w-[calc(20px+24px+24px)] max-w-[calc(20px+24px+24px)]"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
isAction: {
|
|
32
|
+
true: {
|
|
33
|
+
th: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]",
|
|
34
|
+
td: "w-[calc(28px+24px+4px)] min-w-[calc(28px+24px+4px)] max-w-[calc(28px+24px+4px)]"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
isSticky: {
|
|
38
|
+
true: {
|
|
39
|
+
th: "bg-background sticky",
|
|
40
|
+
td: "bg-background sticky z-[2]"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
dataTable
|
|
48
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/components/page-header.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var pageHeader = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "page-header",
|
|
6
|
+
titleArea: "page-header__title-area flex gap-2 flex-row items-center",
|
|
7
|
+
title: "page-header__title block",
|
|
8
|
+
contextArea: [
|
|
9
|
+
"page-header__context-area",
|
|
10
|
+
"flex",
|
|
11
|
+
"pb-2",
|
|
12
|
+
"text-sm",
|
|
13
|
+
"flex-row",
|
|
14
|
+
"gap-2"
|
|
15
|
+
],
|
|
16
|
+
leadingVisual: "page-header__leading-visual flex items-center [&_svg]:size-4",
|
|
17
|
+
leadingAction: "page-header__leading-action",
|
|
18
|
+
breadcrumbs: ["page-header__breadcrumbs", "flex pe-2 items-center"],
|
|
19
|
+
actions: [
|
|
20
|
+
"page-header__actions",
|
|
21
|
+
"flex",
|
|
22
|
+
"flex-row",
|
|
23
|
+
"gap-2",
|
|
24
|
+
"justify-end",
|
|
25
|
+
"items-start",
|
|
26
|
+
"min-w-max",
|
|
27
|
+
"ps-2"
|
|
28
|
+
],
|
|
29
|
+
description: [
|
|
30
|
+
"page-header__description",
|
|
31
|
+
"flex flex-row items-center gap-2 pt-2 text-sm font-normal leading-normal"
|
|
32
|
+
],
|
|
33
|
+
navigation: ["page-header__navigation", "block pt-2 text-sm fonr-normal"]
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
pageHeader
|
|
39
|
+
};
|
|
@@ -59,13 +59,13 @@ var avatar = tv({
|
|
|
59
59
|
variants: {
|
|
60
60
|
size: {
|
|
61
61
|
sm: {
|
|
62
|
-
root: "w-8 h-8 text-
|
|
62
|
+
root: "w-8 h-8 text-[11px]"
|
|
63
63
|
},
|
|
64
64
|
md: {
|
|
65
|
-
root: "w-10 h-10 text-
|
|
65
|
+
root: "w-10 h-10 text-[12px]"
|
|
66
66
|
},
|
|
67
67
|
lg: {
|
|
68
|
-
root: "w-14 h-14 text-
|
|
68
|
+
root: "w-14 h-14 text-[14px]"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
color: {
|
|
@@ -114,6 +114,19 @@ var avatar = tv({
|
|
|
114
114
|
true: {
|
|
115
115
|
root: "opacity-50"
|
|
116
116
|
}
|
|
117
|
+
},
|
|
118
|
+
isInGroup: {
|
|
119
|
+
true: {
|
|
120
|
+
root: [
|
|
121
|
+
"-ms-2 hover:-translate-x-3 rtl:hover:translate-x-3 transition-transform",
|
|
122
|
+
"focus-visible:-translate-x-3 rtl:focus-visible:translate-x-3"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
isInGridGroup: {
|
|
127
|
+
true: {
|
|
128
|
+
root: "m-0 hover:translate-x-0"
|
|
129
|
+
}
|
|
117
130
|
}
|
|
118
131
|
},
|
|
119
132
|
defaultVariants: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/components/checkbox.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var checkbox = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
6
|
+
indicator: "flex items-center justify-center text-current transition-none",
|
|
7
|
+
icon: "size-3.5"
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
checkbox
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/heading.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var heading = tv({
|
|
4
|
+
variants: {
|
|
5
|
+
level: {
|
|
6
|
+
h1: "text-h1-core",
|
|
7
|
+
h2: "text-h2-core",
|
|
8
|
+
h3: "text-h3-core",
|
|
9
|
+
h4: "text-h4-core",
|
|
10
|
+
h5: "text-h5-core",
|
|
11
|
+
h6: "text-h6-core"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
level: "h1"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
heading
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/components/avatar-group.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var avatarGroup = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "flex items-center justify-center h-auto w-max",
|
|
6
|
+
count: "hover:-translate-x-0"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
isGrid: {
|
|
10
|
+
true: "inline-grid grid-cols-4 gap-3"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
avatarGroup
|
|
17
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const avatarGroup: tailwind_variants.TVReturnType<{
|
|
5
|
+
isGrid: {
|
|
6
|
+
true: string;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
base: string;
|
|
10
|
+
count: string;
|
|
11
|
+
}, undefined, {
|
|
12
|
+
isGrid: {
|
|
13
|
+
true: string;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
base: string;
|
|
17
|
+
count: string;
|
|
18
|
+
}, tailwind_variants.TVReturnType<{
|
|
19
|
+
isGrid: {
|
|
20
|
+
true: string;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
base: string;
|
|
24
|
+
count: string;
|
|
25
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
26
|
+
type AvatarGroupVariantProps = VariantProps<typeof avatarGroup>;
|
|
27
|
+
type AvatarGroupSlots = keyof ReturnType<typeof avatarGroup>;
|
|
28
|
+
|
|
29
|
+
export { type AvatarGroupSlots, type AvatarGroupVariantProps, avatarGroup };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const avatarGroup: tailwind_variants.TVReturnType<{
|
|
5
|
+
isGrid: {
|
|
6
|
+
true: string;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
base: string;
|
|
10
|
+
count: string;
|
|
11
|
+
}, undefined, {
|
|
12
|
+
isGrid: {
|
|
13
|
+
true: string;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
base: string;
|
|
17
|
+
count: string;
|
|
18
|
+
}, tailwind_variants.TVReturnType<{
|
|
19
|
+
isGrid: {
|
|
20
|
+
true: string;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
base: string;
|
|
24
|
+
count: string;
|
|
25
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
26
|
+
type AvatarGroupVariantProps = VariantProps<typeof avatarGroup>;
|
|
27
|
+
type AvatarGroupSlots = keyof ReturnType<typeof avatarGroup>;
|
|
28
|
+
|
|
29
|
+
export { type AvatarGroupSlots, type AvatarGroupVariantProps, avatarGroup };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/avatar-group.ts
|
|
21
|
+
var avatar_group_exports = {};
|
|
22
|
+
__export(avatar_group_exports, {
|
|
23
|
+
avatarGroup: () => avatarGroup
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(avatar_group_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var avatarGroup = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: "flex items-center justify-center h-auto w-max",
|
|
30
|
+
count: "hover:-translate-x-0"
|
|
31
|
+
},
|
|
32
|
+
variants: {
|
|
33
|
+
isGrid: {
|
|
34
|
+
true: "inline-grid grid-cols-4 gap-3"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
avatarGroup
|
|
41
|
+
});
|
|
@@ -60,6 +60,16 @@ declare const avatar: tailwind_variants.TVReturnType<{
|
|
|
60
60
|
root: string;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
+
isInGroup: {
|
|
64
|
+
true: {
|
|
65
|
+
root: string[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
isInGridGroup: {
|
|
69
|
+
true: {
|
|
70
|
+
root: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
63
73
|
}, {
|
|
64
74
|
root: string[];
|
|
65
75
|
img: string[];
|
|
@@ -125,6 +135,16 @@ declare const avatar: tailwind_variants.TVReturnType<{
|
|
|
125
135
|
root: string;
|
|
126
136
|
};
|
|
127
137
|
};
|
|
138
|
+
isInGroup: {
|
|
139
|
+
true: {
|
|
140
|
+
root: string[];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
isInGridGroup: {
|
|
144
|
+
true: {
|
|
145
|
+
root: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
128
148
|
}, {
|
|
129
149
|
root: string[];
|
|
130
150
|
img: string[];
|
|
@@ -190,6 +210,16 @@ declare const avatar: tailwind_variants.TVReturnType<{
|
|
|
190
210
|
root: string;
|
|
191
211
|
};
|
|
192
212
|
};
|
|
213
|
+
isInGroup: {
|
|
214
|
+
true: {
|
|
215
|
+
root: string[];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
isInGridGroup: {
|
|
219
|
+
true: {
|
|
220
|
+
root: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
193
223
|
}, {
|
|
194
224
|
root: string[];
|
|
195
225
|
img: string[];
|
|
@@ -60,6 +60,16 @@ declare const avatar: tailwind_variants.TVReturnType<{
|
|
|
60
60
|
root: string;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
+
isInGroup: {
|
|
64
|
+
true: {
|
|
65
|
+
root: string[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
isInGridGroup: {
|
|
69
|
+
true: {
|
|
70
|
+
root: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
63
73
|
}, {
|
|
64
74
|
root: string[];
|
|
65
75
|
img: string[];
|
|
@@ -125,6 +135,16 @@ declare const avatar: tailwind_variants.TVReturnType<{
|
|
|
125
135
|
root: string;
|
|
126
136
|
};
|
|
127
137
|
};
|
|
138
|
+
isInGroup: {
|
|
139
|
+
true: {
|
|
140
|
+
root: string[];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
isInGridGroup: {
|
|
144
|
+
true: {
|
|
145
|
+
root: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
128
148
|
}, {
|
|
129
149
|
root: string[];
|
|
130
150
|
img: string[];
|
|
@@ -190,6 +210,16 @@ declare const avatar: tailwind_variants.TVReturnType<{
|
|
|
190
210
|
root: string;
|
|
191
211
|
};
|
|
192
212
|
};
|
|
213
|
+
isInGroup: {
|
|
214
|
+
true: {
|
|
215
|
+
root: string[];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
isInGridGroup: {
|
|
219
|
+
true: {
|
|
220
|
+
root: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
193
223
|
}, {
|
|
194
224
|
root: string[];
|
|
195
225
|
img: string[];
|
|
@@ -140,13 +140,13 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
140
140
|
variants: {
|
|
141
141
|
size: {
|
|
142
142
|
sm: {
|
|
143
|
-
root: "w-8 h-8 text-
|
|
143
|
+
root: "w-8 h-8 text-[11px]"
|
|
144
144
|
},
|
|
145
145
|
md: {
|
|
146
|
-
root: "w-10 h-10 text-
|
|
146
|
+
root: "w-10 h-10 text-[12px]"
|
|
147
147
|
},
|
|
148
148
|
lg: {
|
|
149
|
-
root: "w-14 h-14 text-
|
|
149
|
+
root: "w-14 h-14 text-[14px]"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
color: {
|
|
@@ -195,6 +195,19 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
195
195
|
true: {
|
|
196
196
|
root: "opacity-50"
|
|
197
197
|
}
|
|
198
|
+
},
|
|
199
|
+
isInGroup: {
|
|
200
|
+
true: {
|
|
201
|
+
root: [
|
|
202
|
+
"-ms-2 hover:-translate-x-3 rtl:hover:translate-x-3 transition-transform",
|
|
203
|
+
"focus-visible:-translate-x-3 rtl:focus-visible:translate-x-3"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
isInGridGroup: {
|
|
208
|
+
true: {
|
|
209
|
+
root: "m-0 hover:translate-x-0"
|
|
210
|
+
}
|
|
198
211
|
}
|
|
199
212
|
},
|
|
200
213
|
defaultVariants: {
|
|
@@ -99,13 +99,13 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
99
99
|
variant: {
|
|
100
100
|
solid: "shadow-xs",
|
|
101
101
|
ghost: "",
|
|
102
|
-
outline: "border-
|
|
102
|
+
outline: "border-1 bg-transparent",
|
|
103
103
|
link: ""
|
|
104
104
|
},
|
|
105
105
|
size: {
|
|
106
|
-
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
107
|
-
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3",
|
|
108
|
-
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4"
|
|
106
|
+
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5 [&_svg]:size-3",
|
|
107
|
+
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3 [&_svg]:size-4",
|
|
108
|
+
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4 [&_svg]:size-4"
|
|
109
109
|
},
|
|
110
110
|
color: {
|
|
111
111
|
primary: "",
|
|
@@ -124,7 +124,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
defaultVariants: {
|
|
127
|
-
size: "
|
|
127
|
+
size: "sm",
|
|
128
128
|
variant: "solid",
|
|
129
129
|
color: "primary",
|
|
130
130
|
fullWidth: false,
|