@zentauri-ui/zentauri-components 0.0.84 → 0.0.92
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/README.md +47 -29
- package/dist/chunk-BZSIXBA7.js +70 -0
- package/dist/chunk-BZSIXBA7.js.map +1 -0
- package/dist/chunk-E5UX537J.js +11 -0
- package/dist/chunk-E5UX537J.js.map +1 -0
- package/dist/chunk-MEWYFWBX.mjs +14 -0
- package/dist/chunk-MEWYFWBX.mjs.map +1 -0
- package/dist/chunk-VJHD7QZH.mjs +73 -0
- package/dist/chunk-VJHD7QZH.mjs.map +1 -0
- package/dist/ui/accordion.d.mts +70 -0
- package/dist/ui/accordion.d.ts +70 -0
- package/dist/ui/accordion.js +280 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/accordion.mjs +282 -0
- package/dist/ui/accordion.mjs.map +1 -0
- package/dist/ui/alert.d.mts +66 -0
- package/dist/ui/alert.d.ts +66 -0
- package/dist/ui/alert.js +218 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/alert.mjs +220 -0
- package/dist/ui/alert.mjs.map +1 -0
- package/dist/ui/badge.d.mts +37 -0
- package/dist/ui/badge.d.ts +37 -0
- package/dist/ui/badge.js +159 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/badge.mjs +161 -0
- package/dist/ui/badge.mjs.map +1 -0
- package/dist/ui/buttons.d.mts +27 -0
- package/dist/ui/buttons.d.ts +27 -0
- package/dist/ui/buttons.js +107 -0
- package/dist/ui/buttons.js.map +1 -0
- package/dist/ui/buttons.mjs +109 -0
- package/dist/ui/buttons.mjs.map +1 -0
- package/dist/ui/card.d.mts +77 -0
- package/dist/ui/card.d.ts +77 -0
- package/dist/ui/card.js +252 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/card.mjs +254 -0
- package/dist/ui/card.mjs.map +1 -0
- package/dist/ui/divider.d.mts +39 -0
- package/dist/ui/divider.d.ts +39 -0
- package/dist/ui/divider.js +194 -0
- package/dist/ui/divider.js.map +1 -0
- package/dist/ui/divider.mjs +196 -0
- package/dist/ui/divider.mjs.map +1 -0
- package/dist/ui/drawer.d.mts +81 -0
- package/dist/ui/drawer.d.ts +81 -0
- package/dist/ui/drawer.js +377 -0
- package/dist/ui/drawer.js.map +1 -0
- package/dist/ui/drawer.mjs +379 -0
- package/dist/ui/drawer.mjs.map +1 -0
- package/dist/ui/dropdown.d.mts +50 -0
- package/dist/ui/dropdown.d.ts +50 -0
- package/dist/ui/dropdown.js +272 -0
- package/dist/ui/dropdown.js.map +1 -0
- package/dist/ui/dropdown.mjs +274 -0
- package/dist/ui/dropdown.mjs.map +1 -0
- package/dist/ui/empty-state.d.mts +55 -0
- package/dist/ui/empty-state.d.ts +55 -0
- package/dist/ui/empty-state.js +148 -0
- package/dist/ui/empty-state.js.map +1 -0
- package/dist/ui/empty-state.mjs +150 -0
- package/dist/ui/empty-state.mjs.map +1 -0
- package/dist/ui/inputs.d.mts +35 -0
- package/dist/ui/inputs.d.ts +35 -0
- package/dist/ui/inputs.js +426 -0
- package/dist/ui/inputs.js.map +1 -0
- package/dist/ui/inputs.mjs +428 -0
- package/dist/ui/inputs.mjs.map +1 -0
- package/dist/ui/modal.d.mts +84 -0
- package/dist/ui/modal.d.ts +84 -0
- package/dist/ui/modal.js +378 -0
- package/dist/ui/modal.js.map +1 -0
- package/dist/ui/modal.mjs +380 -0
- package/dist/ui/modal.mjs.map +1 -0
- package/dist/ui/pagination.d.mts +114 -0
- package/dist/ui/pagination.d.ts +114 -0
- package/dist/ui/pagination.js +425 -0
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/pagination.mjs +427 -0
- package/dist/ui/pagination.mjs.map +1 -0
- package/dist/ui/progress.d.mts +61 -0
- package/dist/ui/progress.d.ts +61 -0
- package/dist/ui/progress.js +231 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/progress.mjs +233 -0
- package/dist/ui/progress.mjs.map +1 -0
- package/dist/ui/select.d.mts +73 -0
- package/dist/ui/select.d.ts +73 -0
- package/dist/ui/select.js +321 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/select.mjs +323 -0
- package/dist/ui/select.mjs.map +1 -0
- package/dist/ui/skeleton.d.mts +90 -0
- package/dist/ui/skeleton.d.ts +90 -0
- package/dist/ui/skeleton.js +538 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/skeleton.mjs +540 -0
- package/dist/ui/skeleton.mjs.map +1 -0
- package/dist/ui/spinner.d.mts +27 -0
- package/dist/ui/spinner.d.ts +27 -0
- package/dist/ui/spinner.js +187 -0
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/spinner.mjs +189 -0
- package/dist/ui/spinner.mjs.map +1 -0
- package/dist/ui/table.d.mts +81 -0
- package/dist/ui/table.d.ts +81 -0
- package/dist/ui/table.js +287 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/table.mjs +289 -0
- package/dist/ui/table.mjs.map +1 -0
- package/dist/ui/tabs.d.mts +58 -0
- package/dist/ui/tabs.d.ts +58 -0
- package/dist/ui/tabs.js +268 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/tabs.mjs +270 -0
- package/dist/ui/tabs.mjs.map +1 -0
- package/dist/ui/toast.d.mts +86 -0
- package/dist/ui/toast.d.ts +86 -0
- package/dist/ui/toast.js +252 -0
- package/dist/ui/toast.js.map +1 -0
- package/dist/ui/toast.mjs +254 -0
- package/dist/ui/toast.mjs.map +1 -0
- package/dist/ui/toggle.d.mts +37 -0
- package/dist/ui/toggle.d.ts +37 -0
- package/dist/ui/toggle.js +152 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/toggle.mjs +154 -0
- package/dist/ui/toggle.mjs.map +1 -0
- package/dist/ui/tooltip.d.mts +46 -0
- package/dist/ui/tooltip.d.ts +46 -0
- package/dist/ui/tooltip.js +208 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/tooltip.mjs +210 -0
- package/dist/ui/tooltip.mjs.map +1 -0
- package/dist/variants-Dd9pe-ov.d.mts +8 -0
- package/dist/variants-Dd9pe-ov.d.ts +8 -0
- package/package.json +15 -14
- package/dist/ui/index.cjs +0 -5764
- package/dist/ui/index.cjs.map +0 -1
- package/dist/ui/index.d.cts +0 -1164
- package/dist/ui/index.d.ts +0 -1164
- package/dist/ui/index.js +0 -5626
- package/dist/ui/index.js.map +0 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
cn
|
|
5
|
+
} from "../chunk-MEWYFWBX.mjs";
|
|
6
|
+
|
|
7
|
+
// src/ui/divider/divider.tsx
|
|
8
|
+
import { motion } from "framer-motion";
|
|
9
|
+
|
|
10
|
+
// src/ui/divider/animations.ts
|
|
11
|
+
var dividerAnimationPresets = {
|
|
12
|
+
none: {},
|
|
13
|
+
expand: {
|
|
14
|
+
initial: { scaleX: 0.6, opacity: 0.4 },
|
|
15
|
+
animate: { scaleX: 1, opacity: 1 },
|
|
16
|
+
transition: { duration: 0.35, ease: "easeOut" }
|
|
17
|
+
},
|
|
18
|
+
fade: {
|
|
19
|
+
initial: { opacity: 0 },
|
|
20
|
+
animate: { opacity: 1 },
|
|
21
|
+
transition: { duration: 0.25 }
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// src/ui/divider/variants.ts
|
|
26
|
+
import { cva } from "class-variance-authority";
|
|
27
|
+
var APPEARANCES = {
|
|
28
|
+
default: "text-slate-200",
|
|
29
|
+
muted: "text-slate-500",
|
|
30
|
+
primary: "text-cyan-300",
|
|
31
|
+
destructive: "text-rose-400",
|
|
32
|
+
ghost: "text-slate-600",
|
|
33
|
+
sky: "text-sky-400",
|
|
34
|
+
rose: "text-rose-400",
|
|
35
|
+
purple: "text-purple-400",
|
|
36
|
+
pink: "text-pink-400",
|
|
37
|
+
orange: "text-orange-400",
|
|
38
|
+
yellow: "text-yellow-400",
|
|
39
|
+
teal: "text-teal-400",
|
|
40
|
+
indigo: "text-indigo-400",
|
|
41
|
+
emerald: "text-emerald-400",
|
|
42
|
+
gray: "text-gray-400",
|
|
43
|
+
amber: "text-amber-400",
|
|
44
|
+
violet: "text-violet-400",
|
|
45
|
+
"gradient-blue": "text-blue-400",
|
|
46
|
+
"gradient-green": "text-green-400",
|
|
47
|
+
"gradient-red": "text-red-400",
|
|
48
|
+
"gradient-yellow": "text-yellow-400",
|
|
49
|
+
"gradient-purple": "text-purple-400",
|
|
50
|
+
"gradient-teal": "text-teal-400",
|
|
51
|
+
"gradient-indigo": "text-indigo-400",
|
|
52
|
+
"gradient-pink": "text-pink-400",
|
|
53
|
+
"gradient-orange": "text-orange-400"
|
|
54
|
+
};
|
|
55
|
+
var dividerToneVariants = cva("", {
|
|
56
|
+
variants: {
|
|
57
|
+
appearance: APPEARANCES
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: { appearance: "default" }
|
|
60
|
+
});
|
|
61
|
+
var dividerVariants = cva("flex w-full items-center gap-3", {
|
|
62
|
+
variants: {
|
|
63
|
+
appearance: APPEARANCES,
|
|
64
|
+
orientation: {
|
|
65
|
+
horizontal: "w-full flex-row",
|
|
66
|
+
vertical: "h-full min-h-[2rem] w-auto flex-col self-stretch"
|
|
67
|
+
},
|
|
68
|
+
size: {
|
|
69
|
+
sm: "",
|
|
70
|
+
md: "",
|
|
71
|
+
lg: ""
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
compoundVariants: [
|
|
75
|
+
{ orientation: "horizontal", size: "sm", class: "min-h-px" },
|
|
76
|
+
{ orientation: "horizontal", size: "md", class: "min-h-[2px]" },
|
|
77
|
+
{ orientation: "horizontal", size: "lg", class: "min-h-[3px]" },
|
|
78
|
+
{ orientation: "vertical", size: "sm", class: "min-w-px" },
|
|
79
|
+
{ orientation: "vertical", size: "md", class: "min-w-[2px]" },
|
|
80
|
+
{ orientation: "vertical", size: "lg", class: "min-w-[3px]" }
|
|
81
|
+
],
|
|
82
|
+
defaultVariants: {
|
|
83
|
+
appearance: "default",
|
|
84
|
+
orientation: "horizontal",
|
|
85
|
+
size: "md"
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
var dividerLineVariants = cva(
|
|
89
|
+
"shrink grow rounded-full bg-current opacity-80",
|
|
90
|
+
{
|
|
91
|
+
variants: {
|
|
92
|
+
orientation: {
|
|
93
|
+
horizontal: "h-px",
|
|
94
|
+
vertical: "w-px flex-1"
|
|
95
|
+
},
|
|
96
|
+
size: {
|
|
97
|
+
sm: "",
|
|
98
|
+
md: "",
|
|
99
|
+
lg: ""
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
compoundVariants: [
|
|
103
|
+
{ orientation: "horizontal", size: "sm", class: "h-px" },
|
|
104
|
+
{ orientation: "horizontal", size: "md", class: "h-0.5" },
|
|
105
|
+
{ orientation: "horizontal", size: "lg", class: "h-1" },
|
|
106
|
+
{ orientation: "vertical", size: "sm", class: "w-px" },
|
|
107
|
+
{ orientation: "vertical", size: "md", class: "w-0.5" },
|
|
108
|
+
{ orientation: "vertical", size: "lg", class: "w-1" }
|
|
109
|
+
],
|
|
110
|
+
defaultVariants: {
|
|
111
|
+
orientation: "horizontal",
|
|
112
|
+
size: "md"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
var dividerLabelVariants = cva(
|
|
117
|
+
"shrink-0 text-xs font-medium uppercase tracking-wide text-current"
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
// src/ui/divider/divider.tsx
|
|
121
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
122
|
+
function Divider(props) {
|
|
123
|
+
const {
|
|
124
|
+
className,
|
|
125
|
+
appearance,
|
|
126
|
+
orientation,
|
|
127
|
+
size,
|
|
128
|
+
animation = "none",
|
|
129
|
+
label,
|
|
130
|
+
children,
|
|
131
|
+
ref,
|
|
132
|
+
...rest
|
|
133
|
+
} = props;
|
|
134
|
+
const motionProps = dividerAnimationPresets[animation];
|
|
135
|
+
const slot = label ?? children;
|
|
136
|
+
if (!slot) {
|
|
137
|
+
return /* @__PURE__ */ jsx(
|
|
138
|
+
motion.div,
|
|
139
|
+
{
|
|
140
|
+
ref,
|
|
141
|
+
"data-slot": "divider",
|
|
142
|
+
role: "separator",
|
|
143
|
+
"aria-orientation": orientation === "vertical" ? "vertical" : "horizontal",
|
|
144
|
+
className: cn(
|
|
145
|
+
dividerToneVariants({ appearance }),
|
|
146
|
+
orientation === "horizontal" ? "flex w-full min-h-px flex-row items-stretch" : "flex h-full min-h-8 w-auto min-w-0 flex-col items-stretch self-stretch",
|
|
147
|
+
className
|
|
148
|
+
),
|
|
149
|
+
initial: animation === "none" ? false : void 0,
|
|
150
|
+
...motionProps,
|
|
151
|
+
...rest,
|
|
152
|
+
children: /* @__PURE__ */ jsx("span", { className: cn(dividerLineVariants({ orientation, size })), "aria-hidden": true })
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
return /* @__PURE__ */ jsxs(
|
|
157
|
+
motion.div,
|
|
158
|
+
{
|
|
159
|
+
ref,
|
|
160
|
+
"data-slot": "divider",
|
|
161
|
+
role: "separator",
|
|
162
|
+
"aria-orientation": orientation === "vertical" ? "vertical" : "horizontal",
|
|
163
|
+
className: cn(dividerVariants({ appearance, orientation, size }), className),
|
|
164
|
+
initial: animation === "none" ? false : void 0,
|
|
165
|
+
...motionProps,
|
|
166
|
+
...rest,
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ jsx(
|
|
169
|
+
"span",
|
|
170
|
+
{
|
|
171
|
+
className: cn(dividerLineVariants({ orientation, size })),
|
|
172
|
+
"aria-hidden": true
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "divider-label", className: dividerLabelVariants(), children: slot }),
|
|
176
|
+
/* @__PURE__ */ jsx(
|
|
177
|
+
"span",
|
|
178
|
+
{
|
|
179
|
+
className: cn(dividerLineVariants({ orientation, size })),
|
|
180
|
+
"aria-hidden": true
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
Divider.displayName = "Divider";
|
|
188
|
+
export {
|
|
189
|
+
Divider,
|
|
190
|
+
dividerAnimationPresets,
|
|
191
|
+
dividerLabelVariants,
|
|
192
|
+
dividerLineVariants,
|
|
193
|
+
dividerToneVariants,
|
|
194
|
+
dividerVariants
|
|
195
|
+
};
|
|
196
|
+
//# sourceMappingURL=divider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/ui/divider/divider.tsx","../../src/ui/divider/animations.ts","../../src/ui/divider/variants.ts"],"sourcesContent":["\"use client\";\n\nimport { motion } from \"framer-motion\";\n\nimport { cn } from \"../../lib/utils\";\n\nimport { dividerAnimationPresets } from \"./animations\";\nimport type { DividerProps } from \"./types\";\nimport {\n dividerLabelVariants,\n dividerLineVariants,\n dividerToneVariants,\n dividerVariants,\n} from \"./variants\";\n\nexport function Divider(props: DividerProps) {\n const {\n className,\n appearance,\n orientation,\n size,\n animation = \"none\",\n label,\n children,\n ref,\n ...rest\n } = props;\n const motionProps = dividerAnimationPresets[animation];\n const slot = label ?? children;\n\n if (!slot) {\n return (\n <motion.div\n ref={ref}\n data-slot=\"divider\"\n role=\"separator\"\n aria-orientation={orientation === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(\n dividerToneVariants({ appearance }),\n orientation === \"horizontal\"\n ? \"flex w-full min-h-px flex-row items-stretch\"\n : \"flex h-full min-h-8 w-auto min-w-0 flex-col items-stretch self-stretch\",\n className,\n )}\n initial={animation === \"none\" ? false : undefined}\n {...motionProps}\n {...rest}\n >\n <span className={cn(dividerLineVariants({ orientation, size }))} aria-hidden />\n </motion.div>\n );\n }\n\n return (\n <motion.div\n ref={ref}\n data-slot=\"divider\"\n role=\"separator\"\n aria-orientation={orientation === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(dividerVariants({ appearance, orientation, size }), className)}\n initial={animation === \"none\" ? false : undefined}\n {...motionProps}\n {...rest}\n >\n <span\n className={cn(dividerLineVariants({ orientation, size }))}\n aria-hidden\n />\n <span data-slot=\"divider-label\" className={dividerLabelVariants()}>\n {slot}\n </span>\n <span\n className={cn(dividerLineVariants({ orientation, size }))}\n aria-hidden\n />\n </motion.div>\n );\n}\n\nDivider.displayName = \"Divider\";\n","import type { HTMLMotionProps } from \"framer-motion\";\n\nimport type { DividerAnimation } from \"./types\";\n\ntype DividerPresetMotionProps = Pick<\n HTMLMotionProps<\"div\">,\n \"initial\" | \"animate\" | \"transition\" | \"whileHover\"\n>;\n\nexport type DividerAnimationPresets = Record<\n DividerAnimation,\n DividerPresetMotionProps\n>;\n\nexport const dividerAnimationPresets: DividerAnimationPresets = {\n none: {},\n expand: {\n initial: { scaleX: 0.6, opacity: 0.4 },\n animate: { scaleX: 1, opacity: 1 },\n transition: { duration: 0.35, ease: \"easeOut\" },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n transition: { duration: 0.25 },\n },\n};\n","import { cva } from \"class-variance-authority\";\n\nconst APPEARANCES = {\n default: \"text-slate-200\",\n muted: \"text-slate-500\",\n primary: \"text-cyan-300\",\n destructive: \"text-rose-400\",\n ghost: \"text-slate-600\",\n sky: \"text-sky-400\",\n rose: \"text-rose-400\",\n purple: \"text-purple-400\",\n pink: \"text-pink-400\",\n orange: \"text-orange-400\",\n yellow: \"text-yellow-400\",\n teal: \"text-teal-400\",\n indigo: \"text-indigo-400\",\n emerald: \"text-emerald-400\",\n gray: \"text-gray-400\",\n amber: \"text-amber-400\",\n violet: \"text-violet-400\",\n \"gradient-blue\": \"text-blue-400\",\n \"gradient-green\": \"text-green-400\",\n \"gradient-red\": \"text-red-400\",\n \"gradient-yellow\": \"text-yellow-400\",\n \"gradient-purple\": \"text-purple-400\",\n \"gradient-teal\": \"text-teal-400\",\n \"gradient-indigo\": \"text-indigo-400\",\n \"gradient-pink\": \"text-pink-400\",\n \"gradient-orange\": \"text-orange-400\",\n};\n\nexport const dividerToneVariants = cva(\"\", {\n variants: {\n appearance: APPEARANCES,\n },\n defaultVariants: { appearance: \"default\" },\n});\n\nexport const dividerVariants = cva(\"flex w-full items-center gap-3\", {\n variants: {\n appearance: APPEARANCES,\n orientation: {\n horizontal: \"w-full flex-row\",\n vertical: \"h-full min-h-[2rem] w-auto flex-col self-stretch\",\n },\n size: {\n sm: \"\",\n md: \"\",\n lg: \"\",\n },\n },\n compoundVariants: [\n { orientation: \"horizontal\", size: \"sm\", class: \"min-h-px\" },\n { orientation: \"horizontal\", size: \"md\", class: \"min-h-[2px]\" },\n { orientation: \"horizontal\", size: \"lg\", class: \"min-h-[3px]\" },\n { orientation: \"vertical\", size: \"sm\", class: \"min-w-px\" },\n { orientation: \"vertical\", size: \"md\", class: \"min-w-[2px]\" },\n { orientation: \"vertical\", size: \"lg\", class: \"min-w-[3px]\" },\n ],\n defaultVariants: {\n appearance: \"default\",\n orientation: \"horizontal\",\n size: \"md\",\n },\n});\n\nexport const dividerLineVariants = cva(\n \"shrink grow rounded-full bg-current opacity-80\",\n {\n variants: {\n orientation: {\n horizontal: \"h-px\",\n vertical: \"w-px flex-1\",\n },\n size: {\n sm: \"\",\n md: \"\",\n lg: \"\",\n },\n },\n compoundVariants: [\n { orientation: \"horizontal\", size: \"sm\", class: \"h-px\" },\n { orientation: \"horizontal\", size: \"md\", class: \"h-0.5\" },\n { orientation: \"horizontal\", size: \"lg\", class: \"h-1\" },\n { orientation: \"vertical\", size: \"sm\", class: \"w-px\" },\n { orientation: \"vertical\", size: \"md\", class: \"w-0.5\" },\n { orientation: \"vertical\", size: \"lg\", class: \"w-1\" },\n ],\n defaultVariants: {\n orientation: \"horizontal\",\n size: \"md\",\n },\n },\n);\n\nexport const dividerLabelVariants = cva(\n \"shrink-0 text-xs font-medium uppercase tracking-wide text-current\",\n);\n"],"mappings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AAA,YACxD,eAAW;AAAA;AAAA,QACb;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,QAAQ,cAAc;","names":[]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, Ref, CSSProperties, HTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { HTMLMotionProps } from 'framer-motion';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
|
|
8
|
+
type DrawerAnimation = "none" | "fade" | "scale" | "slide";
|
|
9
|
+
type DrawerPresetMotionProps = Pick<HTMLMotionProps<"div">, "initial" | "animate" | "exit" | "transition">;
|
|
10
|
+
type DrawerAnimationPresets = Record<DrawerAnimation, DrawerPresetMotionProps>;
|
|
11
|
+
declare const drawerPanelPresets: (side: "left" | "right" | "top" | "bottom") => DrawerAnimationPresets;
|
|
12
|
+
|
|
13
|
+
declare const drawerOverlayVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
14
|
+
declare const drawerTriggerVariants: (props?: ({
|
|
15
|
+
appearance?: "default" | "glass" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare const drawerContentVariants: (props?: ({
|
|
18
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
19
|
+
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
20
|
+
appearance?: "default" | "glass" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
21
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
+
|
|
23
|
+
type DrawerContentVariantProps = VariantProps<typeof drawerContentVariants>;
|
|
24
|
+
|
|
25
|
+
type DrawerProps = {
|
|
26
|
+
open?: boolean;
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
};
|
|
31
|
+
type DrawerTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
32
|
+
ref?: Ref<HTMLButtonElement>;
|
|
33
|
+
appearance?: VariantProps<typeof drawerTriggerVariants>["appearance"];
|
|
34
|
+
};
|
|
35
|
+
type DrawerContentProps = DrawerContentVariantProps & {
|
|
36
|
+
animation?: DrawerAnimation;
|
|
37
|
+
className?: string;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
ref?: Ref<HTMLDivElement>;
|
|
40
|
+
id?: string;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
};
|
|
43
|
+
type DrawerSectionProps = {
|
|
44
|
+
className?: string;
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
declare function Drawer({ open, defaultOpen, onOpenChange, children }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
declare namespace Drawer {
|
|
50
|
+
var displayName: string;
|
|
51
|
+
}
|
|
52
|
+
declare function DrawerTrigger({ className, children, appearance, onClick, ref, ...rest }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
declare namespace DrawerTrigger {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
declare function DrawerContent({ className, side, size, appearance, animation, children, ref, id, style, }: DrawerContentProps): react.ReactPortal | null;
|
|
57
|
+
declare namespace DrawerContent {
|
|
58
|
+
var displayName: string;
|
|
59
|
+
}
|
|
60
|
+
declare function DrawerHeader({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare namespace DrawerHeader {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
64
|
+
declare function DrawerBody({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
declare namespace DrawerBody {
|
|
66
|
+
var displayName: string;
|
|
67
|
+
}
|
|
68
|
+
declare function DrawerFooter({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
declare namespace DrawerFooter {
|
|
70
|
+
var displayName: string;
|
|
71
|
+
}
|
|
72
|
+
declare function DrawerTitle({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare namespace DrawerTitle {
|
|
74
|
+
var displayName: string;
|
|
75
|
+
}
|
|
76
|
+
declare function DrawerClose({ className, children, ...rest }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
77
|
+
declare namespace DrawerClose {
|
|
78
|
+
var displayName: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { Drawer, type DrawerAnimation, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerFooter, DrawerHeader, type DrawerProps, type DrawerSectionProps, DrawerTitle, DrawerTrigger, type DrawerTriggerProps, drawerContentVariants, drawerOverlayVariants, drawerPanelPresets };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, Ref, CSSProperties, HTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { HTMLMotionProps } from 'framer-motion';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
|
|
8
|
+
type DrawerAnimation = "none" | "fade" | "scale" | "slide";
|
|
9
|
+
type DrawerPresetMotionProps = Pick<HTMLMotionProps<"div">, "initial" | "animate" | "exit" | "transition">;
|
|
10
|
+
type DrawerAnimationPresets = Record<DrawerAnimation, DrawerPresetMotionProps>;
|
|
11
|
+
declare const drawerPanelPresets: (side: "left" | "right" | "top" | "bottom") => DrawerAnimationPresets;
|
|
12
|
+
|
|
13
|
+
declare const drawerOverlayVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
14
|
+
declare const drawerTriggerVariants: (props?: ({
|
|
15
|
+
appearance?: "default" | "glass" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare const drawerContentVariants: (props?: ({
|
|
18
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
19
|
+
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
20
|
+
appearance?: "default" | "glass" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
21
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
+
|
|
23
|
+
type DrawerContentVariantProps = VariantProps<typeof drawerContentVariants>;
|
|
24
|
+
|
|
25
|
+
type DrawerProps = {
|
|
26
|
+
open?: boolean;
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
};
|
|
31
|
+
type DrawerTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
32
|
+
ref?: Ref<HTMLButtonElement>;
|
|
33
|
+
appearance?: VariantProps<typeof drawerTriggerVariants>["appearance"];
|
|
34
|
+
};
|
|
35
|
+
type DrawerContentProps = DrawerContentVariantProps & {
|
|
36
|
+
animation?: DrawerAnimation;
|
|
37
|
+
className?: string;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
ref?: Ref<HTMLDivElement>;
|
|
40
|
+
id?: string;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
};
|
|
43
|
+
type DrawerSectionProps = {
|
|
44
|
+
className?: string;
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
declare function Drawer({ open, defaultOpen, onOpenChange, children }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
declare namespace Drawer {
|
|
50
|
+
var displayName: string;
|
|
51
|
+
}
|
|
52
|
+
declare function DrawerTrigger({ className, children, appearance, onClick, ref, ...rest }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
declare namespace DrawerTrigger {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
declare function DrawerContent({ className, side, size, appearance, animation, children, ref, id, style, }: DrawerContentProps): react.ReactPortal | null;
|
|
57
|
+
declare namespace DrawerContent {
|
|
58
|
+
var displayName: string;
|
|
59
|
+
}
|
|
60
|
+
declare function DrawerHeader({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare namespace DrawerHeader {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
64
|
+
declare function DrawerBody({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
65
|
+
declare namespace DrawerBody {
|
|
66
|
+
var displayName: string;
|
|
67
|
+
}
|
|
68
|
+
declare function DrawerFooter({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
declare namespace DrawerFooter {
|
|
70
|
+
var displayName: string;
|
|
71
|
+
}
|
|
72
|
+
declare function DrawerTitle({ className, children }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare namespace DrawerTitle {
|
|
74
|
+
var displayName: string;
|
|
75
|
+
}
|
|
76
|
+
declare function DrawerClose({ className, children, ...rest }: DrawerSectionProps): react_jsx_runtime.JSX.Element;
|
|
77
|
+
declare namespace DrawerClose {
|
|
78
|
+
var displayName: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { Drawer, type DrawerAnimation, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerFooter, DrawerHeader, type DrawerProps, type DrawerSectionProps, DrawerTitle, DrawerTrigger, type DrawerTriggerProps, drawerContentVariants, drawerOverlayVariants, drawerPanelPresets };
|