@kopexa/theme 2.0.0 → 13.0.0
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-NFOF75HQ.mjs → chunk-2N3PG3TK.mjs} +1 -1
- package/dist/chunk-2NA54PNL.mjs +43 -0
- package/dist/{chunk-7O57EDVS.mjs → chunk-63C4SFQK.mjs} +20 -10
- package/dist/{chunk-5DOB3IBE.mjs → chunk-6IZPAS4O.mjs} +5 -0
- package/dist/{chunk-GA6UOB2D.mjs → chunk-7POAXCN2.mjs} +1 -1
- package/dist/{chunk-XAHAVJUM.mjs → chunk-A3F4CV54.mjs} +8 -1
- package/dist/{chunk-M3GQ563Q.mjs → chunk-ARLLAC5V.mjs} +1 -1
- package/dist/{chunk-Z7D56R5U.mjs → chunk-CWAFYX5G.mjs} +2 -2
- package/dist/{chunk-IHITEH7V.mjs → chunk-IX46TOS3.mjs} +1 -1
- package/dist/{chunk-IHW4FWFB.mjs → chunk-K3EVZATS.mjs} +1 -1
- package/dist/chunk-M4TXKRUU.mjs +7 -0
- package/dist/{chunk-URGRCBNW.mjs → chunk-NNKYGAZC.mjs} +1 -1
- package/dist/chunk-NUEQ5FLX.mjs +50 -0
- package/dist/{chunk-HHOMDBMZ.mjs → chunk-SYYY32OX.mjs} +1 -1
- package/dist/{chunk-DI54XTS5.mjs → chunk-TQVRNEIH.mjs} +1 -1
- package/dist/chunk-URVHE3OS.mjs +119 -0
- package/dist/{chunk-XRKUQMGU.mjs → chunk-UTCVHVWF.mjs} +1 -1
- package/dist/{chunk-YH6TDPK7.mjs → chunk-VDMXPFII.mjs} +1 -1
- package/dist/chunk-WQ446TVH.mjs +39 -0
- package/dist/components/autocomplete.js +5 -0
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.mjs +2 -2
- package/dist/components/callout.d.mts +18 -0
- package/dist/components/callout.d.ts +18 -0
- package/dist/components/callout.js +8 -1
- package/dist/components/callout.mjs +1 -1
- package/dist/components/card.d.mts +27 -0
- package/dist/components/card.d.ts +27 -0
- package/dist/components/card.js +20 -10
- package/dist/components/card.mjs +1 -1
- package/dist/components/combobox.d.mts +142 -0
- package/dist/components/combobox.d.ts +142 -0
- package/dist/components/combobox.js +228 -0
- package/dist/components/combobox.mjs +8 -0
- package/dist/components/command.d.mts +3 -3
- package/dist/components/command.d.ts +3 -3
- package/dist/components/control-extension.d.mts +5 -0
- package/dist/components/control-extension.d.ts +5 -0
- package/dist/components/control-extension.js +31 -0
- package/dist/components/control-extension.mjs +6 -0
- package/dist/components/editor-basic.d.mts +21 -4
- package/dist/components/editor-basic.d.ts +21 -4
- package/dist/components/editor-basic.js +21 -5
- package/dist/components/editor-basic.mjs +1 -1
- package/dist/components/hover-card.mjs +2 -2
- package/dist/components/index.d.mts +4 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +321 -104
- package/dist/components/index.mjs +54 -42
- package/dist/components/input.js +5 -0
- package/dist/components/input.mjs +2 -2
- package/dist/components/integration-card.d.mts +3 -3
- package/dist/components/integration-card.d.ts +3 -3
- package/dist/components/popover.mjs +2 -2
- package/dist/components/select.js +5 -0
- package/dist/components/select.mjs +2 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.mjs +1 -1
- package/dist/components/skeleton-avatar.mjs +3 -3
- package/dist/components/slash-dropdown-menu.mjs +2 -2
- package/dist/components/switch.d.mts +62 -0
- package/dist/components/switch.d.ts +62 -0
- package/dist/components/switch.js +63 -0
- package/dist/components/switch.mjs +6 -0
- package/dist/components/textarea.js +5 -0
- package/dist/components/textarea.mjs +2 -2
- package/dist/components/toolbar.d.mts +57 -0
- package/dist/components/toolbar.d.ts +57 -0
- package/dist/components/toolbar.js +24 -3
- package/dist/components/toolbar.mjs +1 -1
- package/dist/editor.css +62 -7
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +321 -104
- package/dist/index.mjs +54 -42
- package/dist/utils/classes.d.mts +5 -0
- package/dist/utils/classes.d.ts +5 -0
- package/dist/utils/classes.js +5 -0
- package/dist/utils/classes.mjs +1 -1
- package/package.json +6 -6
- package/dist/chunk-BWB7MWRC.mjs +0 -22
- package/dist/chunk-GRPMKEI2.mjs +0 -34
- /package/dist/{chunk-UWWO4AVU.mjs → chunk-XMLRBNOG.mjs} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/components/toolbar.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var toolbar = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex items-center gap-2.5 p-1",
|
|
6
|
+
button: "shrink-0",
|
|
7
|
+
separator: "bg-border h-6 w-px shrink-0",
|
|
8
|
+
group: "flex items-center gap-1"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
color: {
|
|
12
|
+
default: {
|
|
13
|
+
root: "bg-popover"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
sticky: {
|
|
17
|
+
true: {
|
|
18
|
+
root: "sticky top-0 z-10"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
border: {
|
|
22
|
+
default: "outline-border shadow-xs outline",
|
|
23
|
+
none: ""
|
|
24
|
+
},
|
|
25
|
+
radius: {
|
|
26
|
+
none: {
|
|
27
|
+
root: "rounded-none"
|
|
28
|
+
},
|
|
29
|
+
md: {
|
|
30
|
+
root: "rounded-md"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
border: "default",
|
|
36
|
+
color: "default",
|
|
37
|
+
radius: "md"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
toolbar
|
|
43
|
+
};
|
|
@@ -8,22 +8,25 @@ var card = tv({
|
|
|
8
8
|
],
|
|
9
9
|
header: [
|
|
10
10
|
"flex",
|
|
11
|
-
"p-3",
|
|
12
|
-
"z-10",
|
|
13
|
-
"w-full",
|
|
14
|
-
"justify-start",
|
|
15
11
|
"items-center",
|
|
12
|
+
"justify-between",
|
|
13
|
+
"flex-wrap",
|
|
14
|
+
"min-h-14",
|
|
15
|
+
"gap-2.5",
|
|
16
|
+
"w-full",
|
|
16
17
|
"shrink-0",
|
|
17
18
|
"overflow-inherit",
|
|
18
19
|
"color-inherit",
|
|
19
20
|
"subpixel-antialiased"
|
|
20
21
|
],
|
|
22
|
+
heading: "space-y-1",
|
|
23
|
+
toolbar: "flex items-center gap-2.5",
|
|
21
24
|
body: [
|
|
25
|
+
"grow",
|
|
22
26
|
"relative",
|
|
23
27
|
"flex",
|
|
24
28
|
"flex-1",
|
|
25
29
|
"w-full",
|
|
26
|
-
"p-3",
|
|
27
30
|
"flex-auto",
|
|
28
31
|
"flex-col",
|
|
29
32
|
"place-content-inherit",
|
|
@@ -52,6 +55,11 @@ var card = tv({
|
|
|
52
55
|
},
|
|
53
56
|
muted: {
|
|
54
57
|
root: "bg-muted text-muted-foreground"
|
|
58
|
+
},
|
|
59
|
+
accent: {
|
|
60
|
+
root: "bg-muted shadow-xs p-1",
|
|
61
|
+
header: "!border-none",
|
|
62
|
+
body: "bg-card rounded-t-xl [&:last-child]:rounded-b-xl"
|
|
55
63
|
}
|
|
56
64
|
},
|
|
57
65
|
shadow: {
|
|
@@ -76,10 +84,12 @@ var card = tv({
|
|
|
76
84
|
root: "border-0"
|
|
77
85
|
},
|
|
78
86
|
default: {
|
|
79
|
-
root: "border border-border"
|
|
87
|
+
root: "border border-border",
|
|
88
|
+
header: "border-b border-border"
|
|
80
89
|
},
|
|
81
90
|
emphasized: {
|
|
82
|
-
root: "border-2 border-border"
|
|
91
|
+
root: "border-2 border-border",
|
|
92
|
+
header: "border-b border-border"
|
|
83
93
|
}
|
|
84
94
|
},
|
|
85
95
|
radius: {
|
|
@@ -160,9 +170,9 @@ var card = tv({
|
|
|
160
170
|
footer: "p-2"
|
|
161
171
|
},
|
|
162
172
|
md: {
|
|
163
|
-
body: "p-
|
|
164
|
-
header: "
|
|
165
|
-
footer: "
|
|
173
|
+
body: "p-5",
|
|
174
|
+
header: "px-5",
|
|
175
|
+
footer: "px-5"
|
|
166
176
|
},
|
|
167
177
|
lg: {
|
|
168
178
|
body: "p-4",
|
|
@@ -7,7 +7,7 @@ var sidebar = tv({
|
|
|
7
7
|
],
|
|
8
8
|
sidebarWrapper: ["group peer text-sidebar-foreground hidden md:block"],
|
|
9
9
|
sidebar: [
|
|
10
|
-
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col"
|
|
10
|
+
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col isolate"
|
|
11
11
|
],
|
|
12
12
|
gap: [
|
|
13
13
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
@@ -10,6 +10,12 @@ var callout = tv({
|
|
|
10
10
|
closeButton: "absolute top-2 right-2 opacity-70 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
|
+
print: {
|
|
14
|
+
true: {},
|
|
15
|
+
false: {
|
|
16
|
+
root: "print:hidden"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
13
19
|
radius: {
|
|
14
20
|
none: { root: "rounded-none" },
|
|
15
21
|
sm: { root: "rounded-sm" },
|
|
@@ -63,7 +69,8 @@ var callout = tv({
|
|
|
63
69
|
defaultVariants: {
|
|
64
70
|
variant: "default",
|
|
65
71
|
radius: "md",
|
|
66
|
-
size: "md"
|
|
72
|
+
size: "md",
|
|
73
|
+
print: true
|
|
67
74
|
}
|
|
68
75
|
});
|
|
69
76
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K3EVZATS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
popoverContentClasses
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6IZPAS4O.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/autocomplete.ts
|
|
9
9
|
import { tv } from "tailwind-variants";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// src/components/editor-basic.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var editorBasic = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
"grid grid-rows-[auto,1fr]",
|
|
7
|
+
"h-full min-h-0 w-full min-w-0",
|
|
8
|
+
"content-start isolate"
|
|
9
|
+
],
|
|
10
|
+
toolbar: [
|
|
11
|
+
"row-start-1 row-end-2",
|
|
12
|
+
"flex items-center gap-0.5",
|
|
13
|
+
"sticky top-0 z-10"
|
|
14
|
+
],
|
|
15
|
+
wrapper: [
|
|
16
|
+
"row-start-2 row-end-3",
|
|
17
|
+
"min-h-0 min-w-0",
|
|
18
|
+
"overflow-y-auto"
|
|
19
|
+
// "h-[calc(100%-var(--spacing-editor-toolbar))]",
|
|
20
|
+
],
|
|
21
|
+
content: [
|
|
22
|
+
"w-full min-w-0 h-full min-h-0",
|
|
23
|
+
"[&_.tiptap.ProseMirror]:py-4",
|
|
24
|
+
"[&_.tiptap.ProseMirror]:px-6"
|
|
25
|
+
],
|
|
26
|
+
toolbarGroup: "flex items-center gap-0.5"
|
|
27
|
+
},
|
|
28
|
+
variants: {
|
|
29
|
+
variant: {
|
|
30
|
+
// rounded toolbar, muted background
|
|
31
|
+
default: {
|
|
32
|
+
wrapper: ["border rounded-md"],
|
|
33
|
+
toolbar: "rounded-md mb-2",
|
|
34
|
+
content: ""
|
|
35
|
+
},
|
|
36
|
+
// document style, eg. document editor, fullpage etc pp
|
|
37
|
+
document: {
|
|
38
|
+
wrapper: "size-full overflow-auto",
|
|
39
|
+
content: "size-full"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
variant: "default"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
editorBasic
|
|
50
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input
|
|
3
|
+
} from "./chunk-K3EVZATS.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/combobox.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var combobox = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
root: [],
|
|
10
|
+
control: "relative",
|
|
11
|
+
value: "",
|
|
12
|
+
input: [
|
|
13
|
+
...input.base,
|
|
14
|
+
"has-[[data-slot=combobox-input]:focus-visible]:ring-ring",
|
|
15
|
+
"has-[[data-slot=combobox-input]:focus-visible]:border-ring",
|
|
16
|
+
"has-[[data-slot=combobox-input]:focus-visible]:outline-none",
|
|
17
|
+
"has-[[data-slot=combobox-input]:focus-visible]:ring-2",
|
|
18
|
+
"[&_[data-slot=combobox-input]]:grow",
|
|
19
|
+
"[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed"
|
|
20
|
+
],
|
|
21
|
+
status: "text-muted-foreground text-sm",
|
|
22
|
+
positioner: "outline-none",
|
|
23
|
+
popup: [
|
|
24
|
+
"py-1 w-[var(--anchor-width)] max-h-[min(var(--available-height),23rem)] max-w-[var(--available-width)]",
|
|
25
|
+
"overflow-y-auto scroll-pt-2 scroll-pb-2 overscroll-contain bg-[canvas]",
|
|
26
|
+
"rounded-md border border-border bg-popover text-popover-foreground shadow-md shadow-black/5",
|
|
27
|
+
"origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-90",
|
|
28
|
+
"data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0"
|
|
29
|
+
],
|
|
30
|
+
list: "space-y-0.5",
|
|
31
|
+
row: "flex items-center gap-2",
|
|
32
|
+
item: [
|
|
33
|
+
"relative cursor-default flex items-center",
|
|
34
|
+
"text-foreground relative select-none items-center gap-2 rounded-md ps-7 pe-2 py-1.5 text-sm outline-hidden transition-colors data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
35
|
+
"[&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
|
|
36
|
+
"data-[highlighted]:relative data-[highlighted]:z-0 data-[highlighted]:text-foreground data-[highlighted]:before:absolute data-[highlighted]:before:inset-x-1 data-[highlighted]:before:inset-y-0 data-[highlighted]:before:z-[-1] data-[highlighted]:before:rounded-sm data-[highlighted]:before:bg-accent"
|
|
37
|
+
],
|
|
38
|
+
itemIndicator: [
|
|
39
|
+
"absolute flex top-1/2 -translate-y-1/2 items-center justify-center start-2.5",
|
|
40
|
+
"[&_svg]:size-4 [&_svg]:text-primary"
|
|
41
|
+
],
|
|
42
|
+
groupLabel: "px-2 py-1.5 text-xs text-muted-foreground font-medium",
|
|
43
|
+
empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0",
|
|
44
|
+
clear: [
|
|
45
|
+
"absolute cursor-pointer end-6 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background",
|
|
46
|
+
"transition-opacity opacity-60 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
47
|
+
"data-[disabled]:pointer-events-none",
|
|
48
|
+
"[&_svg]:size-3.5"
|
|
49
|
+
],
|
|
50
|
+
icon: [
|
|
51
|
+
"absolute cursor-pointer end-2 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background transition-opacity",
|
|
52
|
+
"opacity-60 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
53
|
+
"data-[disabled]:pointer-events-none",
|
|
54
|
+
"[&_svg]:size-3.5"
|
|
55
|
+
],
|
|
56
|
+
trigger: "relative",
|
|
57
|
+
// note: chips receive "input" and the following styles
|
|
58
|
+
chips: [
|
|
59
|
+
"flex items-center flex-wrap gap-1",
|
|
60
|
+
"[&_[data-slot=combobox-input]]:py-0 [&_[data-slot=combobox-input]]:px-1.5 has-[[data-slot=combobox-chip]]:[&_[data-slot=combobox-input]]:px-0",
|
|
61
|
+
"[&_[data-slot=combobox-input]]:min-h-0 [&_[data-slot=combobox-input]]:flex-1",
|
|
62
|
+
"[&_[data-slot=combobox-input]]:border-0 [&_[data-slot=combobox-input]]:shadow-none [&_[data-slot=combobox-input]]:rounded-none",
|
|
63
|
+
"[&_[data-slot=combobox-input]]:outline-none [&_[data-slot=combobox-input]]:ring-0"
|
|
64
|
+
],
|
|
65
|
+
chip: [
|
|
66
|
+
"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs font-medium text-foreground"
|
|
67
|
+
],
|
|
68
|
+
chipRemove: [
|
|
69
|
+
"cursor-pointer ms-1 rounded-sm [&_svg]:opacity-60 hover:bg-muted-foreground/20 hover:[&_svg]:opacity-100",
|
|
70
|
+
"[&_svg]:size-3.5"
|
|
71
|
+
],
|
|
72
|
+
separator: "my-1.5 h-px bg-muted",
|
|
73
|
+
header: ["flex flex-col items-start justify-between px-3 py-2 border-b"],
|
|
74
|
+
title: "text-sm font-semibold",
|
|
75
|
+
description: "text-xs text-muted-foreground"
|
|
76
|
+
},
|
|
77
|
+
variants: {
|
|
78
|
+
size: {
|
|
79
|
+
sm: {
|
|
80
|
+
input: [
|
|
81
|
+
...input.variants.size.sm,
|
|
82
|
+
"h-auto py-0.5",
|
|
83
|
+
"[&~[data-slot=combobox-icon]]:end-2.5 [&~[data-slot=combobox-clear]]:end-7"
|
|
84
|
+
],
|
|
85
|
+
chips: "px-0.75"
|
|
86
|
+
},
|
|
87
|
+
md: {
|
|
88
|
+
input: [
|
|
89
|
+
...input.variants.size.md,
|
|
90
|
+
"h-auto py-1",
|
|
91
|
+
"[&~[data-slot=combobox-icon]]:end-2 [&~[data-slot=combobox-clear]]:end-6"
|
|
92
|
+
],
|
|
93
|
+
chips: "px-1"
|
|
94
|
+
},
|
|
95
|
+
lg: {
|
|
96
|
+
input: [
|
|
97
|
+
...input.variants.size.lg,
|
|
98
|
+
"h-auto py-1",
|
|
99
|
+
"[&~[data-slot=combobox-icon]]:end-1.75 [&~[data-slot=combobox-clear]]:end-5.75"
|
|
100
|
+
],
|
|
101
|
+
chips: "px-1.5"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
fullWidth: {
|
|
105
|
+
true: {
|
|
106
|
+
input: "w-full",
|
|
107
|
+
chips: "w-full"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
defaultVariants: {
|
|
112
|
+
size: "md",
|
|
113
|
+
fullWidth: true
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export {
|
|
118
|
+
combobox
|
|
119
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/components/switch.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var switchVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
"peer data-[checked]:bg-primary data-[unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[unchecked]:bg-input/80",
|
|
7
|
+
"aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20",
|
|
8
|
+
"inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px]",
|
|
9
|
+
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
10
|
+
],
|
|
11
|
+
thumb: [
|
|
12
|
+
"bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground",
|
|
13
|
+
"pointer-events-none rounded-full ring-0 transition-transform flex items-center justify-center"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
sm: {
|
|
19
|
+
root: "h-4 w-6",
|
|
20
|
+
thumb: "size-3 data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0"
|
|
21
|
+
},
|
|
22
|
+
md: {
|
|
23
|
+
root: "h-5 w-8",
|
|
24
|
+
thumb: "size-4 data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0"
|
|
25
|
+
},
|
|
26
|
+
lg: {
|
|
27
|
+
root: "h-6 w-10",
|
|
28
|
+
thumb: "size-5 data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
size: "md"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
switchVariants
|
|
39
|
+
};
|
|
@@ -2,6 +2,12 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
|
|
4
4
|
declare const callout: tailwind_variants.TVReturnType<{
|
|
5
|
+
print: {
|
|
6
|
+
true: {};
|
|
7
|
+
false: {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
5
11
|
radius: {
|
|
6
12
|
none: {
|
|
7
13
|
root: string;
|
|
@@ -67,6 +73,12 @@ declare const callout: tailwind_variants.TVReturnType<{
|
|
|
67
73
|
content: string;
|
|
68
74
|
closeButton: string;
|
|
69
75
|
}, undefined, {
|
|
76
|
+
print: {
|
|
77
|
+
true: {};
|
|
78
|
+
false: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
70
82
|
radius: {
|
|
71
83
|
none: {
|
|
72
84
|
root: string;
|
|
@@ -132,6 +144,12 @@ declare const callout: tailwind_variants.TVReturnType<{
|
|
|
132
144
|
content: string;
|
|
133
145
|
closeButton: string;
|
|
134
146
|
}, tailwind_variants.TVReturnType<{
|
|
147
|
+
print: {
|
|
148
|
+
true: {};
|
|
149
|
+
false: {
|
|
150
|
+
root: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
135
153
|
radius: {
|
|
136
154
|
none: {
|
|
137
155
|
root: string;
|
|
@@ -2,6 +2,12 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
|
|
4
4
|
declare const callout: tailwind_variants.TVReturnType<{
|
|
5
|
+
print: {
|
|
6
|
+
true: {};
|
|
7
|
+
false: {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
5
11
|
radius: {
|
|
6
12
|
none: {
|
|
7
13
|
root: string;
|
|
@@ -67,6 +73,12 @@ declare const callout: tailwind_variants.TVReturnType<{
|
|
|
67
73
|
content: string;
|
|
68
74
|
closeButton: string;
|
|
69
75
|
}, undefined, {
|
|
76
|
+
print: {
|
|
77
|
+
true: {};
|
|
78
|
+
false: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
70
82
|
radius: {
|
|
71
83
|
none: {
|
|
72
84
|
root: string;
|
|
@@ -132,6 +144,12 @@ declare const callout: tailwind_variants.TVReturnType<{
|
|
|
132
144
|
content: string;
|
|
133
145
|
closeButton: string;
|
|
134
146
|
}, tailwind_variants.TVReturnType<{
|
|
147
|
+
print: {
|
|
148
|
+
true: {};
|
|
149
|
+
false: {
|
|
150
|
+
root: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
135
153
|
radius: {
|
|
136
154
|
none: {
|
|
137
155
|
root: string;
|
|
@@ -34,6 +34,12 @@ var callout = (0, import_tailwind_variants.tv)({
|
|
|
34
34
|
closeButton: "absolute top-2 right-2 opacity-70 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
|
|
35
35
|
},
|
|
36
36
|
variants: {
|
|
37
|
+
print: {
|
|
38
|
+
true: {},
|
|
39
|
+
false: {
|
|
40
|
+
root: "print:hidden"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
37
43
|
radius: {
|
|
38
44
|
none: { root: "rounded-none" },
|
|
39
45
|
sm: { root: "rounded-sm" },
|
|
@@ -87,7 +93,8 @@ var callout = (0, import_tailwind_variants.tv)({
|
|
|
87
93
|
defaultVariants: {
|
|
88
94
|
variant: "default",
|
|
89
95
|
radius: "md",
|
|
90
|
-
size: "md"
|
|
96
|
+
size: "md",
|
|
97
|
+
print: true
|
|
91
98
|
}
|
|
92
99
|
});
|
|
93
100
|
// Annotate the CommonJS export names for ESM import in node:
|