@kopexa/theme 1.5.3 → 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-Z56OSRTC.mjs → chunk-I2NMD23O.mjs} +3 -3
- package/dist/chunk-KPOZFVP6.mjs +13 -0
- package/dist/chunk-NWKBPO37.mjs +21 -0
- package/dist/chunk-VNQEJU4P.mjs +9 -0
- package/dist/components/avatar.js +3 -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 +7 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +317 -30
- package/dist/components/index.mjs +45 -17
- 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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +317 -30
- package/dist/index.mjs +45 -17
- package/package.json +3 -3
- /package/dist/{chunk-5EDS3TJU.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: {
|
|
@@ -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
|
+
};
|
|
@@ -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: {
|
|
@@ -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,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const checkbox: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
base?: tailwind_variants.ClassValue;
|
|
8
|
+
icon?: tailwind_variants.ClassValue;
|
|
9
|
+
indicator?: tailwind_variants.ClassValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
15
|
+
base?: tailwind_variants.ClassValue;
|
|
16
|
+
icon?: tailwind_variants.ClassValue;
|
|
17
|
+
indicator?: tailwind_variants.ClassValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {}, {
|
|
21
|
+
base: string;
|
|
22
|
+
indicator: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
}, undefined, {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
27
|
+
base?: tailwind_variants.ClassValue;
|
|
28
|
+
icon?: tailwind_variants.ClassValue;
|
|
29
|
+
indicator?: tailwind_variants.ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
base: string;
|
|
34
|
+
indicator: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
37
|
+
base: string;
|
|
38
|
+
indicator: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
41
|
+
type CheckboxVariantProps = VariantProps<typeof checkbox>;
|
|
42
|
+
|
|
43
|
+
export { type CheckboxVariantProps, checkbox };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const checkbox: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
base?: tailwind_variants.ClassValue;
|
|
8
|
+
icon?: tailwind_variants.ClassValue;
|
|
9
|
+
indicator?: tailwind_variants.ClassValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
15
|
+
base?: tailwind_variants.ClassValue;
|
|
16
|
+
icon?: tailwind_variants.ClassValue;
|
|
17
|
+
indicator?: tailwind_variants.ClassValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {}, {
|
|
21
|
+
base: string;
|
|
22
|
+
indicator: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
}, undefined, {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
27
|
+
base?: tailwind_variants.ClassValue;
|
|
28
|
+
icon?: tailwind_variants.ClassValue;
|
|
29
|
+
indicator?: tailwind_variants.ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
base: string;
|
|
34
|
+
indicator: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
37
|
+
base: string;
|
|
38
|
+
indicator: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
41
|
+
type CheckboxVariantProps = VariantProps<typeof checkbox>;
|
|
42
|
+
|
|
43
|
+
export { type CheckboxVariantProps, checkbox };
|
|
@@ -0,0 +1,37 @@
|
|
|
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/checkbox.ts
|
|
21
|
+
var checkbox_exports = {};
|
|
22
|
+
__export(checkbox_exports, {
|
|
23
|
+
checkbox: () => checkbox
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(checkbox_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var checkbox = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
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",
|
|
30
|
+
indicator: "flex items-center justify-center text-current transition-none",
|
|
31
|
+
icon: "size-3.5"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
checkbox
|
|
37
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const code: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
default: string;
|
|
7
|
+
primary: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
success: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
destructive: string;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
sm: string;
|
|
15
|
+
md: string;
|
|
16
|
+
lg: string;
|
|
17
|
+
};
|
|
18
|
+
radius: {
|
|
19
|
+
none: string;
|
|
20
|
+
sm: string;
|
|
21
|
+
md: string;
|
|
22
|
+
lg: string;
|
|
23
|
+
full: string;
|
|
24
|
+
};
|
|
25
|
+
}, undefined, string[], {
|
|
26
|
+
color: {
|
|
27
|
+
default: string;
|
|
28
|
+
primary: string;
|
|
29
|
+
secondary: string;
|
|
30
|
+
success: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
destructive: string;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
sm: string;
|
|
36
|
+
md: string;
|
|
37
|
+
lg: string;
|
|
38
|
+
};
|
|
39
|
+
radius: {
|
|
40
|
+
none: string;
|
|
41
|
+
sm: string;
|
|
42
|
+
md: string;
|
|
43
|
+
lg: string;
|
|
44
|
+
full: string;
|
|
45
|
+
};
|
|
46
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
47
|
+
color: {
|
|
48
|
+
default: string;
|
|
49
|
+
primary: string;
|
|
50
|
+
secondary: string;
|
|
51
|
+
success: string;
|
|
52
|
+
warning: string;
|
|
53
|
+
destructive: string;
|
|
54
|
+
};
|
|
55
|
+
size: {
|
|
56
|
+
sm: string;
|
|
57
|
+
md: string;
|
|
58
|
+
lg: string;
|
|
59
|
+
};
|
|
60
|
+
radius: {
|
|
61
|
+
none: string;
|
|
62
|
+
sm: string;
|
|
63
|
+
md: string;
|
|
64
|
+
lg: string;
|
|
65
|
+
full: string;
|
|
66
|
+
};
|
|
67
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
68
|
+
type CodeVariantProps = VariantProps<typeof code>;
|
|
69
|
+
|
|
70
|
+
export { type CodeVariantProps, code };
|