@databricks/appkit-ui 0.1.2 → 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/AGENTS.md +1154 -0
- package/CLAUDE.md +1153 -2
- package/bin/setup-claude.js +1 -1
- package/dist/react/ui/accordion.d.ts +5 -5
- package/dist/react/ui/alert-dialog.d.ts +12 -12
- package/dist/react/ui/alert.d.ts +4 -4
- package/dist/react/ui/alert.d.ts.map +1 -1
- package/dist/react/ui/aspect-ratio.d.ts +2 -2
- package/dist/react/ui/avatar.d.ts +4 -4
- package/dist/react/ui/badge.d.ts +2 -2
- package/dist/react/ui/breadcrumb.d.ts +8 -8
- package/dist/react/ui/button-group.d.ts +4 -4
- package/dist/react/ui/button.d.ts +2 -2
- package/dist/react/ui/calendar.d.ts +3 -3
- package/dist/react/ui/card.d.ts +8 -8
- package/dist/react/ui/carousel.d.ts +6 -6
- package/dist/react/ui/chart.d.ts +5 -5
- package/dist/react/ui/chart.d.ts.map +1 -1
- package/dist/react/ui/checkbox.d.ts +2 -2
- package/dist/react/ui/collapsible.d.ts +4 -4
- package/dist/react/ui/command.d.ts +10 -10
- package/dist/react/ui/command.d.ts.map +1 -1
- package/dist/react/ui/context-menu.d.ts +16 -16
- package/dist/react/ui/dialog.d.ts +11 -11
- package/dist/react/ui/drawer.d.ts +11 -11
- package/dist/react/ui/dropdown-menu.d.ts +16 -16
- package/dist/react/ui/empty.d.ts +7 -7
- package/dist/react/ui/field.d.ts +11 -11
- package/dist/react/ui/form.d.ts +7 -7
- package/dist/react/ui/hover-card.d.ts +4 -4
- package/dist/react/ui/input-group.d.ts +7 -7
- package/dist/react/ui/input-otp.d.ts +5 -5
- package/dist/react/ui/input.d.ts +2 -2
- package/dist/react/ui/input.d.ts.map +1 -1
- package/dist/react/ui/item.d.ts +11 -11
- package/dist/react/ui/kbd.d.ts +3 -3
- package/dist/react/ui/label.d.ts +2 -2
- package/dist/react/ui/menubar.d.ts +17 -17
- package/dist/react/ui/navigation-menu.d.ts +9 -9
- package/dist/react/ui/pagination.d.ts +8 -8
- package/dist/react/ui/popover.d.ts +5 -5
- package/dist/react/ui/progress.d.ts +2 -2
- package/dist/react/ui/radio-group.d.ts +3 -3
- package/dist/react/ui/resizable.d.ts +4 -4
- package/dist/react/ui/scroll-area.d.ts +3 -3
- package/dist/react/ui/select.d.ts +11 -11
- package/dist/react/ui/separator.d.ts +2 -2
- package/dist/react/ui/sheet.d.ts +9 -9
- package/dist/react/ui/sidebar.d.ts +24 -24
- package/dist/react/ui/skeleton.d.ts +2 -2
- package/dist/react/ui/slider.d.ts +2 -2
- package/dist/react/ui/sonner.d.ts +2 -2
- package/dist/react/ui/spinner.d.ts +2 -2
- package/dist/react/ui/switch.d.ts +2 -2
- package/dist/react/ui/table.d.ts +9 -9
- package/dist/react/ui/tabs.d.ts +5 -5
- package/dist/react/ui/textarea.d.ts +2 -2
- package/dist/react/ui/toggle-group.d.ts +3 -3
- package/dist/react/ui/toggle.d.ts +2 -2
- package/dist/react/ui/tooltip.d.ts +5 -5
- package/dist/react/ui/tooltip.d.ts.map +1 -1
- package/llms.txt +123 -46
- package/package.json +3 -2
|
@@ -3,7 +3,7 @@ import { Separator } from "./separator.js";
|
|
|
3
3
|
import { Input } from "./input.js";
|
|
4
4
|
import { TooltipContent } from "./tooltip.js";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime225 from "react/jsx-runtime";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
9
9
|
|
|
@@ -30,7 +30,7 @@ declare function SidebarProvider({
|
|
|
30
30
|
defaultOpen?: boolean;
|
|
31
31
|
open?: boolean;
|
|
32
32
|
onOpenChange?: (open: boolean) => void;
|
|
33
|
-
}):
|
|
33
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
34
34
|
declare function Sidebar({
|
|
35
35
|
side,
|
|
36
36
|
variant,
|
|
@@ -42,70 +42,70 @@ declare function Sidebar({
|
|
|
42
42
|
side?: "left" | "right";
|
|
43
43
|
variant?: "sidebar" | "floating" | "inset";
|
|
44
44
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
45
|
-
}):
|
|
45
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
46
46
|
declare function SidebarTrigger({
|
|
47
47
|
className,
|
|
48
48
|
onClick,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof Button>):
|
|
50
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime225.JSX.Element;
|
|
51
51
|
declare function SidebarRail({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}: React.ComponentProps<"button">):
|
|
54
|
+
}: React.ComponentProps<"button">): react_jsx_runtime225.JSX.Element;
|
|
55
55
|
declare function SidebarInset({
|
|
56
56
|
className,
|
|
57
57
|
...props
|
|
58
|
-
}: React.ComponentProps<"main">):
|
|
58
|
+
}: React.ComponentProps<"main">): react_jsx_runtime225.JSX.Element;
|
|
59
59
|
declare function SidebarInput({
|
|
60
60
|
className,
|
|
61
61
|
...props
|
|
62
|
-
}: React.ComponentProps<typeof Input>):
|
|
62
|
+
}: React.ComponentProps<typeof Input>): react_jsx_runtime225.JSX.Element;
|
|
63
63
|
declare function SidebarHeader({
|
|
64
64
|
className,
|
|
65
65
|
...props
|
|
66
|
-
}: React.ComponentProps<"div">):
|
|
66
|
+
}: React.ComponentProps<"div">): react_jsx_runtime225.JSX.Element;
|
|
67
67
|
declare function SidebarFooter({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<"div">):
|
|
70
|
+
}: React.ComponentProps<"div">): react_jsx_runtime225.JSX.Element;
|
|
71
71
|
declare function SidebarSeparator({
|
|
72
72
|
className,
|
|
73
73
|
...props
|
|
74
|
-
}: React.ComponentProps<typeof Separator>):
|
|
74
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime225.JSX.Element;
|
|
75
75
|
declare function SidebarContent({
|
|
76
76
|
className,
|
|
77
77
|
...props
|
|
78
|
-
}: React.ComponentProps<"div">):
|
|
78
|
+
}: React.ComponentProps<"div">): react_jsx_runtime225.JSX.Element;
|
|
79
79
|
declare function SidebarGroup({
|
|
80
80
|
className,
|
|
81
81
|
...props
|
|
82
|
-
}: React.ComponentProps<"div">):
|
|
82
|
+
}: React.ComponentProps<"div">): react_jsx_runtime225.JSX.Element;
|
|
83
83
|
declare function SidebarGroupLabel({
|
|
84
84
|
className,
|
|
85
85
|
asChild,
|
|
86
86
|
...props
|
|
87
87
|
}: React.ComponentProps<"div"> & {
|
|
88
88
|
asChild?: boolean;
|
|
89
|
-
}):
|
|
89
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
90
90
|
declare function SidebarGroupAction({
|
|
91
91
|
className,
|
|
92
92
|
asChild,
|
|
93
93
|
...props
|
|
94
94
|
}: React.ComponentProps<"button"> & {
|
|
95
95
|
asChild?: boolean;
|
|
96
|
-
}):
|
|
96
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
97
97
|
declare function SidebarGroupContent({
|
|
98
98
|
className,
|
|
99
99
|
...props
|
|
100
|
-
}: React.ComponentProps<"div">):
|
|
100
|
+
}: React.ComponentProps<"div">): react_jsx_runtime225.JSX.Element;
|
|
101
101
|
declare function SidebarMenu({
|
|
102
102
|
className,
|
|
103
103
|
...props
|
|
104
|
-
}: React.ComponentProps<"ul">):
|
|
104
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime225.JSX.Element;
|
|
105
105
|
declare function SidebarMenuItem({
|
|
106
106
|
className,
|
|
107
107
|
...props
|
|
108
|
-
}: React.ComponentProps<"li">):
|
|
108
|
+
}: React.ComponentProps<"li">): react_jsx_runtime225.JSX.Element;
|
|
109
109
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
110
110
|
variant?: "default" | "outline" | null | undefined;
|
|
111
111
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -122,7 +122,7 @@ declare function SidebarMenuButton({
|
|
|
122
122
|
asChild?: boolean;
|
|
123
123
|
isActive?: boolean;
|
|
124
124
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
125
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
125
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime225.JSX.Element;
|
|
126
126
|
declare function SidebarMenuAction({
|
|
127
127
|
className,
|
|
128
128
|
asChild,
|
|
@@ -131,26 +131,26 @@ declare function SidebarMenuAction({
|
|
|
131
131
|
}: React.ComponentProps<"button"> & {
|
|
132
132
|
asChild?: boolean;
|
|
133
133
|
showOnHover?: boolean;
|
|
134
|
-
}):
|
|
134
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
135
135
|
declare function SidebarMenuBadge({
|
|
136
136
|
className,
|
|
137
137
|
...props
|
|
138
|
-
}: React.ComponentProps<"div">):
|
|
138
|
+
}: React.ComponentProps<"div">): react_jsx_runtime225.JSX.Element;
|
|
139
139
|
declare function SidebarMenuSkeleton({
|
|
140
140
|
className,
|
|
141
141
|
showIcon,
|
|
142
142
|
...props
|
|
143
143
|
}: React.ComponentProps<"div"> & {
|
|
144
144
|
showIcon?: boolean;
|
|
145
|
-
}):
|
|
145
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
146
146
|
declare function SidebarMenuSub({
|
|
147
147
|
className,
|
|
148
148
|
...props
|
|
149
|
-
}: React.ComponentProps<"ul">):
|
|
149
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime225.JSX.Element;
|
|
150
150
|
declare function SidebarMenuSubItem({
|
|
151
151
|
className,
|
|
152
152
|
...props
|
|
153
|
-
}: React.ComponentProps<"li">):
|
|
153
|
+
}: React.ComponentProps<"li">): react_jsx_runtime225.JSX.Element;
|
|
154
154
|
declare function SidebarMenuSubButton({
|
|
155
155
|
asChild,
|
|
156
156
|
size,
|
|
@@ -161,7 +161,7 @@ declare function SidebarMenuSubButton({
|
|
|
161
161
|
asChild?: boolean;
|
|
162
162
|
size?: "sm" | "md";
|
|
163
163
|
isActive?: boolean;
|
|
164
|
-
}):
|
|
164
|
+
}): react_jsx_runtime225.JSX.Element;
|
|
165
165
|
//#endregion
|
|
166
166
|
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 };
|
|
167
167
|
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime248 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/react/ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"div">):
|
|
7
|
+
}: React.ComponentProps<"div">): react_jsx_runtime248.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
|
10
10
|
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime249 from "react/jsx-runtime";
|
|
3
3
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4
4
|
|
|
5
5
|
//#region src/react/ui/slider.d.ts
|
|
@@ -10,7 +10,7 @@ declare function Slider({
|
|
|
10
10
|
min,
|
|
11
11
|
max,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof SliderPrimitive.Root>):
|
|
13
|
+
}: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime249.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Slider };
|
|
16
16
|
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime250 from "react/jsx-runtime";
|
|
2
2
|
import { ToasterProps } from "sonner";
|
|
3
3
|
|
|
4
4
|
//#region src/react/ui/sonner.d.ts
|
|
5
5
|
declare const Toaster$1: ({
|
|
6
6
|
...props
|
|
7
|
-
}: ToasterProps) =>
|
|
7
|
+
}: ToasterProps) => react_jsx_runtime250.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Toaster$1 as Toaster };
|
|
10
10
|
//# sourceMappingURL=sonner.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime251 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/react/ui/spinner.d.ts
|
|
4
4
|
declare function Spinner({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"svg">):
|
|
7
|
+
}: React.ComponentProps<"svg">): react_jsx_runtime251.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Spinner };
|
|
10
10
|
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime252 from "react/jsx-runtime";
|
|
3
3
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4
4
|
|
|
5
5
|
//#region src/react/ui/switch.d.ts
|
|
6
6
|
declare function Switch({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof SwitchPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime252.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
12
12
|
//# sourceMappingURL=switch.d.ts.map
|
package/dist/react/ui/table.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime253 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/react/ui/table.d.ts
|
|
5
5
|
declare function Table({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<"table">):
|
|
8
|
+
}: React.ComponentProps<"table">): react_jsx_runtime253.JSX.Element;
|
|
9
9
|
declare function TableHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<"thead">):
|
|
12
|
+
}: React.ComponentProps<"thead">): react_jsx_runtime253.JSX.Element;
|
|
13
13
|
declare function TableBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<"tbody">):
|
|
16
|
+
}: React.ComponentProps<"tbody">): react_jsx_runtime253.JSX.Element;
|
|
17
17
|
declare function TableFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<"tfoot">):
|
|
20
|
+
}: React.ComponentProps<"tfoot">): react_jsx_runtime253.JSX.Element;
|
|
21
21
|
declare function TableRow({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<"tr">):
|
|
24
|
+
}: React.ComponentProps<"tr">): react_jsx_runtime253.JSX.Element;
|
|
25
25
|
declare function TableHead({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<"th">):
|
|
28
|
+
}: React.ComponentProps<"th">): react_jsx_runtime253.JSX.Element;
|
|
29
29
|
declare function TableCell({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<"td">):
|
|
32
|
+
}: React.ComponentProps<"td">): react_jsx_runtime253.JSX.Element;
|
|
33
33
|
declare function TableCaption({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"caption">):
|
|
36
|
+
}: React.ComponentProps<"caption">): react_jsx_runtime253.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
39
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/react/ui/tabs.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime261 from "react/jsx-runtime";
|
|
3
3
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
4
|
|
|
5
5
|
//#region src/react/ui/tabs.d.ts
|
|
6
6
|
declare function Tabs({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime261.JSX.Element;
|
|
10
10
|
declare function TabsList({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof TabsPrimitive.List>):
|
|
13
|
+
}: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime261.JSX.Element;
|
|
14
14
|
declare function TabsTrigger({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
17
|
+
}: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime261.JSX.Element;
|
|
18
18
|
declare function TabsContent({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
21
|
+
}: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime261.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
24
24
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime265 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/react/ui/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<"textarea">):
|
|
8
|
+
}: React.ComponentProps<"textarea">): react_jsx_runtime265.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Textarea };
|
|
11
11
|
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime267 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
6
6
|
|
|
@@ -14,14 +14,14 @@ declare function ToggleGroup({
|
|
|
14
14
|
...props
|
|
15
15
|
}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
16
16
|
spacing?: number;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime267.JSX.Element;
|
|
18
18
|
declare function ToggleGroupItem({
|
|
19
19
|
className,
|
|
20
20
|
children,
|
|
21
21
|
variant,
|
|
22
22
|
size,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>):
|
|
24
|
+
}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime267.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ToggleGroup, ToggleGroupItem };
|
|
27
27
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime266 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
5
5
|
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
@@ -14,7 +14,7 @@ declare function Toggle({
|
|
|
14
14
|
variant,
|
|
15
15
|
size,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>):
|
|
17
|
+
}: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime266.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { Toggle, toggleVariants };
|
|
20
20
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime269 from "react/jsx-runtime";
|
|
3
3
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
4
|
|
|
5
5
|
//#region src/react/ui/tooltip.d.ts
|
|
6
6
|
declare function TooltipProvider({
|
|
7
7
|
delayDuration,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Provider>):
|
|
9
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime269.JSX.Element;
|
|
10
10
|
declare function Tooltip({
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
12
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime269.JSX.Element;
|
|
13
13
|
declare function TooltipTrigger({
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>):
|
|
15
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime269.JSX.Element;
|
|
16
16
|
declare function TooltipContent({
|
|
17
17
|
className,
|
|
18
18
|
sideOffset,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
21
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime269.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
24
24
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../../src/react/ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,eAAA;;;GAGN,KAAA,CAAM,sBAAsB,gBAAA,CAAiB,YAAS,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../../src/react/ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,eAAA;;;GAGN,KAAA,CAAM,sBAAsB,gBAAA,CAAiB,YAAS,oBAAA,CAAA,GAAA,CAAA;iBAUhD,OAAA;;GAEN,KAAA,CAAM,sBAAsB,gBAAA,CAAiB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAQ5C,cAAA;;GAEN,KAAA,CAAM,sBAAsB,gBAAA,CAAiB,WAAQ,oBAAA,CAAA,GAAA,CAAA;AA7BI,iBAiCnD,cAAA,CA7Be;EAAA,SAAA;EAAA,UAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAkCrB,KAAA,CAAM,cAlCe,CAAA,OAkCO,gBAAA,CAAiB,OAlCxB,CAAA,CAAA,EAkCgC,oBAAA,CAAA,GAAA,CAAA,OAlChC"}
|
package/llms.txt
CHANGED
|
@@ -75,46 +75,24 @@ Why this layout:
|
|
|
75
75
|
"dev": "NODE_ENV=development tsx watch server/index.ts",
|
|
76
76
|
"build": "npm run build:server && npm run build:client",
|
|
77
77
|
"build:server": "tsdown --out-dir build server/index.ts",
|
|
78
|
-
"build:client": "
|
|
78
|
+
"build:client": "tsc -b && vite build --config client/vite.config.ts",
|
|
79
79
|
"start": "node build/index.mjs"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@databricks/appkit": "^0.
|
|
82
|
+
"@databricks/appkit": "^0.1.2"
|
|
83
|
+
"@databricks/appkit-ui": "^0.1.2",
|
|
84
|
+
"react": "^19.2.3",
|
|
85
|
+
"react-dom": "^19.2.3"
|
|
83
86
|
},
|
|
84
87
|
"devDependencies": {
|
|
85
88
|
"@types/node": "^20.0.0",
|
|
89
|
+
"@types/react": "^19.0.0",
|
|
90
|
+
"@types/react-dom": "^19.0.0",
|
|
91
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
86
92
|
"tsdown": "^0.15.7",
|
|
87
93
|
"tsx": "^4.19.0",
|
|
88
|
-
"typescript": "~5.6.0"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### `client/package.json`
|
|
94
|
-
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"name": "client",
|
|
98
|
-
"private": true,
|
|
99
|
-
"version": "0.0.0",
|
|
100
|
-
"type": "module",
|
|
101
|
-
"scripts": {
|
|
102
|
-
"dev": "vite",
|
|
103
|
-
"build": "vite build",
|
|
104
|
-
"preview": "vite preview"
|
|
105
|
-
},
|
|
106
|
-
"dependencies": {
|
|
107
|
-
"@databricks/appkit-ui": "^0.0.2",
|
|
108
|
-
"react": "^18.0.0",
|
|
109
|
-
"react-dom": "^18.0.0",
|
|
110
|
-
"recharts": "^3.0.0"
|
|
111
|
-
},
|
|
112
|
-
"devDependencies": {
|
|
113
|
-
"@types/react": "^18.0.0",
|
|
114
|
-
"@types/react-dom": "^18.0.0",
|
|
115
|
-
"@vitejs/plugin-react": "^5.0.0",
|
|
116
94
|
"typescript": "~5.6.0",
|
|
117
|
-
"vite": "^
|
|
95
|
+
"vite": "^7.2.4"
|
|
118
96
|
}
|
|
119
97
|
}
|
|
120
98
|
```
|
|
@@ -208,7 +186,6 @@ await createApp({
|
|
|
208
186
|
```bash
|
|
209
187
|
# Install dependencies
|
|
210
188
|
npm install
|
|
211
|
-
cd client && npm install && cd ..
|
|
212
189
|
|
|
213
190
|
# Development (starts backend + Vite dev server)
|
|
214
191
|
npm run dev
|
|
@@ -225,19 +202,14 @@ If you already have a React/Vite app and want to add AppKit:
|
|
|
225
202
|
### 1. Install dependencies
|
|
226
203
|
|
|
227
204
|
```bash
|
|
228
|
-
npm install @databricks/appkit
|
|
229
|
-
npm install -D tsx tsdown
|
|
205
|
+
npm install @databricks/appkit @databricks/appkit-ui react react-dom
|
|
206
|
+
npm install -D tsx tsdown vite @vitejs/plugin-react typescript
|
|
230
207
|
|
|
231
208
|
# If you don't already have a client/ folder, create one and move your Vite app into it:
|
|
232
209
|
# - move index.html -> client/index.html
|
|
233
210
|
# - move vite.config.ts -> client/vite.config.ts
|
|
234
211
|
# - move src/ -> client/src/
|
|
235
212
|
#
|
|
236
|
-
# Then install client deps:
|
|
237
|
-
cd client
|
|
238
|
-
npm install @databricks/appkit-ui react react-dom recharts
|
|
239
|
-
npm install -D vite @vitejs/plugin-react typescript
|
|
240
|
-
cd ..
|
|
241
213
|
```
|
|
242
214
|
|
|
243
215
|
### 2. Create `server/index.ts` (new file)
|
|
@@ -258,7 +230,7 @@ await createApp({
|
|
|
258
230
|
"dev": "NODE_ENV=development tsx watch server/index.ts",
|
|
259
231
|
"build": "npm run build:server && npm run build:client",
|
|
260
232
|
"build:server": "tsdown --out-dir build server/index.ts",
|
|
261
|
-
"build:client": "
|
|
233
|
+
"build:client": "tsc -b && vite build --config client/vite.config.ts",
|
|
262
234
|
"start": "node build/index.mjs"
|
|
263
235
|
}
|
|
264
236
|
}
|
|
@@ -276,7 +248,7 @@ await createApp({
|
|
|
276
248
|
import { createApp, server, analytics } from "@databricks/appkit";
|
|
277
249
|
|
|
278
250
|
await createApp({
|
|
279
|
-
plugins: [server(), analytics(
|
|
251
|
+
plugins: [server(), analytics()],
|
|
280
252
|
});
|
|
281
253
|
```
|
|
282
254
|
|
|
@@ -312,13 +284,17 @@ These are typically **provided by Databricks Apps runtime** (exact set can vary
|
|
|
312
284
|
|
|
313
285
|
For local development, you need to authenticate with Databricks. Options:
|
|
314
286
|
|
|
315
|
-
**Option 1: Databricks CLI
|
|
287
|
+
**Option 1: Databricks CLI Auth (recommended)**
|
|
316
288
|
|
|
317
289
|
```bash
|
|
318
290
|
# Configure once
|
|
319
|
-
databricks
|
|
291
|
+
databricks auth login --host [host] --profile [profile-name]
|
|
292
|
+
|
|
293
|
+
# If you used `DEFAULT` as the profile name then you can just run
|
|
320
294
|
|
|
321
|
-
|
|
295
|
+
`npm run dev`
|
|
296
|
+
|
|
297
|
+
# To run with a specific profile
|
|
322
298
|
DATABRICKS_CONFIG_PROFILE=my-profile npm run dev
|
|
323
299
|
# If your Databricks SDK expects a different variable name, try:
|
|
324
300
|
# DATABRICKS_PROFILE=my-profile npm run dev
|
|
@@ -462,7 +438,7 @@ HTTP endpoints exposed (mounted under `/api/analytics`):
|
|
|
462
438
|
Formats:
|
|
463
439
|
|
|
464
440
|
- `format: "JSON"` (default) returns JSON rows
|
|
465
|
-
- `format: "ARROW"` returns an Arrow “
|
|
441
|
+
- `format: "ARROW"` returns an Arrow “statement_id” payload over SSE, then the client fetches binary Arrow from `/api/analytics/arrow-result/:jobId`
|
|
466
442
|
|
|
467
443
|
### Request context (`getRequestContext()`)
|
|
468
444
|
|
|
@@ -980,6 +956,108 @@ function LoadingCard() {
|
|
|
980
956
|
}
|
|
981
957
|
```
|
|
982
958
|
|
|
959
|
+
## Stylesheet
|
|
960
|
+
|
|
961
|
+
In the main css file import the following
|
|
962
|
+
|
|
963
|
+
```css
|
|
964
|
+
@import "@databricks/appkit-ui/styles.css";
|
|
965
|
+
```
|
|
966
|
+
|
|
967
|
+
That will provide a default theme for the app using css variables.
|
|
968
|
+
|
|
969
|
+
### Customizing theme (light/dark mode)
|
|
970
|
+
|
|
971
|
+
- Full list of variables to customize the theme.
|
|
972
|
+
|
|
973
|
+
```css
|
|
974
|
+
@import "@databricks/appkit-ui/styles.css";
|
|
975
|
+
|
|
976
|
+
:root {
|
|
977
|
+
--radius: 0.625rem;
|
|
978
|
+
--background: oklch(1 0 0);
|
|
979
|
+
--foreground: oklch(0.141 0.005 285.823);
|
|
980
|
+
--card: oklch(1 0 0);
|
|
981
|
+
--card-foreground: oklch(0.141 0.005 285.823);
|
|
982
|
+
--popover: oklch(1 0 0);
|
|
983
|
+
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
984
|
+
--primary: oklch(0.21 0.006 285.885);
|
|
985
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
986
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
987
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
988
|
+
--muted: oklch(0.967 0.001 286.375);
|
|
989
|
+
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
990
|
+
--accent: oklch(0.967 0.001 286.375);
|
|
991
|
+
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
992
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
993
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
994
|
+
--success: oklch(0.603 0.135 166.892);
|
|
995
|
+
--success-foreground: oklch(1 0 0);
|
|
996
|
+
--warning: oklch(0.795 0.157 78.748);
|
|
997
|
+
--warning-foreground: oklch(0.199 0.027 238.732);
|
|
998
|
+
--border: oklch(0.92 0.004 286.32);
|
|
999
|
+
--input: oklch(0.92 0.004 286.32);
|
|
1000
|
+
--ring: oklch(0.705 0.015 286.067);
|
|
1001
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
1002
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
1003
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
1004
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
1005
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
1006
|
+
--sidebar: oklch(0.985 0 0);
|
|
1007
|
+
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
1008
|
+
--sidebar-primary: oklch(0.21 0.006 285.885);
|
|
1009
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
1010
|
+
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
1011
|
+
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
1012
|
+
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
1013
|
+
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
@media (prefers-color-scheme: dark) {
|
|
1017
|
+
:root {
|
|
1018
|
+
--background: oklch(0.141 0.005 285.823);
|
|
1019
|
+
--foreground: oklch(0.985 0 0);
|
|
1020
|
+
--card: oklch(0.21 0.006 285.885);
|
|
1021
|
+
--card-foreground: oklch(0.985 0 0);
|
|
1022
|
+
--popover: oklch(0.21 0.006 285.885);
|
|
1023
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
1024
|
+
--primary: oklch(0.92 0.004 286.32);
|
|
1025
|
+
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
1026
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
1027
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
1028
|
+
--muted: oklch(0.274 0.006 286.033);
|
|
1029
|
+
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
1030
|
+
--accent: oklch(0.274 0.006 286.033);
|
|
1031
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
1032
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
1033
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
1034
|
+
--success: oklch(0.67 0.12 167);
|
|
1035
|
+
--success-foreground: oklch(1 0 0);
|
|
1036
|
+
--warning: oklch(0.83 0.165 85);
|
|
1037
|
+
--warning-foreground: oklch(0.199 0.027 238.732);
|
|
1038
|
+
--border: oklch(1 0 0 / 10%);
|
|
1039
|
+
--input: oklch(1 0 0 / 15%);
|
|
1040
|
+
--ring: oklch(0.552 0.016 285.938);
|
|
1041
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
1042
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
1043
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
1044
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
1045
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
1046
|
+
--sidebar: oklch(0.21 0.006 285.885);
|
|
1047
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
1048
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
1049
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
1050
|
+
--sidebar-accent: oklch(0.274 0.006 286.033);
|
|
1051
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
1052
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
1053
|
+
--sidebar-ring: oklch(0.552 0.016 285.938);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
```
|
|
1058
|
+
|
|
1059
|
+
- If any variable is changed, it must be changed for both light and dark mode.
|
|
1060
|
+
|
|
983
1061
|
## Type generation (QueryRegistry + IntelliSense)
|
|
984
1062
|
|
|
985
1063
|
Goal: generate `client/src/appKitTypes.d.ts` so query keys, params, and result rows are type-safe.
|
|
@@ -1054,7 +1132,6 @@ env:
|
|
|
1054
1132
|
- `tsx` is in devDependencies for dev server
|
|
1055
1133
|
- `dev` script uses `NODE_ENV=development tsx watch server/index.ts`
|
|
1056
1134
|
- `client/index.html` exists with `<div id="root"></div>` and script pointing to `client/src/main.tsx`
|
|
1057
|
-
- `client/package.json` exists and includes `@databricks/appkit-ui`
|
|
1058
1135
|
|
|
1059
1136
|
- **Backend**
|
|
1060
1137
|
- `await createApp({ plugins: [...] })` is used (or `void createApp` with intent)
|