@dailyautomations/ui 1.2.0 → 1.4.1
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/components/common/button.js +6 -6
- package/dist/components/common/button.js.map +1 -1
- package/dist/components/dev/theme-tester.d.ts +2 -0
- package/dist/components/dev/theme-tester.d.ts.map +1 -0
- package/dist/components/dev/theme-tester.js +105 -0
- package/dist/components/dev/theme-tester.js.map +1 -0
- package/dist/components/layout/app-shell.d.ts +14 -0
- package/dist/components/layout/app-shell.d.ts.map +1 -0
- package/dist/components/layout/app-shell.js +25 -0
- package/dist/components/layout/app-shell.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +40 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +15 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +37 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +7 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +15 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +20 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +21 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +81 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +30 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/confirm-dialog.d.ts +16 -0
- package/dist/components/ui/confirm-dialog.d.ts.map +1 -0
- package/dist/components/ui/confirm-dialog.js +31 -0
- package/dist/components/ui/confirm-dialog.js.map +1 -0
- package/dist/components/ui/date-picker.d.ts +13 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +19 -0
- package/dist/components/ui/date-picker.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +51 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty-state.d.ts +14 -0
- package/dist/components/ui/empty-state.d.ts.map +1 -0
- package/dist/components/ui/empty-state.js +20 -0
- package/dist/components/ui/empty-state.js.map +1 -0
- package/dist/components/ui/filter-bar.d.ts +29 -0
- package/dist/components/ui/filter-bar.d.ts.map +1 -0
- package/dist/components/ui/filter-bar.js +19 -0
- package/dist/components/ui/filter-bar.js.map +1 -0
- package/dist/components/ui/form.d.ts +25 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +62 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +15 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +50 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/loading-spinner.d.ts +19 -0
- package/dist/components/ui/loading-spinner.d.ts.map +1 -0
- package/dist/components/ui/loading-spinner.js +28 -0
- package/dist/components/ui/loading-spinner.js.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +18 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +9 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +12 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +14 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/separator.d.ts +7 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +9 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +21 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +50 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +9 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/stat-card.d.ts +23 -0
- package/dist/components/ui/stat-card.d.ts.map +1 -0
- package/dist/components/ui/stat-card.js +46 -0
- package/dist/components/ui/stat-card.js.map +1 -0
- package/dist/components/ui/switch.d.ts +7 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +9 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +28 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/textarea-autosize.d.ts +12 -0
- package/dist/components/ui/textarea-autosize.d.ts.map +1 -0
- package/dist/components/ui/textarea-autosize.js +44 -0
- package/dist/components/ui/textarea-autosize.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +18 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/config/themes.d.ts +18 -0
- package/dist/config/themes.d.ts.map +1 -0
- package/dist/config/themes.js +267 -0
- package/dist/config/themes.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/examples/home-page.tsx +81 -81
- package/examples/main.tsx +24 -9
- package/examples/pages/ComponentsPage.tsx +726 -0
- package/examples/pages/LandingPage.tsx +860 -0
- package/examples/pages/index.ts +2 -0
- package/examples/styles.css +61 -0
- package/package.json +34 -1
|
@@ -2,15 +2,15 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Slot } from "@radix-ui/react-slot";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { cn } from "../../utils/cn";
|
|
5
|
-
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-all disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-
|
|
5
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-all disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background", {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
|
-
default: "bg-
|
|
9
|
-
secondary: "bg-
|
|
10
|
-
outline: "border-2 border-
|
|
11
|
-
ghost: "text-
|
|
8
|
+
default: "bg-accent text-white hover:brightness-110 active:brightness-90",
|
|
9
|
+
secondary: "bg-primary text-white hover:brightness-110 active:brightness-90",
|
|
10
|
+
outline: "border-2 border-primary text-primary bg-transparent hover:bg-primary/10",
|
|
11
|
+
ghost: "text-primary hover:bg-primary/10 hover:brightness-110",
|
|
12
12
|
destructive: "bg-red-600 text-white hover:bg-red-500 active:bg-red-700",
|
|
13
|
-
link: "text-
|
|
13
|
+
link: "text-primary underline-offset-4 hover:underline hover:brightness-110",
|
|
14
14
|
},
|
|
15
15
|
size: {
|
|
16
16
|
default: "h-10 px-5 py-2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/common/button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAEnC,MAAM,cAAc,GAAG,GAAG,CACxB,
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/common/button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAEnC,MAAM,cAAc,GAAG,GAAG,CACxB,8XAA8X,EAC9X;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YAEP,OAAO,EAAE,gEAAgE;YAEzE,SAAS,EAAE,iEAAiE;YAE5E,OAAO,EAAE,yEAAyE;YAElF,KAAK,EAAE,uDAAuD;YAE9D,WAAW,EAAE,0DAA0D;YAEvE,IAAI,EAAE,sEAAsE;SAC7E;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,gBAAgB;YACzB,EAAE,EAAE,qCAAqC;YACzC,EAAE,EAAE,gCAAgC;YACpC,IAAI,EAAE,SAAS;SAChB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAA;AASD,SAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,KAAK,EACf,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACI;IACZ,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IAEtC,OAAO,CACL,KAAC,IAAI,iBACO,QAAQ,kBACJ,OAAO,eACV,IAAI,EACf,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAC3D,QAAQ,EAAE,QAAQ,IAAI,OAAO,KACzB,KAAK,YAER,OAAO,CAAC,CAAC,CAAC,CACT,8BACE,eACE,SAAS,EAAC,cAAc,EACxB,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,iBACP,MAAM,aAElB,iBACE,SAAS,EAAC,YAAY,EACtB,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,GACf,EACF,eACE,SAAS,EAAC,YAAY,EACtB,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,iHAAiH,GACnH,IACE,EACL,QAAQ,IACR,CACJ,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACI,CACR,CAAA;AACH,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-tester.d.ts","sourceRoot":"","sources":["../../../src/components/dev/theme-tester.tsx"],"names":[],"mappings":"AAyCA,wBAAgB,WAAW,4CAwG1B"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import { themes, applyTheme, getStoredThemeId, getThemeById } from "../../config/themes.js";
|
|
5
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, } from "../ui/dialog.js";
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
export function ThemeTester() {
|
|
8
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
9
|
+
const [currentTheme, setCurrentTheme] = useState(null);
|
|
10
|
+
const [previewTheme, setPreviewTheme] = useState(null);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const storedId = getStoredThemeId();
|
|
13
|
+
const theme = getThemeById(storedId);
|
|
14
|
+
const resolvedTheme = theme ?? themes[0];
|
|
15
|
+
if (resolvedTheme) {
|
|
16
|
+
setCurrentTheme(resolvedTheme);
|
|
17
|
+
}
|
|
18
|
+
}, []);
|
|
19
|
+
const handleOpen = () => setIsOpen(true);
|
|
20
|
+
const handleDialogChange = (open) => {
|
|
21
|
+
if (!open) {
|
|
22
|
+
if (previewTheme && currentTheme) {
|
|
23
|
+
applyTheme(currentTheme);
|
|
24
|
+
}
|
|
25
|
+
setPreviewTheme(null);
|
|
26
|
+
}
|
|
27
|
+
setIsOpen(open);
|
|
28
|
+
};
|
|
29
|
+
const handlePreview = (theme) => {
|
|
30
|
+
setPreviewTheme(theme);
|
|
31
|
+
applyTheme(theme);
|
|
32
|
+
};
|
|
33
|
+
const handleSelect = (theme) => {
|
|
34
|
+
setCurrentTheme(theme);
|
|
35
|
+
setPreviewTheme(null);
|
|
36
|
+
applyTheme(theme);
|
|
37
|
+
setIsOpen(false);
|
|
38
|
+
};
|
|
39
|
+
const handleMouseLeave = () => {
|
|
40
|
+
if (previewTheme && currentTheme) {
|
|
41
|
+
applyTheme(currentTheme);
|
|
42
|
+
setPreviewTheme(null);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return (_jsxs(_Fragment, { children: [_jsx("button", { onClick: handleOpen, className: "fixed bottom-6 right-6 z-50 p-4 rounded-full bg-primary text-white shadow-lg transition-all duration-300 hover:scale-110 hover:shadow-xl focus:outline-none focus:ring-2 focus:ring-primary/50 focus:ring-offset-2 focus:ring-offset-background", style: { backgroundColor: 'rgb(139 92 246)' }, title: "Change Theme", "aria-label": "Open theme selector", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: "w-6 h-6", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor" }), _jsx("circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor" }), _jsx("circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor" }), _jsx("circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor" }), _jsx("path", { d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z" })] }) }), _jsx(Dialog, { open: isOpen, onOpenChange: handleDialogChange, children: _jsxs(DialogContent, { className: "max-w-5xl max-h-[90vh] overflow-hidden", showCloseButton: true, children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { className: "text-2xl", children: "Choose Your Theme" }), _jsx(DialogDescription, { children: "Preview and select a theme preset for your Daily project. Hover to preview, click to apply." })] }), _jsx("div", { className: "overflow-y-auto max-h-[calc(90vh-12rem)] pr-2", onMouseLeave: handleMouseLeave, children: _jsx(ThemeGrid, { themes: themes, currentTheme: currentTheme, previewTheme: previewTheme, onPreview: handlePreview, onSelect: handleSelect }) })] }) })] }));
|
|
46
|
+
}
|
|
47
|
+
function groupThemes(allThemes) {
|
|
48
|
+
const categories = {};
|
|
49
|
+
for (const theme of allThemes) {
|
|
50
|
+
let category = 'Other';
|
|
51
|
+
if (theme.id.startsWith('daily-') || theme.id.startsWith('purple-')) {
|
|
52
|
+
category = 'Purple Primary';
|
|
53
|
+
}
|
|
54
|
+
else if (theme.id.startsWith('blue-')) {
|
|
55
|
+
category = 'Blue Primary';
|
|
56
|
+
}
|
|
57
|
+
else if (theme.id.startsWith('indigo-')) {
|
|
58
|
+
category = 'Indigo Primary';
|
|
59
|
+
}
|
|
60
|
+
else if (theme.id.startsWith('emerald-')) {
|
|
61
|
+
category = 'Emerald Primary';
|
|
62
|
+
}
|
|
63
|
+
else if (theme.id.startsWith('rose-') || theme.id.startsWith('pink-')) {
|
|
64
|
+
category = 'Rose/Pink Primary';
|
|
65
|
+
}
|
|
66
|
+
else if (theme.id.startsWith('teal-') || theme.id.startsWith('cyan-')) {
|
|
67
|
+
category = 'Teal/Cyan Primary';
|
|
68
|
+
}
|
|
69
|
+
else if (theme.id.startsWith('amber-') || theme.id.startsWith('orange-')) {
|
|
70
|
+
category = 'Amber/Orange Primary';
|
|
71
|
+
}
|
|
72
|
+
else if (theme.id.startsWith('slate-') || theme.id.startsWith('zinc-')) {
|
|
73
|
+
category = 'Neutral Primary';
|
|
74
|
+
}
|
|
75
|
+
if (!categories[category]) {
|
|
76
|
+
categories[category] = [];
|
|
77
|
+
}
|
|
78
|
+
categories[category].push(theme);
|
|
79
|
+
}
|
|
80
|
+
const order = ['Purple Primary', 'Blue Primary', 'Indigo Primary', 'Emerald Primary', 'Rose/Pink Primary', 'Teal/Cyan Primary', 'Amber/Orange Primary', 'Neutral Primary', 'Other'];
|
|
81
|
+
return order
|
|
82
|
+
.filter((cat) => (categories[cat]?.length ?? 0) > 0)
|
|
83
|
+
.map(category => ({ category, themes: categories[category] }));
|
|
84
|
+
}
|
|
85
|
+
function ThemeGrid({ themes: allThemes, currentTheme, previewTheme, onPreview, onSelect, }) {
|
|
86
|
+
const groupedThemes = groupThemes(allThemes);
|
|
87
|
+
return (_jsx("div", { className: "space-y-6", children: groupedThemes.map(({ category, themes }) => (_jsxs("div", { children: [_jsx("h3", { className: "text-sm font-semibold text-muted-foreground mb-3 uppercase tracking-wider", children: category }), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3", children: themes.map((theme) => {
|
|
88
|
+
const isActive = currentTheme?.id === theme.id;
|
|
89
|
+
const isPreviewing = previewTheme?.id === theme.id;
|
|
90
|
+
return (_jsxs("div", { className: cn("relative rounded-xl overflow-hidden cursor-pointer transition-all duration-300", isActive
|
|
91
|
+
? "ring-4 ring-primary ring-offset-2 ring-offset-background"
|
|
92
|
+
: "hover:shadow-xl hover:-translate-y-1"), onMouseEnter: () => onPreview(theme), onClick: () => onSelect(theme), children: [_jsxs("div", { className: "p-4", style: { backgroundColor: `rgb(${theme.colors.background})` }, children: [_jsxs("div", { className: "flex gap-2 mb-3", children: [_jsx("div", { className: "w-10 h-10 rounded-full shadow-md ring-2 ring-white/10", style: { backgroundColor: `rgb(${theme.colors.primary})` }, title: "Primary", "aria-label": "Primary color" }), _jsx("div", { className: "w-10 h-10 rounded-full shadow-md ring-2 ring-white/10", style: { backgroundColor: `rgb(${theme.colors.accent})` }, title: "Accent", "aria-label": "Accent color" })] }), _jsxs("div", { className: "rounded-lg p-3 mb-3", style: {
|
|
93
|
+
backgroundColor: `rgb(${theme.colors.card})`,
|
|
94
|
+
border: `1px solid rgb(${theme.colors.border})`,
|
|
95
|
+
}, children: [_jsx("div", { className: "h-3 w-3/4 rounded mb-2", style: { backgroundColor: `rgb(${theme.colors.primary})` } }), _jsx("div", { className: "h-2 w-full rounded mb-1.5 opacity-30", style: { backgroundColor: `rgb(${theme.colors.primary})` } }), _jsx("div", { className: "h-2 w-5/6 rounded opacity-30", style: { backgroundColor: `rgb(${theme.colors.primary})` } })] }), _jsxs("div", { className: "flex gap-2", children: [_jsx("div", { className: "px-3 py-1.5 rounded-lg text-white text-xs font-semibold shadow-sm", style: { backgroundColor: `rgb(${theme.colors.accent})` }, children: "Button" }), _jsx("div", { className: "px-3 py-1.5 rounded-lg text-white text-xs font-semibold shadow-sm", style: { backgroundColor: `rgb(${theme.colors.primary})` }, children: "Action" })] })] }), _jsxs("div", { className: "p-4 border-t", style: {
|
|
96
|
+
backgroundColor: `rgb(${theme.colors.card})`,
|
|
97
|
+
borderColor: `rgb(${theme.colors.border})`,
|
|
98
|
+
}, children: [_jsxs("div", { className: "flex items-center justify-between mb-1.5", children: [_jsx("h3", { className: "font-semibold text-sm text-white", children: theme.name }), isActive && (_jsxs("span", { className: "flex items-center gap-1 text-xs font-semibold px-2 py-0.5 rounded-full text-white", style: {
|
|
99
|
+
backgroundColor: `rgb(${theme.colors.primary})`,
|
|
100
|
+
}, children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "w-3 h-3", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("polyline", { points: "20 6 9 17 4 12" }) }), "Active"] })), isPreviewing && !isActive && (_jsx("span", { className: "text-xs font-semibold px-2 py-0.5 rounded-full text-white", style: {
|
|
101
|
+
backgroundColor: `rgb(${theme.colors.accent})`,
|
|
102
|
+
}, children: "Preview" }))] }), _jsx("p", { className: "text-xs text-muted-foreground", children: theme.description })] })] }, theme.id));
|
|
103
|
+
}) })] }, category))) }));
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=theme-tester.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-tester.js","sourceRoot":"","sources":["../../../src/components/dev/theme-tester.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAc,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACvG,OAAO,EACL,MAAM,EACN,aAAa,EACb,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AA8BtC,MAAM,UAAU,WAAW;IACzB,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C,SAAS,EACnB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,YAEtB,mBAAU,MAAM,EAAC,gBAAgB,GAAG,GAChC,cAED,CACR,EACA,YAAY,IAAI,CAAC,QAAQ,IAAI,CAC5B,eACE,SAAS,EAAC,2DAA2D,EACrE,KAAK,EAAE;wDACL,eAAe,EAAE,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG;qDAC/C,wBAGI,CACR,IACG,EACN,YAAG,SAAS,EAAC,+BAA+B,YACzC,KAAK,CAAC,WAAW,GAChB,IACA,KAtHD,KAAK,CAAC,EAAE,CAuHT,CACP,CAAA;oBACH,CAAC,CAAC,GACQ,KArIE,QAAQ,CAsIZ,CACP,CAAC,GACE,CACP,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface AppShellProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
sidebarCollapsed?: boolean;
|
|
4
|
+
sidebarWidth?: string;
|
|
5
|
+
sidebarCollapsedWidth?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function AppShell({ className, sidebarCollapsed, sidebarWidth, sidebarCollapsedWidth, children, ...props }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AppShellSidebar({ className, children, ...props }: React.HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AppShellHeader({ className, children, ...props }: React.HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AppShellMain({ className, children, ...props }: React.HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AppShellContent({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AppShellFooter({ className, children, ...props }: React.HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { AppShell, AppShellSidebar, AppShellHeader, AppShellMain, AppShellContent, AppShellFooter, };
|
|
14
|
+
//# sourceMappingURL=app-shell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../src/components/layout/app-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAEzE,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,gBAAwB,EACxB,YAAsB,EACtB,qBAA8B,EAC9B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,2CAiBf;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,2CAcnC;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,2CAanC;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,2CAcnC;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAUtC;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,2CAanC;AAED,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,cAAc,GACf,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../utils/cn";
|
|
3
|
+
function AppShell({ className, sidebarCollapsed = false, sidebarWidth = "16rem", sidebarCollapsedWidth = "4rem", children, ...props }) {
|
|
4
|
+
return (_jsx("div", { "data-slot": "app-shell", "data-sidebar-collapsed": sidebarCollapsed, className: cn("flex min-h-screen bg-[#0A0A0F]", className), style: {
|
|
5
|
+
"--sidebar-width": sidebarWidth,
|
|
6
|
+
"--sidebar-collapsed-width": sidebarCollapsedWidth,
|
|
7
|
+
}, ...props, children: children }));
|
|
8
|
+
}
|
|
9
|
+
function AppShellSidebar({ className, children, ...props }) {
|
|
10
|
+
return (_jsx("aside", { "data-slot": "app-shell-sidebar", className: cn("fixed inset-y-0 left-0 z-30 flex w-[var(--sidebar-width)] flex-col border-r border-[#2A2A3C] bg-[#0F0F14] transition-[width] duration-200 ease-in-out", "[[data-sidebar-collapsed=true]_&]:w-[var(--sidebar-collapsed-width)]", className), ...props, children: children }));
|
|
11
|
+
}
|
|
12
|
+
function AppShellHeader({ className, children, ...props }) {
|
|
13
|
+
return (_jsx("header", { "data-slot": "app-shell-header", className: cn("sticky top-0 z-20 flex h-14 items-center border-b border-[#2A2A3C] bg-[#0F0F14]/95 px-4 backdrop-blur supports-[backdrop-filter]:bg-[#0F0F14]/60", className), ...props, children: children }));
|
|
14
|
+
}
|
|
15
|
+
function AppShellMain({ className, children, ...props }) {
|
|
16
|
+
return (_jsx("main", { "data-slot": "app-shell-main", className: cn("ml-[var(--sidebar-width)] flex-1 transition-[margin] duration-200 ease-in-out", "[[data-sidebar-collapsed=true]_&]:ml-[var(--sidebar-collapsed-width)]", className), ...props, children: children }));
|
|
17
|
+
}
|
|
18
|
+
function AppShellContent({ className, children, ...props }) {
|
|
19
|
+
return (_jsx("div", { "data-slot": "app-shell-content", className: cn("flex-1 p-6", className), ...props, children: children }));
|
|
20
|
+
}
|
|
21
|
+
function AppShellFooter({ className, children, ...props }) {
|
|
22
|
+
return (_jsx("footer", { "data-slot": "app-shell-footer", className: cn("border-t border-[#2A2A3C] bg-[#0F0F14] px-4 py-3", className), ...props, children: children }));
|
|
23
|
+
}
|
|
24
|
+
export { AppShell, AppShellSidebar, AppShellHeader, AppShellMain, AppShellContent, AppShellFooter, };
|
|
25
|
+
//# sourceMappingURL=app-shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-shell.js","sourceRoot":"","sources":["../../../src/components/layout/app-shell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAWnC,SAAS,QAAQ,CAAC,EAChB,SAAS,EACT,gBAAgB,GAAG,KAAK,EACxB,YAAY,GAAG,OAAO,EACtB,qBAAqB,GAAG,MAAM,EAC9B,QAAQ,EACR,GAAG,KAAK,EACM;IACd,OAAO,CACL,2BACY,WAAW,4BACG,gBAAgB,EACxC,SAAS,EAAE,EAAE,CAAC,gCAAgC,EAAE,SAAS,CAAC,EAC1D,KAAK,EACH;YACE,iBAAiB,EAAE,YAAY;YAC/B,2BAA2B,EAAE,qBAAqB;SAC5B,KAEtB,KAAK,YAER,QAAQ,GACL,CACP,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC0B;IAClC,OAAO,CACL,6BACY,mBAAmB,EAC7B,SAAS,EAAE,EAAE,CACX,uJAAuJ,EACvJ,sEAAsE,EACtE,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACH,CACT,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC0B;IAClC,OAAO,CACL,8BACY,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,kJAAkJ,EAClJ,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACF,CACV,CAAA;AACH,CAAC;AAED,SAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC0B;IAClC,OAAO,CACL,4BACY,gBAAgB,EAC1B,SAAS,EAAE,EAAE,CACX,+EAA+E,EAC/E,uEAAuE,EACvE,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACJ,CACR,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC6B;IACrC,OAAO,CACL,2BACY,mBAAmB,EAC7B,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,KAClC,KAAK,YAER,QAAQ,GACL,CACP,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC0B;IAClC,OAAO,CACL,8BACY,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,kDAAkD,EAClD,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACF,CACV,CAAA;AACH,CAAC;AAED,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,cAAc,GACf,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
15
|
+
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAKpE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,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AAoB,CAAC,MAAM,CAAC,2CAY1D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
|
+
import { cn } from "../../utils/cn";
|
|
5
|
+
import { buttonVariants } from "../common/button";
|
|
6
|
+
function AlertDialog({ ...props }) {
|
|
7
|
+
return _jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
8
|
+
}
|
|
9
|
+
function AlertDialogTrigger({ ...props }) {
|
|
10
|
+
return (_jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props }));
|
|
11
|
+
}
|
|
12
|
+
function AlertDialogPortal({ ...props }) {
|
|
13
|
+
return (_jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props }));
|
|
14
|
+
}
|
|
15
|
+
function AlertDialogOverlay({ className, ...props }) {
|
|
16
|
+
return (_jsx(AlertDialogPrimitive.Overlay, { "data-slot": "alert-dialog-overlay", className: cn("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
function AlertDialogContent({ className, ...props }) {
|
|
19
|
+
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { "data-slot": "alert-dialog-content", className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[#2A2A3C] bg-[#0F0F14] p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className), ...props })] }));
|
|
20
|
+
}
|
|
21
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
22
|
+
return (_jsx("div", { "data-slot": "alert-dialog-header", className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
function AlertDialogFooter({ className, ...props }) {
|
|
25
|
+
return (_jsx("div", { "data-slot": "alert-dialog-footer", className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
26
|
+
}
|
|
27
|
+
function AlertDialogTitle({ className, ...props }) {
|
|
28
|
+
return (_jsx(AlertDialogPrimitive.Title, { "data-slot": "alert-dialog-title", className: cn("text-lg font-semibold text-[#E8E8ED]", className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
function AlertDialogDescription({ className, ...props }) {
|
|
31
|
+
return (_jsx(AlertDialogPrimitive.Description, { "data-slot": "alert-dialog-description", className: cn("text-sm text-[#A0A0B0]", className), ...props }));
|
|
32
|
+
}
|
|
33
|
+
function AlertDialogAction({ className, ...props }) {
|
|
34
|
+
return (_jsx(AlertDialogPrimitive.Action, { "data-slot": "alert-dialog-action", className: cn(buttonVariants(), className), ...props }));
|
|
35
|
+
}
|
|
36
|
+
function AlertDialogCancel({ className, ...props }) {
|
|
37
|
+
return (_jsx(AlertDialogPrimitive.Cancel, { "data-slot": "alert-dialog-cancel", className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props }));
|
|
38
|
+
}
|
|
39
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
40
|
+
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAEpE,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,SAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EAC+C;IACvD,OAAO,KAAC,oBAAoB,CAAC,IAAI,iBAAW,cAAc,KAAK,KAAK,GAAI,CAAA;AAC1E,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,KAAC,oBAAoB,CAAC,OAAO,iBAAW,sBAAsB,KAAK,KAAK,GAAI,CAC7E,CAAA;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACiD;IACzD,OAAO,CACL,KAAC,oBAAoB,CAAC,MAAM,iBAAW,qBAAqB,KAAK,KAAK,GAAI,CAC3E,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,KAAC,oBAAoB,CAAC,OAAO,iBACjB,sBAAsB,EAChC,SAAS,EAAE,EAAE,CACX,yKAAyK,EACzK,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,MAAC,iBAAiB,eAChB,KAAC,kBAAkB,KAAG,EACtB,KAAC,oBAAoB,CAAC,OAAO,iBACjB,sBAAsB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AM,iBAChB,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CACX,cAAc,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EACtC,cAAc,EACd,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
7
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAIzD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAWnD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,2CAWvD;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
4
|
+
import { cn } from "../../utils/cn";
|
|
5
|
+
function Avatar({ className, ...props }) {
|
|
6
|
+
return (_jsx(AvatarPrimitive.Root, { "data-slot": "avatar", className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className), ...props }));
|
|
7
|
+
}
|
|
8
|
+
function AvatarImage({ className, ...props }) {
|
|
9
|
+
return (_jsx(AvatarPrimitive.Image, { "data-slot": "avatar-image", className: cn("aspect-square h-full w-full", className), ...props }));
|
|
10
|
+
}
|
|
11
|
+
function AvatarFallback({ className, ...props }) {
|
|
12
|
+
return (_jsx(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", className: cn("flex h-full w-full items-center justify-center rounded-full bg-purple-500/20 text-purple-400 text-sm font-medium", className), ...props }));
|
|
13
|
+
}
|
|
14
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
15
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAEnC,SAAS,MAAM,CAAC,EACd,SAAS,EACT,GAAG,KAAK,EAC0C;IAClD,OAAO,CACL,KAAC,eAAe,CAAC,IAAI,iBACT,QAAQ,EAClB,SAAS,EAAE,EAAE,CACX,+DAA+D,EAC/D,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EAC2C;IACnD,OAAO,CACL,KAAC,eAAe,CAAC,KAAK,iBACV,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,KACnD,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EAC8C;IACtD,OAAO,CACL,KAAC,eAAe,CAAC,QAAQ,iBACb,iBAAiB,EAC3B,SAAS,EAAE,EAAE,CACX,kHAAkH,EAClH,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
9
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAK5C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAA;AAElE,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,aAAa,2CAgDf;kBArDQ,QAAQ;;;AAwDjB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { DayPicker } from "react-day-picker";
|
|
4
|
+
import { cn } from "../../utils/cn";
|
|
5
|
+
import { buttonVariants } from "../common/button";
|
|
6
|
+
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
7
|
+
return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("p-3", className), classNames: {
|
|
8
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
9
|
+
month: "space-y-4",
|
|
10
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
11
|
+
caption_label: "text-sm font-medium",
|
|
12
|
+
nav: "space-x-1 flex items-center",
|
|
13
|
+
nav_button: cn(buttonVariants({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
14
|
+
nav_button_previous: "absolute left-1",
|
|
15
|
+
nav_button_next: "absolute right-1",
|
|
16
|
+
table: "w-full border-collapse space-y-1",
|
|
17
|
+
head_row: "flex",
|
|
18
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
19
|
+
row: "flex w-full mt-2",
|
|
20
|
+
cell: cn("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md", props.mode === "range"
|
|
21
|
+
? "[&:has(aria-selected).day-range-end]:rounded-r-md [&:has(aria-selected).day-range-start]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"
|
|
22
|
+
: "[&:has([aria-selected])]:rounded-md"),
|
|
23
|
+
day: cn(buttonVariants({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
24
|
+
day_range_start: "day-range-start",
|
|
25
|
+
day_range_end: "day-range-end",
|
|
26
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
27
|
+
day_today: "bg-accent/50",
|
|
28
|
+
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
29
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
30
|
+
day_range_middle: "aria-selected:bg-accent/50 aria-selected:text-accent-foreground",
|
|
31
|
+
day_hidden: "invisible",
|
|
32
|
+
...classNames,
|
|
33
|
+
}, ...props }));
|
|
34
|
+
}
|
|
35
|
+
Calendar.displayName = "Calendar";
|
|
36
|
+
export { Calendar };
|
|
37
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,SAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAe,GAAG,IAAI,EACtB,GAAG,KAAK,EACM;IACd,OAAO,CACL,KAAC,SAAS,IACR,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAC/B,UAAU,EAAE;YACV,MAAM,EAAE,+DAA+D;YACvE,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,gDAAgD;YACzD,aAAa,EAAE,qBAAqB;YACpC,GAAG,EAAE,6BAA6B;YAClC,UAAU,EAAE,EAAE,CACZ,cAAc,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EACtC,yDAAyD,CAC1D;YACD,mBAAmB,EAAE,iBAAiB;YACtC,eAAe,EAAE,kBAAkB;YACnC,KAAK,EAAE,kCAAkC;YACzC,QAAQ,EAAE,MAAM;YAChB,SAAS,EACP,gEAAgE;YAClE,GAAG,EAAE,kBAAkB;YACvB,IAAI,EAAE,EAAE,CACN,mNAAmN,EACnN,KAAK,CAAC,IAAI,KAAK,OAAO;gBACpB,CAAC,CAAC,8LAA8L;gBAChM,CAAC,CAAC,qCAAqC,CAC1C;YACD,GAAG,EAAE,EAAE,CACL,cAAc,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EACpC,mDAAmD,CACpD;YACD,eAAe,EAAE,iBAAiB;YAClC,aAAa,EAAE,eAAe;YAC9B,YAAY,EACV,kIAAkI;YACpI,SAAS,EAAE,cAAc;YACzB,WAAW,EACT,sIAAsI;YACxI,YAAY,EAAE,kCAAkC;YAChD,gBAAgB,EACd,iEAAiE;YACnE,UAAU,EAAE,WAAW;YACvB,GAAG,UAAU;SACd,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AACD,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
3
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleTrigger({ className, ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CollapsibleContent({ className, ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
7
|
+
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAA;AAInE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAWtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAWtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
4
|
+
import { cn } from "../../utils/cn";
|
|
5
|
+
function Collapsible({ ...props }) {
|
|
6
|
+
return _jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
7
|
+
}
|
|
8
|
+
function CollapsibleTrigger({ className, ...props }) {
|
|
9
|
+
return (_jsx(CollapsiblePrimitive.CollapsibleTrigger, { "data-slot": "collapsible-trigger", className: cn("flex items-center justify-between [&[data-state=open]>svg]:rotate-180", className), ...props }));
|
|
10
|
+
}
|
|
11
|
+
function CollapsibleContent({ className, ...props }) {
|
|
12
|
+
return (_jsx(CollapsiblePrimitive.CollapsibleContent, { "data-slot": "collapsible-content", className: cn("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down", className), ...props }));
|
|
13
|
+
}
|
|
14
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
15
|
+
//# sourceMappingURL=collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.js","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAA;AAEnE,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAEnC,SAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EAC+C;IACvD,OAAO,KAAC,oBAAoB,CAAC,IAAI,iBAAW,aAAa,KAAK,KAAK,GAAI,CAAA;AACzE,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EAC6D;IACrE,OAAO,CACL,KAAC,oBAAoB,CAAC,kBAAkB,iBAC5B,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CACX,uEAAuE,EACvE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EAC6D;IACrE,OAAO,CACL,KAAC,oBAAoB,CAAC,kBAAkB,iBAC5B,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CACX,uGAAuG,EACvG,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ComboboxOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ComboboxProps {
|
|
6
|
+
options: ComboboxOption[];
|
|
7
|
+
value?: string;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
searchPlaceholder?: string;
|
|
11
|
+
emptyMessage?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare namespace Combobox {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
export { Combobox };
|
|
20
|
+
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/combobox.tsx"],"names":[],"mappings":"AAqBA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,QAAQ,CAAC,EAChB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAmC,EACnC,iBAA+B,EAC/B,YAAiC,EACjC,QAAgB,EAChB,SAAS,GACV,EAAE,aAAa,2CAuDf;kBAhEQ,QAAQ;;;AAoEjB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Check, ChevronsUpDown } from "lucide-react";
|
|
5
|
+
import { cn } from "../../utils/cn";
|
|
6
|
+
import { Button } from "../common/button";
|
|
7
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "./command";
|
|
8
|
+
import { Popover, PopoverContent, PopoverTrigger, } from "./popover";
|
|
9
|
+
function Combobox({ options, value, onChange, placeholder = "Select an option...", searchPlaceholder = "Search...", emptyMessage = "No option found.", disabled = false, className, }) {
|
|
10
|
+
const [open, setOpen] = React.useState(false);
|
|
11
|
+
const [search, setSearch] = React.useState("");
|
|
12
|
+
const selectedOption = options.find((option) => option.value === value);
|
|
13
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", role: "combobox", "aria-expanded": open, className: cn("w-full justify-between", className), disabled: disabled, children: [selectedOption?.label || placeholder, _jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-full p-0", children: _jsxs(Command, { children: [_jsx(CommandInput, { placeholder: searchPlaceholder, value: search, onValueChange: setSearch }), _jsxs(CommandList, { children: [_jsx(CommandEmpty, { children: emptyMessage }), _jsx(CommandGroup, { children: options.map((option) => (_jsxs(CommandItem, { value: option.label, onSelect: () => {
|
|
14
|
+
onChange(option.value);
|
|
15
|
+
setOpen(false);
|
|
16
|
+
setSearch("");
|
|
17
|
+
}, children: [_jsx(Check, { className: cn("mr-2 h-4 w-4", value === option.value ? "opacity-100" : "opacity-0") }), option.label] }, option.value))) })] })] }) })] }));
|
|
18
|
+
}
|
|
19
|
+
Combobox.displayName = "Combobox";
|
|
20
|
+
export { Combobox };
|
|
21
|
+
//# sourceMappingURL=combobox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.js","sourceRoot":"","sources":["../../../src/components/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cAAc,IAAC,SAAS,EAAC,kCAAkC,GAAG,IACxD,GACM,EACjB,KAAC,cAAc,IAAC,SAAS,EAAC,YAAY,YACpC,MAAC,OAAO,eACN,KAAC,YAAY,IACX,WAAW,EAAE,iBAAiB,EAC9B,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,SAAS,GACxB,EACF,MAAC,WAAW,eACV,KAAC,YAAY,cAAE,YAAY,GAAgB,EAC3C,KAAC,YAAY,cACV,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,MAAC,WAAW,IAEV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,QAAQ,EAAE,GAAG,EAAE;4CACb,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;4CACtB,OAAO,CAAC,KAAK,CAAC,CAAA;4CACd,SAAS,CAAC,EAAE,CAAC,CAAA;wCACf,CAAC,aAED,KAAC,KAAK,IACJ,SAAS,EAAE,EAAE,CACX,cAAc,EACd,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CACrD,GACD,EACD,MAAM,CAAC,KAAK,KAdR,MAAM,CAAC,KAAK,CAeL,CACf,CAAC,GACW,IACH,IACN,GACK,IACT,CACX,CAAA;AACH,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type DialogProps } from "@radix-ui/react-dialog";
|
|
3
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
} & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
22
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
23
|
+
} & {
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
26
|
+
value?: string;
|
|
27
|
+
onValueChange?: (search: string) => void;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
32
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
33
|
+
} & {
|
|
34
|
+
asChild?: boolean;
|
|
35
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
36
|
+
label?: string;
|
|
37
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
42
|
+
} & {
|
|
43
|
+
asChild?: boolean;
|
|
44
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
48
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
49
|
+
} & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
52
|
+
heading?: React.ReactNode;
|
|
53
|
+
value?: string;
|
|
54
|
+
forceMount?: boolean;
|
|
55
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
57
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
+
} & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
|
+
alwaysRender?: boolean;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
66
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
67
|
+
} & {
|
|
68
|
+
asChild?: boolean;
|
|
69
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
onSelect?: (value: string) => void;
|
|
72
|
+
value?: string;
|
|
73
|
+
keywords?: string[];
|
|
74
|
+
forceMount?: boolean;
|
|
75
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const CommandShortcut: {
|
|
77
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
80
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
81
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAOzD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAA;AAGF,QAAA,MAAM,aAAa,GAAI,wBAGpB,WAAW,4CAUb,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAA;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;uJAShB,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAA;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFASpB,CAAA;AAGF,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAaf,CAAA;AAIF,QAAA,MAAM,eAAe;8BAGlB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAA;AAGD,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAA"}
|