@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
package/dist/overlay/sheet.js
CHANGED
|
@@ -1,40 +1,393 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { Close as XIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as SheetPrimitive from "radix-ui/dialog";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Sheet(t0) {
|
|
10
|
+
const $ = _c(4);
|
|
11
|
+
let props;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
...props
|
|
15
|
+
} = t0);
|
|
16
|
+
$[0] = t0;
|
|
17
|
+
$[1] = props;
|
|
18
|
+
} else {
|
|
19
|
+
props = $[1];
|
|
20
|
+
}
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[2] !== props) {
|
|
23
|
+
t1 = /*#__PURE__*/_jsx(SheetPrimitive.Root, {
|
|
24
|
+
"data-slot": "sheet",
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
$[2] = props;
|
|
28
|
+
$[3] = t1;
|
|
29
|
+
} else {
|
|
30
|
+
t1 = $[3];
|
|
31
|
+
}
|
|
32
|
+
return t1;
|
|
8
33
|
}
|
|
9
|
-
function SheetTrigger(
|
|
10
|
-
|
|
34
|
+
function SheetTrigger(t0) {
|
|
35
|
+
const $ = _c(4);
|
|
36
|
+
let props;
|
|
37
|
+
if ($[0] !== t0) {
|
|
38
|
+
({
|
|
39
|
+
...props
|
|
40
|
+
} = t0);
|
|
41
|
+
$[0] = t0;
|
|
42
|
+
$[1] = props;
|
|
43
|
+
} else {
|
|
44
|
+
props = $[1];
|
|
45
|
+
}
|
|
46
|
+
let t1;
|
|
47
|
+
if ($[2] !== props) {
|
|
48
|
+
t1 = /*#__PURE__*/_jsx(SheetPrimitive.Trigger, {
|
|
49
|
+
"data-slot": "sheet-trigger",
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
$[2] = props;
|
|
53
|
+
$[3] = t1;
|
|
54
|
+
} else {
|
|
55
|
+
t1 = $[3];
|
|
56
|
+
}
|
|
57
|
+
return t1;
|
|
11
58
|
}
|
|
12
|
-
function SheetClose(
|
|
13
|
-
|
|
59
|
+
function SheetClose(t0) {
|
|
60
|
+
const $ = _c(4);
|
|
61
|
+
let props;
|
|
62
|
+
if ($[0] !== t0) {
|
|
63
|
+
({
|
|
64
|
+
...props
|
|
65
|
+
} = t0);
|
|
66
|
+
$[0] = t0;
|
|
67
|
+
$[1] = props;
|
|
68
|
+
} else {
|
|
69
|
+
props = $[1];
|
|
70
|
+
}
|
|
71
|
+
let t1;
|
|
72
|
+
if ($[2] !== props) {
|
|
73
|
+
t1 = /*#__PURE__*/_jsx(SheetPrimitive.Close, {
|
|
74
|
+
"data-slot": "sheet-close",
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
$[2] = props;
|
|
78
|
+
$[3] = t1;
|
|
79
|
+
} else {
|
|
80
|
+
t1 = $[3];
|
|
81
|
+
}
|
|
82
|
+
return t1;
|
|
14
83
|
}
|
|
15
|
-
function SheetPortal(
|
|
16
|
-
|
|
84
|
+
function SheetPortal(t0) {
|
|
85
|
+
const $ = _c(4);
|
|
86
|
+
let props;
|
|
87
|
+
if ($[0] !== t0) {
|
|
88
|
+
({
|
|
89
|
+
...props
|
|
90
|
+
} = t0);
|
|
91
|
+
$[0] = t0;
|
|
92
|
+
$[1] = props;
|
|
93
|
+
} else {
|
|
94
|
+
props = $[1];
|
|
95
|
+
}
|
|
96
|
+
let t1;
|
|
97
|
+
if ($[2] !== props) {
|
|
98
|
+
t1 = /*#__PURE__*/_jsx(SheetPrimitive.Portal, {
|
|
99
|
+
"data-slot": "sheet-portal",
|
|
100
|
+
...props
|
|
101
|
+
});
|
|
102
|
+
$[2] = props;
|
|
103
|
+
$[3] = t1;
|
|
104
|
+
} else {
|
|
105
|
+
t1 = $[3];
|
|
106
|
+
}
|
|
107
|
+
return t1;
|
|
17
108
|
}
|
|
18
|
-
function SheetOverlay(
|
|
19
|
-
|
|
109
|
+
function SheetOverlay(t0) {
|
|
110
|
+
const $ = _c(8);
|
|
111
|
+
let className;
|
|
112
|
+
let props;
|
|
113
|
+
if ($[0] !== t0) {
|
|
114
|
+
({
|
|
115
|
+
className,
|
|
116
|
+
...props
|
|
117
|
+
} = t0);
|
|
118
|
+
$[0] = t0;
|
|
119
|
+
$[1] = className;
|
|
120
|
+
$[2] = props;
|
|
121
|
+
} else {
|
|
122
|
+
className = $[1];
|
|
123
|
+
props = $[2];
|
|
124
|
+
}
|
|
125
|
+
let t1;
|
|
126
|
+
if ($[3] !== className) {
|
|
127
|
+
t1 = cn("fixed inset-0 z-[300] bg-scrim backdrop-blur-[2px] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", className);
|
|
128
|
+
$[3] = className;
|
|
129
|
+
$[4] = t1;
|
|
130
|
+
} else {
|
|
131
|
+
t1 = $[4];
|
|
132
|
+
}
|
|
133
|
+
let t2;
|
|
134
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
135
|
+
t2 = /*#__PURE__*/_jsx(SheetPrimitive.Overlay, {
|
|
136
|
+
"data-slot": "sheet-overlay",
|
|
137
|
+
className: t1,
|
|
138
|
+
...props
|
|
139
|
+
});
|
|
140
|
+
$[5] = props;
|
|
141
|
+
$[6] = t1;
|
|
142
|
+
$[7] = t2;
|
|
143
|
+
} else {
|
|
144
|
+
t2 = $[7];
|
|
145
|
+
}
|
|
146
|
+
return t2;
|
|
20
147
|
}
|
|
21
|
-
function SheetContent(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
148
|
+
function SheetContent(t0) {
|
|
149
|
+
const $ = _c(20);
|
|
150
|
+
let children;
|
|
151
|
+
let className;
|
|
152
|
+
let props;
|
|
153
|
+
let t1;
|
|
154
|
+
let t2;
|
|
155
|
+
if ($[0] !== t0) {
|
|
156
|
+
({
|
|
157
|
+
className,
|
|
158
|
+
children,
|
|
159
|
+
side: t1,
|
|
160
|
+
showCloseButton: t2,
|
|
161
|
+
...props
|
|
162
|
+
} = t0);
|
|
163
|
+
$[0] = t0;
|
|
164
|
+
$[1] = children;
|
|
165
|
+
$[2] = className;
|
|
166
|
+
$[3] = props;
|
|
167
|
+
$[4] = t1;
|
|
168
|
+
$[5] = t2;
|
|
169
|
+
} else {
|
|
170
|
+
children = $[1];
|
|
171
|
+
className = $[2];
|
|
172
|
+
props = $[3];
|
|
173
|
+
t1 = $[4];
|
|
174
|
+
t2 = $[5];
|
|
175
|
+
}
|
|
176
|
+
const side = t1 === undefined ? "right" : t1;
|
|
177
|
+
const showCloseButton = t2 === undefined ? true : t2;
|
|
178
|
+
let t3;
|
|
179
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
180
|
+
t3 = /*#__PURE__*/_jsx(SheetOverlay, {});
|
|
181
|
+
$[6] = t3;
|
|
182
|
+
} else {
|
|
183
|
+
t3 = $[6];
|
|
184
|
+
}
|
|
185
|
+
const t4 = side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm";
|
|
186
|
+
const t5 = side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm";
|
|
187
|
+
const t6 = side === "top" && "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top";
|
|
188
|
+
const t7 = side === "bottom" && "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom";
|
|
189
|
+
let t8;
|
|
190
|
+
if ($[7] !== className || $[8] !== t4 || $[9] !== t5 || $[10] !== t6 || $[11] !== t7) {
|
|
191
|
+
t8 = cn("fixed z-[300] flex flex-col gap-4 bg-popover shadow-overlay transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500", t4, t5, t6, t7, className);
|
|
192
|
+
$[7] = className;
|
|
193
|
+
$[8] = t4;
|
|
194
|
+
$[9] = t5;
|
|
195
|
+
$[10] = t6;
|
|
196
|
+
$[11] = t7;
|
|
197
|
+
$[12] = t8;
|
|
198
|
+
} else {
|
|
199
|
+
t8 = $[12];
|
|
200
|
+
}
|
|
201
|
+
let t9;
|
|
202
|
+
if ($[13] !== showCloseButton) {
|
|
203
|
+
t9 = showCloseButton && /*#__PURE__*/_jsxs(SheetPrimitive.Close, {
|
|
204
|
+
className: "absolute top-4 right-4 rounded-sm text-soft opacity-70 transition-opacity hover:text-foreground hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden disabled:pointer-events-none",
|
|
205
|
+
children: [/*#__PURE__*/_jsx(XIcon, {
|
|
206
|
+
className: "size-4"
|
|
207
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
208
|
+
className: "sr-only",
|
|
209
|
+
children: "Close"
|
|
210
|
+
})]
|
|
211
|
+
});
|
|
212
|
+
$[13] = showCloseButton;
|
|
213
|
+
$[14] = t9;
|
|
214
|
+
} else {
|
|
215
|
+
t9 = $[14];
|
|
216
|
+
}
|
|
217
|
+
let t10;
|
|
218
|
+
if ($[15] !== children || $[16] !== props || $[17] !== t8 || $[18] !== t9) {
|
|
219
|
+
t10 = /*#__PURE__*/_jsxs(SheetPortal, {
|
|
220
|
+
children: [t3, /*#__PURE__*/_jsxs(SheetPrimitive.Content, {
|
|
221
|
+
"data-slot": "sheet-content",
|
|
222
|
+
className: t8,
|
|
223
|
+
...props,
|
|
224
|
+
children: [children, t9]
|
|
225
|
+
})]
|
|
226
|
+
});
|
|
227
|
+
$[15] = children;
|
|
228
|
+
$[16] = props;
|
|
229
|
+
$[17] = t8;
|
|
230
|
+
$[18] = t9;
|
|
231
|
+
$[19] = t10;
|
|
232
|
+
} else {
|
|
233
|
+
t10 = $[19];
|
|
234
|
+
}
|
|
235
|
+
return t10;
|
|
27
236
|
}
|
|
28
|
-
function SheetHeader(
|
|
29
|
-
|
|
237
|
+
function SheetHeader(t0) {
|
|
238
|
+
const $ = _c(8);
|
|
239
|
+
let className;
|
|
240
|
+
let props;
|
|
241
|
+
if ($[0] !== t0) {
|
|
242
|
+
({
|
|
243
|
+
className,
|
|
244
|
+
...props
|
|
245
|
+
} = t0);
|
|
246
|
+
$[0] = t0;
|
|
247
|
+
$[1] = className;
|
|
248
|
+
$[2] = props;
|
|
249
|
+
} else {
|
|
250
|
+
className = $[1];
|
|
251
|
+
props = $[2];
|
|
252
|
+
}
|
|
253
|
+
let t1;
|
|
254
|
+
if ($[3] !== className) {
|
|
255
|
+
t1 = cn("flex flex-col gap-1.5 px-6 pt-6 pb-2 pr-12", className);
|
|
256
|
+
$[3] = className;
|
|
257
|
+
$[4] = t1;
|
|
258
|
+
} else {
|
|
259
|
+
t1 = $[4];
|
|
260
|
+
}
|
|
261
|
+
let t2;
|
|
262
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
263
|
+
t2 = /*#__PURE__*/_jsx("div", {
|
|
264
|
+
"data-slot": "sheet-header",
|
|
265
|
+
className: t1,
|
|
266
|
+
...props
|
|
267
|
+
});
|
|
268
|
+
$[5] = props;
|
|
269
|
+
$[6] = t1;
|
|
270
|
+
$[7] = t2;
|
|
271
|
+
} else {
|
|
272
|
+
t2 = $[7];
|
|
273
|
+
}
|
|
274
|
+
return t2;
|
|
30
275
|
}
|
|
31
|
-
function SheetFooter(
|
|
32
|
-
|
|
276
|
+
function SheetFooter(t0) {
|
|
277
|
+
const $ = _c(8);
|
|
278
|
+
let className;
|
|
279
|
+
let props;
|
|
280
|
+
if ($[0] !== t0) {
|
|
281
|
+
({
|
|
282
|
+
className,
|
|
283
|
+
...props
|
|
284
|
+
} = t0);
|
|
285
|
+
$[0] = t0;
|
|
286
|
+
$[1] = className;
|
|
287
|
+
$[2] = props;
|
|
288
|
+
} else {
|
|
289
|
+
className = $[1];
|
|
290
|
+
props = $[2];
|
|
291
|
+
}
|
|
292
|
+
let t1;
|
|
293
|
+
if ($[3] !== className) {
|
|
294
|
+
t1 = cn("mt-auto flex flex-col gap-2 px-6 pt-4 pb-6", className);
|
|
295
|
+
$[3] = className;
|
|
296
|
+
$[4] = t1;
|
|
297
|
+
} else {
|
|
298
|
+
t1 = $[4];
|
|
299
|
+
}
|
|
300
|
+
let t2;
|
|
301
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
302
|
+
t2 = /*#__PURE__*/_jsx("div", {
|
|
303
|
+
"data-slot": "sheet-footer",
|
|
304
|
+
className: t1,
|
|
305
|
+
...props
|
|
306
|
+
});
|
|
307
|
+
$[5] = props;
|
|
308
|
+
$[6] = t1;
|
|
309
|
+
$[7] = t2;
|
|
310
|
+
} else {
|
|
311
|
+
t2 = $[7];
|
|
312
|
+
}
|
|
313
|
+
return t2;
|
|
33
314
|
}
|
|
34
|
-
function SheetTitle(
|
|
35
|
-
|
|
315
|
+
function SheetTitle(t0) {
|
|
316
|
+
const $ = _c(8);
|
|
317
|
+
let className;
|
|
318
|
+
let props;
|
|
319
|
+
if ($[0] !== t0) {
|
|
320
|
+
({
|
|
321
|
+
className,
|
|
322
|
+
...props
|
|
323
|
+
} = t0);
|
|
324
|
+
$[0] = t0;
|
|
325
|
+
$[1] = className;
|
|
326
|
+
$[2] = props;
|
|
327
|
+
} else {
|
|
328
|
+
className = $[1];
|
|
329
|
+
props = $[2];
|
|
330
|
+
}
|
|
331
|
+
let t1;
|
|
332
|
+
if ($[3] !== className) {
|
|
333
|
+
t1 = cn("text-base font-semibold tracking-tight text-foreground", className);
|
|
334
|
+
$[3] = className;
|
|
335
|
+
$[4] = t1;
|
|
336
|
+
} else {
|
|
337
|
+
t1 = $[4];
|
|
338
|
+
}
|
|
339
|
+
let t2;
|
|
340
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
341
|
+
t2 = /*#__PURE__*/_jsx(SheetPrimitive.Title, {
|
|
342
|
+
"data-slot": "sheet-title",
|
|
343
|
+
className: t1,
|
|
344
|
+
...props
|
|
345
|
+
});
|
|
346
|
+
$[5] = props;
|
|
347
|
+
$[6] = t1;
|
|
348
|
+
$[7] = t2;
|
|
349
|
+
} else {
|
|
350
|
+
t2 = $[7];
|
|
351
|
+
}
|
|
352
|
+
return t2;
|
|
36
353
|
}
|
|
37
|
-
function SheetDescription(
|
|
38
|
-
|
|
354
|
+
function SheetDescription(t0) {
|
|
355
|
+
const $ = _c(8);
|
|
356
|
+
let className;
|
|
357
|
+
let props;
|
|
358
|
+
if ($[0] !== t0) {
|
|
359
|
+
({
|
|
360
|
+
className,
|
|
361
|
+
...props
|
|
362
|
+
} = t0);
|
|
363
|
+
$[0] = t0;
|
|
364
|
+
$[1] = className;
|
|
365
|
+
$[2] = props;
|
|
366
|
+
} else {
|
|
367
|
+
className = $[1];
|
|
368
|
+
props = $[2];
|
|
369
|
+
}
|
|
370
|
+
let t1;
|
|
371
|
+
if ($[3] !== className) {
|
|
372
|
+
t1 = cn("text-sm text-muted-foreground", className);
|
|
373
|
+
$[3] = className;
|
|
374
|
+
$[4] = t1;
|
|
375
|
+
} else {
|
|
376
|
+
t1 = $[4];
|
|
377
|
+
}
|
|
378
|
+
let t2;
|
|
379
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
380
|
+
t2 = /*#__PURE__*/_jsx(SheetPrimitive.Description, {
|
|
381
|
+
"data-slot": "sheet-description",
|
|
382
|
+
className: t1,
|
|
383
|
+
...props
|
|
384
|
+
});
|
|
385
|
+
$[5] = props;
|
|
386
|
+
$[6] = t1;
|
|
387
|
+
$[7] = t2;
|
|
388
|
+
} else {
|
|
389
|
+
t2 = $[7];
|
|
390
|
+
}
|
|
391
|
+
return t2;
|
|
39
392
|
}
|
|
40
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger
|
|
393
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
package/dist/overlay/tooltip.js
CHANGED
|
@@ -1,17 +1,153 @@
|
|
|
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 TooltipPrimitive from "radix-ui/tooltip";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function TooltipProvider(t0) {
|
|
9
|
+
const $ = _c(6);
|
|
10
|
+
let props;
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
delayDuration: t1,
|
|
15
|
+
...props
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = props;
|
|
19
|
+
$[2] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
props = $[1];
|
|
22
|
+
t1 = $[2];
|
|
23
|
+
}
|
|
24
|
+
const delayDuration = t1 === undefined ? 0 : t1;
|
|
25
|
+
let t2;
|
|
26
|
+
if ($[3] !== delayDuration || $[4] !== props) {
|
|
27
|
+
t2 = /*#__PURE__*/_jsx(TooltipPrimitive.Provider, {
|
|
28
|
+
"data-slot": "tooltip-provider",
|
|
29
|
+
delayDuration: delayDuration,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
$[3] = delayDuration;
|
|
33
|
+
$[4] = props;
|
|
34
|
+
$[5] = t2;
|
|
35
|
+
} else {
|
|
36
|
+
t2 = $[5];
|
|
37
|
+
}
|
|
38
|
+
return t2;
|
|
7
39
|
}
|
|
8
|
-
function Tooltip(
|
|
9
|
-
|
|
40
|
+
function Tooltip(t0) {
|
|
41
|
+
const $ = _c(4);
|
|
42
|
+
let props;
|
|
43
|
+
if ($[0] !== t0) {
|
|
44
|
+
({
|
|
45
|
+
...props
|
|
46
|
+
} = t0);
|
|
47
|
+
$[0] = t0;
|
|
48
|
+
$[1] = props;
|
|
49
|
+
} else {
|
|
50
|
+
props = $[1];
|
|
51
|
+
}
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[2] !== props) {
|
|
54
|
+
t1 = /*#__PURE__*/_jsx(TooltipPrimitive.Root, {
|
|
55
|
+
"data-slot": "tooltip",
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
$[2] = props;
|
|
59
|
+
$[3] = t1;
|
|
60
|
+
} else {
|
|
61
|
+
t1 = $[3];
|
|
62
|
+
}
|
|
63
|
+
return t1;
|
|
10
64
|
}
|
|
11
|
-
function TooltipTrigger(
|
|
12
|
-
|
|
65
|
+
function TooltipTrigger(t0) {
|
|
66
|
+
const $ = _c(4);
|
|
67
|
+
let props;
|
|
68
|
+
if ($[0] !== t0) {
|
|
69
|
+
({
|
|
70
|
+
...props
|
|
71
|
+
} = t0);
|
|
72
|
+
$[0] = t0;
|
|
73
|
+
$[1] = props;
|
|
74
|
+
} else {
|
|
75
|
+
props = $[1];
|
|
76
|
+
}
|
|
77
|
+
let t1;
|
|
78
|
+
if ($[2] !== props) {
|
|
79
|
+
t1 = /*#__PURE__*/_jsx(TooltipPrimitive.Trigger, {
|
|
80
|
+
"data-slot": "tooltip-trigger",
|
|
81
|
+
...props
|
|
82
|
+
});
|
|
83
|
+
$[2] = props;
|
|
84
|
+
$[3] = t1;
|
|
85
|
+
} else {
|
|
86
|
+
t1 = $[3];
|
|
87
|
+
}
|
|
88
|
+
return t1;
|
|
13
89
|
}
|
|
14
|
-
function TooltipContent(
|
|
15
|
-
|
|
90
|
+
function TooltipContent(t0) {
|
|
91
|
+
const $ = _c(13);
|
|
92
|
+
let children;
|
|
93
|
+
let className;
|
|
94
|
+
let props;
|
|
95
|
+
let t1;
|
|
96
|
+
if ($[0] !== t0) {
|
|
97
|
+
({
|
|
98
|
+
className,
|
|
99
|
+
sideOffset: t1,
|
|
100
|
+
children,
|
|
101
|
+
...props
|
|
102
|
+
} = t0);
|
|
103
|
+
$[0] = t0;
|
|
104
|
+
$[1] = children;
|
|
105
|
+
$[2] = className;
|
|
106
|
+
$[3] = props;
|
|
107
|
+
$[4] = t1;
|
|
108
|
+
} else {
|
|
109
|
+
children = $[1];
|
|
110
|
+
className = $[2];
|
|
111
|
+
props = $[3];
|
|
112
|
+
t1 = $[4];
|
|
113
|
+
}
|
|
114
|
+
const sideOffset = t1 === undefined ? 0 : t1;
|
|
115
|
+
let t2;
|
|
116
|
+
if ($[5] !== className) {
|
|
117
|
+
t2 = cn("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", className);
|
|
118
|
+
$[5] = className;
|
|
119
|
+
$[6] = t2;
|
|
120
|
+
} else {
|
|
121
|
+
t2 = $[6];
|
|
122
|
+
}
|
|
123
|
+
let t3;
|
|
124
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
125
|
+
t3 = /*#__PURE__*/_jsx(TooltipPrimitive.Arrow, {
|
|
126
|
+
className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"
|
|
127
|
+
});
|
|
128
|
+
$[7] = t3;
|
|
129
|
+
} else {
|
|
130
|
+
t3 = $[7];
|
|
131
|
+
}
|
|
132
|
+
let t4;
|
|
133
|
+
if ($[8] !== children || $[9] !== props || $[10] !== sideOffset || $[11] !== t2) {
|
|
134
|
+
t4 = /*#__PURE__*/_jsx(TooltipPrimitive.Portal, {
|
|
135
|
+
children: /*#__PURE__*/_jsxs(TooltipPrimitive.Content, {
|
|
136
|
+
"data-slot": "tooltip-content",
|
|
137
|
+
sideOffset: sideOffset,
|
|
138
|
+
className: t2,
|
|
139
|
+
...props,
|
|
140
|
+
children: [children, t3]
|
|
141
|
+
})
|
|
142
|
+
});
|
|
143
|
+
$[8] = children;
|
|
144
|
+
$[9] = props;
|
|
145
|
+
$[10] = sideOffset;
|
|
146
|
+
$[11] = t2;
|
|
147
|
+
$[12] = t4;
|
|
148
|
+
} else {
|
|
149
|
+
t4 = $[12];
|
|
150
|
+
}
|
|
151
|
+
return t4;
|
|
16
152
|
}
|
|
17
153
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/shell/app-header.js
CHANGED
|
@@ -1,10 +1,34 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { Separator } from "../display/separator.js";
|
|
3
2
|
import { SidebarTrigger } from "../layout/sidebar/sidebar.js";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
function AppHeader({
|
|
5
|
+
breadcrumbs,
|
|
6
|
+
children
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/_jsxs("header", {
|
|
9
|
+
"data-slot": "app-header",
|
|
10
|
+
className: "flex h-14 shrink-0 items-center gap-3 border-b border-line bg-background px-4",
|
|
11
|
+
children: [/*#__PURE__*/_jsx(SidebarTrigger, {
|
|
12
|
+
className: "-ml-1"
|
|
13
|
+
}), /*#__PURE__*/_jsx(Separator, {
|
|
14
|
+
orientation: "vertical",
|
|
15
|
+
className: "h-4"
|
|
16
|
+
}), breadcrumbs, /*#__PURE__*/_jsx("div", {
|
|
17
|
+
className: "ml-auto flex shrink-0 items-center gap-2",
|
|
18
|
+
children: children
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
6
21
|
}
|
|
7
|
-
function CommandHint({
|
|
8
|
-
|
|
22
|
+
function CommandHint({
|
|
23
|
+
shortcut = "⌘K",
|
|
24
|
+
label = "commands"
|
|
25
|
+
}) {
|
|
26
|
+
return /*#__PURE__*/_jsxs("span", {
|
|
27
|
+
className: "hidden items-center gap-1.5 text-xs text-faint 2xl:flex",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("kbd", {
|
|
29
|
+
className: "rounded border border-line bg-ghost px-1.5 py-0.5 font-mono text-[11px]",
|
|
30
|
+
children: shortcut
|
|
31
|
+
}), label]
|
|
32
|
+
});
|
|
9
33
|
}
|
|
10
34
|
export { AppHeader, CommandHint };
|
package/dist/shell/app-shell.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { cn } from "cn";
|
|
3
2
|
import { SidebarInset } from "../layout/sidebar/sidebar.js";
|
|
4
3
|
import { SidebarProvider } from "../layout/sidebar/sidebar-context.js";
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
function AppShell({
|
|
6
|
+
sidebar,
|
|
7
|
+
header,
|
|
8
|
+
children,
|
|
9
|
+
defaultOpen,
|
|
10
|
+
bodyClassName
|
|
11
|
+
}) {
|
|
12
|
+
return /*#__PURE__*/_jsxs(SidebarProvider, {
|
|
13
|
+
defaultOpen: defaultOpen,
|
|
14
|
+
children: [sidebar, /*#__PURE__*/_jsxs(SidebarInset, {
|
|
15
|
+
className: "h-svh overflow-hidden",
|
|
16
|
+
children: [header, /*#__PURE__*/_jsx("div", {
|
|
17
|
+
"data-slot": "app-shell-body",
|
|
18
|
+
className: cn("no-scrollbar flex w-full flex-1 flex-col overflow-y-auto px-6 pt-7 pb-8 lg:px-8", bodyClassName),
|
|
19
|
+
children: children
|
|
20
|
+
})]
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
7
23
|
}
|
|
8
24
|
export { AppShell };
|