@nikala-ui/core 0.10.1 → 0.11.0-nightly.b01fa01
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/package.json +1 -1
- package/registry/banner.json +1 -1
- package/registry/bubble.json +18 -0
- package/registry/button-group.json +20 -0
- package/registry/button.json +1 -1
- package/registry/checkbox.json +4 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +3 -2
- package/registry/context-menu.json +1 -1
- package/registry/create-app-updater.json +13 -0
- package/registry/create-chat-scroll.json +13 -0
- package/registry/create-document-tabs.json +13 -0
- package/registry/create-drop-zone.json +13 -0
- package/registry/create-global-shortcut.json +13 -0
- package/registry/create-pagination.json +13 -0
- package/registry/create-tauri-window.json +13 -0
- package/registry/dialog.json +1 -1
- package/registry/dropdown-menu.json +3 -2
- package/registry/dropzone.json +21 -0
- package/registry/field.json +1 -1
- package/registry/footer.json +18 -0
- package/registry/forgot-password-01.json +28 -0
- package/registry/form-message.json +3 -2
- package/registry/hero-01.json +22 -0
- package/registry/icon-button.json +1 -1
- package/registry/index.json +432 -5
- package/registry/login-01.json +28 -0
- package/registry/marker.json +17 -0
- package/registry/marquee.json +17 -0
- package/registry/message.json +17 -0
- package/registry/navbar.json +19 -0
- package/registry/navigation-menu.json +22 -0
- package/registry/number-input.json +1 -1
- package/registry/otp-verification-01.json +26 -0
- package/registry/pagination.json +22 -0
- package/registry/popover.json +4 -1
- package/registry/rating.json +19 -0
- package/registry/register-01.json +31 -0
- package/registry/resizable.json +1 -1
- package/registry/review-card.json +23 -0
- package/registry/scroll-area.json +1 -1
- package/registry/select.json +3 -2
- package/registry/sheet.json +1 -1
- package/registry/sidebar.json +24 -0
- package/registry/spinner.json +1 -1
- package/registry/stat.json +19 -0
- package/registry/status.json +1 -1
- package/registry/switch.json +4 -1
- package/registry/table.json +17 -0
- package/registry/tabs.json +4 -1
- package/registry/theme-manager.json +4 -3
- package/registry/timeline.json +18 -0
- package/registry/titlebar-tabs.json +24 -0
- package/registry/titlebar.json +26 -0
- package/registry/toggle-group.json +21 -0
- package/registry/updater-modal.json +26 -0
- package/src/registry/blocks/forgot-password-01.tsx +141 -0
- package/src/registry/blocks/hero-01.tsx +28 -0
- package/src/registry/blocks/login-01.tsx +231 -0
- package/src/registry/blocks/otp-verification-01.tsx +170 -0
- package/src/registry/blocks/register-01.tsx +318 -0
- package/src/registry/components/ui/banner.tsx +0 -2
- package/src/registry/components/ui/bubble.tsx +142 -0
- package/src/registry/components/ui/button-group.tsx +42 -0
- package/src/registry/components/ui/button.tsx +1 -1
- package/src/registry/components/ui/checkbox.tsx +1 -1
- package/src/registry/components/ui/combobox.tsx +83 -18
- package/src/registry/components/ui/command.tsx +101 -105
- package/src/registry/components/ui/context-menu.tsx +67 -22
- package/src/registry/components/ui/dialog.tsx +42 -32
- package/src/registry/components/ui/dropdown-menu.tsx +69 -31
- package/src/registry/components/ui/dropzone.tsx +189 -0
- package/src/registry/components/ui/field.tsx +7 -3
- package/src/registry/components/ui/footer.tsx +247 -0
- package/src/registry/components/ui/form-message.tsx +2 -2
- package/src/registry/components/ui/icon-button.tsx +1 -1
- package/src/registry/components/ui/marker.tsx +102 -0
- package/src/registry/components/ui/marquee.tsx +118 -0
- package/src/registry/components/ui/message.tsx +168 -0
- package/src/registry/components/ui/navbar.tsx +375 -0
- package/src/registry/components/ui/navigation-menu.tsx +358 -0
- package/src/registry/components/ui/number-input.tsx +3 -3
- package/src/registry/components/ui/pagination.tsx +258 -0
- package/src/registry/components/ui/popover.tsx +1 -1
- package/src/registry/components/ui/rating.tsx +185 -0
- package/src/registry/components/ui/resizable.tsx +3 -1
- package/src/registry/components/ui/review-card.tsx +195 -0
- package/src/registry/components/ui/scroll-area.tsx +13 -3
- package/src/registry/components/ui/select.tsx +16 -19
- package/src/registry/components/ui/sheet.tsx +58 -53
- package/src/registry/components/ui/sidebar.tsx +692 -0
- package/src/registry/components/ui/spinner.tsx +1 -1
- package/src/registry/components/ui/stat.tsx +245 -0
- package/src/registry/components/ui/status.tsx +7 -5
- package/src/registry/components/ui/switch.tsx +1 -1
- package/src/registry/components/ui/table.tsx +160 -0
- package/src/registry/components/ui/tabs.tsx +1 -1
- package/src/registry/components/ui/theme-toggle.tsx +80 -79
- package/src/registry/components/ui/timeline.tsx +350 -0
- package/src/registry/components/ui/titlebar-tabs.tsx +412 -0
- package/src/registry/components/ui/titlebar.tsx +399 -0
- package/src/registry/components/ui/toggle-group.tsx +203 -0
- package/src/registry/components/ui/updater-modal.tsx +254 -0
- package/src/registry/index.ts +3 -3
- package/src/registry/metadata.ts +184 -5
- package/src/registry/providers/theme-transitions.ts +81 -50
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Show,
|
|
3
|
+
splitProps,
|
|
4
|
+
type Component,
|
|
5
|
+
type ParentComponent,
|
|
6
|
+
type JSX,
|
|
7
|
+
} from "solid-js";
|
|
8
|
+
import {
|
|
9
|
+
Dialog,
|
|
10
|
+
DialogContent,
|
|
11
|
+
DialogHeader,
|
|
12
|
+
DialogTitle,
|
|
13
|
+
DialogDescription,
|
|
14
|
+
DialogFooter,
|
|
15
|
+
} from "@/components/ui/dialog";
|
|
16
|
+
import { Button } from "@/components/ui/button";
|
|
17
|
+
import { Badge } from "@/components/ui/badge";
|
|
18
|
+
import { Progress } from "@/components/ui/progress";
|
|
19
|
+
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";
|
|
20
|
+
import type {
|
|
21
|
+
CreateAppUpdaterReturn,
|
|
22
|
+
UpdateManifestInfo,
|
|
23
|
+
UpdateProgressInfo,
|
|
24
|
+
} from "@/hooks/create-app-updater";
|
|
25
|
+
import {
|
|
26
|
+
Download,
|
|
27
|
+
RotateCcw,
|
|
28
|
+
CheckCircle2,
|
|
29
|
+
AlertTriangle,
|
|
30
|
+
ArrowRight,
|
|
31
|
+
Package,
|
|
32
|
+
} from "lucide-solid";
|
|
33
|
+
import { cn } from "@/lib/cn";
|
|
34
|
+
|
|
35
|
+
function formatBytes(bytes: number): string {
|
|
36
|
+
if (!bytes || bytes === 0) return "0 MB";
|
|
37
|
+
const mb = bytes / (1024 * 1024);
|
|
38
|
+
return `${mb.toFixed(1)} MB`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* --- 1. Sub-components for Clean Modularity & Zero Repetition --- */
|
|
42
|
+
|
|
43
|
+
export interface UpdaterHeaderProps {
|
|
44
|
+
appName: string;
|
|
45
|
+
status: string;
|
|
46
|
+
info?: UpdateManifestInfo | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const UpdaterHeader: Component<UpdaterHeaderProps> = (props) => (
|
|
50
|
+
<DialogHeader class="space-y-1.5 text-left">
|
|
51
|
+
<div class="flex items-center justify-between">
|
|
52
|
+
<div class="size-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center">
|
|
53
|
+
<Package class="size-4" />
|
|
54
|
+
</div>
|
|
55
|
+
<Show when={props.info?.version}>
|
|
56
|
+
<div class="flex items-center gap-1.5 text-xs font-mono">
|
|
57
|
+
<span class="text-muted-foreground">{props.info?.currentVersion || "v1.0.0"}</span>
|
|
58
|
+
<ArrowRight class="size-3 text-muted-foreground" />
|
|
59
|
+
<Badge variant="default" class="text-xs px-1.5 py-0 bg-primary text-primary-foreground font-semibold">
|
|
60
|
+
{props.info?.version}
|
|
61
|
+
</Badge>
|
|
62
|
+
</div>
|
|
63
|
+
</Show>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<DialogTitle class="text-base font-bold tracking-tight text-foreground">
|
|
67
|
+
{props.status === "downloaded"
|
|
68
|
+
? "Update Ready to Install"
|
|
69
|
+
: props.status === "downloading"
|
|
70
|
+
? "Downloading Update..."
|
|
71
|
+
: props.status === "up-to-date"
|
|
72
|
+
? "Up to Date"
|
|
73
|
+
: `New Update Available for ${props.appName}`}
|
|
74
|
+
</DialogTitle>
|
|
75
|
+
|
|
76
|
+
<DialogDescription class="text-xs text-muted-foreground leading-relaxed">
|
|
77
|
+
{props.status === "downloaded"
|
|
78
|
+
? "The update has been downloaded and verified. Restart to apply changes."
|
|
79
|
+
: props.status === "downloading"
|
|
80
|
+
? "Please wait while update packages are being downloaded."
|
|
81
|
+
: props.status === "up-to-date"
|
|
82
|
+
? `${props.appName} is running on the latest version.`
|
|
83
|
+
: "A new version with features and bug fixes is ready to install."}
|
|
84
|
+
</DialogDescription>
|
|
85
|
+
</DialogHeader>
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
export interface UpdaterReleaseNotesProps {
|
|
89
|
+
body?: string;
|
|
90
|
+
date?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const UpdaterReleaseNotes: Component<UpdaterReleaseNotesProps> = (props) => (
|
|
94
|
+
<div class="space-y-1">
|
|
95
|
+
<div class="flex items-center justify-between text-xs text-muted-foreground font-medium">
|
|
96
|
+
<span>Release Notes</span>
|
|
97
|
+
<Show when={props.date}>
|
|
98
|
+
<span class="text-[11px] font-mono">{props.date}</span>
|
|
99
|
+
</Show>
|
|
100
|
+
</div>
|
|
101
|
+
<pre class="max-h-28 overflow-y-auto rounded-md border border-border bg-black/5 dark:bg-black/50 p-2.5 text-xs text-foreground font-mono whitespace-pre-wrap leading-relaxed select-text shadow-inner">
|
|
102
|
+
{props.body}
|
|
103
|
+
</pre>
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
export interface UpdaterProgressBarProps {
|
|
108
|
+
progress: UpdateProgressInfo;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export const UpdaterProgressBar: Component<UpdaterProgressBarProps> = (props) => (
|
|
112
|
+
<div class="space-y-1.5 py-1">
|
|
113
|
+
<div class="flex items-center justify-between text-xs font-mono">
|
|
114
|
+
<span class="text-muted-foreground font-sans">Progress</span>
|
|
115
|
+
<span class="font-semibold text-primary">{props.progress.percentage}%</span>
|
|
116
|
+
</div>
|
|
117
|
+
<Progress value={props.progress.percentage} class="h-1.5" />
|
|
118
|
+
<div class="flex items-center justify-between text-[11px] font-mono text-muted-foreground">
|
|
119
|
+
<span>{formatBytes(props.progress.downloaded)}</span>
|
|
120
|
+
<span>{formatBytes(props.progress.total)}</span>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/* --- 2. Main UpdaterModal Compound Component --- */
|
|
126
|
+
|
|
127
|
+
export interface UpdaterModalProps {
|
|
128
|
+
open: boolean;
|
|
129
|
+
onOpenChange: (open: boolean) => void;
|
|
130
|
+
updater: CreateAppUpdaterReturn;
|
|
131
|
+
appName?: string;
|
|
132
|
+
class?: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export const UpdaterModal: Component<UpdaterModalProps> = (props) => {
|
|
136
|
+
const [local, rest] = splitProps(props, [
|
|
137
|
+
"open",
|
|
138
|
+
"onOpenChange",
|
|
139
|
+
"updater",
|
|
140
|
+
"appName",
|
|
141
|
+
"class",
|
|
142
|
+
]);
|
|
143
|
+
|
|
144
|
+
const appName = () => local.appName || "Nikala Desktop";
|
|
145
|
+
const status = () => local.updater.status();
|
|
146
|
+
const info = () => local.updater.updateInfo();
|
|
147
|
+
const progress = () => local.updater.progress();
|
|
148
|
+
const error = () => local.updater.error();
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<Dialog open={local.open} onOpenChange={local.onOpenChange}>
|
|
152
|
+
<DialogContent class={cn("sm:max-w-sm", local.class)}>
|
|
153
|
+
{/* Header */}
|
|
154
|
+
<UpdaterHeader
|
|
155
|
+
appName={appName()}
|
|
156
|
+
status={status()}
|
|
157
|
+
info={info()}
|
|
158
|
+
/>
|
|
159
|
+
|
|
160
|
+
{/* Error Alert */}
|
|
161
|
+
<Show when={error()}>
|
|
162
|
+
<Alert variant="destructive" class="py-2 text-xs">
|
|
163
|
+
<AlertTriangle class="size-3.5" />
|
|
164
|
+
<AlertTitle class="font-semibold text-xs">Update Failed</AlertTitle>
|
|
165
|
+
<AlertDescription class="text-[11px]">{error()}</AlertDescription>
|
|
166
|
+
</Alert>
|
|
167
|
+
</Show>
|
|
168
|
+
|
|
169
|
+
{/* Release Notes */}
|
|
170
|
+
<Show when={info()?.body && (status() === "available" || status() === "downloading")}>
|
|
171
|
+
<UpdaterReleaseNotes body={info()?.body} date={info()?.date} />
|
|
172
|
+
</Show>
|
|
173
|
+
|
|
174
|
+
{/* Progress Bar */}
|
|
175
|
+
<Show when={status() === "downloading"}>
|
|
176
|
+
<UpdaterProgressBar progress={progress()} />
|
|
177
|
+
</Show>
|
|
178
|
+
|
|
179
|
+
{/* Success Callout */}
|
|
180
|
+
<Show when={status() === "downloaded"}>
|
|
181
|
+
<div class="flex items-center gap-2.5 p-2.5 rounded-md border border-primary/30 bg-primary/5 text-xs text-foreground">
|
|
182
|
+
<CheckCircle2 class="size-4 text-primary shrink-0" />
|
|
183
|
+
<p class="font-medium text-foreground text-xs">Package downloaded & verified.</p>
|
|
184
|
+
</div>
|
|
185
|
+
</Show>
|
|
186
|
+
|
|
187
|
+
{/* Actions Footer */}
|
|
188
|
+
<DialogFooter class="flex-row items-center justify-end gap-1.5 pt-1">
|
|
189
|
+
<Show when={status() === "available" || status() === "error"}>
|
|
190
|
+
<Button
|
|
191
|
+
variant="outline"
|
|
192
|
+
size="sm"
|
|
193
|
+
onClick={() => local.onOpenChange(false)}
|
|
194
|
+
class="text-xs h-7.5 px-3 cursor-pointer"
|
|
195
|
+
>
|
|
196
|
+
Later
|
|
197
|
+
</Button>
|
|
198
|
+
<Button
|
|
199
|
+
variant="default"
|
|
200
|
+
size="sm"
|
|
201
|
+
onClick={() => local.updater.downloadAndInstall()}
|
|
202
|
+
class="text-xs h-7.5 px-3 gap-1.5 cursor-pointer font-medium"
|
|
203
|
+
>
|
|
204
|
+
<Download class="size-3.5" />
|
|
205
|
+
<span>Update Now</span>
|
|
206
|
+
</Button>
|
|
207
|
+
</Show>
|
|
208
|
+
|
|
209
|
+
<Show when={status() === "downloading"}>
|
|
210
|
+
<Button
|
|
211
|
+
variant="outline"
|
|
212
|
+
size="sm"
|
|
213
|
+
disabled
|
|
214
|
+
class="text-xs h-7.5 w-full opacity-70 justify-center"
|
|
215
|
+
>
|
|
216
|
+
Downloading ({progress().percentage}%)
|
|
217
|
+
</Button>
|
|
218
|
+
</Show>
|
|
219
|
+
|
|
220
|
+
<Show when={status() === "downloaded"}>
|
|
221
|
+
<Button
|
|
222
|
+
variant="outline"
|
|
223
|
+
size="sm"
|
|
224
|
+
onClick={() => local.onOpenChange(false)}
|
|
225
|
+
class="text-xs h-7.5 px-3 cursor-pointer"
|
|
226
|
+
>
|
|
227
|
+
Later
|
|
228
|
+
</Button>
|
|
229
|
+
<Button
|
|
230
|
+
variant="default"
|
|
231
|
+
size="sm"
|
|
232
|
+
onClick={() => local.updater.relaunch()}
|
|
233
|
+
class="text-xs h-7.5 px-3 gap-1.5 cursor-pointer font-semibold shadow-xs"
|
|
234
|
+
>
|
|
235
|
+
<RotateCcw class="size-3.5" />
|
|
236
|
+
<span>Relaunch</span>
|
|
237
|
+
</Button>
|
|
238
|
+
</Show>
|
|
239
|
+
|
|
240
|
+
<Show when={status() === "up-to-date" || status() === "idle"}>
|
|
241
|
+
<Button
|
|
242
|
+
variant="outline"
|
|
243
|
+
size="sm"
|
|
244
|
+
onClick={() => local.onOpenChange(false)}
|
|
245
|
+
class="text-xs h-7.5 px-3 cursor-pointer"
|
|
246
|
+
>
|
|
247
|
+
Close
|
|
248
|
+
</Button>
|
|
249
|
+
</Show>
|
|
250
|
+
</DialogFooter>
|
|
251
|
+
</DialogContent>
|
|
252
|
+
</Dialog>
|
|
253
|
+
);
|
|
254
|
+
};
|
package/src/registry/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface RegistryFile {
|
|
|
9
9
|
/** The full raw text content of the file */
|
|
10
10
|
content: string;
|
|
11
11
|
/** The category type of the file */
|
|
12
|
-
type: "registry:ui" | "registry:util" | "registry:hook";
|
|
12
|
+
type: "registry:ui" | "registry:util" | "registry:hook" | "registry:block";
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -23,7 +23,7 @@ export interface RegistryItem {
|
|
|
23
23
|
/** Short summary describing the component */
|
|
24
24
|
description: string;
|
|
25
25
|
/** Component category type */
|
|
26
|
-
type: "registry:ui" | "registry:util" | "registry:hook";
|
|
26
|
+
type: "registry:ui" | "registry:util" | "registry:hook" | "registry:block";
|
|
27
27
|
/** Required NPM dependencies to be installed automatically (e.g., ["clsx", "tailwind-merge"]) */
|
|
28
28
|
dependencies?: string[];
|
|
29
29
|
/** Internal Nikala UI component dependencies required by this component (e.g., ["button"]) */
|
|
@@ -39,7 +39,7 @@ export interface RegistryIndexItem {
|
|
|
39
39
|
name: string;
|
|
40
40
|
title: string;
|
|
41
41
|
description: string;
|
|
42
|
-
type: "registry:ui" | "registry:util" | "registry:hook";
|
|
42
|
+
type: "registry:ui" | "registry:util" | "registry:hook" | "registry:block";
|
|
43
43
|
dependencies?: string[];
|
|
44
44
|
registryDependencies?: string[];
|
|
45
45
|
}
|
package/src/registry/metadata.ts
CHANGED
|
@@ -16,6 +16,12 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
16
16
|
dependencies: ["clsx", "tailwind-merge", "class-variance-authority"],
|
|
17
17
|
registryDependencies: ["spinner"],
|
|
18
18
|
},
|
|
19
|
+
"button-group": {
|
|
20
|
+
title: "Button Group",
|
|
21
|
+
description: "Groups related buttons into a connected horizontal or vertical control.",
|
|
22
|
+
dependencies: ["clsx", "tailwind-merge"],
|
|
23
|
+
registryDependencies: ["button"],
|
|
24
|
+
},
|
|
19
25
|
input: {
|
|
20
26
|
title: "Input",
|
|
21
27
|
description: "A standard text input field with styling variants.",
|
|
@@ -50,7 +56,7 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
50
56
|
"form-message": {
|
|
51
57
|
title: "Form Message",
|
|
52
58
|
description: "Validation message helper connected to createForm errors and touched state.",
|
|
53
|
-
registryDependencies: ["field"],
|
|
59
|
+
registryDependencies: ["field", "create-form"],
|
|
54
60
|
},
|
|
55
61
|
field: {
|
|
56
62
|
title: "Field",
|
|
@@ -97,11 +103,13 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
97
103
|
title: "Switch",
|
|
98
104
|
description: "A control that allows the user to toggle between checked and unchecked states.",
|
|
99
105
|
dependencies: ["clsx", "tailwind-merge"],
|
|
106
|
+
registryDependencies: ["create-controllable-signal"],
|
|
100
107
|
},
|
|
101
108
|
checkbox: {
|
|
102
109
|
title: "Checkbox",
|
|
103
110
|
description: "A control that allows the user to toggle between checked and unchecked options.",
|
|
104
111
|
dependencies: ["clsx", "tailwind-merge"],
|
|
112
|
+
registryDependencies: ["create-controllable-signal"],
|
|
105
113
|
},
|
|
106
114
|
"radio-group": {
|
|
107
115
|
title: "Radio Group",
|
|
@@ -112,7 +120,7 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
112
120
|
title: "Select",
|
|
113
121
|
description: "Displays a list of options for the user to pick from, built on Kobalte primitives.",
|
|
114
122
|
dependencies: ["clsx", "tailwind-merge", "@kobalte/core"],
|
|
115
|
-
registryDependencies: ["scroll-area"],
|
|
123
|
+
registryDependencies: ["scroll-area", "create-click-outside"],
|
|
116
124
|
},
|
|
117
125
|
combobox: {
|
|
118
126
|
title: "Combobox",
|
|
@@ -124,6 +132,7 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
124
132
|
title: "Tabs",
|
|
125
133
|
description: "A set of layered sections of content displayed one at a time.",
|
|
126
134
|
dependencies: ["clsx", "tailwind-merge"],
|
|
135
|
+
registryDependencies: ["create-controllable-signal"],
|
|
127
136
|
},
|
|
128
137
|
accordion: {
|
|
129
138
|
title: "Accordion",
|
|
@@ -156,13 +165,13 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
156
165
|
title: "Dropdown Menu",
|
|
157
166
|
description: "Displays a menu to the user—such as a set of actions or functions—triggered by a button or avatar.",
|
|
158
167
|
dependencies: ["clsx", "tailwind-merge", "@kobalte/core"],
|
|
159
|
-
registryDependencies: ["scroll-area"],
|
|
168
|
+
registryDependencies: ["scroll-area", "create-click-outside"],
|
|
160
169
|
},
|
|
161
170
|
"theme-manager": {
|
|
162
171
|
title: "Theme Manager",
|
|
163
172
|
description: "Zero-dependency ThemeProvider and ThemeToggle component for switching light, dark, and system themes.",
|
|
164
173
|
dependencies: ["clsx", "tailwind-merge", "@kobalte/core", "lucide-solid"],
|
|
165
|
-
registryDependencies: ["button", "dropdown-menu"],
|
|
174
|
+
registryDependencies: ["button", "dropdown-menu", "create-color-mode"],
|
|
166
175
|
},
|
|
167
176
|
banner: {
|
|
168
177
|
title: "Banner",
|
|
@@ -195,7 +204,7 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
195
204
|
"lucide-solid",
|
|
196
205
|
"@kobalte/core",
|
|
197
206
|
],
|
|
198
|
-
registryDependencies: ["kbd", "input-group", "list", "scroll-area"],
|
|
207
|
+
registryDependencies: ["kbd", "input-group", "list", "scroll-area", "create-keybindings"],
|
|
199
208
|
},
|
|
200
209
|
toast: {
|
|
201
210
|
title: "Toast / Sonner",
|
|
@@ -211,6 +220,7 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
211
220
|
title: "Popover",
|
|
212
221
|
description: "Displays rich content in a portal layer triggered by a button, built on Kobalte primitives.",
|
|
213
222
|
dependencies: ["clsx", "tailwind-merge", "@kobalte/core", "lucide-solid"],
|
|
223
|
+
registryDependencies: ["create-click-outside"],
|
|
214
224
|
},
|
|
215
225
|
progress: {
|
|
216
226
|
title: "Progress",
|
|
@@ -271,6 +281,110 @@ export const COMPONENT_METADATA: Record<string, ComponentMeta> = {
|
|
|
271
281
|
description: "Profile and link preview popover triggered on hover, built on Kobalte primitives.",
|
|
272
282
|
dependencies: ["clsx", "tailwind-merge", "@kobalte/core"],
|
|
273
283
|
},
|
|
284
|
+
table: {
|
|
285
|
+
title: "Table",
|
|
286
|
+
description: "A responsive and accessible data table component with headers, rows, cells, and footer summaries.",
|
|
287
|
+
dependencies: ["clsx", "tailwind-merge"],
|
|
288
|
+
},
|
|
289
|
+
dropzone: {
|
|
290
|
+
title: "Dropzone",
|
|
291
|
+
description: "A compound drag-and-drop file upload container with file list previews and validation feedback.",
|
|
292
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
293
|
+
registryDependencies: ["create-drop-zone"],
|
|
294
|
+
},
|
|
295
|
+
"toggle-group": {
|
|
296
|
+
title: "Toggle Group",
|
|
297
|
+
description: "A set of two-state buttons that can be toggled on or off with single or multiple selection modes.",
|
|
298
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority"],
|
|
299
|
+
registryDependencies: ["create-controllable-signal"],
|
|
300
|
+
},
|
|
301
|
+
timeline: {
|
|
302
|
+
title: "Timeline",
|
|
303
|
+
description: "A responsive chronological display for event streams, activity logs, order tracking, and multi-step workflows.",
|
|
304
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority"],
|
|
305
|
+
},
|
|
306
|
+
"navigation-menu": {
|
|
307
|
+
title: "Navigation Menu",
|
|
308
|
+
description: "A responsive and accessible top header navigation menu with mega-menu dropdowns and link previews.",
|
|
309
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
310
|
+
registryDependencies: ["create-click-outside"],
|
|
311
|
+
},
|
|
312
|
+
navbar: {
|
|
313
|
+
title: "Navbar",
|
|
314
|
+
description: "A responsive, accessible, and composable top navigation header suite supporting nested dropdown flyouts, floating card containers, and mobile navigation drawers.",
|
|
315
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
316
|
+
},
|
|
317
|
+
footer: {
|
|
318
|
+
title: "Footer",
|
|
319
|
+
description: "A responsive, accessible, and structured bottom navigation layout suite supporting multi-column link directories, brand sections, and newsletter inputs.",
|
|
320
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority"],
|
|
321
|
+
},
|
|
322
|
+
stat: {
|
|
323
|
+
title: "Stat",
|
|
324
|
+
description: "Display key performance indicators, statistics, financial data, and metrics with trends and icons.",
|
|
325
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
326
|
+
},
|
|
327
|
+
marquee: {
|
|
328
|
+
title: "Marquee",
|
|
329
|
+
description: "A smooth, GPU-accelerated infinite scrolling ticker component for logo clouds, testimonials, and live ribbons.",
|
|
330
|
+
dependencies: ["clsx", "tailwind-merge"],
|
|
331
|
+
},
|
|
332
|
+
"review-card": {
|
|
333
|
+
title: "Review Card",
|
|
334
|
+
description: "A versatile, structured card component for customer testimonials, product ratings, verified buyer badges, and social proof.",
|
|
335
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
336
|
+
registryDependencies: ["avatar", "rating"],
|
|
337
|
+
},
|
|
338
|
+
rating: {
|
|
339
|
+
title: "Rating",
|
|
340
|
+
description: "An accessible star rating component supporting interactive inputs, hover preview states, and read-only score badges.",
|
|
341
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
342
|
+
},
|
|
343
|
+
pagination: {
|
|
344
|
+
title: "Pagination",
|
|
345
|
+
description: "An accessible multi-page navigation bar with previous, next, page numbers, and ellipsis controls.",
|
|
346
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
347
|
+
registryDependencies: ["create-pagination"],
|
|
348
|
+
},
|
|
349
|
+
message: {
|
|
350
|
+
title: "Message",
|
|
351
|
+
description: "A structured chat and conversation message layout with avatars, alignment, headers, footers, and actions.",
|
|
352
|
+
dependencies: ["clsx", "tailwind-merge"],
|
|
353
|
+
},
|
|
354
|
+
bubble: {
|
|
355
|
+
title: "Bubble",
|
|
356
|
+
description: "Chat message bubble container supporting variants, grouped consecutive bubbles, and emoji reactions.",
|
|
357
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority"],
|
|
358
|
+
},
|
|
359
|
+
marker: {
|
|
360
|
+
title: "Marker",
|
|
361
|
+
description: "System chat events, date dividers, and live typing indicator badges.",
|
|
362
|
+
dependencies: ["clsx", "tailwind-merge"],
|
|
363
|
+
},
|
|
364
|
+
sidebar: {
|
|
365
|
+
title: "Sidebar",
|
|
366
|
+
description: "A composable, collapsible, and accessible application sidebar navigation suite with icon mode, mobile drawer, and keyboard shortcuts.",
|
|
367
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
368
|
+
registryDependencies: ["tooltip", "skeleton", "separator"],
|
|
369
|
+
},
|
|
370
|
+
titlebar: {
|
|
371
|
+
title: "Titlebar",
|
|
372
|
+
description: "A native-feeling custom titlebar for frameless desktop windows supporting macOS Traffic Lights and Windows 11 controls.",
|
|
373
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
374
|
+
registryDependencies: ["titlebar-tabs", "button", "tooltip", "create-tauri-window", "create-document-tabs"],
|
|
375
|
+
},
|
|
376
|
+
"titlebar-tabs": {
|
|
377
|
+
title: "Titlebar Tabs",
|
|
378
|
+
description: "Native draggable tab bar integrated directly inside desktop titlebars for multi-document applications.",
|
|
379
|
+
dependencies: ["clsx", "tailwind-merge", "class-variance-authority", "lucide-solid"],
|
|
380
|
+
registryDependencies: ["button", "tooltip", "create-document-tabs"],
|
|
381
|
+
},
|
|
382
|
+
"updater-modal": {
|
|
383
|
+
title: "Updater Modal",
|
|
384
|
+
description: "An automated application auto-updater dialog for Tauri v2 with release notes preview, download progress bar, and relaunch actions.",
|
|
385
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
386
|
+
registryDependencies: ["dialog", "button", "badge", "progress", "alert", "create-app-updater"],
|
|
387
|
+
},
|
|
274
388
|
};
|
|
275
389
|
|
|
276
390
|
/**
|
|
@@ -437,4 +551,69 @@ export const HOOK_METADATA: Record<string, ComponentMeta> = {
|
|
|
437
551
|
title: "createScrollIntoView",
|
|
438
552
|
description: "SolidJS reactive primitive for scrolling a target element into view smooth or auto behavior",
|
|
439
553
|
},
|
|
554
|
+
"create-drop-zone": {
|
|
555
|
+
title: "createDropZone",
|
|
556
|
+
description: "SolidJS reactive primitive for file drag & drop operations, validation, and file chooser dialogs",
|
|
557
|
+
},
|
|
558
|
+
"create-pagination": {
|
|
559
|
+
title: "createPagination",
|
|
560
|
+
description: "SolidJS reactive primitive for computing pagination state, dynamic page ranges with ellipses, and navigation controls",
|
|
561
|
+
},
|
|
562
|
+
"create-chat-scroll": {
|
|
563
|
+
title: "createChatScroll",
|
|
564
|
+
description: "SolidJS reactive primitive for automated chat container scrolling with manual scroll-up detection",
|
|
565
|
+
},
|
|
566
|
+
"create-tauri-window": {
|
|
567
|
+
title: "createTauriWindow",
|
|
568
|
+
description: "SolidJS reactive primitive for interacting with and controlling Tauri v2 application window states",
|
|
569
|
+
},
|
|
570
|
+
"create-global-shortcut": {
|
|
571
|
+
title: "createGlobalShortcut",
|
|
572
|
+
description: "SolidJS reactive primitive for registering OS-level global keyboard shortcuts via Tauri v2 plugin",
|
|
573
|
+
},
|
|
574
|
+
"create-app-updater": {
|
|
575
|
+
title: "createAppUpdater",
|
|
576
|
+
description: "SolidJS reactive primitive for controlling and observing Tauri v2 application updates",
|
|
577
|
+
},
|
|
578
|
+
"create-document-tabs": {
|
|
579
|
+
title: "createDocumentTabs",
|
|
580
|
+
description: "SolidJS reactive primitive for managing multi-document tabs, editor buffers, and browser tab stacks with adjacent activation and pinned state",
|
|
581
|
+
},
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Static metadata configuration for ready-to-use application and marketing blocks.
|
|
586
|
+
*/
|
|
587
|
+
export const BLOCK_METADATA: Record<string, ComponentMeta> = {
|
|
588
|
+
"hero-01": {
|
|
589
|
+
title: "Hero 01 — Simple Centered with Actions",
|
|
590
|
+
description: "A clean centered hero section with badge pill, high-contrast headline, and dual CTA buttons.",
|
|
591
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
592
|
+
registryDependencies: ["button", "badge"],
|
|
593
|
+
},
|
|
594
|
+
"login-01": {
|
|
595
|
+
title: "Login 01 — Split Screen with Social Auth & Testimonial",
|
|
596
|
+
description: "A modern split-screen authentication page block with OAuth providers, email sign-in form, and brand testimonial visual.",
|
|
597
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
598
|
+
registryDependencies: ["button", "input", "label", "checkbox", "separator", "form", "field", "form-message"],
|
|
599
|
+
},
|
|
600
|
+
"register-01": {
|
|
601
|
+
title: "Register 01 — Sign-Up Card with Password Strength",
|
|
602
|
+
description: "A comprehensive sign-up card featuring social logins, live password strength meter with validation checklist, and terms agreement.",
|
|
603
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
604
|
+
registryDependencies: ["card", "input", "label", "button", "checkbox", "progress", "badge", "separator", "form", "field", "form-message"],
|
|
605
|
+
},
|
|
606
|
+
"otp-verification-01": {
|
|
607
|
+
title: "OTP Verification 01 — Two-Factor Security Code",
|
|
608
|
+
description: "A clean 2-Factor Authentication block with a 6-digit PIN input, countdown resend timer, and security notifications.",
|
|
609
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
610
|
+
registryDependencies: ["card", "pin-input", "button", "alert", "badge", "form"],
|
|
611
|
+
},
|
|
612
|
+
"forgot-password-01": {
|
|
613
|
+
title: "Forgot Password 01 — Account Recovery Flow",
|
|
614
|
+
description: "A sleek password recovery block with email instructions submission and success confirmation states.",
|
|
615
|
+
dependencies: ["clsx", "tailwind-merge", "lucide-solid"],
|
|
616
|
+
registryDependencies: ["card", "input", "label", "button", "alert", "form", "field", "form-message"],
|
|
617
|
+
},
|
|
440
618
|
};
|
|
619
|
+
|