@krak-stack/registry 0.1.3 → 0.1.4
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 +490 -490
- 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
|
@@ -9,28 +9,28 @@ function cn(...inputs) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
// ../../src/components/ui/label.tsx
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
"use client";
|
|
14
14
|
function Label({ className, ...props }) {
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx("label", {
|
|
16
16
|
"data-slot": "label",
|
|
17
17
|
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
|
|
18
18
|
...props
|
|
19
|
-
}
|
|
19
|
+
});
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// ../../src/components/ui/select.tsx
|
|
23
23
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
24
24
|
import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
|
|
25
|
-
import {
|
|
25
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
26
26
|
"use client";
|
|
27
27
|
var Select = SelectPrimitive.Root;
|
|
28
28
|
function SelectValue({ className, ...props }) {
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx2(SelectPrimitive.Value, {
|
|
30
30
|
"data-slot": "select-value",
|
|
31
31
|
className: cn("flex flex-1 text-left", className),
|
|
32
32
|
...props
|
|
33
|
-
}
|
|
33
|
+
});
|
|
34
34
|
}
|
|
35
35
|
function SelectTrigger({
|
|
36
36
|
className,
|
|
@@ -38,20 +38,20 @@ function SelectTrigger({
|
|
|
38
38
|
children,
|
|
39
39
|
...props
|
|
40
40
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
42
42
|
"data-slot": "select-trigger",
|
|
43
43
|
"data-size": size,
|
|
44
44
|
className: cn("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 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", className),
|
|
45
45
|
...props,
|
|
46
46
|
children: [
|
|
47
47
|
children,
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
render: /* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.Icon, {
|
|
49
|
+
render: /* @__PURE__ */ jsx2(ChevronDownIcon, {
|
|
50
50
|
className: "text-muted-foreground pointer-events-none size-4"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
53
|
]
|
|
54
|
-
}
|
|
54
|
+
});
|
|
55
55
|
}
|
|
56
56
|
function SelectContent({
|
|
57
57
|
className,
|
|
@@ -63,76 +63,76 @@ function SelectContent({
|
|
|
63
63
|
alignItemWithTrigger = true,
|
|
64
64
|
...props
|
|
65
65
|
}) {
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
children: /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ jsx2(SelectPrimitive.Portal, {
|
|
67
|
+
children: /* @__PURE__ */ jsx2(SelectPrimitive.Positioner, {
|
|
68
68
|
side,
|
|
69
69
|
sideOffset,
|
|
70
70
|
align,
|
|
71
71
|
alignOffset,
|
|
72
72
|
alignItemWithTrigger,
|
|
73
73
|
className: "isolate z-50",
|
|
74
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
|
|
75
75
|
"data-slot": "select-content",
|
|
76
76
|
"data-align-trigger": alignItemWithTrigger,
|
|
77
77
|
className: cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
78
78
|
...props,
|
|
79
79
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ jsx2(SelectScrollUpButton, {}),
|
|
81
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.List, {
|
|
82
82
|
children
|
|
83
|
-
}
|
|
84
|
-
/* @__PURE__ */
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ jsx2(SelectScrollDownButton, {})
|
|
85
85
|
]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
89
|
}
|
|
90
90
|
function SelectItem({
|
|
91
91
|
className,
|
|
92
92
|
children,
|
|
93
93
|
...props
|
|
94
94
|
}) {
|
|
95
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
96
96
|
"data-slot": "select-item",
|
|
97
97
|
className: cn("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
|
|
98
98
|
...props,
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.ItemText, {
|
|
101
101
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
102
102
|
children
|
|
103
|
-
}
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
render: /* @__PURE__ */
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.ItemIndicator, {
|
|
105
|
+
render: /* @__PURE__ */ jsx2("span", {
|
|
106
106
|
className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
|
|
107
|
-
}
|
|
108
|
-
children: /* @__PURE__ */
|
|
107
|
+
}),
|
|
108
|
+
children: /* @__PURE__ */ jsx2(CheckIcon, {
|
|
109
109
|
className: "pointer-events-none"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
112
|
]
|
|
113
|
-
}
|
|
113
|
+
});
|
|
114
114
|
}
|
|
115
115
|
function SelectScrollUpButton({
|
|
116
116
|
className,
|
|
117
117
|
...props
|
|
118
118
|
}) {
|
|
119
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ jsx2(SelectPrimitive.ScrollUpArrow, {
|
|
120
120
|
"data-slot": "select-scroll-up-button",
|
|
121
121
|
className: cn("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
122
122
|
...props,
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
}
|
|
123
|
+
children: /* @__PURE__ */ jsx2(ChevronUpIcon, {})
|
|
124
|
+
});
|
|
125
125
|
}
|
|
126
126
|
function SelectScrollDownButton({
|
|
127
127
|
className,
|
|
128
128
|
...props
|
|
129
129
|
}) {
|
|
130
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ jsx2(SelectPrimitive.ScrollDownArrow, {
|
|
131
131
|
"data-slot": "select-scroll-down-button",
|
|
132
132
|
className: cn("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
133
133
|
...props,
|
|
134
|
-
children: /* @__PURE__ */
|
|
135
|
-
}
|
|
134
|
+
children: /* @__PURE__ */ jsx2(ChevronDownIcon, {})
|
|
135
|
+
});
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// ../../src/paraglide/runtime.js
|
|
@@ -564,7 +564,7 @@ function isCustomStrategy(strategy2) {
|
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
// ../../src/components/ui/editing-locale-switcher.tsx
|
|
567
|
-
import {
|
|
567
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
568
568
|
var messages = {
|
|
569
569
|
en: { label: "Editing", en: "English", fr: "French" },
|
|
570
570
|
fr: { label: "Modification", en: "Anglais", fr: "Français" }
|
|
@@ -583,7 +583,7 @@ function EditingLocaleSwitcher({
|
|
|
583
583
|
{ value: "en", label: labels.en },
|
|
584
584
|
{ value: "fr", label: labels.fr }
|
|
585
585
|
];
|
|
586
|
-
return /* @__PURE__ */
|
|
586
|
+
return /* @__PURE__ */ jsxs2(Select, {
|
|
587
587
|
items: localeOptions,
|
|
588
588
|
value,
|
|
589
589
|
onValueChange: (nextValue) => {
|
|
@@ -592,34 +592,34 @@ function EditingLocaleSwitcher({
|
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
children: [
|
|
595
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ jsxs2(SelectTrigger, {
|
|
596
596
|
id: "editing-locale",
|
|
597
597
|
className: "w-full sm:w-fit",
|
|
598
598
|
children: [
|
|
599
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ jsxs2(Label, {
|
|
600
600
|
htmlFor: "editing-locale",
|
|
601
601
|
className: "text-muted-foreground text-sm",
|
|
602
602
|
children: [
|
|
603
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ jsx3(SquarePen, {
|
|
604
604
|
className: "size-4 sm:hidden"
|
|
605
|
-
}
|
|
606
|
-
/* @__PURE__ */
|
|
605
|
+
}),
|
|
606
|
+
/* @__PURE__ */ jsx3("div", {
|
|
607
607
|
className: "sr-only sm:not-sr-only",
|
|
608
608
|
children: labels.label
|
|
609
|
-
}
|
|
609
|
+
})
|
|
610
610
|
]
|
|
611
|
-
}
|
|
612
|
-
/* @__PURE__ */
|
|
611
|
+
}),
|
|
612
|
+
/* @__PURE__ */ jsx3(SelectValue, {})
|
|
613
613
|
]
|
|
614
|
-
}
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
children: localeOptions.map(({ value: value2, label }) => /* @__PURE__ */
|
|
614
|
+
}),
|
|
615
|
+
/* @__PURE__ */ jsx3(SelectContent, {
|
|
616
|
+
children: localeOptions.map(({ value: value2, label }) => /* @__PURE__ */ jsx3(SelectItem, {
|
|
617
617
|
value: value2,
|
|
618
618
|
children: label
|
|
619
|
-
}, value2
|
|
620
|
-
}
|
|
619
|
+
}, value2))
|
|
620
|
+
})
|
|
621
621
|
]
|
|
622
|
-
}
|
|
622
|
+
});
|
|
623
623
|
}
|
|
624
624
|
export {
|
|
625
625
|
EditingLocaleSwitcher
|