@krak-stack/registry 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/app-brand.d.ts +26 -0
- package/dist/components/ui/app-brand.js +78 -0
- package/dist/components/ui/attachment.d.ts +23 -0
- package/dist/components/ui/badge.d.ts +7 -0
- package/dist/components/ui/button.d.ts +8 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts +3 -0
- package/dist/components/ui/code-block.d.ts +14 -0
- package/dist/components/ui/code-block.js +224 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/copy-button.d.ts +18 -0
- package/dist/components/ui/copy-button.js +133 -0
- package/dist/components/ui/data-table.d.ts +264 -0
- package/dist/components/ui/data-table.js +3594 -0
- package/dist/components/ui/dialog.d.ts +13 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/editing-locale-switcher.d.ts +7 -0
- package/dist/components/ui/editing-locale-switcher.js +626 -0
- package/dist/components/ui/effect-form.d.ts +137 -0
- package/dist/components/ui/effect-form.js +2330 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/file-picker.d.ts +30 -0
- package/dist/components/ui/file-picker.js +811 -0
- package/dist/components/ui/form.d.ts +402 -0
- package/dist/components/ui/form.js +2245 -0
- package/dist/components/ui/google-map.d.ts +103 -0
- package/dist/components/ui/google-map.js +754 -0
- package/dist/components/ui/icon-input.d.ts +9 -0
- package/dist/components/ui/icon-input.js +971 -0
- package/dist/components/ui/input-group.d.ts +17 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +3 -0
- package/dist/components/ui/loading.d.ts +7 -0
- package/dist/components/ui/loading.js +467 -0
- package/dist/components/ui/locale-switcher.d.ts +7 -0
- package/dist/components/ui/locale-switcher.js +632 -0
- package/dist/components/ui/pagination.d.ts +43 -0
- package/dist/components/ui/pagination.js +787 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/scroll-area.d.ts +4 -0
- package/dist/components/ui/search-menu.d.ts +34 -0
- package/dist/components/ui/search-menu.js +839 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sidebar-layout.d.ts +29 -0
- package/dist/components/ui/sidebar-layout.js +755 -0
- package/dist/components/ui/sidebar.d.ts +63 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/stats-card.d.ts +12 -0
- package/dist/components/ui/stats-card.js +125 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/theme-switcher.d.ts +29 -0
- package/dist/components/ui/theme-switcher.js +775 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/components/ui/virtualized-combobox.d.ts +54 -0
- package/dist/components/ui/virtualized-combobox.js +821 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/lib/query.d.ts +49 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/paraglide/runtime.d.ts +978 -0
- package/dist/services/embedding.d.ts +2 -0
- package/dist/services/embedding.js +23 -0
- package/dist/services/notification/channels/index.d.ts +22 -0
- package/dist/services/notification/channels/index.js +11 -0
- package/dist/services/notification/channels/ses/index.d.ts +51 -0
- package/dist/services/notification/channels/ses/index.js +145 -0
- package/dist/services/notification/channels/ses/schema.d.ts +13 -0
- package/dist/services/notification/channels/ses/schema.js +35 -0
- package/dist/services/notification/index.d.ts +15 -0
- package/dist/services/notification/index.js +67 -0
- package/dist/services/notification/schema.d.ts +10 -0
- package/dist/services/notification/schema.js +30 -0
- package/dist/services/opentelemetry.d.ts +8 -0
- package/dist/services/opentelemetry.js +23 -0
- package/dist/services/s3/index.d.ts +62 -0
- package/dist/services/s3/index.js +208 -0
- package/dist/services/s3/schema.d.ts +18 -0
- package/dist/services/s3/schema.js +37 -0
- package/package.json +218 -0
- package/tailwind.css +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
|
+
import { Input } from "./input.js";
|
|
6
|
+
import { Separator } from "./separator.js";
|
|
7
|
+
import { TooltipContent } from "./tooltip.js";
|
|
8
|
+
type SidebarContextProps = {
|
|
9
|
+
state: "expanded" | "collapsed";
|
|
10
|
+
open: boolean;
|
|
11
|
+
setOpen: (open: boolean) => void;
|
|
12
|
+
openMobile: boolean;
|
|
13
|
+
setOpenMobile: (open: boolean) => void;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
toggleSidebar: () => void;
|
|
16
|
+
};
|
|
17
|
+
declare function useSidebar(): SidebarContextProps;
|
|
18
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React.ComponentProps<"div"> & {
|
|
24
|
+
side?: "left" | "right";
|
|
25
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
26
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
29
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
|
|
30
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): React.JSX.Element;
|
|
31
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
|
|
32
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
33
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
34
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
|
|
35
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
36
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
37
|
+
declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<"div"> & React.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
38
|
+
declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
39
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
40
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
41
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
42
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
43
|
+
variant?: "default" | "outline" | null | undefined;
|
|
44
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
45
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
46
|
+
declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
47
|
+
isActive?: boolean;
|
|
48
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
49
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element;
|
|
50
|
+
declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
51
|
+
showOnHover?: boolean;
|
|
52
|
+
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
53
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
54
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
55
|
+
showIcon?: boolean;
|
|
56
|
+
}): React.JSX.Element;
|
|
57
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
58
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
59
|
+
declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
|
|
60
|
+
size?: "sm" | "md";
|
|
61
|
+
isActive?: boolean;
|
|
62
|
+
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
63
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
import { Card } from "./card.js";
|
|
3
|
+
export declare const StatsCard: ({ title, icon, value, description, children, className, size, valueClassName, }: {
|
|
4
|
+
title: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
description: string;
|
|
7
|
+
icon: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: ComponentProps<typeof Card>["size"];
|
|
11
|
+
valueClassName?: string;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// ../../src/components/ui/stats-card.tsx
|
|
2
|
+
import {
|
|
3
|
+
cloneElement,
|
|
4
|
+
isValidElement
|
|
5
|
+
} from "react";
|
|
6
|
+
|
|
7
|
+
// ../../src/lib/utils.ts
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
import { twMerge } from "tailwind-merge";
|
|
10
|
+
function cn(...inputs) {
|
|
11
|
+
return twMerge(clsx(inputs));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// ../../src/components/ui/card.tsx
|
|
15
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
16
|
+
function Card({
|
|
17
|
+
className,
|
|
18
|
+
size = "default",
|
|
19
|
+
...props
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
22
|
+
"data-slot": "card",
|
|
23
|
+
"data-size": size,
|
|
24
|
+
className: cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className),
|
|
25
|
+
...props
|
|
26
|
+
}, undefined, false, undefined, this);
|
|
27
|
+
}
|
|
28
|
+
function CardHeader({ className, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
30
|
+
"data-slot": "card-header",
|
|
31
|
+
className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className),
|
|
32
|
+
...props
|
|
33
|
+
}, undefined, false, undefined, this);
|
|
34
|
+
}
|
|
35
|
+
function CardTitle({ className, ...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
37
|
+
"data-slot": "card-title",
|
|
38
|
+
className: cn("text-base leading-normal font-medium group-data-[size=sm]/card:text-sm", className),
|
|
39
|
+
...props
|
|
40
|
+
}, undefined, false, undefined, this);
|
|
41
|
+
}
|
|
42
|
+
function CardDescription({ className, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
44
|
+
"data-slot": "card-description",
|
|
45
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
46
|
+
...props
|
|
47
|
+
}, undefined, false, undefined, this);
|
|
48
|
+
}
|
|
49
|
+
function CardContent({ className, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
51
|
+
"data-slot": "card-content",
|
|
52
|
+
className: cn("px-(--card-spacing)", className),
|
|
53
|
+
...props
|
|
54
|
+
}, undefined, false, undefined, this);
|
|
55
|
+
}
|
|
56
|
+
function CardFooter({ className, ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
58
|
+
"data-slot": "card-footer",
|
|
59
|
+
className: cn("flex items-center rounded-b-xl px-(--card-spacing) [.border-t]:pt-(--card-spacing)", className),
|
|
60
|
+
...props
|
|
61
|
+
}, undefined, false, undefined, this);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ../../src/components/ui/stats-card.tsx
|
|
65
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
66
|
+
var normalizeIcon = (icon) => {
|
|
67
|
+
if (!isValidElement(icon))
|
|
68
|
+
return icon;
|
|
69
|
+
return cloneElement(icon, {
|
|
70
|
+
className: ["size-4", icon.props.className].filter(Boolean).join(" ")
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
var StatsCard = ({
|
|
74
|
+
title,
|
|
75
|
+
icon,
|
|
76
|
+
value,
|
|
77
|
+
description,
|
|
78
|
+
children,
|
|
79
|
+
className,
|
|
80
|
+
size = "default",
|
|
81
|
+
valueClassName
|
|
82
|
+
}) => {
|
|
83
|
+
const normalizedIcon = normalizeIcon(icon);
|
|
84
|
+
return /* @__PURE__ */ jsxDEV2(Card, {
|
|
85
|
+
size,
|
|
86
|
+
className: [
|
|
87
|
+
"group-hover/card-link:ring-foreground/20 @container/card h-full flex-1 gap-4 transition-all duration-200 group-hover/card-link:-translate-y-0.5 group-hover/card-link:shadow-md",
|
|
88
|
+
className
|
|
89
|
+
].filter(Boolean).join(" "),
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ jsxDEV2(CardHeader, {
|
|
92
|
+
className: "relative",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ jsxDEV2(CardDescription, {
|
|
95
|
+
className: "flex items-center justify-between gap-2",
|
|
96
|
+
children: [
|
|
97
|
+
title,
|
|
98
|
+
normalizedIcon
|
|
99
|
+
]
|
|
100
|
+
}, undefined, true, undefined, this),
|
|
101
|
+
/* @__PURE__ */ jsxDEV2(CardTitle, {
|
|
102
|
+
className: [
|
|
103
|
+
"justify-center font-semibold text-2xl tabular-nums @[250px]/card:text-3xl",
|
|
104
|
+
valueClassName
|
|
105
|
+
].filter(Boolean).join(" "),
|
|
106
|
+
children: value
|
|
107
|
+
}, undefined, false, undefined, this)
|
|
108
|
+
]
|
|
109
|
+
}, undefined, true, undefined, this),
|
|
110
|
+
children ? /* @__PURE__ */ jsxDEV2(CardContent, {
|
|
111
|
+
children
|
|
112
|
+
}, undefined, false, undefined, this) : null,
|
|
113
|
+
/* @__PURE__ */ jsxDEV2(CardFooter, {
|
|
114
|
+
className: "flex-col items-start gap-1 text-sm",
|
|
115
|
+
children: /* @__PURE__ */ jsxDEV2("div", {
|
|
116
|
+
className: "text-muted-foreground text-xs",
|
|
117
|
+
children: description
|
|
118
|
+
}, undefined, false, undefined, this)
|
|
119
|
+
}, undefined, false, undefined, this)
|
|
120
|
+
]
|
|
121
|
+
}, title, true, undefined, this);
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
StatsCard
|
|
125
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): React.JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): React.JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): React.JSX.Element;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
type ThemeSwitcherMessages = Partial<Record<Theme | "title", string>>;
|
|
3
|
+
export declare const themes: readonly ["light", "dark", "system"];
|
|
4
|
+
export type Theme = "light" | "dark" | "system";
|
|
5
|
+
export type SystemTheme = "dark" | "light";
|
|
6
|
+
type ThemeProviderState = {
|
|
7
|
+
systemTheme: SystemTheme;
|
|
8
|
+
theme: Theme;
|
|
9
|
+
setTheme: (theme: Theme) => void;
|
|
10
|
+
};
|
|
11
|
+
type ThemePayload = {
|
|
12
|
+
systemTheme: SystemTheme;
|
|
13
|
+
theme: Theme;
|
|
14
|
+
};
|
|
15
|
+
type ThemeProviderProps = {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
initialTheme?: ThemePayload;
|
|
18
|
+
scriptDisabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
type ThemeSwitcherProps = {
|
|
21
|
+
messages?: ThemeSwitcherMessages;
|
|
22
|
+
options?: ReadonlyArray<Theme>;
|
|
23
|
+
value: Theme;
|
|
24
|
+
onChange: (value: Theme) => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const ThemeProvider: ({ children, initialTheme, scriptDisabled, }: ThemeProviderProps) => import("react").JSX.Element;
|
|
27
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
28
|
+
export declare const ThemeSwitcher: ({ messages, options, value, onChange, }: ThemeSwitcherProps) => import("react").JSX.Element;
|
|
29
|
+
export {};
|