@0xchain/ui 1.1.0-beta.2 → 1.1.0-beta.21
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/LICENSE +21 -0
- package/dist/accordion.js +64 -0
- package/dist/alert-dialog.js +146 -0
- package/dist/{alert.mjs → alert.js} +26 -26
- package/dist/aspect-ratio.js +10 -0
- package/dist/avatar.js +53 -0
- package/dist/{badge.mjs → badge.js} +17 -16
- package/dist/breadcrumb.js +103 -0
- package/dist/{button.mjs → button.js} +18 -17
- package/dist/calendar.js +186 -0
- package/dist/card.js +90 -0
- package/dist/carousel.js +198 -0
- package/dist/{checkbox.mjs → checkbox.js} +16 -16
- package/dist/collapsible.js +34 -0
- package/dist/command.js +170 -0
- package/dist/context-menu.js +223 -0
- package/dist/dialog.js +136 -0
- package/dist/dropdown-menu.js +231 -0
- package/dist/form.js +116 -0
- package/dist/hover-card.js +38 -0
- package/dist/{input.mjs → input.js} +9 -9
- package/dist/{label.mjs → label.js} +12 -12
- package/dist/menubar.js +251 -0
- package/dist/{navigation-menu.mjs → navigation-menu.js} +89 -89
- package/dist/pagination.js +116 -0
- package/dist/popover.js +44 -0
- package/dist/progress.js +31 -0
- package/dist/radio-group.js +45 -0
- package/dist/resizable.js +48 -0
- package/dist/scroll-area.js +60 -0
- package/dist/select.js +169 -0
- package/dist/separator.js +26 -0
- package/dist/sheet.js +126 -0
- package/dist/skeleton.js +15 -0
- package/dist/{slider.mjs → slider.js} +33 -33
- package/dist/sonner.js +22 -0
- package/dist/{switch.mjs → switch.js} +15 -15
- package/dist/table.js +114 -0
- package/dist/{tabs.mjs → tabs.js} +37 -37
- package/dist/{textarea.mjs → textarea.js} +8 -8
- package/dist/toggle-group.js +62 -0
- package/dist/{toggle.mjs → toggle.js} +16 -16
- package/dist/tooltip.js +55 -0
- package/dist/utils-CzDCF-Ah.js +8 -0
- package/package.json +138 -89
- package/dist/accordion.mjs +0 -64
- package/dist/alert-dialog.mjs +0 -146
- package/dist/aspect-ratio.mjs +0 -10
- package/dist/avatar.mjs +0 -53
- package/dist/breadcrumb.mjs +0 -102
- package/dist/calendar.mjs +0 -173
- package/dist/card.mjs +0 -90
- package/dist/carousel.mjs +0 -177
- package/dist/collapsible.mjs +0 -34
- package/dist/command.mjs +0 -170
- package/dist/context-menu.mjs +0 -223
- package/dist/dialog.mjs +0 -136
- package/dist/dropdown-menu.mjs +0 -231
- package/dist/form.mjs +0 -101
- package/dist/hover-card.mjs +0 -38
- package/dist/menubar.mjs +0 -251
- package/dist/pagination.mjs +0 -116
- package/dist/popover.mjs +0 -44
- package/dist/progress.mjs +0 -31
- package/dist/radio-group.mjs +0 -45
- package/dist/resizable.mjs +0 -48
- package/dist/scroll-area.mjs +0 -60
- package/dist/select.mjs +0 -169
- package/dist/separator.mjs +0 -26
- package/dist/sheet.mjs +0 -126
- package/dist/skeleton.mjs +0 -15
- package/dist/sonner.mjs +0 -22
- package/dist/table.mjs +0 -114
- package/dist/toggle-group.mjs +0 -62
- package/dist/tooltip.mjs +0 -55
- package/dist/utils-B7J70Nno.js +0 -8
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { CheckIcon, CircleIcon, ChevronRightIcon } from "lucide-react";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function DropdownMenu({
|
|
6
|
+
...props
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
9
|
+
}
|
|
10
|
+
function DropdownMenuPortal({
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
14
|
+
}
|
|
15
|
+
function DropdownMenuTrigger({
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
DropdownMenuPrimitive.Trigger,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "dropdown-menu-trigger",
|
|
22
|
+
...props
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function DropdownMenuContent({
|
|
27
|
+
className,
|
|
28
|
+
sideOffset = 4,
|
|
29
|
+
...props
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
32
|
+
DropdownMenuPrimitive.Content,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "dropdown-menu-content",
|
|
35
|
+
sideOffset,
|
|
36
|
+
className: cn(
|
|
37
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
...props
|
|
41
|
+
}
|
|
42
|
+
) });
|
|
43
|
+
}
|
|
44
|
+
function DropdownMenuGroup({
|
|
45
|
+
...props
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
48
|
+
}
|
|
49
|
+
function DropdownMenuItem({
|
|
50
|
+
className,
|
|
51
|
+
inset,
|
|
52
|
+
variant = "default",
|
|
53
|
+
...props
|
|
54
|
+
}) {
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
56
|
+
DropdownMenuPrimitive.Item,
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "dropdown-menu-item",
|
|
59
|
+
"data-inset": inset,
|
|
60
|
+
"data-variant": variant,
|
|
61
|
+
className: cn(
|
|
62
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function DropdownMenuCheckboxItem({
|
|
70
|
+
className,
|
|
71
|
+
children,
|
|
72
|
+
checked,
|
|
73
|
+
...props
|
|
74
|
+
}) {
|
|
75
|
+
return /* @__PURE__ */ jsxs(
|
|
76
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
77
|
+
{
|
|
78
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
79
|
+
className: cn(
|
|
80
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
81
|
+
className
|
|
82
|
+
),
|
|
83
|
+
checked,
|
|
84
|
+
...props,
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
87
|
+
children
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function DropdownMenuRadioGroup({
|
|
93
|
+
...props
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
DropdownMenuPrimitive.RadioGroup,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
99
|
+
...props
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function DropdownMenuRadioItem({
|
|
104
|
+
className,
|
|
105
|
+
children,
|
|
106
|
+
...props
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ jsxs(
|
|
109
|
+
DropdownMenuPrimitive.RadioItem,
|
|
110
|
+
{
|
|
111
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
112
|
+
className: cn(
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
114
|
+
className
|
|
115
|
+
),
|
|
116
|
+
...props,
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
119
|
+
children
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function DropdownMenuLabel({
|
|
125
|
+
className,
|
|
126
|
+
inset,
|
|
127
|
+
...props
|
|
128
|
+
}) {
|
|
129
|
+
return /* @__PURE__ */ jsx(
|
|
130
|
+
DropdownMenuPrimitive.Label,
|
|
131
|
+
{
|
|
132
|
+
"data-slot": "dropdown-menu-label",
|
|
133
|
+
"data-inset": inset,
|
|
134
|
+
className: cn(
|
|
135
|
+
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
136
|
+
className
|
|
137
|
+
),
|
|
138
|
+
...props
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
function DropdownMenuSeparator({
|
|
143
|
+
className,
|
|
144
|
+
...props
|
|
145
|
+
}) {
|
|
146
|
+
return /* @__PURE__ */ jsx(
|
|
147
|
+
DropdownMenuPrimitive.Separator,
|
|
148
|
+
{
|
|
149
|
+
"data-slot": "dropdown-menu-separator",
|
|
150
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
151
|
+
...props
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
function DropdownMenuShortcut({
|
|
156
|
+
className,
|
|
157
|
+
...props
|
|
158
|
+
}) {
|
|
159
|
+
return /* @__PURE__ */ jsx(
|
|
160
|
+
"span",
|
|
161
|
+
{
|
|
162
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
163
|
+
className: cn(
|
|
164
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
165
|
+
className
|
|
166
|
+
),
|
|
167
|
+
...props
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
function DropdownMenuSub({
|
|
172
|
+
...props
|
|
173
|
+
}) {
|
|
174
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
175
|
+
}
|
|
176
|
+
function DropdownMenuSubTrigger({
|
|
177
|
+
className,
|
|
178
|
+
inset,
|
|
179
|
+
children,
|
|
180
|
+
...props
|
|
181
|
+
}) {
|
|
182
|
+
return /* @__PURE__ */ jsxs(
|
|
183
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
184
|
+
{
|
|
185
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
186
|
+
"data-inset": inset,
|
|
187
|
+
className: cn(
|
|
188
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
189
|
+
className
|
|
190
|
+
),
|
|
191
|
+
...props,
|
|
192
|
+
children: [
|
|
193
|
+
children,
|
|
194
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
function DropdownMenuSubContent({
|
|
200
|
+
className,
|
|
201
|
+
...props
|
|
202
|
+
}) {
|
|
203
|
+
return /* @__PURE__ */ jsx(
|
|
204
|
+
DropdownMenuPrimitive.SubContent,
|
|
205
|
+
{
|
|
206
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
207
|
+
className: cn(
|
|
208
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
209
|
+
className
|
|
210
|
+
),
|
|
211
|
+
...props
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
export {
|
|
216
|
+
DropdownMenu,
|
|
217
|
+
DropdownMenuCheckboxItem,
|
|
218
|
+
DropdownMenuContent,
|
|
219
|
+
DropdownMenuGroup,
|
|
220
|
+
DropdownMenuItem,
|
|
221
|
+
DropdownMenuLabel,
|
|
222
|
+
DropdownMenuPortal,
|
|
223
|
+
DropdownMenuRadioGroup,
|
|
224
|
+
DropdownMenuRadioItem,
|
|
225
|
+
DropdownMenuSeparator,
|
|
226
|
+
DropdownMenuShortcut,
|
|
227
|
+
DropdownMenuSub,
|
|
228
|
+
DropdownMenuSubContent,
|
|
229
|
+
DropdownMenuSubTrigger,
|
|
230
|
+
DropdownMenuTrigger
|
|
231
|
+
};
|
package/dist/form.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { FormProvider, Controller, useFormContext, useFormState } from "react-hook-form";
|
|
5
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
6
|
+
import { Label } from "./label.js";
|
|
7
|
+
const Form = FormProvider;
|
|
8
|
+
const FormFieldContext = React.createContext(
|
|
9
|
+
{}
|
|
10
|
+
);
|
|
11
|
+
const FormField = ({
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
15
|
+
};
|
|
16
|
+
const useFormField = () => {
|
|
17
|
+
const fieldContext = React.useContext(FormFieldContext);
|
|
18
|
+
const itemContext = React.useContext(FormItemContext);
|
|
19
|
+
const { getFieldState } = useFormContext();
|
|
20
|
+
const formState = useFormState({ name: fieldContext.name });
|
|
21
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
22
|
+
if (!fieldContext) {
|
|
23
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
24
|
+
}
|
|
25
|
+
const { id } = itemContext;
|
|
26
|
+
return {
|
|
27
|
+
id,
|
|
28
|
+
name: fieldContext.name,
|
|
29
|
+
formItemId: `${id}-form-item`,
|
|
30
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
31
|
+
formMessageId: `${id}-form-item-message`,
|
|
32
|
+
...fieldState
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
const FormItemContext = React.createContext(
|
|
36
|
+
{}
|
|
37
|
+
);
|
|
38
|
+
function FormItem({ className, ...props }) {
|
|
39
|
+
const id = React.useId();
|
|
40
|
+
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "form-item",
|
|
44
|
+
className: cn("grid gap-2", className),
|
|
45
|
+
...props
|
|
46
|
+
}
|
|
47
|
+
) });
|
|
48
|
+
}
|
|
49
|
+
function FormLabel({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}) {
|
|
53
|
+
const { error, formItemId } = useFormField();
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
Label,
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "form-label",
|
|
58
|
+
"data-error": !!error,
|
|
59
|
+
className: cn("data-[error=true]:text-destructive", className),
|
|
60
|
+
htmlFor: formItemId,
|
|
61
|
+
...props
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
function FormControl({ ...props }) {
|
|
66
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
Slot,
|
|
69
|
+
{
|
|
70
|
+
"data-slot": "form-control",
|
|
71
|
+
id: formItemId,
|
|
72
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
73
|
+
"aria-invalid": !!error,
|
|
74
|
+
...props
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
function FormDescription({ className, ...props }) {
|
|
79
|
+
const { formDescriptionId } = useFormField();
|
|
80
|
+
return /* @__PURE__ */ jsx(
|
|
81
|
+
"p",
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "form-description",
|
|
84
|
+
id: formDescriptionId,
|
|
85
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function FormMessage({ className, ...props }) {
|
|
91
|
+
const { error, formMessageId } = useFormField();
|
|
92
|
+
const body = error ? String(error?.message ?? "") : props.children;
|
|
93
|
+
if (!body) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return /* @__PURE__ */ jsx(
|
|
97
|
+
"p",
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "form-message",
|
|
100
|
+
id: formMessageId,
|
|
101
|
+
className: cn("text-destructive text-sm", className),
|
|
102
|
+
...props,
|
|
103
|
+
children: body
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
Form,
|
|
109
|
+
FormControl,
|
|
110
|
+
FormDescription,
|
|
111
|
+
FormField,
|
|
112
|
+
FormItem,
|
|
113
|
+
FormLabel,
|
|
114
|
+
FormMessage,
|
|
115
|
+
useFormField
|
|
116
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
3
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
4
|
+
function HoverCard({
|
|
5
|
+
...props
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ jsx(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
8
|
+
}
|
|
9
|
+
function HoverCardTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ jsx(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
13
|
+
}
|
|
14
|
+
function HoverCardContent({
|
|
15
|
+
className,
|
|
16
|
+
align = "center",
|
|
17
|
+
sideOffset = 4,
|
|
18
|
+
...props
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx(
|
|
21
|
+
HoverCardPrimitive.Content,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "hover-card-content",
|
|
24
|
+
align,
|
|
25
|
+
sideOffset,
|
|
26
|
+
className: cn(
|
|
27
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
28
|
+
className
|
|
29
|
+
),
|
|
30
|
+
...props
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
HoverCard,
|
|
36
|
+
HoverCardContent,
|
|
37
|
+
HoverCardTrigger
|
|
38
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import { c as
|
|
3
|
-
function
|
|
4
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
3
|
+
function Input({ className, type, ...props }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
5
|
"input",
|
|
6
6
|
{
|
|
7
|
-
type
|
|
7
|
+
type,
|
|
8
8
|
"data-slot": "input",
|
|
9
|
-
className:
|
|
9
|
+
className: cn(
|
|
10
10
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
11
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
12
12
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
13
|
-
|
|
13
|
+
className
|
|
14
14
|
),
|
|
15
|
-
...
|
|
15
|
+
...props
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
Input
|
|
21
21
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
5
|
-
function
|
|
6
|
-
className
|
|
7
|
-
...
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
+
import { c as cn } from "./utils-CzDCF-Ah.js";
|
|
5
|
+
function Label({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
LabelPrimitive.Root,
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "label",
|
|
13
|
-
className:
|
|
13
|
+
className: cn(
|
|
14
14
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
-
|
|
15
|
+
className
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...props
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
Label
|
|
23
23
|
};
|