@kopexa/theme 1.7.7 → 2.1.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-2NA54PNL.mjs +43 -0
- package/dist/{chunk-EXBKQDH5.mjs → chunk-3PCDCW7G.mjs} +1 -1
- package/dist/{chunk-UEMJVVVF.mjs → chunk-5DOB3IBE.mjs} +14 -1
- package/dist/{chunk-7O57EDVS.mjs → chunk-63C4SFQK.mjs} +20 -10
- package/dist/{chunk-SHHD2WUZ.mjs → chunk-7VZZASRG.mjs} +1 -1
- package/dist/{chunk-XAHAVJUM.mjs → chunk-A3F4CV54.mjs} +8 -1
- package/dist/chunk-BETLBSSF.mjs +23 -0
- package/dist/chunk-CPERWXKN.mjs +21 -0
- package/dist/chunk-DI54XTS5.mjs +56 -0
- package/dist/{chunk-ZL6FAOXE.mjs → chunk-HHOMDBMZ.mjs} +1 -1
- package/dist/chunk-HWEYNK3O.mjs +25 -0
- package/dist/{chunk-U32YEQZ5.mjs → chunk-IHITEH7V.mjs} +15 -9
- package/dist/chunk-IHW4FWFB.mjs +71 -0
- package/dist/{chunk-TJDRYBGW.mjs → chunk-JXQPOORM.mjs} +15 -9
- package/dist/{chunk-MWG2OZMD.mjs → chunk-LAJQAXSV.mjs} +7 -9
- package/dist/{chunk-VCLXE57S.mjs → chunk-LM7MKBHT.mjs} +7 -1
- package/dist/chunk-LMCM4CW2.mjs +22 -0
- package/dist/chunk-M3GQ563Q.mjs +33 -0
- package/dist/chunk-M4TXKRUU.mjs +7 -0
- package/dist/chunk-NFOF75HQ.mjs +106 -0
- package/dist/chunk-NUEQ5FLX.mjs +50 -0
- package/dist/{chunk-JHKTRIIA.mjs → chunk-RQYYDG26.mjs} +4 -2
- package/dist/chunk-SPQE7K66.mjs +18 -0
- package/dist/chunk-TVC4THD6.mjs +16 -0
- package/dist/chunk-URGRCBNW.mjs +27 -0
- package/dist/chunk-VSVGOX3P.mjs +48 -0
- package/dist/chunk-WQ446TVH.mjs +39 -0
- package/dist/chunk-XGUDXC5P.mjs +26 -0
- package/dist/{chunk-755GJHKQ.mjs → chunk-XRKUQMGU.mjs} +1 -1
- package/dist/{chunk-JQ74U2S3.mjs → chunk-YH6TDPK7.mjs} +4 -4
- package/dist/chunk-Z7D56R5U.mjs +70 -0
- package/dist/components/alert-dialog.d.mts +9 -9
- package/dist/components/alert-dialog.d.ts +9 -9
- package/dist/components/alert-dialog.js +11 -2
- package/dist/components/alert-dialog.mjs +1 -1
- package/dist/components/autocomplete.d.mts +73 -0
- package/dist/components/autocomplete.d.ts +73 -0
- package/dist/components/autocomplete.js +173 -0
- package/dist/components/autocomplete.mjs +8 -0
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.d.mts +15 -0
- package/dist/components/button.d.ts +15 -0
- package/dist/components/button.js +12 -6
- 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/chip.d.mts +3 -0
- package/dist/components/chip.d.ts +3 -0
- package/dist/components/chip.js +4 -2
- package/dist/components/chip.mjs +1 -1
- package/dist/components/color-highlight-button.d.mts +36 -0
- package/dist/components/color-highlight-button.d.ts +36 -0
- package/dist/components/color-highlight-button.js +45 -0
- package/dist/components/color-highlight-button.mjs +6 -0
- package/dist/components/command.d.mts +9 -9
- package/dist/components/command.d.ts +9 -9
- 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/dialog.js +7 -9
- package/dist/components/dialog.mjs +1 -1
- package/dist/components/drawer.d.mts +3 -3
- package/dist/components/drawer.d.ts +3 -3
- package/dist/components/drawer.js +21 -17
- package/dist/components/drawer.mjs +2 -2
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu.mjs +1 -1
- package/dist/components/editor-basic.d.mts +61 -0
- package/dist/components/editor-basic.d.ts +61 -0
- package/dist/components/editor-basic.js +74 -0
- package/dist/components/editor-basic.mjs +6 -0
- package/dist/components/editor-spinner.d.mts +60 -0
- package/dist/components/editor-spinner.d.ts +60 -0
- package/dist/components/editor-spinner.js +40 -0
- package/dist/components/editor-spinner.mjs +6 -0
- package/dist/components/hover-card.mjs +2 -2
- package/dist/components/index.d.mts +15 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/index.js +787 -209
- package/dist/components/index.mjs +111 -51
- package/dist/components/input-group.d.mts +5 -0
- package/dist/components/input-group.d.ts +5 -0
- package/dist/components/input-group.js +49 -0
- package/dist/components/input-group.mjs +6 -0
- package/dist/components/input-wrapper.d.mts +25 -0
- package/dist/components/input-wrapper.d.ts +25 -0
- package/dist/components/input-wrapper.js +72 -0
- package/dist/components/input-wrapper.mjs +6 -0
- package/dist/components/input.d.mts +30 -129
- package/dist/components/input.d.ts +30 -129
- package/dist/components/input.js +58 -71
- 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/kbd.d.mts +35 -0
- package/dist/components/kbd.d.ts +35 -0
- package/dist/components/kbd.js +47 -0
- package/dist/components/kbd.mjs +6 -0
- package/dist/components/label.d.mts +22 -0
- package/dist/components/label.d.ts +22 -0
- package/dist/components/label.js +46 -0
- package/dist/components/label.mjs +6 -0
- package/dist/components/popover.d.mts +79 -14
- package/dist/components/popover.d.ts +79 -14
- package/dist/components/popover.js +41 -4
- package/dist/components/popover.mjs +2 -2
- package/dist/components/scroll-area.d.mts +50 -0
- package/dist/components/scroll-area.d.ts +50 -0
- package/dist/components/scroll-area.js +42 -0
- package/dist/components/scroll-area.mjs +6 -0
- package/dist/components/select.d.mts +76 -0
- package/dist/components/select.d.ts +76 -0
- package/dist/components/select.js +145 -0
- package/dist/components/select.mjs +7 -0
- package/dist/components/separator.d.mts +2 -2
- package/dist/components/separator.d.ts +2 -2
- package/dist/components/separator.js +7 -1
- package/dist/components/separator.mjs +1 -1
- package/dist/components/skeleton-avatar.mjs +3 -3
- package/dist/components/slash-dropdown-menu.d.mts +54 -0
- package/dist/components/slash-dropdown-menu.d.ts +54 -0
- package/dist/components/slash-dropdown-menu.js +55 -0
- package/dist/components/slash-dropdown-menu.mjs +7 -0
- package/dist/components/standard-chip.d.mts +4 -0
- package/dist/components/standard-chip.d.ts +4 -0
- package/dist/components/standard-chip.js +4 -2
- package/dist/components/standard-chip.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.d.mts +25 -0
- package/dist/components/textarea.d.ts +25 -0
- package/dist/components/textarea.js +72 -0
- package/dist/components/textarea.mjs +7 -0
- package/dist/components/toolbar.d.mts +91 -0
- package/dist/components/toolbar.d.ts +91 -0
- package/dist/components/toolbar.js +67 -0
- package/dist/components/toolbar.mjs +6 -0
- package/dist/editor.css +839 -0
- package/dist/index.css +28 -1
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +787 -209
- package/dist/index.mjs +111 -51
- package/dist/utils/classes.d.mts +13 -1
- package/dist/utils/classes.d.ts +13 -1
- package/dist/utils/classes.js +14 -0
- package/dist/utils/classes.mjs +3 -1
- package/package.json +26 -20
- package/dist/chunk-CPEP2RO4.mjs +0 -17
- package/dist/chunk-IKJHZT2S.mjs +0 -19
- package/dist/chunk-UMSU2ZEG.mjs +0 -96
- /package/dist/{chunk-3ZVSVLZD.mjs → chunk-4I5ASWB3.mjs} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
focusVisibleClasses,
|
|
3
|
+
inputClasses
|
|
4
|
+
} from "./chunk-5DOB3IBE.mjs";
|
|
5
|
+
|
|
6
|
+
// src/components/select.ts
|
|
7
|
+
import { tv } from "tailwind-variants";
|
|
8
|
+
var select = tv({
|
|
9
|
+
slots: {
|
|
10
|
+
trigger: [
|
|
11
|
+
"border-input border w-full shadow-xs",
|
|
12
|
+
...focusVisibleClasses,
|
|
13
|
+
"aria-expanded:outline-2 aria-expanded:outline-ring aria-expanded:outline-offset-2",
|
|
14
|
+
"group relative flex items-center justify-between gap-2 whitespace-nowrap select-none",
|
|
15
|
+
"transition-[color,box-shadow,border-color]",
|
|
16
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
|
|
17
|
+
"aria-invalid:border-destructive",
|
|
18
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
19
|
+
"*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex",
|
|
20
|
+
"*:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
|
|
21
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground"
|
|
22
|
+
],
|
|
23
|
+
triggerIcon: "opacity-60 transition-transform duration-200",
|
|
24
|
+
placeholder: "text-muted-foreground",
|
|
25
|
+
clear: [
|
|
26
|
+
"cursor-pointer absolute top-1/2 -translate-y-1/2 end-2",
|
|
27
|
+
"rounded-sm opacity-60 hover:opacity-100 transition-opacity",
|
|
28
|
+
"focus:outline-none focus:ring-0 focus:ring-offset-0",
|
|
29
|
+
"disabled:pointer-events-none data-[disabled]:pointer-events-none"
|
|
30
|
+
],
|
|
31
|
+
content: [
|
|
32
|
+
"relative max-h-(--available-height) min-w-(--anchor-width) overflow-x-hidden overflow-y-auto",
|
|
33
|
+
"bg-popover text-popover-foreground",
|
|
34
|
+
"rounded-md border p-1 shadow-md",
|
|
35
|
+
"origin-[var(--transform-origin)]",
|
|
36
|
+
// radix styles
|
|
37
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
38
|
+
"data-[closed]:fade-out-0 data-[open]:fade-in-0",
|
|
39
|
+
"data-[closed]:zoom-out-95 data-[open]:zoom-in-95",
|
|
40
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
41
|
+
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
42
|
+
"data-[position=item-aligned]:[&_*[data-slot=select-item]]:min-w-[var(--anchor-width)]",
|
|
43
|
+
"data-[side=bottom]:mt-2 data-[side=top]:mb-2"
|
|
44
|
+
],
|
|
45
|
+
item: [
|
|
46
|
+
"relative flex w-full items-center cursor-default select-none",
|
|
47
|
+
"rounded-sm py-1.5 text-sm outline-hidden",
|
|
48
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
49
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
50
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
51
|
+
"*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
52
|
+
"pe7 ps-2 data-[indicator-position=left]:ps-7 data-[indicator-position=left]:pe-2"
|
|
53
|
+
],
|
|
54
|
+
indicatorContainer: [
|
|
55
|
+
"absolute flex h-3.5 w-3.5 items-center justify-center",
|
|
56
|
+
"data-[indicator-position=left]:start-2 data-[indicator-position=right]:end-2"
|
|
57
|
+
],
|
|
58
|
+
indicatorIcon: ["size-4 text-primary"],
|
|
59
|
+
label: [
|
|
60
|
+
"text-muted-foreground py-1.5 text-xs font-medium",
|
|
61
|
+
"pe-7 ps-2 data-[indicator-position=left]:ps-7 data-[indicator-position=left]:pe-2"
|
|
62
|
+
],
|
|
63
|
+
separator: ["bg-border pointer-events-none -mx-1 my-1 h-px"]
|
|
64
|
+
},
|
|
65
|
+
variants: {
|
|
66
|
+
size: {
|
|
67
|
+
sm: {
|
|
68
|
+
trigger: [
|
|
69
|
+
inputClasses.radius.sm,
|
|
70
|
+
inputClasses.height.sm,
|
|
71
|
+
// TODO
|
|
72
|
+
"px-2.5 text-xs gap-1",
|
|
73
|
+
"[&_[data-slot=select-icon]]:size-3.5 [&_[data-slot=select-icon]]:-me-0.75",
|
|
74
|
+
"[&_[data-slot=select-clear]>svg]:size-3 [&_[data-slot=select-clear]]:end-6"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
md: {
|
|
78
|
+
trigger: [
|
|
79
|
+
inputClasses.radius.md,
|
|
80
|
+
inputClasses.height.md,
|
|
81
|
+
// TODO
|
|
82
|
+
"px-3 text-[0.8125rem] leading-(--text-sm--line-height) gap-1 ",
|
|
83
|
+
"[&_[data-slot=select-icon]]:size-4 [&_[data-slot=select-icon]]:-me-1",
|
|
84
|
+
"[&_[data-slot=select-clear]>svg]:size-3.5 [&_[data-slot=select-clear]]:end-7"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
lg: {
|
|
88
|
+
trigger: [
|
|
89
|
+
inputClasses.radius.lg,
|
|
90
|
+
inputClasses.height.lg,
|
|
91
|
+
// TODO
|
|
92
|
+
"h-10 px-4 text-sm gap-1.5",
|
|
93
|
+
" [&_[data-slot=select-icon]]:size-4 [&_[data-slot=select-icon]]:-me-1.25",
|
|
94
|
+
" [&_[data-slot=select-clear]>svg]:size-3.5 [&_[data-slot=select-clear]]:end-8"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
size: "md"
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
select
|
|
106
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -15,7 +15,8 @@ var chip = tv({
|
|
|
15
15
|
"justify-between",
|
|
16
16
|
"box-border",
|
|
17
17
|
"whitespace-nowrap",
|
|
18
|
-
"isolate"
|
|
18
|
+
"isolate",
|
|
19
|
+
"data-[active=true]:ring-2"
|
|
19
20
|
],
|
|
20
21
|
content: "flex-1 text-inherit font-normal",
|
|
21
22
|
indicator: "relative flex size-2 ml-1",
|
|
@@ -36,7 +37,8 @@ var chip = tv({
|
|
|
36
37
|
faded: {
|
|
37
38
|
root: "border-2"
|
|
38
39
|
},
|
|
39
|
-
flat: {}
|
|
40
|
+
flat: {},
|
|
41
|
+
ghost: {}
|
|
40
42
|
},
|
|
41
43
|
color: {
|
|
42
44
|
default: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/components/scroll-area.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var scrollArea = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "relative",
|
|
6
|
+
viewport: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
7
|
+
scrollbar: [
|
|
8
|
+
"flex touch-none p-px transition-[colors,opacity] select-none opacity-0 data-[hovering]:opacity-100 data-[scrolling]:opacity-100 duration-150 delay-300 data-[hovering]:duration-75 data-[scrolling]:duration-75 data-[hovering]:delay-0 data-[scrolling]:delay-0",
|
|
9
|
+
"data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2 data-[orientation=vertical]:border-l data-[orientation=vertical]:border-l-transparent",
|
|
10
|
+
"data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:border-t data-[orientation=horizontal]:border-t-transparent"
|
|
11
|
+
],
|
|
12
|
+
thumb: "bg-border relative flex-1 rounded-full"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
scrollArea
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/components/editor-spinner.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var editorSpinner = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "size-full grow shrink flex items-center justify-center",
|
|
6
|
+
content: ["flex", "flex-col", "items-center", "justify-center", "gap-2"],
|
|
7
|
+
svg: ["animate-spin size-5"],
|
|
8
|
+
circle: ["opacity-25 stroke-current stroke-4"],
|
|
9
|
+
path: ["opacity-75 fill-current"],
|
|
10
|
+
text: "text-center text-sm text-muted-foreground"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
editorSpinner
|
|
16
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
popoverContentClasses
|
|
3
|
+
} from "./chunk-5DOB3IBE.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/slash-dropdown-menu.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var slashDropdownMenu = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
card: [...popoverContentClasses, "p-0", "flex flex-col outline-none"],
|
|
10
|
+
body: ["p-1.5 flex-auto grow shrink overflow-y-auto w-full"],
|
|
11
|
+
cardItemGroup: [
|
|
12
|
+
"relative flex align-middle min-w-max",
|
|
13
|
+
"flex-col justify-center"
|
|
14
|
+
],
|
|
15
|
+
cardGroupLabel: [
|
|
16
|
+
"text-xs font-bold text-muted-foreground capitalize",
|
|
17
|
+
"pt-3 pb-1 px-2"
|
|
18
|
+
],
|
|
19
|
+
cardGroup: [
|
|
20
|
+
"flex relative align-middle max-w-max justify-center items-start flex-col"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
slashDropdownMenu
|
|
27
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/components/input-wrapper.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var inputWrapper = tv({
|
|
4
|
+
base: [
|
|
5
|
+
"flex items-center gap-1.5",
|
|
6
|
+
"has-[:focus-visible]:ring-ring/30",
|
|
7
|
+
"has-[:focus-visible]:border-ring",
|
|
8
|
+
"has-[:focus-visible]:outline-none",
|
|
9
|
+
"has-[:focus-visible]:ring-[3px]",
|
|
10
|
+
"[&_[data-slot=datefield]]:grow",
|
|
11
|
+
"[&_[data-slot=input]]:data-focus-within:ring-transparent",
|
|
12
|
+
"[&_[data-slot=input]]:data-focus-within:ring-0",
|
|
13
|
+
"[&_[data-slot=input]]:data-focus-within:border-0",
|
|
14
|
+
"[&_[data-slot=input]]:flex",
|
|
15
|
+
"[&_[data-slot=input]]:w-full",
|
|
16
|
+
"[&_[data-slot=input]]:outline-none",
|
|
17
|
+
"[&_[data-slot=input]]:transition-colors",
|
|
18
|
+
"[&_[data-slot=input]]:text-foreground",
|
|
19
|
+
"[&_[data-slot=input]]:placeholder:text-muted-foreground",
|
|
20
|
+
"[&_[data-slot=input]]:border-0 ",
|
|
21
|
+
"[&_[data-slot=input]]:bg-transparent",
|
|
22
|
+
"[&_[data-slot=input]]:p-0",
|
|
23
|
+
"[&_[data-slot=input]]:shadow-none",
|
|
24
|
+
"[&_[data-slot=input]]:focus-visible:ring-0",
|
|
25
|
+
"[&_[data-slot=input]]:h-auto ",
|
|
26
|
+
"[&_[data-slot=input]]:disabled:cursor-not-allowed",
|
|
27
|
+
"[&_[data-slot=input]]:disabled:opacity-50",
|
|
28
|
+
"[&_svg]:text-muted-foreground",
|
|
29
|
+
"has-[[aria-invalid=true]]:border-destructive/60 ",
|
|
30
|
+
"has-[[aria-invalid=true]]:ring-destructive/10 ",
|
|
31
|
+
"dark:has-[[aria-invalid=true]]:border-destructive",
|
|
32
|
+
"dark:has-[[aria-invalid=true]]:ring-destructive/20 "
|
|
33
|
+
],
|
|
34
|
+
variants: {
|
|
35
|
+
size: {
|
|
36
|
+
sm: "gap-1.25 [&_svg:not([class*=size-])]:size-3.5",
|
|
37
|
+
md: "gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
38
|
+
lg: "gap-1.5 [&_svg:not([class*=size-])]:size-4"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
size: "md"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
inputWrapper
|
|
48
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/components/alert-dialog.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var alertDialog = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
overlay: [
|
|
6
|
+
"transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
7
|
+
"fixed inset-0 bg-black/50 [backdrop-filter:blur(4px)]"
|
|
8
|
+
],
|
|
9
|
+
content: [
|
|
10
|
+
"bg-background left-[50%] top-[50%] fixed",
|
|
11
|
+
"grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
12
|
+
"transition-all duration-150",
|
|
13
|
+
"data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0",
|
|
14
|
+
"gap-4 rounded-lg border p-6 shadow-lg sm:max-w-lg"
|
|
15
|
+
],
|
|
16
|
+
header: "flex flex-col gap-2 text-center sm:text-left",
|
|
17
|
+
footer: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
18
|
+
title: "text-lg font-semibold",
|
|
19
|
+
description: "text-muted-foreground text-sm",
|
|
20
|
+
action: ""
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
alertDialog
|
|
26
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
focusVisibleClasses,
|
|
3
|
-
translateCenterClasses
|
|
4
|
-
} from "./chunk-UEMJVVVF.mjs";
|
|
5
1
|
import {
|
|
6
2
|
colorVariants
|
|
7
3
|
} from "./chunk-WSEO3MLK.mjs";
|
|
4
|
+
import {
|
|
5
|
+
focusVisibleClasses,
|
|
6
|
+
translateCenterClasses
|
|
7
|
+
} from "./chunk-5DOB3IBE.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/avatar.ts
|
|
10
10
|
import { tv } from "tailwind-variants";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input
|
|
3
|
+
} from "./chunk-IHW4FWFB.mjs";
|
|
4
|
+
import {
|
|
5
|
+
popoverContentClasses
|
|
6
|
+
} from "./chunk-5DOB3IBE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/autocomplete.ts
|
|
9
|
+
import { tv } from "tailwind-variants";
|
|
10
|
+
var autocomplete = tv({
|
|
11
|
+
slots: {
|
|
12
|
+
input: input.base,
|
|
13
|
+
content: "",
|
|
14
|
+
positioner: "outline-none",
|
|
15
|
+
popup: [
|
|
16
|
+
...popoverContentClasses,
|
|
17
|
+
"p-0 py-1 w-[var(--anchor-width)] max-h-[min(var(--available-height),23rem)] max-w-[var(--available-width)]",
|
|
18
|
+
"overflow-y-auto scroll-pt-2 scroll-pb-2 overscroll-contain bg-[canvas]",
|
|
19
|
+
"shadow-black/5",
|
|
20
|
+
"origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-90",
|
|
21
|
+
"data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0"
|
|
22
|
+
],
|
|
23
|
+
empty: ["px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0"],
|
|
24
|
+
list: "space-y-0.5",
|
|
25
|
+
item: [
|
|
26
|
+
"text-foreground relative flex cursor-default select-none items-center gap-2 rounded-md px-4 py-2 text-sm outline-hidden transition-colors",
|
|
27
|
+
"data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
28
|
+
"[&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
|
|
29
|
+
"data-[highlighted]:relative data-[highlighted]:z-0 data-[highlighted]:text-foreground data-[highlighted]:before:absolute",
|
|
30
|
+
"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"
|
|
31
|
+
],
|
|
32
|
+
clear: [
|
|
33
|
+
"absolute cursor-pointer top-1/2 -translate-y-1/2",
|
|
34
|
+
"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100",
|
|
35
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
36
|
+
"data-[disabled]:pointer-events-none",
|
|
37
|
+
"[&_svg]:size-3.5"
|
|
38
|
+
],
|
|
39
|
+
control: "relative"
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
size: {
|
|
43
|
+
sm: {
|
|
44
|
+
input: [
|
|
45
|
+
input.variants.size.sm,
|
|
46
|
+
"[&~[data-slot=autocomplete-clear]]:end-1.75"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
md: {
|
|
50
|
+
input: [
|
|
51
|
+
input.variants.size.md,
|
|
52
|
+
"[&~[data-slot=autocomplete-clear]]:end-2"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
lg: {
|
|
56
|
+
input: [
|
|
57
|
+
input.variants.size.lg,
|
|
58
|
+
"[&~[data-slot=autocomplete-clear]]:end-2.5"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
size: "md"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
autocomplete
|
|
70
|
+
};
|
|
@@ -6,29 +6,29 @@ declare const alertDialog: tailwind_variants.TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
8
8
|
content?: tailwind_merge.ClassNameValue;
|
|
9
|
-
overlay?: tailwind_merge.ClassNameValue;
|
|
10
9
|
header?: tailwind_merge.ClassNameValue;
|
|
11
10
|
footer?: tailwind_merge.ClassNameValue;
|
|
12
11
|
title?: tailwind_merge.ClassNameValue;
|
|
13
12
|
description?: tailwind_merge.ClassNameValue;
|
|
14
13
|
action?: tailwind_merge.ClassNameValue;
|
|
14
|
+
overlay?: tailwind_merge.ClassNameValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: tailwind_merge.ClassNameValue | {
|
|
20
20
|
content?: tailwind_merge.ClassNameValue;
|
|
21
|
-
overlay?: tailwind_merge.ClassNameValue;
|
|
22
21
|
header?: tailwind_merge.ClassNameValue;
|
|
23
22
|
footer?: tailwind_merge.ClassNameValue;
|
|
24
23
|
title?: tailwind_merge.ClassNameValue;
|
|
25
24
|
description?: tailwind_merge.ClassNameValue;
|
|
26
25
|
action?: tailwind_merge.ClassNameValue;
|
|
26
|
+
overlay?: tailwind_merge.ClassNameValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} | {}, {
|
|
30
|
-
overlay: string;
|
|
31
|
-
content: string;
|
|
30
|
+
overlay: string[];
|
|
31
|
+
content: string[];
|
|
32
32
|
header: string;
|
|
33
33
|
footer: string;
|
|
34
34
|
title: string;
|
|
@@ -38,25 +38,25 @@ declare const alertDialog: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
40
40
|
content?: tailwind_merge.ClassNameValue;
|
|
41
|
-
overlay?: tailwind_merge.ClassNameValue;
|
|
42
41
|
header?: tailwind_merge.ClassNameValue;
|
|
43
42
|
footer?: tailwind_merge.ClassNameValue;
|
|
44
43
|
title?: tailwind_merge.ClassNameValue;
|
|
45
44
|
description?: tailwind_merge.ClassNameValue;
|
|
46
45
|
action?: tailwind_merge.ClassNameValue;
|
|
46
|
+
overlay?: tailwind_merge.ClassNameValue;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
} | {}, {
|
|
50
|
-
overlay: string;
|
|
51
|
-
content: string;
|
|
50
|
+
overlay: string[];
|
|
51
|
+
content: string[];
|
|
52
52
|
header: string;
|
|
53
53
|
footer: string;
|
|
54
54
|
title: string;
|
|
55
55
|
description: string;
|
|
56
56
|
action: string;
|
|
57
57
|
}, tailwind_variants.TVReturnType<unknown, {
|
|
58
|
-
overlay: string;
|
|
59
|
-
content: string;
|
|
58
|
+
overlay: string[];
|
|
59
|
+
content: string[];
|
|
60
60
|
header: string;
|
|
61
61
|
footer: string;
|
|
62
62
|
title: string;
|
|
@@ -6,29 +6,29 @@ declare const alertDialog: tailwind_variants.TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
8
8
|
content?: tailwind_merge.ClassNameValue;
|
|
9
|
-
overlay?: tailwind_merge.ClassNameValue;
|
|
10
9
|
header?: tailwind_merge.ClassNameValue;
|
|
11
10
|
footer?: tailwind_merge.ClassNameValue;
|
|
12
11
|
title?: tailwind_merge.ClassNameValue;
|
|
13
12
|
description?: tailwind_merge.ClassNameValue;
|
|
14
13
|
action?: tailwind_merge.ClassNameValue;
|
|
14
|
+
overlay?: tailwind_merge.ClassNameValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: tailwind_merge.ClassNameValue | {
|
|
20
20
|
content?: tailwind_merge.ClassNameValue;
|
|
21
|
-
overlay?: tailwind_merge.ClassNameValue;
|
|
22
21
|
header?: tailwind_merge.ClassNameValue;
|
|
23
22
|
footer?: tailwind_merge.ClassNameValue;
|
|
24
23
|
title?: tailwind_merge.ClassNameValue;
|
|
25
24
|
description?: tailwind_merge.ClassNameValue;
|
|
26
25
|
action?: tailwind_merge.ClassNameValue;
|
|
26
|
+
overlay?: tailwind_merge.ClassNameValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} | {}, {
|
|
30
|
-
overlay: string;
|
|
31
|
-
content: string;
|
|
30
|
+
overlay: string[];
|
|
31
|
+
content: string[];
|
|
32
32
|
header: string;
|
|
33
33
|
footer: string;
|
|
34
34
|
title: string;
|
|
@@ -38,25 +38,25 @@ declare const alertDialog: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
40
40
|
content?: tailwind_merge.ClassNameValue;
|
|
41
|
-
overlay?: tailwind_merge.ClassNameValue;
|
|
42
41
|
header?: tailwind_merge.ClassNameValue;
|
|
43
42
|
footer?: tailwind_merge.ClassNameValue;
|
|
44
43
|
title?: tailwind_merge.ClassNameValue;
|
|
45
44
|
description?: tailwind_merge.ClassNameValue;
|
|
46
45
|
action?: tailwind_merge.ClassNameValue;
|
|
46
|
+
overlay?: tailwind_merge.ClassNameValue;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
} | {}, {
|
|
50
|
-
overlay: string;
|
|
51
|
-
content: string;
|
|
50
|
+
overlay: string[];
|
|
51
|
+
content: string[];
|
|
52
52
|
header: string;
|
|
53
53
|
footer: string;
|
|
54
54
|
title: string;
|
|
55
55
|
description: string;
|
|
56
56
|
action: string;
|
|
57
57
|
}, tailwind_variants.TVReturnType<unknown, {
|
|
58
|
-
overlay: string;
|
|
59
|
-
content: string;
|
|
58
|
+
overlay: string[];
|
|
59
|
+
content: string[];
|
|
60
60
|
header: string;
|
|
61
61
|
footer: string;
|
|
62
62
|
title: string;
|
|
@@ -26,8 +26,17 @@ module.exports = __toCommonJS(alert_dialog_exports);
|
|
|
26
26
|
var import_tailwind_variants = require("tailwind-variants");
|
|
27
27
|
var alertDialog = (0, import_tailwind_variants.tv)({
|
|
28
28
|
slots: {
|
|
29
|
-
overlay:
|
|
30
|
-
|
|
29
|
+
overlay: [
|
|
30
|
+
"transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
31
|
+
"fixed inset-0 bg-black/50 [backdrop-filter:blur(4px)]"
|
|
32
|
+
],
|
|
33
|
+
content: [
|
|
34
|
+
"bg-background left-[50%] top-[50%] fixed",
|
|
35
|
+
"grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
36
|
+
"transition-all duration-150",
|
|
37
|
+
"data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0",
|
|
38
|
+
"gap-4 rounded-lg border p-6 shadow-lg sm:max-w-lg"
|
|
39
|
+
],
|
|
31
40
|
header: "flex flex-col gap-2 text-center sm:text-left",
|
|
32
41
|
footer: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
33
42
|
title: "text-lg font-semibold",
|