@augmenting-integrations/ui 0.2.1 → 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/{index.mjs → index.cjs} +276 -150
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +1561 -31
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/components/chrome/Logo.jsx +0 -19
- package/dist/components/chrome/Logo.jsx.map +0 -1
- package/dist/components/chrome/RoleSwitcher.jsx +0 -32
- package/dist/components/chrome/RoleSwitcher.jsx.map +0 -1
- package/dist/components/chrome/ThemeSwitcher.jsx +0 -43
- package/dist/components/chrome/ThemeSwitcher.jsx.map +0 -1
- package/dist/components/shells/AppShell.jsx +0 -67
- package/dist/components/shells/AppShell.jsx.map +0 -1
- package/dist/components/shells/PublicShell.jsx +0 -42
- package/dist/components/shells/PublicShell.jsx.map +0 -1
- package/dist/components/shells/StudioShell.jsx +0 -20
- package/dist/components/shells/StudioShell.jsx.map +0 -1
- package/dist/components/ui/avatar.jsx +0 -24
- package/dist/components/ui/avatar.jsx.map +0 -1
- package/dist/components/ui/badge.jsx +0 -25
- package/dist/components/ui/badge.jsx.map +0 -1
- package/dist/components/ui/button.jsx +0 -36
- package/dist/components/ui/button.jsx.map +0 -1
- package/dist/components/ui/card.jsx +0 -25
- package/dist/components/ui/card.jsx.map +0 -1
- package/dist/components/ui/checkbox.jsx +0 -14
- package/dist/components/ui/checkbox.jsx.map +0 -1
- package/dist/components/ui/dialog.jsx +0 -52
- package/dist/components/ui/dialog.jsx.map +0 -1
- package/dist/components/ui/dropdown-menu.jsx +0 -71
- package/dist/components/ui/dropdown-menu.jsx.map +0 -1
- package/dist/components/ui/input.jsx +0 -7
- package/dist/components/ui/input.jsx.map +0 -1
- package/dist/components/ui/label.jsx +0 -9
- package/dist/components/ui/label.jsx.map +0 -1
- package/dist/components/ui/select.jsx +0 -63
- package/dist/components/ui/select.jsx.map +0 -1
- package/dist/components/ui/separator.jsx +0 -9
- package/dist/components/ui/separator.jsx.map +0 -1
- package/dist/components/ui/sheet.jsx +0 -50
- package/dist/components/ui/sheet.jsx.map +0 -1
- package/dist/components/ui/table.jsx +0 -31
- package/dist/components/ui/table.jsx.map +0 -1
- package/dist/components/ui/tabs.jsx +0 -30
- package/dist/components/ui/tabs.jsx.map +0 -1
- package/dist/components/ui/textarea.jsx +0 -7
- package/dist/components/ui/textarea.jsx.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/lib/utils.js +0 -6
- package/dist/lib/utils.js.map +0 -1
- package/dist/providers/MockProvider.jsx +0 -59
- package/dist/providers/MockProvider.jsx.map +0 -1
- package/dist/providers/QueryProvider.jsx +0 -12
- package/dist/providers/QueryProvider.jsx.map +0 -1
- package/dist/providers/SessionProvider.jsx +0 -6
- package/dist/providers/SessionProvider.jsx.map +0 -1
- package/dist/providers/ThemeProvider.jsx +0 -44
- package/dist/providers/ThemeProvider.jsx.map +0 -1
|
@@ -1,12 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
AppShell: () => AppShell,
|
|
34
|
+
Avatar: () => Avatar,
|
|
35
|
+
AvatarBadge: () => AvatarBadge,
|
|
36
|
+
AvatarFallback: () => AvatarFallback,
|
|
37
|
+
AvatarGroup: () => AvatarGroup,
|
|
38
|
+
AvatarGroupCount: () => AvatarGroupCount,
|
|
39
|
+
AvatarImage: () => AvatarImage,
|
|
40
|
+
Badge: () => Badge,
|
|
41
|
+
Button: () => Button,
|
|
42
|
+
Card: () => Card,
|
|
43
|
+
CardAction: () => CardAction,
|
|
44
|
+
CardContent: () => CardContent,
|
|
45
|
+
CardDescription: () => CardDescription,
|
|
46
|
+
CardFooter: () => CardFooter,
|
|
47
|
+
CardHeader: () => CardHeader,
|
|
48
|
+
CardTitle: () => CardTitle,
|
|
49
|
+
Checkbox: () => Checkbox,
|
|
50
|
+
Dialog: () => Dialog,
|
|
51
|
+
DialogClose: () => DialogClose,
|
|
52
|
+
DialogContent: () => DialogContent,
|
|
53
|
+
DialogDescription: () => DialogDescription,
|
|
54
|
+
DialogFooter: () => DialogFooter,
|
|
55
|
+
DialogHeader: () => DialogHeader,
|
|
56
|
+
DialogOverlay: () => DialogOverlay,
|
|
57
|
+
DialogPortal: () => DialogPortal,
|
|
58
|
+
DialogTitle: () => DialogTitle,
|
|
59
|
+
DialogTrigger: () => DialogTrigger,
|
|
60
|
+
DropdownMenu: () => DropdownMenu,
|
|
61
|
+
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
62
|
+
DropdownMenuContent: () => DropdownMenuContent,
|
|
63
|
+
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
64
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
65
|
+
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
66
|
+
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
67
|
+
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
68
|
+
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
69
|
+
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
70
|
+
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
71
|
+
DropdownMenuSub: () => DropdownMenuSub,
|
|
72
|
+
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
73
|
+
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
74
|
+
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
75
|
+
Input: () => Input,
|
|
76
|
+
Label: () => Label,
|
|
77
|
+
Logo: () => Logo,
|
|
78
|
+
MockProvider: () => MockProvider,
|
|
79
|
+
PublicShell: () => PublicShell,
|
|
80
|
+
QueryProvider: () => QueryProvider,
|
|
81
|
+
RoleSwitcher: () => RoleSwitcher,
|
|
82
|
+
Select: () => Select,
|
|
83
|
+
SelectContent: () => SelectContent,
|
|
84
|
+
SelectGroup: () => SelectGroup,
|
|
85
|
+
SelectItem: () => SelectItem,
|
|
86
|
+
SelectLabel: () => SelectLabel,
|
|
87
|
+
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
88
|
+
SelectScrollUpButton: () => SelectScrollUpButton,
|
|
89
|
+
SelectSeparator: () => SelectSeparator,
|
|
90
|
+
SelectTrigger: () => SelectTrigger,
|
|
91
|
+
SelectValue: () => SelectValue,
|
|
92
|
+
Separator: () => Separator,
|
|
93
|
+
SessionProvider: () => SessionProvider,
|
|
94
|
+
Sheet: () => Sheet,
|
|
95
|
+
SheetClose: () => SheetClose,
|
|
96
|
+
SheetContent: () => SheetContent,
|
|
97
|
+
SheetDescription: () => SheetDescription,
|
|
98
|
+
SheetFooter: () => SheetFooter,
|
|
99
|
+
SheetHeader: () => SheetHeader,
|
|
100
|
+
SheetTitle: () => SheetTitle,
|
|
101
|
+
SheetTrigger: () => SheetTrigger,
|
|
102
|
+
StudioShell: () => StudioShell,
|
|
103
|
+
Table: () => Table,
|
|
104
|
+
TableBody: () => TableBody,
|
|
105
|
+
TableCaption: () => TableCaption,
|
|
106
|
+
TableCell: () => TableCell,
|
|
107
|
+
TableFooter: () => TableFooter,
|
|
108
|
+
TableHead: () => TableHead,
|
|
109
|
+
TableHeader: () => TableHeader,
|
|
110
|
+
TableRow: () => TableRow,
|
|
111
|
+
Tabs: () => Tabs,
|
|
112
|
+
TabsContent: () => TabsContent,
|
|
113
|
+
TabsList: () => TabsList,
|
|
114
|
+
TabsTrigger: () => TabsTrigger,
|
|
115
|
+
Textarea: () => Textarea,
|
|
116
|
+
ThemeProvider: () => ThemeProvider,
|
|
117
|
+
ThemeSwitcher: () => ThemeSwitcher,
|
|
118
|
+
badgeVariants: () => badgeVariants,
|
|
119
|
+
buttonVariants: () => buttonVariants,
|
|
120
|
+
cn: () => cn,
|
|
121
|
+
tabsListVariants: () => tabsListVariants,
|
|
122
|
+
useThemeName: () => useThemeName
|
|
123
|
+
});
|
|
124
|
+
module.exports = __toCommonJS(index_exports);
|
|
125
|
+
|
|
1
126
|
// src/components/ui/avatar.tsx
|
|
2
|
-
|
|
3
|
-
|
|
127
|
+
var React2 = __toESM(require("react"));
|
|
128
|
+
var import_radix_ui = require("radix-ui");
|
|
4
129
|
|
|
5
130
|
// src/lib/utils.ts
|
|
6
|
-
|
|
7
|
-
|
|
131
|
+
var import_clsx = require("clsx");
|
|
132
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
8
133
|
function cn(...inputs) {
|
|
9
|
-
return twMerge(clsx(inputs));
|
|
134
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
10
135
|
}
|
|
11
136
|
|
|
12
137
|
// src/components/ui/avatar.tsx
|
|
@@ -16,7 +141,7 @@ function Avatar({
|
|
|
16
141
|
...props
|
|
17
142
|
}) {
|
|
18
143
|
return /* @__PURE__ */ React2.createElement(
|
|
19
|
-
|
|
144
|
+
import_radix_ui.Avatar.Root,
|
|
20
145
|
{
|
|
21
146
|
"data-slot": "avatar",
|
|
22
147
|
"data-size": size,
|
|
@@ -33,7 +158,7 @@ function AvatarImage({
|
|
|
33
158
|
...props
|
|
34
159
|
}) {
|
|
35
160
|
return /* @__PURE__ */ React2.createElement(
|
|
36
|
-
|
|
161
|
+
import_radix_ui.Avatar.Image,
|
|
37
162
|
{
|
|
38
163
|
"data-slot": "avatar-image",
|
|
39
164
|
className: cn("aspect-square size-full", className),
|
|
@@ -46,7 +171,7 @@ function AvatarFallback({
|
|
|
46
171
|
...props
|
|
47
172
|
}) {
|
|
48
173
|
return /* @__PURE__ */ React2.createElement(
|
|
49
|
-
|
|
174
|
+
import_radix_ui.Avatar.Fallback,
|
|
50
175
|
{
|
|
51
176
|
"data-slot": "avatar-fallback",
|
|
52
177
|
className: cn(
|
|
@@ -101,10 +226,10 @@ function AvatarGroupCount({ className, ...props }) {
|
|
|
101
226
|
}
|
|
102
227
|
|
|
103
228
|
// src/components/ui/badge.tsx
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
var badgeVariants = cva(
|
|
229
|
+
var React3 = __toESM(require("react"));
|
|
230
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
231
|
+
var import_radix_ui2 = require("radix-ui");
|
|
232
|
+
var badgeVariants = (0, import_class_variance_authority.cva)(
|
|
108
233
|
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
109
234
|
{
|
|
110
235
|
variants: {
|
|
@@ -128,7 +253,7 @@ function Badge({
|
|
|
128
253
|
asChild = false,
|
|
129
254
|
...props
|
|
130
255
|
}) {
|
|
131
|
-
const Comp = asChild ? Slot.Root : "span";
|
|
256
|
+
const Comp = asChild ? import_radix_ui2.Slot.Root : "span";
|
|
132
257
|
return /* @__PURE__ */ React3.createElement(
|
|
133
258
|
Comp,
|
|
134
259
|
{
|
|
@@ -141,10 +266,10 @@ function Badge({
|
|
|
141
266
|
}
|
|
142
267
|
|
|
143
268
|
// src/components/ui/button.tsx
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
var buttonVariants =
|
|
269
|
+
var React4 = __toESM(require("react"));
|
|
270
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
271
|
+
var import_radix_ui3 = require("radix-ui");
|
|
272
|
+
var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
148
273
|
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
149
274
|
{
|
|
150
275
|
variants: {
|
|
@@ -180,7 +305,7 @@ function Button({
|
|
|
180
305
|
asChild = false,
|
|
181
306
|
...props
|
|
182
307
|
}) {
|
|
183
|
-
const Comp = asChild ?
|
|
308
|
+
const Comp = asChild ? import_radix_ui3.Slot.Root : "button";
|
|
184
309
|
return /* @__PURE__ */ React4.createElement(
|
|
185
310
|
Comp,
|
|
186
311
|
{
|
|
@@ -194,7 +319,7 @@ function Button({
|
|
|
194
319
|
}
|
|
195
320
|
|
|
196
321
|
// src/components/ui/card.tsx
|
|
197
|
-
|
|
322
|
+
var React5 = __toESM(require("react"));
|
|
198
323
|
function Card({ className, ...props }) {
|
|
199
324
|
return /* @__PURE__ */ React5.createElement(
|
|
200
325
|
"div",
|
|
@@ -269,15 +394,15 @@ function CardFooter({ className, ...props }) {
|
|
|
269
394
|
}
|
|
270
395
|
|
|
271
396
|
// src/components/ui/checkbox.tsx
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
397
|
+
var React6 = __toESM(require("react"));
|
|
398
|
+
var import_lucide_react = require("lucide-react");
|
|
399
|
+
var import_radix_ui4 = require("radix-ui");
|
|
275
400
|
function Checkbox({
|
|
276
401
|
className,
|
|
277
402
|
...props
|
|
278
403
|
}) {
|
|
279
404
|
return /* @__PURE__ */ React6.createElement(
|
|
280
|
-
|
|
405
|
+
import_radix_ui4.Checkbox.Root,
|
|
281
406
|
{
|
|
282
407
|
"data-slot": "checkbox",
|
|
283
408
|
className: cn(
|
|
@@ -287,40 +412,40 @@ function Checkbox({
|
|
|
287
412
|
...props
|
|
288
413
|
},
|
|
289
414
|
/* @__PURE__ */ React6.createElement(
|
|
290
|
-
|
|
415
|
+
import_radix_ui4.Checkbox.Indicator,
|
|
291
416
|
{
|
|
292
417
|
"data-slot": "checkbox-indicator",
|
|
293
418
|
className: "grid place-content-center text-current transition-none"
|
|
294
419
|
},
|
|
295
|
-
/* @__PURE__ */ React6.createElement(CheckIcon, { className: "size-3.5" })
|
|
420
|
+
/* @__PURE__ */ React6.createElement(import_lucide_react.CheckIcon, { className: "size-3.5" })
|
|
296
421
|
)
|
|
297
422
|
);
|
|
298
423
|
}
|
|
299
424
|
|
|
300
425
|
// src/components/ui/dialog.tsx
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
426
|
+
var React7 = __toESM(require("react"));
|
|
427
|
+
var import_lucide_react2 = require("lucide-react");
|
|
428
|
+
var import_radix_ui5 = require("radix-ui");
|
|
304
429
|
function Dialog({ ...props }) {
|
|
305
|
-
return /* @__PURE__ */ React7.createElement(
|
|
430
|
+
return /* @__PURE__ */ React7.createElement(import_radix_ui5.Dialog.Root, { "data-slot": "dialog", ...props });
|
|
306
431
|
}
|
|
307
432
|
function DialogTrigger({
|
|
308
433
|
...props
|
|
309
434
|
}) {
|
|
310
|
-
return /* @__PURE__ */ React7.createElement(
|
|
435
|
+
return /* @__PURE__ */ React7.createElement(import_radix_ui5.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
311
436
|
}
|
|
312
437
|
function DialogPortal({ ...props }) {
|
|
313
|
-
return /* @__PURE__ */ React7.createElement(
|
|
438
|
+
return /* @__PURE__ */ React7.createElement(import_radix_ui5.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
|
|
314
439
|
}
|
|
315
440
|
function DialogClose({ ...props }) {
|
|
316
|
-
return /* @__PURE__ */ React7.createElement(
|
|
441
|
+
return /* @__PURE__ */ React7.createElement(import_radix_ui5.Dialog.Close, { "data-slot": "dialog-close", ...props });
|
|
317
442
|
}
|
|
318
443
|
function DialogOverlay({
|
|
319
444
|
className,
|
|
320
445
|
...props
|
|
321
446
|
}) {
|
|
322
447
|
return /* @__PURE__ */ React7.createElement(
|
|
323
|
-
|
|
448
|
+
import_radix_ui5.Dialog.Overlay,
|
|
324
449
|
{
|
|
325
450
|
"data-slot": "dialog-overlay",
|
|
326
451
|
className: cn(
|
|
@@ -338,7 +463,7 @@ function DialogContent({
|
|
|
338
463
|
...props
|
|
339
464
|
}) {
|
|
340
465
|
return /* @__PURE__ */ React7.createElement(DialogPortal, { "data-slot": "dialog-portal" }, /* @__PURE__ */ React7.createElement(DialogOverlay, null), /* @__PURE__ */ React7.createElement(
|
|
341
|
-
|
|
466
|
+
import_radix_ui5.Dialog.Content,
|
|
342
467
|
{
|
|
343
468
|
"data-slot": "dialog-content",
|
|
344
469
|
className: cn(
|
|
@@ -349,12 +474,12 @@ function DialogContent({
|
|
|
349
474
|
},
|
|
350
475
|
children,
|
|
351
476
|
showCloseButton && /* @__PURE__ */ React7.createElement(
|
|
352
|
-
|
|
477
|
+
import_radix_ui5.Dialog.Close,
|
|
353
478
|
{
|
|
354
479
|
"data-slot": "dialog-close",
|
|
355
480
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
|
356
481
|
},
|
|
357
|
-
/* @__PURE__ */ React7.createElement(XIcon, null),
|
|
482
|
+
/* @__PURE__ */ React7.createElement(import_lucide_react2.XIcon, null),
|
|
358
483
|
/* @__PURE__ */ React7.createElement("span", { className: "sr-only" }, "Close")
|
|
359
484
|
)
|
|
360
485
|
));
|
|
@@ -383,7 +508,7 @@ function DialogFooter({
|
|
|
383
508
|
...props
|
|
384
509
|
},
|
|
385
510
|
children,
|
|
386
|
-
showCloseButton && /* @__PURE__ */ React7.createElement(
|
|
511
|
+
showCloseButton && /* @__PURE__ */ React7.createElement(import_radix_ui5.Dialog.Close, { asChild: true }, /* @__PURE__ */ React7.createElement(Button, { variant: "outline" }, "Close"))
|
|
387
512
|
);
|
|
388
513
|
}
|
|
389
514
|
function DialogTitle({
|
|
@@ -391,7 +516,7 @@ function DialogTitle({
|
|
|
391
516
|
...props
|
|
392
517
|
}) {
|
|
393
518
|
return /* @__PURE__ */ React7.createElement(
|
|
394
|
-
|
|
519
|
+
import_radix_ui5.Dialog.Title,
|
|
395
520
|
{
|
|
396
521
|
"data-slot": "dialog-title",
|
|
397
522
|
className: cn("text-lg leading-none font-semibold", className),
|
|
@@ -404,7 +529,7 @@ function DialogDescription({
|
|
|
404
529
|
...props
|
|
405
530
|
}) {
|
|
406
531
|
return /* @__PURE__ */ React7.createElement(
|
|
407
|
-
|
|
532
|
+
import_radix_ui5.Dialog.Description,
|
|
408
533
|
{
|
|
409
534
|
"data-slot": "dialog-description",
|
|
410
535
|
className: cn("text-sm text-muted-foreground", className),
|
|
@@ -414,31 +539,31 @@ function DialogDescription({
|
|
|
414
539
|
}
|
|
415
540
|
|
|
416
541
|
// src/components/ui/dropdown-menu.tsx
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
542
|
+
var React8 = __toESM(require("react"));
|
|
543
|
+
var import_lucide_react3 = require("lucide-react");
|
|
544
|
+
var import_radix_ui6 = require("radix-ui");
|
|
420
545
|
function DropdownMenu({
|
|
421
546
|
...props
|
|
422
547
|
}) {
|
|
423
|
-
return /* @__PURE__ */ React8.createElement(
|
|
548
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.Root, { "data-slot": "dropdown-menu", ...props });
|
|
424
549
|
}
|
|
425
550
|
function DropdownMenuPortal({
|
|
426
551
|
...props
|
|
427
552
|
}) {
|
|
428
|
-
return /* @__PURE__ */ React8.createElement(
|
|
553
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
429
554
|
}
|
|
430
555
|
function DropdownMenuTrigger({
|
|
431
556
|
...props
|
|
432
557
|
}) {
|
|
433
|
-
return /* @__PURE__ */ React8.createElement(
|
|
558
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
434
559
|
}
|
|
435
560
|
function DropdownMenuContent({
|
|
436
561
|
className,
|
|
437
562
|
sideOffset = 4,
|
|
438
563
|
...props
|
|
439
564
|
}) {
|
|
440
|
-
return /* @__PURE__ */ React8.createElement(
|
|
441
|
-
|
|
565
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.Portal, null, /* @__PURE__ */ React8.createElement(
|
|
566
|
+
import_radix_ui6.DropdownMenu.Content,
|
|
442
567
|
{
|
|
443
568
|
"data-slot": "dropdown-menu-content",
|
|
444
569
|
sideOffset,
|
|
@@ -453,7 +578,7 @@ function DropdownMenuContent({
|
|
|
453
578
|
function DropdownMenuGroup({
|
|
454
579
|
...props
|
|
455
580
|
}) {
|
|
456
|
-
return /* @__PURE__ */ React8.createElement(
|
|
581
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
457
582
|
}
|
|
458
583
|
function DropdownMenuItem({
|
|
459
584
|
className,
|
|
@@ -462,7 +587,7 @@ function DropdownMenuItem({
|
|
|
462
587
|
...props
|
|
463
588
|
}) {
|
|
464
589
|
return /* @__PURE__ */ React8.createElement(
|
|
465
|
-
|
|
590
|
+
import_radix_ui6.DropdownMenu.Item,
|
|
466
591
|
{
|
|
467
592
|
"data-slot": "dropdown-menu-item",
|
|
468
593
|
"data-inset": inset,
|
|
@@ -482,7 +607,7 @@ function DropdownMenuCheckboxItem({
|
|
|
482
607
|
...props
|
|
483
608
|
}) {
|
|
484
609
|
return /* @__PURE__ */ React8.createElement(
|
|
485
|
-
|
|
610
|
+
import_radix_ui6.DropdownMenu.CheckboxItem,
|
|
486
611
|
{
|
|
487
612
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
488
613
|
className: cn(
|
|
@@ -492,14 +617,14 @@ function DropdownMenuCheckboxItem({
|
|
|
492
617
|
checked,
|
|
493
618
|
...props
|
|
494
619
|
},
|
|
495
|
-
/* @__PURE__ */ React8.createElement("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, /* @__PURE__ */ React8.createElement(
|
|
620
|
+
/* @__PURE__ */ React8.createElement("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.ItemIndicator, null, /* @__PURE__ */ React8.createElement(import_lucide_react3.CheckIcon, { className: "size-4" }))),
|
|
496
621
|
children
|
|
497
622
|
);
|
|
498
623
|
}
|
|
499
624
|
function DropdownMenuRadioGroup({
|
|
500
625
|
...props
|
|
501
626
|
}) {
|
|
502
|
-
return /* @__PURE__ */ React8.createElement(
|
|
627
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
|
|
503
628
|
}
|
|
504
629
|
function DropdownMenuRadioItem({
|
|
505
630
|
className,
|
|
@@ -507,7 +632,7 @@ function DropdownMenuRadioItem({
|
|
|
507
632
|
...props
|
|
508
633
|
}) {
|
|
509
634
|
return /* @__PURE__ */ React8.createElement(
|
|
510
|
-
|
|
635
|
+
import_radix_ui6.DropdownMenu.RadioItem,
|
|
511
636
|
{
|
|
512
637
|
"data-slot": "dropdown-menu-radio-item",
|
|
513
638
|
className: cn(
|
|
@@ -516,7 +641,7 @@ function DropdownMenuRadioItem({
|
|
|
516
641
|
),
|
|
517
642
|
...props
|
|
518
643
|
},
|
|
519
|
-
/* @__PURE__ */ React8.createElement("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, /* @__PURE__ */ React8.createElement(
|
|
644
|
+
/* @__PURE__ */ React8.createElement("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.ItemIndicator, null, /* @__PURE__ */ React8.createElement(import_lucide_react3.CircleIcon, { className: "size-2 fill-current" }))),
|
|
520
645
|
children
|
|
521
646
|
);
|
|
522
647
|
}
|
|
@@ -526,7 +651,7 @@ function DropdownMenuLabel({
|
|
|
526
651
|
...props
|
|
527
652
|
}) {
|
|
528
653
|
return /* @__PURE__ */ React8.createElement(
|
|
529
|
-
|
|
654
|
+
import_radix_ui6.DropdownMenu.Label,
|
|
530
655
|
{
|
|
531
656
|
"data-slot": "dropdown-menu-label",
|
|
532
657
|
"data-inset": inset,
|
|
@@ -540,7 +665,7 @@ function DropdownMenuSeparator({
|
|
|
540
665
|
...props
|
|
541
666
|
}) {
|
|
542
667
|
return /* @__PURE__ */ React8.createElement(
|
|
543
|
-
|
|
668
|
+
import_radix_ui6.DropdownMenu.Separator,
|
|
544
669
|
{
|
|
545
670
|
"data-slot": "dropdown-menu-separator",
|
|
546
671
|
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
@@ -561,7 +686,7 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
561
686
|
function DropdownMenuSub({
|
|
562
687
|
...props
|
|
563
688
|
}) {
|
|
564
|
-
return /* @__PURE__ */ React8.createElement(
|
|
689
|
+
return /* @__PURE__ */ React8.createElement(import_radix_ui6.DropdownMenu.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
565
690
|
}
|
|
566
691
|
function DropdownMenuSubTrigger({
|
|
567
692
|
className,
|
|
@@ -570,7 +695,7 @@ function DropdownMenuSubTrigger({
|
|
|
570
695
|
...props
|
|
571
696
|
}) {
|
|
572
697
|
return /* @__PURE__ */ React8.createElement(
|
|
573
|
-
|
|
698
|
+
import_radix_ui6.DropdownMenu.SubTrigger,
|
|
574
699
|
{
|
|
575
700
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
576
701
|
"data-inset": inset,
|
|
@@ -581,7 +706,7 @@ function DropdownMenuSubTrigger({
|
|
|
581
706
|
...props
|
|
582
707
|
},
|
|
583
708
|
children,
|
|
584
|
-
/* @__PURE__ */ React8.createElement(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
709
|
+
/* @__PURE__ */ React8.createElement(import_lucide_react3.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
585
710
|
);
|
|
586
711
|
}
|
|
587
712
|
function DropdownMenuSubContent({
|
|
@@ -589,7 +714,7 @@ function DropdownMenuSubContent({
|
|
|
589
714
|
...props
|
|
590
715
|
}) {
|
|
591
716
|
return /* @__PURE__ */ React8.createElement(
|
|
592
|
-
|
|
717
|
+
import_radix_ui6.DropdownMenu.SubContent,
|
|
593
718
|
{
|
|
594
719
|
"data-slot": "dropdown-menu-sub-content",
|
|
595
720
|
className: cn(
|
|
@@ -602,7 +727,7 @@ function DropdownMenuSubContent({
|
|
|
602
727
|
}
|
|
603
728
|
|
|
604
729
|
// src/components/ui/input.tsx
|
|
605
|
-
|
|
730
|
+
var React9 = __toESM(require("react"));
|
|
606
731
|
function Input({ className, type, ...props }) {
|
|
607
732
|
return /* @__PURE__ */ React9.createElement(
|
|
608
733
|
"input",
|
|
@@ -621,14 +746,14 @@ function Input({ className, type, ...props }) {
|
|
|
621
746
|
}
|
|
622
747
|
|
|
623
748
|
// src/components/ui/label.tsx
|
|
624
|
-
|
|
625
|
-
|
|
749
|
+
var React10 = __toESM(require("react"));
|
|
750
|
+
var import_radix_ui7 = require("radix-ui");
|
|
626
751
|
function Label({
|
|
627
752
|
className,
|
|
628
753
|
...props
|
|
629
754
|
}) {
|
|
630
755
|
return /* @__PURE__ */ React10.createElement(
|
|
631
|
-
|
|
756
|
+
import_radix_ui7.Label.Root,
|
|
632
757
|
{
|
|
633
758
|
"data-slot": "label",
|
|
634
759
|
className: cn(
|
|
@@ -641,17 +766,17 @@ function Label({
|
|
|
641
766
|
}
|
|
642
767
|
|
|
643
768
|
// src/components/ui/select.tsx
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
769
|
+
var React11 = __toESM(require("react"));
|
|
770
|
+
var import_lucide_react4 = require("lucide-react");
|
|
771
|
+
var import_radix_ui8 = require("radix-ui");
|
|
647
772
|
function Select({ ...props }) {
|
|
648
|
-
return /* @__PURE__ */ React11.createElement(
|
|
773
|
+
return /* @__PURE__ */ React11.createElement(import_radix_ui8.Select.Root, { "data-slot": "select", ...props });
|
|
649
774
|
}
|
|
650
775
|
function SelectGroup({ ...props }) {
|
|
651
|
-
return /* @__PURE__ */ React11.createElement(
|
|
776
|
+
return /* @__PURE__ */ React11.createElement(import_radix_ui8.Select.Group, { "data-slot": "select-group", ...props });
|
|
652
777
|
}
|
|
653
778
|
function SelectValue({ ...props }) {
|
|
654
|
-
return /* @__PURE__ */ React11.createElement(
|
|
779
|
+
return /* @__PURE__ */ React11.createElement(import_radix_ui8.Select.Value, { "data-slot": "select-value", ...props });
|
|
655
780
|
}
|
|
656
781
|
function SelectTrigger({
|
|
657
782
|
className,
|
|
@@ -660,7 +785,7 @@ function SelectTrigger({
|
|
|
660
785
|
...props
|
|
661
786
|
}) {
|
|
662
787
|
return /* @__PURE__ */ React11.createElement(
|
|
663
|
-
|
|
788
|
+
import_radix_ui8.Select.Trigger,
|
|
664
789
|
{
|
|
665
790
|
"data-slot": "select-trigger",
|
|
666
791
|
"data-size": size,
|
|
@@ -671,7 +796,7 @@ function SelectTrigger({
|
|
|
671
796
|
...props
|
|
672
797
|
},
|
|
673
798
|
children,
|
|
674
|
-
/* @__PURE__ */ React11.createElement(
|
|
799
|
+
/* @__PURE__ */ React11.createElement(import_radix_ui8.Select.Icon, { asChild: true }, /* @__PURE__ */ React11.createElement(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }))
|
|
675
800
|
);
|
|
676
801
|
}
|
|
677
802
|
function SelectContent({
|
|
@@ -681,8 +806,8 @@ function SelectContent({
|
|
|
681
806
|
align = "center",
|
|
682
807
|
...props
|
|
683
808
|
}) {
|
|
684
|
-
return /* @__PURE__ */ React11.createElement(
|
|
685
|
-
|
|
809
|
+
return /* @__PURE__ */ React11.createElement(import_radix_ui8.Select.Portal, null, /* @__PURE__ */ React11.createElement(
|
|
810
|
+
import_radix_ui8.Select.Content,
|
|
686
811
|
{
|
|
687
812
|
"data-slot": "select-content",
|
|
688
813
|
className: cn(
|
|
@@ -696,7 +821,7 @@ function SelectContent({
|
|
|
696
821
|
},
|
|
697
822
|
/* @__PURE__ */ React11.createElement(SelectScrollUpButton, null),
|
|
698
823
|
/* @__PURE__ */ React11.createElement(
|
|
699
|
-
|
|
824
|
+
import_radix_ui8.Select.Viewport,
|
|
700
825
|
{
|
|
701
826
|
className: cn(
|
|
702
827
|
"p-1",
|
|
@@ -713,7 +838,7 @@ function SelectLabel({
|
|
|
713
838
|
...props
|
|
714
839
|
}) {
|
|
715
840
|
return /* @__PURE__ */ React11.createElement(
|
|
716
|
-
|
|
841
|
+
import_radix_ui8.Select.Label,
|
|
717
842
|
{
|
|
718
843
|
"data-slot": "select-label",
|
|
719
844
|
className: cn("px-2 py-1.5 text-xs text-muted-foreground", className),
|
|
@@ -727,7 +852,7 @@ function SelectItem({
|
|
|
727
852
|
...props
|
|
728
853
|
}) {
|
|
729
854
|
return /* @__PURE__ */ React11.createElement(
|
|
730
|
-
|
|
855
|
+
import_radix_ui8.Select.Item,
|
|
731
856
|
{
|
|
732
857
|
"data-slot": "select-item",
|
|
733
858
|
className: cn(
|
|
@@ -742,9 +867,9 @@ function SelectItem({
|
|
|
742
867
|
"data-slot": "select-item-indicator",
|
|
743
868
|
className: "absolute right-2 flex size-3.5 items-center justify-center"
|
|
744
869
|
},
|
|
745
|
-
/* @__PURE__ */ React11.createElement(
|
|
870
|
+
/* @__PURE__ */ React11.createElement(import_radix_ui8.Select.ItemIndicator, null, /* @__PURE__ */ React11.createElement(import_lucide_react4.CheckIcon, { className: "size-4" }))
|
|
746
871
|
),
|
|
747
|
-
/* @__PURE__ */ React11.createElement(
|
|
872
|
+
/* @__PURE__ */ React11.createElement(import_radix_ui8.Select.ItemText, null, children)
|
|
748
873
|
);
|
|
749
874
|
}
|
|
750
875
|
function SelectSeparator({
|
|
@@ -752,7 +877,7 @@ function SelectSeparator({
|
|
|
752
877
|
...props
|
|
753
878
|
}) {
|
|
754
879
|
return /* @__PURE__ */ React11.createElement(
|
|
755
|
-
|
|
880
|
+
import_radix_ui8.Select.Separator,
|
|
756
881
|
{
|
|
757
882
|
"data-slot": "select-separator",
|
|
758
883
|
className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
@@ -765,13 +890,13 @@ function SelectScrollUpButton({
|
|
|
765
890
|
...props
|
|
766
891
|
}) {
|
|
767
892
|
return /* @__PURE__ */ React11.createElement(
|
|
768
|
-
|
|
893
|
+
import_radix_ui8.Select.ScrollUpButton,
|
|
769
894
|
{
|
|
770
895
|
"data-slot": "select-scroll-up-button",
|
|
771
896
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
772
897
|
...props
|
|
773
898
|
},
|
|
774
|
-
/* @__PURE__ */ React11.createElement(ChevronUpIcon, { className: "size-4" })
|
|
899
|
+
/* @__PURE__ */ React11.createElement(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
|
|
775
900
|
);
|
|
776
901
|
}
|
|
777
902
|
function SelectScrollDownButton({
|
|
@@ -779,19 +904,19 @@ function SelectScrollDownButton({
|
|
|
779
904
|
...props
|
|
780
905
|
}) {
|
|
781
906
|
return /* @__PURE__ */ React11.createElement(
|
|
782
|
-
|
|
907
|
+
import_radix_ui8.Select.ScrollDownButton,
|
|
783
908
|
{
|
|
784
909
|
"data-slot": "select-scroll-down-button",
|
|
785
910
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
786
911
|
...props
|
|
787
912
|
},
|
|
788
|
-
/* @__PURE__ */ React11.createElement(ChevronDownIcon, { className: "size-4" })
|
|
913
|
+
/* @__PURE__ */ React11.createElement(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
|
|
789
914
|
);
|
|
790
915
|
}
|
|
791
916
|
|
|
792
917
|
// src/components/ui/separator.tsx
|
|
793
|
-
|
|
794
|
-
|
|
918
|
+
var React12 = __toESM(require("react"));
|
|
919
|
+
var import_radix_ui9 = require("radix-ui");
|
|
795
920
|
function Separator({
|
|
796
921
|
className,
|
|
797
922
|
orientation = "horizontal",
|
|
@@ -799,7 +924,7 @@ function Separator({
|
|
|
799
924
|
...props
|
|
800
925
|
}) {
|
|
801
926
|
return /* @__PURE__ */ React12.createElement(
|
|
802
|
-
|
|
927
|
+
import_radix_ui9.Separator.Root,
|
|
803
928
|
{
|
|
804
929
|
"data-slot": "separator",
|
|
805
930
|
decorative,
|
|
@@ -814,27 +939,27 @@ function Separator({
|
|
|
814
939
|
}
|
|
815
940
|
|
|
816
941
|
// src/components/ui/sheet.tsx
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
942
|
+
var React13 = __toESM(require("react"));
|
|
943
|
+
var import_lucide_react5 = require("lucide-react");
|
|
944
|
+
var import_radix_ui10 = require("radix-ui");
|
|
820
945
|
function Sheet({ ...props }) {
|
|
821
|
-
return /* @__PURE__ */ React13.createElement(
|
|
946
|
+
return /* @__PURE__ */ React13.createElement(import_radix_ui10.Dialog.Root, { "data-slot": "sheet", ...props });
|
|
822
947
|
}
|
|
823
948
|
function SheetTrigger({ ...props }) {
|
|
824
|
-
return /* @__PURE__ */ React13.createElement(
|
|
949
|
+
return /* @__PURE__ */ React13.createElement(import_radix_ui10.Dialog.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
825
950
|
}
|
|
826
951
|
function SheetClose({ ...props }) {
|
|
827
|
-
return /* @__PURE__ */ React13.createElement(
|
|
952
|
+
return /* @__PURE__ */ React13.createElement(import_radix_ui10.Dialog.Close, { "data-slot": "sheet-close", ...props });
|
|
828
953
|
}
|
|
829
954
|
function SheetPortal({ ...props }) {
|
|
830
|
-
return /* @__PURE__ */ React13.createElement(
|
|
955
|
+
return /* @__PURE__ */ React13.createElement(import_radix_ui10.Dialog.Portal, { "data-slot": "sheet-portal", ...props });
|
|
831
956
|
}
|
|
832
957
|
function SheetOverlay({
|
|
833
958
|
className,
|
|
834
959
|
...props
|
|
835
960
|
}) {
|
|
836
961
|
return /* @__PURE__ */ React13.createElement(
|
|
837
|
-
|
|
962
|
+
import_radix_ui10.Dialog.Overlay,
|
|
838
963
|
{
|
|
839
964
|
"data-slot": "sheet-overlay",
|
|
840
965
|
className: cn(
|
|
@@ -853,7 +978,7 @@ function SheetContent({
|
|
|
853
978
|
...props
|
|
854
979
|
}) {
|
|
855
980
|
return /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
|
856
|
-
|
|
981
|
+
import_radix_ui10.Dialog.Content,
|
|
857
982
|
{
|
|
858
983
|
"data-slot": "sheet-content",
|
|
859
984
|
className: cn(
|
|
@@ -867,7 +992,7 @@ function SheetContent({
|
|
|
867
992
|
...props
|
|
868
993
|
},
|
|
869
994
|
children,
|
|
870
|
-
showCloseButton && /* @__PURE__ */ React13.createElement(
|
|
995
|
+
showCloseButton && /* @__PURE__ */ React13.createElement(import_radix_ui10.Dialog.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary" }, /* @__PURE__ */ React13.createElement(import_lucide_react5.XIcon, { className: "size-4" }), /* @__PURE__ */ React13.createElement("span", { className: "sr-only" }, "Close"))
|
|
871
996
|
));
|
|
872
997
|
}
|
|
873
998
|
function SheetHeader({ className, ...props }) {
|
|
@@ -895,7 +1020,7 @@ function SheetTitle({
|
|
|
895
1020
|
...props
|
|
896
1021
|
}) {
|
|
897
1022
|
return /* @__PURE__ */ React13.createElement(
|
|
898
|
-
|
|
1023
|
+
import_radix_ui10.Dialog.Title,
|
|
899
1024
|
{
|
|
900
1025
|
"data-slot": "sheet-title",
|
|
901
1026
|
className: cn("font-semibold text-foreground", className),
|
|
@@ -908,7 +1033,7 @@ function SheetDescription({
|
|
|
908
1033
|
...props
|
|
909
1034
|
}) {
|
|
910
1035
|
return /* @__PURE__ */ React13.createElement(
|
|
911
|
-
|
|
1036
|
+
import_radix_ui10.Dialog.Description,
|
|
912
1037
|
{
|
|
913
1038
|
"data-slot": "sheet-description",
|
|
914
1039
|
className: cn("text-sm text-muted-foreground", className),
|
|
@@ -918,7 +1043,7 @@ function SheetDescription({
|
|
|
918
1043
|
}
|
|
919
1044
|
|
|
920
1045
|
// src/components/ui/table.tsx
|
|
921
|
-
|
|
1046
|
+
var React14 = __toESM(require("react"));
|
|
922
1047
|
function Table({ className, ...props }) {
|
|
923
1048
|
return /* @__PURE__ */ React14.createElement("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto" }, /* @__PURE__ */ React14.createElement(
|
|
924
1049
|
"table",
|
|
@@ -1010,16 +1135,16 @@ function TableCaption({ className, ...props }) {
|
|
|
1010
1135
|
}
|
|
1011
1136
|
|
|
1012
1137
|
// src/components/ui/tabs.tsx
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1138
|
+
var React15 = __toESM(require("react"));
|
|
1139
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
1140
|
+
var import_radix_ui11 = require("radix-ui");
|
|
1016
1141
|
function Tabs({
|
|
1017
1142
|
className,
|
|
1018
1143
|
orientation = "horizontal",
|
|
1019
1144
|
...props
|
|
1020
1145
|
}) {
|
|
1021
1146
|
return /* @__PURE__ */ React15.createElement(
|
|
1022
|
-
|
|
1147
|
+
import_radix_ui11.Tabs.Root,
|
|
1023
1148
|
{
|
|
1024
1149
|
"data-slot": "tabs",
|
|
1025
1150
|
"data-orientation": orientation,
|
|
@@ -1032,7 +1157,7 @@ function Tabs({
|
|
|
1032
1157
|
}
|
|
1033
1158
|
);
|
|
1034
1159
|
}
|
|
1035
|
-
var tabsListVariants =
|
|
1160
|
+
var tabsListVariants = (0, import_class_variance_authority3.cva)(
|
|
1036
1161
|
"group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",
|
|
1037
1162
|
{
|
|
1038
1163
|
variants: {
|
|
@@ -1052,7 +1177,7 @@ function TabsList({
|
|
|
1052
1177
|
...props
|
|
1053
1178
|
}) {
|
|
1054
1179
|
return /* @__PURE__ */ React15.createElement(
|
|
1055
|
-
|
|
1180
|
+
import_radix_ui11.Tabs.List,
|
|
1056
1181
|
{
|
|
1057
1182
|
"data-slot": "tabs-list",
|
|
1058
1183
|
"data-variant": variant,
|
|
@@ -1066,7 +1191,7 @@ function TabsTrigger({
|
|
|
1066
1191
|
...props
|
|
1067
1192
|
}) {
|
|
1068
1193
|
return /* @__PURE__ */ React15.createElement(
|
|
1069
|
-
|
|
1194
|
+
import_radix_ui11.Tabs.Trigger,
|
|
1070
1195
|
{
|
|
1071
1196
|
"data-slot": "tabs-trigger",
|
|
1072
1197
|
className: cn(
|
|
@@ -1085,7 +1210,7 @@ function TabsContent({
|
|
|
1085
1210
|
...props
|
|
1086
1211
|
}) {
|
|
1087
1212
|
return /* @__PURE__ */ React15.createElement(
|
|
1088
|
-
|
|
1213
|
+
import_radix_ui11.Tabs.Content,
|
|
1089
1214
|
{
|
|
1090
1215
|
"data-slot": "tabs-content",
|
|
1091
1216
|
className: cn("flex-1 outline-none", className),
|
|
@@ -1095,7 +1220,7 @@ function TabsContent({
|
|
|
1095
1220
|
}
|
|
1096
1221
|
|
|
1097
1222
|
// src/components/ui/textarea.tsx
|
|
1098
|
-
|
|
1223
|
+
var React16 = __toESM(require("react"));
|
|
1099
1224
|
function Textarea({ className, ...props }) {
|
|
1100
1225
|
return /* @__PURE__ */ React16.createElement(
|
|
1101
1226
|
"textarea",
|
|
@@ -1111,12 +1236,12 @@ function Textarea({ className, ...props }) {
|
|
|
1111
1236
|
}
|
|
1112
1237
|
|
|
1113
1238
|
// src/components/chrome/Logo.tsx
|
|
1114
|
-
|
|
1239
|
+
var import_brand = require("@augmenting-integrations/brand");
|
|
1115
1240
|
function Logo({
|
|
1116
1241
|
className,
|
|
1117
1242
|
showWordmark = true
|
|
1118
1243
|
}) {
|
|
1119
|
-
const brand = useBrand();
|
|
1244
|
+
const brand = (0, import_brand.useBrand)();
|
|
1120
1245
|
return /* @__PURE__ */ React.createElement("div", { className: cn("inline-flex items-center gap-2 text-primary", className) }, /* @__PURE__ */ React.createElement("span", { className: "inline-flex h-8 w-8 shrink-0 items-center justify-center text-current" }, /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 32 32", className: "h-full w-full", "aria-hidden": "true" }, /* @__PURE__ */ React.createElement("rect", { x: "2", y: "2", width: "28", height: "28", rx: "6", fill: "currentColor" }), /* @__PURE__ */ React.createElement(
|
|
1121
1246
|
"path",
|
|
1122
1247
|
{
|
|
@@ -1127,26 +1252,26 @@ function Logo({
|
|
|
1127
1252
|
}
|
|
1128
1253
|
|
|
1129
1254
|
// src/components/chrome/ThemeSwitcher.tsx
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1255
|
+
var React18 = __toESM(require("react"));
|
|
1256
|
+
var import_next_themes2 = require("next-themes");
|
|
1257
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1258
|
+
var import_themes2 = require("@augmenting-integrations/themes");
|
|
1134
1259
|
|
|
1135
1260
|
// src/providers/ThemeProvider.tsx
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1261
|
+
var React17 = __toESM(require("react"));
|
|
1262
|
+
var import_next_themes = require("next-themes");
|
|
1263
|
+
var import_themes = require("@augmenting-integrations/themes");
|
|
1139
1264
|
var ThemeNameContext = React17.createContext(null);
|
|
1140
1265
|
function readCookie() {
|
|
1141
1266
|
if (typeof document === "undefined") return null;
|
|
1142
|
-
const match = document.cookie.split("; ").find((row) => row.startsWith(`${THEME_COOKIE_KEY}=`));
|
|
1267
|
+
const match = document.cookie.split("; ").find((row) => row.startsWith(`${import_themes.THEME_COOKIE_KEY}=`));
|
|
1143
1268
|
if (!match) return null;
|
|
1144
1269
|
const value = match.split("=")[1];
|
|
1145
1270
|
return value && value.length > 0 ? value : null;
|
|
1146
1271
|
}
|
|
1147
1272
|
function writeCookie(value) {
|
|
1148
1273
|
if (typeof document === "undefined") return;
|
|
1149
|
-
document.cookie = `${THEME_COOKIE_KEY}=${value}; path=/; max-age=${60 * 60 * 24 * 365}; samesite=lax`;
|
|
1274
|
+
document.cookie = `${import_themes.THEME_COOKIE_KEY}=${value}; path=/; max-age=${60 * 60 * 24 * 365}; samesite=lax`;
|
|
1150
1275
|
}
|
|
1151
1276
|
function ThemeProvider({
|
|
1152
1277
|
children,
|
|
@@ -1168,7 +1293,7 @@ function ThemeProvider({
|
|
|
1168
1293
|
[themeName, setThemeName]
|
|
1169
1294
|
);
|
|
1170
1295
|
return /* @__PURE__ */ React17.createElement(ThemeNameContext.Provider, { value }, /* @__PURE__ */ React17.createElement(
|
|
1171
|
-
|
|
1296
|
+
import_next_themes.ThemeProvider,
|
|
1172
1297
|
{
|
|
1173
1298
|
attribute: "class",
|
|
1174
1299
|
defaultTheme: defaultVariant,
|
|
@@ -1187,7 +1312,7 @@ function useThemeName() {
|
|
|
1187
1312
|
// src/components/chrome/ThemeSwitcher.tsx
|
|
1188
1313
|
function ThemeSwitcher({ className }) {
|
|
1189
1314
|
const { themeName, setThemeName } = useThemeName();
|
|
1190
|
-
const { resolvedTheme, setTheme } = useTheme();
|
|
1315
|
+
const { resolvedTheme, setTheme } = (0, import_next_themes2.useTheme)();
|
|
1191
1316
|
const mounted = React18.useSyncExternalStore(
|
|
1192
1317
|
() => () => {
|
|
1193
1318
|
},
|
|
@@ -1206,7 +1331,7 @@ function ThemeSwitcher({ className }) {
|
|
|
1206
1331
|
);
|
|
1207
1332
|
}
|
|
1208
1333
|
const isDark = resolvedTheme === "dark";
|
|
1209
|
-
const activeLabel = BASE_THEMES.find((t) => t.id === themeName)?.label ?? "Theme";
|
|
1334
|
+
const activeLabel = import_themes2.BASE_THEMES.find((t) => t.id === themeName)?.label ?? "Theme";
|
|
1210
1335
|
return /* @__PURE__ */ React18.createElement("div", { className: cn("flex items-center gap-2", className) }, /* @__PURE__ */ React18.createElement(
|
|
1211
1336
|
"button",
|
|
1212
1337
|
{
|
|
@@ -1215,16 +1340,16 @@ function ThemeSwitcher({ className }) {
|
|
|
1215
1340
|
"aria-label": isDark ? "Switch to light mode" : "Switch to dark mode",
|
|
1216
1341
|
className: "inline-flex h-9 w-9 items-center justify-center rounded-md border border-border bg-background text-foreground transition hover:bg-muted"
|
|
1217
1342
|
},
|
|
1218
|
-
isDark ? /* @__PURE__ */ React18.createElement(Sun, { className: "h-4 w-4" }) : /* @__PURE__ */ React18.createElement(Moon, { className: "h-4 w-4" })
|
|
1343
|
+
isDark ? /* @__PURE__ */ React18.createElement(import_lucide_react6.Sun, { className: "h-4 w-4" }) : /* @__PURE__ */ React18.createElement(import_lucide_react6.Moon, { className: "h-4 w-4" })
|
|
1219
1344
|
), /* @__PURE__ */ React18.createElement(DropdownMenu, null, /* @__PURE__ */ React18.createElement(
|
|
1220
1345
|
DropdownMenuTrigger,
|
|
1221
1346
|
{
|
|
1222
1347
|
className: "inline-flex h-9 items-center gap-2 rounded-md border border-border bg-background px-3 text-sm text-foreground transition hover:bg-muted",
|
|
1223
1348
|
"aria-label": "Switch theme palette"
|
|
1224
1349
|
},
|
|
1225
|
-
/* @__PURE__ */ React18.createElement(Palette, { className: "h-4 w-4" }),
|
|
1350
|
+
/* @__PURE__ */ React18.createElement(import_lucide_react6.Palette, { className: "h-4 w-4" }),
|
|
1226
1351
|
/* @__PURE__ */ React18.createElement("span", { className: "font-medium" }, activeLabel)
|
|
1227
|
-
), /* @__PURE__ */ React18.createElement(DropdownMenuContent, { align: "end", sideOffset: 6, className: "w-72 p-1" }, BASE_THEMES.map((t) => /* @__PURE__ */ React18.createElement(
|
|
1352
|
+
), /* @__PURE__ */ React18.createElement(DropdownMenuContent, { align: "end", sideOffset: 6, className: "w-72 p-1" }, import_themes2.BASE_THEMES.map((t) => /* @__PURE__ */ React18.createElement(
|
|
1228
1353
|
DropdownMenuItem,
|
|
1229
1354
|
{
|
|
1230
1355
|
key: t.id,
|
|
@@ -1254,12 +1379,12 @@ function ThemeSwitcher({ className }) {
|
|
|
1254
1379
|
}
|
|
1255
1380
|
|
|
1256
1381
|
// src/components/chrome/RoleSwitcher.tsx
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1382
|
+
var React19 = __toESM(require("react"));
|
|
1383
|
+
var import_react = require("next-auth/react");
|
|
1384
|
+
var import_lucide_react7 = require("lucide-react");
|
|
1260
1385
|
var ROLES = ["visitor", "sales", "agent", "admin"];
|
|
1261
1386
|
function RoleSwitcher({ className }) {
|
|
1262
|
-
const { data: session, update } = useSession();
|
|
1387
|
+
const { data: session, update } = (0, import_react.useSession)();
|
|
1263
1388
|
const [open, setOpen] = React19.useState(false);
|
|
1264
1389
|
const current = session?.user?.role ?? "visitor";
|
|
1265
1390
|
return /* @__PURE__ */ React19.createElement("div", { className: cn("relative", className) }, /* @__PURE__ */ React19.createElement(
|
|
@@ -1271,7 +1396,7 @@ function RoleSwitcher({ className }) {
|
|
|
1271
1396
|
"aria-expanded": open,
|
|
1272
1397
|
className: "inline-flex h-9 items-center gap-2 rounded-md border border-border bg-background px-3 text-sm text-foreground transition hover:bg-muted"
|
|
1273
1398
|
},
|
|
1274
|
-
/* @__PURE__ */ React19.createElement(UserCog, { className: "h-4 w-4" }),
|
|
1399
|
+
/* @__PURE__ */ React19.createElement(import_lucide_react7.UserCog, { className: "h-4 w-4" }),
|
|
1275
1400
|
/* @__PURE__ */ React19.createElement("span", { className: "font-medium capitalize" }, current)
|
|
1276
1401
|
), open ? /* @__PURE__ */ React19.createElement(
|
|
1277
1402
|
"div",
|
|
@@ -1288,7 +1413,7 @@ function RoleSwitcher({ className }) {
|
|
|
1288
1413
|
type: "button",
|
|
1289
1414
|
role: "menuitem",
|
|
1290
1415
|
onClick: async () => {
|
|
1291
|
-
await signIn("credentials", { role: r, redirect: false });
|
|
1416
|
+
await (0, import_react.signIn)("credentials", { role: r, redirect: false });
|
|
1292
1417
|
await update();
|
|
1293
1418
|
setOpen(false);
|
|
1294
1419
|
},
|
|
@@ -1304,8 +1429,8 @@ function RoleSwitcher({ className }) {
|
|
|
1304
1429
|
}
|
|
1305
1430
|
|
|
1306
1431
|
// src/components/shells/PublicShell.tsx
|
|
1307
|
-
|
|
1308
|
-
|
|
1432
|
+
var React20 = __toESM(require("react"));
|
|
1433
|
+
var import_brand2 = require("@augmenting-integrations/brand");
|
|
1309
1434
|
function PublicShell({
|
|
1310
1435
|
children,
|
|
1311
1436
|
navLinks,
|
|
@@ -1313,7 +1438,7 @@ function PublicShell({
|
|
|
1313
1438
|
footerLinks,
|
|
1314
1439
|
Link
|
|
1315
1440
|
}) {
|
|
1316
|
-
const brand =
|
|
1441
|
+
const brand = (0, import_brand2.useBrand)();
|
|
1317
1442
|
return /* @__PURE__ */ React20.createElement("div", { className: "flex min-h-svh flex-col bg-background text-foreground" }, /* @__PURE__ */ React20.createElement("header", { className: "border-b border-border bg-background/80 backdrop-blur" }, /* @__PURE__ */ React20.createElement("div", { className: "mx-auto flex max-w-6xl items-center justify-between px-6 py-4" }, /* @__PURE__ */ React20.createElement(Link, { href: "/", "aria-label": "Home" }, /* @__PURE__ */ React20.createElement(Logo, null)), /* @__PURE__ */ React20.createElement("nav", { className: "flex items-center gap-6 text-sm" }, navLinks.map((link) => /* @__PURE__ */ React20.createElement(
|
|
1318
1443
|
Link,
|
|
1319
1444
|
{
|
|
@@ -1333,8 +1458,8 @@ function PublicShell({
|
|
|
1333
1458
|
}
|
|
1334
1459
|
|
|
1335
1460
|
// src/components/shells/AppShell.tsx
|
|
1336
|
-
|
|
1337
|
-
|
|
1461
|
+
var React21 = __toESM(require("react"));
|
|
1462
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1338
1463
|
function NavGroup({
|
|
1339
1464
|
group,
|
|
1340
1465
|
pathname,
|
|
@@ -1382,7 +1507,7 @@ function AppShell({
|
|
|
1382
1507
|
"aria-label": "Close menu",
|
|
1383
1508
|
className: "absolute right-2 top-2 inline-flex h-9 w-9 items-center justify-center rounded-md hover:bg-sidebar-accent"
|
|
1384
1509
|
},
|
|
1385
|
-
/* @__PURE__ */ React21.createElement(X, { className: "h-4 w-4" })
|
|
1510
|
+
/* @__PURE__ */ React21.createElement(import_lucide_react8.X, { className: "h-4 w-4" })
|
|
1386
1511
|
), sidebarContent)) : null, /* @__PURE__ */ React21.createElement("div", { className: "flex min-w-0 flex-1 flex-col" }, /* @__PURE__ */ React21.createElement("header", { className: "flex h-14 items-center justify-between gap-3 border-b border-border bg-background/80 px-4 backdrop-blur md:px-6" }, /* @__PURE__ */ React21.createElement(
|
|
1387
1512
|
"button",
|
|
1388
1513
|
{
|
|
@@ -1391,12 +1516,12 @@ function AppShell({
|
|
|
1391
1516
|
"aria-label": "Open menu",
|
|
1392
1517
|
className: "inline-flex h-9 w-9 items-center justify-center rounded-md border border-border md:hidden"
|
|
1393
1518
|
},
|
|
1394
|
-
/* @__PURE__ */ React21.createElement(Menu, { className: "h-4 w-4" })
|
|
1519
|
+
/* @__PURE__ */ React21.createElement(import_lucide_react8.Menu, { className: "h-4 w-4" })
|
|
1395
1520
|
), /* @__PURE__ */ React21.createElement("div", { className: "flex items-center gap-3 md:ml-auto" }, showRoleSwitcher ? /* @__PURE__ */ React21.createElement(RoleSwitcher, null) : null, /* @__PURE__ */ React21.createElement(ThemeSwitcher, null))), /* @__PURE__ */ React21.createElement("main", { className: "min-w-0 flex-1 px-4 py-6 md:px-8 md:py-8" }, children)));
|
|
1396
1521
|
}
|
|
1397
1522
|
|
|
1398
1523
|
// src/components/shells/StudioShell.tsx
|
|
1399
|
-
|
|
1524
|
+
var React22 = __toESM(require("react"));
|
|
1400
1525
|
function StudioShell({
|
|
1401
1526
|
title,
|
|
1402
1527
|
description,
|
|
@@ -1408,30 +1533,30 @@ function StudioShell({
|
|
|
1408
1533
|
}
|
|
1409
1534
|
|
|
1410
1535
|
// src/providers/SessionProvider.tsx
|
|
1411
|
-
|
|
1536
|
+
var import_react2 = require("next-auth/react");
|
|
1412
1537
|
function SessionProvider({
|
|
1413
1538
|
children,
|
|
1414
1539
|
session
|
|
1415
1540
|
}) {
|
|
1416
|
-
return /* @__PURE__ */ React.createElement(
|
|
1541
|
+
return /* @__PURE__ */ React.createElement(import_react2.SessionProvider, { session }, children);
|
|
1417
1542
|
}
|
|
1418
1543
|
|
|
1419
1544
|
// src/providers/QueryProvider.tsx
|
|
1420
|
-
|
|
1421
|
-
|
|
1545
|
+
var React23 = __toESM(require("react"));
|
|
1546
|
+
var import_react_query = require("@tanstack/react-query");
|
|
1422
1547
|
function QueryProvider({ children }) {
|
|
1423
1548
|
const [client] = React23.useState(
|
|
1424
|
-
() => new QueryClient({
|
|
1549
|
+
() => new import_react_query.QueryClient({
|
|
1425
1550
|
defaultOptions: {
|
|
1426
1551
|
queries: { staleTime: 3e4, refetchOnWindowFocus: false }
|
|
1427
1552
|
}
|
|
1428
1553
|
})
|
|
1429
1554
|
);
|
|
1430
|
-
return /* @__PURE__ */ React23.createElement(QueryClientProvider, { client }, children);
|
|
1555
|
+
return /* @__PURE__ */ React23.createElement(import_react_query.QueryClientProvider, { client }, children);
|
|
1431
1556
|
}
|
|
1432
1557
|
|
|
1433
1558
|
// src/providers/MockProvider.tsx
|
|
1434
|
-
|
|
1559
|
+
var React24 = __toESM(require("react"));
|
|
1435
1560
|
function MockProvider({
|
|
1436
1561
|
children,
|
|
1437
1562
|
loadWorker,
|
|
@@ -1467,7 +1592,8 @@ function MockProvider({
|
|
|
1467
1592
|
}
|
|
1468
1593
|
return /* @__PURE__ */ React24.createElement(React24.Fragment, null, error ? /* @__PURE__ */ React24.createElement("div", { className: "border-b border-destructive/40 bg-destructive/10 px-4 py-2 text-xs text-destructive" }, "MSW failed to start (", error, "). Mock API calls will return real 404s.") : null, children);
|
|
1469
1594
|
}
|
|
1470
|
-
export
|
|
1595
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1596
|
+
0 && (module.exports = {
|
|
1471
1597
|
AppShell,
|
|
1472
1598
|
Avatar,
|
|
1473
1599
|
AvatarBadge,
|
|
@@ -1558,5 +1684,5 @@ export {
|
|
|
1558
1684
|
cn,
|
|
1559
1685
|
tabsListVariants,
|
|
1560
1686
|
useThemeName
|
|
1561
|
-
};
|
|
1562
|
-
//# sourceMappingURL=index.
|
|
1687
|
+
});
|
|
1688
|
+
//# sourceMappingURL=index.cjs.map
|