@krak-stack/registry 0.1.3 → 0.1.5
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/ui/app-brand.js +20 -20
- package/dist/components/ui/code-block.js +38 -38
- package/dist/components/ui/copy-button.js +16 -16
- package/dist/components/ui/data-table.js +687 -687
- package/dist/components/ui/editing-locale-switcher.js +54 -54
- package/dist/components/ui/effect-form.js +492 -492
- package/dist/components/ui/file-picker.js +96 -96
- package/dist/components/ui/form.js +418 -418
- package/dist/components/ui/google-map.js +27 -27
- package/dist/components/ui/icon-input.js +93 -93
- package/dist/components/ui/loading.js +5 -5
- package/dist/components/ui/locale-switcher.js +48 -48
- package/dist/components/ui/pagination.js +92 -92
- package/dist/components/ui/search-menu.js +93 -93
- package/dist/components/ui/sidebar-layout.js +156 -156
- package/dist/components/ui/stats-card.js +28 -28
- package/dist/components/ui/theme-switcher.js +64 -64
- package/dist/components/ui/virtualized-combobox.js +66 -66
- package/dist/lib/docs-ai.js +14 -14
- package/dist/lib/docs-core.js +396 -396
- package/dist/services/agent/client/index.js +364 -364
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ function cn(...inputs) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// ../../src/components/ui/button.tsx
|
|
17
|
-
import {
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md 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", {
|
|
19
19
|
variants: {
|
|
20
20
|
variant: {
|
|
@@ -47,11 +47,11 @@ function Button({
|
|
|
47
47
|
size = "default",
|
|
48
48
|
...props
|
|
49
49
|
}) {
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ jsx(ButtonPrimitive, {
|
|
51
51
|
"data-slot": "button",
|
|
52
52
|
className: cn(buttonVariants({ variant, size, className })),
|
|
53
53
|
...props
|
|
54
|
-
}
|
|
54
|
+
});
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// ../../src/components/ui/command.tsx
|
|
@@ -61,99 +61,99 @@ import { SearchIcon } from "lucide-react";
|
|
|
61
61
|
// ../../src/components/ui/dialog.tsx
|
|
62
62
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
63
63
|
import { XIcon } from "lucide-react";
|
|
64
|
-
import {
|
|
64
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
65
65
|
function Dialog({ ...props }) {
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ jsx2(DialogPrimitive.Root, {
|
|
67
67
|
"data-slot": "dialog",
|
|
68
68
|
...props
|
|
69
|
-
}
|
|
69
|
+
});
|
|
70
70
|
}
|
|
71
71
|
function DialogPortal({ ...props }) {
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx2(DialogPrimitive.Portal, {
|
|
73
73
|
"data-slot": "dialog-portal",
|
|
74
74
|
...props
|
|
75
|
-
}
|
|
75
|
+
});
|
|
76
76
|
}
|
|
77
77
|
function DialogOverlay({
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
80
|
}) {
|
|
81
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ jsx2(DialogPrimitive.Backdrop, {
|
|
82
82
|
"data-slot": "dialog-overlay",
|
|
83
83
|
className: cn("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", className),
|
|
84
84
|
...props
|
|
85
|
-
}
|
|
85
|
+
});
|
|
86
86
|
}
|
|
87
87
|
function DialogContent({
|
|
88
88
|
className,
|
|
89
89
|
children,
|
|
90
90
|
...props
|
|
91
91
|
}) {
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ jsxs(DialogPortal, {
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ jsx2(DialogOverlay, {}),
|
|
95
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Popup, {
|
|
96
96
|
"data-slot": "dialog-content",
|
|
97
97
|
className: cn("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-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-lg 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", className),
|
|
98
98
|
...props,
|
|
99
99
|
children: [
|
|
100
100
|
children,
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, {
|
|
102
102
|
className: "focus-visible:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none",
|
|
103
103
|
children: [
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ jsx2(XIcon, {
|
|
105
105
|
className: "size-4"
|
|
106
|
-
}
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ jsx2("span", {
|
|
108
108
|
className: "sr-only",
|
|
109
109
|
children: "Close"
|
|
110
|
-
}
|
|
110
|
+
})
|
|
111
111
|
]
|
|
112
|
-
}
|
|
112
|
+
})
|
|
113
113
|
]
|
|
114
|
-
}
|
|
114
|
+
})
|
|
115
115
|
]
|
|
116
|
-
}
|
|
116
|
+
});
|
|
117
117
|
}
|
|
118
118
|
function DialogHeader({ className, ...props }) {
|
|
119
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
120
120
|
"data-slot": "dialog-header",
|
|
121
121
|
className: cn("grid gap-1.5", className),
|
|
122
122
|
...props
|
|
123
|
-
}
|
|
123
|
+
});
|
|
124
124
|
}
|
|
125
125
|
function DialogTitle({
|
|
126
126
|
className,
|
|
127
127
|
...props
|
|
128
128
|
}) {
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ jsx2(DialogPrimitive.Title, {
|
|
130
130
|
"data-slot": "dialog-title",
|
|
131
131
|
className: cn("text-lg font-medium", className),
|
|
132
132
|
...props
|
|
133
|
-
}
|
|
133
|
+
});
|
|
134
134
|
}
|
|
135
135
|
function DialogDescription({
|
|
136
136
|
className,
|
|
137
137
|
...props
|
|
138
138
|
}) {
|
|
139
|
-
return /* @__PURE__ */
|
|
139
|
+
return /* @__PURE__ */ jsx2(DialogPrimitive.Description, {
|
|
140
140
|
"data-slot": "dialog-description",
|
|
141
141
|
className: cn("text-sm text-muted-foreground", className),
|
|
142
142
|
...props
|
|
143
|
-
}
|
|
143
|
+
});
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
// ../../src/components/ui/command.tsx
|
|
147
|
-
import {
|
|
147
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
148
148
|
function Command({
|
|
149
149
|
className,
|
|
150
150
|
...props
|
|
151
151
|
}) {
|
|
152
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ jsx3(CommandPrimitive, {
|
|
153
153
|
"data-slot": "command",
|
|
154
154
|
className: cn("flex size-full flex-col overflow-hidden rounded-xl bg-popover p-1 text-popover-foreground", className),
|
|
155
155
|
...props
|
|
156
|
-
}
|
|
156
|
+
});
|
|
157
157
|
}
|
|
158
158
|
function CommandDialog({
|
|
159
159
|
title,
|
|
@@ -162,98 +162,98 @@ function CommandDialog({
|
|
|
162
162
|
className,
|
|
163
163
|
...props
|
|
164
164
|
}) {
|
|
165
|
-
return /* @__PURE__ */
|
|
165
|
+
return /* @__PURE__ */ jsx3(Dialog, {
|
|
166
166
|
...props,
|
|
167
|
-
children: /* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ jsxs2(DialogContent, {
|
|
168
168
|
className: cn("top-1/3 translate-y-0 overflow-hidden rounded-xl p-0", className),
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ jsxs2(DialogHeader, {
|
|
171
171
|
className: "sr-only",
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ jsx3(DialogTitle, {
|
|
174
174
|
children: title
|
|
175
|
-
}
|
|
176
|
-
/* @__PURE__ */
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ jsx3(DialogDescription, {
|
|
177
177
|
children: description
|
|
178
|
-
}
|
|
178
|
+
})
|
|
179
179
|
]
|
|
180
|
-
}
|
|
180
|
+
}),
|
|
181
181
|
children
|
|
182
182
|
]
|
|
183
|
-
}
|
|
184
|
-
}
|
|
183
|
+
})
|
|
184
|
+
});
|
|
185
185
|
}
|
|
186
186
|
function CommandInput({
|
|
187
187
|
className,
|
|
188
188
|
...props
|
|
189
189
|
}) {
|
|
190
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ jsx3("div", {
|
|
191
191
|
"data-slot": "command-input-wrapper",
|
|
192
192
|
className: "p-1 pb-0",
|
|
193
|
-
children: /* @__PURE__ */
|
|
193
|
+
children: /* @__PURE__ */ jsxs2("div", {
|
|
194
194
|
className: "border-input/30 bg-input/30 flex h-9 items-center gap-2 rounded-lg border px-2 shadow-none",
|
|
195
195
|
children: [
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ jsx3(SearchIcon, {
|
|
197
197
|
className: "size-4 shrink-0 opacity-50"
|
|
198
|
-
}
|
|
199
|
-
/* @__PURE__ */
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ jsx3(CommandPrimitive.Input, {
|
|
200
200
|
"data-slot": "command-input",
|
|
201
201
|
className: cn("w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
202
202
|
...props
|
|
203
|
-
}
|
|
203
|
+
})
|
|
204
204
|
]
|
|
205
|
-
}
|
|
206
|
-
}
|
|
205
|
+
})
|
|
206
|
+
});
|
|
207
207
|
}
|
|
208
208
|
function CommandList({
|
|
209
209
|
className,
|
|
210
210
|
...props
|
|
211
211
|
}) {
|
|
212
|
-
return /* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ jsx3(CommandPrimitive.List, {
|
|
213
213
|
"data-slot": "command-list",
|
|
214
214
|
className: cn("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className),
|
|
215
215
|
...props
|
|
216
|
-
}
|
|
216
|
+
});
|
|
217
217
|
}
|
|
218
218
|
function CommandEmpty({
|
|
219
219
|
className,
|
|
220
220
|
...props
|
|
221
221
|
}) {
|
|
222
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ jsx3(CommandPrimitive.Empty, {
|
|
223
223
|
"data-slot": "command-empty",
|
|
224
224
|
className: cn("py-6 text-center text-sm", className),
|
|
225
225
|
...props
|
|
226
|
-
}
|
|
226
|
+
});
|
|
227
227
|
}
|
|
228
228
|
function CommandGroup({
|
|
229
229
|
className,
|
|
230
230
|
...props
|
|
231
231
|
}) {
|
|
232
|
-
return /* @__PURE__ */
|
|
232
|
+
return /* @__PURE__ */ jsx3(CommandPrimitive.Group, {
|
|
233
233
|
"data-slot": "command-group",
|
|
234
234
|
className: cn("overflow-hidden p-1 text-foreground **:[[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-muted-foreground", className),
|
|
235
235
|
...props
|
|
236
|
-
}
|
|
236
|
+
});
|
|
237
237
|
}
|
|
238
238
|
function CommandItem({
|
|
239
239
|
className,
|
|
240
240
|
...props
|
|
241
241
|
}) {
|
|
242
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ jsx3(CommandPrimitive.Item, {
|
|
243
243
|
"data-slot": "command-item",
|
|
244
244
|
className: cn("group/command-item relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
245
245
|
...props
|
|
246
|
-
}
|
|
246
|
+
});
|
|
247
247
|
}
|
|
248
248
|
function CommandShortcut({
|
|
249
249
|
className,
|
|
250
250
|
...props
|
|
251
251
|
}) {
|
|
252
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ jsx3("span", {
|
|
253
253
|
"data-slot": "command-shortcut",
|
|
254
254
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", className),
|
|
255
255
|
...props
|
|
256
|
-
}
|
|
256
|
+
});
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
// ../../src/paraglide/runtime.js
|
|
@@ -685,7 +685,7 @@ function isCustomStrategy(strategy2) {
|
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
// ../../src/components/ui/search-menu.tsx
|
|
688
|
-
import {
|
|
688
|
+
import { jsx as jsx4, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
|
|
689
689
|
var messages = {
|
|
690
690
|
en: {
|
|
691
691
|
title: "Search",
|
|
@@ -749,9 +749,9 @@ function SearchMenu({
|
|
|
749
749
|
document.addEventListener("keydown", onKeyDown);
|
|
750
750
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
751
751
|
}, [isOpen, setOpen]);
|
|
752
|
-
return /* @__PURE__ */
|
|
752
|
+
return /* @__PURE__ */ jsxs3(Fragment, {
|
|
753
753
|
children: [
|
|
754
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ jsxs3(Button, {
|
|
755
755
|
"aria-label": resolvedPlaceholder,
|
|
756
756
|
type: "button",
|
|
757
757
|
variant: "outline",
|
|
@@ -759,40 +759,40 @@ function SearchMenu({
|
|
|
759
759
|
className: cn("sm:h-9 sm:w-64 sm:justify-start sm:gap-2.5 sm:px-2.5 sm:font-normal", className),
|
|
760
760
|
onClick: () => setOpen(true),
|
|
761
761
|
children: [
|
|
762
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ jsx4(SearchIcon2, {
|
|
763
763
|
className: "size-4 shrink-0"
|
|
764
|
-
}
|
|
765
|
-
/* @__PURE__ */
|
|
764
|
+
}),
|
|
765
|
+
/* @__PURE__ */ jsx4("span", {
|
|
766
766
|
className: "text-muted-foreground hidden min-w-0 flex-1 truncate text-left font-normal sm:block",
|
|
767
767
|
children: resolvedPlaceholder
|
|
768
|
-
}
|
|
769
|
-
/* @__PURE__ */
|
|
768
|
+
}),
|
|
769
|
+
/* @__PURE__ */ jsx4("kbd", {
|
|
770
770
|
className: "bg-muted text-muted-foreground pointer-events-none hidden h-5 items-center rounded border px-1.5 font-mono text-[10px] font-medium sm:inline-flex",
|
|
771
771
|
children: shortcutLabel
|
|
772
|
-
}
|
|
772
|
+
})
|
|
773
773
|
]
|
|
774
|
-
}
|
|
775
|
-
/* @__PURE__ */
|
|
774
|
+
}),
|
|
775
|
+
/* @__PURE__ */ jsx4(CommandDialog, {
|
|
776
776
|
open: isOpen,
|
|
777
777
|
onOpenChange: setOpen,
|
|
778
778
|
title: resolvedTitle,
|
|
779
779
|
description: resolvedDescription,
|
|
780
|
-
children: /* @__PURE__ */
|
|
780
|
+
children: /* @__PURE__ */ jsxs3(Command, {
|
|
781
781
|
...shouldFilter === undefined ? {} : { shouldFilter },
|
|
782
782
|
children: [
|
|
783
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ jsx4(CommandInput, {
|
|
784
784
|
placeholder: resolvedInputPlaceholder,
|
|
785
785
|
...query === undefined ? {} : { value: query },
|
|
786
786
|
...onQueryChange ? { onValueChange: onQueryChange } : {}
|
|
787
|
-
}
|
|
788
|
-
/* @__PURE__ */
|
|
787
|
+
}),
|
|
788
|
+
/* @__PURE__ */ jsxs3(CommandList, {
|
|
789
789
|
children: [
|
|
790
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ jsx4(CommandEmpty, {
|
|
791
791
|
children: resolvedEmptyMessage
|
|
792
|
-
}
|
|
793
|
-
groups.map((group) => /* @__PURE__ */
|
|
792
|
+
}),
|
|
793
|
+
groups.map((group) => /* @__PURE__ */ jsx4(CommandGroup, {
|
|
794
794
|
heading: group.heading,
|
|
795
|
-
children: group.items.map((item) => /* @__PURE__ */
|
|
795
|
+
children: group.items.map((item) => /* @__PURE__ */ jsxs3(CommandItem, {
|
|
796
796
|
className: "data-[selected=false]:!text-foreground data-[selected=true]:bg-muted data-[selected=true]:text-foreground gap-3 py-2 data-[selected=false]:!bg-transparent",
|
|
797
797
|
value: item.label,
|
|
798
798
|
...item.keywords ? { keywords: item.keywords } : {},
|
|
@@ -803,36 +803,36 @@ function SearchMenu({
|
|
|
803
803
|
},
|
|
804
804
|
...item.disabled === undefined ? {} : { disabled: item.disabled },
|
|
805
805
|
children: [
|
|
806
|
-
item.icon ? /* @__PURE__ */
|
|
806
|
+
item.icon ? /* @__PURE__ */ jsx4("div", {
|
|
807
807
|
className: "text-muted-foreground bg-background group-data-[selected=true]/command-item:bg-background flex size-8 shrink-0 items-center justify-center rounded-md border",
|
|
808
808
|
children: item.icon
|
|
809
|
-
}
|
|
810
|
-
/* @__PURE__ */
|
|
809
|
+
}) : null,
|
|
810
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
811
811
|
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
812
812
|
children: [
|
|
813
|
-
/* @__PURE__ */
|
|
813
|
+
/* @__PURE__ */ jsx4("span", {
|
|
814
814
|
className: "truncate font-medium",
|
|
815
815
|
children: item.label
|
|
816
|
-
}
|
|
817
|
-
item.description ? /* @__PURE__ */
|
|
816
|
+
}),
|
|
817
|
+
item.description ? /* @__PURE__ */ jsx4("span", {
|
|
818
818
|
className: "text-muted-foreground truncate text-xs",
|
|
819
819
|
children: item.description
|
|
820
|
-
}
|
|
820
|
+
}) : null
|
|
821
821
|
]
|
|
822
|
-
}
|
|
823
|
-
item.shortcut ? /* @__PURE__ */
|
|
822
|
+
}),
|
|
823
|
+
item.shortcut ? /* @__PURE__ */ jsx4(CommandShortcut, {
|
|
824
824
|
children: item.shortcut
|
|
825
|
-
}
|
|
825
|
+
}) : null
|
|
826
826
|
]
|
|
827
|
-
}, item.id
|
|
828
|
-
}, group.heading
|
|
827
|
+
}, item.id))
|
|
828
|
+
}, group.heading))
|
|
829
829
|
]
|
|
830
|
-
}
|
|
830
|
+
})
|
|
831
831
|
]
|
|
832
|
-
}
|
|
833
|
-
}
|
|
832
|
+
})
|
|
833
|
+
})
|
|
834
834
|
]
|
|
835
|
-
}
|
|
835
|
+
});
|
|
836
836
|
}
|
|
837
837
|
export {
|
|
838
838
|
SearchMenu
|