@vibecms/core 0.1.0

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.
Files changed (43) hide show
  1. package/dist/engine/index.d.mts +4 -0
  2. package/dist/engine/index.d.ts +4 -0
  3. package/dist/engine/index.js +1226 -0
  4. package/dist/engine/index.js.map +1 -0
  5. package/dist/engine/index.mjs +1184 -0
  6. package/dist/engine/index.mjs.map +1 -0
  7. package/dist/hooks/index.d.mts +27 -0
  8. package/dist/hooks/index.d.ts +27 -0
  9. package/dist/hooks/index.js +75 -0
  10. package/dist/hooks/index.js.map +1 -0
  11. package/dist/hooks/index.mjs +47 -0
  12. package/dist/hooks/index.mjs.map +1 -0
  13. package/dist/index-C3P1J_of.d.ts +339 -0
  14. package/dist/index-CO4uwTdH.d.mts +339 -0
  15. package/dist/index.css +2326 -0
  16. package/dist/index.css.map +1 -0
  17. package/dist/index.d.mts +412 -0
  18. package/dist/index.d.ts +412 -0
  19. package/dist/index.js +3715 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/index.mjs +3587 -0
  22. package/dist/index.mjs.map +1 -0
  23. package/dist/storage/index.d.mts +32 -0
  24. package/dist/storage/index.d.ts +32 -0
  25. package/dist/storage/index.js +103 -0
  26. package/dist/storage/index.js.map +1 -0
  27. package/dist/storage/index.mjs +75 -0
  28. package/dist/storage/index.mjs.map +1 -0
  29. package/dist/types-BkDsDmQJ.d.mts +83 -0
  30. package/dist/types-BkDsDmQJ.d.ts +83 -0
  31. package/dist/ui/index.d.mts +127 -0
  32. package/dist/ui/index.d.ts +127 -0
  33. package/dist/ui/index.js +1119 -0
  34. package/dist/ui/index.js.map +1 -0
  35. package/dist/ui/index.mjs +1030 -0
  36. package/dist/ui/index.mjs.map +1 -0
  37. package/dist/vite-plugin.d.mts +8 -0
  38. package/dist/vite-plugin.d.ts +8 -0
  39. package/dist/vite-plugin.js +193 -0
  40. package/dist/vite-plugin.js.map +1 -0
  41. package/dist/vite-plugin.mjs +165 -0
  42. package/dist/vite-plugin.mjs.map +1 -0
  43. package/package.json +89 -0
