@locusgraph/components 0.2.0 → 0.2.2
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/action/button-group.js +45 -17
- package/dist/action/button.js +44 -27
- package/dist/action/toggle-group.js +176 -12
- package/dist/action/toggle.js +70 -17
- package/dist/display/avatar.js +118 -7
- package/dist/display/badge.js +33 -20
- package/dist/display/chart/chart-container.js +205 -45
- package/dist/display/chart/chart-legend.js +79 -14
- package/dist/display/chart/chart-tooltip.js +211 -40
- package/dist/display/chat/attachment/attachment-parts.js +56 -13
- package/dist/display/chat/attachment/attachment.js +70 -28
- package/dist/display/chat/bubble.js +80 -37
- package/dist/display/chat/marker.js +44 -15
- package/dist/display/chat/message-scroller.js +276 -14
- package/dist/display/chat/message.js +58 -13
- package/dist/display/content/item.js +134 -47
- package/dist/display/content/kbd.js +19 -5
- package/dist/display/media/aspect-ratio.js +27 -3
- package/dist/display/media/carousel-controls.js +162 -11
- package/dist/display/media/carousel.js +325 -65
- package/dist/display/rule-grid/rule-grid.js +86 -29
- package/dist/display/separator.js +56 -3
- package/dist/display/skeletons/layouts/skeleton-rule-grid.js +30 -6
- package/dist/display/skeletons/layouts/skeleton-table.js +44 -6
- package/dist/display/skeletons/shapes/skeleton-avatar.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-button.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-text.js +25 -7
- package/dist/display/skeletons/skeleton-parts.js +22 -6
- package/dist/display/status/alert.js +44 -18
- package/dist/display/status/empty.js +69 -22
- package/dist/display/status/progress.js +116 -16
- package/dist/display/status/skeleton.js +10 -3
- package/dist/display/status/spinner.js +11 -3
- package/dist/display/table.js +77 -17
- package/dist/feedback/toaster.js +98 -21
- package/dist/form/advanced/calendar-day-button.js +89 -12
- package/dist/form/advanced/calendar.js +349 -56
- package/dist/form/advanced/combobox/combobox-chips.js +151 -8
- package/dist/form/advanced/combobox/combobox-items.js +239 -14
- package/dist/form/advanced/combobox/combobox.js +386 -13
- package/dist/form/advanced/input-otp.js +201 -11
- package/dist/form/choice/checkbox.js +58 -3
- package/dist/form/choice/radio-group.js +94 -5
- package/dist/form/choice/select.js +479 -25
- package/dist/form/choice/slider.js +118 -4
- package/dist/form/choice/switch.js +53 -3
- package/dist/form/field/field-error.js +34 -14
- package/dist/form/field/field-separator.js +19 -3
- package/dist/form/field/field-set.js +21 -5
- package/dist/form/field/field-text.js +28 -7
- package/dist/form/field/field.js +43 -25
- package/dist/form/hook-form/form.js +338 -40
- package/dist/form/input-group.js +297 -47
- package/dist/form/input.js +13 -3
- package/dist/form/label.js +42 -3
- package/dist/form/native-select.js +39 -7
- package/dist/form/textarea.js +11 -3
- package/dist/layout/accordion.js +165 -8
- package/dist/layout/collapsible.js +75 -7
- package/dist/layout/resizable.js +122 -7
- package/dist/layout/scroll/direction.js +25 -3
- package/dist/layout/scroll/scroll-area.js +138 -5
- package/dist/layout/sidebar/sidebar-context.js +184 -51
- package/dist/layout/sidebar/sidebar-menu-sub.js +219 -14
- package/dist/layout/sidebar/sidebar-menu.js +319 -38
- package/dist/layout/sidebar/sidebar-sections.js +369 -22
- package/dist/layout/sidebar/sidebar.js +384 -28
- package/dist/layout/tabs.js +183 -18
- package/dist/layout/use-mobile.js +11 -11
- package/dist/navigation/breadcrumb.js +82 -17
- package/dist/navigation/menubar/menubar-items.js +322 -16
- package/dist/navigation/menubar/menubar-sub.js +125 -7
- package/dist/navigation/menubar/menubar.js +213 -13
- package/dist/navigation/navigation-menu.js +90 -18
- package/dist/navigation/pagination.js +91 -20
- package/dist/overlay/alert-dialog.js +485 -26
- package/dist/overlay/context-menu/context-menu-items.js +322 -16
- package/dist/overlay/context-menu/context-menu-sub.js +125 -7
- package/dist/overlay/context-menu/context-menu.js +140 -11
- package/dist/overlay/dialog.js +405 -24
- package/dist/overlay/floating/command.js +423 -20
- package/dist/overlay/floating/drawer.js +354 -22
- package/dist/overlay/floating/hover-card.js +107 -7
- package/dist/overlay/menu/dropdown-menu-choice.js +149 -7
- package/dist/overlay/menu/dropdown-menu-item.js +174 -9
- package/dist/overlay/menu/dropdown-menu-sub.js +124 -7
- package/dist/overlay/menu/dropdown-menu.js +147 -12
- package/dist/overlay/popover.js +106 -7
- package/dist/overlay/sheet.js +379 -26
- package/dist/overlay/tooltip.js +145 -9
- package/dist/shell/app-header.js +29 -5
- package/dist/shell/app-shell.js +19 -3
- package/dist/shell/breadcrumbs.js +46 -14
- package/dist/shell/docs/docs-header.js +210 -10
- package/dist/shell/docs/docs-shell.js +36 -3
- package/dist/shell/docs/docs-sidebar.js +41 -7
- package/dist/shell/docs/on-this-page.js +78 -7
- package/dist/shell/docs/use-active-section.js +44 -42
- package/dist/shell/navigation/app-sidebar.js +66 -6
- package/dist/shell/navigation/nav-group.js +53 -11
- package/dist/shell/theme-toggle.js +51 -4
- package/package.json +2 -2
|
@@ -1,17 +1,182 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { cn } from "cn";
|
|
4
5
|
import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
function DropdownMenuItem(t0) {
|
|
8
|
+
const $ = _c(12);
|
|
9
|
+
let className;
|
|
10
|
+
let inset;
|
|
11
|
+
let props;
|
|
12
|
+
let t1;
|
|
13
|
+
if ($[0] !== t0) {
|
|
14
|
+
({
|
|
15
|
+
className,
|
|
16
|
+
inset,
|
|
17
|
+
variant: t1,
|
|
18
|
+
...props
|
|
19
|
+
} = t0);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = className;
|
|
22
|
+
$[2] = inset;
|
|
23
|
+
$[3] = props;
|
|
24
|
+
$[4] = t1;
|
|
25
|
+
} else {
|
|
26
|
+
className = $[1];
|
|
27
|
+
inset = $[2];
|
|
28
|
+
props = $[3];
|
|
29
|
+
t1 = $[4];
|
|
30
|
+
}
|
|
31
|
+
const variant = t1 === undefined ? "default" : t1;
|
|
32
|
+
let t2;
|
|
33
|
+
if ($[5] !== className) {
|
|
34
|
+
t2 = cn("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!", className);
|
|
35
|
+
$[5] = className;
|
|
36
|
+
$[6] = t2;
|
|
37
|
+
} else {
|
|
38
|
+
t2 = $[6];
|
|
39
|
+
}
|
|
40
|
+
let t3;
|
|
41
|
+
if ($[7] !== inset || $[8] !== props || $[9] !== t2 || $[10] !== variant) {
|
|
42
|
+
t3 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Item, {
|
|
43
|
+
"data-slot": "dropdown-menu-item",
|
|
44
|
+
"data-inset": inset,
|
|
45
|
+
"data-variant": variant,
|
|
46
|
+
className: t2,
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
$[7] = inset;
|
|
50
|
+
$[8] = props;
|
|
51
|
+
$[9] = t2;
|
|
52
|
+
$[10] = variant;
|
|
53
|
+
$[11] = t3;
|
|
54
|
+
} else {
|
|
55
|
+
t3 = $[11];
|
|
56
|
+
}
|
|
57
|
+
return t3;
|
|
7
58
|
}
|
|
8
|
-
function DropdownMenuLabel(
|
|
9
|
-
|
|
59
|
+
function DropdownMenuLabel(t0) {
|
|
60
|
+
const $ = _c(10);
|
|
61
|
+
let className;
|
|
62
|
+
let inset;
|
|
63
|
+
let props;
|
|
64
|
+
if ($[0] !== t0) {
|
|
65
|
+
({
|
|
66
|
+
className,
|
|
67
|
+
inset,
|
|
68
|
+
...props
|
|
69
|
+
} = t0);
|
|
70
|
+
$[0] = t0;
|
|
71
|
+
$[1] = className;
|
|
72
|
+
$[2] = inset;
|
|
73
|
+
$[3] = props;
|
|
74
|
+
} else {
|
|
75
|
+
className = $[1];
|
|
76
|
+
inset = $[2];
|
|
77
|
+
props = $[3];
|
|
78
|
+
}
|
|
79
|
+
let t1;
|
|
80
|
+
if ($[4] !== className) {
|
|
81
|
+
t1 = cn("eyebrow px-2 pt-2 pb-1 data-[inset]:pl-8", className);
|
|
82
|
+
$[4] = className;
|
|
83
|
+
$[5] = t1;
|
|
84
|
+
} else {
|
|
85
|
+
t1 = $[5];
|
|
86
|
+
}
|
|
87
|
+
let t2;
|
|
88
|
+
if ($[6] !== inset || $[7] !== props || $[8] !== t1) {
|
|
89
|
+
t2 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Label, {
|
|
90
|
+
"data-slot": "dropdown-menu-label",
|
|
91
|
+
"data-inset": inset,
|
|
92
|
+
className: t1,
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
$[6] = inset;
|
|
96
|
+
$[7] = props;
|
|
97
|
+
$[8] = t1;
|
|
98
|
+
$[9] = t2;
|
|
99
|
+
} else {
|
|
100
|
+
t2 = $[9];
|
|
101
|
+
}
|
|
102
|
+
return t2;
|
|
10
103
|
}
|
|
11
|
-
function DropdownMenuSeparator(
|
|
12
|
-
|
|
104
|
+
function DropdownMenuSeparator(t0) {
|
|
105
|
+
const $ = _c(8);
|
|
106
|
+
let className;
|
|
107
|
+
let props;
|
|
108
|
+
if ($[0] !== t0) {
|
|
109
|
+
({
|
|
110
|
+
className,
|
|
111
|
+
...props
|
|
112
|
+
} = t0);
|
|
113
|
+
$[0] = t0;
|
|
114
|
+
$[1] = className;
|
|
115
|
+
$[2] = props;
|
|
116
|
+
} else {
|
|
117
|
+
className = $[1];
|
|
118
|
+
props = $[2];
|
|
119
|
+
}
|
|
120
|
+
let t1;
|
|
121
|
+
if ($[3] !== className) {
|
|
122
|
+
t1 = cn("-mx-1 my-1 h-px bg-border", className);
|
|
123
|
+
$[3] = className;
|
|
124
|
+
$[4] = t1;
|
|
125
|
+
} else {
|
|
126
|
+
t1 = $[4];
|
|
127
|
+
}
|
|
128
|
+
let t2;
|
|
129
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
130
|
+
t2 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Separator, {
|
|
131
|
+
"data-slot": "dropdown-menu-separator",
|
|
132
|
+
className: t1,
|
|
133
|
+
...props
|
|
134
|
+
});
|
|
135
|
+
$[5] = props;
|
|
136
|
+
$[6] = t1;
|
|
137
|
+
$[7] = t2;
|
|
138
|
+
} else {
|
|
139
|
+
t2 = $[7];
|
|
140
|
+
}
|
|
141
|
+
return t2;
|
|
13
142
|
}
|
|
14
|
-
function DropdownMenuShortcut(
|
|
15
|
-
|
|
143
|
+
function DropdownMenuShortcut(t0) {
|
|
144
|
+
const $ = _c(8);
|
|
145
|
+
let className;
|
|
146
|
+
let props;
|
|
147
|
+
if ($[0] !== t0) {
|
|
148
|
+
({
|
|
149
|
+
className,
|
|
150
|
+
...props
|
|
151
|
+
} = t0);
|
|
152
|
+
$[0] = t0;
|
|
153
|
+
$[1] = className;
|
|
154
|
+
$[2] = props;
|
|
155
|
+
} else {
|
|
156
|
+
className = $[1];
|
|
157
|
+
props = $[2];
|
|
158
|
+
}
|
|
159
|
+
let t1;
|
|
160
|
+
if ($[3] !== className) {
|
|
161
|
+
t1 = cn("ml-auto text-xs tracking-widest text-muted-foreground", className);
|
|
162
|
+
$[3] = className;
|
|
163
|
+
$[4] = t1;
|
|
164
|
+
} else {
|
|
165
|
+
t1 = $[4];
|
|
166
|
+
}
|
|
167
|
+
let t2;
|
|
168
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
169
|
+
t2 = /*#__PURE__*/_jsx("span", {
|
|
170
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
171
|
+
className: t1,
|
|
172
|
+
...props
|
|
173
|
+
});
|
|
174
|
+
$[5] = props;
|
|
175
|
+
$[6] = t1;
|
|
176
|
+
$[7] = t2;
|
|
177
|
+
} else {
|
|
178
|
+
t2 = $[7];
|
|
179
|
+
}
|
|
180
|
+
return t2;
|
|
16
181
|
}
|
|
17
182
|
export { DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut };
|
|
@@ -1,15 +1,132 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { ChevronRight as ChevronRightIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function DropdownMenuSub(t0) {
|
|
9
|
+
const $ = _c(4);
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({
|
|
13
|
+
...props
|
|
14
|
+
} = t0);
|
|
15
|
+
$[0] = t0;
|
|
16
|
+
$[1] = props;
|
|
17
|
+
} else {
|
|
18
|
+
props = $[1];
|
|
19
|
+
}
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[2] !== props) {
|
|
22
|
+
t1 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Sub, {
|
|
23
|
+
"data-slot": "dropdown-menu-sub",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
$[2] = props;
|
|
27
|
+
$[3] = t1;
|
|
28
|
+
} else {
|
|
29
|
+
t1 = $[3];
|
|
30
|
+
}
|
|
31
|
+
return t1;
|
|
8
32
|
}
|
|
9
|
-
function DropdownMenuSubTrigger(
|
|
10
|
-
|
|
33
|
+
function DropdownMenuSubTrigger(t0) {
|
|
34
|
+
const $ = _c(13);
|
|
35
|
+
let children;
|
|
36
|
+
let className;
|
|
37
|
+
let inset;
|
|
38
|
+
let props;
|
|
39
|
+
if ($[0] !== t0) {
|
|
40
|
+
({
|
|
41
|
+
className,
|
|
42
|
+
inset,
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
} = t0);
|
|
46
|
+
$[0] = t0;
|
|
47
|
+
$[1] = children;
|
|
48
|
+
$[2] = className;
|
|
49
|
+
$[3] = inset;
|
|
50
|
+
$[4] = props;
|
|
51
|
+
} else {
|
|
52
|
+
children = $[1];
|
|
53
|
+
className = $[2];
|
|
54
|
+
inset = $[3];
|
|
55
|
+
props = $[4];
|
|
56
|
+
}
|
|
57
|
+
let t1;
|
|
58
|
+
if ($[5] !== className) {
|
|
59
|
+
t1 = cn("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className);
|
|
60
|
+
$[5] = className;
|
|
61
|
+
$[6] = t1;
|
|
62
|
+
} else {
|
|
63
|
+
t1 = $[6];
|
|
64
|
+
}
|
|
65
|
+
let t2;
|
|
66
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
67
|
+
t2 = /*#__PURE__*/_jsx(ChevronRightIcon, {
|
|
68
|
+
className: "ml-auto size-4"
|
|
69
|
+
});
|
|
70
|
+
$[7] = t2;
|
|
71
|
+
} else {
|
|
72
|
+
t2 = $[7];
|
|
73
|
+
}
|
|
74
|
+
let t3;
|
|
75
|
+
if ($[8] !== children || $[9] !== inset || $[10] !== props || $[11] !== t1) {
|
|
76
|
+
t3 = /*#__PURE__*/_jsxs(DropdownMenuPrimitive.SubTrigger, {
|
|
77
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
78
|
+
"data-inset": inset,
|
|
79
|
+
className: t1,
|
|
80
|
+
...props,
|
|
81
|
+
children: [children, t2]
|
|
82
|
+
});
|
|
83
|
+
$[8] = children;
|
|
84
|
+
$[9] = inset;
|
|
85
|
+
$[10] = props;
|
|
86
|
+
$[11] = t1;
|
|
87
|
+
$[12] = t3;
|
|
88
|
+
} else {
|
|
89
|
+
t3 = $[12];
|
|
90
|
+
}
|
|
91
|
+
return t3;
|
|
11
92
|
}
|
|
12
|
-
function DropdownMenuSubContent(
|
|
13
|
-
|
|
93
|
+
function DropdownMenuSubContent(t0) {
|
|
94
|
+
const $ = _c(8);
|
|
95
|
+
let className;
|
|
96
|
+
let props;
|
|
97
|
+
if ($[0] !== t0) {
|
|
98
|
+
({
|
|
99
|
+
className,
|
|
100
|
+
...props
|
|
101
|
+
} = t0);
|
|
102
|
+
$[0] = t0;
|
|
103
|
+
$[1] = className;
|
|
104
|
+
$[2] = props;
|
|
105
|
+
} else {
|
|
106
|
+
className = $[1];
|
|
107
|
+
props = $[2];
|
|
108
|
+
}
|
|
109
|
+
let t1;
|
|
110
|
+
if ($[3] !== className) {
|
|
111
|
+
t1 = cn("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-overlay 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", className);
|
|
112
|
+
$[3] = className;
|
|
113
|
+
$[4] = t1;
|
|
114
|
+
} else {
|
|
115
|
+
t1 = $[4];
|
|
116
|
+
}
|
|
117
|
+
let t2;
|
|
118
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
119
|
+
t2 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.SubContent, {
|
|
120
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
121
|
+
className: t1,
|
|
122
|
+
...props
|
|
123
|
+
});
|
|
124
|
+
$[5] = props;
|
|
125
|
+
$[6] = t1;
|
|
126
|
+
$[7] = t2;
|
|
127
|
+
} else {
|
|
128
|
+
t2 = $[7];
|
|
129
|
+
}
|
|
130
|
+
return t2;
|
|
14
131
|
}
|
|
15
132
|
export { DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger };
|
|
@@ -1,20 +1,155 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { cn } from "cn";
|
|
4
5
|
import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
function DropdownMenu(t0) {
|
|
8
|
+
const $ = _c(4);
|
|
9
|
+
let props;
|
|
10
|
+
if ($[0] !== t0) {
|
|
11
|
+
({
|
|
12
|
+
...props
|
|
13
|
+
} = t0);
|
|
14
|
+
$[0] = t0;
|
|
15
|
+
$[1] = props;
|
|
16
|
+
} else {
|
|
17
|
+
props = $[1];
|
|
18
|
+
}
|
|
19
|
+
let t1;
|
|
20
|
+
if ($[2] !== props) {
|
|
21
|
+
t1 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Root, {
|
|
22
|
+
"data-slot": "dropdown-menu",
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
$[2] = props;
|
|
26
|
+
$[3] = t1;
|
|
27
|
+
} else {
|
|
28
|
+
t1 = $[3];
|
|
29
|
+
}
|
|
30
|
+
return t1;
|
|
7
31
|
}
|
|
8
|
-
function DropdownMenuPortal(
|
|
9
|
-
|
|
32
|
+
function DropdownMenuPortal(t0) {
|
|
33
|
+
const $ = _c(4);
|
|
34
|
+
let props;
|
|
35
|
+
if ($[0] !== t0) {
|
|
36
|
+
({
|
|
37
|
+
...props
|
|
38
|
+
} = t0);
|
|
39
|
+
$[0] = t0;
|
|
40
|
+
$[1] = props;
|
|
41
|
+
} else {
|
|
42
|
+
props = $[1];
|
|
43
|
+
}
|
|
44
|
+
let t1;
|
|
45
|
+
if ($[2] !== props) {
|
|
46
|
+
t1 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Portal, {
|
|
47
|
+
"data-slot": "dropdown-menu-portal",
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
$[2] = props;
|
|
51
|
+
$[3] = t1;
|
|
52
|
+
} else {
|
|
53
|
+
t1 = $[3];
|
|
54
|
+
}
|
|
55
|
+
return t1;
|
|
10
56
|
}
|
|
11
|
-
function DropdownMenuTrigger(
|
|
12
|
-
|
|
57
|
+
function DropdownMenuTrigger(t0) {
|
|
58
|
+
const $ = _c(4);
|
|
59
|
+
let props;
|
|
60
|
+
if ($[0] !== t0) {
|
|
61
|
+
({
|
|
62
|
+
...props
|
|
63
|
+
} = t0);
|
|
64
|
+
$[0] = t0;
|
|
65
|
+
$[1] = props;
|
|
66
|
+
} else {
|
|
67
|
+
props = $[1];
|
|
68
|
+
}
|
|
69
|
+
let t1;
|
|
70
|
+
if ($[2] !== props) {
|
|
71
|
+
t1 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Trigger, {
|
|
72
|
+
"data-slot": "dropdown-menu-trigger",
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
$[2] = props;
|
|
76
|
+
$[3] = t1;
|
|
77
|
+
} else {
|
|
78
|
+
t1 = $[3];
|
|
79
|
+
}
|
|
80
|
+
return t1;
|
|
13
81
|
}
|
|
14
|
-
function DropdownMenuContent(
|
|
15
|
-
|
|
82
|
+
function DropdownMenuContent(t0) {
|
|
83
|
+
const $ = _c(10);
|
|
84
|
+
let className;
|
|
85
|
+
let props;
|
|
86
|
+
let t1;
|
|
87
|
+
if ($[0] !== t0) {
|
|
88
|
+
({
|
|
89
|
+
className,
|
|
90
|
+
sideOffset: t1,
|
|
91
|
+
...props
|
|
92
|
+
} = t0);
|
|
93
|
+
$[0] = t0;
|
|
94
|
+
$[1] = className;
|
|
95
|
+
$[2] = props;
|
|
96
|
+
$[3] = t1;
|
|
97
|
+
} else {
|
|
98
|
+
className = $[1];
|
|
99
|
+
props = $[2];
|
|
100
|
+
t1 = $[3];
|
|
101
|
+
}
|
|
102
|
+
const sideOffset = t1 === undefined ? 6 : t1;
|
|
103
|
+
let t2;
|
|
104
|
+
if ($[4] !== className) {
|
|
105
|
+
t2 = cn("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 bg-popover p-1 text-popover-foreground shadow-overlay 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", className);
|
|
106
|
+
$[4] = className;
|
|
107
|
+
$[5] = t2;
|
|
108
|
+
} else {
|
|
109
|
+
t2 = $[5];
|
|
110
|
+
}
|
|
111
|
+
let t3;
|
|
112
|
+
if ($[6] !== props || $[7] !== sideOffset || $[8] !== t2) {
|
|
113
|
+
t3 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Portal, {
|
|
114
|
+
children: /*#__PURE__*/_jsx(DropdownMenuPrimitive.Content, {
|
|
115
|
+
"data-slot": "dropdown-menu-content",
|
|
116
|
+
sideOffset: sideOffset,
|
|
117
|
+
className: t2,
|
|
118
|
+
...props
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
$[6] = props;
|
|
122
|
+
$[7] = sideOffset;
|
|
123
|
+
$[8] = t2;
|
|
124
|
+
$[9] = t3;
|
|
125
|
+
} else {
|
|
126
|
+
t3 = $[9];
|
|
127
|
+
}
|
|
128
|
+
return t3;
|
|
16
129
|
}
|
|
17
|
-
function DropdownMenuGroup(
|
|
18
|
-
|
|
130
|
+
function DropdownMenuGroup(t0) {
|
|
131
|
+
const $ = _c(4);
|
|
132
|
+
let props;
|
|
133
|
+
if ($[0] !== t0) {
|
|
134
|
+
({
|
|
135
|
+
...props
|
|
136
|
+
} = t0);
|
|
137
|
+
$[0] = t0;
|
|
138
|
+
$[1] = props;
|
|
139
|
+
} else {
|
|
140
|
+
props = $[1];
|
|
141
|
+
}
|
|
142
|
+
let t1;
|
|
143
|
+
if ($[2] !== props) {
|
|
144
|
+
t1 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Group, {
|
|
145
|
+
"data-slot": "dropdown-menu-group",
|
|
146
|
+
...props
|
|
147
|
+
});
|
|
148
|
+
$[2] = props;
|
|
149
|
+
$[3] = t1;
|
|
150
|
+
} else {
|
|
151
|
+
t1 = $[3];
|
|
152
|
+
}
|
|
153
|
+
return t1;
|
|
19
154
|
}
|
|
20
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuTrigger
|
|
155
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuTrigger };
|
package/dist/overlay/popover.js
CHANGED
|
@@ -1,14 +1,113 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { cn } from "cn";
|
|
4
5
|
import * as PopoverPrimitive from "radix-ui/popover";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function Popover(t0) {
|
|
9
|
+
const $ = _c(4);
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({
|
|
13
|
+
...props
|
|
14
|
+
} = t0);
|
|
15
|
+
$[0] = t0;
|
|
16
|
+
$[1] = props;
|
|
17
|
+
} else {
|
|
18
|
+
props = $[1];
|
|
19
|
+
}
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[2] !== props) {
|
|
22
|
+
t1 = /*#__PURE__*/_jsx(PopoverPrimitive.Root, {
|
|
23
|
+
"data-slot": "popover",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
$[2] = props;
|
|
27
|
+
$[3] = t1;
|
|
28
|
+
} else {
|
|
29
|
+
t1 = $[3];
|
|
30
|
+
}
|
|
31
|
+
return t1;
|
|
7
32
|
}
|
|
8
|
-
function PopoverTrigger(
|
|
9
|
-
|
|
33
|
+
function PopoverTrigger(t0) {
|
|
34
|
+
const $ = _c(4);
|
|
35
|
+
let props;
|
|
36
|
+
if ($[0] !== t0) {
|
|
37
|
+
({
|
|
38
|
+
...props
|
|
39
|
+
} = t0);
|
|
40
|
+
$[0] = t0;
|
|
41
|
+
$[1] = props;
|
|
42
|
+
} else {
|
|
43
|
+
props = $[1];
|
|
44
|
+
}
|
|
45
|
+
let t1;
|
|
46
|
+
if ($[2] !== props) {
|
|
47
|
+
t1 = /*#__PURE__*/_jsx(PopoverPrimitive.Trigger, {
|
|
48
|
+
"data-slot": "popover-trigger",
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
$[2] = props;
|
|
52
|
+
$[3] = t1;
|
|
53
|
+
} else {
|
|
54
|
+
t1 = $[3];
|
|
55
|
+
}
|
|
56
|
+
return t1;
|
|
10
57
|
}
|
|
11
|
-
function PopoverContent(
|
|
12
|
-
|
|
58
|
+
function PopoverContent(t0) {
|
|
59
|
+
const $ = _c(12);
|
|
60
|
+
let className;
|
|
61
|
+
let props;
|
|
62
|
+
let t1;
|
|
63
|
+
let t2;
|
|
64
|
+
if ($[0] !== t0) {
|
|
65
|
+
({
|
|
66
|
+
className,
|
|
67
|
+
align: t1,
|
|
68
|
+
sideOffset: t2,
|
|
69
|
+
...props
|
|
70
|
+
} = t0);
|
|
71
|
+
$[0] = t0;
|
|
72
|
+
$[1] = className;
|
|
73
|
+
$[2] = props;
|
|
74
|
+
$[3] = t1;
|
|
75
|
+
$[4] = t2;
|
|
76
|
+
} else {
|
|
77
|
+
className = $[1];
|
|
78
|
+
props = $[2];
|
|
79
|
+
t1 = $[3];
|
|
80
|
+
t2 = $[4];
|
|
81
|
+
}
|
|
82
|
+
const align = t1 === undefined ? "center" : t1;
|
|
83
|
+
const sideOffset = t2 === undefined ? 6 : t2;
|
|
84
|
+
let t3;
|
|
85
|
+
if ($[5] !== className) {
|
|
86
|
+
t3 = cn("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-overlay outline-hidden", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className);
|
|
87
|
+
$[5] = className;
|
|
88
|
+
$[6] = t3;
|
|
89
|
+
} else {
|
|
90
|
+
t3 = $[6];
|
|
91
|
+
}
|
|
92
|
+
let t4;
|
|
93
|
+
if ($[7] !== align || $[8] !== props || $[9] !== sideOffset || $[10] !== t3) {
|
|
94
|
+
t4 = /*#__PURE__*/_jsx(PopoverPrimitive.Portal, {
|
|
95
|
+
children: /*#__PURE__*/_jsx(PopoverPrimitive.Content, {
|
|
96
|
+
"data-slot": "popover-content",
|
|
97
|
+
align: align,
|
|
98
|
+
sideOffset: sideOffset,
|
|
99
|
+
className: t3,
|
|
100
|
+
...props
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
$[7] = align;
|
|
104
|
+
$[8] = props;
|
|
105
|
+
$[9] = sideOffset;
|
|
106
|
+
$[10] = t3;
|
|
107
|
+
$[11] = t4;
|
|
108
|
+
} else {
|
|
109
|
+
t4 = $[11];
|
|
110
|
+
}
|
|
111
|
+
return t4;
|
|
13
112
|
}
|
|
14
113
|
export { Popover, PopoverContent, PopoverTrigger };
|