@@ -0,0 +1,1119 @@
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/ui/index.ts
31
+ var ui_exports = {};
32
+ __export(ui_exports, {
33
+ AuthorCard: () => AuthorCard,
34
+ Button: () => Button,
35
+ Command: () => Command,
36
+ CommandDialog: () => CommandDialog,
37
+ CommandEmpty: () => CommandEmpty,
38
+ CommandGroup: () => CommandGroup,
39
+ CommandInput: () => CommandInput,
40
+ CommandItem: () => CommandItem,
41
+ CommandList: () => CommandList,
42
+ CommandSeparator: () => CommandSeparator,
43
+ CommandShortcut: () => CommandShortcut,
44
+ Dialog: () => Dialog,
45
+ DialogClose: () => DialogClose,
46
+ DialogContent: () => DialogContent,
47
+ DialogDescription: () => DialogDescription,
48
+ DialogFooter: () => DialogFooter,
49
+ DialogHeader: () => DialogHeader,
50
+ DialogOverlay: () => DialogOverlay,
51
+ DialogPortal: () => DialogPortal,
52
+ DialogTitle: () => DialogTitle,
53
+ DialogTrigger: () => DialogTrigger,
54
+ Input: () => Input,
55
+ InputGroup: () => InputGroup,
56
+ InputGroupAddon: () => InputGroupAddon,
57
+ InputGroupButton: () => InputGroupButton,
58
+ InputGroupInput: () => InputGroupInput,
59
+ InputGroupText: () => InputGroupText,
60
+ InputGroupTextarea: () => InputGroupTextarea,
61
+ Label: () => Label,
62
+ Popover: () => Popover,
63
+ PopoverContent: () => PopoverContent,
64
+ PopoverDescription: () => PopoverDescription,
65
+ PopoverHeader: () => PopoverHeader,
66
+ PopoverTitle: () => PopoverTitle,
67
+ PopoverTrigger: () => PopoverTrigger,
68
+ ScrollArea: () => ScrollArea,
69
+ ScrollBar: () => ScrollBar,
70
+ SeoHead: () => SeoHead,
71
+ Sheet: () => Sheet,
72
+ SheetClose: () => SheetClose,
73
+ SheetContent: () => SheetContent,
74
+ SheetDescription: () => SheetDescription,
75
+ SheetFooter: () => SheetFooter,
76
+ SheetHeader: () => SheetHeader,
77
+ SheetTitle: () => SheetTitle,
78
+ SheetTrigger: () => SheetTrigger,
79
+ Switch: () => Switch,
80
+ Textarea: () => Textarea,
81
+ Tooltip: () => Tooltip,
82
+ TooltipContent: () => TooltipContent,
83
+ TooltipProvider: () => TooltipProvider,
84
+ TooltipTrigger: () => TooltipTrigger,
85
+ buttonVariants: () => buttonVariants
86
+ });
87
+ module.exports = __toCommonJS(ui_exports);
88
+
89
+ // src/ui/button.tsx
90
+ var React = __toESM(require("react"));
91
+ var import_button = require("@base-ui/react/button");
92
+ var import_class_variance_authority = require("class-variance-authority");
93
+
94
+ // src/lib/utils.ts
95
+ var import_clsx = require("clsx");
96
+ var import_tailwind_merge = require("tailwind-merge");
97
+ function cn(...inputs) {
98
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
99
+ }
100
+
101
+ // src/ui/button.tsx
102
+ var import_jsx_runtime = require("react/jsx-runtime");
103
+ var buttonVariants = (0, import_class_variance_authority.cva)(
104
+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
105
+ {
106
+ variants: {
107
+ variant: {
108
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
109
+ outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
110
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
111
+ ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
112
+ destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
113
+ link: "text-primary underline-offset-4 hover:underline"
114
+ },
115
+ size: {
116
+ default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
117
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
118
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
119
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
120
+ icon: "size-8",
121
+ "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
122
+ "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
123
+ "icon-lg": "size-9"
124
+ }
125
+ },
126
+ defaultVariants: {
127
+ variant: "default",
128
+ size: "default"
129
+ }
130
+ }
131
+ );
132
+ var Button = React.forwardRef(({ className, variant, size, ...props }, ref) => {
133
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
134
+ import_button.Button,
135
+ {
136
+ ref,
137
+ "data-slot": "button",
138
+ className: cn(buttonVariants({ variant, size, className })),
139
+ ...props
140
+ }
141
+ );
142
+ });
143
+ Button.displayName = "Button";
144
+
145
+ // src/ui/command.tsx
146
+ var import_cmdk = require("cmdk");
147
+
148
+ // src/ui/dialog.tsx
149
+ var React2 = __toESM(require("react"));
150
+ var import_dialog = require("@base-ui/react/dialog");
151
+ var import_lucide_react = require("lucide-react");
152
+ var import_jsx_runtime2 = require("react/jsx-runtime");
153
+ function Dialog({ ...props }) {
154
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Root, { "data-slot": "dialog", ...props });
155
+ }
156
+ var DialogTrigger = React2.forwardRef(({ ...props }, ref) => {
157
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
158
+ import_dialog.Dialog.Trigger,
159
+ {
160
+ ref,
161
+ "data-slot": "dialog-trigger",
162
+ ...props
163
+ }
164
+ );
165
+ });
166
+ DialogTrigger.displayName = "DialogTrigger";
167
+ function DialogPortal({ ...props }) {
168
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
169
+ }
170
+ var DialogClose = React2.forwardRef(({ ...props }, ref) => {
171
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
172
+ import_dialog.Dialog.Close,
173
+ {
174
+ ref,
175
+ "data-slot": "dialog-close",
176
+ ...props
177
+ }
178
+ );
179
+ });
180
+ DialogClose.displayName = "DialogClose";
181
+ var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => {
182
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
183
+ import_dialog.Dialog.Backdrop,
184
+ {
185
+ ref,
186
+ "data-slot": "dialog-overlay",
187
+ className: cn(
188
+ "fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
189
+ className
190
+ ),
191
+ ...props
192
+ }
193
+ );
194
+ });
195
+ DialogOverlay.displayName = "DialogOverlay";
196
+ function DialogContent({
197
+ className,
198
+ children,
199
+ showCloseButton = true,
200
+ ...props
201
+ }) {
202
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(DialogPortal, { children: [
203
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(DialogOverlay, {}),
204
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
205
+ import_dialog.Dialog.Popup,
206
+ {
207
+ "data-slot": "dialog-content",
208
+ className: cn(
209
+ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white p-4 text-sm text-neutral-900 ring-1 ring-neutral-200 shadow-xl duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
210
+ className
211
+ ),
212
+ ...props,
213
+ children: [
214
+ children,
215
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
216
+ import_dialog.Dialog.Close,
217
+ {
218
+ "data-slot": "dialog-close",
219
+ render: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
220
+ Button,
221
+ {
222
+ variant: "ghost",
223
+ className: "absolute top-2 right-2",
224
+ size: "icon-sm"
225
+ }
226
+ ),
227
+ children: [
228
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
229
+ import_lucide_react.XIcon,
230
+ {}
231
+ ),
232
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "sr-only", children: "Close" })
233
+ ]
234
+ }
235
+ )
236
+ ]
237
+ }
238
+ )
239
+ ] });
240
+ }
241
+ function DialogHeader({ className, ...props }) {
242
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
243
+ "div",
244
+ {
245
+ "data-slot": "dialog-header",
246
+ className: cn("flex flex-col gap-2", className),
247
+ ...props
248
+ }
249
+ );
250
+ }
251
+ function DialogFooter({
252
+ className,
253
+ showCloseButton = false,
254
+ children,
255
+ ...props
256
+ }) {
257
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
258
+ "div",
259
+ {
260
+ "data-slot": "dialog-footer",
261
+ className: cn(
262
+ "-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",
263
+ className
264
+ ),
265
+ ...props,
266
+ children: [
267
+ children,
268
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Close, { render: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Button, { variant: "outline" }), children: "Close" })
269
+ ]
270
+ }
271
+ );
272
+ }
273
+ function DialogTitle({ className, ...props }) {
274
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
275
+ import_dialog.Dialog.Title,
276
+ {
277
+ "data-slot": "dialog-title",
278
+ className: cn(
279
+ "font-heading text-base leading-none font-medium",
280
+ className
281
+ ),
282
+ ...props
283
+ }
284
+ );
285
+ }
286
+ function DialogDescription({
287
+ className,
288
+ ...props
289
+ }) {
290
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
291
+ import_dialog.Dialog.Description,
292
+ {
293
+ "data-slot": "dialog-description",
294
+ className: cn(
295
+ "text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
296
+ className
297
+ ),
298
+ ...props
299
+ }
300
+ );
301
+ }
302
+
303
+ // src/ui/input-group.tsx
304
+ var React5 = __toESM(require("react"));
305
+ var import_class_variance_authority2 = require("class-variance-authority");
306
+
307
+ // src/ui/input.tsx
308
+ var React3 = __toESM(require("react"));
309
+ var import_input = require("@base-ui/react/input");
310
+ var import_jsx_runtime3 = require("react/jsx-runtime");
311
+ var Input = React3.forwardRef(
312
+ ({ className, type, ...props }, ref) => {
313
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
314
+ import_input.Input,
315
+ {
316
+ ref,
317
+ type,
318
+ "data-slot": "input",
319
+ className: cn(
320
+ "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
321
+ className
322
+ ),
323
+ ...props
324
+ }
325
+ );
326
+ }
327
+ );
328
+ Input.displayName = "Input";
329
+
330
+ // src/ui/textarea.tsx
331
+ var React4 = __toESM(require("react"));
332
+ var import_jsx_runtime4 = require("react/jsx-runtime");
333
+ var Textarea = React4.forwardRef(({ className, ...props }, ref) => {
334
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
335
+ "textarea",
336
+ {
337
+ ref,
338
+ "data-slot": "textarea",
339
+ className: cn(
340
+ "flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
341
+ className
342
+ ),
343
+ ...props
344
+ }
345
+ );
346
+ });
347
+ Textarea.displayName = "Textarea";
348
+
349
+ // src/ui/input-group.tsx
350
+ var import_jsx_runtime5 = require("react/jsx-runtime");
351
+ var InputGroup = React5.forwardRef(
352
+ ({ className, ...props }, ref) => {
353
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
354
+ "div",
355
+ {
356
+ ref,
357
+ "data-slot": "input-group",
358
+ role: "group",
359
+ className: cn(
360
+ "group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
361
+ className
362
+ ),
363
+ ...props
364
+ }
365
+ );
366
+ }
367
+ );
368
+ InputGroup.displayName = "InputGroup";
369
+ var inputGroupAddonVariants = (0, import_class_variance_authority2.cva)(
370
+ "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
371
+ {
372
+ variants: {
373
+ align: {
374
+ "inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
375
+ "inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
376
+ "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
377
+ "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
378
+ }
379
+ },
380
+ defaultVariants: {
381
+ align: "inline-start"
382
+ }
383
+ }
384
+ );
385
+ var InputGroupAddon = React5.forwardRef(({ className, align = "inline-start", ...props }, ref) => {
386
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
387
+ "div",
388
+ {
389
+ ref,
390
+ role: "group",
391
+ "data-slot": "input-group-addon",
392
+ "data-align": align,
393
+ className: cn(inputGroupAddonVariants({ align }), className),
394
+ onClick: (e) => {
395
+ if (e.target.closest("button")) {
396
+ return;
397
+ }
398
+ e.currentTarget.parentElement?.querySelector("input")?.focus();
399
+ },
400
+ ...props
401
+ }
402
+ );
403
+ });
404
+ InputGroupAddon.displayName = "InputGroupAddon";
405
+ var inputGroupButtonVariants = (0, import_class_variance_authority2.cva)(
406
+ "flex items-center gap-2 text-sm shadow-none",
407
+ {
408
+ variants: {
409
+ size: {
410
+ xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
411
+ sm: "",
412
+ "icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
413
+ "icon-sm": "size-8 p-0 has-[>svg]:p-0"
414
+ }
415
+ },
416
+ defaultVariants: {
417
+ size: "xs"
418
+ }
419
+ }
420
+ );
421
+ function InputGroupButton({
422
+ className,
423
+ type = "button",
424
+ variant = "ghost",
425
+ size = "xs",
426
+ ...props
427
+ }) {
428
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
429
+ Button,
430
+ {
431
+ type,
432
+ "data-size": size,
433
+ variant,
434
+ className: cn(inputGroupButtonVariants({ size }), className),
435
+ ...props
436
+ }
437
+ );
438
+ }
439
+ function InputGroupText({ className, ...props }) {
440
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
441
+ "span",
442
+ {
443
+ className: cn(
444
+ "flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
445
+ className
446
+ ),
447
+ ...props
448
+ }
449
+ );
450
+ }
451
+ function InputGroupInput({
452
+ className,
453
+ ...props
454
+ }) {
455
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
456
+ Input,
457
+ {
458
+ "data-slot": "input-group-control",
459
+ className: cn(
460
+ "flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",
461
+ className
462
+ ),
463
+ ...props
464
+ }
465
+ );
466
+ }
467
+ function InputGroupTextarea({
468
+ className,
469
+ ...props
470
+ }) {
471
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
472
+ Textarea,
473
+ {
474
+ "data-slot": "input-group-control",
475
+ className: cn(
476
+ "flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",
477
+ className
478
+ ),
479
+ ...props
480
+ }
481
+ );
482
+ }
483
+
484
+ // src/ui/command.tsx
485
+ var import_lucide_react2 = require("lucide-react");
486
+ var import_jsx_runtime6 = require("react/jsx-runtime");
487
+ function Command({
488
+ className,
489
+ ...props
490
+ }) {
491
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
492
+ import_cmdk.Command,
493
+ {
494
+ "data-slot": "command",
495
+ className: cn(
496
+ "flex size-full flex-col overflow-hidden rounded-xl! bg-white p-1 text-neutral-900",
497
+ className
498
+ ),
499
+ ...props
500
+ }
501
+ );
502
+ }
503
+ function CommandDialog({
504
+ title = "Command Palette",
505
+ description = "Search for a command to run...",
506
+ children,
507
+ className,
508
+ showCloseButton = false,
509
+ ...props
510
+ }) {
511
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Dialog, { ...props, children: [
512
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DialogHeader, { className: "sr-only", children: [
513
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogTitle, { children: title }),
514
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogDescription, { children: description })
515
+ ] }),
516
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
517
+ DialogContent,
518
+ {
519
+ className: cn(
520
+ "top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0 shadow-2xl border border-neutral-200 bg-white",
521
+ className
522
+ ),
523
+ showCloseButton,
524
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 border-none", children })
525
+ }
526
+ )
527
+ ] });
528
+ }
529
+ function CommandInput({
530
+ className,
531
+ ...props
532
+ }) {
533
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
534
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
535
+ import_cmdk.Command.Input,
536
+ {
537
+ "data-slot": "command-input",
538
+ className: cn(
539
+ "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
540
+ className
541
+ ),
542
+ ...props
543
+ }
544
+ ),
545
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(InputGroupAddon, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
546
+ ] }) });
547
+ }
548
+ function CommandList({
549
+ className,
550
+ ...props
551
+ }) {
552
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
553
+ import_cmdk.Command.List,
554
+ {
555
+ "data-slot": "command-list",
556
+ className: cn(
557
+ "no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
558
+ className
559
+ ),
560
+ ...props
561
+ }
562
+ );
563
+ }
564
+ function CommandEmpty({
565
+ className,
566
+ ...props
567
+ }) {
568
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
569
+ import_cmdk.Command.Empty,
570
+ {
571
+ "data-slot": "command-empty",
572
+ className: cn("py-6 text-center text-sm", className),
573
+ ...props
574
+ }
575
+ );
576
+ }
577
+ function CommandGroup({
578
+ className,
579
+ ...props
580
+ }) {
581
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
582
+ import_cmdk.Command.Group,
583
+ {
584
+ "data-slot": "command-group",
585
+ className: cn(
586
+ "overflow-hidden p-1 text-neutral-900 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-neutral-500",
587
+ className
588
+ ),
589
+ ...props
590
+ }
591
+ );
592
+ }
593
+ function CommandSeparator({
594
+ className,
595
+ ...props
596
+ }) {
597
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
598
+ import_cmdk.Command.Separator,
599
+ {
600
+ "data-slot": "command-separator",
601
+ className: cn("-mx-1 h-px bg-border", className),
602
+ ...props
603
+ }
604
+ );
605
+ }
606
+ function CommandItem({
607
+ className,
608
+ children,
609
+ ...props
610
+ }) {
611
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
612
+ import_cmdk.Command.Item,
613
+ {
614
+ "data-slot": "command-item",
615
+ className: cn(
616
+ "group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-neutral-100 data-selected:text-neutral-900 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-neutral-900",
617
+ className
618
+ ),
619
+ ...props,
620
+ children: [
621
+ children,
622
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.CheckIcon, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
623
+ ]
624
+ }
625
+ );
626
+ }
627
+ function CommandShortcut({
628
+ className,
629
+ ...props
630
+ }) {
631
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
632
+ "span",
633
+ {
634
+ "data-slot": "command-shortcut",
635
+ className: cn(
636
+ "ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",
637
+ className
638
+ ),
639
+ ...props
640
+ }
641
+ );
642
+ }
643
+
644
+ // src/ui/label.tsx
645
+ var React6 = __toESM(require("react"));
646
+ var import_jsx_runtime7 = require("react/jsx-runtime");
647
+ var Label = React6.forwardRef(
648
+ ({ className, ...props }, ref) => {
649
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
650
+ "label",
651
+ {
652
+ ref,
653
+ "data-slot": "label",
654
+ className: cn(
655
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
656
+ className
657
+ ),
658
+ ...props
659
+ }
660
+ );
661
+ }
662
+ );
663
+ Label.displayName = "Label";
664
+
665
+ // src/ui/popover.tsx
666
+ var React7 = __toESM(require("react"));
667
+ var import_popover = require("@base-ui/react/popover");
668
+ var import_jsx_runtime8 = require("react/jsx-runtime");
669
+ function Popover({ ...props }) {
670
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
671
+ }
672
+ var PopoverTrigger = React7.forwardRef(({ ...props }, ref) => {
673
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
674
+ import_popover.Popover.Trigger,
675
+ {
676
+ ref,
677
+ "data-slot": "popover-trigger",
678
+ ...props
679
+ }
680
+ );
681
+ });
682
+ PopoverTrigger.displayName = "PopoverTrigger";
683
+ var PopoverContent = React7.forwardRef(
684
+ ({
685
+ className,
686
+ align = "center",
687
+ alignOffset = 0,
688
+ side = "bottom",
689
+ sideOffset = 4,
690
+ ...props
691
+ }, ref) => {
692
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
693
+ import_popover.Popover.Positioner,
694
+ {
695
+ align,
696
+ alignOffset,
697
+ side,
698
+ sideOffset,
699
+ className: "isolate z-50",
700
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
701
+ import_popover.Popover.Popup,
702
+ {
703
+ ref,
704
+ "data-slot": "popover-content",
705
+ className: cn(
706
+ "z-[9999] flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-white border border-neutral-200 p-2.5 text-sm text-neutral-900 shadow-xl ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
707
+ className
708
+ ),
709
+ ...props
710
+ }
711
+ )
712
+ }
713
+ ) });
714
+ }
715
+ );
716
+ PopoverContent.displayName = "PopoverContent";
717
+ var PopoverHeader = React7.forwardRef(({ className, ...props }, ref) => {
718
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
719
+ "div",
720
+ {
721
+ ref,
722
+ "data-slot": "popover-header",
723
+ className: cn("flex flex-col gap-0.5 text-sm", className),
724
+ ...props
725
+ }
726
+ );
727
+ });
728
+ PopoverHeader.displayName = "PopoverHeader";
729
+ var PopoverTitle = React7.forwardRef(({ className, ...props }, ref) => {
730
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
731
+ import_popover.Popover.Title,
732
+ {
733
+ ref,
734
+ "data-slot": "popover-title",
735
+ className: cn("font-heading font-medium", className),
736
+ ...props
737
+ }
738
+ );
739
+ });
740
+ PopoverTitle.displayName = "PopoverTitle";
741
+ var PopoverDescription = React7.forwardRef(({ className, ...props }, ref) => {
742
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
743
+ import_popover.Popover.Description,
744
+ {
745
+ ref,
746
+ "data-slot": "popover-description",
747
+ className: cn("text-muted-foreground", className),
748
+ ...props
749
+ }
750
+ );
751
+ });
752
+ PopoverDescription.displayName = "PopoverDescription";
753
+
754
+ // src/ui/scroll-area.tsx
755
+ var React8 = __toESM(require("react"));
756
+ var import_scroll_area = require("@base-ui/react/scroll-area");
757
+ var import_jsx_runtime9 = require("react/jsx-runtime");
758
+ var ScrollArea = React8.forwardRef(({ className, children, ...props }, ref) => {
759
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
760
+ import_scroll_area.ScrollArea.Root,
761
+ {
762
+ ref,
763
+ "data-slot": "scroll-area",
764
+ className: cn("relative", className),
765
+ ...props,
766
+ children: [
767
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
768
+ import_scroll_area.ScrollArea.Viewport,
769
+ {
770
+ "data-slot": "scroll-area-viewport",
771
+ className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
772
+ children
773
+ }
774
+ ),
775
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ScrollBar, {}),
776
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_scroll_area.ScrollArea.Corner, {})
777
+ ]
778
+ }
779
+ );
780
+ });
781
+ ScrollArea.displayName = "ScrollArea";
782
+ var ScrollBar = React8.forwardRef(({ className, orientation = "vertical", ...props }, ref) => {
783
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
784
+ import_scroll_area.ScrollArea.Scrollbar,
785
+ {
786
+ ref,
787
+ "data-slot": "scroll-area-scrollbar",
788
+ "data-orientation": orientation,
789
+ orientation,
790
+ className: cn(
791
+ "flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",
792
+ className
793
+ ),
794
+ ...props,
795
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
796
+ import_scroll_area.ScrollArea.Thumb,
797
+ {
798
+ "data-slot": "scroll-area-thumb",
799
+ className: "relative flex-1 rounded-full bg-border"
800
+ }
801
+ )
802
+ }
803
+ );
804
+ });
805
+ ScrollBar.displayName = "ScrollBar";
806
+
807
+ // src/ui/sheet.tsx
808
+ var React9 = __toESM(require("react"));
809
+ var import_dialog3 = require("@base-ui/react/dialog");
810
+ var import_lucide_react3 = require("lucide-react");
811
+ var import_jsx_runtime10 = require("react/jsx-runtime");
812
+ function Sheet({ ...props }) {
813
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_dialog3.Dialog.Root, { "data-slot": "sheet", ...props });
814
+ }
815
+ var SheetTrigger = React9.forwardRef(({ ...props }, ref) => {
816
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
817
+ import_dialog3.Dialog.Trigger,
818
+ {
819
+ ref,
820
+ "data-slot": "sheet-trigger",
821
+ ...props
822
+ }
823
+ );
824
+ });
825
+ SheetTrigger.displayName = "SheetTrigger";
826
+ var SheetClose = React9.forwardRef(({ ...props }, ref) => {
827
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
828
+ import_dialog3.Dialog.Close,
829
+ {
830
+ ref,
831
+ "data-slot": "sheet-close",
832
+ ...props
833
+ }
834
+ );
835
+ });
836
+ SheetClose.displayName = "SheetClose";
837
+ function SheetPortal({ ...props }) {
838
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_dialog3.Dialog.Portal, { "data-slot": "sheet-portal", ...props });
839
+ }
840
+ var SheetOverlay = React9.forwardRef(({ className, ...props }, ref) => {
841
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
842
+ import_dialog3.Dialog.Backdrop,
843
+ {
844
+ ref,
845
+ "data-slot": "sheet-overlay",
846
+ className: cn(
847
+ "fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",
848
+ className
849
+ ),
850
+ ...props
851
+ }
852
+ );
853
+ });
854
+ SheetOverlay.displayName = "SheetOverlay";
855
+ function SheetContent({
856
+ className,
857
+ children,
858
+ side = "right",
859
+ showCloseButton = true,
860
+ ...props
861
+ }) {
862
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(SheetPortal, { children: [
863
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SheetOverlay, {}),
864
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
865
+ import_dialog3.Dialog.Popup,
866
+ {
867
+ "data-slot": "sheet-content",
868
+ "data-side": side,
869
+ className: cn(
870
+ "fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
871
+ className
872
+ ),
873
+ ...props,
874
+ children: [
875
+ children,
876
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
877
+ import_dialog3.Dialog.Close,
878
+ {
879
+ "data-slot": "sheet-close",
880
+ render: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
881
+ Button,
882
+ {
883
+ variant: "ghost",
884
+ className: "absolute top-3 right-3",
885
+ size: "icon-sm"
886
+ }
887
+ ),
888
+ children: [
889
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
890
+ import_lucide_react3.XIcon,
891
+ {}
892
+ ),
893
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "Close" })
894
+ ]
895
+ }
896
+ )
897
+ ]
898
+ }
899
+ )
900
+ ] });
901
+ }
902
+ function SheetHeader({ className, ...props }) {
903
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
904
+ "div",
905
+ {
906
+ "data-slot": "sheet-header",
907
+ className: cn("flex flex-col gap-0.5 p-4", className),
908
+ ...props
909
+ }
910
+ );
911
+ }
912
+ function SheetFooter({ className, ...props }) {
913
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
914
+ "div",
915
+ {
916
+ "data-slot": "sheet-footer",
917
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
918
+ ...props
919
+ }
920
+ );
921
+ }
922
+ function SheetTitle({ className, ...props }) {
923
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
924
+ import_dialog3.Dialog.Title,
925
+ {
926
+ "data-slot": "sheet-title",
927
+ className: cn(
928
+ "font-heading text-base font-medium text-foreground",
929
+ className
930
+ ),
931
+ ...props
932
+ }
933
+ );
934
+ }
935
+ function SheetDescription({
936
+ className,
937
+ ...props
938
+ }) {
939
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
940
+ import_dialog3.Dialog.Description,
941
+ {
942
+ "data-slot": "sheet-description",
943
+ className: cn("text-sm text-muted-foreground", className),
944
+ ...props
945
+ }
946
+ );
947
+ }
948
+
949
+ // src/ui/switch.tsx
950
+ var React10 = __toESM(require("react"));
951
+ var import_switch = require("@base-ui/react/switch");
952
+ var import_jsx_runtime11 = require("react/jsx-runtime");
953
+ var Switch = React10.forwardRef(({ className, size = "default", ...props }, ref) => {
954
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
955
+ import_switch.Switch.Root,
956
+ {
957
+ ref,
958
+ "data-slot": "switch",
959
+ "data-size": size,
960
+ className: cn(
961
+ "peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
962
+ className
963
+ ),
964
+ ...props,
965
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
966
+ import_switch.Switch.Thumb,
967
+ {
968
+ "data-slot": "switch-thumb",
969
+ className: "pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"
970
+ }
971
+ )
972
+ }
973
+ );
974
+ });
975
+ Switch.displayName = "Switch";
976
+
977
+ // src/ui/tooltip.tsx
978
+ var React11 = __toESM(require("react"));
979
+ var import_tooltip = require("@base-ui/react/tooltip");
980
+ var import_jsx_runtime12 = require("react/jsx-runtime");
981
+ function TooltipProvider({ ...props }) {
982
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_tooltip.Tooltip.Provider, { ...props });
983
+ }
984
+ function Tooltip({ ...props }) {
985
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props });
986
+ }
987
+ var TooltipTrigger = React11.forwardRef(({ ...props }, ref) => {
988
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
989
+ import_tooltip.Tooltip.Trigger,
990
+ {
991
+ ref,
992
+ "data-slot": "tooltip-trigger",
993
+ render: (triggerProps) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { ...triggerProps, className: "contents" }),
994
+ ...props
995
+ }
996
+ );
997
+ });
998
+ TooltipTrigger.displayName = "TooltipTrigger";
999
+ function TooltipContent({
1000
+ className,
1001
+ sideOffset = 4,
1002
+ side = "top",
1003
+ align = "center",
1004
+ alignOffset = 0,
1005
+ ...props
1006
+ }) {
1007
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1008
+ import_tooltip.Tooltip.Positioner,
1009
+ {
1010
+ sideOffset,
1011
+ side,
1012
+ align,
1013
+ alignOffset,
1014
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1015
+ import_tooltip.Tooltip.Popup,
1016
+ {
1017
+ "data-slot": "tooltip-content",
1018
+ className: cn(
1019
+ "z-[9999] overflow-hidden rounded-md bg-zinc-900 border border-white/10 px-3 py-1.5 text-xs text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 shadow-xl",
1020
+ className
1021
+ ),
1022
+ ...props
1023
+ }
1024
+ )
1025
+ }
1026
+ ) });
1027
+ }
1028
+
1029
+ // src/ui/SeoHead.tsx
1030
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1031
+ function SeoHead({ data, fallbackSiteName }) {
1032
+ if (!data) return null;
1033
+ const title = data.seoTitle || fallbackSiteName || "VibeCMS Site";
1034
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
1035
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("title", { children: title }),
1036
+ data.seoDescription && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("meta", { name: "description", content: data.seoDescription }),
1037
+ data.keywords && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("meta", { name: "keywords", content: data.keywords }),
1038
+ data.ogImage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("meta", { property: "og:image", content: data.ogImage }),
1039
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("meta", { property: "og:title", content: title }),
1040
+ data.seoDescription && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("meta", { property: "og:description", content: data.seoDescription })
1041
+ ] });
1042
+ }
1043
+
1044
+ // src/ui/AuthorCard.tsx
1045
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1046
+ function AuthorCard({ author }) {
1047
+ if (!author) return null;
1048
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center gap-4 p-4 border rounded-lg bg-neutral-50 border-neutral-200", children: [
1049
+ author.headshot && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1050
+ "img",
1051
+ {
1052
+ src: author.headshot,
1053
+ alt: author.name,
1054
+ className: "w-16 h-16 rounded-full object-cover"
1055
+ }
1056
+ ),
1057
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
1058
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h4", { className: "font-semibold text-lg text-neutral-900", children: author.name }),
1059
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-sm text-neutral-500 font-medium", children: author.role })
1060
+ ] })
1061
+ ] });
1062
+ }
1063
+ // Annotate the CommonJS export names for ESM import in node:
1064
+ 0 && (module.exports = {
1065
+ AuthorCard,
1066
+ Button,
1067
+ Command,
1068
+ CommandDialog,
1069
+ CommandEmpty,
1070
+ CommandGroup,
1071
+ CommandInput,
1072
+ CommandItem,
1073
+ CommandList,
1074
+ CommandSeparator,
1075
+ CommandShortcut,
1076
+ Dialog,
1077
+ DialogClose,
1078
+ DialogContent,
1079
+ DialogDescription,
1080
+ DialogFooter,
1081
+ DialogHeader,
1082
+ DialogOverlay,
1083
+ DialogPortal,
1084
+ DialogTitle,
1085
+ DialogTrigger,
1086
+ Input,
1087
+ InputGroup,
1088
+ InputGroupAddon,
1089
+ InputGroupButton,
1090
+ InputGroupInput,
1091
+ InputGroupText,
1092
+ InputGroupTextarea,
1093
+ Label,
1094
+ Popover,
1095
+ PopoverContent,
1096
+ PopoverDescription,
1097
+ PopoverHeader,
1098
+ PopoverTitle,
1099
+ PopoverTrigger,
1100
+ ScrollArea,
1101
+ ScrollBar,
1102
+ SeoHead,
1103
+ Sheet,
1104
+ SheetClose,
1105
+ SheetContent,
1106
+ SheetDescription,
1107
+ SheetFooter,
1108
+ SheetHeader,
1109
+ SheetTitle,
1110
+ SheetTrigger,
1111
+ Switch,
1112
+ Textarea,
1113
+ Tooltip,
1114
+ TooltipContent,
1115
+ TooltipProvider,
1116
+ TooltipTrigger,
1117
+ buttonVariants
1118
+ });
1119
+ //# sourceMappingURL=index.js.map